@ocap/sdk 1.18.7 → 1.18.9

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.
Files changed (2) hide show
  1. package/index.d.ts +696 -539
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -241,9 +241,9 @@ export declare function formatTxType(type: string): any;
241
241
  /// <reference types="node" />
242
242
  import { EncodingType, BytesType } from '@ocap/util';
243
243
  import { DidType, DIDType, DIDTypeStr, DIDTypeArg } from '@arcblock/did';
244
- declare type KeyPairType = {
245
- sk?: BytesType;
246
- pk?: BytesType;
244
+ declare type KeyPairType<T extends BytesType = string> = {
245
+ sk?: T;
246
+ pk?: T;
247
247
  address?: string;
248
248
  };
249
249
  export declare type SerializedWallet = {
@@ -252,26 +252,26 @@ export declare type SerializedWallet = {
252
252
  sk: string;
253
253
  address: string;
254
254
  };
255
- export interface WalletObject {
255
+ export interface WalletObject<T extends BytesType = string> {
256
256
  type: DIDType;
257
- secretKey: BytesType;
258
- publicKey: BytesType;
257
+ secretKey: T;
258
+ publicKey: T;
259
259
  address: string;
260
- hash(data: BytesType, round?: number, encoding?: 'hex'): string;
261
- hash(data: BytesType, round?: number, encoding?: 'base16'): string;
262
- hash(data: BytesType, round?: number, encoding?: 'base58'): string;
263
- hash(data: BytesType, round?: number, encoding?: 'base64'): string;
264
- hash(data: BytesType, round?: number, encoding?: 'buffer'): Buffer;
265
- hash(data: BytesType, round?: number, encoding?: 'Uint8Array'): Uint8Array;
266
- hash(data: BytesType, round?: number, encoding?: EncodingType): BytesType;
267
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'hex'): string;
268
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base16'): string;
269
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base58'): string;
270
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base64'): string;
271
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'buffer'): Buffer;
272
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'Uint8Array'): Uint8Array;
273
- sign(data: BytesType, hashBeforeSign?: boolean, encoding?: EncodingType): BytesType;
274
- verify(data: BytesType, signature: BytesType, hashBeforeVerify?: boolean): boolean;
260
+ hash(data: T, round?: number, encoding?: 'hex'): string;
261
+ hash(data: T, round?: number, encoding?: 'base16'): string;
262
+ hash(data: T, round?: number, encoding?: 'base58'): string;
263
+ hash(data: T, round?: number, encoding?: 'base64'): string;
264
+ hash(data: T, round?: number, encoding?: 'buffer'): Buffer;
265
+ hash(data: T, round?: number, encoding?: 'Uint8Array'): Uint8Array;
266
+ hash(data: T, round?: number, encoding?: EncodingType): BytesType;
267
+ sign(data: T, hashBeforeSign?: boolean, encoding?: 'hex'): string;
268
+ sign(data: T, hashBeforeSign?: boolean, encoding?: 'base16'): string;
269
+ sign(data: T, hashBeforeSign?: boolean, encoding?: 'base58'): string;
270
+ sign(data: T, hashBeforeSign?: boolean, encoding?: 'base64'): string;
271
+ sign(data: T, hashBeforeSign?: boolean, encoding?: 'buffer'): Buffer;
272
+ sign(data: T, hashBeforeSign?: boolean, encoding?: 'Uint8Array'): Uint8Array;
273
+ sign(data: T, hashBeforeSign?: boolean, encoding?: EncodingType): BytesType;
274
+ verify(data: T, signature: T, hashBeforeVerify?: boolean): boolean;
275
275
  ethHash(data: string): string;
276
276
  ethSign(data: string, hashBeforeSign?: boolean): string;
277
277
  ethVerify(data: string, signature: string, hashBeforeVerify?: boolean): boolean;
@@ -285,7 +285,7 @@ export declare const WalletType: typeof DidType;
285
285
  /**
286
286
  * Generate an wallet instance that can be used to sign a message or verify a signature
287
287
  */
288
- export declare function Wallet(keyPair: KeyPairType, t?: DIDTypeArg): WalletObject;
288
+ export declare function Wallet<T extends BytesType = string>(keyPair: KeyPairType<T>, t?: DIDTypeArg): WalletObject<T>;
289
289
  /**
290
290
  * Generate a wallet from secretKey
291
291
  *
@@ -304,25 +304,25 @@ export declare function Wallet(keyPair: KeyPairType, t?: DIDTypeArg): WalletObje
304
304
  * assert.equal(signature, sig, "signature should match");
305
305
  * assert.ok(wallet.verify(message, signature), "signature should be verified");
306
306
  */
307
- export declare function fromSecretKey(sk: BytesType, _type?: DIDTypeArg): WalletObject;
307
+ export declare function fromSecretKey<T extends BytesType = string>(sk: T, _type?: DIDTypeArg): WalletObject<T>;
308
308
  /**
309
309
  * Generate a wallet from publicKey
310
310
  */
311
- export declare function fromPublicKey(pk: BytesType, _type?: DIDTypeArg): WalletObject;
311
+ export declare function fromPublicKey<T extends BytesType = string>(pk: T, _type?: DIDTypeArg): WalletObject<T>;
312
312
  /**
313
313
  * Generate a wallet from address (did)
314
314
  *
315
315
  * Since we do not know the publicKey and secretKey, this kind of wallet cannot be used for signing and verifying
316
316
  */
317
- export declare function fromAddress(address: string): WalletObject;
317
+ export declare function fromAddress<T extends BytesType = string>(address: string): WalletObject<T>;
318
318
  /**
319
319
  * Generate a wallet by generating a random secretKey
320
320
  */
321
- export declare function fromRandom(_type?: DIDTypeArg): WalletObject;
321
+ export declare function fromRandom<T extends BytesType = string>(_type?: DIDTypeArg): WalletObject<T>;
322
322
  /**
323
323
  * Generating a wallet from a serialized json presentation of another wallet
324
324
  */
325
- export declare function fromJSON(json: SerializedWallet): WalletObject;
325
+ export declare function fromJSON<T extends BytesType = string>(json: SerializedWallet): WalletObject<T>;
326
326
  /**
327
327
  * Check if an object is valid wallet object
328
328
  */
@@ -361,6 +361,11 @@ export declare function toStakeAddress(sender: string, receiver: string): string
361
361
  * Generate an delegate address, eg: the did of the delegation
362
362
  */
363
363
  export declare function toDelegateAddress(delegator: string, delegatee: string): string;
364
+ import { WalletObject } from '@ocap/wallet';
365
+
366
+ type PartialDeep<T> = {
367
+ [K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
368
+ };
364
369
 
365
370
  /*~ This declaration specifies that the class constructor function
366
371
  *~ is the exported object from the file
@@ -394,225 +399,389 @@ declare interface OcapSDK {
394
399
  getTxMultiSignMethods(): Array<string>;
395
400
  getType(x: string): Object;
396
401
  decodeTx(input: string | buffer): object;
397
- declare(params: object, extra: any): Promise<string>;
398
- migrateAccount(params: object, extra: any): Promise<string>;
399
- delegate(params: object, extra: any): Promise<string>;
400
- revokeDelegate(params: object, extra: any): Promise<string>;
401
- createAsset(params: object, extra: any): Promise<string>;
402
- updateAsset(params: object, extra: any): Promise<string>;
403
- consumeAsset(params: object, extra: any): Promise<string>;
404
- createAssetFactory(params: object, extra: any): Promise<string>;
405
- acquireAsset(params: object, extra: any): Promise<string>;
406
- upgradeNode(params: object, extra: any): Promise<string>;
407
- transfer(params: object, extra: any): Promise<string>;
408
- prepareExchange(params: object, extra: any): Promise<string>;
409
- finalizeExchange(params: object, extra: any): Promise<string>;
410
- exchange(params: object, extra: any): Promise<string>;
402
+ declare(params: object, extra?: any): Promise<string>;
403
+ migrateAccount(params: object, extra?: any): Promise<string>;
404
+ delegate(params: object, extra?: any): Promise<string>;
405
+ revokeDelegate(params: object, extra?: any): Promise<string>;
406
+ createAsset(params: object, extra?: any): Promise<string>;
407
+ updateAsset(params: object, extra?: any): Promise<string>;
408
+ consumeAsset(params: object, extra?: any): Promise<string>;
409
+ createAssetFactory(params: object, extra?: any): Promise<string>;
410
+ acquireAsset(params: object, extra?: any): Promise<string>;
411
+ upgradeNode(params: object, extra?: any): Promise<string>;
412
+ transfer(params: object, extra?: any): Promise<string>;
413
+ prepareExchange(params: object, extra?: any): Promise<string>;
414
+ finalizeExchange(params: object, extra?: any): Promise<string>;
415
+ exchange(params: object, extra?: any): Promise<string>;
411
416
 
412
417
  generateQueryFns(): void;
413
418
  generateSubscriptionFns(): void;
414
419
  generateMutationFns(): void;
415
420
 
416
421
  sendAccountMigrateTx(
417
- param: GraphQLClient.TxParam<GraphQLClient.AccountMigrateTx>
422
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>,
423
+ extra?: any
418
424
  ): Promise<GraphQLClient.ResponseSendTx>;
419
425
  sendAcquireAssetV2Tx(
420
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV2Tx>
426
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>,
427
+ extra?: any
421
428
  ): Promise<GraphQLClient.ResponseSendTx>;
422
429
  sendAcquireAssetV3Tx(
423
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
430
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
431
+ extra?: any
424
432
  ): Promise<GraphQLClient.ResponseSendTx>;
425
433
  sendClaimBlockRewardTx(
426
- param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
434
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
435
+ extra?: any
436
+ ): Promise<GraphQLClient.ResponseSendTx>;
437
+ sendClaimStakeTx(
438
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>,
439
+ extra?: any
440
+ ): Promise<GraphQLClient.ResponseSendTx>;
441
+ sendCreateAssetTx(
442
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
443
+ extra?: any
427
444
  ): Promise<GraphQLClient.ResponseSendTx>;
428
- sendClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.ResponseSendTx>;
429
- sendCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
430
445
  sendCreateFactoryTx(
431
- param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>
446
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>,
447
+ extra?: any
432
448
  ): Promise<GraphQLClient.ResponseSendTx>;
433
449
  sendCreateRollupBlockTx(
434
- param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
450
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupBlockTx>>,
451
+ extra?: any
452
+ ): Promise<GraphQLClient.ResponseSendTx>;
453
+ sendCreateRollupTx(
454
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>,
455
+ extra?: any
456
+ ): Promise<GraphQLClient.ResponseSendTx>;
457
+ sendCreateTokenTx(
458
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
459
+ extra?: any
460
+ ): Promise<GraphQLClient.ResponseSendTx>;
461
+ sendDeclareTx(
462
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>,
463
+ extra?: any
464
+ ): Promise<GraphQLClient.ResponseSendTx>;
465
+ sendDelegateTx(
466
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>,
467
+ extra?: any
435
468
  ): Promise<GraphQLClient.ResponseSendTx>;
436
- sendCreateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.CreateRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
437
- sendCreateTokenTx(param: GraphQLClient.TxParam<GraphQLClient.CreateTokenTx>): Promise<GraphQLClient.ResponseSendTx>;
438
- sendDeclareTx(param: GraphQLClient.TxParam<GraphQLClient.DeclareTx>): Promise<GraphQLClient.ResponseSendTx>;
439
- sendDelegateTx(param: GraphQLClient.TxParam<GraphQLClient.DelegateTx>): Promise<GraphQLClient.ResponseSendTx>;
440
469
  sendDepositTokenV2Tx(
441
- param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
470
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
471
+ extra?: any
472
+ ): Promise<GraphQLClient.ResponseSendTx>;
473
+ sendExchangeTx(
474
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>,
475
+ extra?: any
476
+ ): Promise<GraphQLClient.ResponseSendTx>;
477
+ sendExchangeV2Tx(
478
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>,
479
+ extra?: any
480
+ ): Promise<GraphQLClient.ResponseSendTx>;
481
+ sendJoinRollupTx(
482
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>,
483
+ extra?: any
484
+ ): Promise<GraphQLClient.ResponseSendTx>;
485
+ sendLeaveRollupTx(
486
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
487
+ extra?: any
442
488
  ): Promise<GraphQLClient.ResponseSendTx>;
443
- sendExchangeTx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeTx>): Promise<GraphQLClient.ResponseSendTx>;
444
- sendExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.ResponseSendTx>;
445
- sendJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
446
- sendLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
447
489
  sendMigrateRollupContractTx(
448
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
490
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>,
491
+ extra?: any
449
492
  ): Promise<GraphQLClient.ResponseSendTx>;
450
493
  sendMigrateRollupTokenTx(
451
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
494
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>,
495
+ extra?: any
496
+ ): Promise<GraphQLClient.ResponseSendTx>;
497
+ sendMintAssetTx(
498
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>,
499
+ extra?: any
500
+ ): Promise<GraphQLClient.ResponseSendTx>;
501
+ sendPauseRollupTx(
502
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
503
+ extra?: any
504
+ ): Promise<GraphQLClient.ResponseSendTx>;
505
+ sendResumeRollupTx(
506
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>,
507
+ extra?: any
452
508
  ): Promise<GraphQLClient.ResponseSendTx>;
453
- sendMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
454
- sendPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
455
- sendResumeRollupTx(param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
456
509
  sendRevokeDelegateTx(
457
- param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
510
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>,
511
+ extra?: any
512
+ ): Promise<GraphQLClient.ResponseSendTx>;
513
+ sendRevokeStakeTx(
514
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>,
515
+ extra?: any
516
+ ): Promise<GraphQLClient.ResponseSendTx>;
517
+ sendStakeTx(
518
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
519
+ extra?: any
520
+ ): Promise<GraphQLClient.ResponseSendTx>;
521
+ sendTransferTx(
522
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>,
523
+ extra?: any
524
+ ): Promise<GraphQLClient.ResponseSendTx>;
525
+ sendTransferV2Tx(
526
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>,
527
+ extra?: any
528
+ ): Promise<GraphQLClient.ResponseSendTx>;
529
+ sendTransferV3Tx(
530
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>,
531
+ extra?: any
532
+ ): Promise<GraphQLClient.ResponseSendTx>;
533
+ sendUpdateAssetTx(
534
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>,
535
+ extra?: any
536
+ ): Promise<GraphQLClient.ResponseSendTx>;
537
+ sendUpdateRollupTx(
538
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
539
+ extra?: any
540
+ ): Promise<GraphQLClient.ResponseSendTx>;
541
+ sendUpgradeNodeTx(
542
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>,
543
+ extra?: any
458
544
  ): Promise<GraphQLClient.ResponseSendTx>;
459
- sendRevokeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.RevokeStakeTx>): Promise<GraphQLClient.ResponseSendTx>;
460
- sendStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.ResponseSendTx>;
461
- sendTransferTx(param: GraphQLClient.TxParam<GraphQLClient.TransferTx>): Promise<GraphQLClient.ResponseSendTx>;
462
- sendTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.ResponseSendTx>;
463
- sendTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.ResponseSendTx>;
464
- sendUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
465
- sendUpdateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
466
- sendUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.ResponseSendTx>;
467
545
  sendWithdrawTokenV2Tx(
468
- param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
546
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>,
547
+ extra?: any
469
548
  ): Promise<GraphQLClient.ResponseSendTx>;
470
549
  encodeAccountMigrateTx(
471
- param: GraphQLClient.TxParam<GraphQLClient.AccountMigrateTx>
550
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>
472
551
  ): Promise<GraphQLClient.EncodeTxResult>;
473
552
  encodeAcquireAssetV2Tx(
474
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV2Tx>
553
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>
475
554
  ): Promise<GraphQLClient.EncodeTxResult>;
476
555
  encodeAcquireAssetV3Tx(
477
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
556
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>
478
557
  ): Promise<GraphQLClient.EncodeTxResult>;
479
558
  encodeClaimBlockRewardTx(
480
- param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
559
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>
560
+ ): Promise<GraphQLClient.EncodeTxResult>;
561
+ encodeClaimStakeTx(
562
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>
563
+ ): Promise<GraphQLClient.EncodeTxResult>;
564
+ encodeCreateAssetTx(
565
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
481
566
  ): Promise<GraphQLClient.EncodeTxResult>;
482
- encodeClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.EncodeTxResult>;
483
- encodeCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
484
567
  encodeCreateFactoryTx(
485
- param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>
568
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>
486
569
  ): Promise<GraphQLClient.EncodeTxResult>;
487
570
  encodeCreateRollupBlockTx(
488
- param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
571
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupBlockTx>>
489
572
  ): Promise<GraphQLClient.EncodeTxResult>;
490
573
  encodeCreateRollupTx(
491
- param: GraphQLClient.TxParam<GraphQLClient.CreateRollupTx>
574
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>
575
+ ): Promise<GraphQLClient.EncodeTxResult>;
576
+ encodeCreateTokenTx(
577
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>
578
+ ): Promise<GraphQLClient.EncodeTxResult>;
579
+ encodeDeclareTx(
580
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>
581
+ ): Promise<GraphQLClient.EncodeTxResult>;
582
+ encodeDelegateTx(
583
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>
492
584
  ): Promise<GraphQLClient.EncodeTxResult>;
493
- encodeCreateTokenTx(param: GraphQLClient.TxParam<GraphQLClient.CreateTokenTx>): Promise<GraphQLClient.EncodeTxResult>;
494
- encodeDeclareTx(param: GraphQLClient.TxParam<GraphQLClient.DeclareTx>): Promise<GraphQLClient.EncodeTxResult>;
495
- encodeDelegateTx(param: GraphQLClient.TxParam<GraphQLClient.DelegateTx>): Promise<GraphQLClient.EncodeTxResult>;
496
585
  encodeDepositTokenV2Tx(
497
- param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
586
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>
587
+ ): Promise<GraphQLClient.EncodeTxResult>;
588
+ encodeExchangeTx(
589
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>
590
+ ): Promise<GraphQLClient.EncodeTxResult>;
591
+ encodeExchangeV2Tx(
592
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>
593
+ ): Promise<GraphQLClient.EncodeTxResult>;
594
+ encodeJoinRollupTx(
595
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>
596
+ ): Promise<GraphQLClient.EncodeTxResult>;
597
+ encodeLeaveRollupTx(
598
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>
498
599
  ): Promise<GraphQLClient.EncodeTxResult>;
499
- encodeExchangeTx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeTx>): Promise<GraphQLClient.EncodeTxResult>;
500
- encodeExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.EncodeTxResult>;
501
- encodeJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
502
- encodeLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
503
600
  encodeMigrateRollupContractTx(
504
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
601
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>
505
602
  ): Promise<GraphQLClient.EncodeTxResult>;
506
603
  encodeMigrateRollupTokenTx(
507
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
604
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>
605
+ ): Promise<GraphQLClient.EncodeTxResult>;
606
+ encodeMintAssetTx(
607
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>
608
+ ): Promise<GraphQLClient.EncodeTxResult>;
609
+ encodePauseRollupTx(
610
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>
508
611
  ): Promise<GraphQLClient.EncodeTxResult>;
509
- encodeMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
510
- encodePauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.EncodeTxResult>;
511
612
  encodeResumeRollupTx(
512
- param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>
613
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>
513
614
  ): Promise<GraphQLClient.EncodeTxResult>;
514
615
  encodeRevokeDelegateTx(
515
- param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
616
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>
617
+ ): Promise<GraphQLClient.EncodeTxResult>;
618
+ encodeRevokeStakeTx(
619
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>
620
+ ): Promise<GraphQLClient.EncodeTxResult>;
621
+ encodeStakeTx(
622
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>
623
+ ): Promise<GraphQLClient.EncodeTxResult>;
624
+ encodeTransferTx(
625
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>
626
+ ): Promise<GraphQLClient.EncodeTxResult>;
627
+ encodeTransferV2Tx(
628
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>
629
+ ): Promise<GraphQLClient.EncodeTxResult>;
630
+ encodeTransferV3Tx(
631
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>
632
+ ): Promise<GraphQLClient.EncodeTxResult>;
633
+ encodeUpdateAssetTx(
634
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>
516
635
  ): Promise<GraphQLClient.EncodeTxResult>;
517
- encodeRevokeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.RevokeStakeTx>): Promise<GraphQLClient.EncodeTxResult>;
518
- encodeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.EncodeTxResult>;
519
- encodeTransferTx(param: GraphQLClient.TxParam<GraphQLClient.TransferTx>): Promise<GraphQLClient.EncodeTxResult>;
520
- encodeTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.EncodeTxResult>;
521
- encodeTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.EncodeTxResult>;
522
- encodeUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
523
636
  encodeUpdateRollupTx(
524
- param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>
637
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>
638
+ ): Promise<GraphQLClient.EncodeTxResult>;
639
+ encodeUpgradeNodeTx(
640
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>
525
641
  ): Promise<GraphQLClient.EncodeTxResult>;
526
- encodeUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.EncodeTxResult>;
527
642
  encodeWithdrawTokenV2Tx(
528
- param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
643
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>
529
644
  ): Promise<GraphQLClient.EncodeTxResult>;
530
645
  signAccountMigrateTx(
531
- param: GraphQLClient.TxParam<GraphQLClient.AccountMigrateTx>
646
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>
532
647
  ): Promise<GraphQLClient.Transaction>;
533
648
  signAcquireAssetV2Tx(
534
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV2Tx>
649
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>
535
650
  ): Promise<GraphQLClient.Transaction>;
536
651
  signAcquireAssetV3Tx(
537
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
652
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>
538
653
  ): Promise<GraphQLClient.Transaction>;
539
654
  signClaimBlockRewardTx(
540
- param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
655
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>
656
+ ): Promise<GraphQLClient.Transaction>;
657
+ signClaimStakeTx(
658
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>
659
+ ): Promise<GraphQLClient.Transaction>;
660
+ signCreateAssetTx(
661
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
662
+ ): Promise<GraphQLClient.Transaction>;
663
+ signCreateFactoryTx(
664
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>
541
665
  ): Promise<GraphQLClient.Transaction>;
542
- signClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.Transaction>;
543
- signCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
544
- signCreateFactoryTx(param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>): Promise<GraphQLClient.Transaction>;
545
666
  signCreateRollupBlockTx(
546
- param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
667
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupBlockTx>>
668
+ ): Promise<GraphQLClient.Transaction>;
669
+ signCreateRollupTx(
670
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>
671
+ ): Promise<GraphQLClient.Transaction>;
672
+ signCreateTokenTx(
673
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>
674
+ ): Promise<GraphQLClient.Transaction>;
675
+ signDeclareTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>): Promise<GraphQLClient.Transaction>;
676
+ signDelegateTx(
677
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>
547
678
  ): Promise<GraphQLClient.Transaction>;
548
- signCreateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.CreateRollupTx>): Promise<GraphQLClient.Transaction>;
549
- signCreateTokenTx(param: GraphQLClient.TxParam<GraphQLClient.CreateTokenTx>): Promise<GraphQLClient.Transaction>;
550
- signDeclareTx(param: GraphQLClient.TxParam<GraphQLClient.DeclareTx>): Promise<GraphQLClient.Transaction>;
551
- signDelegateTx(param: GraphQLClient.TxParam<GraphQLClient.DelegateTx>): Promise<GraphQLClient.Transaction>;
552
679
  signDepositTokenV2Tx(
553
- param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
680
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>
681
+ ): Promise<GraphQLClient.Transaction>;
682
+ signExchangeTx(
683
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>
684
+ ): Promise<GraphQLClient.Transaction>;
685
+ signExchangeV2Tx(
686
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>
687
+ ): Promise<GraphQLClient.Transaction>;
688
+ signJoinRollupTx(
689
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>
690
+ ): Promise<GraphQLClient.Transaction>;
691
+ signLeaveRollupTx(
692
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>
554
693
  ): Promise<GraphQLClient.Transaction>;
555
- signExchangeTx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeTx>): Promise<GraphQLClient.Transaction>;
556
- signExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.Transaction>;
557
- signJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.Transaction>;
558
- signLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.Transaction>;
559
694
  signMigrateRollupContractTx(
560
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
695
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>
561
696
  ): Promise<GraphQLClient.Transaction>;
562
697
  signMigrateRollupTokenTx(
563
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
698
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>
699
+ ): Promise<GraphQLClient.Transaction>;
700
+ signMintAssetTx(
701
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>
702
+ ): Promise<GraphQLClient.Transaction>;
703
+ signPauseRollupTx(
704
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>
705
+ ): Promise<GraphQLClient.Transaction>;
706
+ signResumeRollupTx(
707
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>
564
708
  ): Promise<GraphQLClient.Transaction>;
565
- signMintAssetTx(param: GraphQLClient.TxParam<GraphQLClient.MintAssetTx>): Promise<GraphQLClient.Transaction>;
566
- signPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.Transaction>;
567
- signResumeRollupTx(param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>): Promise<GraphQLClient.Transaction>;
568
709
  signRevokeDelegateTx(
569
- param: GraphQLClient.TxParam<GraphQLClient.RevokeDelegateTx>
710
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>
711
+ ): Promise<GraphQLClient.Transaction>;
712
+ signRevokeStakeTx(
713
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>
714
+ ): Promise<GraphQLClient.Transaction>;
715
+ signStakeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>): Promise<GraphQLClient.Transaction>;
716
+ signTransferTx(
717
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>
718
+ ): Promise<GraphQLClient.Transaction>;
719
+ signTransferV2Tx(
720
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>
721
+ ): Promise<GraphQLClient.Transaction>;
722
+ signTransferV3Tx(
723
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>
724
+ ): Promise<GraphQLClient.Transaction>;
725
+ signUpdateAssetTx(
726
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>
727
+ ): Promise<GraphQLClient.Transaction>;
728
+ signUpdateRollupTx(
729
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>
730
+ ): Promise<GraphQLClient.Transaction>;
731
+ signUpgradeNodeTx(
732
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>
570
733
  ): Promise<GraphQLClient.Transaction>;
571
- signRevokeStakeTx(param: GraphQLClient.TxParam<GraphQLClient.RevokeStakeTx>): Promise<GraphQLClient.Transaction>;
572
- signStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.Transaction>;
573
- signTransferTx(param: GraphQLClient.TxParam<GraphQLClient.TransferTx>): Promise<GraphQLClient.Transaction>;
574
- signTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.Transaction>;
575
- signTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.Transaction>;
576
- signUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.Transaction>;
577
- signUpdateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>): Promise<GraphQLClient.Transaction>;
578
- signUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.Transaction>;
579
734
  signWithdrawTokenV2Tx(
580
- param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
735
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>
736
+ ): Promise<GraphQLClient.Transaction>;
737
+ multiSignExchangeV2Tx(
738
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>
739
+ ): Promise<GraphQLClient.Transaction>;
740
+ multiSignTransferV3Tx(
741
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>
581
742
  ): Promise<GraphQLClient.Transaction>;
582
- multiSignExchangeV2Tx(param: GraphQLClient.TxParam<GraphQLClient.ExchangeV2Tx>): Promise<GraphQLClient.Transaction>;
583
- multiSignTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.Transaction>;
584
743
  multiSignAcquireAssetV3Tx(
585
- param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
744
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>
745
+ ): Promise<GraphQLClient.Transaction>;
746
+ multiSignStakeTx(
747
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>
586
748
  ): Promise<GraphQLClient.Transaction>;
587
- multiSignStakeTx(param: GraphQLClient.TxParam<GraphQLClient.StakeTx>): Promise<GraphQLClient.Transaction>;
588
749
  multiSignUpdateRollupTx(
589
- param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>
750
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>
751
+ ): Promise<GraphQLClient.Transaction>;
752
+ multiSignJoinRollupTx(
753
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>
754
+ ): Promise<GraphQLClient.Transaction>;
755
+ multiSignLeaveRollupTx(
756
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>
757
+ ): Promise<GraphQLClient.Transaction>;
758
+ multiSignPauseRollupTx(
759
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>
590
760
  ): Promise<GraphQLClient.Transaction>;
591
- multiSignJoinRollupTx(param: GraphQLClient.TxParam<GraphQLClient.JoinRollupTx>): Promise<GraphQLClient.Transaction>;
592
- multiSignLeaveRollupTx(param: GraphQLClient.TxParam<GraphQLClient.LeaveRollupTx>): Promise<GraphQLClient.Transaction>;
593
- multiSignPauseRollupTx(param: GraphQLClient.TxParam<GraphQLClient.PauseRollupTx>): Promise<GraphQLClient.Transaction>;
594
761
  multiSignResumeRollupTx(
595
- param: GraphQLClient.TxParam<GraphQLClient.ResumeRollupTx>
762
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>
596
763
  ): Promise<GraphQLClient.Transaction>;
597
764
  multiSignDepositTokenV2Tx(
598
- param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
765
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>
599
766
  ): Promise<GraphQLClient.Transaction>;
600
767
  multiSignWithdrawTokenV2Tx(
601
- param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
768
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>
602
769
  ): Promise<GraphQLClient.Transaction>;
603
770
  multiSignCreateRollupBlockTx(
604
- param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
771
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupBlockTx>>
605
772
  ): Promise<GraphQLClient.Transaction>;
606
773
  multiSignClaimBlockRewardTx(
607
- param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
774
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>
608
775
  ): Promise<GraphQLClient.Transaction>;
609
776
  multiSignMigrateRollupContractTx(
610
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupContractTx>
777
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>
611
778
  ): Promise<GraphQLClient.Transaction>;
612
779
  multiSignMigrateRollupTokenTx(
613
- param: GraphQLClient.TxParam<GraphQLClient.MigrateRollupTokenTx>
780
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>
781
+ ): Promise<GraphQLClient.Transaction>;
782
+ multiSignCreateAssetTx(
783
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
614
784
  ): Promise<GraphQLClient.Transaction>;
615
- multiSignCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
616
785
  getAccountState(
617
786
  params: GraphQLClient.GetAccountStateParams
618
787
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>;
@@ -686,73 +855,61 @@ declare interface OcapSDK {
686
855
  }
687
856
 
688
857
  declare namespace GraphQLClient {
689
- export interface QueryResult<T> {
858
+ interface QueryResult<T> {
690
859
  then(fn: (result: T) => any): Promise<any>;
691
860
  catch(fn: (err: Error) => any): Promise<any>;
692
861
  }
693
862
 
694
- export interface SubscriptionResult<T> {
863
+ interface SubscriptionResult<T> {
695
864
  then(fn: (result: GraphQLClient.Subscription<T>) => any): Promise<any>;
696
865
  catch(fn: (err: Error) => any): Promise<any>;
697
866
  }
698
867
 
699
- export interface Subscription<T> {
868
+ interface Subscription<T> {
700
869
  on(event: 'data', fn: (data: T) => any): this;
701
870
  on(event: 'error', fn: (err: Error) => void): this;
702
871
  }
703
872
 
704
- export interface TxParam<T> {
705
- tx: ItxParam<T>;
706
- wallet: GraphQLClient.WalletObject;
707
- delegator: string;
708
- signature: string;
709
- }
710
-
711
- export interface ItxParam<T> {
712
- nonce: number;
713
- from: string;
714
- pk: string;
715
- chainId: string;
716
- delegator: string;
717
- signature: string;
718
- signatures: array;
719
- itx: T;
720
- }
721
-
722
- export interface WalletObject {
723
- publicKey: string;
724
- secretKey: string;
725
- type: GraphQLClient.WalletTypeObject;
726
- sign(message: string): string;
727
- verify(message: string, signature: string): boolean;
728
- toJSON(): object;
729
- toAddress(): string;
873
+ interface TxParam<T> {
874
+ tx: {
875
+ nonce?: number;
876
+ from?: string;
877
+ pk?: string;
878
+ chainId?: string;
879
+ delegator?: string;
880
+ signature?: string;
881
+ signatures?: GraphQLClient.Multisig;
882
+ itx: T;
883
+ };
884
+ wallet: WalletObject;
885
+ delegator?: string;
886
+ signature?: string;
730
887
  }
731
888
 
732
- export interface WalletTypeObject {
889
+ interface WalletTypeObject {
733
890
  pk: number;
734
891
  role: number;
735
892
  address: number;
736
893
  hash: number;
737
894
  }
738
895
 
739
- export interface EncodeTxResult {
896
+ interface EncodeTxResult {
740
897
  object: object;
741
898
  buffer: buffer;
742
899
  }
743
900
 
744
- export enum Direction {
901
+ enum Direction {
745
902
  MUTUAL,
746
903
  ONE_WAY,
747
904
  UNION,
748
905
  }
749
906
 
750
- export enum EncodingType {
907
+ enum EncodingType {
751
908
  BASE16,
752
909
  BASE58,
753
910
  }
754
911
 
755
- export enum HashType {
912
+ enum HashType {
756
913
  KECCAK,
757
914
  SHA3,
758
915
  SHA2,
@@ -762,13 +919,13 @@ declare namespace GraphQLClient {
762
919
  SHA3_512,
763
920
  }
764
921
 
765
- export enum KeyType {
922
+ enum KeyType {
766
923
  ED25519,
767
924
  SECP256K1,
768
925
  ETHEREUM,
769
926
  }
770
927
 
771
- export enum RoleType {
928
+ enum RoleType {
772
929
  ROLE_ACCOUNT,
773
930
  ROLE_NODE,
774
931
  ROLE_DEVICE,
@@ -793,7 +950,7 @@ declare namespace GraphQLClient {
793
950
  ROLE_ANY,
794
951
  }
795
952
 
796
- export enum StatusCode {
953
+ enum StatusCode {
797
954
  OK,
798
955
  INVALID_NONCE,
799
956
  INVALID_SIGNATURE,
@@ -871,7 +1028,7 @@ declare namespace GraphQLClient {
871
1028
  TIMEOUT,
872
1029
  }
873
1030
 
874
- export enum UpgradeAction {
1031
+ enum UpgradeAction {
875
1032
  VERIFY,
876
1033
  BACKUP,
877
1034
  REPLACE,
@@ -886,7 +1043,7 @@ declare namespace GraphQLClient {
886
1043
  DROP_ADDRESS_BOOK,
887
1044
  }
888
1045
 
889
- export enum UpgradeType {
1046
+ enum UpgradeType {
890
1047
  CONFIG_APP,
891
1048
  CONFIG_FORGE,
892
1049
  CONFIG_DFS,
@@ -899,100 +1056,100 @@ declare namespace GraphQLClient {
899
1056
  EXE_P2P,
900
1057
  }
901
1058
 
902
- export enum Validity {
1059
+ enum Validity {
903
1060
  BOTH,
904
1061
  VALID,
905
1062
  INVALID,
906
1063
  }
907
1064
 
908
- export interface AccountFilterInput {}
1065
+ interface AccountFilterInput {}
909
1066
 
910
- export interface AddressFilterInput {}
1067
+ interface AddressFilterInput {}
911
1068
 
912
- export interface AssetFilterInput {}
1069
+ interface AssetFilterInput {}
913
1070
 
914
- export interface FactoryFilterInput {}
1071
+ interface FactoryFilterInput {}
915
1072
 
916
- export interface PageInput {}
1073
+ interface PageInput {}
917
1074
 
918
- export interface PageOrderInput {}
1075
+ interface PageOrderInput {}
919
1076
 
920
- export interface RangeFilterInput {}
1077
+ interface RangeFilterInput {}
921
1078
 
922
- export interface RequestGetAccountTokensInput {}
1079
+ interface RequestGetAccountTokensInput {}
923
1080
 
924
- export interface RequestGetBlockInput {}
1081
+ interface RequestGetBlockInput {}
925
1082
 
926
- export interface RequestGetBlocksInput {}
1083
+ interface RequestGetBlocksInput {}
927
1084
 
928
- export interface RequestGetConfigInput {}
1085
+ interface RequestGetConfigInput {}
929
1086
 
930
- export interface RequestGetEvidenceStateInput {}
1087
+ interface RequestGetEvidenceStateInput {}
931
1088
 
932
- export interface RequestGetRollupBlockInput {}
1089
+ interface RequestGetRollupBlockInput {}
933
1090
 
934
- export interface RequestGetStateInput {}
1091
+ interface RequestGetStateInput {}
935
1092
 
936
- export interface RequestGetTxInput {}
1093
+ interface RequestGetTxInput {}
937
1094
 
938
- export interface RequestListAssetTransactionsInput {}
1095
+ interface RequestListAssetTransactionsInput {}
939
1096
 
940
- export interface RequestListAssetsInput {}
1097
+ interface RequestListAssetsInput {}
941
1098
 
942
- export interface RequestListBlocksInput {}
1099
+ interface RequestListBlocksInput {}
943
1100
 
944
- export interface RequestListFactoriesInput {}
1101
+ interface RequestListFactoriesInput {}
945
1102
 
946
- export interface RequestListRollupBlocksInput {}
1103
+ interface RequestListRollupBlocksInput {}
947
1104
 
948
- export interface RequestListRollupValidatorsInput {}
1105
+ interface RequestListRollupValidatorsInput {}
949
1106
 
950
- export interface RequestListRollupsInput {}
1107
+ interface RequestListRollupsInput {}
951
1108
 
952
- export interface RequestListStakesInput {}
1109
+ interface RequestListStakesInput {}
953
1110
 
954
- export interface RequestListTokensInput {}
1111
+ interface RequestListTokensInput {}
955
1112
 
956
- export interface RequestListTopAccountsInput {}
1113
+ interface RequestListTopAccountsInput {}
957
1114
 
958
- export interface RequestListTransactionsInput {}
1115
+ interface RequestListTransactionsInput {}
959
1116
 
960
- export interface RequestSearchInput {}
1117
+ interface RequestSearchInput {}
961
1118
 
962
- export interface RequestSendTxInput {}
1119
+ interface RequestSendTxInput {}
963
1120
 
964
- export interface RollupFilterInput {}
1121
+ interface RollupFilterInput {}
965
1122
 
966
- export interface TimeFilterInput {}
1123
+ interface TimeFilterInput {}
967
1124
 
968
- export interface TokenFilterInput {}
1125
+ interface TokenFilterInput {}
969
1126
 
970
- export interface TxFilterInput {}
1127
+ interface TxFilterInput {}
971
1128
 
972
- export interface TypeFilterInput {}
1129
+ interface TypeFilterInput {}
973
1130
 
974
- export interface ValidatorFilterInput {}
1131
+ interface ValidatorFilterInput {}
975
1132
 
976
- export interface ValidityFilterInput {}
1133
+ interface ValidityFilterInput {}
977
1134
 
978
- export interface WalletInfoInput {}
1135
+ interface WalletInfoInput {}
979
1136
 
980
- export interface WalletTypeInput {}
1137
+ interface WalletTypeInput {}
981
1138
 
982
- export interface AccountConfig {
1139
+ interface AccountConfig {
983
1140
  address: string;
984
1141
  pk: string;
985
1142
  balance: string;
986
1143
  }
987
1144
 
988
- export interface AccountMigrateTx {
1145
+ interface AccountMigrateTx {
989
1146
  pk: string;
990
1147
  type: GraphQLClient.WalletType;
991
1148
  address: string;
992
1149
  data: GraphQLClient.Any;
993
1150
  }
994
1151
 
995
- export interface AccountState {
1152
+ interface AccountState {
996
1153
  balance: string;
997
1154
  nonce: string;
998
1155
  numTxs: string;
@@ -1003,78 +1160,78 @@ declare namespace GraphQLClient {
1003
1160
  context: GraphQLClient.StateContext;
1004
1161
  issuer: string;
1005
1162
  gasBalance: string;
1006
- migratedTo: Array<null>;
1007
- migratedFrom: Array<null>;
1163
+ migratedTo: string[];
1164
+ migratedFrom: string[];
1008
1165
  numAssets: string;
1009
- tokens: Array<null>;
1166
+ tokens: GraphQLClient.IndexedTokenInput[];
1010
1167
  data: GraphQLClient.Any;
1011
1168
  }
1012
1169
 
1013
- export interface AccountToken {
1170
+ interface AccountToken {
1014
1171
  address: string;
1015
1172
  symbol: string;
1016
1173
  balance: string;
1017
1174
  decimal: number;
1018
1175
  }
1019
1176
 
1020
- export interface AcquireAssetV2Tx {
1177
+ interface AcquireAssetV2Tx {
1021
1178
  factory: string;
1022
1179
  address: string;
1023
- assets: Array<null>;
1024
- variables: Array<null>;
1180
+ assets: string[];
1181
+ variables: GraphQLClient.VariableInput[];
1025
1182
  issuer: GraphQLClient.NFTIssuer;
1026
1183
  data: GraphQLClient.Any;
1027
1184
  }
1028
1185
 
1029
- export interface AcquireAssetV3Tx {
1186
+ interface AcquireAssetV3Tx {
1030
1187
  factory: string;
1031
1188
  address: string;
1032
- inputs: Array<null>;
1189
+ inputs: GraphQLClient.TransactionInput[];
1033
1190
  owner: string;
1034
- variables: Array<null>;
1191
+ variables: GraphQLClient.VariableInput[];
1035
1192
  issuer: GraphQLClient.NFTIssuer;
1036
1193
  data: GraphQLClient.Any;
1037
1194
  }
1038
1195
 
1039
- export interface Any {
1196
+ interface Any {
1040
1197
  typeUrl: string;
1041
1198
  value: string;
1042
1199
  }
1043
1200
 
1044
- export interface AssetFactoryHook {
1201
+ interface AssetFactoryHook {
1045
1202
  name: string;
1046
1203
  type: string;
1047
1204
  hook: string;
1048
1205
  }
1049
1206
 
1050
- export interface AssetFactoryInput {
1207
+ interface AssetFactoryInput {
1051
1208
  value: string;
1052
- tokens: Array<null>;
1053
- assets: Array<null>;
1054
- variables: Array<null>;
1209
+ tokens: GraphQLClient.TokenInput[];
1210
+ assets: string[];
1211
+ variables: GraphQLClient.VariableInput[];
1055
1212
  }
1056
1213
 
1057
- export interface AssetFactoryState {
1214
+ interface AssetFactoryState {
1058
1215
  address: string;
1059
1216
  owner: string;
1060
1217
  name: string;
1061
1218
  description: string;
1062
1219
  settlement: string;
1063
1220
  limit: number;
1064
- trustedIssuers: Array<null>;
1221
+ trustedIssuers: string[];
1065
1222
  input: GraphQLClient.IndexedFactoryInput;
1066
1223
  output: GraphQLClient.CreateAssetTx;
1067
- hooks: Array<null>;
1224
+ hooks: GraphQLClient.AssetFactoryHook[];
1068
1225
  data: GraphQLClient.Any;
1069
1226
  context: GraphQLClient.StateContext;
1070
1227
  balance: string;
1071
- tokens: Array<null>;
1228
+ tokens: GraphQLClient.IndexedTokenInput[];
1072
1229
  numMinted: number;
1073
1230
  display: GraphQLClient.NFTDisplay;
1074
1231
  lastSettlement: string;
1075
1232
  }
1076
1233
 
1077
- export interface AssetState {
1234
+ interface AssetState {
1078
1235
  address: string;
1079
1236
  owner: string;
1080
1237
  moniker: string;
@@ -1086,27 +1243,27 @@ declare namespace GraphQLClient {
1086
1243
  parent: string;
1087
1244
  endpoint: GraphQLClient.NFTEndpoint;
1088
1245
  display: GraphQLClient.NFTDisplay;
1089
- tags: Array<null>;
1246
+ tags: string[];
1090
1247
  context: GraphQLClient.StateContext;
1091
1248
  data: GraphQLClient.Any;
1092
1249
  }
1093
1250
 
1094
- export interface BlockID {
1251
+ interface BlockID {
1095
1252
  hash: string;
1096
1253
  partsHeader: GraphQLClient.PartSetHeader;
1097
1254
  }
1098
1255
 
1099
- export interface BlockInfo {
1256
+ interface BlockInfo {
1100
1257
  height: string;
1101
1258
  numTxs: number;
1102
1259
  time: string;
1103
1260
  appHash: string;
1104
1261
  proposer: string;
1105
- txs: Array<null>;
1262
+ txs: GraphQLClient.TransactionInfo[];
1106
1263
  totalTxs: string;
1107
- invalidTxs: Array<null>;
1108
- txsHashes: Array<null>;
1109
- invalidTxsHashes: Array<null>;
1264
+ invalidTxs: GraphQLClient.TransactionInfo[];
1265
+ txsHashes: string[];
1266
+ invalidTxsHashes: string[];
1110
1267
  consensusHash: string;
1111
1268
  dataHash: string;
1112
1269
  evidenceHash: string;
@@ -1118,15 +1275,15 @@ declare namespace GraphQLClient {
1118
1275
  lastBlockId: GraphQLClient.BlockID;
1119
1276
  }
1120
1277
 
1121
- export interface BlockInfoSimple {
1278
+ interface BlockInfoSimple {
1122
1279
  height: string;
1123
1280
  numTxs: number;
1124
1281
  time: string;
1125
1282
  appHash: string;
1126
1283
  proposer: string;
1127
1284
  totalTxs: string;
1128
- txsHashes: Array<null>;
1129
- invalidTxsHashes: Array<null>;
1285
+ txsHashes: string[];
1286
+ invalidTxsHashes: string[];
1130
1287
  consensusHash: string;
1131
1288
  dataHash: string;
1132
1289
  evidenceHash: string;
@@ -1138,7 +1295,7 @@ declare namespace GraphQLClient {
1138
1295
  lastBlockId: GraphQLClient.BlockID;
1139
1296
  }
1140
1297
 
1141
- export interface ChainInfo {
1298
+ interface ChainInfo {
1142
1299
  id: string;
1143
1300
  network: string;
1144
1301
  moniker: string;
@@ -1152,16 +1309,16 @@ declare namespace GraphQLClient {
1152
1309
  votingPower: string;
1153
1310
  totalTxs: string;
1154
1311
  version: string;
1155
- forgeAppsVersion: Array<null>;
1156
- supportedTxs: Array<null>;
1312
+ forgeAppsVersion: GraphQLClient.ChainInfo_ForgeAppsVersionEntry[];
1313
+ supportedTxs: string[];
1157
1314
  }
1158
1315
 
1159
- export interface ChainInfo_ForgeAppsVersionEntry {
1316
+ interface ChainInfo_ForgeAppsVersionEntry {
1160
1317
  key: string;
1161
1318
  value: string;
1162
1319
  }
1163
1320
 
1164
- export interface ClaimBlockRewardTx {
1321
+ interface ClaimBlockRewardTx {
1165
1322
  rollup: string;
1166
1323
  blockHeight: number;
1167
1324
  blockHash: string;
@@ -1170,24 +1327,24 @@ declare namespace GraphQLClient {
1170
1327
  data: GraphQLClient.Any;
1171
1328
  }
1172
1329
 
1173
- export interface ClaimStakeTx {
1330
+ interface ClaimStakeTx {
1174
1331
  address: string;
1175
1332
  evidence: GraphQLClient.Evidence;
1176
1333
  data: GraphQLClient.Any;
1177
1334
  }
1178
1335
 
1179
- export interface ConsensusParams {
1336
+ interface ConsensusParams {
1180
1337
  maxBytes: string;
1181
1338
  maxGas: string;
1182
1339
  maxValidators: number;
1183
1340
  maxCandidates: number;
1184
- pubKeyTypes: Array<null>;
1185
- validators: Array<null>;
1341
+ pubKeyTypes: string[];
1342
+ validators: GraphQLClient.Validator[];
1186
1343
  validatorChanged: boolean;
1187
1344
  paramChanged: boolean;
1188
1345
  }
1189
1346
 
1190
- export interface CreateAssetTx {
1347
+ interface CreateAssetTx {
1191
1348
  moniker: string;
1192
1349
  data: GraphQLClient.Any;
1193
1350
  readonly: boolean;
@@ -1198,42 +1355,42 @@ declare namespace GraphQLClient {
1198
1355
  issuer: string;
1199
1356
  endpoint: GraphQLClient.NFTEndpoint;
1200
1357
  display: GraphQLClient.NFTDisplay;
1201
- tags: Array<null>;
1358
+ tags: string[];
1202
1359
  }
1203
1360
 
1204
- export interface CreateFactoryTx {
1361
+ interface CreateFactoryTx {
1205
1362
  name: string;
1206
1363
  description: string;
1207
1364
  settlement: string;
1208
1365
  limit: number;
1209
- trustedIssuers: Array<null>;
1366
+ trustedIssuers: string[];
1210
1367
  input: GraphQLClient.AssetFactoryInput;
1211
1368
  output: GraphQLClient.CreateAssetTx;
1212
- hooks: Array<null>;
1369
+ hooks: GraphQLClient.AssetFactoryHook[];
1213
1370
  address: string;
1214
1371
  display: GraphQLClient.NFTDisplay;
1215
1372
  data: GraphQLClient.Any;
1216
1373
  }
1217
1374
 
1218
- export interface CreateRollupBlockTx {
1375
+ interface CreateRollupBlockTx {
1219
1376
  hash: string;
1220
1377
  height: number;
1221
1378
  merkleRoot: string;
1222
1379
  previousHash: string;
1223
1380
  txsHash: string;
1224
- txs: Array<null>;
1381
+ txs: string[];
1225
1382
  proposer: string;
1226
- signatures: Array<null>;
1383
+ signatures: GraphQLClient.Multisig[];
1227
1384
  rollup: string;
1228
1385
  minReward: string;
1229
1386
  data: GraphQLClient.Any;
1230
1387
  }
1231
1388
 
1232
- export interface CreateRollupTx {
1389
+ interface CreateRollupTx {
1233
1390
  address: string;
1234
1391
  tokenAddress: string;
1235
1392
  contractAddress: string;
1236
- seedValidators: Array<null>;
1393
+ seedValidators: GraphQLClient.RollupValidator[];
1237
1394
  minStakeAmount: string;
1238
1395
  maxStakeAmount: string;
1239
1396
  minSignerCount: number;
@@ -1263,7 +1420,7 @@ declare namespace GraphQLClient {
1263
1420
  data: GraphQLClient.Any;
1264
1421
  }
1265
1422
 
1266
- export interface CreateTokenTx {
1423
+ interface CreateTokenTx {
1267
1424
  name: string;
1268
1425
  description: string;
1269
1426
  symbol: string;
@@ -1277,23 +1434,23 @@ declare namespace GraphQLClient {
1277
1434
  data: GraphQLClient.Any;
1278
1435
  }
1279
1436
 
1280
- export interface DeclareTx {
1437
+ interface DeclareTx {
1281
1438
  moniker: string;
1282
1439
  issuer: string;
1283
1440
  data: GraphQLClient.Any;
1284
1441
  }
1285
1442
 
1286
- export interface DelegateConfig {
1443
+ interface DelegateConfig {
1287
1444
  deltaInterval: number;
1288
- typeUrls: Array<null>;
1445
+ typeUrls: string[];
1289
1446
  }
1290
1447
 
1291
- export interface DelegateOp {
1448
+ interface DelegateOp {
1292
1449
  typeUrl: string;
1293
- rules: Array<null>;
1450
+ rules: string[];
1294
1451
  }
1295
1452
 
1296
- export interface DelegateOpState {
1453
+ interface DelegateOpState {
1297
1454
  rule: string;
1298
1455
  numTxs: number;
1299
1456
  numTxsDelta: number;
@@ -1301,26 +1458,26 @@ declare namespace GraphQLClient {
1301
1458
  balanceDelta: string;
1302
1459
  }
1303
1460
 
1304
- export interface DelegateState {
1461
+ interface DelegateState {
1305
1462
  address: string;
1306
- ops: Array<null>;
1463
+ ops: GraphQLClient.DelegateState_OpsEntry[];
1307
1464
  context: GraphQLClient.StateContext;
1308
1465
  data: GraphQLClient.Any;
1309
1466
  }
1310
1467
 
1311
- export interface DelegateState_OpsEntry {
1468
+ interface DelegateState_OpsEntry {
1312
1469
  key: string;
1313
1470
  value: GraphQLClient.DelegateOpState;
1314
1471
  }
1315
1472
 
1316
- export interface DelegateTx {
1473
+ interface DelegateTx {
1317
1474
  address: string;
1318
1475
  to: string;
1319
- ops: Array<null>;
1476
+ ops: GraphQLClient.DelegateOp[];
1320
1477
  data: GraphQLClient.Any;
1321
1478
  }
1322
1479
 
1323
- export interface DepositTokenV2Tx {
1480
+ interface DepositTokenV2Tx {
1324
1481
  token: GraphQLClient.TokenInput;
1325
1482
  to: string;
1326
1483
  proposer: string;
@@ -1330,28 +1487,28 @@ declare namespace GraphQLClient {
1330
1487
  data: GraphQLClient.Any;
1331
1488
  }
1332
1489
 
1333
- export interface Evidence {
1490
+ interface Evidence {
1334
1491
  hash: string;
1335
1492
  }
1336
1493
 
1337
- export interface EvidenceState {
1494
+ interface EvidenceState {
1338
1495
  hash: string;
1339
1496
  data: string;
1340
1497
  context: GraphQLClient.StateContext;
1341
1498
  }
1342
1499
 
1343
- export interface ExchangeInfo {
1500
+ interface ExchangeInfo {
1344
1501
  value: string;
1345
- assets: Array<null>;
1502
+ assets: string[];
1346
1503
  }
1347
1504
 
1348
- export interface ExchangeInfoV2 {
1505
+ interface ExchangeInfoV2 {
1349
1506
  value: string;
1350
- assets: Array<null>;
1351
- tokens: Array<null>;
1507
+ assets: string[];
1508
+ tokens: GraphQLClient.TokenInput[];
1352
1509
  }
1353
1510
 
1354
- export interface ExchangeTx {
1511
+ interface ExchangeTx {
1355
1512
  to: string;
1356
1513
  sender: GraphQLClient.ExchangeInfo;
1357
1514
  receiver: GraphQLClient.ExchangeInfo;
@@ -1359,7 +1516,7 @@ declare namespace GraphQLClient {
1359
1516
  data: GraphQLClient.Any;
1360
1517
  }
1361
1518
 
1362
- export interface ExchangeV2Tx {
1519
+ interface ExchangeV2Tx {
1363
1520
  to: string;
1364
1521
  sender: GraphQLClient.ExchangeInfoV2;
1365
1522
  receiver: GraphQLClient.ExchangeInfoV2;
@@ -1367,7 +1524,7 @@ declare namespace GraphQLClient {
1367
1524
  data: GraphQLClient.Any;
1368
1525
  }
1369
1526
 
1370
- export interface ForeignToken {
1527
+ interface ForeignToken {
1371
1528
  type: string;
1372
1529
  contractAddress: string;
1373
1530
  chainType: string;
@@ -1375,46 +1532,46 @@ declare namespace GraphQLClient {
1375
1532
  chainId: number;
1376
1533
  }
1377
1534
 
1378
- export interface ForgeState {
1535
+ interface ForgeState {
1379
1536
  address: string;
1380
1537
  consensus: GraphQLClient.ConsensusParams;
1381
- tasks: Array<null>;
1538
+ tasks: GraphQLClient.ForgeState_TasksEntry[];
1382
1539
  version: string;
1383
1540
  token: GraphQLClient.ForgeToken;
1384
1541
  txConfig: GraphQLClient.TransactionConfig;
1385
1542
  upgradeInfo: GraphQLClient.UpgradeInfo;
1386
- accountConfig: Array<null>;
1543
+ accountConfig: GraphQLClient.AccountConfig[];
1387
1544
  data: GraphQLClient.Any;
1388
1545
  }
1389
1546
 
1390
- export interface ForgeState_TasksEntry {
1547
+ interface ForgeState_TasksEntry {
1391
1548
  key: number;
1392
1549
  value: GraphQLClient.UpgradeTasks;
1393
1550
  }
1394
1551
 
1395
- export interface ForgeStats {
1396
- numBlocks: Array<null>;
1397
- numTxs: Array<null>;
1398
- numStakes: Array<null>;
1399
- numValidators: Array<null>;
1400
- numAccountMigrateTxs: Array<null>;
1401
- numCreateAssetTxs: Array<null>;
1402
- numConsensusUpgradeTxs: Array<null>;
1403
- numDeclareTxs: Array<null>;
1404
- numDeclareFileTxs: Array<null>;
1405
- numExchangeTxs: Array<null>;
1406
- numStakeTxs: Array<null>;
1407
- numSysUpgradeTxs: Array<null>;
1408
- numTransferTxs: Array<null>;
1409
- numUpdateAssetTxs: Array<null>;
1410
- numConsumeAssetTxs: Array<null>;
1411
- tps: Array<null>;
1552
+ interface ForgeStats {
1553
+ numBlocks: string[];
1554
+ numTxs: string[];
1555
+ numStakes: string[];
1556
+ numValidators: number[];
1557
+ numAccountMigrateTxs: string[];
1558
+ numCreateAssetTxs: string[];
1559
+ numConsensusUpgradeTxs: number[];
1560
+ numDeclareTxs: string[];
1561
+ numDeclareFileTxs: string[];
1562
+ numExchangeTxs: string[];
1563
+ numStakeTxs: string[];
1564
+ numSysUpgradeTxs: number[];
1565
+ numTransferTxs: string[];
1566
+ numUpdateAssetTxs: string[];
1567
+ numConsumeAssetTxs: string[];
1568
+ tps: number[];
1412
1569
  maxTps: number;
1413
1570
  avgTps: number;
1414
1571
  avgBlockTime: number;
1415
1572
  }
1416
1573
 
1417
- export interface ForgeToken {
1574
+ interface ForgeToken {
1418
1575
  name: string;
1419
1576
  symbol: string;
1420
1577
  unit: string;
@@ -1427,14 +1584,14 @@ declare namespace GraphQLClient {
1427
1584
  address: string;
1428
1585
  }
1429
1586
 
1430
- export interface GeoInfo {
1587
+ interface GeoInfo {
1431
1588
  city: string;
1432
1589
  country: string;
1433
1590
  latitude: number;
1434
1591
  longitude: number;
1435
1592
  }
1436
1593
 
1437
- export interface IndexedAccountState {
1594
+ interface IndexedAccountState {
1438
1595
  address: string;
1439
1596
  balance: string;
1440
1597
  numAssets: string;
@@ -1448,11 +1605,11 @@ declare namespace GraphQLClient {
1448
1605
  totalReceivedStakes: string;
1449
1606
  totalStakes: string;
1450
1607
  totalUnstakes: string;
1451
- recentNumTxs: Array<null>;
1452
- tokens: Array<null>;
1608
+ recentNumTxs: string[];
1609
+ tokens: GraphQLClient.TokenInfo[];
1453
1610
  }
1454
1611
 
1455
- export interface IndexedAssetState {
1612
+ interface IndexedAssetState {
1456
1613
  address: string;
1457
1614
  owner: string;
1458
1615
  genesisTime: string;
@@ -1466,11 +1623,11 @@ declare namespace GraphQLClient {
1466
1623
  ttl: string;
1467
1624
  display: GraphQLClient.NFTDisplay;
1468
1625
  endpoint: GraphQLClient.NFTEndpoint;
1469
- tags: Array<null>;
1626
+ tags: string[];
1470
1627
  data: GraphQLClient.Any;
1471
1628
  }
1472
1629
 
1473
- export interface IndexedBlock {
1630
+ interface IndexedBlock {
1474
1631
  height: string;
1475
1632
  time: string;
1476
1633
  proposer: string;
@@ -1478,27 +1635,27 @@ declare namespace GraphQLClient {
1478
1635
  numInvalidTxs: string;
1479
1636
  }
1480
1637
 
1481
- export interface IndexedFactoryInput {
1638
+ interface IndexedFactoryInput {
1482
1639
  value: string;
1483
- tokens: Array<null>;
1484
- assets: Array<null>;
1485
- variables: Array<null>;
1640
+ tokens: GraphQLClient.IndexedTokenInput[];
1641
+ assets: string[];
1642
+ variables: GraphQLClient.VariableInput[];
1486
1643
  }
1487
1644
 
1488
- export interface IndexedFactoryState {
1645
+ interface IndexedFactoryState {
1489
1646
  address: string;
1490
1647
  owner: string;
1491
1648
  name: string;
1492
1649
  description: string;
1493
1650
  settlement: string;
1494
1651
  limit: string;
1495
- trustedIssuers: Array<null>;
1652
+ trustedIssuers: string[];
1496
1653
  input: GraphQLClient.IndexedFactoryInput;
1497
1654
  output: GraphQLClient.CreateAssetTx;
1498
- hooks: Array<null>;
1655
+ hooks: GraphQLClient.AssetFactoryHook[];
1499
1656
  data: GraphQLClient.Any;
1500
1657
  balance: string;
1501
- tokens: Array<null>;
1658
+ tokens: GraphQLClient.TokenInfo[];
1502
1659
  numMinted: number;
1503
1660
  lastSettlement: string;
1504
1661
  genesisTime: string;
@@ -1506,15 +1663,15 @@ declare namespace GraphQLClient {
1506
1663
  display: GraphQLClient.NFTDisplay;
1507
1664
  }
1508
1665
 
1509
- export interface IndexedRollupBlock {
1666
+ interface IndexedRollupBlock {
1510
1667
  hash: string;
1511
1668
  height: number;
1512
1669
  merkleRoot: string;
1513
1670
  previousHash: string;
1514
1671
  txsHash: string;
1515
- txs: Array<null>;
1672
+ txs: string[];
1516
1673
  proposer: string;
1517
- signatures: Array<null>;
1674
+ signatures: GraphQLClient.Multisig[];
1518
1675
  genesisTime: string;
1519
1676
  renaissanceTime: string;
1520
1677
  rollup: string;
@@ -1525,12 +1682,12 @@ declare namespace GraphQLClient {
1525
1682
  data: GraphQLClient.Any;
1526
1683
  }
1527
1684
 
1528
- export interface IndexedRollupState {
1685
+ interface IndexedRollupState {
1529
1686
  address: string;
1530
1687
  tokenAddress: string;
1531
1688
  contractAddress: string;
1532
- seedValidators: Array<null>;
1533
- validators: Array<null>;
1689
+ seedValidators: GraphQLClient.RollupValidator[];
1690
+ validators: GraphQLClient.RollupValidator[];
1534
1691
  minStakeAmount: string;
1535
1692
  maxStakeAmount: string;
1536
1693
  minSignerCount: number;
@@ -1564,11 +1721,11 @@ declare namespace GraphQLClient {
1564
1721
  publisherFeeShare: number;
1565
1722
  publishWaitingPeriod: number;
1566
1723
  publishSlashRate: number;
1567
- migrateHistory: Array<null>;
1724
+ migrateHistory: string[];
1568
1725
  data: GraphQLClient.Any;
1569
1726
  }
1570
1727
 
1571
- export interface IndexedRollupValidator {
1728
+ interface IndexedRollupValidator {
1572
1729
  pk: string;
1573
1730
  address: string;
1574
1731
  moniker: string;
@@ -1588,23 +1745,23 @@ declare namespace GraphQLClient {
1588
1745
  rollup: string;
1589
1746
  }
1590
1747
 
1591
- export interface IndexedStakeState {
1748
+ interface IndexedStakeState {
1592
1749
  address: string;
1593
1750
  sender: string;
1594
1751
  receiver: string;
1595
- tokens: Array<null>;
1596
- assets: Array<null>;
1752
+ tokens: GraphQLClient.TokenInfo[];
1753
+ assets: string[];
1597
1754
  revocable: boolean;
1598
1755
  genesisTime: string;
1599
1756
  renaissanceTime: string;
1600
1757
  message: string;
1601
1758
  revokeWaitingPeriod: number;
1602
- revokedTokens: Array<null>;
1603
- revokedAssets: Array<null>;
1759
+ revokedTokens: GraphQLClient.TokenInfo[];
1760
+ revokedAssets: string[];
1604
1761
  data: GraphQLClient.Any;
1605
1762
  }
1606
1763
 
1607
- export interface IndexedTokenInput {
1764
+ interface IndexedTokenInput {
1608
1765
  address: string;
1609
1766
  value: string;
1610
1767
  decimal: number;
@@ -1612,7 +1769,7 @@ declare namespace GraphQLClient {
1612
1769
  symbol: string;
1613
1770
  }
1614
1771
 
1615
- export interface IndexedTokenState {
1772
+ interface IndexedTokenState {
1616
1773
  name: string;
1617
1774
  description: string;
1618
1775
  symbol: string;
@@ -1628,7 +1785,7 @@ declare namespace GraphQLClient {
1628
1785
  data: GraphQLClient.Any;
1629
1786
  }
1630
1787
 
1631
- export interface IndexedTransaction {
1788
+ interface IndexedTransaction {
1632
1789
  hash: string;
1633
1790
  sender: string;
1634
1791
  receiver: string;
@@ -1637,37 +1794,37 @@ declare namespace GraphQLClient {
1637
1794
  tx: GraphQLClient.Transaction;
1638
1795
  valid: boolean;
1639
1796
  code: string;
1640
- tokenSymbols: Array<null>;
1641
- receipts: Array<null>;
1797
+ tokenSymbols: GraphQLClient.TokenSymbol[];
1798
+ receipts: GraphQLClient.TransactionReceipt[];
1642
1799
  }
1643
1800
 
1644
- export interface JoinRollupTx {
1801
+ interface JoinRollupTx {
1645
1802
  rollup: string;
1646
1803
  endpoint: string;
1647
1804
  evidence: GraphQLClient.Evidence;
1648
- signatures: Array<null>;
1805
+ signatures: GraphQLClient.Multisig[];
1649
1806
  data: GraphQLClient.Any;
1650
1807
  }
1651
1808
 
1652
- export interface KVPair {
1809
+ interface KVPair {
1653
1810
  key: string;
1654
1811
  value: string;
1655
1812
  }
1656
1813
 
1657
- export interface LeaveRollupTx {
1814
+ interface LeaveRollupTx {
1658
1815
  rollup: string;
1659
1816
  evidence: GraphQLClient.Evidence;
1660
- signatures: Array<null>;
1817
+ signatures: GraphQLClient.Multisig[];
1661
1818
  data: GraphQLClient.Any;
1662
1819
  }
1663
1820
 
1664
- export interface MigrateRollupContractTx {
1821
+ interface MigrateRollupContractTx {
1665
1822
  rollup: string;
1666
1823
  to: string;
1667
1824
  data: GraphQLClient.Any;
1668
1825
  }
1669
1826
 
1670
- export interface MigrateRollupTokenTx {
1827
+ interface MigrateRollupTokenTx {
1671
1828
  rollup: string;
1672
1829
  from: string;
1673
1830
  to: string;
@@ -1675,16 +1832,16 @@ declare namespace GraphQLClient {
1675
1832
  data: GraphQLClient.Any;
1676
1833
  }
1677
1834
 
1678
- export interface MintAssetTx {
1835
+ interface MintAssetTx {
1679
1836
  factory: string;
1680
1837
  address: string;
1681
- assets: Array<null>;
1682
- variables: Array<null>;
1838
+ assets: string[];
1839
+ variables: GraphQLClient.VariableInput[];
1683
1840
  owner: string;
1684
1841
  data: GraphQLClient.Any;
1685
1842
  }
1686
1843
 
1687
- export interface Multisig {
1844
+ interface Multisig {
1688
1845
  signer: string;
1689
1846
  pk: string;
1690
1847
  signature: string;
@@ -1692,30 +1849,30 @@ declare namespace GraphQLClient {
1692
1849
  data: GraphQLClient.Any;
1693
1850
  }
1694
1851
 
1695
- export interface NFTDisplay {
1852
+ interface NFTDisplay {
1696
1853
  type: string;
1697
1854
  content: string;
1698
1855
  }
1699
1856
 
1700
- export interface NFTEndpoint {
1857
+ interface NFTEndpoint {
1701
1858
  id: string;
1702
1859
  scope: string;
1703
1860
  }
1704
1861
 
1705
- export interface NFTIssuer {
1862
+ interface NFTIssuer {
1706
1863
  id: string;
1707
1864
  pk: string;
1708
1865
  name: string;
1709
1866
  }
1710
1867
 
1711
- export interface NetInfo {
1868
+ interface NetInfo {
1712
1869
  listening: boolean;
1713
- listeners: Array<null>;
1870
+ listeners: string[];
1714
1871
  nPeers: number;
1715
- peers: Array<null>;
1872
+ peers: GraphQLClient.PeerInfo[];
1716
1873
  }
1717
1874
 
1718
- export interface NodeInfo {
1875
+ interface NodeInfo {
1719
1876
  id: string;
1720
1877
  network: string;
1721
1878
  moniker: string;
@@ -1729,35 +1886,35 @@ declare namespace GraphQLClient {
1729
1886
  votingPower: string;
1730
1887
  totalTxs: string;
1731
1888
  version: string;
1732
- forgeAppsVersion: Array<null>;
1733
- supportedTxs: Array<null>;
1889
+ forgeAppsVersion: GraphQLClient.NodeInfo_ForgeAppsVersionEntry[];
1890
+ supportedTxs: string[];
1734
1891
  ip: string;
1735
1892
  geoInfo: GraphQLClient.GeoInfo;
1736
1893
  p2pAddress: string;
1737
1894
  }
1738
1895
 
1739
- export interface NodeInfo_ForgeAppsVersionEntry {
1896
+ interface NodeInfo_ForgeAppsVersionEntry {
1740
1897
  key: string;
1741
1898
  value: string;
1742
1899
  }
1743
1900
 
1744
- export interface PageInfo {
1901
+ interface PageInfo {
1745
1902
  cursor: string;
1746
1903
  next: boolean;
1747
1904
  total: number;
1748
1905
  }
1749
1906
 
1750
- export interface PartSetHeader {
1907
+ interface PartSetHeader {
1751
1908
  total: number;
1752
1909
  hash: string;
1753
1910
  }
1754
1911
 
1755
- export interface PauseRollupTx {
1912
+ interface PauseRollupTx {
1756
1913
  rollup: string;
1757
1914
  data: GraphQLClient.Any;
1758
1915
  }
1759
1916
 
1760
- export interface PeerInfo {
1917
+ interface PeerInfo {
1761
1918
  id: string;
1762
1919
  network: string;
1763
1920
  consensusVersion: string;
@@ -1766,227 +1923,227 @@ declare namespace GraphQLClient {
1766
1923
  geoInfo: GraphQLClient.GeoInfo;
1767
1924
  }
1768
1925
 
1769
- export interface PubKey {
1926
+ interface PubKey {
1770
1927
  type: string;
1771
1928
  data: string;
1772
1929
  }
1773
1930
 
1774
- export interface ReceiptChange {
1931
+ interface ReceiptChange {
1775
1932
  target: string;
1776
1933
  action: string;
1777
1934
  value: string;
1778
1935
  }
1779
1936
 
1780
- export interface ResponseGetAccountState {
1937
+ interface ResponseGetAccountState {
1781
1938
  code: string;
1782
1939
  state: GraphQLClient.AccountState;
1783
1940
  }
1784
1941
 
1785
- export interface ResponseGetAccountTokens {
1942
+ interface ResponseGetAccountTokens {
1786
1943
  code: string;
1787
- tokens: Array<null>;
1944
+ tokens: GraphQLClient.AccountToken[];
1788
1945
  }
1789
1946
 
1790
- export interface ResponseGetAssetState {
1947
+ interface ResponseGetAssetState {
1791
1948
  code: string;
1792
1949
  state: GraphQLClient.AssetState;
1793
1950
  }
1794
1951
 
1795
- export interface ResponseGetBlock {
1952
+ interface ResponseGetBlock {
1796
1953
  code: string;
1797
1954
  block: GraphQLClient.BlockInfo;
1798
1955
  }
1799
1956
 
1800
- export interface ResponseGetBlocks {
1957
+ interface ResponseGetBlocks {
1801
1958
  code: string;
1802
1959
  page: GraphQLClient.PageInfo;
1803
- blocks: Array<null>;
1960
+ blocks: GraphQLClient.BlockInfoSimple[];
1804
1961
  }
1805
1962
 
1806
- export interface ResponseGetChainInfo {
1963
+ interface ResponseGetChainInfo {
1807
1964
  code: string;
1808
1965
  info: GraphQLClient.ChainInfo;
1809
1966
  }
1810
1967
 
1811
- export interface ResponseGetConfig {
1968
+ interface ResponseGetConfig {
1812
1969
  code: string;
1813
1970
  }
1814
1971
 
1815
- export interface ResponseGetDelegateState {
1972
+ interface ResponseGetDelegateState {
1816
1973
  code: string;
1817
1974
  state: GraphQLClient.DelegateState;
1818
1975
  }
1819
1976
 
1820
- export interface ResponseGetEvidenceState {
1977
+ interface ResponseGetEvidenceState {
1821
1978
  code: string;
1822
1979
  state: GraphQLClient.EvidenceState;
1823
1980
  }
1824
1981
 
1825
- export interface ResponseGetFactoryState {
1982
+ interface ResponseGetFactoryState {
1826
1983
  code: string;
1827
1984
  state: GraphQLClient.AssetFactoryState;
1828
1985
  }
1829
1986
 
1830
- export interface ResponseGetForgeState {
1987
+ interface ResponseGetForgeState {
1831
1988
  code: string;
1832
1989
  state: GraphQLClient.ForgeState;
1833
1990
  }
1834
1991
 
1835
- export interface ResponseGetForgeStats {
1992
+ interface ResponseGetForgeStats {
1836
1993
  code: string;
1837
1994
  forgeStats: GraphQLClient.ForgeStats;
1838
1995
  }
1839
1996
 
1840
- export interface ResponseGetNetInfo {
1997
+ interface ResponseGetNetInfo {
1841
1998
  code: string;
1842
1999
  netInfo: GraphQLClient.NetInfo;
1843
2000
  }
1844
2001
 
1845
- export interface ResponseGetNodeInfo {
2002
+ interface ResponseGetNodeInfo {
1846
2003
  code: string;
1847
2004
  info: GraphQLClient.NodeInfo;
1848
2005
  }
1849
2006
 
1850
- export interface ResponseGetRollupBlock {
2007
+ interface ResponseGetRollupBlock {
1851
2008
  code: string;
1852
2009
  block: GraphQLClient.RollupBlock;
1853
2010
  }
1854
2011
 
1855
- export interface ResponseGetRollupState {
2012
+ interface ResponseGetRollupState {
1856
2013
  code: string;
1857
2014
  state: GraphQLClient.RollupState;
1858
2015
  }
1859
2016
 
1860
- export interface ResponseGetStakeState {
2017
+ interface ResponseGetStakeState {
1861
2018
  code: string;
1862
2019
  state: GraphQLClient.StakeState;
1863
2020
  }
1864
2021
 
1865
- export interface ResponseGetTokenState {
2022
+ interface ResponseGetTokenState {
1866
2023
  code: string;
1867
2024
  state: GraphQLClient.TokenState;
1868
2025
  }
1869
2026
 
1870
- export interface ResponseGetTx {
2027
+ interface ResponseGetTx {
1871
2028
  code: string;
1872
2029
  info: GraphQLClient.TransactionInfo;
1873
2030
  }
1874
2031
 
1875
- export interface ResponseGetUnconfirmedTxs {
2032
+ interface ResponseGetUnconfirmedTxs {
1876
2033
  code: string;
1877
2034
  page: GraphQLClient.PageInfo;
1878
2035
  unconfirmedTxs: GraphQLClient.UnconfirmedTxs;
1879
2036
  }
1880
2037
 
1881
- export interface ResponseGetValidatorsInfo {
2038
+ interface ResponseGetValidatorsInfo {
1882
2039
  code: string;
1883
2040
  validatorsInfo: GraphQLClient.ValidatorsInfo;
1884
2041
  }
1885
2042
 
1886
- export interface ResponseListAssetTransactions {
2043
+ interface ResponseListAssetTransactions {
1887
2044
  code: string;
1888
2045
  page: GraphQLClient.PageInfo;
1889
- transactions: Array<null>;
2046
+ transactions: GraphQLClient.IndexedTransaction[];
1890
2047
  }
1891
2048
 
1892
- export interface ResponseListAssets {
2049
+ interface ResponseListAssets {
1893
2050
  code: string;
1894
2051
  page: GraphQLClient.PageInfo;
1895
- assets: Array<null>;
2052
+ assets: GraphQLClient.IndexedAssetState[];
1896
2053
  }
1897
2054
 
1898
- export interface ResponseListBlocks {
2055
+ interface ResponseListBlocks {
1899
2056
  code: string;
1900
2057
  page: GraphQLClient.PageInfo;
1901
- blocks: Array<null>;
2058
+ blocks: GraphQLClient.IndexedBlock[];
1902
2059
  }
1903
2060
 
1904
- export interface ResponseListFactories {
2061
+ interface ResponseListFactories {
1905
2062
  code: string;
1906
2063
  page: GraphQLClient.PageInfo;
1907
- factories: Array<null>;
2064
+ factories: GraphQLClient.IndexedFactoryState[];
1908
2065
  }
1909
2066
 
1910
- export interface ResponseListRollupBlocks {
2067
+ interface ResponseListRollupBlocks {
1911
2068
  code: string;
1912
2069
  page: GraphQLClient.PageInfo;
1913
- blocks: Array<null>;
2070
+ blocks: GraphQLClient.IndexedRollupBlock[];
1914
2071
  }
1915
2072
 
1916
- export interface ResponseListRollupValidators {
2073
+ interface ResponseListRollupValidators {
1917
2074
  code: string;
1918
2075
  page: GraphQLClient.PageInfo;
1919
- validators: Array<null>;
2076
+ validators: GraphQLClient.IndexedRollupValidator[];
1920
2077
  }
1921
2078
 
1922
- export interface ResponseListRollups {
2079
+ interface ResponseListRollups {
1923
2080
  code: string;
1924
2081
  page: GraphQLClient.PageInfo;
1925
- rollups: Array<null>;
2082
+ rollups: GraphQLClient.IndexedRollupState[];
1926
2083
  }
1927
2084
 
1928
- export interface ResponseListStakes {
2085
+ interface ResponseListStakes {
1929
2086
  code: string;
1930
2087
  page: GraphQLClient.PageInfo;
1931
- stakes: Array<null>;
2088
+ stakes: GraphQLClient.IndexedStakeState[];
1932
2089
  }
1933
2090
 
1934
- export interface ResponseListTokens {
2091
+ interface ResponseListTokens {
1935
2092
  code: string;
1936
2093
  page: GraphQLClient.PageInfo;
1937
- tokens: Array<null>;
2094
+ tokens: GraphQLClient.IndexedTokenState[];
1938
2095
  }
1939
2096
 
1940
- export interface ResponseListTopAccounts {
2097
+ interface ResponseListTopAccounts {
1941
2098
  code: string;
1942
2099
  page: GraphQLClient.PageInfo;
1943
- accounts: Array<null>;
2100
+ accounts: GraphQLClient.IndexedAccountState[];
1944
2101
  }
1945
2102
 
1946
- export interface ResponseListTransactions {
2103
+ interface ResponseListTransactions {
1947
2104
  code: string;
1948
2105
  page: GraphQLClient.PageInfo;
1949
- transactions: Array<null>;
2106
+ transactions: GraphQLClient.IndexedTransaction[];
1950
2107
  }
1951
2108
 
1952
- export interface ResponseSearch {
2109
+ interface ResponseSearch {
1953
2110
  code: string;
1954
2111
  page: GraphQLClient.PageInfo;
1955
- results: Array<null>;
2112
+ results: GraphQLClient.SearchResult[];
1956
2113
  }
1957
2114
 
1958
- export interface ResponseSendTx {
2115
+ interface ResponseSendTx {
1959
2116
  code: string;
1960
2117
  hash: string;
1961
2118
  }
1962
2119
 
1963
- export interface ResumeRollupTx {
2120
+ interface ResumeRollupTx {
1964
2121
  rollup: string;
1965
2122
  data: GraphQLClient.Any;
1966
2123
  }
1967
2124
 
1968
- export interface RevokeDelegateTx {
2125
+ interface RevokeDelegateTx {
1969
2126
  address: string;
1970
2127
  to: string;
1971
- typeUrls: Array<null>;
2128
+ typeUrls: string[];
1972
2129
  data: GraphQLClient.Any;
1973
2130
  }
1974
2131
 
1975
- export interface RevokeStakeTx {
2132
+ interface RevokeStakeTx {
1976
2133
  address: string;
1977
- outputs: Array<null>;
2134
+ outputs: GraphQLClient.TransactionInput[];
1978
2135
  data: GraphQLClient.Any;
1979
2136
  }
1980
2137
 
1981
- export interface RollupBlock {
2138
+ interface RollupBlock {
1982
2139
  hash: string;
1983
2140
  height: number;
1984
2141
  merkleRoot: string;
1985
2142
  previousHash: string;
1986
2143
  txsHash: string;
1987
- txs: Array<null>;
2144
+ txs: string[];
1988
2145
  proposer: string;
1989
- signatures: Array<null>;
2146
+ signatures: GraphQLClient.Multisig[];
1990
2147
  rollup: string;
1991
2148
  mintedAmount: string;
1992
2149
  burnedAmount: string;
@@ -1996,12 +2153,12 @@ declare namespace GraphQLClient {
1996
2153
  data: GraphQLClient.Any;
1997
2154
  }
1998
2155
 
1999
- export interface RollupState {
2156
+ interface RollupState {
2000
2157
  address: string;
2001
2158
  tokenAddress: string;
2002
2159
  contractAddress: string;
2003
- seedValidators: Array<null>;
2004
- validators: Array<null>;
2160
+ seedValidators: GraphQLClient.RollupValidator[];
2161
+ validators: GraphQLClient.RollupValidator[];
2005
2162
  minStakeAmount: string;
2006
2163
  maxStakeAmount: string;
2007
2164
  minSignerCount: number;
@@ -2033,55 +2190,55 @@ declare namespace GraphQLClient {
2033
2190
  leaveWaitingPeriod: number;
2034
2191
  publishWaitingPeriod: number;
2035
2192
  publishSlashRate: number;
2036
- migrateHistory: Array<null>;
2193
+ migrateHistory: string[];
2037
2194
  context: GraphQLClient.StateContext;
2038
2195
  data: GraphQLClient.Any;
2039
2196
  }
2040
2197
 
2041
- export interface RollupValidator {
2198
+ interface RollupValidator {
2042
2199
  pk: string;
2043
2200
  address: string;
2044
2201
  endpoint: string;
2045
2202
  }
2046
2203
 
2047
- export interface SearchResult {
2204
+ interface SearchResult {
2048
2205
  type: string;
2049
2206
  id: string;
2050
2207
  }
2051
2208
 
2052
- export interface StakeState {
2209
+ interface StakeState {
2053
2210
  address: string;
2054
2211
  sender: string;
2055
2212
  receiver: string;
2056
- tokens: Array<null>;
2057
- assets: Array<null>;
2213
+ tokens: GraphQLClient.IndexedTokenInput[];
2214
+ assets: string[];
2058
2215
  revocable: boolean;
2059
2216
  message: string;
2060
2217
  revokeWaitingPeriod: number;
2061
- revokedTokens: Array<null>;
2062
- revokedAssets: Array<null>;
2218
+ revokedTokens: GraphQLClient.IndexedTokenInput[];
2219
+ revokedAssets: string[];
2063
2220
  context: GraphQLClient.StateContext;
2064
2221
  data: GraphQLClient.Any;
2065
2222
  }
2066
2223
 
2067
- export interface StakeTx {
2224
+ interface StakeTx {
2068
2225
  address: string;
2069
2226
  receiver: string;
2070
- inputs: Array<null>;
2227
+ inputs: GraphQLClient.TransactionInput[];
2071
2228
  locked: boolean;
2072
2229
  message: string;
2073
2230
  revokeWaitingPeriod: number;
2074
2231
  data: GraphQLClient.Any;
2075
2232
  }
2076
2233
 
2077
- export interface StateContext {
2234
+ interface StateContext {
2078
2235
  genesisTx: GraphQLClient.TransactionInfo;
2079
2236
  renaissanceTx: GraphQLClient.TransactionInfo;
2080
2237
  genesisTime: string;
2081
2238
  renaissanceTime: string;
2082
2239
  }
2083
2240
 
2084
- export interface TokenInfo {
2241
+ interface TokenInfo {
2085
2242
  address: string;
2086
2243
  balance: string;
2087
2244
  decimal: number;
@@ -2089,12 +2246,12 @@ declare namespace GraphQLClient {
2089
2246
  symbol: string;
2090
2247
  }
2091
2248
 
2092
- export interface TokenInput {
2249
+ interface TokenInput {
2093
2250
  address: string;
2094
2251
  value: string;
2095
2252
  }
2096
2253
 
2097
- export interface TokenState {
2254
+ interface TokenState {
2098
2255
  address: string;
2099
2256
  issuer: string;
2100
2257
  name: string;
@@ -2109,21 +2266,21 @@ declare namespace GraphQLClient {
2109
2266
  data: GraphQLClient.Any;
2110
2267
  }
2111
2268
 
2112
- export interface TokenSymbol {
2269
+ interface TokenSymbol {
2113
2270
  address: string;
2114
2271
  symbol: string;
2115
2272
  decimal: number;
2116
2273
  unit: string;
2117
2274
  }
2118
2275
 
2119
- export interface Transaction {
2276
+ interface Transaction {
2120
2277
  from: string;
2121
2278
  delegator: string;
2122
2279
  nonce: string;
2123
2280
  chainId: string;
2124
2281
  pk: string;
2125
2282
  signature: string;
2126
- signatures: Array<Multisig>;
2283
+ signatures: GraphQLClient.Multisig[];
2127
2284
  itxJson: undefined;
2128
2285
  sender: string;
2129
2286
  receiver: string;
@@ -2132,67 +2289,67 @@ declare namespace GraphQLClient {
2132
2289
  gasPaid: string;
2133
2290
  }
2134
2291
 
2135
- export interface TransactionConfig {
2292
+ interface TransactionConfig {
2136
2293
  maxAssetSize: number;
2137
2294
  maxListSize: number;
2138
2295
  maxMultisig: number;
2139
2296
  delegate: GraphQLClient.DelegateConfig;
2140
- txFee: Array<null>;
2297
+ txFee: GraphQLClient.TxFeeConfig[];
2141
2298
  txGas: GraphQLClient.TxGasConfig;
2142
2299
  }
2143
2300
 
2144
- export interface TransactionInfo {
2301
+ interface TransactionInfo {
2145
2302
  tx: GraphQLClient.Transaction;
2146
2303
  height: string;
2147
2304
  index: number;
2148
2305
  hash: string;
2149
- tags: Array<null>;
2306
+ tags: GraphQLClient.KVPair[];
2150
2307
  code: string;
2151
2308
  time: string;
2152
- receipts: Array<null>;
2309
+ receipts: GraphQLClient.TransactionReceipt[];
2153
2310
  sender: string;
2154
2311
  receiver: string;
2155
- tokenSymbols: Array<null>;
2312
+ tokenSymbols: GraphQLClient.TokenSymbol[];
2156
2313
  }
2157
2314
 
2158
- export interface TransactionInput {
2315
+ interface TransactionInput {
2159
2316
  owner: string;
2160
- tokens: Array<null>;
2161
- assets: Array<null>;
2317
+ tokens: GraphQLClient.TokenInput[];
2318
+ assets: string[];
2162
2319
  }
2163
2320
 
2164
- export interface TransactionReceipt {
2321
+ interface TransactionReceipt {
2165
2322
  address: string;
2166
- changes: Array<null>;
2323
+ changes: GraphQLClient.ReceiptChange[];
2167
2324
  }
2168
2325
 
2169
- export interface TransferTx {
2326
+ interface TransferTx {
2170
2327
  to: string;
2171
2328
  value: string;
2172
- assets: Array<null>;
2329
+ assets: string[];
2173
2330
  data: GraphQLClient.Any;
2174
2331
  }
2175
2332
 
2176
- export interface TransferV2Tx {
2333
+ interface TransferV2Tx {
2177
2334
  to: string;
2178
2335
  value: string;
2179
- assets: Array<null>;
2180
- tokens: Array<null>;
2336
+ assets: string[];
2337
+ tokens: GraphQLClient.TokenInput[];
2181
2338
  data: GraphQLClient.Any;
2182
2339
  }
2183
2340
 
2184
- export interface TransferV3Tx {
2185
- inputs: Array<null>;
2186
- outputs: Array<null>;
2341
+ interface TransferV3Tx {
2342
+ inputs: GraphQLClient.TransactionInput[];
2343
+ outputs: GraphQLClient.TransactionInput[];
2187
2344
  data: GraphQLClient.Any;
2188
2345
  }
2189
2346
 
2190
- export interface TxFeeConfig {
2347
+ interface TxFeeConfig {
2191
2348
  typeUrl: string;
2192
2349
  fee: string;
2193
2350
  }
2194
2351
 
2195
- export interface TxGasConfig {
2352
+ interface TxGasConfig {
2196
2353
  price: number;
2197
2354
  createState: number;
2198
2355
  updateState: number;
@@ -2202,18 +2359,18 @@ declare namespace GraphQLClient {
2202
2359
  stakeLockPeriod: number;
2203
2360
  }
2204
2361
 
2205
- export interface UnconfirmedTxs {
2362
+ interface UnconfirmedTxs {
2206
2363
  nTxs: number;
2207
- txs: Array<null>;
2364
+ txs: GraphQLClient.Transaction[];
2208
2365
  }
2209
2366
 
2210
- export interface UpdateAssetTx {
2367
+ interface UpdateAssetTx {
2211
2368
  address: string;
2212
2369
  moniker: string;
2213
2370
  data: GraphQLClient.Any;
2214
2371
  }
2215
2372
 
2216
- export interface UpdateRollupTx {
2373
+ interface UpdateRollupTx {
2217
2374
  minStakeAmount: string;
2218
2375
  maxStakeAmount: string;
2219
2376
  minSignerCount: number;
@@ -2241,33 +2398,33 @@ declare namespace GraphQLClient {
2241
2398
  data: GraphQLClient.Any;
2242
2399
  }
2243
2400
 
2244
- export interface UpgradeInfo {
2401
+ interface UpgradeInfo {
2245
2402
  height: string;
2246
2403
  version: string;
2247
2404
  }
2248
2405
 
2249
- export interface UpgradeNodeTx {
2406
+ interface UpgradeNodeTx {
2250
2407
  height: number;
2251
2408
  version: string;
2252
2409
  override: boolean;
2253
2410
  }
2254
2411
 
2255
- export interface UpgradeTask {
2412
+ interface UpgradeTask {
2256
2413
  type: GraphQLClient.UpgradeType;
2257
2414
  dataHash: string;
2258
- actions: Array<null>;
2415
+ actions: GraphQLClient.UpgradeAction[];
2259
2416
  }
2260
2417
 
2261
- export interface UpgradeTasks {
2262
- item: Array<null>;
2418
+ interface UpgradeTasks {
2419
+ item: GraphQLClient.UpgradeTask[];
2263
2420
  }
2264
2421
 
2265
- export interface Validator {
2422
+ interface Validator {
2266
2423
  address: string;
2267
2424
  power: string;
2268
2425
  }
2269
2426
 
2270
- export interface ValidatorInfo {
2427
+ interface ValidatorInfo {
2271
2428
  address: string;
2272
2429
  pubKey: GraphQLClient.PubKey;
2273
2430
  votingPower: string;
@@ -2276,31 +2433,31 @@ declare namespace GraphQLClient {
2276
2433
  geoInfo: GraphQLClient.GeoInfo;
2277
2434
  }
2278
2435
 
2279
- export interface ValidatorsInfo {
2436
+ interface ValidatorsInfo {
2280
2437
  blockHeight: string;
2281
- validators: Array<null>;
2438
+ validators: GraphQLClient.ValidatorInfo[];
2282
2439
  }
2283
2440
 
2284
- export interface VariableInput {
2441
+ interface VariableInput {
2285
2442
  name: string;
2286
2443
  value: string;
2287
2444
  description: string;
2288
2445
  required: boolean;
2289
2446
  }
2290
2447
 
2291
- export interface Version {
2448
+ interface Version {
2292
2449
  block: number;
2293
2450
  app: number;
2294
2451
  }
2295
2452
 
2296
- export interface WalletType {
2453
+ interface WalletType {
2297
2454
  pk: GraphQLClient.KeyType;
2298
2455
  hash: GraphQLClient.HashType;
2299
2456
  address: GraphQLClient.EncodingType;
2300
2457
  role: GraphQLClient.RoleType;
2301
2458
  }
2302
2459
 
2303
- export interface WithdrawTokenV2Tx {
2460
+ interface WithdrawTokenV2Tx {
2304
2461
  token: GraphQLClient.TokenInput;
2305
2462
  to: string;
2306
2463
  rollup: string;
@@ -2310,76 +2467,76 @@ declare namespace GraphQLClient {
2310
2467
  data: GraphQLClient.Any;
2311
2468
  }
2312
2469
 
2313
- export interface GetAccountStateParams {
2470
+ interface GetAccountStateParams {
2314
2471
  address: string;
2315
2472
  height: string;
2316
- keys: Array<string>;
2473
+ keys: string[];
2317
2474
  }
2318
2475
 
2319
- export interface GetAssetStateParams {
2476
+ interface GetAssetStateParams {
2320
2477
  address: string;
2321
2478
  height: string;
2322
- keys: Array<string>;
2479
+ keys: string[];
2323
2480
  }
2324
2481
 
2325
- export interface GetFactoryStateParams {
2482
+ interface GetFactoryStateParams {
2326
2483
  address: string;
2327
2484
  }
2328
2485
 
2329
- export interface GetDelegateStateParams {
2486
+ interface GetDelegateStateParams {
2330
2487
  address: string;
2331
2488
  height: string;
2332
- keys: Array<string>;
2489
+ keys: string[];
2333
2490
  }
2334
2491
 
2335
- export interface GetTokenStateParams {
2492
+ interface GetTokenStateParams {
2336
2493
  address: string;
2337
2494
  }
2338
2495
 
2339
- export interface GetEvidenceStateParams {
2496
+ interface GetEvidenceStateParams {
2340
2497
  hash: string;
2341
2498
  }
2342
2499
 
2343
- export interface GetForgeStateParams {
2500
+ interface GetForgeStateParams {
2344
2501
  height: string;
2345
- keys: Array<string>;
2502
+ keys: string[];
2346
2503
  }
2347
2504
 
2348
- export interface GetTxParams {
2505
+ interface GetTxParams {
2349
2506
  hash: string;
2350
2507
  }
2351
2508
 
2352
- export interface GetBlockParams {
2509
+ interface GetBlockParams {
2353
2510
  height: string;
2354
2511
  }
2355
2512
 
2356
- export interface GetBlocksParams {
2513
+ interface GetBlocksParams {
2357
2514
  emptyExcluded: boolean;
2358
2515
  heightFilter: undefined;
2359
2516
  paging: undefined;
2360
2517
  }
2361
2518
 
2362
- export interface GetUnconfirmedTxsParams {
2519
+ interface GetUnconfirmedTxsParams {
2363
2520
  paging: undefined;
2364
2521
  }
2365
2522
 
2366
- export interface GetConfigParams {
2523
+ interface GetConfigParams {
2367
2524
  parsed: boolean;
2368
2525
  }
2369
2526
 
2370
- export interface ListAssetTransactionsParams {
2527
+ interface ListAssetTransactionsParams {
2371
2528
  address: string;
2372
2529
  paging: undefined;
2373
2530
  }
2374
2531
 
2375
- export interface ListAssetsParams {
2532
+ interface ListAssetsParams {
2376
2533
  ownerAddress: string;
2377
2534
  paging: undefined;
2378
2535
  factoryAddress: string;
2379
2536
  timeFilter: undefined;
2380
2537
  }
2381
2538
 
2382
- export interface ListBlocksParams {
2539
+ interface ListBlocksParams {
2383
2540
  heightFilter: undefined;
2384
2541
  numInvalidTxsFilter: undefined;
2385
2542
  numTxsFilter: undefined;
@@ -2388,12 +2545,12 @@ declare namespace GraphQLClient {
2388
2545
  timeFilter: undefined;
2389
2546
  }
2390
2547
 
2391
- export interface ListTopAccountsParams {
2548
+ interface ListTopAccountsParams {
2392
2549
  paging: undefined;
2393
2550
  tokenAddress: string;
2394
2551
  }
2395
2552
 
2396
- export interface ListTransactionsParams {
2553
+ interface ListTransactionsParams {
2397
2554
  addressFilter: undefined;
2398
2555
  paging: undefined;
2399
2556
  timeFilter: undefined;
@@ -2407,55 +2564,55 @@ declare namespace GraphQLClient {
2407
2564
  rollupFilter: undefined;
2408
2565
  }
2409
2566
 
2410
- export interface ListTokensParams {
2567
+ interface ListTokensParams {
2411
2568
  issuerAddress: string;
2412
2569
  paging: undefined;
2413
2570
  }
2414
2571
 
2415
- export interface ListFactoriesParams {
2572
+ interface ListFactoriesParams {
2416
2573
  ownerAddress: string;
2417
- addressList: Array<string>;
2574
+ addressList: string[];
2418
2575
  paging: undefined;
2419
2576
  }
2420
2577
 
2421
- export interface GetAccountTokensParams {
2578
+ interface GetAccountTokensParams {
2422
2579
  address: string;
2423
2580
  token: string;
2424
2581
  }
2425
2582
 
2426
- export interface GetStakeStateParams {
2583
+ interface GetStakeStateParams {
2427
2584
  address: string;
2428
2585
  height: string;
2429
- keys: Array<string>;
2586
+ keys: string[];
2430
2587
  }
2431
2588
 
2432
- export interface ListStakesParams {
2589
+ interface ListStakesParams {
2433
2590
  addressFilter: undefined;
2434
2591
  assetFilter: undefined;
2435
2592
  timeFilter: undefined;
2436
2593
  paging: undefined;
2437
2594
  }
2438
2595
 
2439
- export interface GetRollupStateParams {
2596
+ interface GetRollupStateParams {
2440
2597
  address: string;
2441
2598
  height: string;
2442
- keys: Array<string>;
2599
+ keys: string[];
2443
2600
  }
2444
2601
 
2445
- export interface ListRollupsParams {
2602
+ interface ListRollupsParams {
2446
2603
  paging: undefined;
2447
2604
  tokenAddress: string;
2448
2605
  erc20TokenAddress: string;
2449
2606
  foreignTokenAddress: string;
2450
2607
  }
2451
2608
 
2452
- export interface GetRollupBlockParams {
2609
+ interface GetRollupBlockParams {
2453
2610
  hash: string;
2454
2611
  height: string;
2455
2612
  rollupAddress: string;
2456
2613
  }
2457
2614
 
2458
- export interface ListRollupBlocksParams {
2615
+ interface ListRollupBlocksParams {
2459
2616
  paging: undefined;
2460
2617
  rollupAddress: string;
2461
2618
  tokenAddress: string;
@@ -2464,17 +2621,17 @@ declare namespace GraphQLClient {
2464
2621
  txFilter: undefined;
2465
2622
  }
2466
2623
 
2467
- export interface ListRollupValidatorsParams {
2624
+ interface ListRollupValidatorsParams {
2468
2625
  paging: undefined;
2469
2626
  rollupAddress: string;
2470
2627
  }
2471
2628
 
2472
- export interface SearchParams {
2629
+ interface SearchParams {
2473
2630
  paging: undefined;
2474
2631
  keyword: string;
2475
2632
  }
2476
2633
 
2477
- export interface SendTxParams {
2634
+ interface SendTxParams {
2478
2635
  commit: boolean;
2479
2636
  token: string;
2480
2637
  tx: string;