@ocap/sdk 1.18.34 → 1.18.36

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 +41 -31
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -443,6 +443,10 @@ declare interface OcapSDK {
443
443
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>,
444
444
  extra?: any
445
445
  ): Promise<GraphQLClient.ResponseSendTx>;
446
+ sendCloseRollupTx(
447
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
448
+ extra?: any
449
+ ): Promise<GraphQLClient.ResponseSendTx>;
446
450
  sendCreateAssetTx(
447
451
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
448
452
  extra?: any
@@ -491,12 +495,8 @@ declare interface OcapSDK {
491
495
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
492
496
  extra?: any
493
497
  ): Promise<GraphQLClient.ResponseSendTx>;
494
- sendMigrateRollupContractTx(
495
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>,
496
- extra?: any
497
- ): Promise<GraphQLClient.ResponseSendTx>;
498
- sendMigrateRollupTokenTx(
499
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>,
498
+ sendMigrateRollupTx(
499
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>,
500
500
  extra?: any
501
501
  ): Promise<GraphQLClient.ResponseSendTx>;
502
502
  sendMintAssetTx(
@@ -570,6 +570,9 @@ declare interface OcapSDK {
570
570
  encodeClaimStakeTx(
571
571
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>
572
572
  ): Promise<GraphQLClient.EncodeTxResult>;
573
+ encodeCloseRollupTx(
574
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>
575
+ ): Promise<GraphQLClient.EncodeTxResult>;
573
576
  encodeCreateAssetTx(
574
577
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
575
578
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -606,11 +609,8 @@ declare interface OcapSDK {
606
609
  encodeLeaveRollupTx(
607
610
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>
608
611
  ): Promise<GraphQLClient.EncodeTxResult>;
609
- encodeMigrateRollupContractTx(
610
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>
611
- ): Promise<GraphQLClient.EncodeTxResult>;
612
- encodeMigrateRollupTokenTx(
613
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>
612
+ encodeMigrateRollupTx(
613
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>
614
614
  ): Promise<GraphQLClient.EncodeTxResult>;
615
615
  encodeMintAssetTx(
616
616
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>
@@ -669,6 +669,9 @@ declare interface OcapSDK {
669
669
  signClaimStakeTx(
670
670
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>
671
671
  ): Promise<GraphQLClient.Transaction>;
672
+ signCloseRollupTx(
673
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>
674
+ ): Promise<GraphQLClient.Transaction>;
672
675
  signCreateAssetTx(
673
676
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
674
677
  ): Promise<GraphQLClient.Transaction>;
@@ -703,11 +706,8 @@ declare interface OcapSDK {
703
706
  signLeaveRollupTx(
704
707
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>
705
708
  ): Promise<GraphQLClient.Transaction>;
706
- signMigrateRollupContractTx(
707
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>
708
- ): Promise<GraphQLClient.Transaction>;
709
- signMigrateRollupTokenTx(
710
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>
709
+ signMigrateRollupTx(
710
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>
711
711
  ): Promise<GraphQLClient.Transaction>;
712
712
  signMintAssetTx(
713
713
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>
@@ -773,6 +773,12 @@ declare interface OcapSDK {
773
773
  multiSignPauseRollupTx(
774
774
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>
775
775
  ): Promise<GraphQLClient.Transaction>;
776
+ multiSignCloseRollupTx(
777
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>
778
+ ): Promise<GraphQLClient.Transaction>;
779
+ multiSignMigrateRollupTx(
780
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>
781
+ ): Promise<GraphQLClient.Transaction>;
776
782
  multiSignResumeRollupTx(
777
783
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>
778
784
  ): Promise<GraphQLClient.Transaction>;
@@ -788,12 +794,6 @@ declare interface OcapSDK {
788
794
  multiSignClaimBlockRewardTx(
789
795
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>
790
796
  ): Promise<GraphQLClient.Transaction>;
791
- multiSignMigrateRollupContractTx(
792
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupContractTx>>
793
- ): Promise<GraphQLClient.Transaction>;
794
- multiSignMigrateRollupTokenTx(
795
- param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTokenTx>>
796
- ): Promise<GraphQLClient.Transaction>;
797
797
  multiSignCreateAssetTx(
798
798
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
799
799
  ): Promise<GraphQLClient.Transaction>;
@@ -1495,6 +1495,12 @@ declare namespace GraphQLClient {
1495
1495
  data: GraphQLClient.Any;
1496
1496
  }
1497
1497
 
1498
+ interface CloseRollupTx {
1499
+ rollup: string;
1500
+ message: string;
1501
+ data: GraphQLClient.Any;
1502
+ }
1503
+
1498
1504
  interface ConsensusParams {
1499
1505
  maxBytes: string;
1500
1506
  maxGas: string;
@@ -1545,12 +1551,14 @@ declare namespace GraphQLClient {
1545
1551
  signatures: GraphQLClient.Multisig[];
1546
1552
  rollup: string;
1547
1553
  minReward: string;
1554
+ governance: boolean;
1548
1555
  data: GraphQLClient.Any;
1549
1556
  }
1550
1557
 
1551
1558
  interface CreateRollupTx {
1552
1559
  address: string;
1553
1560
  tokenAddress: string;
1561
+ vaultAddress: string;
1554
1562
  contractAddress: string;
1555
1563
  seedValidators: GraphQLClient.RollupValidator[];
1556
1564
  minStakeAmount: string;
@@ -1845,6 +1853,7 @@ declare namespace GraphQLClient {
1845
1853
  mintedAmount: string;
1846
1854
  burnedAmount: string;
1847
1855
  rewardAmount: string;
1856
+ governance: boolean;
1848
1857
  tokenInfo: GraphQLClient.IndexedTokenInput;
1849
1858
  data: GraphQLClient.Any;
1850
1859
  }
@@ -1852,6 +1861,7 @@ declare namespace GraphQLClient {
1852
1861
  interface IndexedRollupState {
1853
1862
  address: string;
1854
1863
  tokenAddress: string;
1864
+ vaultAddress: string;
1855
1865
  contractAddress: string;
1856
1866
  seedValidators: GraphQLClient.RollupValidator[];
1857
1867
  validators: GraphQLClient.RollupValidator[];
@@ -1889,6 +1899,8 @@ declare namespace GraphQLClient {
1889
1899
  publishWaitingPeriod: number;
1890
1900
  publishSlashRate: number;
1891
1901
  migrateHistory: string[];
1902
+ closed: boolean;
1903
+ vaultHistory: string[];
1892
1904
  data: GraphQLClient.Any;
1893
1905
  }
1894
1906
 
@@ -1986,17 +1998,11 @@ declare namespace GraphQLClient {
1986
1998
  data: GraphQLClient.Any;
1987
1999
  }
1988
2000
 
1989
- interface MigrateRollupContractTx {
2001
+ interface MigrateRollupTx {
1990
2002
  rollup: string;
1991
2003
  to: string;
1992
- data: GraphQLClient.Any;
1993
- }
1994
-
1995
- interface MigrateRollupTokenTx {
1996
- rollup: string;
1997
- from: string;
1998
- to: string;
1999
- token: GraphQLClient.TokenInput;
2004
+ type: string;
2005
+ message: string;
2000
2006
  data: GraphQLClient.Any;
2001
2007
  }
2002
2008
 
@@ -2322,6 +2328,7 @@ declare namespace GraphQLClient {
2322
2328
  burnedAmount: string;
2323
2329
  rewardAmount: string;
2324
2330
  minReward: string;
2331
+ governance: boolean;
2325
2332
  context: GraphQLClient.StateContext;
2326
2333
  data: GraphQLClient.Any;
2327
2334
  }
@@ -2329,6 +2336,7 @@ declare namespace GraphQLClient {
2329
2336
  interface RollupState {
2330
2337
  address: string;
2331
2338
  tokenAddress: string;
2339
+ vaultAddress: string;
2332
2340
  contractAddress: string;
2333
2341
  seedValidators: GraphQLClient.RollupValidator[];
2334
2342
  validators: GraphQLClient.RollupValidator[];
@@ -2364,6 +2372,8 @@ declare namespace GraphQLClient {
2364
2372
  publishWaitingPeriod: number;
2365
2373
  publishSlashRate: number;
2366
2374
  migrateHistory: string[];
2375
+ closed: boolean;
2376
+ vaultHistory: string[];
2367
2377
  context: GraphQLClient.StateContext;
2368
2378
  data: GraphQLClient.Any;
2369
2379
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/sdk",
3
3
  "description": "Forge javascript SDK packages all-in-one",
4
- "version": "1.18.34",
4
+ "version": "1.18.36",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -18,11 +18,11 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-util": "1.18.34",
22
- "@ocap/client": "1.18.34",
23
- "@ocap/message": "1.18.34",
24
- "@ocap/util": "1.18.34",
25
- "@ocap/wallet": "1.18.34",
21
+ "@arcblock/did-util": "1.18.36",
22
+ "@ocap/client": "1.18.36",
23
+ "@ocap/message": "1.18.36",
24
+ "@ocap/util": "1.18.36",
25
+ "@ocap/wallet": "1.18.36",
26
26
  "buffer": "6.0.3",
27
27
  "debug": "^4.3.4",
28
28
  "react-app-polyfill": "^1.0.6",
@@ -82,5 +82,5 @@
82
82
  "test": "jest --forceExit --detectOpenHandles",
83
83
  "coverage": "yarn test -- --coverage"
84
84
  },
85
- "gitHead": "c12d3cbf9617d861d83c08726d9e0d55fdf9a459"
85
+ "gitHead": "507eaab0fc94d92a88c49c2e3441c5f6b0e3788f"
86
86
  }