@ocap/sdk 1.13.60 → 1.13.64

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 +43 -13
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -652,6 +652,9 @@ declare interface OcapSDK {
652
652
  sendAcquireAssetV3Tx(
653
653
  param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
654
654
  ): Promise<GraphQLClient.ResponseSendTx>;
655
+ sendClaimBlockRewardTx(
656
+ param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
657
+ ): Promise<GraphQLClient.ResponseSendTx>;
655
658
  sendClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.ResponseSendTx>;
656
659
  sendCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
657
660
  sendCreateFactoryTx(
@@ -698,6 +701,9 @@ declare interface OcapSDK {
698
701
  encodeAcquireAssetV3Tx(
699
702
  param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
700
703
  ): Promise<GraphQLClient.EncodeTxResult>;
704
+ encodeClaimBlockRewardTx(
705
+ param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
706
+ ): Promise<GraphQLClient.EncodeTxResult>;
701
707
  encodeClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.EncodeTxResult>;
702
708
  encodeCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
703
709
  encodeCreateFactoryTx(
@@ -748,6 +754,9 @@ declare interface OcapSDK {
748
754
  signAcquireAssetV3Tx(
749
755
  param: GraphQLClient.TxParam<GraphQLClient.AcquireAssetV3Tx>
750
756
  ): Promise<GraphQLClient.Transaction>;
757
+ signClaimBlockRewardTx(
758
+ param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
759
+ ): Promise<GraphQLClient.Transaction>;
751
760
  signClaimStakeTx(param: GraphQLClient.TxParam<GraphQLClient.ClaimStakeTx>): Promise<GraphQLClient.Transaction>;
752
761
  signCreateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.CreateAssetTx>): Promise<GraphQLClient.Transaction>;
753
762
  signCreateFactoryTx(param: GraphQLClient.TxParam<GraphQLClient.CreateFactoryTx>): Promise<GraphQLClient.Transaction>;
@@ -797,9 +806,15 @@ declare interface OcapSDK {
797
806
  multiSignDepositTokenV2Tx(
798
807
  param: GraphQLClient.TxParam<GraphQLClient.DepositTokenV2Tx>
799
808
  ): Promise<GraphQLClient.Transaction>;
809
+ multiSignWithdrawTokenV2Tx(
810
+ param: GraphQLClient.TxParam<GraphQLClient.WithdrawTokenV2Tx>
811
+ ): Promise<GraphQLClient.Transaction>;
800
812
  multiSignCreateRollupBlockTx(
801
813
  param: GraphQLClient.TxParam<GraphQLClient.CreateRollupBlockTx>
802
814
  ): Promise<GraphQLClient.Transaction>;
815
+ multiSignClaimBlockRewardTx(
816
+ param: GraphQLClient.TxParam<GraphQLClient.ClaimBlockRewardTx>
817
+ ): Promise<GraphQLClient.Transaction>;
803
818
  getAccountState(
804
819
  params: GraphQLClient.GetAccountStateParams
805
820
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>;
@@ -1393,6 +1408,15 @@ declare namespace GraphQLClient {
1393
1408
  fifo: boolean;
1394
1409
  }
1395
1410
 
1411
+ export interface ClaimBlockRewardTx {
1412
+ rollup: string;
1413
+ blockHeight: number;
1414
+ blockHash: string;
1415
+ evidence: GraphQLClient.Evidence;
1416
+ publisher: string;
1417
+ data: GraphQLClient.Any;
1418
+ }
1419
+
1396
1420
  export interface ClaimStakeTx {
1397
1421
  address: string;
1398
1422
  evidence: GraphQLClient.Evidence;
@@ -1456,6 +1480,7 @@ declare namespace GraphQLClient {
1456
1480
  proposer: string;
1457
1481
  signatures: Array<null>;
1458
1482
  rollup: string;
1483
+ minReward: string;
1459
1484
  data: GraphQLClient.Any;
1460
1485
  }
1461
1486
 
@@ -1476,7 +1501,7 @@ declare namespace GraphQLClient {
1476
1501
  foreignChainId: string;
1477
1502
  depositFeeRate: number;
1478
1503
  withdrawFeeRate: number;
1479
- publisherFeeShare: number;
1504
+ proposerFeeShare: number;
1480
1505
  minDepositAmount: string;
1481
1506
  minWithdrawAmount: string;
1482
1507
  maxDepositAmount: string;
@@ -1487,6 +1512,7 @@ declare namespace GraphQLClient {
1487
1512
  maxWithdrawFee: string;
1488
1513
  paused: boolean;
1489
1514
  leaveWaitingPeriod: number;
1515
+ publisherFeeShare: number;
1490
1516
  data: GraphQLClient.Any;
1491
1517
  }
1492
1518
 
@@ -1559,6 +1585,7 @@ declare namespace GraphQLClient {
1559
1585
  proposer: string;
1560
1586
  evidence: GraphQLClient.Evidence;
1561
1587
  rollup: string;
1588
+ actualFee: string;
1562
1589
  data: GraphQLClient.Any;
1563
1590
  }
1564
1591
 
@@ -1784,9 +1811,9 @@ declare namespace GraphQLClient {
1784
1811
  genesisTime: string;
1785
1812
  renaissanceTime: string;
1786
1813
  rollup: string;
1787
- rewardAmount: string;
1788
1814
  mintedAmount: string;
1789
1815
  burnedAmount: string;
1816
+ rewardAmount: string;
1790
1817
  tokenInfo: GraphQLClient.IndexedTokenInput;
1791
1818
  data: GraphQLClient.Any;
1792
1819
  }
@@ -1794,7 +1821,6 @@ declare namespace GraphQLClient {
1794
1821
  export interface IndexedRollupState {
1795
1822
  address: string;
1796
1823
  tokenAddress: string;
1797
- erc20TokenAddress: string;
1798
1824
  contractAddress: string;
1799
1825
  seedValidators: Array<null>;
1800
1826
  validators: Array<null>;
@@ -1805,15 +1831,13 @@ declare namespace GraphQLClient {
1805
1831
  minBlockSize: number;
1806
1832
  maxBlockSize: number;
1807
1833
  minBlockInterval: number;
1808
- foreignChainType: string;
1809
- foreignChainId: string;
1810
1834
  genesisTime: string;
1811
1835
  renaissanceTime: string;
1812
1836
  tokenInfo: GraphQLClient.IndexedTokenInput;
1813
1837
  issuer: string;
1814
1838
  depositFeeRate: number;
1815
1839
  withdrawFeeRate: number;
1816
- publisherFeeShare: number;
1840
+ proposerFeeShare: number;
1817
1841
  minDepositAmount: string;
1818
1842
  minWithdrawAmount: string;
1819
1843
  blockHeight: number;
@@ -1830,6 +1854,8 @@ declare namespace GraphQLClient {
1830
1854
  paused: boolean;
1831
1855
  foreignToken: GraphQLClient.ForeignToken;
1832
1856
  leaveWaitingPeriod: number;
1857
+ publisherFeeShare: number;
1858
+ publishWaitingPeriod: number;
1833
1859
  data: GraphQLClient.Any;
1834
1860
  }
1835
1861
 
@@ -1889,7 +1915,6 @@ declare namespace GraphQLClient {
1889
1915
  address: string;
1890
1916
  genesisTime: string;
1891
1917
  renaissanceTime: string;
1892
- erc20ContractAddress: string;
1893
1918
  foreignToken: GraphQLClient.ForeignToken;
1894
1919
  data: GraphQLClient.Any;
1895
1920
  }
@@ -2240,9 +2265,10 @@ declare namespace GraphQLClient {
2240
2265
  proposer: string;
2241
2266
  signatures: Array<null>;
2242
2267
  rollup: string;
2243
- rewardAmount: string;
2244
2268
  mintedAmount: string;
2245
2269
  burnedAmount: string;
2270
+ rewardAmount: string;
2271
+ minReward: string;
2246
2272
  context: GraphQLClient.StateContext;
2247
2273
  data: GraphQLClient.Any;
2248
2274
  }
@@ -2250,7 +2276,6 @@ declare namespace GraphQLClient {
2250
2276
  export interface RollupState {
2251
2277
  address: string;
2252
2278
  tokenAddress: string;
2253
- erc20TokenAddress: string;
2254
2279
  contractAddress: string;
2255
2280
  seedValidators: Array<null>;
2256
2281
  validators: Array<null>;
@@ -2262,11 +2287,10 @@ declare namespace GraphQLClient {
2262
2287
  maxBlockSize: number;
2263
2288
  minBlockInterval: number;
2264
2289
  minBlockConfirmation: number;
2265
- foreignChainType: string;
2266
- foreignChainId: string;
2267
2290
  issuer: string;
2268
2291
  depositFeeRate: number;
2269
2292
  withdrawFeeRate: number;
2293
+ proposerFeeShare: number;
2270
2294
  publisherFeeShare: number;
2271
2295
  minDepositAmount: string;
2272
2296
  minWithdrawAmount: string;
@@ -2284,6 +2308,7 @@ declare namespace GraphQLClient {
2284
2308
  paused: boolean;
2285
2309
  foreignToken: GraphQLClient.ForeignToken;
2286
2310
  leaveWaitingPeriod: number;
2311
+ publishWaitingPeriod: number;
2287
2312
  context: GraphQLClient.StateContext;
2288
2313
  data: GraphQLClient.Any;
2289
2314
  }
@@ -2401,7 +2426,6 @@ declare namespace GraphQLClient {
2401
2426
  decimal: number;
2402
2427
  icon: string;
2403
2428
  totalSupply: string;
2404
- erc20ContractAddress: string;
2405
2429
  foreignToken: GraphQLClient.ForeignToken;
2406
2430
  context: GraphQLClient.StateContext;
2407
2431
  data: GraphQLClient.Any;
@@ -2513,7 +2537,7 @@ declare namespace GraphQLClient {
2513
2537
  minBlockConfirmation: number;
2514
2538
  depositFeeRate: number;
2515
2539
  withdrawFeeRate: number;
2516
- publisherFeeShare: number;
2540
+ proposerFeeShare: number;
2517
2541
  minDepositAmount: string;
2518
2542
  minWithdrawAmount: string;
2519
2543
  maxDepositAmount: string;
@@ -2524,6 +2548,9 @@ declare namespace GraphQLClient {
2524
2548
  maxWithdrawFee: string;
2525
2549
  paused: boolean;
2526
2550
  rollup: string;
2551
+ publisherFeeShare: number;
2552
+ leaveWaitingPeriod: number;
2553
+ publishWaitingPeriod: number;
2527
2554
  data: GraphQLClient.Any;
2528
2555
  }
2529
2556
 
@@ -2590,6 +2617,9 @@ declare namespace GraphQLClient {
2590
2617
  token: GraphQLClient.TokenInput;
2591
2618
  to: string;
2592
2619
  rollup: string;
2620
+ proposer: string;
2621
+ maxFee: string;
2622
+ actualFee: string;
2593
2623
  data: GraphQLClient.Any;
2594
2624
  }
2595
2625
 
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.13.60",
4
+ "version": "1.13.64",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -15,11 +15,11 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@arcblock/did-util": "1.13.60",
19
- "@ocap/client": "1.13.60",
20
- "@ocap/message": "1.13.60",
21
- "@ocap/util": "1.13.60",
22
- "@ocap/wallet": "1.13.60",
18
+ "@arcblock/did-util": "1.13.64",
19
+ "@ocap/client": "1.13.64",
20
+ "@ocap/message": "1.13.64",
21
+ "@ocap/util": "1.13.64",
22
+ "@ocap/wallet": "1.13.64",
23
23
  "debug": "^4.3.2",
24
24
  "react-app-polyfill": "^1.0.1"
25
25
  },
@@ -78,5 +78,5 @@
78
78
  "test": "jest --forceExit --detectOpenHandles",
79
79
  "coverage": "yarn test -- --coverage"
80
80
  },
81
- "gitHead": "2afb4dd279effb31bd28a2024789d50631819789"
81
+ "gitHead": "49c94d9fd5f12ec63c34ad609d041a92f68322a8"
82
82
  }