@ocap/sdk 1.13.64 → 1.13.68

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 +5 -61
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -684,9 +684,6 @@ declare interface OcapSDK {
684
684
  sendTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.ResponseSendTx>;
685
685
  sendTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.ResponseSendTx>;
686
686
  sendUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.ResponseSendTx>;
687
- sendUpdateConsensusParamsTx(
688
- param: GraphQLClient.TxParam<GraphQLClient.UpdateConsensusParamsTx>
689
- ): Promise<GraphQLClient.ResponseSendTx>;
690
687
  sendUpdateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>): Promise<GraphQLClient.ResponseSendTx>;
691
688
  sendUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.ResponseSendTx>;
692
689
  sendWithdrawTokenV2Tx(
@@ -735,9 +732,6 @@ declare interface OcapSDK {
735
732
  encodeTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.EncodeTxResult>;
736
733
  encodeTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.EncodeTxResult>;
737
734
  encodeUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.EncodeTxResult>;
738
- encodeUpdateConsensusParamsTx(
739
- param: GraphQLClient.TxParam<GraphQLClient.UpdateConsensusParamsTx>
740
- ): Promise<GraphQLClient.EncodeTxResult>;
741
735
  encodeUpdateRollupTx(
742
736
  param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>
743
737
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -784,9 +778,6 @@ declare interface OcapSDK {
784
778
  signTransferV2Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV2Tx>): Promise<GraphQLClient.Transaction>;
785
779
  signTransferV3Tx(param: GraphQLClient.TxParam<GraphQLClient.TransferV3Tx>): Promise<GraphQLClient.Transaction>;
786
780
  signUpdateAssetTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateAssetTx>): Promise<GraphQLClient.Transaction>;
787
- signUpdateConsensusParamsTx(
788
- param: GraphQLClient.TxParam<GraphQLClient.UpdateConsensusParamsTx>
789
- ): Promise<GraphQLClient.Transaction>;
790
781
  signUpdateRollupTx(param: GraphQLClient.TxParam<GraphQLClient.UpdateRollupTx>): Promise<GraphQLClient.Transaction>;
791
782
  signUpgradeNodeTx(param: GraphQLClient.TxParam<GraphQLClient.UpgradeNodeTx>): Promise<GraphQLClient.Transaction>;
792
783
  signWithdrawTokenV2Tx(
@@ -1440,11 +1431,6 @@ declare namespace GraphQLClient {
1440
1431
  blockHeight: string;
1441
1432
  }
1442
1433
 
1443
- export interface CoreProtocol {
1444
- name: string;
1445
- address: string;
1446
- }
1447
-
1448
1434
  export interface CreateAssetTx {
1449
1435
  moniker: string;
1450
1436
  data: GraphQLClient.Any;
@@ -1513,6 +1499,8 @@ declare namespace GraphQLClient {
1513
1499
  paused: boolean;
1514
1500
  leaveWaitingPeriod: number;
1515
1501
  publisherFeeShare: number;
1502
+ publishWaitingPeriod: number;
1503
+ publishSlashRate: number;
1516
1504
  data: GraphQLClient.Any;
1517
1505
  }
1518
1506
 
@@ -1530,12 +1518,6 @@ declare namespace GraphQLClient {
1530
1518
  data: GraphQLClient.Any;
1531
1519
  }
1532
1520
 
1533
- export interface DeclareConfig {
1534
- restricted: boolean;
1535
- hierarchy: number;
1536
- cost: string;
1537
- }
1538
-
1539
1521
  export interface DeclareTx {
1540
1522
  moniker: string;
1541
1523
  issuer: string;
@@ -1643,33 +1625,14 @@ declare namespace GraphQLClient {
1643
1625
  address: string;
1644
1626
  consensus: GraphQLClient.ConsensusParams;
1645
1627
  tasks: Array<null>;
1646
- stakeSummary: Array<null>;
1647
1628
  version: string;
1648
1629
  token: GraphQLClient.ForgeToken;
1649
1630
  txConfig: GraphQLClient.TransactionConfig;
1650
- protocols: Array<null>;
1651
- gas: Array<null>;
1652
1631
  upgradeInfo: GraphQLClient.UpgradeInfo;
1653
1632
  accountConfig: Array<null>;
1654
- tokenSwapConfig: GraphQLClient.TokenSwapConfig;
1655
1633
  data: GraphQLClient.Any;
1656
1634
  }
1657
1635
 
1658
- export interface ForgeState_AccountConfigEntry {
1659
- key: string;
1660
- value: GraphQLClient.AccountConfig;
1661
- }
1662
-
1663
- export interface ForgeState_GasEntry {
1664
- key: string;
1665
- value: number;
1666
- }
1667
-
1668
- export interface ForgeState_StakeSummaryEntry {
1669
- key: number;
1670
- value: GraphQLClient.StakeSummary;
1671
- }
1672
-
1673
1636
  export interface ForgeState_TasksEntry {
1674
1637
  key: number;
1675
1638
  value: GraphQLClient.UpgradeTasks;
@@ -1856,6 +1819,7 @@ declare namespace GraphQLClient {
1856
1819
  leaveWaitingPeriod: number;
1857
1820
  publisherFeeShare: number;
1858
1821
  publishWaitingPeriod: number;
1822
+ publishSlashRate: number;
1859
1823
  data: GraphQLClient.Any;
1860
1824
  }
1861
1825
 
@@ -2309,6 +2273,7 @@ declare namespace GraphQLClient {
2309
2273
  foreignToken: GraphQLClient.ForeignToken;
2310
2274
  leaveWaitingPeriod: number;
2311
2275
  publishWaitingPeriod: number;
2276
+ publishSlashRate: number;
2312
2277
  context: GraphQLClient.StateContext;
2313
2278
  data: GraphQLClient.Any;
2314
2279
  }
@@ -2324,11 +2289,6 @@ declare namespace GraphQLClient {
2324
2289
  id: string;
2325
2290
  }
2326
2291
 
2327
- export interface StakeConfig {
2328
- timeoutGeneral: number;
2329
- timeoutStakeForNode: number;
2330
- }
2331
-
2332
2292
  export interface StakeContext {
2333
2293
  totalStakes: string;
2334
2294
  totalUnstakes: string;
@@ -2352,12 +2312,6 @@ declare namespace GraphQLClient {
2352
2312
  data: GraphQLClient.Any;
2353
2313
  }
2354
2314
 
2355
- export interface StakeSummary {
2356
- totalStakes: string;
2357
- totalUnstakes: string;
2358
- context: GraphQLClient.StateContext;
2359
- }
2360
-
2361
2315
  export interface StakeTx {
2362
2316
  address: string;
2363
2317
  receiver: string;
@@ -2431,14 +2385,6 @@ declare namespace GraphQLClient {
2431
2385
  data: GraphQLClient.Any;
2432
2386
  }
2433
2387
 
2434
- export interface TokenSwapConfig {
2435
- commissionHolderAddress: string;
2436
- commissionRate: number;
2437
- revokeCommissionRate: number;
2438
- minCommission: string;
2439
- maxCommission: string;
2440
- }
2441
-
2442
2388
  export interface TokenSymbol {
2443
2389
  address: string;
2444
2390
  symbol: string;
@@ -2463,10 +2409,7 @@ declare namespace GraphQLClient {
2463
2409
  maxAssetSize: number;
2464
2410
  maxListSize: number;
2465
2411
  maxMultisig: number;
2466
- minimumStake: string;
2467
- declare: GraphQLClient.DeclareConfig;
2468
2412
  delegate: GraphQLClient.DelegateConfig;
2469
- stake: GraphQLClient.StakeConfig;
2470
2413
  }
2471
2414
 
2472
2415
  export interface TransactionInfo {
@@ -2551,6 +2494,7 @@ declare namespace GraphQLClient {
2551
2494
  publisherFeeShare: number;
2552
2495
  leaveWaitingPeriod: number;
2553
2496
  publishWaitingPeriod: number;
2497
+ publishSlashRate: number;
2554
2498
  data: GraphQLClient.Any;
2555
2499
  }
2556
2500
 
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.64",
4
+ "version": "1.13.68",
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.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",
18
+ "@arcblock/did-util": "1.13.68",
19
+ "@ocap/client": "1.13.68",
20
+ "@ocap/message": "1.13.68",
21
+ "@ocap/util": "1.13.68",
22
+ "@ocap/wallet": "1.13.68",
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": "49c94d9fd5f12ec63c34ad609d041a92f68322a8"
81
+ "gitHead": "d84324870fe9dca3619df362ba09219dd420f274"
82
82
  }