@ocap/sdk 1.18.121 → 1.18.123
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.
- package/index.d.ts +40 -59
- 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.
|
|
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.
|
|
783
|
+
): Promise<GraphQLClient.ResponseGetFactoryState>;
|
|
786
784
|
getDelegateState(
|
|
787
785
|
params: PartialDeep<GraphQLClient.GetDelegateStateParams>
|
|
788
|
-
): Promise<GraphQLClient.
|
|
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.
|
|
795
|
-
getForgeState(
|
|
796
|
-
|
|
797
|
-
): Promise<GraphQLClient.
|
|
798
|
-
|
|
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.
|
|
804
|
-
getChainInfo(): Promise<GraphQLClient.
|
|
805
|
-
getConfig(params: PartialDeep<GraphQLClient.GetConfigParams>): Promise<GraphQLClient.
|
|
806
|
-
getNetInfo(): Promise<GraphQLClient.
|
|
807
|
-
getNodeInfo(): Promise<GraphQLClient.
|
|
808
|
-
getValidatorsInfo(): Promise<GraphQLClient.
|
|
809
|
-
getForgeStats(): Promise<GraphQLClient.
|
|
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.
|
|
813
|
-
listAssets(
|
|
814
|
-
|
|
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.
|
|
811
|
+
): Promise<GraphQLClient.ResponseListTopAccounts>;
|
|
822
812
|
listTransactions(
|
|
823
813
|
params: PartialDeep<GraphQLClient.ListTransactionsParams>
|
|
824
|
-
): Promise<GraphQLClient.
|
|
825
|
-
listTokens(
|
|
826
|
-
|
|
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.
|
|
834
|
-
getStakeState(
|
|
835
|
-
|
|
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.
|
|
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.
|
|
828
|
+
): Promise<GraphQLClient.ResponseGetRollupBlock>;
|
|
849
829
|
listRollupBlocks(
|
|
850
830
|
params: PartialDeep<GraphQLClient.ListRollupBlocksParams>
|
|
851
|
-
): Promise<GraphQLClient.
|
|
831
|
+
): Promise<GraphQLClient.ResponseListRollupBlocks>;
|
|
852
832
|
listRollupValidators(
|
|
853
833
|
params: PartialDeep<GraphQLClient.ListRollupValidatorsParams>
|
|
854
|
-
): Promise<GraphQLClient.
|
|
834
|
+
): Promise<GraphQLClient.ResponseListRollupValidators>;
|
|
855
835
|
listDelegations(
|
|
856
836
|
params: PartialDeep<GraphQLClient.ListDelegationsParams>
|
|
857
|
-
): Promise<GraphQLClient.
|
|
858
|
-
search(params: PartialDeep<GraphQLClient.SearchParams>): Promise<GraphQLClient.
|
|
859
|
-
estimateGas(
|
|
860
|
-
|
|
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.
|
|
4
|
+
"version": "1.18.123",
|
|
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.
|
|
22
|
-
"@ocap/client": "1.18.
|
|
23
|
-
"@ocap/message": "1.18.
|
|
24
|
-
"@ocap/util": "1.18.
|
|
25
|
-
"@ocap/wallet": "1.18.
|
|
21
|
+
"@arcblock/did-util": "1.18.123",
|
|
22
|
+
"@ocap/client": "1.18.123",
|
|
23
|
+
"@ocap/message": "1.18.123",
|
|
24
|
+
"@ocap/util": "1.18.123",
|
|
25
|
+
"@ocap/wallet": "1.18.123",
|
|
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": "
|
|
85
|
+
"gitHead": "fa235d164885434399fafe96860d8e5c137bce3b"
|
|
86
86
|
}
|