@ocap/client 1.29.13 → 1.29.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.js +1 -1
- package/dist/browser.d.ts +874 -401
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +34 -2
- package/dist/schema/graphql.txt +3 -3
- package/dist/types.js +205 -24
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +1 -0
- package/docs/README.md +209 -4
- package/lib/base.js +1 -1
- package/lib/node.d.ts +874 -401
- package/lib/schema/graphql.json +34 -2
- package/lib/schema/graphql.txt +3 -3
- package/lib/types.js +205 -24
- package/lib/types.js.map +1 -1
- package/package.json +17 -17
package/dist/browser.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WalletObject } from
|
|
1
|
+
import { WalletObject } from "@ocap/wallet";
|
|
2
2
|
|
|
3
3
|
type PartialDeep<T> = {
|
|
4
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K]
|
|
5
|
-
}
|
|
4
|
+
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
5
|
+
};
|
|
6
6
|
|
|
7
7
|
export as namespace GraphQLClient;
|
|
8
8
|
|
|
@@ -43,103 +43,141 @@ declare class GraphQLClient {
|
|
|
43
43
|
decodeTx(input: string | Buffer): object;
|
|
44
44
|
|
|
45
45
|
// Account methods
|
|
46
|
-
migrateAccount(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
migrateAccount(
|
|
47
|
+
params: {
|
|
48
|
+
from: WalletObject;
|
|
49
|
+
to: WalletObject;
|
|
50
|
+
},
|
|
51
|
+
extra?: any,
|
|
52
|
+
): Promise<string>;
|
|
53
|
+
|
|
54
|
+
delegate(
|
|
55
|
+
params: {
|
|
56
|
+
from: WalletObject;
|
|
57
|
+
to: WalletObject;
|
|
58
|
+
privileges:
|
|
59
|
+
| Array<{
|
|
60
|
+
typeUrl: string;
|
|
61
|
+
limit?: { tokens?: string[]; assets?: string[] };
|
|
62
|
+
}>
|
|
63
|
+
| { typeUrl: string; limit?: { tokens?: string[]; assets?: string[] } };
|
|
64
|
+
},
|
|
65
|
+
extra?: any,
|
|
66
|
+
): Promise<[string, string]>;
|
|
67
|
+
|
|
68
|
+
revokeDelegate(
|
|
69
|
+
params: {
|
|
70
|
+
from: WalletObject;
|
|
71
|
+
to: WalletObject;
|
|
72
|
+
privileges: Array<string | { toString(): string }>;
|
|
73
|
+
},
|
|
74
|
+
extra?: any,
|
|
75
|
+
): Promise<string>;
|
|
62
76
|
|
|
63
77
|
// Asset methods
|
|
64
|
-
createAsset(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
readonly?: boolean;
|
|
70
|
-
transferrable?: boolean;
|
|
71
|
-
display?: any;
|
|
72
|
-
endpoint?: any;
|
|
73
|
-
tags?: string[];
|
|
74
|
-
delegator?: string;
|
|
75
|
-
wallet: WalletObject;
|
|
76
|
-
}, extra?: any): Promise<[string, string]>;
|
|
77
|
-
|
|
78
|
-
updateAsset(params: {
|
|
79
|
-
address: string;
|
|
80
|
-
moniker?: string;
|
|
81
|
-
data?: any;
|
|
82
|
-
wallet: WalletObject;
|
|
83
|
-
}, extra?: any): Promise<string>;
|
|
84
|
-
|
|
85
|
-
createAssetFactory(params: {
|
|
86
|
-
factory: {
|
|
87
|
-
name: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
settlement?: string;
|
|
90
|
-
limit?: number;
|
|
91
|
-
trustedIssuers?: string[];
|
|
92
|
-
input?: any;
|
|
93
|
-
output?: any;
|
|
78
|
+
createAsset(
|
|
79
|
+
params: {
|
|
80
|
+
moniker: string;
|
|
81
|
+
parent?: string;
|
|
82
|
+
ttl?: number;
|
|
94
83
|
data?: any;
|
|
95
|
-
|
|
84
|
+
readonly?: boolean;
|
|
85
|
+
transferrable?: boolean;
|
|
96
86
|
display?: any;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
87
|
+
endpoint?: any;
|
|
88
|
+
tags?: string[];
|
|
89
|
+
delegator?: string;
|
|
90
|
+
wallet: WalletObject;
|
|
91
|
+
},
|
|
92
|
+
extra?: any,
|
|
93
|
+
): Promise<[string, string]>;
|
|
94
|
+
|
|
95
|
+
updateAsset(
|
|
96
|
+
params: {
|
|
97
|
+
address: string;
|
|
98
|
+
moniker?: string;
|
|
99
|
+
data?: any;
|
|
100
|
+
wallet: WalletObject;
|
|
101
|
+
},
|
|
102
|
+
extra?: any,
|
|
103
|
+
): Promise<string>;
|
|
104
|
+
|
|
105
|
+
createAssetFactory(
|
|
106
|
+
params: {
|
|
107
|
+
factory: {
|
|
108
|
+
name: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
settlement?: string;
|
|
111
|
+
limit?: number;
|
|
112
|
+
trustedIssuers?: string[];
|
|
113
|
+
input?: any;
|
|
114
|
+
output?: any;
|
|
115
|
+
data?: any;
|
|
116
|
+
hooks?: any[];
|
|
117
|
+
display?: any;
|
|
118
|
+
};
|
|
119
|
+
wallet: WalletObject;
|
|
120
|
+
},
|
|
121
|
+
extra?: any,
|
|
122
|
+
): Promise<[string, string]>;
|
|
123
|
+
|
|
124
|
+
acquireAsset(
|
|
125
|
+
params: {
|
|
126
|
+
itx: any;
|
|
127
|
+
delegator?: string;
|
|
128
|
+
wallet: WalletObject;
|
|
129
|
+
},
|
|
130
|
+
extra?: any,
|
|
131
|
+
): Promise<string>;
|
|
106
132
|
|
|
107
133
|
// Transfer methods
|
|
108
|
-
transfer(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
134
|
+
transfer(
|
|
135
|
+
params: {
|
|
136
|
+
token?: number;
|
|
137
|
+
assets?: string[];
|
|
138
|
+
tokens?: Array<{ address: string; value: number }>;
|
|
139
|
+
to: string;
|
|
140
|
+
memo?: string;
|
|
141
|
+
delegator?: string;
|
|
142
|
+
wallet: WalletObject;
|
|
143
|
+
},
|
|
144
|
+
extra?: any,
|
|
145
|
+
): Promise<string>;
|
|
117
146
|
|
|
118
147
|
// Exchange methods
|
|
119
|
-
prepareExchange(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
148
|
+
prepareExchange(
|
|
149
|
+
params: {
|
|
150
|
+
offerToken?: number;
|
|
151
|
+
offerAssets?: string[];
|
|
152
|
+
demandToken?: number;
|
|
153
|
+
demandAssets?: string[];
|
|
154
|
+
offerTokens?: Array<{ address: string; value: number }>;
|
|
155
|
+
demandTokens?: Array<{ address: string; value: number }>;
|
|
156
|
+
receiver?: string;
|
|
157
|
+
memo?: string;
|
|
158
|
+
delegator?: string;
|
|
159
|
+
wallet: WalletObject;
|
|
160
|
+
},
|
|
161
|
+
extra?: any,
|
|
162
|
+
): Promise<GraphQLClient.Transaction>;
|
|
163
|
+
|
|
164
|
+
finalizeExchange(
|
|
165
|
+
params: {
|
|
166
|
+
tx: GraphQLClient.Transaction;
|
|
167
|
+
delegator?: string;
|
|
168
|
+
data?: any;
|
|
169
|
+
wallet: WalletObject;
|
|
170
|
+
},
|
|
171
|
+
extra?: any,
|
|
172
|
+
): Promise<GraphQLClient.Transaction>;
|
|
173
|
+
|
|
174
|
+
exchange(
|
|
175
|
+
params: {
|
|
176
|
+
tx: GraphQLClient.Transaction;
|
|
177
|
+
wallet: WalletObject;
|
|
178
|
+
},
|
|
179
|
+
extra?: any,
|
|
180
|
+
): Promise<string>;
|
|
143
181
|
|
|
144
182
|
generateQueryFns(): void;
|
|
145
183
|
generateSubscriptionFns(): void;
|
|
@@ -153,100 +191,127 @@ declare class GraphQLClient {
|
|
|
153
191
|
unsubscribe(topic: string, callback?: (data: any) => void): any;
|
|
154
192
|
|
|
155
193
|
// Token factory methods from extension.js
|
|
156
|
-
createTokenFactory(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
194
|
+
createTokenFactory(
|
|
195
|
+
params: {
|
|
196
|
+
feeRate?: number;
|
|
197
|
+
curve?: {
|
|
198
|
+
type?: string;
|
|
199
|
+
slope?: string;
|
|
200
|
+
basePrice?: string;
|
|
201
|
+
fixedPrice?: string;
|
|
202
|
+
};
|
|
203
|
+
token: {
|
|
204
|
+
name: string;
|
|
205
|
+
symbol: string;
|
|
206
|
+
decimal?: number;
|
|
207
|
+
description?: string;
|
|
208
|
+
icon?: string;
|
|
209
|
+
maxTotalSupply?: string;
|
|
210
|
+
};
|
|
211
|
+
data?: any;
|
|
212
|
+
wallet: WalletObject;
|
|
213
|
+
},
|
|
214
|
+
extra?: any,
|
|
215
|
+
): Promise<[string, string]>;
|
|
216
|
+
|
|
217
|
+
updateTokenFactory(
|
|
218
|
+
params: {
|
|
219
|
+
address: string;
|
|
220
|
+
feeRate?: number;
|
|
221
|
+
token?: any;
|
|
222
|
+
data?: any;
|
|
223
|
+
wallet: WalletObject;
|
|
224
|
+
},
|
|
225
|
+
extra?: any,
|
|
226
|
+
): Promise<string>;
|
|
227
|
+
|
|
228
|
+
// Token methods
|
|
229
|
+
createToken(
|
|
230
|
+
params: {
|
|
165
231
|
name: string;
|
|
232
|
+
description?: string;
|
|
166
233
|
symbol: string;
|
|
234
|
+
unit?: string;
|
|
167
235
|
decimal?: number;
|
|
168
|
-
description?: string;
|
|
169
236
|
icon?: string;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
receiver?: string;
|
|
204
|
-
maxReserve?: number;
|
|
205
|
-
data?: any;
|
|
206
|
-
wallet: WalletObject;
|
|
207
|
-
}, extra?: any): Promise<string>;
|
|
208
|
-
|
|
209
|
-
burnToken(params: {
|
|
210
|
-
tokenFactory: string;
|
|
211
|
-
amount: number;
|
|
212
|
-
receiver?: string;
|
|
213
|
-
minReserve?: number;
|
|
214
|
-
data?: any;
|
|
215
|
-
wallet: WalletObject;
|
|
216
|
-
}, extra?: any): Promise<string>;
|
|
237
|
+
totalSupply: number;
|
|
238
|
+
initialSupply?: number;
|
|
239
|
+
maxTotalSupply?: number;
|
|
240
|
+
foreignToken?: any;
|
|
241
|
+
data?: any;
|
|
242
|
+
wallet: WalletObject;
|
|
243
|
+
},
|
|
244
|
+
extra?: any,
|
|
245
|
+
): Promise<[string, string]>;
|
|
246
|
+
|
|
247
|
+
mintToken(
|
|
248
|
+
params: {
|
|
249
|
+
tokenFactory: string;
|
|
250
|
+
amount: number;
|
|
251
|
+
receiver?: string;
|
|
252
|
+
maxReserve?: number;
|
|
253
|
+
data?: any;
|
|
254
|
+
wallet: WalletObject;
|
|
255
|
+
},
|
|
256
|
+
extra?: any,
|
|
257
|
+
): Promise<string>;
|
|
258
|
+
|
|
259
|
+
burnToken(
|
|
260
|
+
params: {
|
|
261
|
+
tokenFactory: string;
|
|
262
|
+
amount: number;
|
|
263
|
+
receiver?: string;
|
|
264
|
+
minReserve?: number;
|
|
265
|
+
data?: any;
|
|
266
|
+
wallet: WalletObject;
|
|
267
|
+
},
|
|
268
|
+
extra?: any,
|
|
269
|
+
): Promise<string>;
|
|
217
270
|
|
|
218
271
|
// Staking methods
|
|
219
|
-
stake(
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
272
|
+
stake(
|
|
273
|
+
params: {
|
|
274
|
+
assets?: string[];
|
|
275
|
+
tokens?: Array<{ address: string; value: number }>;
|
|
276
|
+
slashers?: string[];
|
|
277
|
+
to: string;
|
|
278
|
+
locked?: boolean;
|
|
279
|
+
message?: string;
|
|
280
|
+
nonce?: string;
|
|
281
|
+
wallet: WalletObject;
|
|
282
|
+
},
|
|
283
|
+
extra?: any,
|
|
284
|
+
): Promise<[string, string]>;
|
|
285
|
+
|
|
286
|
+
revokeStake(
|
|
287
|
+
params: {
|
|
288
|
+
assets?: string[];
|
|
289
|
+
tokens?: Array<{ address: string; value: number }>;
|
|
290
|
+
from: string;
|
|
291
|
+
wallet: WalletObject;
|
|
292
|
+
},
|
|
293
|
+
extra?: any,
|
|
294
|
+
): Promise<string>;
|
|
295
|
+
|
|
296
|
+
slashStake(
|
|
297
|
+
params: {
|
|
298
|
+
assets?: string[];
|
|
299
|
+
tokens?: Array<{ address: string; value: number }>;
|
|
300
|
+
reason: string;
|
|
301
|
+
from: string;
|
|
302
|
+
wallet: WalletObject;
|
|
303
|
+
},
|
|
304
|
+
extra?: any,
|
|
305
|
+
): Promise<string>;
|
|
306
|
+
|
|
307
|
+
claimStake(
|
|
308
|
+
params: {
|
|
309
|
+
from: string;
|
|
310
|
+
evidence: string;
|
|
311
|
+
wallet: WalletObject;
|
|
312
|
+
},
|
|
313
|
+
extra?: any,
|
|
314
|
+
): Promise<string>;
|
|
250
315
|
|
|
251
316
|
// Asset factory methods
|
|
252
317
|
preMintAsset(params: {
|
|
@@ -256,7 +321,12 @@ declare class GraphQLClient {
|
|
|
256
321
|
wallet: WalletObject;
|
|
257
322
|
extra?: object;
|
|
258
323
|
}): Promise<{
|
|
259
|
-
asset: {
|
|
324
|
+
asset: {
|
|
325
|
+
address: string;
|
|
326
|
+
owner: string;
|
|
327
|
+
parent: string;
|
|
328
|
+
[key: string]: any;
|
|
329
|
+
};
|
|
260
330
|
factory: string;
|
|
261
331
|
address: string;
|
|
262
332
|
variables: Array<{ name: string; value: any }>;
|
|
@@ -265,43 +335,49 @@ declare class GraphQLClient {
|
|
|
265
335
|
[key: string]: any;
|
|
266
336
|
}>;
|
|
267
337
|
|
|
268
|
-
mintAsset(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
338
|
+
mintAsset(
|
|
339
|
+
params: {
|
|
340
|
+
itx: any;
|
|
341
|
+
wallet: WalletObject;
|
|
342
|
+
},
|
|
343
|
+
extra?: any,
|
|
344
|
+
): Promise<string>;
|
|
272
345
|
|
|
273
346
|
// Rollup methods
|
|
274
|
-
createRollup(
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
347
|
+
createRollup(
|
|
348
|
+
params: {
|
|
349
|
+
tokenAddress: string;
|
|
350
|
+
vaultAddress: string;
|
|
351
|
+
contractAddress: string;
|
|
352
|
+
seedValidators: any[];
|
|
353
|
+
minStakeAmount: string;
|
|
354
|
+
maxStakeAmount?: string;
|
|
355
|
+
minSignerCount?: number;
|
|
356
|
+
maxSignerCount?: number;
|
|
357
|
+
minBlockSize?: number;
|
|
358
|
+
maxBlockSize?: number;
|
|
359
|
+
minBlockInterval?: number;
|
|
360
|
+
minBlockConfirmation?: number;
|
|
361
|
+
minDepositAmount?: string;
|
|
362
|
+
maxDepositAmount?: string;
|
|
363
|
+
minWithdrawAmount?: string;
|
|
364
|
+
maxWithdrawAmount?: string;
|
|
365
|
+
depositFeeRate?: number;
|
|
366
|
+
withdrawFeeRate?: number;
|
|
367
|
+
publisherFeeShare?: number;
|
|
368
|
+
proposerFeeShare?: number;
|
|
369
|
+
minDepositFee?: string;
|
|
370
|
+
maxDepositFee?: string;
|
|
371
|
+
minWithdrawFee?: string;
|
|
372
|
+
maxWithdrawFee?: string;
|
|
373
|
+
leaveWaitingPeriod?: number;
|
|
374
|
+
publishWaitingPeriod?: number;
|
|
375
|
+
publishSlashRate?: number;
|
|
376
|
+
data?: any;
|
|
377
|
+
wallet: WalletObject;
|
|
378
|
+
},
|
|
379
|
+
extra?: any,
|
|
380
|
+
): Promise<[string, string]>;
|
|
305
381
|
|
|
306
382
|
// Context methods
|
|
307
383
|
getContext(): Promise<{
|
|
@@ -313,193 +389,591 @@ declare class GraphQLClient {
|
|
|
313
389
|
tokenStateMap: Map<string, any>;
|
|
314
390
|
}>;
|
|
315
391
|
|
|
316
|
-
getTokenStateMap(
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
392
|
+
getTokenStateMap(
|
|
393
|
+
addressList: string[],
|
|
394
|
+
): Promise<Map<string, { decimal: number }>>;
|
|
395
|
+
|
|
396
|
+
sendAccountMigrateTx(
|
|
397
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>,
|
|
398
|
+
extra?: any,
|
|
399
|
+
): Promise<string>;
|
|
400
|
+
sendAcquireAssetV2Tx(
|
|
401
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>,
|
|
402
|
+
extra?: any,
|
|
403
|
+
): Promise<string>;
|
|
404
|
+
sendAcquireAssetV3Tx(
|
|
405
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
|
|
406
|
+
extra?: any,
|
|
407
|
+
): Promise<string>;
|
|
408
|
+
sendBurnTokenTx(
|
|
409
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>,
|
|
410
|
+
extra?: any,
|
|
411
|
+
): Promise<string>;
|
|
412
|
+
sendClaimBlockRewardTx(
|
|
413
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
|
|
414
|
+
extra?: any,
|
|
415
|
+
): Promise<string>;
|
|
416
|
+
sendClaimStakeTx(
|
|
417
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>,
|
|
418
|
+
extra?: any,
|
|
419
|
+
): Promise<string>;
|
|
420
|
+
sendCloseRollupTx(
|
|
421
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
|
|
422
|
+
extra?: any,
|
|
423
|
+
): Promise<string>;
|
|
424
|
+
sendConsumeAssetTx(
|
|
425
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>,
|
|
426
|
+
extra?: any,
|
|
427
|
+
): Promise<string>;
|
|
428
|
+
sendCreateAssetTx(
|
|
429
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
|
|
430
|
+
extra?: any,
|
|
431
|
+
): Promise<string>;
|
|
432
|
+
sendCreateFactoryTx(
|
|
433
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>,
|
|
434
|
+
extra?: any,
|
|
435
|
+
): Promise<string>;
|
|
436
|
+
sendCreateRollupBlockTx(
|
|
437
|
+
param: GraphQLClient.TxParam<
|
|
438
|
+
PartialDeep<GraphQLClient.CreateRollupBlockTx>
|
|
439
|
+
>,
|
|
440
|
+
extra?: any,
|
|
441
|
+
): Promise<string>;
|
|
442
|
+
sendCreateRollupTx(
|
|
443
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>,
|
|
444
|
+
extra?: any,
|
|
445
|
+
): Promise<string>;
|
|
446
|
+
sendCreateTokenFactoryTx(
|
|
447
|
+
param: GraphQLClient.TxParam<
|
|
448
|
+
PartialDeep<GraphQLClient.CreateTokenFactoryTx>
|
|
449
|
+
>,
|
|
450
|
+
extra?: any,
|
|
451
|
+
): Promise<string>;
|
|
452
|
+
sendCreateTokenTx(
|
|
453
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
|
|
454
|
+
extra?: any,
|
|
455
|
+
): Promise<string>;
|
|
456
|
+
sendDelegateTx(
|
|
457
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>,
|
|
458
|
+
extra?: any,
|
|
459
|
+
): Promise<string>;
|
|
460
|
+
sendDepositTokenV2Tx(
|
|
461
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
|
|
462
|
+
extra?: any,
|
|
463
|
+
): Promise<string>;
|
|
464
|
+
sendExchangeTx(
|
|
465
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>,
|
|
466
|
+
extra?: any,
|
|
467
|
+
): Promise<string>;
|
|
468
|
+
sendExchangeV2Tx(
|
|
469
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>,
|
|
470
|
+
extra?: any,
|
|
471
|
+
): Promise<string>;
|
|
472
|
+
sendJoinRollupTx(
|
|
473
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>,
|
|
474
|
+
extra?: any,
|
|
475
|
+
): Promise<string>;
|
|
476
|
+
sendLeaveRollupTx(
|
|
477
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
|
|
478
|
+
extra?: any,
|
|
479
|
+
): Promise<string>;
|
|
480
|
+
sendMigrateRollupTx(
|
|
481
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>,
|
|
482
|
+
extra?: any,
|
|
483
|
+
): Promise<string>;
|
|
484
|
+
sendMintAssetTx(
|
|
485
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>,
|
|
486
|
+
extra?: any,
|
|
487
|
+
): Promise<string>;
|
|
488
|
+
sendMintTokenTx(
|
|
489
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>,
|
|
490
|
+
extra?: any,
|
|
491
|
+
): Promise<string>;
|
|
492
|
+
sendPauseRollupTx(
|
|
493
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
|
|
494
|
+
extra?: any,
|
|
495
|
+
): Promise<string>;
|
|
496
|
+
sendResumeRollupTx(
|
|
497
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>,
|
|
498
|
+
extra?: any,
|
|
499
|
+
): Promise<string>;
|
|
500
|
+
sendReturnStakeTx(
|
|
501
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ReturnStakeTx>>,
|
|
502
|
+
extra?: any,
|
|
503
|
+
): Promise<string>;
|
|
504
|
+
sendRevokeDelegateTx(
|
|
505
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>,
|
|
506
|
+
extra?: any,
|
|
507
|
+
): Promise<string>;
|
|
508
|
+
sendRevokeStakeTx(
|
|
509
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>,
|
|
510
|
+
extra?: any,
|
|
511
|
+
): Promise<string>;
|
|
512
|
+
sendSlashStakeTx(
|
|
513
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>,
|
|
514
|
+
extra?: any,
|
|
515
|
+
): Promise<string>;
|
|
516
|
+
sendStakeTx(
|
|
517
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
|
|
518
|
+
extra?: any,
|
|
519
|
+
): Promise<string>;
|
|
520
|
+
sendTransferTx(
|
|
521
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>,
|
|
522
|
+
extra?: any,
|
|
523
|
+
): Promise<string>;
|
|
524
|
+
sendTransferV2Tx(
|
|
525
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>,
|
|
526
|
+
extra?: any,
|
|
527
|
+
): Promise<string>;
|
|
528
|
+
sendTransferV3Tx(
|
|
529
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>,
|
|
530
|
+
extra?: any,
|
|
531
|
+
): Promise<string>;
|
|
532
|
+
sendUpdateAssetTx(
|
|
533
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>,
|
|
534
|
+
extra?: any,
|
|
535
|
+
): Promise<string>;
|
|
536
|
+
sendUpdateRollupTx(
|
|
537
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
|
|
538
|
+
extra?: any,
|
|
539
|
+
): Promise<string>;
|
|
540
|
+
sendUpdateTokenFactoryTx(
|
|
541
|
+
param: GraphQLClient.TxParam<
|
|
542
|
+
PartialDeep<GraphQLClient.UpdateTokenFactoryTx>
|
|
543
|
+
>,
|
|
544
|
+
extra?: any,
|
|
545
|
+
): Promise<string>;
|
|
546
|
+
sendUpgradeNodeTx(
|
|
547
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>,
|
|
548
|
+
extra?: any,
|
|
549
|
+
): Promise<string>;
|
|
550
|
+
sendWithdrawTokenV2Tx(
|
|
551
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>,
|
|
552
|
+
extra?: any,
|
|
553
|
+
): Promise<string>;
|
|
554
|
+
encodeAccountMigrateTx(
|
|
555
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>,
|
|
556
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
557
|
+
encodeAcquireAssetV2Tx(
|
|
558
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>,
|
|
559
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
560
|
+
encodeAcquireAssetV3Tx(
|
|
561
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
|
|
562
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
563
|
+
encodeBurnTokenTx(
|
|
564
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>,
|
|
565
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
566
|
+
encodeClaimBlockRewardTx(
|
|
567
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
|
|
568
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
569
|
+
encodeClaimStakeTx(
|
|
570
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>,
|
|
571
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
572
|
+
encodeCloseRollupTx(
|
|
573
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
|
|
574
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
575
|
+
encodeConsumeAssetTx(
|
|
576
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>,
|
|
577
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
578
|
+
encodeCreateAssetTx(
|
|
579
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
|
|
580
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
581
|
+
encodeCreateFactoryTx(
|
|
582
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>,
|
|
583
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
584
|
+
encodeCreateRollupBlockTx(
|
|
585
|
+
param: GraphQLClient.TxParam<
|
|
586
|
+
PartialDeep<GraphQLClient.CreateRollupBlockTx>
|
|
587
|
+
>,
|
|
588
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
589
|
+
encodeCreateRollupTx(
|
|
590
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>,
|
|
591
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
592
|
+
encodeCreateTokenFactoryTx(
|
|
593
|
+
param: GraphQLClient.TxParam<
|
|
594
|
+
PartialDeep<GraphQLClient.CreateTokenFactoryTx>
|
|
595
|
+
>,
|
|
596
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
597
|
+
encodeCreateTokenTx(
|
|
598
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
|
|
599
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
600
|
+
encodeDelegateTx(
|
|
601
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>,
|
|
602
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
603
|
+
encodeDepositTokenV2Tx(
|
|
604
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
|
|
605
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
606
|
+
encodeExchangeTx(
|
|
607
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>,
|
|
608
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
609
|
+
encodeExchangeV2Tx(
|
|
610
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>,
|
|
611
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
612
|
+
encodeJoinRollupTx(
|
|
613
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>,
|
|
614
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
615
|
+
encodeLeaveRollupTx(
|
|
616
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
|
|
617
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
618
|
+
encodeMigrateRollupTx(
|
|
619
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>,
|
|
620
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
621
|
+
encodeMintAssetTx(
|
|
622
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>,
|
|
623
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
624
|
+
encodeMintTokenTx(
|
|
625
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>,
|
|
626
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
627
|
+
encodePauseRollupTx(
|
|
628
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
|
|
629
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
630
|
+
encodeResumeRollupTx(
|
|
631
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>,
|
|
632
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
633
|
+
encodeReturnStakeTx(
|
|
634
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ReturnStakeTx>>,
|
|
635
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
636
|
+
encodeRevokeDelegateTx(
|
|
637
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>,
|
|
638
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
639
|
+
encodeRevokeStakeTx(
|
|
640
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>,
|
|
641
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
642
|
+
encodeSlashStakeTx(
|
|
643
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>,
|
|
644
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
645
|
+
encodeStakeTx(
|
|
646
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
|
|
647
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
648
|
+
encodeTransferTx(
|
|
649
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>,
|
|
650
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
651
|
+
encodeTransferV2Tx(
|
|
652
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>,
|
|
653
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
654
|
+
encodeTransferV3Tx(
|
|
655
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>,
|
|
656
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
657
|
+
encodeUpdateAssetTx(
|
|
658
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>,
|
|
659
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
660
|
+
encodeUpdateRollupTx(
|
|
661
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
|
|
662
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
663
|
+
encodeUpdateTokenFactoryTx(
|
|
664
|
+
param: GraphQLClient.TxParam<
|
|
665
|
+
PartialDeep<GraphQLClient.UpdateTokenFactoryTx>
|
|
666
|
+
>,
|
|
667
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
668
|
+
encodeUpgradeNodeTx(
|
|
669
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>,
|
|
670
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
671
|
+
encodeWithdrawTokenV2Tx(
|
|
672
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>,
|
|
673
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
674
|
+
signAccountMigrateTx(
|
|
675
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>,
|
|
676
|
+
): Promise<GraphQLClient.Transaction>;
|
|
677
|
+
signAcquireAssetV2Tx(
|
|
678
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>,
|
|
679
|
+
): Promise<GraphQLClient.Transaction>;
|
|
680
|
+
signAcquireAssetV3Tx(
|
|
681
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
|
|
682
|
+
): Promise<GraphQLClient.Transaction>;
|
|
683
|
+
signBurnTokenTx(
|
|
684
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>,
|
|
685
|
+
): Promise<GraphQLClient.Transaction>;
|
|
686
|
+
signClaimBlockRewardTx(
|
|
687
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
|
|
688
|
+
): Promise<GraphQLClient.Transaction>;
|
|
689
|
+
signClaimStakeTx(
|
|
690
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>,
|
|
691
|
+
): Promise<GraphQLClient.Transaction>;
|
|
692
|
+
signCloseRollupTx(
|
|
693
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
|
|
694
|
+
): Promise<GraphQLClient.Transaction>;
|
|
695
|
+
signConsumeAssetTx(
|
|
696
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>,
|
|
697
|
+
): Promise<GraphQLClient.Transaction>;
|
|
698
|
+
signCreateAssetTx(
|
|
699
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
|
|
700
|
+
): Promise<GraphQLClient.Transaction>;
|
|
701
|
+
signCreateFactoryTx(
|
|
702
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>,
|
|
703
|
+
): Promise<GraphQLClient.Transaction>;
|
|
704
|
+
signCreateRollupBlockTx(
|
|
705
|
+
param: GraphQLClient.TxParam<
|
|
706
|
+
PartialDeep<GraphQLClient.CreateRollupBlockTx>
|
|
707
|
+
>,
|
|
708
|
+
): Promise<GraphQLClient.Transaction>;
|
|
709
|
+
signCreateRollupTx(
|
|
710
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>,
|
|
711
|
+
): Promise<GraphQLClient.Transaction>;
|
|
712
|
+
signCreateTokenFactoryTx(
|
|
713
|
+
param: GraphQLClient.TxParam<
|
|
714
|
+
PartialDeep<GraphQLClient.CreateTokenFactoryTx>
|
|
715
|
+
>,
|
|
716
|
+
): Promise<GraphQLClient.Transaction>;
|
|
717
|
+
signCreateTokenTx(
|
|
718
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
|
|
719
|
+
): Promise<GraphQLClient.Transaction>;
|
|
720
|
+
signDelegateTx(
|
|
721
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>,
|
|
722
|
+
): Promise<GraphQLClient.Transaction>;
|
|
723
|
+
signDepositTokenV2Tx(
|
|
724
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
|
|
725
|
+
): Promise<GraphQLClient.Transaction>;
|
|
726
|
+
signExchangeTx(
|
|
727
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>,
|
|
728
|
+
): Promise<GraphQLClient.Transaction>;
|
|
729
|
+
signExchangeV2Tx(
|
|
730
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>,
|
|
731
|
+
): Promise<GraphQLClient.Transaction>;
|
|
732
|
+
signJoinRollupTx(
|
|
733
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>,
|
|
734
|
+
): Promise<GraphQLClient.Transaction>;
|
|
735
|
+
signLeaveRollupTx(
|
|
736
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
|
|
737
|
+
): Promise<GraphQLClient.Transaction>;
|
|
738
|
+
signMigrateRollupTx(
|
|
739
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>,
|
|
740
|
+
): Promise<GraphQLClient.Transaction>;
|
|
741
|
+
signMintAssetTx(
|
|
742
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>,
|
|
743
|
+
): Promise<GraphQLClient.Transaction>;
|
|
744
|
+
signMintTokenTx(
|
|
745
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>,
|
|
746
|
+
): Promise<GraphQLClient.Transaction>;
|
|
747
|
+
signPauseRollupTx(
|
|
748
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
|
|
749
|
+
): Promise<GraphQLClient.Transaction>;
|
|
750
|
+
signResumeRollupTx(
|
|
751
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>,
|
|
752
|
+
): Promise<GraphQLClient.Transaction>;
|
|
753
|
+
signReturnStakeTx(
|
|
754
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ReturnStakeTx>>,
|
|
755
|
+
): Promise<GraphQLClient.Transaction>;
|
|
756
|
+
signRevokeDelegateTx(
|
|
757
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>,
|
|
758
|
+
): Promise<GraphQLClient.Transaction>;
|
|
759
|
+
signRevokeStakeTx(
|
|
760
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>,
|
|
761
|
+
): Promise<GraphQLClient.Transaction>;
|
|
762
|
+
signSlashStakeTx(
|
|
763
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>,
|
|
764
|
+
): Promise<GraphQLClient.Transaction>;
|
|
765
|
+
signStakeTx(
|
|
766
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
|
|
767
|
+
): Promise<GraphQLClient.Transaction>;
|
|
768
|
+
signTransferTx(
|
|
769
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>,
|
|
770
|
+
): Promise<GraphQLClient.Transaction>;
|
|
771
|
+
signTransferV2Tx(
|
|
772
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>,
|
|
773
|
+
): Promise<GraphQLClient.Transaction>;
|
|
774
|
+
signTransferV3Tx(
|
|
775
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>,
|
|
776
|
+
): Promise<GraphQLClient.Transaction>;
|
|
777
|
+
signUpdateAssetTx(
|
|
778
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>,
|
|
779
|
+
): Promise<GraphQLClient.Transaction>;
|
|
780
|
+
signUpdateRollupTx(
|
|
781
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
|
|
782
|
+
): Promise<GraphQLClient.Transaction>;
|
|
783
|
+
signUpdateTokenFactoryTx(
|
|
784
|
+
param: GraphQLClient.TxParam<
|
|
785
|
+
PartialDeep<GraphQLClient.UpdateTokenFactoryTx>
|
|
786
|
+
>,
|
|
787
|
+
): Promise<GraphQLClient.Transaction>;
|
|
788
|
+
signUpgradeNodeTx(
|
|
789
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>,
|
|
790
|
+
): Promise<GraphQLClient.Transaction>;
|
|
791
|
+
signWithdrawTokenV2Tx(
|
|
792
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>,
|
|
793
|
+
): Promise<GraphQLClient.Transaction>;
|
|
794
|
+
multiSignExchangeV2Tx(
|
|
795
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>,
|
|
796
|
+
): Promise<GraphQLClient.Transaction>;
|
|
797
|
+
multiSignTransferV3Tx(
|
|
798
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>,
|
|
799
|
+
): Promise<GraphQLClient.Transaction>;
|
|
800
|
+
multiSignAcquireAssetV3Tx(
|
|
801
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
|
|
802
|
+
): Promise<GraphQLClient.Transaction>;
|
|
803
|
+
multiSignStakeTx(
|
|
804
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
|
|
805
|
+
): Promise<GraphQLClient.Transaction>;
|
|
806
|
+
multiSignUpdateRollupTx(
|
|
807
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
|
|
808
|
+
): Promise<GraphQLClient.Transaction>;
|
|
809
|
+
multiSignJoinRollupTx(
|
|
810
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>,
|
|
811
|
+
): Promise<GraphQLClient.Transaction>;
|
|
812
|
+
multiSignLeaveRollupTx(
|
|
813
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
|
|
814
|
+
): Promise<GraphQLClient.Transaction>;
|
|
815
|
+
multiSignPauseRollupTx(
|
|
816
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
|
|
817
|
+
): Promise<GraphQLClient.Transaction>;
|
|
818
|
+
multiSignCloseRollupTx(
|
|
819
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
|
|
820
|
+
): Promise<GraphQLClient.Transaction>;
|
|
821
|
+
multiSignMigrateRollupTx(
|
|
822
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>,
|
|
823
|
+
): Promise<GraphQLClient.Transaction>;
|
|
824
|
+
multiSignResumeRollupTx(
|
|
825
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>,
|
|
826
|
+
): Promise<GraphQLClient.Transaction>;
|
|
827
|
+
multiSignDepositTokenV2Tx(
|
|
828
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
|
|
829
|
+
): Promise<GraphQLClient.Transaction>;
|
|
830
|
+
multiSignWithdrawTokenV2Tx(
|
|
831
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>,
|
|
832
|
+
): Promise<GraphQLClient.Transaction>;
|
|
833
|
+
multiSignCreateRollupBlockTx(
|
|
834
|
+
param: GraphQLClient.TxParam<
|
|
835
|
+
PartialDeep<GraphQLClient.CreateRollupBlockTx>
|
|
836
|
+
>,
|
|
837
|
+
): Promise<GraphQLClient.Transaction>;
|
|
838
|
+
multiSignClaimBlockRewardTx(
|
|
839
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
|
|
840
|
+
): Promise<GraphQLClient.Transaction>;
|
|
841
|
+
multiSignCreateAssetTx(
|
|
842
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
|
|
843
|
+
): Promise<GraphQLClient.Transaction>;
|
|
844
|
+
multiSignConsumeAssetTx(
|
|
845
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>,
|
|
846
|
+
): Promise<GraphQLClient.Transaction>;
|
|
847
|
+
multiSignMintTokenTx(
|
|
848
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>,
|
|
849
|
+
): Promise<GraphQLClient.Transaction>;
|
|
850
|
+
multiSignBurnTokenTx(
|
|
851
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>,
|
|
852
|
+
): Promise<GraphQLClient.Transaction>;
|
|
853
|
+
getAccountState(
|
|
854
|
+
params?: PartialDeep<GraphQLClient.GetAccountStateParams>,
|
|
855
|
+
): Promise<GraphQLClient.ResponseGetAccountState>;
|
|
856
|
+
getAssetState(
|
|
857
|
+
params?: PartialDeep<GraphQLClient.GetAssetStateParams>,
|
|
858
|
+
): Promise<GraphQLClient.ResponseGetAssetState>;
|
|
859
|
+
getFactoryState(
|
|
860
|
+
params?: PartialDeep<GraphQLClient.GetFactoryStateParams>,
|
|
861
|
+
): Promise<GraphQLClient.ResponseGetFactoryState>;
|
|
862
|
+
getDelegateState(
|
|
863
|
+
params?: PartialDeep<GraphQLClient.GetDelegateStateParams>,
|
|
864
|
+
): Promise<GraphQLClient.ResponseGetDelegateState>;
|
|
865
|
+
getTokenState(
|
|
866
|
+
params?: PartialDeep<GraphQLClient.GetTokenStateParams>,
|
|
867
|
+
): Promise<GraphQLClient.ResponseGetTokenState>;
|
|
868
|
+
getEvidenceState(
|
|
869
|
+
params?: PartialDeep<GraphQLClient.GetEvidenceStateParams>,
|
|
870
|
+
): Promise<GraphQLClient.ResponseGetEvidenceState>;
|
|
871
|
+
getForgeState(
|
|
872
|
+
params?: PartialDeep<GraphQLClient.GetForgeStateParams>,
|
|
873
|
+
): Promise<GraphQLClient.ResponseGetForgeState>;
|
|
874
|
+
getTokenFactoryState(
|
|
875
|
+
params?: PartialDeep<GraphQLClient.GetTokenFactoryStateParams>,
|
|
876
|
+
): Promise<GraphQLClient.ResponseGetTokenFactoryState>;
|
|
877
|
+
getTx(
|
|
878
|
+
params?: PartialDeep<GraphQLClient.GetTxParams>,
|
|
879
|
+
): Promise<GraphQLClient.ResponseGetTx>;
|
|
880
|
+
getBlock(
|
|
881
|
+
params?: PartialDeep<GraphQLClient.GetBlockParams>,
|
|
882
|
+
): Promise<GraphQLClient.ResponseGetBlock>;
|
|
883
|
+
getBlocks(
|
|
884
|
+
params?: PartialDeep<GraphQLClient.GetBlocksParams>,
|
|
885
|
+
): Promise<GraphQLClient.ResponseGetBlocks>;
|
|
886
|
+
getUnconfirmedTxs(
|
|
887
|
+
params?: PartialDeep<GraphQLClient.GetUnconfirmedTxsParams>,
|
|
888
|
+
): Promise<GraphQLClient.ResponseGetUnconfirmedTxs>;
|
|
889
|
+
getChainInfo(): Promise<GraphQLClient.ResponseGetChainInfo>;
|
|
890
|
+
getConfig(
|
|
891
|
+
params?: PartialDeep<GraphQLClient.GetConfigParams>,
|
|
892
|
+
): Promise<GraphQLClient.ResponseGetConfig>;
|
|
893
|
+
getNetInfo(): Promise<GraphQLClient.ResponseGetNetInfo>;
|
|
894
|
+
getNodeInfo(): Promise<GraphQLClient.ResponseGetNodeInfo>;
|
|
895
|
+
getValidatorsInfo(): Promise<GraphQLClient.ResponseGetValidatorsInfo>;
|
|
896
|
+
getForgeStats(): Promise<GraphQLClient.ResponseGetForgeStats>;
|
|
897
|
+
listAssetTransactions(
|
|
898
|
+
params?: PartialDeep<GraphQLClient.ListAssetTransactionsParams>,
|
|
899
|
+
): Promise<GraphQLClient.ResponseListAssetTransactions>;
|
|
900
|
+
listAssets(
|
|
901
|
+
params?: PartialDeep<GraphQLClient.ListAssetsParams>,
|
|
902
|
+
): Promise<GraphQLClient.ResponseListAssets>;
|
|
903
|
+
listBlocks(
|
|
904
|
+
params?: PartialDeep<GraphQLClient.ListBlocksParams>,
|
|
905
|
+
): Promise<GraphQLClient.ResponseListBlocks>;
|
|
906
|
+
listTopAccounts(
|
|
907
|
+
params?: PartialDeep<GraphQLClient.ListTopAccountsParams>,
|
|
908
|
+
): Promise<GraphQLClient.ResponseListTopAccounts>;
|
|
909
|
+
listTransactions(
|
|
910
|
+
params?: PartialDeep<GraphQLClient.ListTransactionsParams>,
|
|
911
|
+
): Promise<GraphQLClient.ResponseListTransactions>;
|
|
912
|
+
listTokens(
|
|
913
|
+
params?: PartialDeep<GraphQLClient.ListTokensParams>,
|
|
914
|
+
): Promise<GraphQLClient.ResponseListTokens>;
|
|
915
|
+
listFactories(
|
|
916
|
+
params?: PartialDeep<GraphQLClient.ListFactoriesParams>,
|
|
917
|
+
): Promise<GraphQLClient.ResponseListFactories>;
|
|
918
|
+
getAccountTokens(
|
|
919
|
+
params?: PartialDeep<GraphQLClient.GetAccountTokensParams>,
|
|
920
|
+
): Promise<GraphQLClient.ResponseGetAccountTokens>;
|
|
921
|
+
getStakeState(
|
|
922
|
+
params?: PartialDeep<GraphQLClient.GetStakeStateParams>,
|
|
923
|
+
): Promise<GraphQLClient.ResponseGetStakeState>;
|
|
924
|
+
listStakes(
|
|
925
|
+
params?: PartialDeep<GraphQLClient.ListStakesParams>,
|
|
926
|
+
): Promise<GraphQLClient.ResponseListStakes>;
|
|
927
|
+
getRollupState(
|
|
928
|
+
params?: PartialDeep<GraphQLClient.GetRollupStateParams>,
|
|
929
|
+
): Promise<GraphQLClient.ResponseGetRollupState>;
|
|
930
|
+
listRollups(
|
|
931
|
+
params?: PartialDeep<GraphQLClient.ListRollupsParams>,
|
|
932
|
+
): Promise<GraphQLClient.ResponseListRollups>;
|
|
933
|
+
getRollupBlock(
|
|
934
|
+
params?: PartialDeep<GraphQLClient.GetRollupBlockParams>,
|
|
935
|
+
): Promise<GraphQLClient.ResponseGetRollupBlock>;
|
|
936
|
+
listRollupBlocks(
|
|
937
|
+
params?: PartialDeep<GraphQLClient.ListRollupBlocksParams>,
|
|
938
|
+
): Promise<GraphQLClient.ResponseListRollupBlocks>;
|
|
939
|
+
listRollupValidators(
|
|
940
|
+
params?: PartialDeep<GraphQLClient.ListRollupValidatorsParams>,
|
|
941
|
+
): Promise<GraphQLClient.ResponseListRollupValidators>;
|
|
942
|
+
listDelegations(
|
|
943
|
+
params?: PartialDeep<GraphQLClient.ListDelegationsParams>,
|
|
944
|
+
): Promise<GraphQLClient.ResponseListDelegations>;
|
|
945
|
+
search(
|
|
946
|
+
params?: PartialDeep<GraphQLClient.SearchParams>,
|
|
947
|
+
): Promise<GraphQLClient.ResponseSearch>;
|
|
948
|
+
estimateGas(
|
|
949
|
+
params?: PartialDeep<GraphQLClient.EstimateGasParams>,
|
|
950
|
+
): Promise<GraphQLClient.ResponseEstimateGas>;
|
|
951
|
+
listTokenFlows(
|
|
952
|
+
params?: PartialDeep<GraphQLClient.ListTokenFlowsParams>,
|
|
953
|
+
): Promise<GraphQLClient.ResponseListTokenFlows>;
|
|
954
|
+
verifyAccountRisk(
|
|
955
|
+
params?: PartialDeep<GraphQLClient.VerifyAccountRiskParams>,
|
|
956
|
+
): Promise<GraphQLClient.ResponseVerifyAccountRisk>;
|
|
957
|
+
getTokenDistribution(
|
|
958
|
+
params?: PartialDeep<GraphQLClient.GetTokenDistributionParams>,
|
|
959
|
+
): Promise<GraphQLClient.ResponseGetTokenDistribution>;
|
|
960
|
+
listTokenFactories(
|
|
961
|
+
params?: PartialDeep<GraphQLClient.ListTokenFactoriesParams>,
|
|
962
|
+
): Promise<GraphQLClient.ResponseListTokenFactories>;
|
|
963
|
+
sendTx(
|
|
964
|
+
params?: PartialDeep<GraphQLClient.SendTxParams>,
|
|
965
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
493
966
|
}
|
|
494
967
|
|
|
495
968
|
declare namespace GraphQLClient {
|
|
496
969
|
interface Subscription<T> {
|
|
497
|
-
on(event:
|
|
498
|
-
on(event:
|
|
970
|
+
on(event: "data", fn: (data: T) => any): this;
|
|
971
|
+
on(event: "error", fn: (err: Error) => void): this;
|
|
499
972
|
}
|
|
500
973
|
|
|
501
974
|
interface TxParam<T> {
|
|
502
|
-
tx:
|
|
975
|
+
tx:
|
|
976
|
+
| {
|
|
503
977
|
nonce?: number;
|
|
504
978
|
from?: string;
|
|
505
979
|
pk?: string;
|
|
@@ -508,8 +982,9 @@ declare namespace GraphQLClient {
|
|
|
508
982
|
signature?: string;
|
|
509
983
|
signatures?: PartialDeep<GraphQLClient.Multisig>[];
|
|
510
984
|
itx?: T;
|
|
511
|
-
}
|
|
512
|
-
|
|
985
|
+
}
|
|
986
|
+
| Transaction;
|
|
987
|
+
wallet: WalletObject;
|
|
513
988
|
delegator?: string;
|
|
514
989
|
signature?: string;
|
|
515
990
|
}
|
|
@@ -526,7 +1001,6 @@ declare namespace GraphQLClient {
|
|
|
526
1001
|
buffer: Buffer;
|
|
527
1002
|
}
|
|
528
1003
|
|
|
529
|
-
|
|
530
1004
|
enum Direction {
|
|
531
1005
|
MUTUAL,
|
|
532
1006
|
ONE_WAY,
|
|
@@ -2174,6 +2648,7 @@ declare namespace GraphQLClient {
|
|
|
2174
2648
|
interface SearchResult {
|
|
2175
2649
|
type: string;
|
|
2176
2650
|
id: string;
|
|
2651
|
+
title: string;
|
|
2177
2652
|
}
|
|
2178
2653
|
|
|
2179
2654
|
interface SlashStakeTx {
|
|
@@ -2527,7 +3002,6 @@ declare namespace GraphQLClient {
|
|
|
2527
3002
|
data: GraphQLClient.Any;
|
|
2528
3003
|
}
|
|
2529
3004
|
|
|
2530
|
-
|
|
2531
3005
|
interface GetAccountStateParams {
|
|
2532
3006
|
address: string;
|
|
2533
3007
|
height: string;
|
|
@@ -2750,5 +3224,4 @@ declare namespace GraphQLClient {
|
|
|
2750
3224
|
wallet: string;
|
|
2751
3225
|
extra: string;
|
|
2752
3226
|
}
|
|
2753
|
-
|
|
2754
3227
|
}
|