@ocap/sdk 1.18.15 → 1.18.17
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 +321 -140
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -257,21 +257,21 @@ export interface WalletObject<T extends BytesType = string> {
|
|
|
257
257
|
secretKey: T;
|
|
258
258
|
publicKey: T;
|
|
259
259
|
address: string;
|
|
260
|
-
hash(data:
|
|
261
|
-
hash(data:
|
|
262
|
-
hash(data:
|
|
263
|
-
hash(data:
|
|
264
|
-
hash(data:
|
|
265
|
-
hash(data:
|
|
266
|
-
hash(data:
|
|
267
|
-
sign(data:
|
|
268
|
-
sign(data:
|
|
269
|
-
sign(data:
|
|
270
|
-
sign(data:
|
|
271
|
-
sign(data:
|
|
272
|
-
sign(data:
|
|
273
|
-
sign(data:
|
|
274
|
-
verify(data:
|
|
260
|
+
hash(data: BytesType, round?: number, encoding?: 'hex'): string;
|
|
261
|
+
hash(data: BytesType, round?: number, encoding?: 'base16'): string;
|
|
262
|
+
hash(data: BytesType, round?: number, encoding?: 'base58'): string;
|
|
263
|
+
hash(data: BytesType, round?: number, encoding?: 'base64'): string;
|
|
264
|
+
hash(data: BytesType, round?: number, encoding?: 'buffer'): Buffer;
|
|
265
|
+
hash(data: BytesType, round?: number, encoding?: 'Uint8Array'): Uint8Array;
|
|
266
|
+
hash(data: BytesType, round?: number, encoding?: EncodingType): BytesType;
|
|
267
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'hex'): string;
|
|
268
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base16'): string;
|
|
269
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base58'): string;
|
|
270
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'base64'): string;
|
|
271
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'buffer'): Buffer;
|
|
272
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: 'Uint8Array'): Uint8Array;
|
|
273
|
+
sign(data: BytesType, hashBeforeSign?: boolean, encoding?: EncodingType): BytesType;
|
|
274
|
+
verify(data: BytesType, signature: BytesType, hashBeforeVerify?: boolean): boolean;
|
|
275
275
|
ethHash(data: string): string;
|
|
276
276
|
ethSign(data: string, hashBeforeSign?: boolean): string;
|
|
277
277
|
ethVerify(data: string, signature: string, hashBeforeVerify?: boolean): boolean;
|
|
@@ -418,6 +418,9 @@ declare interface OcapSDK {
|
|
|
418
418
|
generateSubscriptionFns(): void;
|
|
419
419
|
generateMutationFns(): void;
|
|
420
420
|
|
|
421
|
+
setGasPayer(wallet: WalletObject): void;
|
|
422
|
+
pickGasPayerHeaders(req: any): any;
|
|
423
|
+
|
|
421
424
|
sendAccountMigrateTx(
|
|
422
425
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>,
|
|
423
426
|
extra?: any
|
|
@@ -783,75 +786,100 @@ declare interface OcapSDK {
|
|
|
783
786
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>
|
|
784
787
|
): Promise<GraphQLClient.Transaction>;
|
|
785
788
|
getAccountState(
|
|
786
|
-
params: GraphQLClient.GetAccountStateParams
|
|
787
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState
|
|
789
|
+
params: PartialDeep<GraphQLClient.GetAccountStateParams>
|
|
790
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountState>>;
|
|
788
791
|
getAssetState(
|
|
789
|
-
params: GraphQLClient.GetAssetStateParams
|
|
790
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAssetState
|
|
792
|
+
params: PartialDeep<GraphQLClient.GetAssetStateParams>
|
|
793
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetAssetState>>;
|
|
791
794
|
getFactoryState(
|
|
792
|
-
params: GraphQLClient.GetFactoryStateParams
|
|
793
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetFactoryState
|
|
795
|
+
params: PartialDeep<GraphQLClient.GetFactoryStateParams>
|
|
796
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetFactoryState>>;
|
|
794
797
|
getDelegateState(
|
|
795
|
-
params: GraphQLClient.GetDelegateStateParams
|
|
796
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetDelegateState
|
|
798
|
+
params: PartialDeep<GraphQLClient.GetDelegateStateParams>
|
|
799
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetDelegateState>>;
|
|
797
800
|
getTokenState(
|
|
798
|
-
params: GraphQLClient.GetTokenStateParams
|
|
799
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetTokenState
|
|
801
|
+
params: PartialDeep<GraphQLClient.GetTokenStateParams>
|
|
802
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetTokenState>>;
|
|
800
803
|
getEvidenceState(
|
|
801
|
-
params: GraphQLClient.GetEvidenceStateParams
|
|
802
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetEvidenceState
|
|
804
|
+
params: PartialDeep<GraphQLClient.GetEvidenceStateParams>
|
|
805
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetEvidenceState>>;
|
|
803
806
|
getForgeState(
|
|
804
|
-
params: GraphQLClient.GetForgeStateParams
|
|
805
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeState
|
|
806
|
-
getTx(
|
|
807
|
-
|
|
808
|
-
|
|
807
|
+
params: PartialDeep<GraphQLClient.GetForgeStateParams>
|
|
808
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeState>>;
|
|
809
|
+
getTx(
|
|
810
|
+
params: PartialDeep<GraphQLClient.GetTxParams>
|
|
811
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetTx>>;
|
|
812
|
+
getBlock(
|
|
813
|
+
params: PartialDeep<GraphQLClient.GetBlockParams>
|
|
814
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetBlock>>;
|
|
815
|
+
getBlocks(
|
|
816
|
+
params: PartialDeep<GraphQLClient.GetBlocksParams>
|
|
817
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetBlocks>>;
|
|
809
818
|
getUnconfirmedTxs(
|
|
810
|
-
params: GraphQLClient.GetUnconfirmedTxsParams
|
|
811
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetUnconfirmedTxs
|
|
812
|
-
getChainInfo(): GraphQLClient.QueryResult<GraphQLClient.ResponseGetChainInfo
|
|
813
|
-
getConfig(
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
819
|
+
params: PartialDeep<GraphQLClient.GetUnconfirmedTxsParams>
|
|
820
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetUnconfirmedTxs>>;
|
|
821
|
+
getChainInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetChainInfo>>;
|
|
822
|
+
getConfig(
|
|
823
|
+
params: PartialDeep<GraphQLClient.GetConfigParams>
|
|
824
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetConfig>>;
|
|
825
|
+
getNetInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetNetInfo>>;
|
|
826
|
+
getNodeInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetNodeInfo>>;
|
|
827
|
+
getValidatorsInfo(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetValidatorsInfo>>;
|
|
828
|
+
getForgeStats(): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetForgeStats>>;
|
|
818
829
|
listAssetTransactions(
|
|
819
|
-
params: GraphQLClient.ListAssetTransactionsParams
|
|
820
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions
|
|
821
|
-
listAssets(
|
|
822
|
-
|
|
830
|
+
params: PartialDeep<GraphQLClient.ListAssetTransactionsParams>
|
|
831
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListAssetTransactions>>;
|
|
832
|
+
listAssets(
|
|
833
|
+
params: PartialDeep<GraphQLClient.ListAssetsParams>
|
|
834
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListAssets>>;
|
|
835
|
+
listBlocks(
|
|
836
|
+
params: PartialDeep<GraphQLClient.ListBlocksParams>
|
|
837
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListBlocks>>;
|
|
823
838
|
listTopAccounts(
|
|
824
|
-
params: GraphQLClient.ListTopAccountsParams
|
|
825
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseListTopAccounts
|
|
839
|
+
params: PartialDeep<GraphQLClient.ListTopAccountsParams>
|
|
840
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListTopAccounts>>;
|
|
826
841
|
listTransactions(
|
|
827
|
-
params: GraphQLClient.ListTransactionsParams
|
|
828
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseListTransactions
|
|
829
|
-
listTokens(
|
|
842
|
+
params: PartialDeep<GraphQLClient.ListTransactionsParams>
|
|
843
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListTransactions>>;
|
|
844
|
+
listTokens(
|
|
845
|
+
params: PartialDeep<GraphQLClient.ListTokensParams>
|
|
846
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListTokens>>;
|
|
830
847
|
listFactories(
|
|
831
|
-
params: GraphQLClient.ListFactoriesParams
|
|
832
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseListFactories
|
|
848
|
+
params: PartialDeep<GraphQLClient.ListFactoriesParams>
|
|
849
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListFactories>>;
|
|
833
850
|
getAccountTokens(
|
|
834
|
-
params: GraphQLClient.GetAccountTokensParams
|
|
835
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountTokens
|
|
851
|
+
params: PartialDeep<GraphQLClient.GetAccountTokensParams>
|
|
852
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetAccountTokens>>;
|
|
836
853
|
getStakeState(
|
|
837
|
-
params: GraphQLClient.GetStakeStateParams
|
|
838
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetStakeState
|
|
839
|
-
listStakes(
|
|
854
|
+
params: PartialDeep<GraphQLClient.GetStakeStateParams>
|
|
855
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetStakeState>>;
|
|
856
|
+
listStakes(
|
|
857
|
+
params: PartialDeep<GraphQLClient.ListStakesParams>
|
|
858
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListStakes>>;
|
|
840
859
|
getRollupState(
|
|
841
|
-
params: GraphQLClient.GetRollupStateParams
|
|
842
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupState
|
|
843
|
-
listRollups(
|
|
860
|
+
params: PartialDeep<GraphQLClient.GetRollupStateParams>
|
|
861
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupState>>;
|
|
862
|
+
listRollups(
|
|
863
|
+
params: PartialDeep<GraphQLClient.ListRollupsParams>
|
|
864
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListRollups>>;
|
|
844
865
|
getRollupBlock(
|
|
845
|
-
params: GraphQLClient.GetRollupBlockParams
|
|
846
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupBlock
|
|
866
|
+
params: PartialDeep<GraphQLClient.GetRollupBlockParams>
|
|
867
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseGetRollupBlock>>;
|
|
847
868
|
listRollupBlocks(
|
|
848
|
-
params: GraphQLClient.ListRollupBlocksParams
|
|
849
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupBlocks
|
|
869
|
+
params: PartialDeep<GraphQLClient.ListRollupBlocksParams>
|
|
870
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupBlocks>>;
|
|
850
871
|
listRollupValidators(
|
|
851
|
-
params: GraphQLClient.ListRollupValidatorsParams
|
|
852
|
-
): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupValidators
|
|
853
|
-
search(
|
|
854
|
-
|
|
872
|
+
params: PartialDeep<GraphQLClient.ListRollupValidatorsParams>
|
|
873
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupValidators>>;
|
|
874
|
+
search(
|
|
875
|
+
params: PartialDeep<GraphQLClient.SearchParams>
|
|
876
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseSearch>>;
|
|
877
|
+
estimateGas(
|
|
878
|
+
params: PartialDeep<GraphQLClient.EstimateGasParams>
|
|
879
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseEstimateGas>>;
|
|
880
|
+
sendTx(
|
|
881
|
+
params: PartialDeep<GraphQLClient.SendTxParams>
|
|
882
|
+
): Promise<GraphQLClient.QueryResult<GraphQLClient.ResponseSendTx>>;
|
|
855
883
|
}
|
|
856
884
|
|
|
857
885
|
declare namespace GraphQLClient {
|
|
@@ -878,7 +906,7 @@ declare namespace GraphQLClient {
|
|
|
878
906
|
chainId?: string;
|
|
879
907
|
delegator?: string;
|
|
880
908
|
signature?: string;
|
|
881
|
-
signatures?: GraphQLClient.Multisig;
|
|
909
|
+
signatures?: PartialDeep<GraphQLClient.Multisig>[];
|
|
882
910
|
itx: T;
|
|
883
911
|
};
|
|
884
912
|
wallet: WalletObject;
|
|
@@ -1062,79 +1090,218 @@ declare namespace GraphQLClient {
|
|
|
1062
1090
|
INVALID,
|
|
1063
1091
|
}
|
|
1064
1092
|
|
|
1065
|
-
interface AccountFilterInput {
|
|
1093
|
+
interface AccountFilterInput {
|
|
1094
|
+
accounts: string[];
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
interface AddressFilterInput {
|
|
1098
|
+
sender: string;
|
|
1099
|
+
receiver: string;
|
|
1100
|
+
direction: GraphQLClient.Direction;
|
|
1101
|
+
}
|
|
1066
1102
|
|
|
1067
|
-
interface
|
|
1103
|
+
interface AssetFilterInput {
|
|
1104
|
+
assets: string[];
|
|
1105
|
+
}
|
|
1068
1106
|
|
|
1069
|
-
interface
|
|
1107
|
+
interface FactoryFilterInput {
|
|
1108
|
+
factories: string[];
|
|
1109
|
+
}
|
|
1070
1110
|
|
|
1071
|
-
interface
|
|
1111
|
+
interface PageInput {
|
|
1112
|
+
cursor: string;
|
|
1113
|
+
size: number;
|
|
1114
|
+
order: GraphQLClient.PageOrderInput[];
|
|
1115
|
+
}
|
|
1072
1116
|
|
|
1073
|
-
interface
|
|
1117
|
+
interface PageOrderInput {
|
|
1118
|
+
field: string;
|
|
1119
|
+
type: string;
|
|
1120
|
+
}
|
|
1074
1121
|
|
|
1075
|
-
interface
|
|
1122
|
+
interface RangeFilterInput {
|
|
1123
|
+
from: string;
|
|
1124
|
+
to: string;
|
|
1125
|
+
}
|
|
1076
1126
|
|
|
1077
|
-
interface
|
|
1127
|
+
interface RequestEstimateGasInput {
|
|
1128
|
+
typeUrl: string;
|
|
1129
|
+
tx: string;
|
|
1130
|
+
}
|
|
1078
1131
|
|
|
1079
|
-
interface RequestGetAccountTokensInput {
|
|
1132
|
+
interface RequestGetAccountTokensInput {
|
|
1133
|
+
address: string;
|
|
1134
|
+
token: string;
|
|
1135
|
+
}
|
|
1080
1136
|
|
|
1081
|
-
interface RequestGetBlockInput {
|
|
1137
|
+
interface RequestGetBlockInput {
|
|
1138
|
+
height: number;
|
|
1139
|
+
}
|
|
1082
1140
|
|
|
1083
|
-
interface RequestGetBlocksInput {
|
|
1141
|
+
interface RequestGetBlocksInput {
|
|
1142
|
+
paging: GraphQLClient.PageInput;
|
|
1143
|
+
heightFilter: GraphQLClient.RangeFilterInput;
|
|
1144
|
+
emptyExcluded: boolean;
|
|
1145
|
+
}
|
|
1084
1146
|
|
|
1085
|
-
interface RequestGetConfigInput {
|
|
1147
|
+
interface RequestGetConfigInput {
|
|
1148
|
+
parsed: boolean;
|
|
1149
|
+
}
|
|
1086
1150
|
|
|
1087
|
-
interface RequestGetEvidenceStateInput {
|
|
1151
|
+
interface RequestGetEvidenceStateInput {
|
|
1152
|
+
hash: string;
|
|
1153
|
+
}
|
|
1088
1154
|
|
|
1089
|
-
interface RequestGetRollupBlockInput {
|
|
1155
|
+
interface RequestGetRollupBlockInput {
|
|
1156
|
+
hash: string;
|
|
1157
|
+
height: number;
|
|
1158
|
+
rollupAddress: string;
|
|
1159
|
+
}
|
|
1090
1160
|
|
|
1091
|
-
interface RequestGetStateInput {
|
|
1161
|
+
interface RequestGetStateInput {
|
|
1162
|
+
address: string;
|
|
1163
|
+
keys: string[];
|
|
1164
|
+
height: number;
|
|
1165
|
+
}
|
|
1092
1166
|
|
|
1093
|
-
interface RequestGetTxInput {
|
|
1167
|
+
interface RequestGetTxInput {
|
|
1168
|
+
hash: string;
|
|
1169
|
+
}
|
|
1094
1170
|
|
|
1095
|
-
interface RequestListAssetTransactionsInput {
|
|
1171
|
+
interface RequestListAssetTransactionsInput {
|
|
1172
|
+
paging: GraphQLClient.PageInput;
|
|
1173
|
+
address: string;
|
|
1174
|
+
}
|
|
1096
1175
|
|
|
1097
|
-
interface RequestListAssetsInput {
|
|
1176
|
+
interface RequestListAssetsInput {
|
|
1177
|
+
paging: GraphQLClient.PageInput;
|
|
1178
|
+
ownerAddress: string;
|
|
1179
|
+
factoryAddress: string;
|
|
1180
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1181
|
+
}
|
|
1098
1182
|
|
|
1099
|
-
interface RequestListBlocksInput {
|
|
1183
|
+
interface RequestListBlocksInput {
|
|
1184
|
+
paging: GraphQLClient.PageInput;
|
|
1185
|
+
proposer: string;
|
|
1186
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1187
|
+
heightFilter: GraphQLClient.RangeFilterInput;
|
|
1188
|
+
numTxsFilter: GraphQLClient.RangeFilterInput;
|
|
1189
|
+
numInvalidTxsFilter: GraphQLClient.RangeFilterInput;
|
|
1190
|
+
}
|
|
1100
1191
|
|
|
1101
|
-
interface RequestListFactoriesInput {
|
|
1192
|
+
interface RequestListFactoriesInput {
|
|
1193
|
+
paging: GraphQLClient.PageInput;
|
|
1194
|
+
ownerAddress: string;
|
|
1195
|
+
addressList: string[];
|
|
1196
|
+
}
|
|
1102
1197
|
|
|
1103
|
-
interface RequestListRollupBlocksInput {
|
|
1198
|
+
interface RequestListRollupBlocksInput {
|
|
1199
|
+
paging: GraphQLClient.PageInput;
|
|
1200
|
+
rollupAddress: string;
|
|
1201
|
+
tokenAddress: string;
|
|
1202
|
+
proposer: string;
|
|
1203
|
+
validatorFilter: GraphQLClient.ValidatorFilterInput;
|
|
1204
|
+
txFilter: GraphQLClient.TxFilterInput;
|
|
1205
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1206
|
+
}
|
|
1104
1207
|
|
|
1105
|
-
interface RequestListRollupValidatorsInput {
|
|
1208
|
+
interface RequestListRollupValidatorsInput {
|
|
1209
|
+
paging: GraphQLClient.PageInput;
|
|
1210
|
+
rollupAddress: string;
|
|
1211
|
+
}
|
|
1106
1212
|
|
|
1107
|
-
interface RequestListRollupsInput {
|
|
1213
|
+
interface RequestListRollupsInput {
|
|
1214
|
+
paging: GraphQLClient.PageInput;
|
|
1215
|
+
tokenAddress: string;
|
|
1216
|
+
foreignTokenAddress: string;
|
|
1217
|
+
}
|
|
1108
1218
|
|
|
1109
|
-
interface RequestListStakesInput {
|
|
1219
|
+
interface RequestListStakesInput {
|
|
1220
|
+
paging: GraphQLClient.PageInput;
|
|
1221
|
+
addressFilter: GraphQLClient.AddressFilterInput;
|
|
1222
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1223
|
+
assetFilter: GraphQLClient.AssetFilterInput;
|
|
1224
|
+
}
|
|
1110
1225
|
|
|
1111
|
-
interface RequestListTokensInput {
|
|
1226
|
+
interface RequestListTokensInput {
|
|
1227
|
+
paging: GraphQLClient.PageInput;
|
|
1228
|
+
issuerAddress: string;
|
|
1229
|
+
}
|
|
1112
1230
|
|
|
1113
|
-
interface RequestListTopAccountsInput {
|
|
1231
|
+
interface RequestListTopAccountsInput {
|
|
1232
|
+
paging: GraphQLClient.PageInput;
|
|
1233
|
+
tokenAddress: string;
|
|
1234
|
+
}
|
|
1114
1235
|
|
|
1115
|
-
interface RequestListTransactionsInput {
|
|
1236
|
+
interface RequestListTransactionsInput {
|
|
1237
|
+
paging: GraphQLClient.PageInput;
|
|
1238
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
1239
|
+
addressFilter: GraphQLClient.AddressFilterInput;
|
|
1240
|
+
typeFilter: GraphQLClient.TypeFilterInput;
|
|
1241
|
+
validityFilter: GraphQLClient.ValidityFilterInput;
|
|
1242
|
+
factoryFilter: GraphQLClient.FactoryFilterInput;
|
|
1243
|
+
tokenFilter: GraphQLClient.TokenFilterInput;
|
|
1244
|
+
assetFilter: GraphQLClient.AssetFilterInput;
|
|
1245
|
+
accountFilter: GraphQLClient.AccountFilterInput;
|
|
1246
|
+
txFilter: GraphQLClient.TxFilterInput;
|
|
1247
|
+
rollupFilter: GraphQLClient.RollupFilterInput;
|
|
1248
|
+
}
|
|
1116
1249
|
|
|
1117
|
-
interface RequestSearchInput {
|
|
1250
|
+
interface RequestSearchInput {
|
|
1251
|
+
paging: GraphQLClient.PageInput;
|
|
1252
|
+
keyword: string;
|
|
1253
|
+
}
|
|
1118
1254
|
|
|
1119
|
-
interface RequestSendTxInput {
|
|
1255
|
+
interface RequestSendTxInput {
|
|
1256
|
+
tx: string;
|
|
1257
|
+
wallet: GraphQLClient.WalletInfoInput;
|
|
1258
|
+
token: string;
|
|
1259
|
+
commit: boolean;
|
|
1260
|
+
}
|
|
1120
1261
|
|
|
1121
|
-
interface RollupFilterInput {
|
|
1262
|
+
interface RollupFilterInput {
|
|
1263
|
+
rollups: string[];
|
|
1264
|
+
}
|
|
1122
1265
|
|
|
1123
|
-
interface TimeFilterInput {
|
|
1266
|
+
interface TimeFilterInput {
|
|
1267
|
+
startDateTime: string;
|
|
1268
|
+
endDateTime: string;
|
|
1269
|
+
field: string;
|
|
1270
|
+
}
|
|
1124
1271
|
|
|
1125
|
-
interface TokenFilterInput {
|
|
1272
|
+
interface TokenFilterInput {
|
|
1273
|
+
tokens: string[];
|
|
1274
|
+
}
|
|
1126
1275
|
|
|
1127
|
-
interface TxFilterInput {
|
|
1276
|
+
interface TxFilterInput {
|
|
1277
|
+
txs: string[];
|
|
1278
|
+
}
|
|
1128
1279
|
|
|
1129
|
-
interface TypeFilterInput {
|
|
1280
|
+
interface TypeFilterInput {
|
|
1281
|
+
types: string[];
|
|
1282
|
+
}
|
|
1130
1283
|
|
|
1131
|
-
interface ValidatorFilterInput {
|
|
1284
|
+
interface ValidatorFilterInput {
|
|
1285
|
+
validators: string[];
|
|
1286
|
+
}
|
|
1132
1287
|
|
|
1133
|
-
interface ValidityFilterInput {
|
|
1288
|
+
interface ValidityFilterInput {
|
|
1289
|
+
validity: GraphQLClient.Validity;
|
|
1290
|
+
}
|
|
1134
1291
|
|
|
1135
|
-
interface WalletInfoInput {
|
|
1292
|
+
interface WalletInfoInput {
|
|
1293
|
+
type: GraphQLClient.WalletTypeInput;
|
|
1294
|
+
sk: string;
|
|
1295
|
+
pk: string;
|
|
1296
|
+
address: string;
|
|
1297
|
+
}
|
|
1136
1298
|
|
|
1137
|
-
interface WalletTypeInput {
|
|
1299
|
+
interface WalletTypeInput {
|
|
1300
|
+
pk: GraphQLClient.KeyType;
|
|
1301
|
+
hash: GraphQLClient.HashType;
|
|
1302
|
+
address: GraphQLClient.EncodingType;
|
|
1303
|
+
role: GraphQLClient.RoleType;
|
|
1304
|
+
}
|
|
1138
1305
|
|
|
1139
1306
|
interface AccountConfig {
|
|
1140
1307
|
address: string;
|
|
@@ -1584,6 +1751,10 @@ declare namespace GraphQLClient {
|
|
|
1584
1751
|
address: string;
|
|
1585
1752
|
}
|
|
1586
1753
|
|
|
1754
|
+
interface GasEstimate {
|
|
1755
|
+
max: string;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1587
1758
|
interface GeoInfo {
|
|
1588
1759
|
city: string;
|
|
1589
1760
|
country: string;
|
|
@@ -1934,6 +2105,11 @@ declare namespace GraphQLClient {
|
|
|
1934
2105
|
value: string;
|
|
1935
2106
|
}
|
|
1936
2107
|
|
|
2108
|
+
interface ResponseEstimateGas {
|
|
2109
|
+
code: string;
|
|
2110
|
+
estimate: GraphQLClient.GasEstimate;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
1937
2113
|
interface ResponseGetAccountState {
|
|
1938
2114
|
code: string;
|
|
1939
2115
|
state: GraphQLClient.AccountState;
|
|
@@ -2512,12 +2688,12 @@ declare namespace GraphQLClient {
|
|
|
2512
2688
|
|
|
2513
2689
|
interface GetBlocksParams {
|
|
2514
2690
|
emptyExcluded: boolean;
|
|
2515
|
-
heightFilter:
|
|
2516
|
-
paging:
|
|
2691
|
+
heightFilter: GraphQLClient.RangeFilterInput;
|
|
2692
|
+
paging: GraphQLClient.PageInput;
|
|
2517
2693
|
}
|
|
2518
2694
|
|
|
2519
2695
|
interface GetUnconfirmedTxsParams {
|
|
2520
|
-
paging:
|
|
2696
|
+
paging: GraphQLClient.PageInput;
|
|
2521
2697
|
}
|
|
2522
2698
|
|
|
2523
2699
|
interface GetConfigParams {
|
|
@@ -2526,53 +2702,53 @@ declare namespace GraphQLClient {
|
|
|
2526
2702
|
|
|
2527
2703
|
interface ListAssetTransactionsParams {
|
|
2528
2704
|
address: string;
|
|
2529
|
-
paging:
|
|
2705
|
+
paging: GraphQLClient.PageInput;
|
|
2530
2706
|
}
|
|
2531
2707
|
|
|
2532
2708
|
interface ListAssetsParams {
|
|
2533
2709
|
ownerAddress: string;
|
|
2534
|
-
paging:
|
|
2710
|
+
paging: GraphQLClient.PageInput;
|
|
2535
2711
|
factoryAddress: string;
|
|
2536
|
-
timeFilter:
|
|
2712
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2537
2713
|
}
|
|
2538
2714
|
|
|
2539
2715
|
interface ListBlocksParams {
|
|
2540
|
-
heightFilter:
|
|
2541
|
-
numInvalidTxsFilter:
|
|
2542
|
-
numTxsFilter:
|
|
2543
|
-
paging:
|
|
2716
|
+
heightFilter: GraphQLClient.RangeFilterInput;
|
|
2717
|
+
numInvalidTxsFilter: GraphQLClient.RangeFilterInput;
|
|
2718
|
+
numTxsFilter: GraphQLClient.RangeFilterInput;
|
|
2719
|
+
paging: GraphQLClient.PageInput;
|
|
2544
2720
|
proposer: string;
|
|
2545
|
-
timeFilter:
|
|
2721
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2546
2722
|
}
|
|
2547
2723
|
|
|
2548
2724
|
interface ListTopAccountsParams {
|
|
2549
|
-
paging:
|
|
2725
|
+
paging: GraphQLClient.PageInput;
|
|
2550
2726
|
tokenAddress: string;
|
|
2551
2727
|
}
|
|
2552
2728
|
|
|
2553
2729
|
interface ListTransactionsParams {
|
|
2554
|
-
addressFilter:
|
|
2555
|
-
paging:
|
|
2556
|
-
timeFilter:
|
|
2557
|
-
typeFilter:
|
|
2558
|
-
validityFilter:
|
|
2559
|
-
factoryFilter:
|
|
2560
|
-
tokenFilter:
|
|
2561
|
-
assetFilter:
|
|
2562
|
-
accountFilter:
|
|
2563
|
-
txFilter:
|
|
2564
|
-
rollupFilter:
|
|
2730
|
+
addressFilter: GraphQLClient.AddressFilterInput;
|
|
2731
|
+
paging: GraphQLClient.PageInput;
|
|
2732
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2733
|
+
typeFilter: GraphQLClient.TypeFilterInput;
|
|
2734
|
+
validityFilter: GraphQLClient.ValidityFilterInput;
|
|
2735
|
+
factoryFilter: GraphQLClient.FactoryFilterInput;
|
|
2736
|
+
tokenFilter: GraphQLClient.TokenFilterInput;
|
|
2737
|
+
assetFilter: GraphQLClient.AssetFilterInput;
|
|
2738
|
+
accountFilter: GraphQLClient.AccountFilterInput;
|
|
2739
|
+
txFilter: GraphQLClient.TxFilterInput;
|
|
2740
|
+
rollupFilter: GraphQLClient.RollupFilterInput;
|
|
2565
2741
|
}
|
|
2566
2742
|
|
|
2567
2743
|
interface ListTokensParams {
|
|
2568
2744
|
issuerAddress: string;
|
|
2569
|
-
paging:
|
|
2745
|
+
paging: GraphQLClient.PageInput;
|
|
2570
2746
|
}
|
|
2571
2747
|
|
|
2572
2748
|
interface ListFactoriesParams {
|
|
2573
2749
|
ownerAddress: string;
|
|
2574
2750
|
addressList: string[];
|
|
2575
|
-
paging:
|
|
2751
|
+
paging: GraphQLClient.PageInput;
|
|
2576
2752
|
}
|
|
2577
2753
|
|
|
2578
2754
|
interface GetAccountTokensParams {
|
|
@@ -2587,10 +2763,10 @@ declare namespace GraphQLClient {
|
|
|
2587
2763
|
}
|
|
2588
2764
|
|
|
2589
2765
|
interface ListStakesParams {
|
|
2590
|
-
addressFilter:
|
|
2591
|
-
assetFilter:
|
|
2592
|
-
timeFilter:
|
|
2593
|
-
paging:
|
|
2766
|
+
addressFilter: GraphQLClient.AddressFilterInput;
|
|
2767
|
+
assetFilter: GraphQLClient.AssetFilterInput;
|
|
2768
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2769
|
+
paging: GraphQLClient.PageInput;
|
|
2594
2770
|
}
|
|
2595
2771
|
|
|
2596
2772
|
interface GetRollupStateParams {
|
|
@@ -2600,7 +2776,7 @@ declare namespace GraphQLClient {
|
|
|
2600
2776
|
}
|
|
2601
2777
|
|
|
2602
2778
|
interface ListRollupsParams {
|
|
2603
|
-
paging:
|
|
2779
|
+
paging: GraphQLClient.PageInput;
|
|
2604
2780
|
tokenAddress: string;
|
|
2605
2781
|
erc20TokenAddress: string;
|
|
2606
2782
|
foreignTokenAddress: string;
|
|
@@ -2613,24 +2789,29 @@ declare namespace GraphQLClient {
|
|
|
2613
2789
|
}
|
|
2614
2790
|
|
|
2615
2791
|
interface ListRollupBlocksParams {
|
|
2616
|
-
paging:
|
|
2792
|
+
paging: GraphQLClient.PageInput;
|
|
2617
2793
|
rollupAddress: string;
|
|
2618
2794
|
tokenAddress: string;
|
|
2619
2795
|
proposer: string;
|
|
2620
|
-
validatorFilter:
|
|
2621
|
-
txFilter:
|
|
2796
|
+
validatorFilter: GraphQLClient.ValidatorFilterInput;
|
|
2797
|
+
txFilter: GraphQLClient.TxFilterInput;
|
|
2622
2798
|
}
|
|
2623
2799
|
|
|
2624
2800
|
interface ListRollupValidatorsParams {
|
|
2625
|
-
paging:
|
|
2801
|
+
paging: GraphQLClient.PageInput;
|
|
2626
2802
|
rollupAddress: string;
|
|
2627
2803
|
}
|
|
2628
2804
|
|
|
2629
2805
|
interface SearchParams {
|
|
2630
|
-
paging:
|
|
2806
|
+
paging: GraphQLClient.PageInput;
|
|
2631
2807
|
keyword: string;
|
|
2632
2808
|
}
|
|
2633
2809
|
|
|
2810
|
+
interface EstimateGasParams {
|
|
2811
|
+
typeUrl: string;
|
|
2812
|
+
tx: string;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2634
2815
|
interface SendTxParams {
|
|
2635
2816
|
commit: boolean;
|
|
2636
2817
|
token: string;
|
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.17",
|
|
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.17",
|
|
22
|
+
"@ocap/client": "1.18.17",
|
|
23
|
+
"@ocap/message": "1.18.17",
|
|
24
|
+
"@ocap/util": "1.18.17",
|
|
25
|
+
"@ocap/wallet": "1.18.17",
|
|
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": "be4f07d40599521e3b5364dd7d0ace22ad5f58d6"
|
|
86
86
|
}
|