@ocap/sdk 1.18.51 → 1.18.52
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 +27 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -447,6 +447,10 @@ declare interface OcapSDK {
|
|
|
447
447
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
|
|
448
448
|
extra?: any
|
|
449
449
|
): Promise<GraphQLClient.ResponseSendTx>;
|
|
450
|
+
sendConsumeAssetTx(
|
|
451
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>,
|
|
452
|
+
extra?: any
|
|
453
|
+
): Promise<GraphQLClient.ResponseSendTx>;
|
|
450
454
|
sendCreateAssetTx(
|
|
451
455
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
|
|
452
456
|
extra?: any
|
|
@@ -573,6 +577,9 @@ declare interface OcapSDK {
|
|
|
573
577
|
encodeCloseRollupTx(
|
|
574
578
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>
|
|
575
579
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
580
|
+
encodeConsumeAssetTx(
|
|
581
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>
|
|
582
|
+
): Promise<GraphQLClient.EncodeTxResult>;
|
|
576
583
|
encodeCreateAssetTx(
|
|
577
584
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
|
|
578
585
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
@@ -672,6 +679,9 @@ declare interface OcapSDK {
|
|
|
672
679
|
signCloseRollupTx(
|
|
673
680
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>
|
|
674
681
|
): Promise<GraphQLClient.Transaction>;
|
|
682
|
+
signConsumeAssetTx(
|
|
683
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>
|
|
684
|
+
): Promise<GraphQLClient.Transaction>;
|
|
675
685
|
signCreateAssetTx(
|
|
676
686
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
|
|
677
687
|
): Promise<GraphQLClient.Transaction>;
|
|
@@ -797,6 +807,9 @@ declare interface OcapSDK {
|
|
|
797
807
|
multiSignCreateAssetTx(
|
|
798
808
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
|
|
799
809
|
): Promise<GraphQLClient.Transaction>;
|
|
810
|
+
multiSignConsumeAssetTx(
|
|
811
|
+
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>
|
|
812
|
+
): Promise<GraphQLClient.Transaction>;
|
|
800
813
|
getAccountState(
|
|
801
814
|
params: PartialDeep<GraphQLClient.GetAccountStateParams>
|
|
802
815
|
): Promise<GraphQLClient.GraphQLClient.ResponseGetAccountState>;
|
|
@@ -1183,6 +1196,7 @@ declare namespace GraphQLClient {
|
|
|
1183
1196
|
paging: GraphQLClient.PageInput;
|
|
1184
1197
|
ownerAddress: string;
|
|
1185
1198
|
addressList: string[];
|
|
1199
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1186
1200
|
}
|
|
1187
1201
|
|
|
1188
1202
|
interface RequestListRollupBlocksInput {
|
|
@@ -1204,6 +1218,7 @@ declare namespace GraphQLClient {
|
|
|
1204
1218
|
paging: GraphQLClient.PageInput;
|
|
1205
1219
|
tokenAddress: string;
|
|
1206
1220
|
foreignTokenAddress: string;
|
|
1221
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1207
1222
|
}
|
|
1208
1223
|
|
|
1209
1224
|
interface RequestListStakesInput {
|
|
@@ -1216,11 +1231,13 @@ declare namespace GraphQLClient {
|
|
|
1216
1231
|
interface RequestListTokensInput {
|
|
1217
1232
|
paging: GraphQLClient.PageInput;
|
|
1218
1233
|
issuerAddress: string;
|
|
1234
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1219
1235
|
}
|
|
1220
1236
|
|
|
1221
1237
|
interface RequestListTopAccountsInput {
|
|
1222
1238
|
paging: GraphQLClient.PageInput;
|
|
1223
1239
|
tokenAddress: string;
|
|
1240
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1224
1241
|
}
|
|
1225
1242
|
|
|
1226
1243
|
interface RequestListTransactionsInput {
|
|
@@ -1512,6 +1529,11 @@ declare namespace GraphQLClient {
|
|
|
1512
1529
|
paramChanged: boolean;
|
|
1513
1530
|
}
|
|
1514
1531
|
|
|
1532
|
+
interface ConsumeAssetTx {
|
|
1533
|
+
address: string;
|
|
1534
|
+
data: GraphQLClient.Any;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1515
1537
|
interface CreateAssetTx {
|
|
1516
1538
|
moniker: string;
|
|
1517
1539
|
data: GraphQLClient.Any;
|
|
@@ -2746,6 +2768,7 @@ declare namespace GraphQLClient {
|
|
|
2746
2768
|
interface ListTopAccountsParams {
|
|
2747
2769
|
paging: GraphQLClient.PageInput;
|
|
2748
2770
|
tokenAddress: string;
|
|
2771
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2749
2772
|
}
|
|
2750
2773
|
|
|
2751
2774
|
interface ListTransactionsParams {
|
|
@@ -2766,12 +2789,14 @@ declare namespace GraphQLClient {
|
|
|
2766
2789
|
interface ListTokensParams {
|
|
2767
2790
|
issuerAddress: string;
|
|
2768
2791
|
paging: GraphQLClient.PageInput;
|
|
2792
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2769
2793
|
}
|
|
2770
2794
|
|
|
2771
2795
|
interface ListFactoriesParams {
|
|
2772
2796
|
ownerAddress: string;
|
|
2773
2797
|
addressList: string[];
|
|
2774
2798
|
paging: GraphQLClient.PageInput;
|
|
2799
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2775
2800
|
}
|
|
2776
2801
|
|
|
2777
2802
|
interface GetAccountTokensParams {
|
|
@@ -2803,6 +2828,7 @@ declare namespace GraphQLClient {
|
|
|
2803
2828
|
tokenAddress: string;
|
|
2804
2829
|
erc20TokenAddress: string;
|
|
2805
2830
|
foreignTokenAddress: string;
|
|
2831
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2806
2832
|
}
|
|
2807
2833
|
|
|
2808
2834
|
interface GetRollupBlockParams {
|
|
@@ -2818,6 +2844,7 @@ declare namespace GraphQLClient {
|
|
|
2818
2844
|
proposer: string;
|
|
2819
2845
|
validatorFilter: GraphQLClient.ValidatorFilterInput;
|
|
2820
2846
|
txFilter: GraphQLClient.TxFilterInput;
|
|
2847
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2821
2848
|
}
|
|
2822
2849
|
|
|
2823
2850
|
interface ListRollupValidatorsParams {
|
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.52",
|
|
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.52",
|
|
22
|
+
"@ocap/client": "1.18.52",
|
|
23
|
+
"@ocap/message": "1.18.52",
|
|
24
|
+
"@ocap/util": "1.18.52",
|
|
25
|
+
"@ocap/wallet": "1.18.52",
|
|
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": "96239c70a503c2a045dbef508c3086251dee7ce5"
|
|
86
86
|
}
|