@ocap/sdk 1.18.120 → 1.18.122

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 +40 -59
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -358,7 +358,7 @@ export declare function toRollupAddress(itx: Partial<TCreateRollupTx>): string;
358
358
  /**
359
359
  * Generate an stake address, eg: the did of the stake
360
360
  */
361
- export declare function toStakeAddress(sender: string, receiver: string): string;
361
+ export declare function toStakeAddress(sender: string, receiver: string, nonce?: string): string;
362
362
  /**
363
363
  * Generate an delegate address, eg: the did of the delegation
364
364
  */
@@ -776,90 +776,68 @@ declare interface OcapSDK {
776
776
  ): Promise<GraphQLClient.Transaction>;
777
777
  getAccountState(
778
778
  params: PartialDeep<GraphQLClient.GetAccountStateParams>
779
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountState>;
780
- getAssetState(
781
- params: PartialDeep<GraphQLClient.GetAssetStateParams>
782
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetAssetState>;
779
+ ): Promise<GraphQLClient.ResponseGetAccountState>;
780
+ getAssetState(params: PartialDeep<GraphQLClient.GetAssetStateParams>): Promise<GraphQLClient.ResponseGetAssetState>;
783
781
  getFactoryState(
784
782
  params: PartialDeep<GraphQLClient.GetFactoryStateParams>
785
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetFactoryState>;
783
+ ): Promise<GraphQLClient.ResponseGetFactoryState>;
786
784
  getDelegateState(
787
785
  params: PartialDeep<GraphQLClient.GetDelegateStateParams>
788
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetDelegateState>;
789
- getTokenState(
790
- params: PartialDeep<GraphQLClient.GetTokenStateParams>
791
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetTokenState>;
786
+ ): Promise<GraphQLClient.ResponseGetDelegateState>;
787
+ getTokenState(params: PartialDeep<GraphQLClient.GetTokenStateParams>): Promise<GraphQLClient.ResponseGetTokenState>;
792
788
  getEvidenceState(
793
789
  params: PartialDeep<GraphQLClient.GetEvidenceStateParams>
794
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetEvidenceState>;
795
- getForgeState(
796
- params: PartialDeep<GraphQLClient.GetForgeStateParams>
797
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetForgeState>;
798
- getTx(params: PartialDeep<GraphQLClient.GetTxParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetTx>;
799
- getBlock(params: PartialDeep<GraphQLClient.GetBlockParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetBlock>;
800
- getBlocks(params: PartialDeep<GraphQLClient.GetBlocksParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetBlocks>;
790
+ ): Promise<GraphQLClient.ResponseGetEvidenceState>;
791
+ getForgeState(params: PartialDeep<GraphQLClient.GetForgeStateParams>): Promise<GraphQLClient.ResponseGetForgeState>;
792
+ getTx(params: PartialDeep<GraphQLClient.GetTxParams>): Promise<GraphQLClient.ResponseGetTx>;
793
+ getBlock(params: PartialDeep<GraphQLClient.GetBlockParams>): Promise<GraphQLClient.ResponseGetBlock>;
794
+ getBlocks(params: PartialDeep<GraphQLClient.GetBlocksParams>): Promise<GraphQLClient.ResponseGetBlocks>;
801
795
  getUnconfirmedTxs(
802
796
  params: PartialDeep<GraphQLClient.GetUnconfirmedTxsParams>
803
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetUnconfirmedTxs>;
804
- getChainInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetChainInfo>;
805
- getConfig(params: PartialDeep<GraphQLClient.GetConfigParams>): Promise<GraphQLClient.GraphQLClient.ResponseGetConfig>;
806
- getNetInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetNetInfo>;
807
- getNodeInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetNodeInfo>;
808
- getValidatorsInfo(): Promise<GraphQLClient.GraphQLClient.ResponseGetValidatorsInfo>;
809
- getForgeStats(): Promise<GraphQLClient.GraphQLClient.ResponseGetForgeStats>;
797
+ ): Promise<GraphQLClient.ResponseGetUnconfirmedTxs>;
798
+ getChainInfo(): Promise<GraphQLClient.ResponseGetChainInfo>;
799
+ getConfig(params: PartialDeep<GraphQLClient.GetConfigParams>): Promise<GraphQLClient.ResponseGetConfig>;
800
+ getNetInfo(): Promise<GraphQLClient.ResponseGetNetInfo>;
801
+ getNodeInfo(): Promise<GraphQLClient.ResponseGetNodeInfo>;
802
+ getValidatorsInfo(): Promise<GraphQLClient.ResponseGetValidatorsInfo>;
803
+ getForgeStats(): Promise<GraphQLClient.ResponseGetForgeStats>;
810
804
  listAssetTransactions(
811
805
  params: PartialDeep<GraphQLClient.ListAssetTransactionsParams>
812
- ): Promise<GraphQLClient.GraphQLClient.ResponseListAssetTransactions>;
813
- listAssets(
814
- params: PartialDeep<GraphQLClient.ListAssetsParams>
815
- ): Promise<GraphQLClient.GraphQLClient.ResponseListAssets>;
816
- listBlocks(
817
- params: PartialDeep<GraphQLClient.ListBlocksParams>
818
- ): Promise<GraphQLClient.GraphQLClient.ResponseListBlocks>;
806
+ ): Promise<GraphQLClient.ResponseListAssetTransactions>;
807
+ listAssets(params: PartialDeep<GraphQLClient.ListAssetsParams>): Promise<GraphQLClient.ResponseListAssets>;
808
+ listBlocks(params: PartialDeep<GraphQLClient.ListBlocksParams>): Promise<GraphQLClient.ResponseListBlocks>;
819
809
  listTopAccounts(
820
810
  params: PartialDeep<GraphQLClient.ListTopAccountsParams>
821
- ): Promise<GraphQLClient.GraphQLClient.ResponseListTopAccounts>;
811
+ ): Promise<GraphQLClient.ResponseListTopAccounts>;
822
812
  listTransactions(
823
813
  params: PartialDeep<GraphQLClient.ListTransactionsParams>
824
- ): Promise<GraphQLClient.GraphQLClient.ResponseListTransactions>;
825
- listTokens(
826
- params: PartialDeep<GraphQLClient.ListTokensParams>
827
- ): Promise<GraphQLClient.GraphQLClient.ResponseListTokens>;
828
- listFactories(
829
- params: PartialDeep<GraphQLClient.ListFactoriesParams>
830
- ): Promise<GraphQLClient.GraphQLClient.ResponseListFactories>;
814
+ ): Promise<GraphQLClient.ResponseListTransactions>;
815
+ listTokens(params: PartialDeep<GraphQLClient.ListTokensParams>): Promise<GraphQLClient.ResponseListTokens>;
816
+ listFactories(params: PartialDeep<GraphQLClient.ListFactoriesParams>): Promise<GraphQLClient.ResponseListFactories>;
831
817
  getAccountTokens(
832
818
  params: PartialDeep<GraphQLClient.GetAccountTokensParams>
833
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountTokens>;
834
- getStakeState(
835
- params: PartialDeep<GraphQLClient.GetStakeStateParams>
836
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetStakeState>;
837
- listStakes(
838
- params: PartialDeep<GraphQLClient.ListStakesParams>
839
- ): Promise<GraphQLClient.GraphQLClient.ResponseListStakes>;
819
+ ): Promise<GraphQLClient.ResponseGetAccountTokens>;
820
+ getStakeState(params: PartialDeep<GraphQLClient.GetStakeStateParams>): Promise<GraphQLClient.ResponseGetStakeState>;
821
+ listStakes(params: PartialDeep<GraphQLClient.ListStakesParams>): Promise<GraphQLClient.ResponseListStakes>;
840
822
  getRollupState(
841
823
  params: PartialDeep<GraphQLClient.GetRollupStateParams>
842
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetRollupState>;
843
- listRollups(
844
- params: PartialDeep<GraphQLClient.ListRollupsParams>
845
- ): Promise<GraphQLClient.GraphQLClient.ResponseListRollups>;
824
+ ): Promise<GraphQLClient.ResponseGetRollupState>;
825
+ listRollups(params: PartialDeep<GraphQLClient.ListRollupsParams>): Promise<GraphQLClient.ResponseListRollups>;
846
826
  getRollupBlock(
847
827
  params: PartialDeep<GraphQLClient.GetRollupBlockParams>
848
- ): Promise<GraphQLClient.GraphQLClient.ResponseGetRollupBlock>;
828
+ ): Promise<GraphQLClient.ResponseGetRollupBlock>;
849
829
  listRollupBlocks(
850
830
  params: PartialDeep<GraphQLClient.ListRollupBlocksParams>
851
- ): Promise<GraphQLClient.GraphQLClient.ResponseListRollupBlocks>;
831
+ ): Promise<GraphQLClient.ResponseListRollupBlocks>;
852
832
  listRollupValidators(
853
833
  params: PartialDeep<GraphQLClient.ListRollupValidatorsParams>
854
- ): Promise<GraphQLClient.GraphQLClient.ResponseListRollupValidators>;
834
+ ): Promise<GraphQLClient.ResponseListRollupValidators>;
855
835
  listDelegations(
856
836
  params: PartialDeep<GraphQLClient.ListDelegationsParams>
857
- ): Promise<GraphQLClient.GraphQLClient.ResponseListDelegations>;
858
- search(params: PartialDeep<GraphQLClient.SearchParams>): Promise<GraphQLClient.GraphQLClient.ResponseSearch>;
859
- estimateGas(
860
- params: PartialDeep<GraphQLClient.EstimateGasParams>
861
- ): Promise<GraphQLClient.GraphQLClient.ResponseEstimateGas>;
862
- sendTx(params: PartialDeep<GraphQLClient.SendTxParams>): Promise<GraphQLClient.GraphQLClient.ResponseSendTx>;
837
+ ): Promise<GraphQLClient.ResponseListDelegations>;
838
+ search(params: PartialDeep<GraphQLClient.SearchParams>): Promise<GraphQLClient.ResponseSearch>;
839
+ estimateGas(params: PartialDeep<GraphQLClient.EstimateGasParams>): Promise<GraphQLClient.ResponseEstimateGas>;
840
+ sendTx(params: PartialDeep<GraphQLClient.SendTxParams>): Promise<GraphQLClient.ResponseSendTx>;
863
841
  }
