@ocap/sdk 1.6.5 → 1.6.10
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/README.md +5 -6
- package/index.d.ts +1015 -735
- package/lib/sdk.js +1 -1
- package/package.json +22 -21
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as bnJs from 'bn.js';
|
|
1
2
|
/**
|
|
2
3
|
* Validates if a value is an Uint8Array.
|
|
3
4
|
*
|
|
@@ -103,15 +104,15 @@ declare function toDid(address: any): string;
|
|
|
103
104
|
declare function toAddress(did: string): string;
|
|
104
105
|
declare namespace ForgeSdkUtil {
|
|
105
106
|
export interface T100 {
|
|
106
|
-
BN:
|
|
107
|
+
BN: typeof bnJs;
|
|
107
108
|
isBN: (object: any) => boolean;
|
|
108
109
|
isBigNumber: (object: any) => boolean;
|
|
109
110
|
isHexPrefixed: (str: string) => boolean;
|
|
110
111
|
stripHexPrefix: (str: string) => any;
|
|
111
112
|
utf8ToHex: (str: string) => string;
|
|
112
113
|
hexToUtf8: (hex: string) => string;
|
|
113
|
-
numberToHex: (value:
|
|
114
|
-
hexToNumber: (value:
|
|
114
|
+
numberToHex: (value: string | number | bnJs) => string;
|
|
115
|
+
hexToNumber: (value: string | number | bnJs) => number;
|
|
115
116
|
isHex: (hex: string) => boolean;
|
|
116
117
|
isHexStrict: (hex: string) => boolean;
|
|
117
118
|
isUint8Array: typeof isUint8Array;
|
|
@@ -120,8 +121,8 @@ declare namespace ForgeSdkUtil {
|
|
|
120
121
|
toHex: (value: any, returnType: boolean) => string;
|
|
121
122
|
numberToString: (arg: any) => any;
|
|
122
123
|
fromUnitToToken: (input: string | number, decimal?: number, optionsInput?: any) => string;
|
|
123
|
-
fromTokenToUnit: (input: string, decimal?: number) =>
|
|
124
|
-
toBN: (number:
|
|
124
|
+
fromTokenToUnit: (input: string, decimal?: number) => bnJs;
|
|
125
|
+
toBN: (number: string | number | bnJs) => bnJs;
|
|
125
126
|
toUint8Array: typeof toUint8Array;
|
|
126
127
|
toBuffer: typeof toBuffer;
|
|
127
128
|
toBase58: typeof toBase58;
|
|
@@ -132,6 +133,9 @@ declare namespace ForgeSdkUtil {
|
|
|
132
133
|
isUUID: typeof isUUID;
|
|
133
134
|
toDid: typeof toDid;
|
|
134
135
|
toAddress: typeof toAddress;
|
|
136
|
+
formatTxType: (type: any) => any;
|
|
137
|
+
leftPad: any;
|
|
138
|
+
rightPad: any;
|
|
135
139
|
}
|
|
136
140
|
}
|
|
137
141
|
|
|
@@ -165,7 +169,7 @@ declare namespace ForgeSdkUtil {
|
|
|
165
169
|
* hash: types.HashType.SHA3,
|
|
166
170
|
* });
|
|
167
171
|
*/
|
|
168
|
-
declare function DidType(type?:
|
|
172
|
+
declare function DidType(type?: DidType | string): object;
|
|
169
173
|
/**
|
|
170
174
|
* Generate a wallet from secretKey
|
|
171
175
|
*
|
|
@@ -309,169 +313,8 @@ declare namespace ForgeSdkWallet {
|
|
|
309
313
|
}
|
|
310
314
|
}
|
|
311
315
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
*
|
|
315
|
-
* @public
|
|
316
|
-
* @static
|
|
317
|
-
* @param {string} type - input type
|
|
318
|
-
* @param {object} data - input data
|
|
319
|
-
* @returns {object} [almost same structure as input]
|
|
320
|
-
*/
|
|
321
|
-
declare function formatMessage(type: string, data: any): any;
|
|
322
|
-
/**
|
|
323
|
-
* Create an protobuf encoded Typed message with specified data, ready to send to rpc server
|
|
324
|
-
*
|
|
325
|
-
* @public
|
|
326
|
-
* @static
|
|
327
|
-
* @param {string} type - message type defined in forge-proto
|
|
328
|
-
* @param {object} params - message content
|
|
329
|
-
* @returns {object} Message instance
|
|
330
|
-
* @example
|
|
331
|
-
* const { createMessage } = require('@ocap/message');
|
|
332
|
-
* const message = createMessage ('CreateAssetTx', {
|
|
333
|
-
* moniker: 'asset',
|
|
334
|
-
* address: 'zaAKEJRKQWsdfjksdfjkASRD',
|
|
335
|
-
* });
|
|
336
|
-
*
|
|
337
|
-
* message.getMoniker(); // 'asset'
|
|
338
|
-
* message.getAddress(); // 'zaAKEJRKQWsdfjksdfjkASRD'
|
|
339
|
-
* message.getReadonly(); // false
|
|
340
|
-
* message.setReadonly(true);
|
|
341
|
-
*/
|
|
342
|
-
declare function createMessage(type: string, params: any): any;
|
|
343
|
-
/**
|
|
344
|
-
* Generated a fake message for a type, the message can be RPC request/response
|
|
345
|
-
*
|
|
346
|
-
* @public
|
|
347
|
-
* @static
|
|
348
|
-
* @param {string} type - Message type string, should be defined in forge-abi or forge-core-protocol
|
|
349
|
-
* @returns {object}
|
|
350
|
-
* @example
|
|
351
|
-
* const { fakeMessage} = require('@ocap/message');
|
|
352
|
-
* const message = fakeMessage('CreateAssetTx');
|
|
353
|
-
* // will output
|
|
354
|
-
* {
|
|
355
|
-
* moniker: 'arcblock',
|
|
356
|
-
* data: { type: 'string', value: 'ABCD 1234' },
|
|
357
|
-
* readonly: true,
|
|
358
|
-
* transferrable: true,
|
|
359
|
-
* ttl: 2,
|
|
360
|
-
* parent: 'arcblock',
|
|
361
|
-
* address: 'F2D072CBD4954A20F26280730795D91AC1039996CEB6E24A31E9CE548DCB5E55',
|
|
362
|
-
* }
|
|
363
|
-
*/
|
|
364
|
-
declare function fakeMessage(type: string): any;
|
|
365
|
-
/**
|
|
366
|
-
* Decode an google.protobuf.Any%{ typeUrl, value } => { type, value }
|
|
367
|
-
*
|
|
368
|
-
* @public
|
|
369
|
-
* @static
|
|
370
|
-
* @param {object} data encoded data object
|
|
371
|
-
* @returns {object} Object%{type, value}
|
|
372
|
-
*/
|
|
373
|
-
declare function decodeAny(data: any): any;
|
|
374
|
-
/**
|
|
375
|
-
* Encode { type, value } => google.protobuf.Any%{ typeUrl, value }
|
|
376
|
-
* Does nothing on already encoded message
|
|
377
|
-
*
|
|
378
|
-
* @public
|
|
379
|
-
* @static
|
|
380
|
-
* @param {object} data
|
|
381
|
-
* @returns {object} google.protobuf.Any
|
|
382
|
-
*/
|
|
383
|
-
declare function encodeAny(data: any): any;
|
|
384
|
-
/**
|
|
385
|
-
* Convert an { seconds, nanos } | date-string to google.protobuf.Timestamp object
|
|
386
|
-
*
|
|
387
|
-
* @public
|
|
388
|
-
* @static
|
|
389
|
-
* @param {string|object} value
|
|
390
|
-
* @returns {object} instanceof google.protobuf.Timestamp
|
|
391
|
-
*/
|
|
392
|
-
declare function encodeTimestamp(value: any): any;
|
|
393
|
-
/**
|
|
394
|
-
* Decode google.protobuf.Timestamp message to ISO Date String
|
|
395
|
-
*
|
|
396
|
-
* FIXME: node strictly equal because we rounded the `nanos` field
|
|
397
|
-
*
|
|
398
|
-
* @public
|
|
399
|
-
* @static
|
|
400
|
-
* @param {object} data
|
|
401
|
-
* @returns {strong} String timestamp
|
|
402
|
-
*/
|
|
403
|
-
declare function decodeTimestamp(data: any): any;
|
|
404
|
-
/**
|
|
405
|
-
* Encode BigUint and BigSint types defined in forge-sdk, double encoding is avoided
|
|
406
|
-
*
|
|
407
|
-
* @public
|
|
408
|
-
* @static
|
|
409
|
-
* @param {buffer|string|number} value - value to encode
|
|
410
|
-
* @param {string} type - type names defined in forge-proto
|
|
411
|
-
* @returns {object} Message
|
|
412
|
-
*/
|
|
413
|
-
declare function encodeBigInt(value: any, type: string): any;
|
|
414
|
-
/**
|
|
415
|
-
* Convert BigUint and BigSint to string representation of numbers
|
|
416
|
-
*
|
|
417
|
-
* @public
|
|
418
|
-
* @static
|
|
419
|
-
* @link https://stackoverflow.com/questions/23948278/how-to-convert-byte-array-into-a-signed-big-integer-in-javascript
|
|
420
|
-
* @param {object} data - usually from encodeBigInt
|
|
421
|
-
* @param {buffer} data.value
|
|
422
|
-
* @param {boolean} data.minus
|
|
423
|
-
* @returns {string} human readable number
|
|
424
|
-
*/
|
|
425
|
-
declare function decodeBigInt(data: _OcapMessage.T100): string;
|
|
426
|
-
/**
|
|
427
|
-
* Attach an $format method to rpc response
|
|
428
|
-
*
|
|
429
|
-
* @private
|
|
430
|
-
* @param {object} data
|
|
431
|
-
* @param {string} type
|
|
432
|
-
*/
|
|
433
|
-
declare function attachFormatFn(type: string, data: any, key?: string): void;
|
|
434
|
-
/**
|
|
435
|
-
* Attach an example method to
|
|
436
|
-
*
|
|
437
|
-
* @private
|
|
438
|
-
* @param {object} data
|
|
439
|
-
* @param {string} type
|
|
440
|
-
*/
|
|
441
|
-
declare function attachExampleFn(type: string, host: any, key: any): void;
|
|
442
|
-
/**
|
|
443
|
-
* Add type provider that can be used to format/create messages
|
|
444
|
-
*
|
|
445
|
-
* @param {object} provider - proto generated from {@see @ocap/proto}
|
|
446
|
-
*/
|
|
447
|
-
declare function addProvider(provider: any): void;
|
|
448
|
-
declare function getMessageType(type: any): any;
|
|
449
|
-
declare function toTypeUrl(type: any): any;
|
|
450
|
-
declare function fromTypeUrl(url: any): any;
|
|
451
|
-
declare const _OcapMessage: _OcapMessage.T101;
|
|
452
|
-
declare namespace _OcapMessage {
|
|
453
|
-
export interface T100 {
|
|
454
|
-
value: any;
|
|
455
|
-
minus: boolean;
|
|
456
|
-
}
|
|
457
|
-
export interface T101 {
|
|
458
|
-
formatMessage: typeof formatMessage;
|
|
459
|
-
createMessage: typeof createMessage;
|
|
460
|
-
fakeMessage: typeof fakeMessage;
|
|
461
|
-
decodeAny: typeof decodeAny;
|
|
462
|
-
encodeAny: typeof encodeAny;
|
|
463
|
-
encodeTimestamp: typeof encodeTimestamp;
|
|
464
|
-
decodeTimestamp: typeof decodeTimestamp;
|
|
465
|
-
encodeBigInt: typeof encodeBigInt;
|
|
466
|
-
decodeBigInt: typeof decodeBigInt;
|
|
467
|
-
attachFormatFn: typeof attachFormatFn;
|
|
468
|
-
attachExampleFn: typeof attachExampleFn;
|
|
469
|
-
addProvider: typeof addProvider;
|
|
470
|
-
getMessageType: typeof getMessageType;
|
|
471
|
-
toTypeUrl: typeof toTypeUrl;
|
|
472
|
-
fromTypeUrl: typeof fromTypeUrl;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
316
|
+
import * as LibMessage from './lib/message';
|
|
317
|
+
declare const _OcapMessage: typeof LibMessage;
|
|
475
318
|
export = _OcapMessage;
|
|
476
319
|
|
|
477
320
|
/**
|
|
@@ -560,6 +403,33 @@ declare function toTetherAddress(hash: string): string;
|
|
|
560
403
|
* @returns {string} swap address without `did:abt:` prefix
|
|
561
404
|
*/
|
|
562
405
|
declare function toSwapAddress(hash: string): string;
|
|
406
|
+
/**
|
|
407
|
+
* Create an token address
|
|
408
|
+
*
|
|
409
|
+
* @public
|
|
410
|
+
* @static
|
|
411
|
+
* @param {object} itx - an object of `CreateTokenTx`
|
|
412
|
+
* @returns {string} token address without `did:abt:` prefix
|
|
413
|
+
*/
|
|
414
|
+
declare function toTokenAddress(itx: any): string;
|
|
415
|
+
/**
|
|
416
|
+
* Create an factory address
|
|
417
|
+
*
|
|
418
|
+
* @public
|
|
419
|
+
* @static
|
|
420
|
+
* @param {object} itx - an object of `CreateFactoryTx`
|
|
421
|
+
* @returns {string} factory address without `did:abt:` prefix
|
|
422
|
+
*/
|
|
423
|
+
declare function toFactoryAddress(itx: any): string;
|
|
424
|
+
/**
|
|
425
|
+
* Create an rollup address
|
|
426
|
+
*
|
|
427
|
+
* @public
|
|
428
|
+
* @static
|
|
429
|
+
* @param {object} itx - an object of `CreateRollupTx`
|
|
430
|
+
* @returns {string} rollup address without `did:abt:` prefix
|
|
431
|
+
*/
|
|
432
|
+
declare function toRollupAddress(itx: any): string;
|
|
563
433
|
declare namespace ForgeSdkUtil {
|
|
564
434
|
export interface T100 {
|
|
565
435
|
toAssetAddress: typeof toAssetAddress;
|
|
@@ -571,6 +441,9 @@ declare namespace ForgeSdkUtil {
|
|
|
571
441
|
toStakeDid: typeof toStakeDid;
|
|
572
442
|
toTetherAddress: typeof toTetherAddress;
|
|
573
443
|
toSwapAddress: typeof toSwapAddress;
|
|
444
|
+
toTokenAddress: typeof toTokenAddress;
|
|
445
|
+
toFactoryAddress: typeof toFactoryAddress;
|
|
446
|
+
toRollupAddress: typeof toRollupAddress;
|
|
574
447
|
}
|
|
575
448
|
}
|
|
576
449
|
|
|
@@ -598,7 +471,6 @@ declare interface OcapSDK {
|
|
|
598
471
|
|
|
599
472
|
fromUnitToToken(value: string): Promise<string>;
|
|
600
473
|
fromTokenToUnit(amount: number): Promise<BN>;
|
|
601
|
-
toLocktime(number: number, options: any): Promise<number>;
|
|
602
474
|
getTxSendMethods(): Array<string>;
|
|
603
475
|
getTxSendMethods(): Array<string>;
|
|
604
476
|
getTxSignMethods(): Array<string>;
|
|
@@ -611,21 +483,14 @@ declare interface OcapSDK {
|
|
|
611
483
|
revokeDelegate(params: object, extra: any): Promise<string>;
|
|
612
484
|
createAsset(params: object, extra: any): Promise<string>;
|
|
613
485
|
updateAsset(params: object, extra: any): Promise<string>;
|
|
614
|
-
prepareConsumeAsset(params: object, extra: any): Promise<string>;
|
|
615
|
-
finalizeConsumeAsset(params: object, extra: any): Promise<string>;
|
|
616
486
|
consumeAsset(params: object, extra: any): Promise<string>;
|
|
617
487
|
createAssetFactory(params: object, extra: any): Promise<string>;
|
|
618
488
|
acquireAsset(params: object, extra: any): Promise<string>;
|
|
619
489
|
upgradeNode(params: object, extra: any): Promise<string>;
|
|
620
|
-
setupSwap(params: object, extra: any): Promise<string>;
|
|
621
|
-
retrieveSwap(params: object, extra: any): Promise<string>;
|
|
622
|
-
revokeSwap(params: object, extra: any): Promise<string>;
|
|
623
490
|
transfer(params: object, extra: any): Promise<string>;
|
|
624
491
|
prepareExchange(params: object, extra: any): Promise<string>;
|
|
625
492
|
finalizeExchange(params: object, extra: any): Promise<string>;
|
|
626
493
|
exchange(params: object, extra: any): Promise<string>;
|
|
627
|
-
checkin(params: object, extra: any): Promise<string>;
|
|
628
|
-
refuel(params: object, extra: any): Promise<string>;
|
|
629
494
|
|
|
630
495
|
generateQueryFns(): void;
|
|
631
496
|
generateSubscriptionFns(): void;
|
|
@@ -634,132 +499,221 @@ declare interface OcapSDK {
|
|
|
634
499
|
sendAccountMigrateTx(
|
|
635
500
|
param: GraphQLClient.TxParam<GraphQLClient.AccountMigrateTx>
|
|
636
501
|
): Promise<GraphQLClient.ResponseSendTx>;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
param: GraphQLClient.TxParam<GraphQLClient.ApproveWithdrawTx>
|
|
502
|
+
sendAcquireAssetV2Tx(
|
|
503
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV2Tx>
|
|
640
504
|
): Promise<GraphQLClient.ResponseSendTx>;
|
|
641
|
-
|
|
505
|
+
sendAcquireAssetV3Tx(
|
|
506
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
|
|
507
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
508
|
+
sendClaimBlockRewardTx(
|
|
509
|
+
param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
|
|
510
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
511
|
+
sendClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
642
512
|
sendCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
513
|
+
sendCreateFactoryTx(
|
|
514
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>
|
|
515
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
516
|
+
sendCreateRollupBlockTx(
|
|
517
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
|
|
518
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
519
|
+
sendCreateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.CreateRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
520
|
+
sendCreateTokenTx(param: GraphQLClient.TxParam<GraphQLClient.CreateTokenTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
643
521
|
sendDeclareTx(param: GraphQLClient.TxParam<GraphQLClient.DeclareTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
644
522
|
sendDelegateTx(param: GraphQLClient.TxParam<GraphQLClient.DelegateTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
645
|
-
|
|
523
|
+
sendDepositTokenV2Tx(
|
|
524
|
+
param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
|
|
525
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
646
526
|
sendExchangeTx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
527
|
+
sendExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
528
|
+
sendJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
529
|
+
sendLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
530
|
+
sendMigrateRollupContractTx(
|
|
531
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
|
|
532
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
533
|
+
sendMigrateRollupTokenTx(
|
|
534
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
|
|
535
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
536
|
+
sendMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
537
|
+
sendPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
538
|
+
sendResumeRollupTx(param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
650
539
|
sendRevokeDelegateTx(
|
|
651
540
|
param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
|
|
652
541
|
): Promise<GraphQLClient.ResponseSendTx>;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
param: GraphQLClient.TxParam<GraphQLClient.RevokeWithdrawTx>
|
|
656
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
657
|
-
sendSetupSwapTx(param: GraphQLClient.TxParam<GraphQLClient.SetupSwapTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
542
|
+
sendRevokeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.RevokeStakeTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
543
|
+
sendStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
658
544
|
sendTransferTx(param: GraphQLClient.TxParam<GraphQLClient.TransferTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
545
|
+
sendTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
546
|
+
sendTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
659
547
|
sendUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
660
|
-
|
|
661
|
-
param: GraphQLClient.TxParam<GraphQLClient.UpdateConsensusParamsTx>
|
|
662
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
663
|
-
sendUpdateValidatorTx(
|
|
664
|
-
param: GraphQLClient.TxParam<GraphQLClient.UpdateValidatorTx>
|
|
665
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
548
|
+
sendUpdateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
666
549
|
sendUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.ResponseSendTx>;
|
|
667
|
-
|
|
668
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
550
|
+
sendWithdrawTokenV2Tx(
|
|
551
|
+
param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
|
|
669
552
|
): Promise<GraphQLClient.ResponseSendTx>;
|
|
670
553
|
encodeAccountMigrateTx(
|
|
671
554
|
param: GraphQLClient.TxParam<GraphQLClient.AccountMigrateTx>
|
|
672
555
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
673
|
-
|
|
674
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
556
|
+
encodeAcquireAssetV2Tx(
|
|
557
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV2Tx>
|
|
675
558
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
676
|
-
|
|
677
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
559
|
+
encodeAcquireAssetV3Tx(
|
|
560
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
|
|
678
561
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
679
|
-
|
|
680
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
562
|
+
encodeClaimBlockRewardTx(
|
|
563
|
+
param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
|
|
681
564
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
565
|
+
encodeClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
682
566
|
encodeCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
567
|
+
encodeCreateFactoryTx(
|
|
568
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>
|
|
569
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
570
|
+
encodeCreateRollupBlockTx(
|
|
571
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
|
|
572
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
573
|
+
encodeCreateRollupTx(
|
|
574
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateRollupTx>
|
|
575
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
576
|
+
encodeCreateTokenTx(param: GraphQLClient.TxParam<GraphQLClient.CreateTokenTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
683
577
|
encodeDeclareTx(param: GraphQLClient.TxParam<GraphQLClient.DeclareTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
684
578
|
encodeDelegateTx(param: GraphQLClient.TxParam<GraphQLClient.DelegateTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
685
|
-
|
|
686
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
579
|
+
encodeDepositTokenV2Tx(
|
|
580
|
+
param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
|
|
687
581
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
688
582
|
encodeExchangeTx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
583
|
+
encodeExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
584
|
+
encodeJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
585
|
+
encodeLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
586
|
+
encodeMigrateRollupContractTx(
|
|
587
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
|
|
588
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
589
|
+
encodeMigrateRollupTokenTx(
|
|
590
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
|
|
591
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
592
|
+
encodeMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
593
|
+
encodePauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
594
|
+
encodeResumeRollupTx(
|
|
595
|
+
param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>
|
|
693
596
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
694
597
|
encodeRevokeDelegateTx(
|
|
695
598
|
param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
|
|
696
599
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
param: GraphQLClient.TxParam<GraphQLClient.RevokeWithdrawTx>
|
|
700
|
-
): Promise<GraphQLClient.EncodeTxResult>;
|
|
701
|
-
encodeSetupSwapTx(param: GraphQLClient.TxParam<GraphQLClient.SetupSwapTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
600
|
+
encodeRevokeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.RevokeStakeTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
601
|
+
encodeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
702
602
|
encodeTransferTx(param: GraphQLClient.TxParam<GraphQLClient.TransferTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
603
|
+
encodeTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
604
|
+
encodeTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
703
605
|
encodeUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
704
|
-
|
|
705
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
706
|
-
): Promise<GraphQLClient.EncodeTxResult>;
|
|
707
|
-
encodeUpdateValidatorTx(
|
|
708
|
-
param: GraphQLClient.TxParam<GraphQLClient.UpdateValidatorTx>
|
|
606
|
+
encodeUpdateRollupTx(
|
|
607
|
+
param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>
|
|
709
608
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
710
609
|
encodeUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.EncodeTxResult>;
|
|
711
|
-
|
|
712
|
-
param: GraphQLClient.TxParam<GraphQLClient.
|
|
610
|
+
encodeWithdrawTokenV2Tx(
|
|
611
|
+
param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
|
|
713
612
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
714
613
|
signAccountMigrateTx(
|
|
715
614
|
param: GraphQLClient.TxParam<GraphQLClient.AccountMigrateTx>
|
|
716
615
|
): Promise<GraphQLClient.Transaction>;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
616
|
+
signAcquireAssetV2Tx(
|
|
617
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV2Tx>
|
|
618
|
+
): Promise<GraphQLClient.Transaction>;
|
|
619
|
+
signAcquireAssetV3Tx(
|
|
620
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
|
|
720
621
|
): Promise<GraphQLClient.Transaction>;
|
|
721
|
-
|
|
622
|
+
signClaimBlockRewardTx(
|
|
623
|
+
param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
|
|
624
|
+
): Promise<GraphQLClient.Transaction>;
|
|
625
|
+
signClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.Transaction>;
|
|
722
626
|
signCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
|
|
627
|
+
signCreateFactoryTx(param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>): Promise<GraphQLClient.Transaction>;
|
|
628
|
+
signCreateRollupBlockTx(
|
|
629
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
|
|
630
|
+
): Promise<GraphQLClient.Transaction>;
|
|
631
|
+
signCreateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.CreateRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
632
|
+
signCreateTokenTx(param: GraphQLClient.TxParam<GraphQLClient.CreateTokenTx>): Promise<GraphQLClient.Transaction>;
|
|
723
633
|
signDeclareTx(param: GraphQLClient.TxParam<GraphQLClient.DeclareTx>): Promise<GraphQLClient.Transaction>;
|
|
724
634
|
signDelegateTx(param: GraphQLClient.TxParam<GraphQLClient.DelegateTx>): Promise<GraphQLClient.Transaction>;
|
|
725
|
-
|
|
635
|
+
signDepositTokenV2Tx(
|
|
636
|
+
param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
|
|
637
|
+
): Promise<GraphQLClient.Transaction>;
|
|
726
638
|
signExchangeTx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeTx>): Promise<GraphQLClient.Transaction>;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
639
|
+
signExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.Transaction>;
|
|
640
|
+
signJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
641
|
+
signLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
642
|
+
signMigrateRollupContractTx(
|
|
643
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
|
|
644
|
+
): Promise<GraphQLClient.Transaction>;
|
|
645
|
+
signMigrateRollupTokenTx(
|
|
646
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
|
|
647
|
+
): Promise<GraphQLClient.Transaction>;
|
|
648
|
+
signMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.Transaction>;
|
|
649
|
+
signPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
650
|
+
signResumeRollupTx(param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
730
651
|
signRevokeDelegateTx(
|
|
731
652
|
param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
|
|
732
653
|
): Promise<GraphQLClient.Transaction>;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
param: GraphQLClient.TxParam<GraphQLClient.RevokeWithdrawTx>
|
|
736
|
-
): Promise<GraphQLClient.Transaction>;
|
|
737
|
-
signSetupSwapTx(param: GraphQLClient.TxParam<GraphQLClient.SetupSwapTx>): Promise<GraphQLClient.Transaction>;
|
|
654
|
+
signRevokeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.RevokeStakeTx>): Promise<GraphQLClient.Transaction>;
|
|
655
|
+
signStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.Transaction>;
|
|
738
656
|
signTransferTx(param: GraphQLClient.TxParam<GraphQLClient.TransferTx>): Promise<GraphQLClient.Transaction>;
|
|
657
|
+
signTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.Transaction>;
|
|
658
|
+
signTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.Transaction>;
|
|
739
659
|
signUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.Transaction>;
|
|
740
|
-
|
|
741
|
-
|
|
660
|
+
signUpdateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
661
|
+
signUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.Transaction>;
|
|
662
|
+
signWithdrawTokenV2Tx(
|
|
663
|
+
param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
|
|
742
664
|
): Promise<GraphQLClient.Transaction>;
|
|
743
|
-
|
|
744
|
-
|
|
665
|
+
multiSignExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.Transaction>;
|
|
666
|
+
multiSignTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.Transaction>;
|
|
667
|
+
multiSignAcquireAssetV3Tx(
|
|
668
|
+
param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
|
|
745
669
|
): Promise<GraphQLClient.Transaction>;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
670
|
+
multiSignStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.Transaction>;
|
|
671
|
+
multiSignUpdateRollupTx(
|
|
672
|
+
param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>
|
|
673
|
+
): Promise<GraphQLClient.Transaction>;
|
|
674
|
+
multiSignJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
675
|
+
multiSignLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
676
|
+
multiSignPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.Transaction>;
|
|
677
|
+
multiSignResumeRollupTx(
|
|
678
|
+
param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>
|
|
679
|
+
): Promise<GraphQLClient.Transaction>;
|
|
680
|
+
multiSignDepositTokenV2Tx(
|
|
681
|
+
param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
|
|
682
|
+
): Promise<GraphQLClient.Transaction>;
|
|
683
|
+
multiSignWithdrawTokenV2Tx(
|
|
684
|
+
param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
|
|
685
|
+
): Promise<GraphQLClient.Transaction>;
|
|
686
|
+
multiSignCreateRollupBlockTx(
|
|
687
|
+
param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
|
|
688
|
+
): Promise<GraphQLClient.Transaction>;
|
|
689
|
+
multiSignClaimBlockRewardTx(
|
|
690
|
+
param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
|
|
691
|
+
): Promise<GraphQLClient.Transaction>;
|
|
692
|
+
multiSignMigrateRollupContractTx(
|
|
693
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
|
|
751
694
|
): Promise<GraphQLClient.Transaction>;
|
|
752
|
-
|
|
695
|
+
multiSignMigrateRollupTokenTx(
|
|
696
|
+
param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
|
|
697
|
+
): Promise<GraphQLClient.Transaction>;
|
|
698
|
+
multiSignCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
|
|
753
699
|
getAccountState(
|
|
754
700
|
params: GraphQLClient.GetAccountStateParams
|
|
755
701
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>;
|
|
756
702
|
getAssetState(
|
|
757
703
|
params: GraphQLClient.GetAssetStateParams
|
|
758
704
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAssetState>;
|
|
705
|
+
getFactoryState(
|
|
706
|
+
params: GraphQLClient.GetFactoryStateParams
|
|
707
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetFactoryState>;
|
|
759
708
|
getDelegateState(
|
|
760
709
|
params: GraphQLClient.GetDelegateStateParams
|
|
761
710
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetDelegateState>;
|
|
762
|
-
|
|
711
|
+
getTokenState(
|
|
712
|
+
params: GraphQLClient.GetTokenStateParams
|
|
713
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetTokenState>;
|
|
714
|
+
getEvidenceState(
|
|
715
|
+
params: GraphQLClient.GetEvidenceStateParams
|
|
716
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetEvidenceState>;
|
|
763
717
|
getForgeState(
|
|
764
718
|
params: GraphQLClient.GetForgeStateParams
|
|
765
719
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeState>;
|
|
@@ -771,36 +725,47 @@ declare interface OcapSDK {
|
|
|
771
725
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetUnconfirmedTxs>;
|
|
772
726
|
getChainInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetChainInfo>;
|
|
773
727
|
getConfig(params: GraphQLClient.GetConfigParams): GraphQLClient.QueryResult<GraphQLClient.ResponseGetConfig>;
|
|
774
|
-
getHealthStatus(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetHealthStatus>;
|
|
775
728
|
getNetInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNetInfo>;
|
|
776
729
|
getNodeInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetNodeInfo>;
|
|
777
730
|
getValidatorsInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetValidatorsInfo>;
|
|
778
731
|
getForgeStats(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
|
|
779
|
-
getForgeStatsByDay(
|
|
780
|
-
params: GraphQLClient.GetForgeStatsByDayParams
|
|
781
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
|
|
782
|
-
getForgeStatsByHour(
|
|
783
|
-
params: GraphQLClient.GetForgeStatsByHourParams
|
|
784
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>;
|
|
785
|
-
getSwapStatistics(
|
|
786
|
-
params: GraphQLClient.GetSwapStatisticsParams
|
|
787
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetSwapStatistics>;
|
|
788
732
|
listAssetTransactions(
|
|
789
733
|
params: GraphQLClient.ListAssetTransactionsParams
|
|
790
734
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions>;
|
|
791
735
|
listAssets(params: GraphQLClient.ListAssetsParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssets>;
|
|
792
736
|
listBlocks(params: GraphQLClient.ListBlocksParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListBlocks>;
|
|
793
|
-
listStakes(params: GraphQLClient.ListStakesParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListStakes>;
|
|
794
|
-
listSwap(params: GraphQLClient.ListSwapParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListSwap>;
|
|
795
737
|
listTopAccounts(
|
|
796
738
|
params: GraphQLClient.ListTopAccountsParams
|
|
797
739
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseListTopAccounts>;
|
|
798
740
|
listTransactions(
|
|
799
741
|
params: GraphQLClient.ListTransactionsParams
|
|
800
742
|
): GraphQLClient.QueryResult<GraphQLClient.ResponseListTransactions>;
|
|
743
|
+
listTokens(params: GraphQLClient.ListTokensParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListTokens>;
|
|
744
|
+
listFactories(
|
|
745
|
+
params: GraphQLClient.ListFactoriesParams
|
|
746
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseListFactories>;
|
|
747
|
+
getAccountTokens(
|
|
748
|
+
params: GraphQLClient.GetAccountTokensParams
|
|
749
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountTokens>;
|
|
750
|
+
getStakeState(
|
|
751
|
+
params: GraphQLClient.GetStakeStateParams
|
|
752
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetStakeState>;
|
|
753
|
+
listStakes(params: GraphQLClient.ListStakesParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListStakes>;
|
|
754
|
+
getRollupState(
|
|
755
|
+
params: GraphQLClient.GetRollupStateParams
|
|
756
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupState>;
|
|
757
|
+
listRollups(params: GraphQLClient.ListRollupsParams): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollups>;
|
|
758
|
+
getRollupBlock(
|
|
759
|
+
params: GraphQLClient.GetRollupBlockParams
|
|
760
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupBlock>;
|
|
761
|
+
listRollupBlocks(
|
|
762
|
+
params: GraphQLClient.ListRollupBlocksParams
|
|
763
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupBlocks>;
|
|
764
|
+
listRollupValidators(
|
|
765
|
+
params: GraphQLClient.ListRollupValidatorsParams
|
|
766
|
+
): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupValidators>;
|
|
767
|
+
search(params: GraphQLClient.SearchParams): GraphQLClient.QueryResult<GraphQLClient.ResponseSearch>;
|
|
801
768
|
sendTx(params: GraphQLClient.SendTxParams): GraphQLClient.QueryResult<GraphQLClient.ResponseSendTx>;
|
|
802
|
-
unsubscribe(params: GraphQLClient.UnsubscribeParams): GraphQLClient.QueryResult<GraphQLClient.ResponseUnsubscribe>;
|
|
803
|
-
subscribe(params: GraphQLClient.SubscribeParams): GraphQLClient.SubscriptionResult<GraphQLClient.ResponseSubscribe>;
|
|
804
769
|
}
|
|
805
770
|
|
|
806
771
|
declare namespace GraphQLClient {
|
|
@@ -904,6 +869,9 @@ declare namespace GraphQLClient {
|
|
|
904
869
|
ROLE_VC,
|
|
905
870
|
ROLE_BLOCKLET,
|
|
906
871
|
ROLE_REGISTRY,
|
|
872
|
+
ROLE_TOKEN,
|
|
873
|
+
ROLE_FACTORY,
|
|
874
|
+
ROLE_ROLLUP,
|
|
907
875
|
ROLE_ANY,
|
|
908
876
|
}
|
|
909
877
|
|
|
@@ -951,7 +919,6 @@ declare namespace GraphQLClient {
|
|
|
951
919
|
INVALID_DEPOSITOR,
|
|
952
920
|
INVALID_WITHDRAWER,
|
|
953
921
|
INVALID_EXPIRY_DATE,
|
|
954
|
-
INVALID_DEPOSIT,
|
|
955
922
|
INVALID_CUSTODIAN,
|
|
956
923
|
INSUFFICIENT_GAS,
|
|
957
924
|
INVALID_SWAP,
|
|
@@ -975,6 +942,12 @@ declare namespace GraphQLClient {
|
|
|
975
942
|
INVALID_CANDIDATE_STATE,
|
|
976
943
|
VALIDATOR_NOT_FOUND,
|
|
977
944
|
VALIDATOR_NOT_CHANGED,
|
|
945
|
+
INVALID_FACTORY_STATE,
|
|
946
|
+
INVALID_FACTORY_PROPS,
|
|
947
|
+
INVALID_FACTORY_INPUT,
|
|
948
|
+
INVALID_TOKEN,
|
|
949
|
+
INVALID_ROLLUP,
|
|
950
|
+
INVALID_BLOCK,
|
|
978
951
|
FORBIDDEN,
|
|
979
952
|
INTERNAL,
|
|
980
953
|
TIMEOUT,
|
|
@@ -1014,21 +987,21 @@ declare namespace GraphQLClient {
|
|
|
1014
987
|
INVALID,
|
|
1015
988
|
}
|
|
1016
989
|
|
|
990
|
+
export interface AccountFilterInput {}
|
|
991
|
+
|
|
1017
992
|
export interface AddressFilterInput {}
|
|
1018
993
|
|
|
1019
|
-
export interface
|
|
994
|
+
export interface AssetFilterInput {}
|
|
1020
995
|
|
|
1021
|
-
export interface
|
|
996
|
+
export interface FactoryFilterInput {}
|
|
1022
997
|
|
|
1023
|
-
export interface
|
|
998
|
+
export interface PageInput {}
|
|
1024
999
|
|
|
1025
|
-
export interface
|
|
1000
|
+
export interface PageOrderInput {}
|
|
1026
1001
|
|
|
1027
1002
|
export interface RangeFilterInput {}
|
|
1028
1003
|
|
|
1029
|
-
export interface
|
|
1030
|
-
|
|
1031
|
-
export interface RequestGetAssetStateInput {}
|
|
1004
|
+
export interface RequestGetAccountTokensInput {}
|
|
1032
1005
|
|
|
1033
1006
|
export interface RequestGetBlockInput {}
|
|
1034
1007
|
|
|
@@ -1036,29 +1009,31 @@ declare namespace GraphQLClient {
|
|
|
1036
1009
|
|
|
1037
1010
|
export interface RequestGetConfigInput {}
|
|
1038
1011
|
|
|
1039
|
-
export interface
|
|
1040
|
-
|
|
1041
|
-
export interface RequestGetForgeStateInput {}
|
|
1012
|
+
export interface RequestGetEvidenceStateInput {}
|
|
1042
1013
|
|
|
1043
|
-
export interface
|
|
1014
|
+
export interface RequestGetRollupBlockInput {}
|
|
1044
1015
|
|
|
1045
|
-
export interface
|
|
1016
|
+
export interface RequestGetStateInput {}
|
|
1046
1017
|
|
|
1047
1018
|
export interface RequestGetTxInput {}
|
|
1048
1019
|
|
|
1049
|
-
export interface RequestGetUnconfirmedTxsInput {}
|
|
1050
|
-
|
|
1051
|
-
export interface RequestListAccountInput {}
|
|
1052
|
-
|
|
1053
1020
|
export interface RequestListAssetTransactionsInput {}
|
|
1054
1021
|
|
|
1055
1022
|
export interface RequestListAssetsInput {}
|
|
1056
1023
|
|
|
1057
1024
|
export interface RequestListBlocksInput {}
|
|
1058
1025
|
|
|
1026
|
+
export interface RequestListFactoriesInput {}
|
|
1027
|
+
|
|
1028
|
+
export interface RequestListRollupBlocksInput {}
|
|
1029
|
+
|
|
1030
|
+
export interface RequestListRollupValidatorsInput {}
|
|
1031
|
+
|
|
1032
|
+
export interface RequestListRollupsInput {}
|
|
1033
|
+
|
|
1059
1034
|
export interface RequestListStakesInput {}
|
|
1060
1035
|
|
|
1061
|
-
export interface
|
|
1036
|
+
export interface RequestListTokensInput {}
|
|
1062
1037
|
|
|
1063
1038
|
export interface RequestListTopAccountsInput {}
|
|
1064
1039
|
|
|
@@ -1068,25 +1043,24 @@ declare namespace GraphQLClient {
|
|
|
1068
1043
|
|
|
1069
1044
|
export interface RequestSendTxInput {}
|
|
1070
1045
|
|
|
1071
|
-
export interface
|
|
1072
|
-
|
|
1073
|
-
export interface RequestUnsubscribeInput {}
|
|
1046
|
+
export interface RollupFilterInput {}
|
|
1074
1047
|
|
|
1075
1048
|
export interface TimeFilterInput {}
|
|
1076
1049
|
|
|
1050
|
+
export interface TokenFilterInput {}
|
|
1051
|
+
|
|
1052
|
+
export interface TxFilterInput {}
|
|
1053
|
+
|
|
1077
1054
|
export interface TypeFilterInput {}
|
|
1078
1055
|
|
|
1056
|
+
export interface ValidatorFilterInput {}
|
|
1057
|
+
|
|
1079
1058
|
export interface ValidityFilterInput {}
|
|
1080
1059
|
|
|
1081
1060
|
export interface WalletInfoInput {}
|
|
1082
1061
|
|
|
1083
1062
|
export interface WalletTypeInput {}
|
|
1084
1063
|
|
|
1085
|
-
export interface AbciServerStatus {
|
|
1086
|
-
abciConsensus: string;
|
|
1087
|
-
abciInfo: string;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
1064
|
export interface AccountConfig {
|
|
1091
1065
|
address: string;
|
|
1092
1066
|
pk: string;
|
|
@@ -1103,7 +1077,7 @@ declare namespace GraphQLClient {
|
|
|
1103
1077
|
export interface AccountState {
|
|
1104
1078
|
balance: string;
|
|
1105
1079
|
nonce: string;
|
|
1106
|
-
numTxs:
|
|
1080
|
+
numTxs: string;
|
|
1107
1081
|
address: string;
|
|
1108
1082
|
pk: string;
|
|
1109
1083
|
type: GraphQLClient.WalletType;
|
|
@@ -1113,18 +1087,34 @@ declare namespace GraphQLClient {
|
|
|
1113
1087
|
gasBalance: string;
|
|
1114
1088
|
migratedTo: Array<null>;
|
|
1115
1089
|
migratedFrom: Array<null>;
|
|
1116
|
-
numAssets:
|
|
1117
|
-
|
|
1118
|
-
pinnedFiles: GraphQLClient.CircularQueue;
|
|
1119
|
-
poke: GraphQLClient.PokeInfo;
|
|
1120
|
-
depositReceived: string;
|
|
1121
|
-
withdrawItems: GraphQLClient.CircularQueue;
|
|
1090
|
+
numAssets: string;
|
|
1091
|
+
tokens: Array<null>;
|
|
1122
1092
|
data: GraphQLClient.Any;
|
|
1123
1093
|
}
|
|
1124
1094
|
|
|
1125
|
-
export interface
|
|
1126
|
-
|
|
1127
|
-
|
|
1095
|
+
export interface AccountToken {
|
|
1096
|
+
address: string;
|
|
1097
|
+
symbol: string;
|
|
1098
|
+
balance: string;
|
|
1099
|
+
decimal: number;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export interface AcquireAssetV2Tx {
|
|
1103
|
+
factory: string;
|
|
1104
|
+
address: string;
|
|
1105
|
+
assets: Array<null>;
|
|
1106
|
+
variables: Array<null>;
|
|
1107
|
+
issuer: GraphQLClient.NFTIssuer;
|
|
1108
|
+
data: GraphQLClient.Any;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export interface AcquireAssetV3Tx {
|
|
1112
|
+
factory: string;
|
|
1113
|
+
address: string;
|
|
1114
|
+
inputs: Array<null>;
|
|
1115
|
+
owner: string;
|
|
1116
|
+
variables: Array<null>;
|
|
1117
|
+
issuer: GraphQLClient.NFTIssuer;
|
|
1128
1118
|
data: GraphQLClient.Any;
|
|
1129
1119
|
}
|
|
1130
1120
|
|
|
@@ -1133,9 +1123,37 @@ declare namespace GraphQLClient {
|
|
|
1133
1123
|
value: string;
|
|
1134
1124
|
}
|
|
1135
1125
|
|
|
1136
|
-
export interface
|
|
1126
|
+
export interface AssetFactoryHook {
|
|
1127
|
+
name: string;
|
|
1128
|
+
type: string;
|
|
1129
|
+
hook: string;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export interface AssetFactoryInput {
|
|
1133
|
+
value: string;
|
|
1134
|
+
tokens: Array<null>;
|
|
1135
|
+
assets: Array<null>;
|
|
1136
|
+
variables: Array<null>;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export interface AssetFactoryState {
|
|
1137
1140
|
address: string;
|
|
1138
|
-
|
|
1141
|
+
owner: string;
|
|
1142
|
+
name: string;
|
|
1143
|
+
description: string;
|
|
1144
|
+
settlement: string;
|
|
1145
|
+
limit: number;
|
|
1146
|
+
trustedIssuers: Array<null>;
|
|
1147
|
+
input: GraphQLClient.IndexedFactoryInput;
|
|
1148
|
+
output: GraphQLClient.CreateAssetTx;
|
|
1149
|
+
hooks: Array<null>;
|
|
1150
|
+
data: GraphQLClient.Any;
|
|
1151
|
+
context: GraphQLClient.StateContext;
|
|
1152
|
+
balance: string;
|
|
1153
|
+
tokens: Array<null>;
|
|
1154
|
+
numMinted: number;
|
|
1155
|
+
display: GraphQLClient.NFTDisplay;
|
|
1156
|
+
lastSettlement: string;
|
|
1139
1157
|
}
|
|
1140
1158
|
|
|
1141
1159
|
export interface AssetState {
|
|
@@ -1148,7 +1166,9 @@ declare namespace GraphQLClient {
|
|
|
1148
1166
|
consumedTime: string;
|
|
1149
1167
|
issuer: string;
|
|
1150
1168
|
parent: string;
|
|
1151
|
-
|
|
1169
|
+
endpoint: GraphQLClient.NFTEndpoint;
|
|
1170
|
+
display: GraphQLClient.NFTDisplay;
|
|
1171
|
+
tags: Array<null>;
|
|
1152
1172
|
context: GraphQLClient.StateContext;
|
|
1153
1173
|
data: GraphQLClient.Any;
|
|
1154
1174
|
}
|
|
@@ -1159,13 +1179,13 @@ declare namespace GraphQLClient {
|
|
|
1159
1179
|
}
|
|
1160
1180
|
|
|
1161
1181
|
export interface BlockInfo {
|
|
1162
|
-
height:
|
|
1182
|
+
height: string;
|
|
1163
1183
|
numTxs: number;
|
|
1164
1184
|
time: string;
|
|
1165
1185
|
appHash: string;
|
|
1166
1186
|
proposer: string;
|
|
1167
1187
|
txs: Array<null>;
|
|
1168
|
-
totalTxs:
|
|
1188
|
+
totalTxs: string;
|
|
1169
1189
|
invalidTxs: Array<null>;
|
|
1170
1190
|
txsHashes: Array<null>;
|
|
1171
1191
|
invalidTxsHashes: Array<null>;
|
|
@@ -1181,12 +1201,12 @@ declare namespace GraphQLClient {
|
|
|
1181
1201
|
}
|
|
1182
1202
|
|
|
1183
1203
|
export interface BlockInfoSimple {
|
|
1184
|
-
height:
|
|
1204
|
+
height: string;
|
|
1185
1205
|
numTxs: number;
|
|
1186
1206
|
time: string;
|
|
1187
1207
|
appHash: string;
|
|
1188
1208
|
proposer: string;
|
|
1189
|
-
totalTxs:
|
|
1209
|
+
totalTxs: string;
|
|
1190
1210
|
txsHashes: Array<null>;
|
|
1191
1211
|
invalidTxsHashes: Array<null>;
|
|
1192
1212
|
consensusHash: string;
|
|
@@ -1208,11 +1228,11 @@ declare namespace GraphQLClient {
|
|
|
1208
1228
|
synced: boolean;
|
|
1209
1229
|
appHash: string;
|
|
1210
1230
|
blockHash: string;
|
|
1211
|
-
blockHeight:
|
|
1231
|
+
blockHeight: string;
|
|
1212
1232
|
blockTime: string;
|
|
1213
1233
|
address: string;
|
|
1214
|
-
votingPower:
|
|
1215
|
-
totalTxs:
|
|
1234
|
+
votingPower: string;
|
|
1235
|
+
totalTxs: string;
|
|
1216
1236
|
version: string;
|
|
1217
1237
|
forgeAppsVersion: Array<null>;
|
|
1218
1238
|
supportedTxs: Array<null>;
|
|
@@ -1223,17 +1243,24 @@ declare namespace GraphQLClient {
|
|
|
1223
1243
|
value: string;
|
|
1224
1244
|
}
|
|
1225
1245
|
|
|
1226
|
-
export interface
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1246
|
+
export interface ClaimBlockRewardTx {
|
|
1247
|
+
rollup: string;
|
|
1248
|
+
blockHeight: number;
|
|
1249
|
+
blockHash: string;
|
|
1250
|
+
evidence: GraphQLClient.Evidence;
|
|
1251
|
+
publisher: string;
|
|
1252
|
+
data: GraphQLClient.Any;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
export interface ClaimStakeTx {
|
|
1256
|
+
address: string;
|
|
1257
|
+
evidence: GraphQLClient.Evidence;
|
|
1258
|
+
data: GraphQLClient.Any;
|
|
1232
1259
|
}
|
|
1233
1260
|
|
|
1234
1261
|
export interface ConsensusParams {
|
|
1235
|
-
maxBytes:
|
|
1236
|
-
maxGas:
|
|
1262
|
+
maxBytes: string;
|
|
1263
|
+
maxGas: string;
|
|
1237
1264
|
maxValidators: number;
|
|
1238
1265
|
maxCandidates: number;
|
|
1239
1266
|
pubKeyTypes: Array<null>;
|
|
@@ -1242,37 +1269,94 @@ declare namespace GraphQLClient {
|
|
|
1242
1269
|
paramChanged: boolean;
|
|
1243
1270
|
}
|
|
1244
1271
|
|
|
1245
|
-
export interface
|
|
1246
|
-
|
|
1247
|
-
synced: boolean;
|
|
1248
|
-
blockHeight: number;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
export interface ConsumeAssetTx {
|
|
1252
|
-
issuer: string;
|
|
1253
|
-
address: string;
|
|
1272
|
+
export interface CreateAssetTx {
|
|
1273
|
+
moniker: string;
|
|
1254
1274
|
data: GraphQLClient.Any;
|
|
1275
|
+
readonly: boolean;
|
|
1276
|
+
transferrable: boolean;
|
|
1277
|
+
ttl: number;
|
|
1278
|
+
parent: string;
|
|
1279
|
+
address: string;
|
|
1280
|
+
issuer: string;
|
|
1281
|
+
endpoint: GraphQLClient.NFTEndpoint;
|
|
1282
|
+
display: GraphQLClient.NFTDisplay;
|
|
1283
|
+
tags: Array<null>;
|
|
1255
1284
|
}
|
|
1256
1285
|
|
|
1257
|
-
export interface
|
|
1286
|
+
export interface CreateFactoryTx {
|
|
1258
1287
|
name: string;
|
|
1288
|
+
description: string;
|
|
1289
|
+
settlement: string;
|
|
1290
|
+
limit: number;
|
|
1291
|
+
trustedIssuers: Array<null>;
|
|
1292
|
+
input: GraphQLClient.AssetFactoryInput;
|
|
1293
|
+
output: GraphQLClient.CreateAssetTx;
|
|
1294
|
+
hooks: Array<null>;
|
|
1259
1295
|
address: string;
|
|
1296
|
+
display: GraphQLClient.NFTDisplay;
|
|
1297
|
+
data: GraphQLClient.Any;
|
|
1260
1298
|
}
|
|
1261
1299
|
|
|
1262
|
-
export interface
|
|
1263
|
-
|
|
1300
|
+
export interface CreateRollupBlockTx {
|
|
1301
|
+
hash: string;
|
|
1302
|
+
height: number;
|
|
1303
|
+
merkleRoot: string;
|
|
1304
|
+
previousHash: string;
|
|
1305
|
+
txsHash: string;
|
|
1306
|
+
txs: Array<null>;
|
|
1307
|
+
proposer: string;
|
|
1308
|
+
signatures: Array<null>;
|
|
1309
|
+
rollup: string;
|
|
1310
|
+
minReward: string;
|
|
1264
1311
|
data: GraphQLClient.Any;
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
parent: string;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export interface CreateRollupTx {
|
|
1269
1315
|
address: string;
|
|
1316
|
+
tokenAddress: string;
|
|
1317
|
+
contractAddress: string;
|
|
1318
|
+
seedValidators: Array<null>;
|
|
1319
|
+
minStakeAmount: string;
|
|
1320
|
+
maxStakeAmount: string;
|
|
1321
|
+
minSignerCount: number;
|
|
1322
|
+
maxSignerCount: number;
|
|
1323
|
+
minBlockSize: number;
|
|
1324
|
+
maxBlockSize: number;
|
|
1325
|
+
minBlockInterval: number;
|
|
1326
|
+
minBlockConfirmation: number;
|
|
1327
|
+
foreignChainType: string;
|
|
1328
|
+
foreignChainId: string;
|
|
1329
|
+
depositFeeRate: number;
|
|
1330
|
+
withdrawFeeRate: number;
|
|
1331
|
+
proposerFeeShare: number;
|
|
1332
|
+
minDepositAmount: string;
|
|
1333
|
+
minWithdrawAmount: string;
|
|
1334
|
+
maxDepositAmount: string;
|
|
1335
|
+
maxWithdrawAmount: string;
|
|
1336
|
+
minDepositFee: string;
|
|
1337
|
+
maxDepositFee: string;
|
|
1338
|
+
minWithdrawFee: string;
|
|
1339
|
+
maxWithdrawFee: string;
|
|
1340
|
+
paused: boolean;
|
|
1341
|
+
leaveWaitingPeriod: number;
|
|
1342
|
+
publisherFeeShare: number;
|
|
1343
|
+
publishWaitingPeriod: number;
|
|
1344
|
+
publishSlashRate: number;
|
|
1345
|
+
data: GraphQLClient.Any;
|
|
1270
1346
|
}
|
|
1271
1347
|
|
|
1272
|
-
export interface
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1348
|
+
export interface CreateTokenTx {
|
|
1349
|
+
name: string;
|
|
1350
|
+
description: string;
|
|
1351
|
+
symbol: string;
|
|
1352
|
+
unit: string;
|
|
1353
|
+
decimal: number;
|
|
1354
|
+
icon: string;
|
|
1355
|
+
totalSupply: string;
|
|
1356
|
+
address: string;
|
|
1357
|
+
initialSupply: string;
|
|
1358
|
+
foreignToken: GraphQLClient.ForeignToken;
|
|
1359
|
+
data: GraphQLClient.Any;
|
|
1276
1360
|
}
|
|
1277
1361
|
|
|
1278
1362
|
export interface DeclareTx {
|
|
@@ -1318,17 +1402,24 @@ declare namespace GraphQLClient {
|
|
|
1318
1402
|
data: GraphQLClient.Any;
|
|
1319
1403
|
}
|
|
1320
1404
|
|
|
1321
|
-
export interface
|
|
1322
|
-
|
|
1323
|
-
|
|
1405
|
+
export interface DepositTokenV2Tx {
|
|
1406
|
+
token: GraphQLClient.TokenInput;
|
|
1407
|
+
to: string;
|
|
1408
|
+
proposer: string;
|
|
1409
|
+
evidence: GraphQLClient.Evidence;
|
|
1410
|
+
rollup: string;
|
|
1411
|
+
actualFee: string;
|
|
1412
|
+
data: GraphQLClient.Any;
|
|
1324
1413
|
}
|
|
1325
1414
|
|
|
1326
1415
|
export interface Evidence {
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1416
|
+
hash: string;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
export interface EvidenceState {
|
|
1420
|
+
hash: string;
|
|
1421
|
+
data: string;
|
|
1422
|
+
context: GraphQLClient.StateContext;
|
|
1332
1423
|
}
|
|
1333
1424
|
|
|
1334
1425
|
export interface ExchangeInfo {
|
|
@@ -1336,6 +1427,12 @@ declare namespace GraphQLClient {
|
|
|
1336
1427
|
assets: Array<null>;
|
|
1337
1428
|
}
|
|
1338
1429
|
|
|
1430
|
+
export interface ExchangeInfoV2 {
|
|
1431
|
+
value: string;
|
|
1432
|
+
assets: Array<null>;
|
|
1433
|
+
tokens: Array<null>;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1339
1436
|
export interface ExchangeTx {
|
|
1340
1437
|
to: string;
|
|
1341
1438
|
sender: GraphQLClient.ExchangeInfo;
|
|
@@ -1344,37 +1441,34 @@ declare namespace GraphQLClient {
|
|
|
1344
1441
|
data: GraphQLClient.Any;
|
|
1345
1442
|
}
|
|
1346
1443
|
|
|
1444
|
+
export interface ExchangeV2Tx {
|
|
1445
|
+
to: string;
|
|
1446
|
+
sender: GraphQLClient.ExchangeInfoV2;
|
|
1447
|
+
receiver: GraphQLClient.ExchangeInfoV2;
|
|
1448
|
+
expiredAt: string;
|
|
1449
|
+
data: GraphQLClient.Any;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
export interface ForeignToken {
|
|
1453
|
+
type: string;
|
|
1454
|
+
contractAddress: string;
|
|
1455
|
+
chainType: string;
|
|
1456
|
+
chainName: string;
|
|
1457
|
+
chainId: number;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1347
1460
|
export interface ForgeState {
|
|
1348
1461
|
address: string;
|
|
1349
1462
|
consensus: GraphQLClient.ConsensusParams;
|
|
1350
1463
|
tasks: Array<null>;
|
|
1351
|
-
stakeSummary: Array<null>;
|
|
1352
1464
|
version: string;
|
|
1353
1465
|
token: GraphQLClient.ForgeToken;
|
|
1354
1466
|
txConfig: GraphQLClient.TransactionConfig;
|
|
1355
|
-
protocols: Array<null>;
|
|
1356
|
-
gas: Array<null>;
|
|
1357
1467
|
upgradeInfo: GraphQLClient.UpgradeInfo;
|
|
1358
1468
|
accountConfig: Array<null>;
|
|
1359
|
-
tokenSwapConfig: GraphQLClient.TokenSwapConfig;
|
|
1360
1469
|
data: GraphQLClient.Any;
|
|
1361
1470
|
}
|
|
1362
1471
|
|
|
1363
|
-
export interface ForgeState_AccountConfigEntry {
|
|
1364
|
-
key: string;
|
|
1365
|
-
value: GraphQLClient.AccountConfig;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
export interface ForgeState_GasEntry {
|
|
1369
|
-
key: string;
|
|
1370
|
-
value: number;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
export interface ForgeState_StakeSummaryEntry {
|
|
1374
|
-
key: number;
|
|
1375
|
-
value: GraphQLClient.StakeSummary;
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
1472
|
export interface ForgeState_TasksEntry {
|
|
1379
1473
|
key: number;
|
|
1380
1474
|
value: GraphQLClient.UpgradeTasks;
|
|
@@ -1396,20 +1490,12 @@ declare namespace GraphQLClient {
|
|
|
1396
1490
|
numTransferTxs: Array<null>;
|
|
1397
1491
|
numUpdateAssetTxs: Array<null>;
|
|
1398
1492
|
numConsumeAssetTxs: Array<null>;
|
|
1399
|
-
numPokeTxs: Array<null>;
|
|
1400
1493
|
tps: Array<null>;
|
|
1401
1494
|
maxTps: number;
|
|
1402
1495
|
avgTps: number;
|
|
1403
1496
|
avgBlockTime: number;
|
|
1404
1497
|
}
|
|
1405
1498
|
|
|
1406
|
-
export interface ForgeStatus {
|
|
1407
|
-
health: boolean;
|
|
1408
|
-
abiServer: string;
|
|
1409
|
-
forgeWeb: string;
|
|
1410
|
-
abciServer: GraphQLClient.AbciServerStatus;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
1499
|
export interface ForgeToken {
|
|
1414
1500
|
name: string;
|
|
1415
1501
|
symbol: string;
|
|
@@ -1417,9 +1503,10 @@ declare namespace GraphQLClient {
|
|
|
1417
1503
|
description: string;
|
|
1418
1504
|
icon: string;
|
|
1419
1505
|
decimal: number;
|
|
1420
|
-
initialSupply:
|
|
1421
|
-
totalSupply:
|
|
1506
|
+
initialSupply: string;
|
|
1507
|
+
totalSupply: string;
|
|
1422
1508
|
inflationRate: number;
|
|
1509
|
+
address: string;
|
|
1423
1510
|
}
|
|
1424
1511
|
|
|
1425
1512
|
export interface GeoInfo {
|
|
@@ -1429,37 +1516,11 @@ declare namespace GraphQLClient {
|
|
|
1429
1516
|
longitude: number;
|
|
1430
1517
|
}
|
|
1431
1518
|
|
|
1432
|
-
export interface Header {
|
|
1433
|
-
version: GraphQLClient.Version;
|
|
1434
|
-
chainId: string;
|
|
1435
|
-
height: number;
|
|
1436
|
-
time: string;
|
|
1437
|
-
numTxs: number;
|
|
1438
|
-
totalTxs: number;
|
|
1439
|
-
lastBlockId: GraphQLClient.BlockID;
|
|
1440
|
-
lastCommitHash: string;
|
|
1441
|
-
dataHash: string;
|
|
1442
|
-
validatorsHash: string;
|
|
1443
|
-
nextValidatorsHash: string;
|
|
1444
|
-
consensusHash: string;
|
|
1445
|
-
appHash: string;
|
|
1446
|
-
lastResultsHash: string;
|
|
1447
|
-
evidenceHash: string;
|
|
1448
|
-
proposerAddress: string;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
export interface HealthStatus {
|
|
1452
|
-
consensus: GraphQLClient.ConsensusStatus;
|
|
1453
|
-
network: GraphQLClient.NetworkStatus;
|
|
1454
|
-
storage: GraphQLClient.StorageStatus;
|
|
1455
|
-
forge: GraphQLClient.ForgeStatus;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
1519
|
export interface IndexedAccountState {
|
|
1459
1520
|
address: string;
|
|
1460
1521
|
balance: string;
|
|
1461
|
-
numAssets:
|
|
1462
|
-
numTxs:
|
|
1522
|
+
numAssets: string;
|
|
1523
|
+
numTxs: string;
|
|
1463
1524
|
nonce: string;
|
|
1464
1525
|
genesisTime: string;
|
|
1465
1526
|
renaissanceTime: string;
|
|
@@ -1470,6 +1531,7 @@ declare namespace GraphQLClient {
|
|
|
1470
1531
|
totalStakes: string;
|
|
1471
1532
|
totalUnstakes: string;
|
|
1472
1533
|
recentNumTxs: Array<null>;
|
|
1534
|
+
tokens: Array<null>;
|
|
1473
1535
|
}
|
|
1474
1536
|
|
|
1475
1537
|
export interface IndexedAssetState {
|
|
@@ -1483,27 +1545,169 @@ declare namespace GraphQLClient {
|
|
|
1483
1545
|
issuer: string;
|
|
1484
1546
|
parent: string;
|
|
1485
1547
|
transferrable: boolean;
|
|
1486
|
-
ttl:
|
|
1548
|
+
ttl: string;
|
|
1549
|
+
display: GraphQLClient.NFTDisplay;
|
|
1550
|
+
endpoint: GraphQLClient.NFTEndpoint;
|
|
1551
|
+
tags: Array<null>;
|
|
1487
1552
|
data: GraphQLClient.Any;
|
|
1488
1553
|
}
|
|
1489
1554
|
|
|
1490
1555
|
export interface IndexedBlock {
|
|
1491
|
-
height:
|
|
1556
|
+
height: string;
|
|
1492
1557
|
time: string;
|
|
1493
1558
|
proposer: string;
|
|
1494
|
-
numTxs:
|
|
1495
|
-
numInvalidTxs:
|
|
1559
|
+
numTxs: string;
|
|
1560
|
+
numInvalidTxs: string;
|
|
1496
1561
|
}
|
|
1497
1562
|
|
|
1498
|
-
export interface
|
|
1563
|
+
export interface IndexedFactoryInput {
|
|
1564
|
+
value: string;
|
|
1565
|
+
tokens: Array<null>;
|
|
1566
|
+
assets: Array<null>;
|
|
1567
|
+
variables: Array<null>;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
export interface IndexedFactoryState {
|
|
1499
1571
|
address: string;
|
|
1572
|
+
owner: string;
|
|
1573
|
+
name: string;
|
|
1574
|
+
description: string;
|
|
1575
|
+
settlement: string;
|
|
1576
|
+
limit: string;
|
|
1577
|
+
trustedIssuers: Array<null>;
|
|
1578
|
+
input: GraphQLClient.IndexedFactoryInput;
|
|
1579
|
+
output: GraphQLClient.CreateAssetTx;
|
|
1580
|
+
hooks: Array<null>;
|
|
1581
|
+
data: GraphQLClient.Any;
|
|
1500
1582
|
balance: string;
|
|
1583
|
+
tokens: Array<null>;
|
|
1584
|
+
numMinted: number;
|
|
1585
|
+
lastSettlement: string;
|
|
1586
|
+
genesisTime: string;
|
|
1587
|
+
renaissanceTime: string;
|
|
1588
|
+
display: GraphQLClient.NFTDisplay;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
export interface IndexedRollupBlock {
|
|
1592
|
+
hash: string;
|
|
1593
|
+
height: number;
|
|
1594
|
+
merkleRoot: string;
|
|
1595
|
+
previousHash: string;
|
|
1596
|
+
txsHash: string;
|
|
1597
|
+
txs: Array<null>;
|
|
1598
|
+
proposer: string;
|
|
1599
|
+
signatures: Array<null>;
|
|
1600
|
+
genesisTime: string;
|
|
1601
|
+
renaissanceTime: string;
|
|
1602
|
+
rollup: string;
|
|
1603
|
+
mintedAmount: string;
|
|
1604
|
+
burnedAmount: string;
|
|
1605
|
+
rewardAmount: string;
|
|
1606
|
+
tokenInfo: GraphQLClient.IndexedTokenInput;
|
|
1607
|
+
data: GraphQLClient.Any;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
export interface IndexedRollupState {
|
|
1611
|
+
address: string;
|
|
1612
|
+
tokenAddress: string;
|
|
1613
|
+
contractAddress: string;
|
|
1614
|
+
seedValidators: Array<null>;
|
|
1615
|
+
validators: Array<null>;
|
|
1616
|
+
minStakeAmount: string;
|
|
1617
|
+
maxStakeAmount: string;
|
|
1618
|
+
minSignerCount: number;
|
|
1619
|
+
maxSignerCount: number;
|
|
1620
|
+
minBlockSize: number;
|
|
1621
|
+
maxBlockSize: number;
|
|
1622
|
+
minBlockInterval: number;
|
|
1623
|
+
genesisTime: string;
|
|
1624
|
+
renaissanceTime: string;
|
|
1625
|
+
tokenInfo: GraphQLClient.IndexedTokenInput;
|
|
1626
|
+
issuer: string;
|
|
1627
|
+
depositFeeRate: number;
|
|
1628
|
+
withdrawFeeRate: number;
|
|
1629
|
+
proposerFeeShare: number;
|
|
1630
|
+
minDepositAmount: string;
|
|
1631
|
+
minWithdrawAmount: string;
|
|
1632
|
+
blockHeight: number;
|
|
1633
|
+
blockHash: string;
|
|
1634
|
+
minBlockConfirmation: number;
|
|
1635
|
+
totalDepositAmount: string;
|
|
1636
|
+
totalWithdrawAmount: string;
|
|
1637
|
+
maxDepositAmount: string;
|
|
1638
|
+
maxWithdrawAmount: string;
|
|
1639
|
+
minDepositFee: string;
|
|
1640
|
+
maxDepositFee: string;
|
|
1641
|
+
minWithdrawFee: string;
|
|
1642
|
+
maxWithdrawFee: string;
|
|
1643
|
+
paused: boolean;
|
|
1644
|
+
foreignToken: GraphQLClient.ForeignToken;
|
|
1645
|
+
leaveWaitingPeriod: number;
|
|
1646
|
+
publisherFeeShare: number;
|
|
1647
|
+
publishWaitingPeriod: number;
|
|
1648
|
+
publishSlashRate: number;
|
|
1649
|
+
migrateHistory: Array<null>;
|
|
1650
|
+
data: GraphQLClient.Any;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
export interface IndexedRollupValidator {
|
|
1654
|
+
pk: string;
|
|
1655
|
+
address: string;
|
|
1656
|
+
moniker: string;
|
|
1657
|
+
endpoint: string;
|
|
1658
|
+
joinTime: string;
|
|
1659
|
+
leaveTime: string;
|
|
1660
|
+
genesisTime: string;
|
|
1661
|
+
renaissanceTime: string;
|
|
1662
|
+
totalStake: string;
|
|
1663
|
+
revokedStake: string;
|
|
1664
|
+
availableStake: string;
|
|
1665
|
+
totalGain: string;
|
|
1666
|
+
proposedBlockCount: number;
|
|
1667
|
+
verifiedBlockCount: number;
|
|
1668
|
+
latestBlockHeight: number;
|
|
1669
|
+
latestBlockHash: string;
|
|
1670
|
+
rollup: string;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
export interface IndexedStakeState {
|
|
1674
|
+
address: string;
|
|
1501
1675
|
sender: string;
|
|
1502
1676
|
receiver: string;
|
|
1677
|
+
tokens: Array<null>;
|
|
1678
|
+
assets: Array<null>;
|
|
1679
|
+
revocable: boolean;
|
|
1503
1680
|
genesisTime: string;
|
|
1504
1681
|
renaissanceTime: string;
|
|
1505
1682
|
message: string;
|
|
1506
|
-
|
|
1683
|
+
revokeWaitingPeriod: number;
|
|
1684
|
+
revokedTokens: Array<null>;
|
|
1685
|
+
revokedAssets: Array<null>;
|
|
1686
|
+
data: GraphQLClient.Any;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
export interface IndexedTokenInput {
|
|
1690
|
+
address: string;
|
|
1691
|
+
value: string;
|
|
1692
|
+
decimal: number;
|
|
1693
|
+
unit: string;
|
|
1694
|
+
symbol: string;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
export interface IndexedTokenState {
|
|
1698
|
+
name: string;
|
|
1699
|
+
description: string;
|
|
1700
|
+
symbol: string;
|
|
1701
|
+
unit: string;
|
|
1702
|
+
decimal: number;
|
|
1703
|
+
issuer: string;
|
|
1704
|
+
icon: string;
|
|
1705
|
+
totalSupply: string;
|
|
1706
|
+
address: string;
|
|
1707
|
+
genesisTime: string;
|
|
1708
|
+
renaissanceTime: string;
|
|
1709
|
+
foreignToken: GraphQLClient.ForeignToken;
|
|
1710
|
+
data: GraphQLClient.Any;
|
|
1507
1711
|
}
|
|
1508
1712
|
|
|
1509
1713
|
export interface IndexedTransaction {
|
|
@@ -1515,6 +1719,16 @@ declare namespace GraphQLClient {
|
|
|
1515
1719
|
tx: GraphQLClient.Transaction;
|
|
1516
1720
|
valid: boolean;
|
|
1517
1721
|
code: string;
|
|
1722
|
+
tokenSymbols: Array<null>;
|
|
1723
|
+
receipts: Array<null>;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
export interface JoinRollupTx {
|
|
1727
|
+
rollup: string;
|
|
1728
|
+
endpoint: string;
|
|
1729
|
+
evidence: GraphQLClient.Evidence;
|
|
1730
|
+
signatures: Array<null>;
|
|
1731
|
+
data: GraphQLClient.Any;
|
|
1518
1732
|
}
|
|
1519
1733
|
|
|
1520
1734
|
export interface KVPair {
|
|
@@ -1522,9 +1736,34 @@ declare namespace GraphQLClient {
|
|
|
1522
1736
|
value: string;
|
|
1523
1737
|
}
|
|
1524
1738
|
|
|
1525
|
-
export interface
|
|
1526
|
-
|
|
1527
|
-
|
|
1739
|
+
export interface LeaveRollupTx {
|
|
1740
|
+
rollup: string;
|
|
1741
|
+
evidence: GraphQLClient.Evidence;
|
|
1742
|
+
signatures: Array<null>;
|
|
1743
|
+
data: GraphQLClient.Any;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
export interface MigrateRollupContractTx {
|
|
1747
|
+
rollup: string;
|
|
1748
|
+
to: string;
|
|
1749
|
+
data: GraphQLClient.Any;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export interface MigrateRollupTokenTx {
|
|
1753
|
+
rollup: string;
|
|
1754
|
+
from: string;
|
|
1755
|
+
to: string;
|
|
1756
|
+
token: GraphQLClient.TokenInput;
|
|
1757
|
+
data: GraphQLClient.Any;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
export interface MintAssetTx {
|
|
1761
|
+
factory: string;
|
|
1762
|
+
address: string;
|
|
1763
|
+
assets: Array<null>;
|
|
1764
|
+
variables: Array<null>;
|
|
1765
|
+
owner: string;
|
|
1766
|
+
data: GraphQLClient.Any;
|
|
1528
1767
|
}
|
|
1529
1768
|
|
|
1530
1769
|
export interface Multisig {
|
|
@@ -1535,6 +1774,22 @@ declare namespace GraphQLClient {
|
|
|
1535
1774
|
data: GraphQLClient.Any;
|
|
1536
1775
|
}
|
|
1537
1776
|
|
|
1777
|
+
export interface NFTDisplay {
|
|
1778
|
+
type: string;
|
|
1779
|
+
content: string;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
export interface NFTEndpoint {
|
|
1783
|
+
id: string;
|
|
1784
|
+
scope: string;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
export interface NFTIssuer {
|
|
1788
|
+
id: string;
|
|
1789
|
+
pk: string;
|
|
1790
|
+
name: string;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1538
1793
|
export interface NetInfo {
|
|
1539
1794
|
listening: boolean;
|
|
1540
1795
|
listeners: Array<null>;
|
|
@@ -1542,11 +1797,6 @@ declare namespace GraphQLClient {
|
|
|
1542
1797
|
peers: Array<null>;
|
|
1543
1798
|
}
|
|
1544
1799
|
|
|
1545
|
-
export interface NetworkStatus {
|
|
1546
|
-
health: boolean;
|
|
1547
|
-
numPeers: number;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
1800
|
export interface NodeInfo {
|
|
1551
1801
|
id: string;
|
|
1552
1802
|
network: string;
|
|
@@ -1555,17 +1805,17 @@ declare namespace GraphQLClient {
|
|
|
1555
1805
|
synced: boolean;
|
|
1556
1806
|
appHash: string;
|
|
1557
1807
|
blockHash: string;
|
|
1558
|
-
blockHeight:
|
|
1808
|
+
blockHeight: string;
|
|
1559
1809
|
blockTime: string;
|
|
1560
1810
|
address: string;
|
|
1561
|
-
votingPower:
|
|
1562
|
-
totalTxs:
|
|
1811
|
+
votingPower: string;
|
|
1812
|
+
totalTxs: string;
|
|
1563
1813
|
version: string;
|
|
1564
1814
|
forgeAppsVersion: Array<null>;
|
|
1565
1815
|
supportedTxs: Array<null>;
|
|
1566
1816
|
ip: string;
|
|
1567
1817
|
geoInfo: GraphQLClient.GeoInfo;
|
|
1568
|
-
|
|
1818
|
+
p2pAddress: string;
|
|
1569
1819
|
}
|
|
1570
1820
|
|
|
1571
1821
|
export interface NodeInfo_ForgeAppsVersionEntry {
|
|
@@ -1584,6 +1834,11 @@ declare namespace GraphQLClient {
|
|
|
1584
1834
|
hash: string;
|
|
1585
1835
|
}
|
|
1586
1836
|
|
|
1837
|
+
export interface PauseRollupTx {
|
|
1838
|
+
rollup: string;
|
|
1839
|
+
data: GraphQLClient.Any;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1587
1842
|
export interface PeerInfo {
|
|
1588
1843
|
id: string;
|
|
1589
1844
|
network: string;
|
|
@@ -1593,38 +1848,15 @@ declare namespace GraphQLClient {
|
|
|
1593
1848
|
geoInfo: GraphQLClient.GeoInfo;
|
|
1594
1849
|
}
|
|
1595
1850
|
|
|
1596
|
-
export interface PokeConfig {
|
|
1597
|
-
dailyLimit: number;
|
|
1598
|
-
amount: number;
|
|
1599
|
-
enabled: boolean;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
export interface PokeInfo {
|
|
1603
|
-
dailyLimit: string;
|
|
1604
|
-
leftover: string;
|
|
1605
|
-
amount: string;
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
export interface PokeTx {
|
|
1609
|
-
date: string;
|
|
1610
|
-
address: string;
|
|
1611
|
-
data: GraphQLClient.Any;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
1851
|
export interface PubKey {
|
|
1615
1852
|
type: string;
|
|
1616
1853
|
data: string;
|
|
1617
1854
|
}
|
|
1618
1855
|
|
|
1619
|
-
export interface
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
byzantineValidators: Array<null>;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
export interface RequestEndBlock {
|
|
1627
|
-
height: number;
|
|
1856
|
+
export interface ReceiptChange {
|
|
1857
|
+
target: string;
|
|
1858
|
+
action: string;
|
|
1859
|
+
value: string;
|
|
1628
1860
|
}
|
|
1629
1861
|
|
|
1630
1862
|
export interface ResponseGetAccountState {
|
|
@@ -1632,6 +1864,11 @@ declare namespace GraphQLClient {
|
|
|
1632
1864
|
state: GraphQLClient.AccountState;
|
|
1633
1865
|
}
|
|
1634
1866
|
|
|
1867
|
+
export interface ResponseGetAccountTokens {
|
|
1868
|
+
code: string;
|
|
1869
|
+
tokens: Array<null>;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1635
1872
|
export interface ResponseGetAssetState {
|
|
1636
1873
|
code: string;
|
|
1637
1874
|
state: GraphQLClient.AssetState;
|
|
@@ -1662,6 +1899,16 @@ declare namespace GraphQLClient {
|
|
|
1662
1899
|
state: GraphQLClient.DelegateState;
|
|
1663
1900
|
}
|
|
1664
1901
|
|
|
1902
|
+
export interface ResponseGetEvidenceState {
|
|
1903
|
+
code: string;
|
|
1904
|
+
state: GraphQLClient.EvidenceState;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
export interface ResponseGetFactoryState {
|
|
1908
|
+
code: string;
|
|
1909
|
+
state: GraphQLClient.AssetFactoryState;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1665
1912
|
export interface ResponseGetForgeState {
|
|
1666
1913
|
code: string;
|
|
1667
1914
|
state: GraphQLClient.ForgeState;
|
|
@@ -1672,11 +1919,6 @@ declare namespace GraphQLClient {
|
|
|
1672
1919
|
forgeStats: GraphQLClient.ForgeStats;
|
|
1673
1920
|
}
|
|
1674
1921
|
|
|
1675
|
-
export interface ResponseGetHealthStatus {
|
|
1676
|
-
code: string;
|
|
1677
|
-
healthStatus: GraphQLClient.HealthStatus;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
1922
|
export interface ResponseGetNetInfo {
|
|
1681
1923
|
code: string;
|
|
1682
1924
|
netInfo: GraphQLClient.NetInfo;
|
|
@@ -1687,14 +1929,24 @@ declare namespace GraphQLClient {
|
|
|
1687
1929
|
info: GraphQLClient.NodeInfo;
|
|
1688
1930
|
}
|
|
1689
1931
|
|
|
1690
|
-
export interface
|
|
1932
|
+
export interface ResponseGetRollupBlock {
|
|
1933
|
+
code: string;
|
|
1934
|
+
block: GraphQLClient.RollupBlock;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export interface ResponseGetRollupState {
|
|
1691
1938
|
code: string;
|
|
1692
|
-
state: GraphQLClient.
|
|
1939
|
+
state: GraphQLClient.RollupState;
|
|
1693
1940
|
}
|
|
1694
1941
|
|
|
1695
|
-
export interface
|
|
1942
|
+
export interface ResponseGetStakeState {
|
|
1696
1943
|
code: string;
|
|
1697
|
-
|
|
1944
|
+
state: GraphQLClient.StakeState;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
export interface ResponseGetTokenState {
|
|
1948
|
+
code: string;
|
|
1949
|
+
state: GraphQLClient.TokenState;
|
|
1698
1950
|
}
|
|
1699
1951
|
|
|
1700
1952
|
export interface ResponseGetTx {
|
|
@@ -1713,11 +1965,6 @@ declare namespace GraphQLClient {
|
|
|
1713
1965
|
validatorsInfo: GraphQLClient.ValidatorsInfo;
|
|
1714
1966
|
}
|
|
1715
1967
|
|
|
1716
|
-
export interface ResponseListAccount {
|
|
1717
|
-
code: string;
|
|
1718
|
-
account: GraphQLClient.IndexedAccountState;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
1968
|
export interface ResponseListAssetTransactions {
|
|
1722
1969
|
code: string;
|
|
1723
1970
|
page: GraphQLClient.PageInfo;
|
|
@@ -1736,184 +1983,67 @@ declare namespace GraphQLClient {
|
|
|
1736
1983
|
blocks: Array<null>;
|
|
1737
1984
|
}
|
|
1738
1985
|
|
|
1739
|
-
export interface
|
|
1986
|
+
export interface ResponseListFactories {
|
|
1740
1987
|
code: string;
|
|
1741
1988
|
page: GraphQLClient.PageInfo;
|
|
1742
|
-
|
|
1989
|
+
factories: Array<null>;
|
|
1743
1990
|
}
|
|
1744
1991
|
|
|
1745
|
-
export interface
|
|
1992
|
+
export interface ResponseListRollupBlocks {
|
|
1746
1993
|
code: string;
|
|
1747
1994
|
page: GraphQLClient.PageInfo;
|
|
1748
|
-
|
|
1995
|
+
blocks: Array<null>;
|
|
1749
1996
|
}
|
|
1750
1997
|
|
|
1751
|
-
export interface
|
|
1998
|
+
export interface ResponseListRollupValidators {
|
|
1752
1999
|
code: string;
|
|
1753
2000
|
page: GraphQLClient.PageInfo;
|
|
1754
|
-
|
|
2001
|
+
validators: Array<null>;
|
|
1755
2002
|
}
|
|
1756
2003
|
|
|
1757
|
-
export interface
|
|
2004
|
+
export interface ResponseListRollups {
|
|
1758
2005
|
code: string;
|
|
1759
2006
|
page: GraphQLClient.PageInfo;
|
|
1760
|
-
|
|
2007
|
+
rollups: Array<null>;
|
|
1761
2008
|
}
|
|
1762
2009
|
|
|
1763
|
-
export interface
|
|
2010
|
+
export interface ResponseListStakes {
|
|
1764
2011
|
code: string;
|
|
1765
|
-
|
|
2012
|
+
page: GraphQLClient.PageInfo;
|
|
2013
|
+
stakes: Array<null>;
|
|
1766
2014
|
}
|
|
1767
2015
|
|
|
1768
|
-
export interface
|
|
2016
|
+
export interface ResponseListTokens {
|
|
1769
2017
|
code: string;
|
|
1770
|
-
|
|
2018
|
+
page: GraphQLClient.PageInfo;
|
|
2019
|
+
tokens: Array<null>;
|
|
1771
2020
|
}
|
|
1772
2021
|
|
|
1773
|
-
export interface
|
|
2022
|
+
export interface ResponseListTopAccounts {
|
|
1774
2023
|
code: string;
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
export interface ResponseSubscribe_AccountMigrate {
|
|
1779
|
-
accountMigrate: GraphQLClient.Transaction;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
export interface ResponseSubscribe_AccountState {
|
|
1783
|
-
accountState: GraphQLClient.AccountState;
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
export interface ResponseSubscribe_AcquireAsset {
|
|
1787
|
-
acquireAsset: GraphQLClient.Transaction;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
export interface ResponseSubscribe_ApproveWithdraw {
|
|
1791
|
-
approveWithdraw: GraphQLClient.Transaction;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
export interface ResponseSubscribe_AssetState {
|
|
1795
|
-
assetState: GraphQLClient.AssetState;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
export interface ResponseSubscribe_BeginBlock {
|
|
1799
|
-
beginBlock: GraphQLClient.RequestBeginBlock;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
export interface ResponseSubscribe_Confirm {
|
|
1803
|
-
confirm: GraphQLClient.Transaction;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
export interface ResponseSubscribe_ConsensusUpgrade {
|
|
1807
|
-
consensusUpgrade: GraphQLClient.Transaction;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
export interface ResponseSubscribe_ConsumeAsset {
|
|
1811
|
-
consumeAsset: GraphQLClient.Transaction;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export interface ResponseSubscribe_CreateAsset {
|
|
1815
|
-
createAsset: GraphQLClient.Transaction;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
export interface ResponseSubscribe_Declare {
|
|
1819
|
-
declare: GraphQLClient.Transaction;
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
export interface ResponseSubscribe_Delegate {
|
|
1823
|
-
delegate: GraphQLClient.Transaction;
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
export interface ResponseSubscribe_DelegateState {
|
|
1827
|
-
delegateState: GraphQLClient.DelegateState;
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
export interface ResponseSubscribe_DepositToken {
|
|
1831
|
-
depositToken: GraphQLClient.Transaction;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
export interface ResponseSubscribe_EndBlock {
|
|
1835
|
-
endBlock: GraphQLClient.RequestEndBlock;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
export interface ResponseSubscribe_Exchange {
|
|
1839
|
-
exchange: GraphQLClient.Transaction;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
export interface ResponseSubscribe_ForgeState {
|
|
1843
|
-
forgeState: GraphQLClient.ForgeState;
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
export interface ResponseSubscribe_Poke {
|
|
1847
|
-
poke: GraphQLClient.Transaction;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
export interface ResponseSubscribe_RetrieveSwap {
|
|
1851
|
-
retrieveSwap: GraphQLClient.Transaction;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
export interface ResponseSubscribe_RevokeDelegate {
|
|
1855
|
-
revokeDelegate: GraphQLClient.Transaction;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
export interface ResponseSubscribe_RevokeSwap {
|
|
1859
|
-
revokeSwap: GraphQLClient.Transaction;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
export interface ResponseSubscribe_RevokeWithdraw {
|
|
1863
|
-
revokeWithdraw: GraphQLClient.Transaction;
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
export interface ResponseSubscribe_SetupSwap {
|
|
1867
|
-
setupSwap: GraphQLClient.Transaction;
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
export interface ResponseSubscribe_Stake {
|
|
1871
|
-
stake: GraphQLClient.Transaction;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
export interface ResponseSubscribe_SwapState {
|
|
1875
|
-
swapState: GraphQLClient.SwapState;
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
export interface ResponseSubscribe_SysUpgrade {
|
|
1879
|
-
sysUpgrade: GraphQLClient.Transaction;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
export interface ResponseSubscribe_Topic {
|
|
1883
|
-
topic: string;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
export interface ResponseSubscribe_Transfer {
|
|
1887
|
-
transfer: GraphQLClient.Transaction;
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
export interface ResponseSubscribe_UpdateAsset {
|
|
1891
|
-
updateAsset: GraphQLClient.Transaction;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
export interface ResponseSubscribe_UpdateConsensusParams {
|
|
1895
|
-
updateConsensusParams: GraphQLClient.Transaction;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
export interface ResponseSubscribe_UpdateValidator {
|
|
1899
|
-
updateValidator: GraphQLClient.Transaction;
|
|
2024
|
+
page: GraphQLClient.PageInfo;
|
|
2025
|
+
accounts: Array<null>;
|
|
1900
2026
|
}
|
|
1901
2027
|
|
|
1902
|
-
export interface
|
|
1903
|
-
|
|
2028
|
+
export interface ResponseListTransactions {
|
|
2029
|
+
code: string;
|
|
2030
|
+
page: GraphQLClient.PageInfo;
|
|
2031
|
+
transactions: Array<null>;
|
|
1904
2032
|
}
|
|
1905
2033
|
|
|
1906
|
-
export interface
|
|
1907
|
-
|
|
2034
|
+
export interface ResponseSearch {
|
|
2035
|
+
code: string;
|
|
2036
|
+
page: GraphQLClient.PageInfo;
|
|
2037
|
+
results: Array<null>;
|
|
1908
2038
|
}
|
|
1909
2039
|
|
|
1910
|
-
export interface
|
|
2040
|
+
export interface ResponseSendTx {
|
|
1911
2041
|
code: string;
|
|
2042
|
+
hash: string;
|
|
1912
2043
|
}
|
|
1913
2044
|
|
|
1914
|
-
export interface
|
|
1915
|
-
|
|
1916
|
-
hashkey: string;
|
|
2045
|
+
export interface ResumeRollupTx {
|
|
2046
|
+
rollup: string;
|
|
1917
2047
|
data: GraphQLClient.Any;
|
|
1918
2048
|
}
|
|
1919
2049
|
|
|
@@ -1924,37 +2054,106 @@ declare namespace GraphQLClient {
|
|
|
1924
2054
|
data: GraphQLClient.Any;
|
|
1925
2055
|
}
|
|
1926
2056
|
|
|
1927
|
-
export interface
|
|
2057
|
+
export interface RevokeStakeTx {
|
|
1928
2058
|
address: string;
|
|
2059
|
+
outputs: Array<null>;
|
|
1929
2060
|
data: GraphQLClient.Any;
|
|
1930
2061
|
}
|
|
1931
2062
|
|
|
1932
|
-
export interface
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
2063
|
+
export interface RollupBlock {
|
|
2064
|
+
hash: string;
|
|
2065
|
+
height: number;
|
|
2066
|
+
merkleRoot: string;
|
|
2067
|
+
previousHash: string;
|
|
2068
|
+
txsHash: string;
|
|
2069
|
+
txs: Array<null>;
|
|
2070
|
+
proposer: string;
|
|
2071
|
+
signatures: Array<null>;
|
|
2072
|
+
rollup: string;
|
|
2073
|
+
mintedAmount: string;
|
|
2074
|
+
burnedAmount: string;
|
|
2075
|
+
rewardAmount: string;
|
|
2076
|
+
minReward: string;
|
|
2077
|
+
context: GraphQLClient.StateContext;
|
|
1938
2078
|
data: GraphQLClient.Any;
|
|
1939
2079
|
}
|
|
1940
2080
|
|
|
1941
|
-
export interface
|
|
1942
|
-
|
|
1943
|
-
|
|
2081
|
+
export interface RollupState {
|
|
2082
|
+
address: string;
|
|
2083
|
+
tokenAddress: string;
|
|
2084
|
+
contractAddress: string;
|
|
2085
|
+
seedValidators: Array<null>;
|
|
2086
|
+
validators: Array<null>;
|
|
2087
|
+
minStakeAmount: string;
|
|
2088
|
+
maxStakeAmount: string;
|
|
2089
|
+
minSignerCount: number;
|
|
2090
|
+
maxSignerCount: number;
|
|
2091
|
+
minBlockSize: number;
|
|
2092
|
+
maxBlockSize: number;
|
|
2093
|
+
minBlockInterval: number;
|
|
2094
|
+
minBlockConfirmation: number;
|
|
2095
|
+
issuer: string;
|
|
2096
|
+
depositFeeRate: number;
|
|
2097
|
+
withdrawFeeRate: number;
|
|
2098
|
+
proposerFeeShare: number;
|
|
2099
|
+
publisherFeeShare: number;
|
|
2100
|
+
minDepositAmount: string;
|
|
2101
|
+
minWithdrawAmount: string;
|
|
2102
|
+
blockHeight: number;
|
|
2103
|
+
blockHash: string;
|
|
2104
|
+
tokenInfo: GraphQLClient.IndexedTokenInput;
|
|
2105
|
+
totalDepositAmount: string;
|
|
2106
|
+
totalWithdrawAmount: string;
|
|
2107
|
+
maxDepositAmount: string;
|
|
2108
|
+
maxWithdrawAmount: string;
|
|
2109
|
+
minDepositFee: string;
|
|
2110
|
+
maxDepositFee: string;
|
|
2111
|
+
minWithdrawFee: string;
|
|
2112
|
+
maxWithdrawFee: string;
|
|
2113
|
+
paused: boolean;
|
|
2114
|
+
foreignToken: GraphQLClient.ForeignToken;
|
|
2115
|
+
leaveWaitingPeriod: number;
|
|
2116
|
+
publishWaitingPeriod: number;
|
|
2117
|
+
publishSlashRate: number;
|
|
2118
|
+
migrateHistory: Array<null>;
|
|
2119
|
+
context: GraphQLClient.StateContext;
|
|
2120
|
+
data: GraphQLClient.Any;
|
|
1944
2121
|
}
|
|
1945
2122
|
|
|
1946
|
-
export interface
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
recentStakes: GraphQLClient.CircularQueue;
|
|
1951
|
-
recentReceivedStakes: GraphQLClient.CircularQueue;
|
|
2123
|
+
export interface RollupValidator {
|
|
2124
|
+
pk: string;
|
|
2125
|
+
address: string;
|
|
2126
|
+
endpoint: string;
|
|
1952
2127
|
}
|
|
1953
2128
|
|
|
1954
|
-
export interface
|
|
1955
|
-
|
|
1956
|
-
|
|
2129
|
+
export interface SearchResult {
|
|
2130
|
+
type: string;
|
|
2131
|
+
id: string;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
export interface StakeState {
|
|
2135
|
+
address: string;
|
|
2136
|
+
sender: string;
|
|
2137
|
+
receiver: string;
|
|
2138
|
+
tokens: Array<null>;
|
|
2139
|
+
assets: Array<null>;
|
|
2140
|
+
revocable: boolean;
|
|
2141
|
+
message: string;
|
|
2142
|
+
revokeWaitingPeriod: number;
|
|
2143
|
+
revokedTokens: Array<null>;
|
|
2144
|
+
revokedAssets: Array<null>;
|
|
1957
2145
|
context: GraphQLClient.StateContext;
|
|
2146
|
+
data: GraphQLClient.Any;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
export interface StakeTx {
|
|
2150
|
+
address: string;
|
|
2151
|
+
receiver: string;
|
|
2152
|
+
inputs: Array<null>;
|
|
2153
|
+
locked: boolean;
|
|
2154
|
+
message: string;
|
|
2155
|
+
revokeWaitingPeriod: number;
|
|
2156
|
+
data: GraphQLClient.Any;
|
|
1958
2157
|
}
|
|
1959
2158
|
|
|
1960
2159
|
export interface StateContext {
|
|
@@ -1964,40 +2163,39 @@ declare namespace GraphQLClient {
|
|
|
1964
2163
|
renaissanceTime: string;
|
|
1965
2164
|
}
|
|
1966
2165
|
|
|
1967
|
-
export interface
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
2166
|
+
export interface TokenInfo {
|
|
2167
|
+
address: string;
|
|
2168
|
+
balance: string;
|
|
2169
|
+
decimal: number;
|
|
2170
|
+
unit: string;
|
|
2171
|
+
symbol: string;
|
|
1972
2172
|
}
|
|
1973
2173
|
|
|
1974
|
-
export interface
|
|
1975
|
-
hash: string;
|
|
2174
|
+
export interface TokenInput {
|
|
1976
2175
|
address: string;
|
|
1977
|
-
hashkey: string;
|
|
1978
|
-
sender: string;
|
|
1979
|
-
receiver: string;
|
|
1980
2176
|
value: string;
|
|
1981
|
-
assets: Array<null>;
|
|
1982
|
-
locktime: number;
|
|
1983
|
-
hashlock: string;
|
|
1984
|
-
context: GraphQLClient.StateContext;
|
|
1985
2177
|
}
|
|
1986
2178
|
|
|
1987
|
-
export interface
|
|
2179
|
+
export interface TokenState {
|
|
1988
2180
|
address: string;
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
2181
|
+
issuer: string;
|
|
2182
|
+
name: string;
|
|
2183
|
+
description: string;
|
|
2184
|
+
symbol: string;
|
|
2185
|
+
unit: string;
|
|
2186
|
+
decimal: number;
|
|
2187
|
+
icon: string;
|
|
2188
|
+
totalSupply: string;
|
|
2189
|
+
foreignToken: GraphQLClient.ForeignToken;
|
|
2190
|
+
context: GraphQLClient.StateContext;
|
|
2191
|
+
data: GraphQLClient.Any;
|
|
1993
2192
|
}
|
|
1994
2193
|
|
|
1995
|
-
export interface
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
maxCommission: string;
|
|
2194
|
+
export interface TokenSymbol {
|
|
2195
|
+
address: string;
|
|
2196
|
+
symbol: string;
|
|
2197
|
+
decimal: number;
|
|
2198
|
+
unit: string;
|
|
2001
2199
|
}
|
|
2002
2200
|
|
|
2003
2201
|
export interface Transaction {
|
|
@@ -2009,27 +2207,42 @@ declare namespace GraphQLClient {
|
|
|
2009
2207
|
signature: string;
|
|
2010
2208
|
signatures: Array<Multisig>;
|
|
2011
2209
|
itxJson: undefined;
|
|
2210
|
+
sender: string;
|
|
2211
|
+
receiver: string;
|
|
2212
|
+
serviceFee: string;
|
|
2012
2213
|
}
|
|
2013
2214
|
|
|
2014
2215
|
export interface TransactionConfig {
|
|
2015
2216
|
maxAssetSize: number;
|
|
2016
2217
|
maxListSize: number;
|
|
2017
2218
|
maxMultisig: number;
|
|
2018
|
-
minimumStake: number;
|
|
2019
|
-
declare: GraphQLClient.DeclareConfig;
|
|
2020
2219
|
delegate: GraphQLClient.DelegateConfig;
|
|
2021
|
-
|
|
2022
|
-
stake: GraphQLClient.StakeConfig;
|
|
2220
|
+
txFee: Array<null>;
|
|
2023
2221
|
}
|
|
2024
2222
|
|
|
2025
2223
|
export interface TransactionInfo {
|
|
2026
2224
|
tx: GraphQLClient.Transaction;
|
|
2027
|
-
height:
|
|
2225
|
+
height: string;
|
|
2028
2226
|
index: number;
|
|
2029
2227
|
hash: string;
|
|
2030
2228
|
tags: Array<null>;
|
|
2031
2229
|
code: string;
|
|
2032
2230
|
time: string;
|
|
2231
|
+
receipts: Array<null>;
|
|
2232
|
+
sender: string;
|
|
2233
|
+
receiver: string;
|
|
2234
|
+
tokenSymbols: Array<null>;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
export interface TransactionInput {
|
|
2238
|
+
owner: string;
|
|
2239
|
+
tokens: Array<null>;
|
|
2240
|
+
assets: Array<null>;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
export interface TransactionReceipt {
|
|
2244
|
+
address: string;
|
|
2245
|
+
changes: Array<null>;
|
|
2033
2246
|
}
|
|
2034
2247
|
|
|
2035
2248
|
export interface TransferTx {
|
|
@@ -2039,6 +2252,25 @@ declare namespace GraphQLClient {
|
|
|
2039
2252
|
data: GraphQLClient.Any;
|
|
2040
2253
|
}
|
|
2041
2254
|
|
|
2255
|
+
export interface TransferV2Tx {
|
|
2256
|
+
to: string;
|
|
2257
|
+
value: string;
|
|
2258
|
+
assets: Array<null>;
|
|
2259
|
+
tokens: Array<null>;
|
|
2260
|
+
data: GraphQLClient.Any;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
export interface TransferV3Tx {
|
|
2264
|
+
inputs: Array<null>;
|
|
2265
|
+
outputs: Array<null>;
|
|
2266
|
+
data: GraphQLClient.Any;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
export interface TxFeeConfig {
|
|
2270
|
+
typeUrl: string;
|
|
2271
|
+
fee: string;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2042
2274
|
export interface UnconfirmedTxs {
|
|
2043
2275
|
nTxs: number;
|
|
2044
2276
|
txs: Array<null>;
|
|
@@ -2050,8 +2282,36 @@ declare namespace GraphQLClient {
|
|
|
2050
2282
|
data: GraphQLClient.Any;
|
|
2051
2283
|
}
|
|
2052
2284
|
|
|
2285
|
+
export interface UpdateRollupTx {
|
|
2286
|
+
minStakeAmount: string;
|
|
2287
|
+
maxStakeAmount: string;
|
|
2288
|
+
minSignerCount: number;
|
|
2289
|
+
maxSignerCount: number;
|
|
2290
|
+
minBlockSize: number;
|
|
2291
|
+
maxBlockSize: number;
|
|
2292
|
+
minBlockInterval: number;
|
|
2293
|
+
minBlockConfirmation: number;
|
|
2294
|
+
depositFeeRate: number;
|
|
2295
|
+
withdrawFeeRate: number;
|
|
2296
|
+
proposerFeeShare: number;
|
|
2297
|
+
minDepositAmount: string;
|
|
2298
|
+
minWithdrawAmount: string;
|
|
2299
|
+
maxDepositAmount: string;
|
|
2300
|
+
maxWithdrawAmount: string;
|
|
2301
|
+
minDepositFee: string;
|
|
2302
|
+
maxDepositFee: string;
|
|
2303
|
+
minWithdrawFee: string;
|
|
2304
|
+
maxWithdrawFee: string;
|
|
2305
|
+
publisherFeeShare: number;
|
|
2306
|
+
leaveWaitingPeriod: number;
|
|
2307
|
+
publishWaitingPeriod: number;
|
|
2308
|
+
publishSlashRate: number;
|
|
2309
|
+
rollup: string;
|
|
2310
|
+
data: GraphQLClient.Any;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2053
2313
|
export interface UpgradeInfo {
|
|
2054
|
-
height:
|
|
2314
|
+
height: string;
|
|
2055
2315
|
version: string;
|
|
2056
2316
|
}
|
|
2057
2317
|
|
|
@@ -2073,26 +2333,28 @@ declare namespace GraphQLClient {
|
|
|
2073
2333
|
|
|
2074
2334
|
export interface Validator {
|
|
2075
2335
|
address: string;
|
|
2076
|
-
power:
|
|
2336
|
+
power: string;
|
|
2077
2337
|
}
|
|
2078
2338
|
|
|
2079
2339
|
export interface ValidatorInfo {
|
|
2080
2340
|
address: string;
|
|
2081
2341
|
pubKey: GraphQLClient.PubKey;
|
|
2082
|
-
votingPower:
|
|
2342
|
+
votingPower: string;
|
|
2083
2343
|
proposerPriority: string;
|
|
2084
2344
|
name: string;
|
|
2085
2345
|
geoInfo: GraphQLClient.GeoInfo;
|
|
2086
2346
|
}
|
|
2087
2347
|
|
|
2088
2348
|
export interface ValidatorsInfo {
|
|
2089
|
-
blockHeight:
|
|
2349
|
+
blockHeight: string;
|
|
2090
2350
|
validators: Array<null>;
|
|
2091
2351
|
}
|
|
2092
2352
|
|
|
2093
|
-
export interface
|
|
2094
|
-
|
|
2095
|
-
|
|
2353
|
+
export interface VariableInput {
|
|
2354
|
+
name: string;
|
|
2355
|
+
value: string;
|
|
2356
|
+
description: string;
|
|
2357
|
+
required: boolean;
|
|
2096
2358
|
}
|
|
2097
2359
|
|
|
2098
2360
|
export interface Version {
|
|
@@ -2100,11 +2362,6 @@ declare namespace GraphQLClient {
|
|
|
2100
2362
|
app: number;
|
|
2101
2363
|
}
|
|
2102
2364
|
|
|
2103
|
-
export interface VoteInfo {
|
|
2104
|
-
validator: GraphQLClient.Vendor_Validator;
|
|
2105
|
-
signedLastBlock: boolean;
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
2365
|
export interface WalletType {
|
|
2109
2366
|
pk: GraphQLClient.KeyType;
|
|
2110
2367
|
hash: GraphQLClient.HashType;
|
|
@@ -2112,40 +2369,15 @@ declare namespace GraphQLClient {
|
|
|
2112
2369
|
role: GraphQLClient.RoleType;
|
|
2113
2370
|
}
|
|
2114
2371
|
|
|
2115
|
-
export
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
| GraphQLClient.ResponseSubscribe_Declare
|
|
2125
|
-
| GraphQLClient.ResponseSubscribe_UpdateAsset
|
|
2126
|
-
| GraphQLClient.ResponseSubscribe_ConsensusUpgrade
|
|
2127
|
-
| GraphQLClient.ResponseSubscribe_SysUpgrade
|
|
2128
|
-
| GraphQLClient.ResponseSubscribe_Stake
|
|
2129
|
-
| GraphQLClient.ResponseSubscribe_Delegate
|
|
2130
|
-
| GraphQLClient.ResponseSubscribe_RevokeDelegate
|
|
2131
|
-
| GraphQLClient.ResponseSubscribe_DepositToken
|
|
2132
|
-
| GraphQLClient.ResponseSubscribe_WithdrawToken
|
|
2133
|
-
| GraphQLClient.ResponseSubscribe_ApproveWithdraw
|
|
2134
|
-
| GraphQLClient.ResponseSubscribe_RevokeWithdraw
|
|
2135
|
-
| GraphQLClient.ResponseSubscribe_SetupSwap
|
|
2136
|
-
| GraphQLClient.ResponseSubscribe_RevokeSwap
|
|
2137
|
-
| GraphQLClient.ResponseSubscribe_RetrieveSwap
|
|
2138
|
-
| GraphQLClient.ResponseSubscribe_Poke
|
|
2139
|
-
| GraphQLClient.ResponseSubscribe_ConsumeAsset
|
|
2140
|
-
| GraphQLClient.ResponseSubscribe_AcquireAsset
|
|
2141
|
-
| GraphQLClient.ResponseSubscribe_UpgradeNode
|
|
2142
|
-
| GraphQLClient.ResponseSubscribe_UpdateValidator
|
|
2143
|
-
| GraphQLClient.ResponseSubscribe_UpdateConsensusParams
|
|
2144
|
-
| GraphQLClient.ResponseSubscribe_AccountState
|
|
2145
|
-
| GraphQLClient.ResponseSubscribe_AssetState
|
|
2146
|
-
| GraphQLClient.ResponseSubscribe_ForgeState
|
|
2147
|
-
| GraphQLClient.ResponseSubscribe_DelegateState
|
|
2148
|
-
| GraphQLClient.ResponseSubscribe_SwapState;
|
|
2372
|
+
export interface WithdrawTokenV2Tx {
|
|
2373
|
+
token: GraphQLClient.TokenInput;
|
|
2374
|
+
to: string;
|
|
2375
|
+
rollup: string;
|
|
2376
|
+
proposer: string;
|
|
2377
|
+
maxFee: string;
|
|
2378
|
+
actualFee: string;
|
|
2379
|
+
data: GraphQLClient.Any;
|
|
2380
|
+
}
|
|
2149
2381
|
|
|
2150
2382
|
export interface GetAccountStateParams {
|
|
2151
2383
|
address: string;
|
|
@@ -2159,16 +2391,22 @@ declare namespace GraphQLClient {
|
|
|
2159
2391
|
keys: Array<string>;
|
|
2160
2392
|
}
|
|
2161
2393
|
|
|
2394
|
+
export interface GetFactoryStateParams {
|
|
2395
|
+
address: string;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2162
2398
|
export interface GetDelegateStateParams {
|
|
2163
2399
|
address: string;
|
|
2164
2400
|
height: string;
|
|
2165
2401
|
keys: Array<string>;
|
|
2166
2402
|
}
|
|
2167
2403
|
|
|
2168
|
-
export interface
|
|
2404
|
+
export interface GetTokenStateParams {
|
|
2169
2405
|
address: string;
|
|
2170
|
-
|
|
2171
|
-
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
export interface GetEvidenceStateParams {
|
|
2409
|
+
hash: string;
|
|
2172
2410
|
}
|
|
2173
2411
|
|
|
2174
2412
|
export interface GetForgeStateParams {
|
|
@@ -2198,19 +2436,6 @@ declare namespace GraphQLClient {
|
|
|
2198
2436
|
parsed: boolean;
|
|
2199
2437
|
}
|
|
2200
2438
|
|
|
2201
|
-
export interface GetForgeStatsByDayParams {
|
|
2202
|
-
endDate: string;
|
|
2203
|
-
startDate: string;
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
export interface GetForgeStatsByHourParams {
|
|
2207
|
-
date: string;
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
export interface GetSwapStatisticsParams {
|
|
2211
|
-
address: string;
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
2439
|
export interface ListAssetTransactionsParams {
|
|
2215
2440
|
address: string;
|
|
2216
2441
|
paging: undefined;
|
|
@@ -2219,6 +2444,8 @@ declare namespace GraphQLClient {
|
|
|
2219
2444
|
export interface ListAssetsParams {
|
|
2220
2445
|
ownerAddress: string;
|
|
2221
2446
|
paging: undefined;
|
|
2447
|
+
factoryAddress: string;
|
|
2448
|
+
timeFilter: undefined;
|
|
2222
2449
|
}
|
|
2223
2450
|
|
|
2224
2451
|
export interface ListBlocksParams {
|
|
@@ -2230,28 +2457,90 @@ declare namespace GraphQLClient {
|
|
|
2230
2457
|
timeFilter: undefined;
|
|
2231
2458
|
}
|
|
2232
2459
|
|
|
2233
|
-
export interface
|
|
2460
|
+
export interface ListTopAccountsParams {
|
|
2461
|
+
paging: undefined;
|
|
2462
|
+
tokenAddress: string;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
export interface ListTransactionsParams {
|
|
2234
2466
|
addressFilter: undefined;
|
|
2235
2467
|
paging: undefined;
|
|
2468
|
+
timeFilter: undefined;
|
|
2469
|
+
typeFilter: undefined;
|
|
2470
|
+
validityFilter: undefined;
|
|
2471
|
+
factoryFilter: undefined;
|
|
2472
|
+
tokenFilter: undefined;
|
|
2473
|
+
assetFilter: undefined;
|
|
2474
|
+
accountFilter: undefined;
|
|
2475
|
+
txFilter: undefined;
|
|
2476
|
+
rollupFilter: undefined;
|
|
2236
2477
|
}
|
|
2237
2478
|
|
|
2238
|
-
export interface
|
|
2239
|
-
|
|
2240
|
-
paging:
|
|
2241
|
-
receiver: string;
|
|
2242
|
-
sender: string;
|
|
2479
|
+
export interface ListTokensParams {
|
|
2480
|
+
issuerAddress: string;
|
|
2481
|
+
paging: undefined;
|
|
2243
2482
|
}
|
|
2244
2483
|
|
|
2245
|
-
export interface
|
|
2484
|
+
export interface ListFactoriesParams {
|
|
2485
|
+
ownerAddress: string;
|
|
2486
|
+
addressList: Array<string>;
|
|
2246
2487
|
paging: undefined;
|
|
2247
2488
|
}
|
|
2248
2489
|
|
|
2249
|
-
export interface
|
|
2490
|
+
export interface GetAccountTokensParams {
|
|
2491
|
+
address: string;
|
|
2492
|
+
token: string;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
export interface GetStakeStateParams {
|
|
2496
|
+
address: string;
|
|
2497
|
+
height: string;
|
|
2498
|
+
keys: Array<string>;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
export interface ListStakesParams {
|
|
2250
2502
|
addressFilter: undefined;
|
|
2251
|
-
|
|
2503
|
+
assetFilter: undefined;
|
|
2252
2504
|
timeFilter: undefined;
|
|
2253
|
-
|
|
2254
|
-
|
|
2505
|
+
paging: undefined;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
export interface GetRollupStateParams {
|
|
2509
|
+
address: string;
|
|
2510
|
+
height: string;
|
|
2511
|
+
keys: Array<string>;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
export interface ListRollupsParams {
|
|
2515
|
+
paging: undefined;
|
|
2516
|
+
tokenAddress: string;
|
|
2517
|
+
erc20TokenAddress: string;
|
|
2518
|
+
foreignTokenAddress: string;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
export interface GetRollupBlockParams {
|
|
2522
|
+
hash: string;
|
|
2523
|
+
height: string;
|
|
2524
|
+
rollupAddress: string;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
export interface ListRollupBlocksParams {
|
|
2528
|
+
paging: undefined;
|
|
2529
|
+
rollupAddress: string;
|
|
2530
|
+
tokenAddress: string;
|
|
2531
|
+
proposer: string;
|
|
2532
|
+
validatorFilter: undefined;
|
|
2533
|
+
txFilter: undefined;
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
export interface ListRollupValidatorsParams {
|
|
2537
|
+
paging: undefined;
|
|
2538
|
+
rollupAddress: string;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
export interface SearchParams {
|
|
2542
|
+
paging: undefined;
|
|
2543
|
+
keyword: string;
|
|
2255
2544
|
}
|
|
2256
2545
|
|
|
2257
2546
|
export interface SendTxParams {
|
|
@@ -2260,15 +2549,6 @@ declare namespace GraphQLClient {
|
|
|
2260
2549
|
tx: string;
|
|
2261
2550
|
wallet: string;
|
|
2262
2551
|
}
|
|
2263
|
-
|
|
2264
|
-
export interface UnsubscribeParams {
|
|
2265
|
-
topic: string;
|
|
2266
|
-
}
|
|
2267
|
-
|
|
2268
|
-
export interface SubscribeParams {
|
|
2269
|
-
filter: string;
|
|
2270
|
-
topic: string;
|
|
2271
|
-
}
|
|
2272
2552
|
}
|
|
2273
2553
|
|
|
2274
2554
|
/**
|