1 | import * as wt from '@waves/waves-transactions';
|
2 | export declare class WavesConsoleAPI {
|
3 | static env: any;
|
4 | [key: string]: any;
|
5 | private static injectEnv;
|
6 | static setEnv(env: any): void;
|
7 | private bufferToBase64;
|
8 | alias: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IAliasTransaction<string | number> & wt.WithId;
|
9 | burn: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IBurnTransaction<string | number> & wt.WithId;
|
10 | cancelLease: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.ICancelLeaseTransaction<string | number> & wt.WithId;
|
11 | cancelOrder: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.ICancelOrder;
|
12 | data: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IDataTransaction<string | number> & wt.WithId;
|
13 | issue: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IIssueTransaction<string | number> & wt.WithId;
|
14 | reissue: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IReissueTransaction<string | number> & wt.WithId;
|
15 | lease: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.ILeaseTransaction<string | number> & wt.WithId;
|
16 | massTransfer: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IMassTransferTransaction<string | number> & wt.WithId;
|
17 | order: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.IOrder<string | number> & wt.WithId;
|
18 | transfer: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.ITransferTransaction<string | number> & wt.WithId;
|
19 | setScript: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.ISetScriptTransaction<string | number> & wt.WithId;
|
20 | setAssetScript: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.ISetAssetScriptTransaction<string | number> & wt.WithId;
|
21 | signTx: (po: wt.TTxParams<string | number>, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | null | undefined) => wt.TTx<string | number>;
|
22 | addressBalance: (address: string, apiBase?: string | undefined) => Promise<number>;
|
23 | addressDataByKey: (address: string, key: string, apiBase?: string | undefined) => Promise<string | number | Uint8Array | null>;
|
24 | broadcast: (tx: wt.TTx<string | number>, apiBase?: string | undefined) => Promise<any>;
|
25 | file: (tabName?: string | undefined) => string;
|
26 | contract: () => string;
|
27 | keyPair: (seed?: string | undefined) => import("@waves/waves-crypto").KeyPair;
|
28 | publicKey: (seed?: string | undefined) => string;
|
29 | privateKey: (seed: string) => string;
|
30 | address: (seed?: string | undefined, chainId?: string | undefined) => string;
|
31 | compile: (code: string) => string;
|
32 | deploy: (params?: {
|
33 | fee?: number | undefined;
|
34 | senderPublicKey?: string | undefined;
|
35 | script?: string | undefined;
|
36 | } | undefined, seed?: string | import("@waves/waves-transactions/dist/types").IIndexSeedMap | (string | null | undefined)[] | undefined) => Promise<any>;
|
37 | help: (func?: Function | undefined) => string;
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export interface IWavesConsoleAPIHelpCommand {
|
45 | readonly summary?: string;
|
46 | readonly description?: string;
|
47 | readonly params?: Array<string> | null;
|
48 | }
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | export interface IWavesConsoleAPIHelpVariable {
|
55 | readonly optional?: boolean;
|
56 | readonly type?: string;
|
57 | readonly summary?: string;
|
58 | }
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 | export interface IWavesConsoleApiHelpCommon {
|
65 | readonly header?: string;
|
66 | readonly summary?: string;
|
67 | }
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | export declare class WavesConsoleAPIHelp {
|
75 | |
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 | static common: {
|
82 | [key: string]: IWavesConsoleApiHelpCommon;
|
83 | };
|
84 | |
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 | static texts: {
|
91 | [key: string]: IWavesConsoleAPIHelpCommand;
|
92 | };
|
93 | |
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 | static types: {
|
100 | [key: string]: IWavesConsoleAPIHelpVariable;
|
101 | };
|
102 | |
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 | static compileText(aliases: Array<string>): string;
|
113 | |
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 | static compileTextArguments(args: Array<string>, text: string): string;
|
125 | |
126 |
|
127 |
|
128 |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 | static compileTextSlice(alias: string, full: boolean, text: string): string;
|
138 | }
|