864
842
 
865
843
  declare namespace GraphQLClient {
@@ -1980,6 +1958,7 @@ declare namespace GraphQLClient {
1980
1958
  revokedTokens: GraphQLClient.TokenInfo[];
1981
1959
  revokedAssets: string[];
1982
1960
  slashers: string[];
1961
+ nonce: string;
1983
1962
  data: GraphQLClient.Any;
1984
1963
  }
1985
1964
 
@@ -2461,6 +2440,7 @@ declare namespace GraphQLClient {
2461
2440
  revokedTokens: GraphQLClient.IndexedTokenInput[];
2462
2441
  revokedAssets: string[];
2463
2442
  slashers: string[];
2443
+ nonce: string;
2464
2444
  context: GraphQLClient.StateContext;
2465
2445
  data: GraphQLClient.Any;
2466
2446
  }
@@ -2473,6 +2453,7 @@ declare namespace GraphQLClient {
2473
2453
  message: string;
2474
2454
  revokeWaitingPeriod: number;
2475
2455
  slashers: string[];
2456
+ nonce: string;
2476
2457
  data: GraphQLClient.Any;
2477
2458
  }
2478
2459
 
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.120",
4
+ "version": "1.18.122",
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.120",
22
- "@ocap/client": "1.18.120",
23
- "@ocap/message": "1.18.120",
24
- "@ocap/util": "1.18.120",
25
- "@ocap/wallet": "1.18.120",
21
+ "@arcblock/did-util": "1.18.122",
22
+ "@ocap/client": "1.18.122",
23
+ "@ocap/message": "1.18.122",
24
+ "@ocap/util": "1.18.122",
25
+ "@ocap/wallet": "1.18.122",
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": "c713fd891dc1c2bba5e945c85bc84b12f6c8bcde"
85
+ "gitHead": "1d522587088f88d0b6f710e89fa18d5d7acbd61f"
86
86
  }