@ocap/sdk 1.18.8 → 1.18.9
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 +392 -389
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -241,9 +241,9 @@ export declare function formatTxType(type: string): any;
|
|
|
241
241
|
/// <reference types="node" />
|
|
242
242
|
import { EncodingType, BytesType } from '@ocap/util';
|
|
243
243
|
import { DidType, DIDType, DIDTypeStr, DIDTypeArg } from '@arcblock/did';
|
|
244
|
-
declare type KeyPairType = {
|
|
245
|
-
sk?:
|
|
246
|
-
pk?:
|
|
244
|
+
declare type KeyPairType<T extends BytesType = string> = {
|
|
245
|
+
sk?: T;
|
|
246
|
+
pk?: T;
|
|
247
247
|
address?: string;
|
|
248
248
|
};
|
|
249
249
|
export declare type SerializedWallet = {
|
|
@@ -252,26 +252,26 @@ export declare type SerializedWallet = {
|
|
|
252
252
|
sk: string;
|
|
253
253
|
address: string;
|
|
254
254
|
};
|
|
255
|
-
export interface WalletObject {
|
|
255
|
+
export interface WalletObject<T extends BytesType = string> {
|
|
256
256
|
type: DIDType;
|
|
257
|
-
secretKey:
|
|
258
|
-
publicKey:
|
|
257
|
+
secretKey: T;
|
|
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: T, round?: number, encoding?: 'hex'): string;
|
|
261
|
+
hash(data: T, round?: number, encoding?: 'base16'): string;
|
|
262
|
+
hash(data: T, round?: number, encoding?: 'base58'): string;
|
|
263
|
+
hash(data: T, round?: number, encoding?: 'base64'): string;
|
|
264
|
+
hash(data: T, round?: number, encoding?: 'buffer'): Buffer;
|
|
265
|
+
hash(data: T, round?: number, encoding?: 'Uint8Array'): Uint8Array;
|
|
266
|
+
hash(data: T, round?: number, encoding?: EncodingType): BytesType;
|
|
267
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: 'hex'): string;
|
|
268
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: 'base16'): string;
|
|
269
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: 'base58'): string;
|
|
270
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: 'base64'): string;
|
|
271
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: 'buffer'): Buffer;
|
|
272
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: 'Uint8Array'): Uint8Array;
|
|
273
|
+
sign(data: T, hashBeforeSign?: boolean, encoding?: EncodingType): BytesType;
|
|
274
|
+
verify(data: T, signature: T, 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;
|
|
@@ -285,7 +285,7 @@ export declare const WalletType: typeof DidType;
|
|
|
285
285
|
/**
|
|
286
286
|
* Generate an wallet instance that can be used to sign a message or verify a signature
|
|
287
287
|
*/
|
|
288
|
-
export declare function Wallet(keyPair: KeyPairType
|
|
288
|
+
export declare function Wallet<T extends BytesType = string>(keyPair: KeyPairType<T>, t?: DIDTypeArg): WalletObject<T>;
|
|
289
289
|
/**
|
|
290
290
|
* Generate a wallet from secretKey
|
|
291
291
|
*
|
|
@@ -304,25 +304,25 @@ export declare function Wallet(keyPair: KeyPairType, t?: DIDTypeArg): WalletObje
|
|
|
304
304
|
* assert.equal(signature, sig, "signature should match");
|
|
305
305
|
* assert.ok(wallet.verify(message, signature), "signature should be verified");
|
|
306
306
|
*/
|
|
307
|
-
export declare function fromSecretKey(sk:
|
|
307
|
+
export declare function fromSecretKey<T extends BytesType = string>(sk: T, _type?: DIDTypeArg): WalletObject<T>;
|
|
308
308
|
/**
|
|
309
309
|
* Generate a wallet from publicKey
|
|
310
310
|
*/
|
|
311
|
-
export declare function fromPublicKey(pk:
|
|
311
|
+
export declare function fromPublicKey<T extends BytesType = string>(pk: T, _type?: DIDTypeArg): WalletObject<T>;
|
|
312
312
|
/**
|
|
313
313
|
* Generate a wallet from address (did)
|
|
314
314
|
*
|
|
315
315
|
* Since we do not know the publicKey and secretKey, this kind of wallet cannot be used for signing and verifying
|
|
316
316
|
*/
|
|
317
|
-
export declare function fromAddress(address: string): WalletObject
|
|
317
|
+
export declare function fromAddress<T extends BytesType = string>(address: string): WalletObject<T>;
|
|
318
318
|
/**
|
|
319
319
|
* Generate a wallet by generating a random secretKey
|
|
320
320
|
*/
|
|
321
|
-
export declare function fromRandom(_type?: DIDTypeArg): WalletObject
|
|
321
|
+
export declare function fromRandom<T extends BytesType = string>(_type?: DIDTypeArg): WalletObject<T>;
|
|
322
322
|
/**
|
|
323
323
|
* Generating a wallet from a serialized json presentation of another wallet
|
|
324
324
|
*/
|
|
325
|
-
export declare function fromJSON(json: SerializedWallet): WalletObject
|
|
325
|
+
export declare function fromJSON<T extends BytesType = string>(json: SerializedWallet): WalletObject<T>;
|
|
326
326
|
/**
|
|
327
327
|
* Check if an object is valid wallet object
|
|
328
328
|
*/
|
|
@@ -361,9 +361,12 @@ export declare function toStakeAddress(sender: string, receiver: string): string
|
|
|
361
361
|
* Generate an delegate address, eg: the did of the delegation
|
|
362
362
|
*/
|
|
363
363
|
export declare function toDelegateAddress(delegator: string, delegatee: string): string;
|
|
364
|
-
import type { PartialDeep } from 'type-fest';
|
|
365
364
|
import { WalletObject } from '@ocap/wallet';
|
|
366
365
|
|
|
366
|
+
type PartialDeep<T> = {
|
|
367
|
+
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
368
|
+
};
|
|
369
|
+
|
|
367
370
|
/*~ This declaration specifies that the class constructor function
|
|
368
371
|
*~ is the exported object from the file
|
|
369
372
|
*/
|
|
@@ -852,22 +855,22 @@ declare interface OcapSDK {
|
|
|
852
855
|
}
|
|
853
856
|
|
|
854
857
|
declare namespace GraphQLClient {
|
|
855
|
-
|
|
858
|
+
interface QueryResult<T> {
|
|
856
859
|
then(fn: (result: T) => any): Promise<any>;
|
|
857
860
|
catch(fn: (err: Error) => any): Promise<any>;
|
|
858
861
|
}
|
|
859
862
|
|
|
860
|
-
|
|
863
|
+
interface SubscriptionResult<T> {
|
|
861
864
|
then(fn: (result: GraphQLClient.Subscription<T>) => any): Promise<any>;
|
|
862
865
|
catch(fn: (err: Error) => any): Promise<any>;
|
|
863
866
|
}
|
|
864
867
|
|
|
865
|
-
|
|
868
|
+
interface Subscription<T> {
|
|
866
869
|
on(event: 'data', fn: (data: T) => any): this;
|
|
867
870
|
on(event: 'error', fn: (err: Error) => void): this;
|
|
868
871
|
}
|
|
869
872
|
|
|
870
|
-
|
|
873
|
+
interface TxParam<T> {
|
|
871
874
|
tx: {
|
|
872
875
|
nonce?: number;
|
|
873
876
|
from?: string;
|
|
@@ -883,30 +886,30 @@ declare namespace GraphQLClient {
|
|
|
883
886
|
signature?: string;
|
|
884
887
|
}
|
|
885
888
|
|
|
886
|
-
|
|
889
|
+
interface WalletTypeObject {
|
|
887
890
|
pk: number;
|
|
888
891
|
role: number;
|
|
889
892
|
address: number;
|
|
890
893
|
hash: number;
|
|
891
894
|
}
|
|
892
895
|
|
|
893
|
-
|
|
896
|
+
interface EncodeTxResult {
|
|
894
897
|
object: object;
|
|
895
898
|
buffer: buffer;
|
|
896
899
|
}
|
|
897
900
|
|
|
898
|
-
|
|
901
|
+
enum Direction {
|
|
899
902
|
MUTUAL,
|
|
900
903
|
ONE_WAY,
|
|
901
904
|
UNION,
|
|
902
905
|
}
|
|
903
906
|
|
|
904
|
-
|
|
907
|
+
enum EncodingType {
|
|
905
908
|
BASE16,
|
|
906
909
|
BASE58,
|
|
907
910
|
}
|
|
908
911
|
|
|
909
|
-
|
|
912
|
+
enum HashType {
|
|
910
913
|
KECCAK,
|
|
911
914
|
SHA3,
|
|
912
915
|
SHA2,
|
|
@@ -916,13 +919,13 @@ declare namespace GraphQLClient {
|
|
|
916
919
|
SHA3_512,
|
|
917
920
|
}
|
|
918
921
|
|
|
919
|
-
|
|
922
|
+
enum KeyType {
|
|
920
923
|
ED25519,
|
|
921
924
|
SECP256K1,
|
|
922
925
|
ETHEREUM,
|
|
923
926
|
}
|
|
924
927
|
|
|
925
|
-
|
|
928
|
+
enum RoleType {
|
|
926
929
|
ROLE_ACCOUNT,
|
|
927
930
|
ROLE_NODE,
|
|
928
931
|
ROLE_DEVICE,
|
|
@@ -947,7 +950,7 @@ declare namespace GraphQLClient {
|
|
|
947
950
|
ROLE_ANY,
|
|
948
951
|
}
|
|
949
952
|
|
|
950
|
-
|
|
953
|
+
enum StatusCode {
|
|
951
954
|
OK,
|
|
952
955
|
INVALID_NONCE,
|
|
953
956
|
INVALID_SIGNATURE,
|
|
@@ -1025,7 +1028,7 @@ declare namespace GraphQLClient {
|
|
|
1025
1028
|
TIMEOUT,
|
|
1026
1029
|
}
|
|
1027
1030
|
|
|
1028
|
-
|
|
1031
|
+
enum UpgradeAction {
|
|
1029
1032
|
VERIFY,
|
|
1030
1033
|
BACKUP,
|
|
1031
1034
|
REPLACE,
|
|
@@ -1040,7 +1043,7 @@ declare namespace GraphQLClient {
|
|
|
1040
1043
|
DROP_ADDRESS_BOOK,
|
|
1041
1044
|
}
|
|
1042
1045
|
|
|
1043
|
-
|
|
1046
|
+
enum UpgradeType {
|
|
1044
1047
|
CONFIG_APP,
|
|
1045
1048
|
CONFIG_FORGE,
|
|
1046
1049
|
CONFIG_DFS,
|
|
@@ -1053,100 +1056,100 @@ declare namespace GraphQLClient {
|
|
|
1053
1056
|
EXE_P2P,
|
|
1054
1057
|
}
|
|
1055
1058
|
|
|
1056
|
-
|
|
1059
|
+
enum Validity {
|
|
1057
1060
|
BOTH,
|
|
1058
1061
|
VALID,
|
|
1059
1062
|
INVALID,
|
|
1060
1063
|
}
|
|
1061
1064
|
|
|
1062
|
-
|
|
1065
|
+
interface AccountFilterInput {}
|
|
1063
1066
|
|
|
1064
|
-
|
|
1067
|
+
interface AddressFilterInput {}
|
|
1065
1068
|
|
|
1066
|
-
|
|
1069
|
+
interface AssetFilterInput {}
|
|
1067
1070
|
|
|
1068
|
-
|
|
1071
|
+
interface FactoryFilterInput {}
|
|
1069
1072
|
|
|
1070
|
-
|
|
1073
|
+
interface PageInput {}
|
|
1071
1074
|
|
|
1072
|
-
|
|
1075
|
+
interface PageOrderInput {}
|
|
1073
1076
|
|
|
1074
|
-
|
|
1077
|
+
interface RangeFilterInput {}
|
|
1075
1078
|
|
|
1076
|
-
|
|
1079
|
+
interface RequestGetAccountTokensInput {}
|
|
1077
1080
|
|
|
1078
|
-
|
|
1081
|
+
interface RequestGetBlockInput {}
|
|
1079
1082
|
|
|
1080
|
-
|
|
1083
|
+
interface RequestGetBlocksInput {}
|
|
1081
1084
|
|
|
1082
|
-
|
|
1085
|
+
interface RequestGetConfigInput {}
|
|
1083
1086
|
|
|
1084
|
-
|
|
1087
|
+
interface RequestGetEvidenceStateInput {}
|
|
1085
1088
|
|
|
1086
|
-
|
|
1089
|
+
interface RequestGetRollupBlockInput {}
|
|
1087
1090
|
|
|
1088
|
-
|
|
1091
|
+
interface RequestGetStateInput {}
|
|
1089
1092
|
|
|
1090
|
-
|
|
1093
|
+
interface RequestGetTxInput {}
|
|
1091
1094
|
|
|
1092
|
-
|
|
1095
|
+
interface RequestListAssetTransactionsInput {}
|
|
1093
1096
|
|
|
1094
|
-
|
|
1097
|
+
interface RequestListAssetsInput {}
|
|
1095
1098
|
|
|
1096
|
-
|
|
1099
|
+
interface RequestListBlocksInput {}
|
|
1097
1100
|
|
|
1098
|
-
|
|
1101
|
+
interface RequestListFactoriesInput {}
|
|
1099
1102
|
|
|
1100
|
-
|
|
1103
|
+
interface RequestListRollupBlocksInput {}
|
|
1101
1104
|
|
|
1102
|
-
|
|
1105
|
+
interface RequestListRollupValidatorsInput {}
|
|
1103
1106
|
|
|
1104
|
-
|
|
1107
|
+
interface RequestListRollupsInput {}
|
|
1105
1108
|
|
|
1106
|
-
|
|
1109
|
+
interface RequestListStakesInput {}
|
|
1107
1110
|
|
|
1108
|
-
|
|
1111
|
+
interface RequestListTokensInput {}
|
|
1109
1112
|
|
|
1110
|
-
|
|
1113
|
+
interface RequestListTopAccountsInput {}
|
|
1111
1114
|
|
|
1112
|
-
|
|
1115
|
+
interface RequestListTransactionsInput {}
|
|
1113
1116
|
|
|
1114
|
-
|
|
1117
|
+
interface RequestSearchInput {}
|
|
1115
1118
|
|
|
1116
|
-
|
|
1119
|
+
interface RequestSendTxInput {}
|
|
1117
1120
|
|
|
1118
|
-
|
|
1121
|
+
interface RollupFilterInput {}
|
|
1119
1122
|
|
|
1120
|
-
|
|
1123
|
+
interface TimeFilterInput {}
|
|
1121
1124
|
|
|
1122
|
-
|
|
1125
|
+
interface TokenFilterInput {}
|
|
1123
1126
|
|
|
1124
|
-
|
|
1127
|
+
interface TxFilterInput {}
|
|
1125
1128
|
|
|
1126
|
-
|
|
1129
|
+
interface TypeFilterInput {}
|
|
1127
1130
|
|
|
1128
|
-
|
|
1131
|
+
interface ValidatorFilterInput {}
|
|
1129
1132
|
|
|
1130
|
-
|
|
1133
|
+
interface ValidityFilterInput {}
|
|
1131
1134
|
|
|
1132
|
-
|
|
1135
|
+
interface WalletInfoInput {}
|
|
1133
1136
|
|
|
1134
|
-
|
|
1137
|
+
interface WalletTypeInput {}
|
|
1135
1138
|
|
|
1136
|
-
|
|
1139
|
+
interface AccountConfig {
|
|
1137
1140
|
address: string;
|
|
1138
1141
|
pk: string;
|
|
1139
1142
|
balance: string;
|
|
1140
1143
|
}
|
|
1141
1144
|
|
|
1142
|
-
|
|
1145
|
+
interface AccountMigrateTx {
|
|
1143
1146
|
pk: string;
|
|
1144
1147
|
type: GraphQLClient.WalletType;
|
|
1145
1148
|
address: string;
|
|
1146
1149
|
data: GraphQLClient.Any;
|
|
1147
1150
|
}
|
|
1148
1151
|
|
|
1149
|
-
|
|
1152
|
+
interface AccountState {
|
|
1150
1153
|
balance: string;
|
|
1151
1154
|
nonce: string;
|
|
1152
1155
|
numTxs: string;
|
|
@@ -1157,78 +1160,78 @@ declare namespace GraphQLClient {
|
|
|
1157
1160
|
context: GraphQLClient.StateContext;
|
|
1158
1161
|
issuer: string;
|
|
1159
1162
|
gasBalance: string;
|
|
1160
|
-
migratedTo:
|
|
1161
|
-
migratedFrom:
|
|
1163
|
+
migratedTo: string[];
|
|
1164
|
+
migratedFrom: string[];
|
|
1162
1165
|
numAssets: string;
|
|
1163
|
-
tokens:
|
|
1166
|
+
tokens: GraphQLClient.IndexedTokenInput[];
|
|
1164
1167
|
data: GraphQLClient.Any;
|
|
1165
1168
|
}
|
|
1166
1169
|
|
|
1167
|
-
|
|
1170
|
+
interface AccountToken {
|
|
1168
1171
|
address: string;
|
|
1169
1172
|
symbol: string;
|
|
1170
1173
|
balance: string;
|
|
1171
1174
|
decimal: number;
|
|
1172
1175
|
}
|
|
1173
1176
|
|
|
1174
|
-
|
|
1177
|
+
interface AcquireAssetV2Tx {
|
|
1175
1178
|
factory: string;
|
|
1176
1179
|
address: string;
|
|
1177
|
-
assets:
|
|
1178
|
-
variables:
|
|
1180
|
+
assets: string[];
|
|
1181
|
+
variables: GraphQLClient.VariableInput[];
|
|
1179
1182
|
issuer: GraphQLClient.NFTIssuer;
|
|
1180
1183
|
data: GraphQLClient.Any;
|
|
1181
1184
|
}
|
|
1182
1185
|
|
|
1183
|
-
|
|
1186
|
+
interface AcquireAssetV3Tx {
|
|
1184
1187
|
factory: string;
|
|
1185
1188
|
address: string;
|
|
1186
|
-
inputs:
|
|
1189
|
+
inputs: GraphQLClient.TransactionInput[];
|
|
1187
1190
|
owner: string;
|
|
1188
|
-
variables:
|
|
1191
|
+
variables: GraphQLClient.VariableInput[];
|
|
1189
1192
|
issuer: GraphQLClient.NFTIssuer;
|
|
1190
1193
|
data: GraphQLClient.Any;
|
|
1191
1194
|
}
|
|
1192
1195
|
|
|
1193
|
-
|
|
1196
|
+
interface Any {
|
|
1194
1197
|
typeUrl: string;
|
|
1195
1198
|
value: string;
|
|
1196
1199
|
}
|
|
1197
1200
|
|
|
1198
|
-
|
|
1201
|
+
interface AssetFactoryHook {
|
|
1199
1202
|
name: string;
|
|
1200
1203
|
type: string;
|
|
1201
1204
|
hook: string;
|
|
1202
1205
|
}
|
|
1203
1206
|
|
|
1204
|
-
|
|
1207
|
+
interface AssetFactoryInput {
|
|
1205
1208
|
value: string;
|
|
1206
|
-
tokens:
|
|
1207
|
-
assets:
|
|
1208
|
-
variables:
|
|
1209
|
+
tokens: GraphQLClient.TokenInput[];
|
|
1210
|
+
assets: string[];
|
|
1211
|
+
variables: GraphQLClient.VariableInput[];
|
|
1209
1212
|
}
|
|
1210
1213
|
|
|
1211
|
-
|
|
1214
|
+
interface AssetFactoryState {
|
|
1212
1215
|
address: string;
|
|
1213
1216
|
owner: string;
|
|
1214
1217
|
name: string;
|
|
1215
1218
|
description: string;
|
|
1216
1219
|
settlement: string;
|
|
1217
1220
|
limit: number;
|
|
1218
|
-
trustedIssuers:
|
|
1221
|
+
trustedIssuers: string[];
|
|
1219
1222
|
input: GraphQLClient.IndexedFactoryInput;
|
|
1220
1223
|
output: GraphQLClient.CreateAssetTx;
|
|
1221
|
-
hooks:
|
|
1224
|
+
hooks: GraphQLClient.AssetFactoryHook[];
|
|
1222
1225
|
data: GraphQLClient.Any;
|
|
1223
1226
|
context: GraphQLClient.StateContext;
|
|
1224
1227
|
balance: string;
|
|
1225
|
-
tokens:
|
|
1228
|
+
tokens: GraphQLClient.IndexedTokenInput[];
|
|
1226
1229
|
numMinted: number;
|
|
1227
1230
|
display: GraphQLClient.NFTDisplay;
|
|
1228
1231
|
lastSettlement: string;
|
|
1229
1232
|
}
|
|
1230
1233
|
|
|
1231
|
-
|
|
1234
|
+
interface AssetState {
|
|
1232
1235
|
address: string;
|
|
1233
1236
|
owner: string;
|
|
1234
1237
|
moniker: string;
|
|
@@ -1240,27 +1243,27 @@ declare namespace GraphQLClient {
|
|
|
1240
1243
|
parent: string;
|
|
1241
1244
|
endpoint: GraphQLClient.NFTEndpoint;
|
|
1242
1245
|
display: GraphQLClient.NFTDisplay;
|
|
1243
|
-
tags:
|
|
1246
|
+
tags: string[];
|
|
1244
1247
|
context: GraphQLClient.StateContext;
|
|
1245
1248
|
data: GraphQLClient.Any;
|
|
1246
1249
|
}
|
|
1247
1250
|
|
|
1248
|
-
|
|
1251
|
+
interface BlockID {
|
|
1249
1252
|
hash: string;
|
|
1250
1253
|
partsHeader: GraphQLClient.PartSetHeader;
|
|
1251
1254
|
}
|
|
1252
1255
|
|
|
1253
|
-
|
|
1256
|
+
interface BlockInfo {
|
|
1254
1257
|
height: string;
|
|
1255
1258
|
numTxs: number;
|
|
1256
1259
|
time: string;
|
|
1257
1260
|
appHash: string;
|
|
1258
1261
|
proposer: string;
|
|
1259
|
-
txs:
|
|
1262
|
+
txs: GraphQLClient.TransactionInfo[];
|
|
1260
1263
|
totalTxs: string;
|
|
1261
|
-
invalidTxs:
|
|
1262
|
-
txsHashes:
|
|
1263
|
-
invalidTxsHashes:
|
|
1264
|
+
invalidTxs: GraphQLClient.TransactionInfo[];
|
|
1265
|
+
txsHashes: string[];
|
|
1266
|
+
invalidTxsHashes: string[];
|
|
1264
1267
|
consensusHash: string;
|
|
1265
1268
|
dataHash: string;
|
|
1266
1269
|
evidenceHash: string;
|
|
@@ -1272,15 +1275,15 @@ declare namespace GraphQLClient {
|
|
|
1272
1275
|
lastBlockId: GraphQLClient.BlockID;
|
|
1273
1276
|
}
|
|
1274
1277
|
|
|
1275
|
-
|
|
1278
|
+
interface BlockInfoSimple {
|
|
1276
1279
|
height: string;
|
|
1277
1280
|
numTxs: number;
|
|
1278
1281
|
time: string;
|
|
1279
1282
|
appHash: string;
|
|
1280
1283
|
proposer: string;
|
|
1281
1284
|
totalTxs: string;
|
|
1282
|
-
txsHashes:
|
|
1283
|
-
invalidTxsHashes:
|
|
1285
|
+
txsHashes: string[];
|
|
1286
|
+
invalidTxsHashes: string[];
|
|
1284
1287
|
consensusHash: string;
|
|
1285
1288
|
dataHash: string;
|
|
1286
1289
|
evidenceHash: string;
|
|
@@ -1292,7 +1295,7 @@ declare namespace GraphQLClient {
|
|
|
1292
1295
|
lastBlockId: GraphQLClient.BlockID;
|
|
1293
1296
|
}
|
|
1294
1297
|
|
|
1295
|
-
|
|
1298
|
+
interface ChainInfo {
|
|
1296
1299
|
id: string;
|
|
1297
1300
|
network: string;
|
|
1298
1301
|
moniker: string;
|
|
@@ -1306,16 +1309,16 @@ declare namespace GraphQLClient {
|
|
|
1306
1309
|
votingPower: string;
|
|
1307
1310
|
totalTxs: string;
|
|
1308
1311
|
version: string;
|
|
1309
|
-
forgeAppsVersion:
|
|
1310
|
-
supportedTxs:
|
|
1312
|
+
forgeAppsVersion: GraphQLClient.ChainInfo_ForgeAppsVersionEntry[];
|
|
1313
|
+
supportedTxs: string[];
|
|
1311
1314
|
}
|
|
1312
1315
|
|
|
1313
|
-
|
|
1316
|
+
interface ChainInfo_ForgeAppsVersionEntry {
|
|
1314
1317
|
key: string;
|
|
1315
1318
|
value: string;
|
|
1316
1319
|
}
|
|
1317
1320
|
|
|
1318
|
-
|
|
1321
|
+
interface ClaimBlockRewardTx {
|
|
1319
1322
|
rollup: string;
|
|
1320
1323
|
blockHeight: number;
|
|
1321
1324
|
blockHash: string;
|
|
@@ -1324,24 +1327,24 @@ declare namespace GraphQLClient {
|
|
|
1324
1327
|
data: GraphQLClient.Any;
|
|
1325
1328
|
}
|
|
1326
1329
|
|
|
1327
|
-
|
|
1330
|
+
interface ClaimStakeTx {
|
|
1328
1331
|
address: string;
|
|
1329
1332
|
evidence: GraphQLClient.Evidence;
|
|
1330
1333
|
data: GraphQLClient.Any;
|
|
1331
1334
|
}
|
|
1332
1335
|
|
|
1333
|
-
|
|
1336
|
+
interface ConsensusParams {
|
|
1334
1337
|
maxBytes: string;
|
|
1335
1338
|
maxGas: string;
|
|
1336
1339
|
maxValidators: number;
|
|
1337
1340
|
maxCandidates: number;
|
|
1338
|
-
pubKeyTypes:
|
|
1339
|
-
validators:
|
|
1341
|
+
pubKeyTypes: string[];
|
|
1342
|
+
validators: GraphQLClient.Validator[];
|
|
1340
1343
|
validatorChanged: boolean;
|
|
1341
1344
|
paramChanged: boolean;
|
|
1342
1345
|
}
|
|
1343
1346
|
|
|
1344
|
-
|
|
1347
|
+
interface CreateAssetTx {
|
|
1345
1348
|
moniker: string;
|
|
1346
1349
|
data: GraphQLClient.Any;
|
|
1347
1350
|
readonly: boolean;
|
|
@@ -1352,42 +1355,42 @@ declare namespace GraphQLClient {
|
|
|
1352
1355
|
issuer: string;
|
|
1353
1356
|
endpoint: GraphQLClient.NFTEndpoint;
|
|
1354
1357
|
display: GraphQLClient.NFTDisplay;
|
|
1355
|
-
tags:
|
|
1358
|
+
tags: string[];
|
|
1356
1359
|
}
|
|
1357
1360
|
|
|
1358
|
-
|
|
1361
|
+
interface CreateFactoryTx {
|
|
1359
1362
|
name: string;
|
|
1360
1363
|
description: string;
|
|
1361
1364
|
settlement: string;
|
|
1362
1365
|
limit: number;
|
|
1363
|
-
trustedIssuers:
|
|
1366
|
+
trustedIssuers: string[];
|
|
1364
1367
|
input: GraphQLClient.AssetFactoryInput;
|
|
1365
1368
|
output: GraphQLClient.CreateAssetTx;
|
|
1366
|
-
hooks:
|
|
1369
|
+
hooks: GraphQLClient.AssetFactoryHook[];
|
|
1367
1370
|
address: string;
|
|
1368
1371
|
display: GraphQLClient.NFTDisplay;
|
|
1369
1372
|
data: GraphQLClient.Any;
|
|
1370
1373
|
}
|
|
1371
1374
|
|
|
1372
|
-
|
|
1375
|
+
interface CreateRollupBlockTx {
|
|
1373
1376
|
hash: string;
|
|
1374
1377
|
height: number;
|
|
1375
1378
|
merkleRoot: string;
|
|
1376
1379
|
previousHash: string;
|
|
1377
1380
|
txsHash: string;
|
|
1378
|
-
txs:
|
|
1381
|
+
txs: string[];
|
|
1379
1382
|
proposer: string;
|
|
1380
|
-
signatures:
|
|
1383
|
+
signatures: GraphQLClient.Multisig[];
|
|
1381
1384
|
rollup: string;
|
|
1382
1385
|
minReward: string;
|
|
1383
1386
|
data: GraphQLClient.Any;
|
|
1384
1387
|
}
|
|
1385
1388
|
|
|
1386
|
-
|
|
1389
|
+
interface CreateRollupTx {
|
|
1387
1390
|
address: string;
|
|
1388
1391
|
tokenAddress: string;
|
|
1389
1392
|
contractAddress: string;
|
|
1390
|
-
seedValidators:
|
|
1393
|
+
seedValidators: GraphQLClient.RollupValidator[];
|
|
1391
1394
|
minStakeAmount: string;
|
|
1392
1395
|
maxStakeAmount: string;
|
|
1393
1396
|
minSignerCount: number;
|
|
@@ -1417,7 +1420,7 @@ declare namespace GraphQLClient {
|
|
|
1417
1420
|
data: GraphQLClient.Any;
|
|
1418
1421
|
}
|
|
1419
1422
|
|
|
1420
|
-
|
|
1423
|
+
interface CreateTokenTx {
|
|
1421
1424
|
name: string;
|
|
1422
1425
|
description: string;
|
|
1423
1426
|
symbol: string;
|
|
@@ -1431,23 +1434,23 @@ declare namespace GraphQLClient {
|
|
|
1431
1434
|
data: GraphQLClient.Any;
|
|
1432
1435
|
}
|
|
1433
1436
|
|
|
1434
|
-
|
|
1437
|
+
interface DeclareTx {
|
|
1435
1438
|
moniker: string;
|
|
1436
1439
|
issuer: string;
|
|
1437
1440
|
data: GraphQLClient.Any;
|
|
1438
1441
|
}
|
|
1439
1442
|
|
|
1440
|
-
|
|
1443
|
+
interface DelegateConfig {
|
|
1441
1444
|
deltaInterval: number;
|
|
1442
|
-
typeUrls:
|
|
1445
|
+
typeUrls: string[];
|
|
1443
1446
|
}
|
|
1444
1447
|
|
|
1445
|
-
|
|
1448
|
+
interface DelegateOp {
|
|
1446
1449
|
typeUrl: string;
|
|
1447
|
-
rules:
|
|
1450
|
+
rules: string[];
|
|
1448
1451
|
}
|
|
1449
1452
|
|
|
1450
|
-
|
|
1453
|
+
interface DelegateOpState {
|
|
1451
1454
|
rule: string;
|
|
1452
1455
|
numTxs: number;
|
|
1453
1456
|
numTxsDelta: number;
|
|
@@ -1455,26 +1458,26 @@ declare namespace GraphQLClient {
|
|
|
1455
1458
|
balanceDelta: string;
|
|
1456
1459
|
}
|
|
1457
1460
|
|
|
1458
|
-
|
|
1461
|
+
interface DelegateState {
|
|
1459
1462
|
address: string;
|
|
1460
|
-
ops:
|
|
1463
|
+
ops: GraphQLClient.DelegateState_OpsEntry[];
|
|
1461
1464
|
context: GraphQLClient.StateContext;
|
|
1462
1465
|
data: GraphQLClient.Any;
|
|
1463
1466
|
}
|
|
1464
1467
|
|
|
1465
|
-
|
|
1468
|
+
interface DelegateState_OpsEntry {
|
|
1466
1469
|
key: string;
|
|
1467
1470
|
value: GraphQLClient.DelegateOpState;
|
|
1468
1471
|
}
|
|
1469
1472
|
|
|
1470
|
-
|
|
1473
|
+
interface DelegateTx {
|
|
1471
1474
|
address: string;
|
|
1472
1475
|
to: string;
|
|
1473
|
-
ops:
|
|
1476
|
+
ops: GraphQLClient.DelegateOp[];
|
|
1474
1477
|
data: GraphQLClient.Any;
|
|
1475
1478
|
}
|
|
1476
1479
|
|
|
1477
|
-
|
|
1480
|
+
interface DepositTokenV2Tx {
|
|
1478
1481
|
token: GraphQLClient.TokenInput;
|
|
1479
1482
|
to: string;
|
|
1480
1483
|
proposer: string;
|
|
@@ -1484,28 +1487,28 @@ declare namespace GraphQLClient {
|
|
|
1484
1487
|
data: GraphQLClient.Any;
|
|
1485
1488
|
}
|
|
1486
1489
|
|
|
1487
|
-
|
|
1490
|
+
interface Evidence {
|
|
1488
1491
|
hash: string;
|
|
1489
1492
|
}
|
|
1490
1493
|
|
|
1491
|
-
|
|
1494
|
+
interface EvidenceState {
|
|
1492
1495
|
hash: string;
|
|
1493
1496
|
data: string;
|
|
1494
1497
|
context: GraphQLClient.StateContext;
|
|
1495
1498
|
}
|
|
1496
1499
|
|
|
1497
|
-
|
|
1500
|
+
interface ExchangeInfo {
|
|
1498
1501
|
value: string;
|
|
1499
|
-
assets:
|
|
1502
|
+
assets: string[];
|
|
1500
1503
|
}
|
|
1501
1504
|
|
|
1502
|
-
|
|
1505
|
+
interface ExchangeInfoV2 {
|
|
1503
1506
|
value: string;
|
|
1504
|
-
assets:
|
|
1505
|
-
tokens:
|
|
1507
|
+
assets: string[];
|
|
1508
|
+
tokens: GraphQLClient.TokenInput[];
|
|
1506
1509
|
}
|
|
1507
1510
|
|
|
1508
|
-
|
|
1511
|
+
interface ExchangeTx {
|
|
1509
1512
|
to: string;
|
|
1510
1513
|
sender: GraphQLClient.ExchangeInfo;
|
|
1511
1514
|
receiver: GraphQLClient.ExchangeInfo;
|
|
@@ -1513,7 +1516,7 @@ declare namespace GraphQLClient {
|
|
|
1513
1516
|
data: GraphQLClient.Any;
|
|
1514
1517
|
}
|
|
1515
1518
|
|
|
1516
|
-
|
|
1519
|
+
interface ExchangeV2Tx {
|
|
1517
1520
|
to: string;
|
|
1518
1521
|
sender: GraphQLClient.ExchangeInfoV2;
|
|
1519
1522
|
receiver: GraphQLClient.ExchangeInfoV2;
|
|
@@ -1521,7 +1524,7 @@ declare namespace GraphQLClient {
|
|
|
1521
1524
|
data: GraphQLClient.Any;
|
|
1522
1525
|
}
|
|
1523
1526
|
|
|
1524
|
-
|
|
1527
|
+
interface ForeignToken {
|
|
1525
1528
|
type: string;
|
|
1526
1529
|
contractAddress: string;
|
|
1527
1530
|
chainType: string;
|
|
@@ -1529,46 +1532,46 @@ declare namespace GraphQLClient {
|
|
|
1529
1532
|
chainId: number;
|
|
1530
1533
|
}
|
|
1531
1534
|
|
|
1532
|
-
|
|
1535
|
+
interface ForgeState {
|
|
1533
1536
|
address: string;
|
|
1534
1537
|
consensus: GraphQLClient.ConsensusParams;
|
|
1535
|
-
tasks:
|
|
1538
|
+
tasks: GraphQLClient.ForgeState_TasksEntry[];
|
|
1536
1539
|
version: string;
|
|
1537
1540
|
token: GraphQLClient.ForgeToken;
|
|
1538
1541
|
txConfig: GraphQLClient.TransactionConfig;
|
|
1539
1542
|
upgradeInfo: GraphQLClient.UpgradeInfo;
|
|
1540
|
-
accountConfig:
|
|
1543
|
+
accountConfig: GraphQLClient.AccountConfig[];
|
|
1541
1544
|
data: GraphQLClient.Any;
|
|
1542
1545
|
}
|
|
1543
1546
|
|
|
1544
|
-
|
|
1547
|
+
interface ForgeState_TasksEntry {
|
|
1545
1548
|
key: number;
|
|
1546
1549
|
value: GraphQLClient.UpgradeTasks;
|
|
1547
1550
|
}
|
|
1548
1551
|
|
|
1549
|
-
|
|
1550
|
-
numBlocks:
|
|
1551
|
-
numTxs:
|
|
1552
|
-
numStakes:
|
|
1553
|
-
numValidators:
|
|
1554
|
-
numAccountMigrateTxs:
|
|
1555
|
-
numCreateAssetTxs:
|
|
1556
|
-
numConsensusUpgradeTxs:
|
|
1557
|
-
numDeclareTxs:
|
|
1558
|
-
numDeclareFileTxs:
|
|
1559
|
-
numExchangeTxs:
|
|
1560
|
-
numStakeTxs:
|
|
1561
|
-
numSysUpgradeTxs:
|
|
1562
|
-
numTransferTxs:
|
|
1563
|
-
numUpdateAssetTxs:
|
|
1564
|
-
numConsumeAssetTxs:
|
|
1565
|
-
tps:
|
|
1552
|
+
interface ForgeStats {
|
|
1553
|
+
numBlocks: string[];
|
|
1554
|
+
numTxs: string[];
|
|
1555
|
+
numStakes: string[];
|
|
1556
|
+
numValidators: number[];
|
|
1557
|
+
numAccountMigrateTxs: string[];
|
|
1558
|
+
numCreateAssetTxs: string[];
|
|
1559
|
+
numConsensusUpgradeTxs: number[];
|
|
1560
|
+
numDeclareTxs: string[];
|
|
1561
|
+
numDeclareFileTxs: string[];
|
|
1562
|
+
numExchangeTxs: string[];
|
|
1563
|
+
numStakeTxs: string[];
|
|
1564
|
+
numSysUpgradeTxs: number[];
|
|
1565
|
+
numTransferTxs: string[];
|
|
1566
|
+
numUpdateAssetTxs: string[];
|
|
1567
|
+
numConsumeAssetTxs: string[];
|
|
1568
|
+
tps: number[];
|
|
1566
1569
|
maxTps: number;
|
|
1567
1570
|
avgTps: number;
|
|
1568
1571
|
avgBlockTime: number;
|
|
1569
1572
|
}
|
|
1570
1573
|
|
|
1571
|
-
|
|
1574
|
+
interface ForgeToken {
|
|
1572
1575
|
name: string;
|
|
1573
1576
|
symbol: string;
|
|
1574
1577
|
unit: string;
|
|
@@ -1581,14 +1584,14 @@ declare namespace GraphQLClient {
|
|
|
1581
1584
|
address: string;
|
|
1582
1585
|
}
|
|
1583
1586
|
|
|
1584
|
-
|
|
1587
|
+
interface GeoInfo {
|
|
1585
1588
|
city: string;
|
|
1586
1589
|
country: string;
|
|
1587
1590
|
latitude: number;
|
|
1588
1591
|
longitude: number;
|
|
1589
1592
|
}
|
|
1590
1593
|
|
|
1591
|
-
|
|
1594
|
+
interface IndexedAccountState {
|
|
1592
1595
|
address: string;
|
|
1593
1596
|
balance: string;
|
|
1594
1597
|
numAssets: string;
|
|
@@ -1602,11 +1605,11 @@ declare namespace GraphQLClient {
|
|
|
1602
1605
|
totalReceivedStakes: string;
|
|
1603
1606
|
totalStakes: string;
|
|
1604
1607
|
totalUnstakes: string;
|
|
1605
|
-
recentNumTxs:
|
|
1606
|
-
tokens:
|
|
1608
|
+
recentNumTxs: string[];
|
|
1609
|
+
tokens: GraphQLClient.TokenInfo[];
|
|
1607
1610
|
}
|
|
1608
1611
|
|
|
1609
|
-
|
|
1612
|
+
interface IndexedAssetState {
|
|
1610
1613
|
address: string;
|
|
1611
1614
|
owner: string;
|
|
1612
1615
|
genesisTime: string;
|
|
@@ -1620,11 +1623,11 @@ declare namespace GraphQLClient {
|
|
|
1620
1623
|
ttl: string;
|
|
1621
1624
|
display: GraphQLClient.NFTDisplay;
|
|
1622
1625
|
endpoint: GraphQLClient.NFTEndpoint;
|
|
1623
|
-
tags:
|
|
1626
|
+
tags: string[];
|
|
1624
1627
|
data: GraphQLClient.Any;
|
|
1625
1628
|
}
|
|
1626
1629
|
|
|
1627
|
-
|
|
1630
|
+
interface IndexedBlock {
|
|
1628
1631
|
height: string;
|
|
1629
1632
|
time: string;
|
|
1630
1633
|
proposer: string;
|
|
@@ -1632,27 +1635,27 @@ declare namespace GraphQLClient {
|
|
|
1632
1635
|
numInvalidTxs: string;
|
|
1633
1636
|
}
|
|
1634
1637
|
|
|
1635
|
-
|
|
1638
|
+
interface IndexedFactoryInput {
|
|
1636
1639
|
value: string;
|
|
1637
|
-
tokens:
|
|
1638
|
-
assets:
|
|
1639
|
-
variables:
|
|
1640
|
+
tokens: GraphQLClient.IndexedTokenInput[];
|
|
1641
|
+
assets: string[];
|
|
1642
|
+
variables: GraphQLClient.VariableInput[];
|
|
1640
1643
|
}
|
|
1641
1644
|
|
|
1642
|
-
|
|
1645
|
+
interface IndexedFactoryState {
|
|
1643
1646
|
address: string;
|
|
1644
1647
|
owner: string;
|
|
1645
1648
|
name: string;
|
|
1646
1649
|
description: string;
|
|
1647
1650
|
settlement: string;
|
|
1648
1651
|
limit: string;
|
|
1649
|
-
trustedIssuers:
|
|
1652
|
+
trustedIssuers: string[];
|
|
1650
1653
|
input: GraphQLClient.IndexedFactoryInput;
|
|
1651
1654
|
output: GraphQLClient.CreateAssetTx;
|
|
1652
|
-
hooks:
|
|
1655
|
+
hooks: GraphQLClient.AssetFactoryHook[];
|
|
1653
1656
|
data: GraphQLClient.Any;
|
|
1654
1657
|
balance: string;
|
|
1655
|
-
tokens:
|
|
1658
|
+
tokens: GraphQLClient.TokenInfo[];
|
|
1656
1659
|
numMinted: number;
|
|
1657
1660
|
lastSettlement: string;
|
|
1658
1661
|
genesisTime: string;
|
|
@@ -1660,15 +1663,15 @@ declare namespace GraphQLClient {
|
|
|
1660
1663
|
display: GraphQLClient.NFTDisplay;
|
|
1661
1664
|
}
|
|
1662
1665
|
|
|
1663
|
-
|
|
1666
|
+
interface IndexedRollupBlock {
|
|
1664
1667
|
hash: string;
|
|
1665
1668
|
height: number;
|
|
1666
1669
|
merkleRoot: string;
|
|
1667
1670
|
previousHash: string;
|
|
1668
1671
|
txsHash: string;
|
|
1669
|
-
txs:
|
|
1672
|
+
txs: string[];
|
|
1670
1673
|
proposer: string;
|
|
1671
|
-
signatures:
|
|
1674
|
+
signatures: GraphQLClient.Multisig[];
|
|
1672
1675
|
genesisTime: string;
|
|
1673
1676
|
renaissanceTime: string;
|
|
1674
1677
|
rollup: string;
|
|
@@ -1679,12 +1682,12 @@ declare namespace GraphQLClient {
|
|
|
1679
1682
|
data: GraphQLClient.Any;
|
|
1680
1683
|
}
|
|
1681
1684
|
|
|
1682
|
-
|
|
1685
|
+
interface IndexedRollupState {
|
|
1683
1686
|
address: string;
|
|
1684
1687
|
tokenAddress: string;
|
|
1685
1688
|
contractAddress: string;
|
|
1686
|
-
seedValidators:
|
|
1687
|
-
validators:
|
|
1689
|
+
seedValidators: GraphQLClient.RollupValidator[];
|
|
1690
|
+
validators: GraphQLClient.RollupValidator[];
|
|
1688
1691
|
minStakeAmount: string;
|
|
1689
1692
|
maxStakeAmount: string;
|
|
1690
1693
|
minSignerCount: number;
|
|
@@ -1718,11 +1721,11 @@ declare namespace GraphQLClient {
|
|
|
1718
1721
|
publisherFeeShare: number;
|
|
1719
1722
|
publishWaitingPeriod: number;
|
|
1720
1723
|
publishSlashRate: number;
|
|
1721
|
-
migrateHistory:
|
|
1724
|
+
migrateHistory: string[];
|
|
1722
1725
|
data: GraphQLClient.Any;
|
|
1723
1726
|
}
|
|
1724
1727
|
|
|
1725
|
-
|
|
1728
|
+
interface IndexedRollupValidator {
|
|
1726
1729
|
pk: string;
|
|
1727
1730
|
address: string;
|
|
1728
1731
|
moniker: string;
|
|
@@ -1742,23 +1745,23 @@ declare namespace GraphQLClient {
|
|
|
1742
1745
|
rollup: string;
|
|
1743
1746
|
}
|
|
1744
1747
|
|
|
1745
|
-
|
|
1748
|
+
interface IndexedStakeState {
|
|
1746
1749
|
address: string;
|
|
1747
1750
|
sender: string;
|
|
1748
1751
|
receiver: string;
|
|
1749
|
-
tokens:
|
|
1750
|
-
assets:
|
|
1752
|
+
tokens: GraphQLClient.TokenInfo[];
|
|
1753
|
+
assets: string[];
|
|
1751
1754
|
revocable: boolean;
|
|
1752
1755
|
genesisTime: string;
|
|
1753
1756
|
renaissanceTime: string;
|
|
1754
1757
|
message: string;
|
|
1755
1758
|
revokeWaitingPeriod: number;
|
|
1756
|
-
revokedTokens:
|
|
1757
|
-
revokedAssets:
|
|
1759
|
+
revokedTokens: GraphQLClient.TokenInfo[];
|
|
1760
|
+
revokedAssets: string[];
|
|
1758
1761
|
data: GraphQLClient.Any;
|
|
1759
1762
|
}
|
|
1760
1763
|
|
|
1761
|
-
|
|
1764
|
+
interface IndexedTokenInput {
|
|
1762
1765
|
address: string;
|
|
1763
1766
|
value: string;
|
|
1764
1767
|
decimal: number;
|
|
@@ -1766,7 +1769,7 @@ declare namespace GraphQLClient {
|
|
|
1766
1769
|
symbol: string;
|
|
1767
1770
|
}
|
|
1768
1771
|
|
|
1769
|
-
|
|
1772
|
+
interface IndexedTokenState {
|
|
1770
1773
|
name: string;
|
|
1771
1774
|
description: string;
|
|
1772
1775
|
symbol: string;
|
|
@@ -1782,7 +1785,7 @@ declare namespace GraphQLClient {
|
|
|
1782
1785
|
data: GraphQLClient.Any;
|
|
1783
1786
|
}
|
|
1784
1787
|
|
|
1785
|
-
|
|
1788
|
+
interface IndexedTransaction {
|
|
1786
1789
|
hash: string;
|
|
1787
1790
|
sender: string;
|
|
1788
1791
|
receiver: string;
|
|
@@ -1791,37 +1794,37 @@ declare namespace GraphQLClient {
|
|
|
1791
1794
|
tx: GraphQLClient.Transaction;
|
|
1792
1795
|
valid: boolean;
|
|
1793
1796
|
code: string;
|
|
1794
|
-
tokenSymbols:
|
|
1795
|
-
receipts:
|
|
1797
|
+
tokenSymbols: GraphQLClient.TokenSymbol[];
|
|
1798
|
+
receipts: GraphQLClient.TransactionReceipt[];
|
|
1796
1799
|
}
|
|
1797
1800
|
|
|
1798
|
-
|
|
1801
|
+
interface JoinRollupTx {
|
|
1799
1802
|
rollup: string;
|
|
1800
1803
|
endpoint: string;
|
|
1801
1804
|
evidence: GraphQLClient.Evidence;
|
|
1802
|
-
signatures:
|
|
1805
|
+
signatures: GraphQLClient.Multisig[];
|
|
1803
1806
|
data: GraphQLClient.Any;
|
|
1804
1807
|
}
|
|
1805
1808
|
|
|
1806
|
-
|
|
1809
|
+
interface KVPair {
|
|
1807
1810
|
key: string;
|
|
1808
1811
|
value: string;
|
|
1809
1812
|
}
|
|
1810
1813
|
|
|
1811
|
-
|
|
1814
|
+
interface LeaveRollupTx {
|
|
1812
1815
|
rollup: string;
|
|
1813
1816
|
evidence: GraphQLClient.Evidence;
|
|
1814
|
-
signatures:
|
|
1817
|
+
signatures: GraphQLClient.Multisig[];
|
|
1815
1818
|
data: GraphQLClient.Any;
|
|
1816
1819
|
}
|
|
1817
1820
|
|
|
1818
|
-
|
|
1821
|
+
interface MigrateRollupContractTx {
|
|
1819
1822
|
rollup: string;
|
|
1820
1823
|
to: string;
|
|
1821
1824
|
data: GraphQLClient.Any;
|
|
1822
1825
|
}
|
|
1823
1826
|
|
|
1824
|
-
|
|
1827
|
+
interface MigrateRollupTokenTx {
|
|
1825
1828
|
rollup: string;
|
|
1826
1829
|
from: string;
|
|
1827
1830
|
to: string;
|
|
@@ -1829,16 +1832,16 @@ declare namespace GraphQLClient {
|
|
|
1829
1832
|
data: GraphQLClient.Any;
|
|
1830
1833
|
}
|
|
1831
1834
|
|
|
1832
|
-
|
|
1835
|
+
interface MintAssetTx {
|
|
1833
1836
|
factory: string;
|
|
1834
1837
|
address: string;
|
|
1835
|
-
assets:
|
|
1836
|
-
variables:
|
|
1838
|
+
assets: string[];
|
|
1839
|
+
variables: GraphQLClient.VariableInput[];
|
|
1837
1840
|
owner: string;
|
|
1838
1841
|
data: GraphQLClient.Any;
|
|
1839
1842
|
}
|
|
1840
1843
|
|
|
1841
|
-
|
|
1844
|
+
interface Multisig {
|
|
1842
1845
|
signer: string;
|
|
1843
1846
|
pk: string;
|
|
1844
1847
|
signature: string;
|
|
@@ -1846,30 +1849,30 @@ declare namespace GraphQLClient {
|
|
|
1846
1849
|
data: GraphQLClient.Any;
|
|
1847
1850
|
}
|
|
1848
1851
|
|
|
1849
|
-
|
|
1852
|
+
interface NFTDisplay {
|
|
1850
1853
|
type: string;
|
|
1851
1854
|
content: string;
|
|
1852
1855
|
}
|
|
1853
1856
|
|
|
1854
|
-
|
|
1857
|
+
interface NFTEndpoint {
|
|
1855
1858
|
id: string;
|
|
1856
1859
|
scope: string;
|
|
1857
1860
|
}
|
|
1858
1861
|
|
|
1859
|
-
|
|
1862
|
+
interface NFTIssuer {
|
|
1860
1863
|
id: string;
|
|
1861
1864
|
pk: string;
|
|
1862
1865
|
name: string;
|
|
1863
1866
|
}
|
|
1864
1867
|
|
|
1865
|
-
|
|
1868
|
+
interface NetInfo {
|
|
1866
1869
|
listening: boolean;
|
|
1867
|
-
listeners:
|
|
1870
|
+
listeners: string[];
|
|
1868
1871
|
nPeers: number;
|
|
1869
|
-
peers:
|
|
1872
|
+
peers: GraphQLClient.PeerInfo[];
|
|
1870
1873
|
}
|
|
1871
1874
|
|
|
1872
|
-
|
|
1875
|
+
interface NodeInfo {
|
|
1873
1876
|
id: string;
|
|
1874
1877
|
network: string;
|
|
1875
1878
|
moniker: string;
|
|
@@ -1883,35 +1886,35 @@ declare namespace GraphQLClient {
|
|
|
1883
1886
|
votingPower: string;
|
|
1884
1887
|
totalTxs: string;
|
|
1885
1888
|
version: string;
|
|
1886
|
-
forgeAppsVersion:
|
|
1887
|
-
supportedTxs:
|
|
1889
|
+
forgeAppsVersion: GraphQLClient.NodeInfo_ForgeAppsVersionEntry[];
|
|
1890
|
+
supportedTxs: string[];
|
|
1888
1891
|
ip: string;
|
|
1889
1892
|
geoInfo: GraphQLClient.GeoInfo;
|
|
1890
1893
|
p2pAddress: string;
|
|
1891
1894
|
}
|
|
1892
1895
|
|
|
1893
|
-
|
|
1896
|
+
interface NodeInfo_ForgeAppsVersionEntry {
|
|
1894
1897
|
key: string;
|
|
1895
1898
|
value: string;
|
|
1896
1899
|
}
|
|
1897
1900
|
|
|
1898
|
-
|
|
1901
|
+
interface PageInfo {
|
|
1899
1902
|
cursor: string;
|
|
1900
1903
|
next: boolean;
|
|
1901
1904
|
total: number;
|
|
1902
1905
|
}
|
|
1903
1906
|
|
|
1904
|
-
|
|
1907
|
+
interface PartSetHeader {
|
|
1905
1908
|
total: number;
|
|
1906
1909
|
hash: string;
|
|
1907
1910
|
}
|
|
1908
1911
|
|
|
1909
|
-
|
|
1912
|
+
interface PauseRollupTx {
|
|
1910
1913
|
rollup: string;
|
|
1911
1914
|
data: GraphQLClient.Any;
|
|
1912
1915
|
}
|
|
1913
1916
|
|
|
1914
|
-
|
|
1917
|
+
interface PeerInfo {
|
|
1915
1918
|
id: string;
|
|
1916
1919
|
network: string;
|
|
1917
1920
|
consensusVersion: string;
|
|
@@ -1920,227 +1923,227 @@ declare namespace GraphQLClient {
|
|
|
1920
1923
|
geoInfo: GraphQLClient.GeoInfo;
|
|
1921
1924
|
}
|
|
1922
1925
|
|
|
1923
|
-
|
|
1926
|
+
interface PubKey {
|
|
1924
1927
|
type: string;
|
|
1925
1928
|
data: string;
|
|
1926
1929
|
}
|
|
1927
1930
|
|
|
1928
|
-
|
|
1931
|
+
interface ReceiptChange {
|
|
1929
1932
|
target: string;
|
|
1930
1933
|
action: string;
|
|
1931
1934
|
value: string;
|
|
1932
1935
|
}
|
|
1933
1936
|
|
|
1934
|
-
|
|
1937
|
+
interface ResponseGetAccountState {
|
|
1935
1938
|
code: string;
|
|
1936
1939
|
state: GraphQLClient.AccountState;
|
|
1937
1940
|
}
|
|
1938
1941
|
|
|
1939
|
-
|
|
1942
|
+
interface ResponseGetAccountTokens {
|
|
1940
1943
|
code: string;
|
|
1941
|
-
tokens:
|
|
1944
|
+
tokens: GraphQLClient.AccountToken[];
|
|
1942
1945
|
}
|
|
1943
1946
|
|
|
1944
|
-
|
|
1947
|
+
interface ResponseGetAssetState {
|
|
1945
1948
|
code: string;
|
|
1946
1949
|
state: GraphQLClient.AssetState;
|
|
1947
1950
|
}
|
|
1948
1951
|
|
|
1949
|
-
|
|
1952
|
+
interface ResponseGetBlock {
|
|
1950
1953
|
code: string;
|
|
1951
1954
|
block: GraphQLClient.BlockInfo;
|
|
1952
1955
|
}
|
|
1953
1956
|
|
|
1954
|
-
|
|
1957
|
+
interface ResponseGetBlocks {
|
|
1955
1958
|
code: string;
|
|
1956
1959
|
page: GraphQLClient.PageInfo;
|
|
1957
|
-
blocks:
|
|
1960
|
+
blocks: GraphQLClient.BlockInfoSimple[];
|
|
1958
1961
|
}
|
|
1959
1962
|
|
|
1960
|
-
|
|
1963
|
+
interface ResponseGetChainInfo {
|
|
1961
1964
|
code: string;
|
|
1962
1965
|
info: GraphQLClient.ChainInfo;
|
|
1963
1966
|
}
|
|
1964
1967
|
|
|
1965
|
-
|
|
1968
|
+
interface ResponseGetConfig {
|
|
1966
1969
|
code: string;
|
|
1967
1970
|
}
|
|
1968
1971
|
|
|
1969
|
-
|
|
1972
|
+
interface ResponseGetDelegateState {
|
|
1970
1973
|
code: string;
|
|
1971
1974
|
state: GraphQLClient.DelegateState;
|
|
1972
1975
|
}
|
|
1973
1976
|
|
|
1974
|
-
|
|
1977
|
+
interface ResponseGetEvidenceState {
|
|
1975
1978
|
code: string;
|
|
1976
1979
|
state: GraphQLClient.EvidenceState;
|
|
1977
1980
|
}
|
|
1978
1981
|
|
|
1979
|
-
|
|
1982
|
+
interface ResponseGetFactoryState {
|
|
1980
1983
|
code: string;
|
|
1981
1984
|
state: GraphQLClient.AssetFactoryState;
|
|
1982
1985
|
}
|
|
1983
1986
|
|
|
1984
|
-
|
|
1987
|
+
interface ResponseGetForgeState {
|
|
1985
1988
|
code: string;
|
|
1986
1989
|
state: GraphQLClient.ForgeState;
|
|
1987
1990
|
}
|
|
1988
1991
|
|
|
1989
|
-
|
|
1992
|
+
interface ResponseGetForgeStats {
|
|
1990
1993
|
code: string;
|
|
1991
1994
|
forgeStats: GraphQLClient.ForgeStats;
|
|
1992
1995
|
}
|
|
1993
1996
|
|
|
1994
|
-
|
|
1997
|
+
interface ResponseGetNetInfo {
|
|
1995
1998
|
code: string;
|
|
1996
1999
|
netInfo: GraphQLClient.NetInfo;
|
|
1997
2000
|
}
|
|
1998
2001
|
|
|
1999
|
-
|
|
2002
|
+
interface ResponseGetNodeInfo {
|
|
2000
2003
|
code: string;
|
|
2001
2004
|
info: GraphQLClient.NodeInfo;
|
|
2002
2005
|
}
|
|
2003
2006
|
|
|
2004
|
-
|
|
2007
|
+
interface ResponseGetRollupBlock {
|
|
2005
2008
|
code: string;
|
|
2006
2009
|
block: GraphQLClient.RollupBlock;
|
|
2007
2010
|
}
|
|
2008
2011
|
|
|
2009
|
-
|
|
2012
|
+
interface ResponseGetRollupState {
|
|
2010
2013
|
code: string;
|
|
2011
2014
|
state: GraphQLClient.RollupState;
|
|
2012
2015
|
}
|
|
2013
2016
|
|
|
2014
|
-
|
|
2017
|
+
interface ResponseGetStakeState {
|
|
2015
2018
|
code: string;
|
|
2016
2019
|
state: GraphQLClient.StakeState;
|
|
2017
2020
|
}
|
|
2018
2021
|
|
|
2019
|
-
|
|
2022
|
+
interface ResponseGetTokenState {
|
|
2020
2023
|
code: string;
|
|
2021
2024
|
state: GraphQLClient.TokenState;
|
|
2022
2025
|
}
|
|
2023
2026
|
|
|
2024
|
-
|
|
2027
|
+
interface ResponseGetTx {
|
|
2025
2028
|
code: string;
|
|
2026
2029
|
info: GraphQLClient.TransactionInfo;
|
|
2027
2030
|
}
|
|
2028
2031
|
|
|
2029
|
-
|
|
2032
|
+
interface ResponseGetUnconfirmedTxs {
|
|
2030
2033
|
code: string;
|
|
2031
2034
|
page: GraphQLClient.PageInfo;
|
|
2032
2035
|
unconfirmedTxs: GraphQLClient.UnconfirmedTxs;
|
|
2033
2036
|
}
|
|
2034
2037
|
|
|
2035
|
-
|
|
2038
|
+
interface ResponseGetValidatorsInfo {
|
|
2036
2039
|
code: string;
|
|
2037
2040
|
validatorsInfo: GraphQLClient.ValidatorsInfo;
|
|
2038
2041
|
}
|
|
2039
2042
|
|
|
2040
|
-
|
|
2043
|
+
interface ResponseListAssetTransactions {
|
|
2041
2044
|
code: string;
|
|
2042
2045
|
page: GraphQLClient.PageInfo;
|
|
2043
|
-
transactions:
|
|
2046
|
+
transactions: GraphQLClient.IndexedTransaction[];
|
|
2044
2047
|
}
|
|
2045
2048
|
|
|
2046
|
-
|
|
2049
|
+
interface ResponseListAssets {
|
|
2047
2050
|
code: string;
|
|
2048
2051
|
page: GraphQLClient.PageInfo;
|
|
2049
|
-
assets:
|
|
2052
|
+
assets: GraphQLClient.IndexedAssetState[];
|
|
2050
2053
|
}
|
|
2051
2054
|
|
|
2052
|
-
|
|
2055
|
+
interface ResponseListBlocks {
|
|
2053
2056
|
code: string;
|
|
2054
2057
|
page: GraphQLClient.PageInfo;
|
|
2055
|
-
blocks:
|
|
2058
|
+
blocks: GraphQLClient.IndexedBlock[];
|
|
2056
2059
|
}
|
|
2057
2060
|
|
|
2058
|
-
|
|
2061
|
+
interface ResponseListFactories {
|
|
2059
2062
|
code: string;
|
|
2060
2063
|
page: GraphQLClient.PageInfo;
|
|
2061
|
-
factories:
|
|
2064
|
+
factories: GraphQLClient.IndexedFactoryState[];
|
|
2062
2065
|
}
|
|
2063
2066
|
|
|
2064
|
-
|
|
2067
|
+
interface ResponseListRollupBlocks {
|
|
2065
2068
|
code: string;
|
|
2066
2069
|
page: GraphQLClient.PageInfo;
|
|
2067
|
-
blocks:
|
|
2070
|
+
blocks: GraphQLClient.IndexedRollupBlock[];
|
|
2068
2071
|
}
|
|
2069
2072
|
|
|
2070
|
-
|
|
2073
|
+
interface ResponseListRollupValidators {
|
|
2071
2074
|
code: string;
|
|
2072
2075
|
page: GraphQLClient.PageInfo;
|
|
2073
|
-
validators:
|
|
2076
|
+
validators: GraphQLClient.IndexedRollupValidator[];
|
|
2074
2077
|
}
|
|
2075
2078
|
|
|
2076
|
-
|
|
2079
|
+
interface ResponseListRollups {
|
|
2077
2080
|
code: string;
|
|
2078
2081
|
page: GraphQLClient.PageInfo;
|
|
2079
|
-
rollups:
|
|
2082
|
+
rollups: GraphQLClient.IndexedRollupState[];
|
|
2080
2083
|
}
|
|
2081
2084
|
|
|
2082
|
-
|
|
2085
|
+
interface ResponseListStakes {
|
|
2083
2086
|
code: string;
|
|
2084
2087
|
page: GraphQLClient.PageInfo;
|
|
2085
|
-
stakes:
|
|
2088
|
+
stakes: GraphQLClient.IndexedStakeState[];
|
|
2086
2089
|
}
|
|
2087
2090
|
|
|
2088
|
-
|
|
2091
|
+
interface ResponseListTokens {
|
|
2089
2092
|
code: string;
|
|
2090
2093
|
page: GraphQLClient.PageInfo;
|
|
2091
|
-
tokens:
|
|
2094
|
+
tokens: GraphQLClient.IndexedTokenState[];
|
|
2092
2095
|
}
|
|
2093
2096
|
|
|
2094
|
-
|
|
2097
|
+
interface ResponseListTopAccounts {
|
|
2095
2098
|
code: string;
|
|
2096
2099
|
page: GraphQLClient.PageInfo;
|
|
2097
|
-
accounts:
|
|
2100
|
+
accounts: GraphQLClient.IndexedAccountState[];
|
|
2098
2101
|
}
|
|
2099
2102
|
|
|
2100
|
-
|
|
2103
|
+
interface ResponseListTransactions {
|
|
2101
2104
|
code: string;
|
|
2102
2105
|
page: GraphQLClient.PageInfo;
|
|
2103
|
-
transactions:
|
|
2106
|
+
transactions: GraphQLClient.IndexedTransaction[];
|
|
2104
2107
|
}
|
|
2105
2108
|
|
|
2106
|
-
|
|
2109
|
+
interface ResponseSearch {
|
|
2107
2110
|
code: string;
|
|
2108
2111
|
page: GraphQLClient.PageInfo;
|
|
2109
|
-
results:
|
|
2112
|
+
results: GraphQLClient.SearchResult[];
|
|
2110
2113
|
}
|
|
2111
2114
|
|
|
2112
|
-
|
|
2115
|
+
interface ResponseSendTx {
|
|
2113
2116
|
code: string;
|
|
2114
2117
|
hash: string;
|
|
2115
2118
|
}
|
|
2116
2119
|
|
|
2117
|
-
|
|
2120
|
+
interface ResumeRollupTx {
|
|
2118
2121
|
rollup: string;
|
|
2119
2122
|
data: GraphQLClient.Any;
|
|
2120
2123
|
}
|
|
2121
2124
|
|
|
2122
|
-
|
|
2125
|
+
interface RevokeDelegateTx {
|
|
2123
2126
|
address: string;
|
|
2124
2127
|
to: string;
|
|
2125
|
-
typeUrls:
|
|
2128
|
+
typeUrls: string[];
|
|
2126
2129
|
data: GraphQLClient.Any;
|
|
2127
2130
|
}
|
|
2128
2131
|
|
|
2129
|
-
|
|
2132
|
+
interface RevokeStakeTx {
|
|
2130
2133
|
address: string;
|
|
2131
|
-
outputs:
|
|
2134
|
+
outputs: GraphQLClient.TransactionInput[];
|
|
2132
2135
|
data: GraphQLClient.Any;
|
|
2133
2136
|
}
|
|
2134
2137
|
|
|
2135
|
-
|
|
2138
|
+
interface RollupBlock {
|
|
2136
2139
|
hash: string;
|
|
2137
2140
|
height: number;
|
|
2138
2141
|
merkleRoot: string;
|
|
2139
2142
|
previousHash: string;
|
|
2140
2143
|
txsHash: string;
|
|
2141
|
-
txs:
|
|
2144
|
+
txs: string[];
|
|
2142
2145
|
proposer: string;
|
|
2143
|
-
signatures:
|
|
2146
|
+
signatures: GraphQLClient.Multisig[];
|
|
2144
2147
|
rollup: string;
|
|
2145
2148
|
mintedAmount: string;
|
|
2146
2149
|
burnedAmount: string;
|
|
@@ -2150,12 +2153,12 @@ declare namespace GraphQLClient {
|
|
|
2150
2153
|
data: GraphQLClient.Any;
|
|
2151
2154
|
}
|
|
2152
2155
|
|
|
2153
|
-
|
|
2156
|
+
interface RollupState {
|
|
2154
2157
|
address: string;
|
|
2155
2158
|
tokenAddress: string;
|
|
2156
2159
|
contractAddress: string;
|
|
2157
|
-
seedValidators:
|
|
2158
|
-
validators:
|
|
2160
|
+
seedValidators: GraphQLClient.RollupValidator[];
|
|
2161
|
+
validators: GraphQLClient.RollupValidator[];
|
|
2159
2162
|
minStakeAmount: string;
|
|
2160
2163
|
maxStakeAmount: string;
|
|
2161
2164
|
minSignerCount: number;
|
|
@@ -2187,55 +2190,55 @@ declare namespace GraphQLClient {
|
|
|
2187
2190
|
leaveWaitingPeriod: number;
|
|
2188
2191
|
publishWaitingPeriod: number;
|
|
2189
2192
|
publishSlashRate: number;
|
|
2190
|
-
migrateHistory:
|
|
2193
|
+
migrateHistory: string[];
|
|
2191
2194
|
context: GraphQLClient.StateContext;
|
|
2192
2195
|
data: GraphQLClient.Any;
|
|
2193
2196
|
}
|
|
2194
2197
|
|
|
2195
|
-
|
|
2198
|
+
interface RollupValidator {
|
|
2196
2199
|
pk: string;
|
|
2197
2200
|
address: string;
|
|
2198
2201
|
endpoint: string;
|
|
2199
2202
|
}
|
|
2200
2203
|
|
|
2201
|
-
|
|
2204
|
+
interface SearchResult {
|
|
2202
2205
|
type: string;
|
|
2203
2206
|
id: string;
|
|
2204
2207
|
}
|
|
2205
2208
|
|
|
2206
|
-
|
|
2209
|
+
interface StakeState {
|
|
2207
2210
|
address: string;
|
|
2208
2211
|
sender: string;
|
|
2209
2212
|
receiver: string;
|
|
2210
|
-
tokens:
|
|
2211
|
-
assets:
|
|
2213
|
+
tokens: GraphQLClient.IndexedTokenInput[];
|
|
2214
|
+
assets: string[];
|
|
2212
2215
|
revocable: boolean;
|
|
2213
2216
|
message: string;
|
|
2214
2217
|
revokeWaitingPeriod: number;
|
|
2215
|
-
revokedTokens:
|
|
2216
|
-
revokedAssets:
|
|
2218
|
+
revokedTokens: GraphQLClient.IndexedTokenInput[];
|
|
2219
|
+
revokedAssets: string[];
|
|
2217
2220
|
context: GraphQLClient.StateContext;
|
|
2218
2221
|
data: GraphQLClient.Any;
|
|
2219
2222
|
}
|
|
2220
2223
|
|
|
2221
|
-
|
|
2224
|
+
interface StakeTx {
|
|
2222
2225
|
address: string;
|
|
2223
2226
|
receiver: string;
|
|
2224
|
-
inputs:
|
|
2227
|
+
inputs: GraphQLClient.TransactionInput[];
|
|
2225
2228
|
locked: boolean;
|
|
2226
2229
|
message: string;
|
|
2227
2230
|
revokeWaitingPeriod: number;
|
|
2228
2231
|
data: GraphQLClient.Any;
|
|
2229
2232
|
}
|
|
2230
2233
|
|
|
2231
|
-
|
|
2234
|
+
interface StateContext {
|
|
2232
2235
|
genesisTx: GraphQLClient.TransactionInfo;
|
|
2233
2236
|
renaissanceTx: GraphQLClient.TransactionInfo;
|
|
2234
2237
|
genesisTime: string;
|
|
2235
2238
|
renaissanceTime: string;
|
|
2236
2239
|
}
|
|
2237
2240
|
|
|
2238
|
-
|
|
2241
|
+
interface TokenInfo {
|
|
2239
2242
|
address: string;
|
|
2240
2243
|
balance: string;
|
|
2241
2244
|
decimal: number;
|
|
@@ -2243,12 +2246,12 @@ declare namespace GraphQLClient {
|
|
|
2243
2246
|
symbol: string;
|
|
2244
2247
|
}
|
|
2245
2248
|
|
|
2246
|
-
|
|
2249
|
+
interface TokenInput {
|
|
2247
2250
|
address: string;
|
|
2248
2251
|
value: string;
|
|
2249
2252
|
}
|
|
2250
2253
|
|
|
2251
|
-
|
|
2254
|
+
interface TokenState {
|
|
2252
2255
|
address: string;
|
|
2253
2256
|
issuer: string;
|
|
2254
2257
|
name: string;
|
|
@@ -2263,21 +2266,21 @@ declare namespace GraphQLClient {
|
|
|
2263
2266
|
data: GraphQLClient.Any;
|
|
2264
2267
|
}
|
|
2265
2268
|
|
|
2266
|
-
|
|
2269
|
+
interface TokenSymbol {
|
|
2267
2270
|
address: string;
|
|
2268
2271
|
symbol: string;
|
|
2269
2272
|
decimal: number;
|
|
2270
2273
|
unit: string;
|
|
2271
2274
|
}
|
|
2272
2275
|
|
|
2273
|
-
|
|
2276
|
+
interface Transaction {
|
|
2274
2277
|
from: string;
|
|
2275
2278
|
delegator: string;
|
|
2276
2279
|
nonce: string;
|
|
2277
2280
|
chainId: string;
|
|
2278
2281
|
pk: string;
|
|
2279
2282
|
signature: string;
|
|
2280
|
-
signatures:
|
|
2283
|
+
signatures: GraphQLClient.Multisig[];
|
|
2281
2284
|
itxJson: undefined;
|
|
2282
2285
|
sender: string;
|
|
2283
2286
|
receiver: string;
|
|
@@ -2286,67 +2289,67 @@ declare namespace GraphQLClient {
|
|
|
2286
2289
|
gasPaid: string;
|
|
2287
2290
|
}
|
|
2288
2291
|
|
|
2289
|
-
|
|
2292
|
+
interface TransactionConfig {
|
|
2290
2293
|
maxAssetSize: number;
|
|
2291
2294
|
maxListSize: number;
|
|
2292
2295
|
maxMultisig: number;
|
|
2293
2296
|
delegate: GraphQLClient.DelegateConfig;
|
|
2294
|
-
txFee:
|
|
2297
|
+
txFee: GraphQLClient.TxFeeConfig[];
|
|
2295
2298
|
txGas: GraphQLClient.TxGasConfig;
|
|
2296
2299
|
}
|
|
2297
2300
|
|
|
2298
|
-
|
|
2301
|
+
interface TransactionInfo {
|
|
2299
2302
|
tx: GraphQLClient.Transaction;
|
|
2300
2303
|
height: string;
|
|
2301
2304
|
index: number;
|
|
2302
2305
|
hash: string;
|
|
2303
|
-
tags:
|
|
2306
|
+
tags: GraphQLClient.KVPair[];
|
|
2304
2307
|
code: string;
|
|
2305
2308
|
time: string;
|
|
2306
|
-
receipts:
|
|
2309
|
+
receipts: GraphQLClient.TransactionReceipt[];
|
|
2307
2310
|
sender: string;
|
|
2308
2311
|
receiver: string;
|
|
2309
|
-
tokenSymbols:
|
|
2312
|
+
tokenSymbols: GraphQLClient.TokenSymbol[];
|
|
2310
2313
|
}
|
|
2311
2314
|
|
|
2312
|
-
|
|
2315
|
+
interface TransactionInput {
|
|
2313
2316
|
owner: string;
|
|
2314
|
-
tokens:
|
|
2315
|
-
assets:
|
|
2317
|
+
tokens: GraphQLClient.TokenInput[];
|
|
2318
|
+
assets: string[];
|
|
2316
2319
|
}
|
|
2317
2320
|
|
|
2318
|
-
|
|
2321
|
+
interface TransactionReceipt {
|
|
2319
2322
|
address: string;
|
|
2320
|
-
changes:
|
|
2323
|
+
changes: GraphQLClient.ReceiptChange[];
|
|
2321
2324
|
}
|
|
2322
2325
|
|
|
2323
|
-
|
|
2326
|
+
interface TransferTx {
|
|
2324
2327
|
to: string;
|
|
2325
2328
|
value: string;
|
|
2326
|
-
assets:
|
|
2329
|
+
assets: string[];
|
|
2327
2330
|
data: GraphQLClient.Any;
|
|
2328
2331
|
}
|
|
2329
2332
|
|
|
2330
|
-
|
|
2333
|
+
interface TransferV2Tx {
|
|
2331
2334
|
to: string;
|
|
2332
2335
|
value: string;
|
|
2333
|
-
assets:
|
|
2334
|
-
tokens:
|
|
2336
|
+
assets: string[];
|
|
2337
|
+
tokens: GraphQLClient.TokenInput[];
|
|
2335
2338
|
data: GraphQLClient.Any;
|
|
2336
2339
|
}
|
|
2337
2340
|
|
|
2338
|
-
|
|
2339
|
-
inputs:
|
|
2340
|
-
outputs:
|
|
2341
|
+
interface TransferV3Tx {
|
|
2342
|
+
inputs: GraphQLClient.TransactionInput[];
|
|
2343
|
+
outputs: GraphQLClient.TransactionInput[];
|
|
2341
2344
|
data: GraphQLClient.Any;
|
|
2342
2345
|
}
|
|
2343
2346
|
|
|
2344
|
-
|
|
2347
|
+
interface TxFeeConfig {
|
|
2345
2348
|
typeUrl: string;
|
|
2346
2349
|
fee: string;
|
|
2347
2350
|
}
|
|
2348
2351
|
|
|
2349
|
-
|
|
2352
|
+
interface TxGasConfig {
|
|
2350
2353
|
price: number;
|
|
2351
2354
|
createState: number;
|
|
2352
2355
|
updateState: number;
|
|
@@ -2356,18 +2359,18 @@ declare namespace GraphQLClient {
|
|
|
2356
2359
|
stakeLockPeriod: number;
|
|
2357
2360
|
}
|
|
2358
2361
|
|
|
2359
|
-
|
|
2362
|
+
interface UnconfirmedTxs {
|
|
2360
2363
|
nTxs: number;
|
|
2361
|
-
txs:
|
|
2364
|
+
txs: GraphQLClient.Transaction[];
|
|
2362
2365
|
}
|
|
2363
2366
|
|
|
2364
|
-
|
|
2367
|
+
interface UpdateAssetTx {
|
|
2365
2368
|
address: string;
|
|
2366
2369
|
moniker: string;
|
|
2367
2370
|
data: GraphQLClient.Any;
|
|
2368
2371
|
}
|
|
2369
2372
|
|
|
2370
|
-
|
|
2373
|
+
interface UpdateRollupTx {
|
|
2371
2374
|
minStakeAmount: string;
|
|
2372
2375
|
maxStakeAmount: string;
|
|
2373
2376
|
minSignerCount: number;
|
|
@@ -2395,33 +2398,33 @@ declare namespace GraphQLClient {
|
|
|
2395
2398
|
data: GraphQLClient.Any;
|
|
2396
2399
|
}
|
|
2397
2400
|
|
|
2398
|
-
|
|
2401
|
+
interface UpgradeInfo {
|
|
2399
2402
|
height: string;
|
|
2400
2403
|
version: string;
|
|
2401
2404
|
}
|
|
2402
2405
|
|
|
2403
|
-
|
|
2406
|
+
interface UpgradeNodeTx {
|
|
2404
2407
|
height: number;
|
|
2405
2408
|
version: string;
|
|
2406
2409
|
override: boolean;
|
|
2407
2410
|
}
|
|
2408
2411
|
|
|
2409
|
-
|
|
2412
|
+
interface UpgradeTask {
|
|
2410
2413
|
type: GraphQLClient.UpgradeType;
|
|
2411
2414
|
dataHash: string;
|
|
2412
|
-
actions:
|
|
2415
|
+
actions: GraphQLClient.UpgradeAction[];
|
|
2413
2416
|
}
|
|
2414
2417
|
|
|
2415
|
-
|
|
2416
|
-
item:
|
|
2418
|
+
interface UpgradeTasks {
|
|
2419
|
+
item: GraphQLClient.UpgradeTask[];
|
|
2417
2420
|
}
|
|
2418
2421
|
|
|
2419
|
-
|
|
2422
|
+
interface Validator {
|
|
2420
2423
|
address: string;
|
|
2421
2424
|
power: string;
|
|
2422
2425
|
}
|
|
2423
2426
|
|
|
2424
|
-
|
|
2427
|
+
interface ValidatorInfo {
|
|
2425
2428
|
address: string;
|
|
2426
2429
|
pubKey: GraphQLClient.PubKey;
|
|
2427
2430
|
votingPower: string;
|
|
@@ -2430,31 +2433,31 @@ declare namespace GraphQLClient {
|
|
|
2430
2433
|
geoInfo: GraphQLClient.GeoInfo;
|
|
2431
2434
|
}
|
|
2432
2435
|
|
|
2433
|
-
|
|
2436
|
+
interface ValidatorsInfo {
|
|
2434
2437
|
blockHeight: string;
|
|
2435
|
-
validators:
|
|
2438
|
+
validators: GraphQLClient.ValidatorInfo[];
|
|
2436
2439
|
}
|
|
2437
2440
|
|
|
2438
|
-
|
|
2441
|
+
interface VariableInput {
|
|
2439
2442
|
name: string;
|
|
2440
2443
|
value: string;
|
|
2441
2444
|
description: string;
|
|
2442
2445
|
required: boolean;
|
|
2443
2446
|
}
|
|
2444
2447
|
|
|
2445
|
-
|
|
2448
|
+
interface Version {
|
|
2446
2449
|
block: number;
|
|
2447
2450
|
app: number;
|
|
2448
2451
|
}
|
|
2449
2452
|
|
|
2450
|
-
|
|
2453
|
+
interface WalletType {
|
|
2451
2454
|
pk: GraphQLClient.KeyType;
|
|
2452
2455
|
hash: GraphQLClient.HashType;
|
|
2453
2456
|
address: GraphQLClient.EncodingType;
|
|
2454
2457
|
role: GraphQLClient.RoleType;
|
|
2455
2458
|
}
|
|
2456
2459
|
|
|
2457
|
-
|
|
2460
|
+
interface WithdrawTokenV2Tx {
|
|
2458
2461
|
token: GraphQLClient.TokenInput;
|
|
2459
2462
|
to: string;
|
|
2460
2463
|
rollup: string;
|
|
@@ -2464,76 +2467,76 @@ declare namespace GraphQLClient {
|
|
|
2464
2467
|
data: GraphQLClient.Any;
|
|
2465
2468
|
}
|
|
2466
2469
|
|
|
2467
|
-
|
|
2470
|
+
interface GetAccountStateParams {
|
|
2468
2471
|
address: string;
|
|
2469
2472
|
height: string;
|
|
2470
|
-
keys:
|
|
2473
|
+
keys: string[];
|
|
2471
2474
|
}
|
|
2472
2475
|
|
|
2473
|
-
|
|
2476
|
+
interface GetAssetStateParams {
|
|
2474
2477
|
address: string;
|
|
2475
2478
|
height: string;
|
|
2476
|
-
keys:
|
|
2479
|
+
keys: string[];
|
|
2477
2480
|
}
|
|
2478
2481
|
|
|
2479
|
-
|
|
2482
|
+
interface GetFactoryStateParams {
|
|
2480
2483
|
address: string;
|
|
2481
2484
|
}
|
|
2482
2485
|
|
|
2483
|
-
|
|
2486
|
+
interface GetDelegateStateParams {
|
|
2484
2487
|
address: string;
|
|
2485
2488
|
height: string;
|
|
2486
|
-
keys:
|
|
2489
|
+
keys: string[];
|
|
2487
2490
|
}
|
|
2488
2491
|
|
|
2489
|
-
|
|
2492
|
+
interface GetTokenStateParams {
|
|
2490
2493
|
address: string;
|
|
2491
2494
|
}
|
|
2492
2495
|
|
|
2493
|
-
|
|
2496
|
+
interface GetEvidenceStateParams {
|
|
2494
2497
|
hash: string;
|
|
2495
2498
|
}
|
|
2496
2499
|
|
|
2497
|
-
|
|
2500
|
+
interface GetForgeStateParams {
|
|
2498
2501
|
height: string;
|
|
2499
|
-
keys:
|
|
2502
|
+
keys: string[];
|
|
2500
2503
|
}
|
|
2501
2504
|
|
|
2502
|
-
|
|
2505
|
+
interface GetTxParams {
|
|
2503
2506
|
hash: string;
|
|
2504
2507
|
}
|
|
2505
2508
|
|
|
2506
|
-
|
|
2509
|
+
interface GetBlockParams {
|
|
2507
2510
|
height: string;
|
|
2508
2511
|
}
|
|
2509
2512
|
|
|
2510
|
-
|
|
2513
|
+
interface GetBlocksParams {
|
|
2511
2514
|
emptyExcluded: boolean;
|
|
2512
2515
|
heightFilter: undefined;
|
|
2513
2516
|
paging: undefined;
|
|
2514
2517
|
}
|
|
2515
2518
|
|
|
2516
|
-
|
|
2519
|
+
interface GetUnconfirmedTxsParams {
|
|
2517
2520
|
paging: undefined;
|
|
2518
2521
|
}
|
|
2519
2522
|
|
|
2520
|
-
|
|
2523
|
+
interface GetConfigParams {
|
|
2521
2524
|
parsed: boolean;
|
|
2522
2525
|
}
|
|
2523
2526
|
|
|
2524
|
-
|
|
2527
|
+
interface ListAssetTransactionsParams {
|
|
2525
2528
|
address: string;
|
|
2526
2529
|
paging: undefined;
|
|
2527
2530
|
}
|
|
2528
2531
|
|
|
2529
|
-
|
|
2532
|
+
interface ListAssetsParams {
|
|
2530
2533
|
ownerAddress: string;
|
|
2531
2534
|
paging: undefined;
|
|
2532
2535
|
factoryAddress: string;
|
|
2533
2536
|
timeFilter: undefined;
|
|
2534
2537
|
}
|
|
2535
2538
|
|
|
2536
|
-
|
|
2539
|
+
interface ListBlocksParams {
|
|
2537
2540
|
heightFilter: undefined;
|
|
2538
2541
|
numInvalidTxsFilter: undefined;
|
|
2539
2542
|
numTxsFilter: undefined;
|
|
@@ -2542,12 +2545,12 @@ declare namespace GraphQLClient {
|
|
|
2542
2545
|
timeFilter: undefined;
|
|
2543
2546
|
}
|
|
2544
2547
|
|
|
2545
|
-
|
|
2548
|
+
interface ListTopAccountsParams {
|
|
2546
2549
|
paging: undefined;
|
|
2547
2550
|
tokenAddress: string;
|
|
2548
2551
|
}
|
|
2549
2552
|
|
|
2550
|
-
|
|
2553
|
+
interface ListTransactionsParams {
|
|
2551
2554
|
addressFilter: undefined;
|
|
2552
2555
|
paging: undefined;
|
|
2553
2556
|
timeFilter: undefined;
|
|
@@ -2561,55 +2564,55 @@ declare namespace GraphQLClient {
|
|
|
2561
2564
|
rollupFilter: undefined;
|
|
2562
2565
|
}
|
|
2563
2566
|
|
|
2564
|
-
|
|
2567
|
+
interface ListTokensParams {
|
|
2565
2568
|
issuerAddress: string;
|
|
2566
2569
|
paging: undefined;
|
|
2567
2570
|
}
|
|
2568
2571
|
|
|
2569
|
-
|
|
2572
|
+
interface ListFactoriesParams {
|
|
2570
2573
|
ownerAddress: string;
|
|
2571
|
-
addressList:
|
|
2574
|
+
addressList: string[];
|
|
2572
2575
|
paging: undefined;
|
|
2573
2576
|
}
|
|
2574
2577
|
|
|
2575
|
-
|
|
2578
|
+
interface GetAccountTokensParams {
|
|
2576
2579
|
address: string;
|
|
2577
2580
|
token: string;
|
|
2578
2581
|
}
|
|
2579
2582
|
|
|
2580
|
-
|
|
2583
|
+
interface GetStakeStateParams {
|
|
2581
2584
|
address: string;
|
|
2582
2585
|
height: string;
|
|
2583
|
-
keys:
|
|
2586
|
+
keys: string[];
|
|
2584
2587
|
}
|
|
2585
2588
|
|
|
2586
|
-
|
|
2589
|
+
interface ListStakesParams {
|
|
2587
2590
|
addressFilter: undefined;
|
|
2588
2591
|
assetFilter: undefined;
|
|
2589
2592
|
timeFilter: undefined;
|
|
2590
2593
|
paging: undefined;
|
|
2591
2594
|
}
|
|
2592
2595
|
|
|
2593
|
-
|
|
2596
|
+
interface GetRollupStateParams {
|
|
2594
2597
|
address: string;
|
|
2595
2598
|
height: string;
|
|
2596
|
-
keys:
|
|
2599
|
+
keys: string[];
|
|
2597
2600
|
}
|
|
2598
2601
|
|
|
2599
|
-
|
|
2602
|
+
interface ListRollupsParams {
|
|
2600
2603
|
paging: undefined;
|
|
2601
2604
|
tokenAddress: string;
|
|
2602
2605
|
erc20TokenAddress: string;
|
|
2603
2606
|
foreignTokenAddress: string;
|
|
2604
2607
|
}
|
|
2605
2608
|
|
|
2606
|
-
|
|
2609
|
+
interface GetRollupBlockParams {
|
|
2607
2610
|
hash: string;
|
|
2608
2611
|
height: string;
|
|
2609
2612
|
rollupAddress: string;
|
|
2610
2613
|
}
|
|
2611
2614
|
|
|
2612
|
-
|
|
2615
|
+
interface ListRollupBlocksParams {
|
|
2613
2616
|
paging: undefined;
|
|
2614
2617
|
rollupAddress: string;
|
|
2615
2618
|
tokenAddress: string;
|
|
@@ -2618,17 +2621,17 @@ declare namespace GraphQLClient {
|
|
|
2618
2621
|
txFilter: undefined;
|
|
2619
2622
|
}
|
|
2620
2623
|
|
|
2621
|
-
|
|
2624
|
+
interface ListRollupValidatorsParams {
|
|
2622
2625
|
paging: undefined;
|
|
2623
2626
|
rollupAddress: string;
|
|
2624
2627
|
}
|
|
2625
2628
|
|
|
2626
|
-
|
|
2629
|
+
interface SearchParams {
|
|
2627
2630
|
paging: undefined;
|
|
2628
2631
|
keyword: string;
|
|
2629
2632
|
}
|
|
2630
2633
|
|
|
2631
|
-
|
|
2634
|
+
interface SendTxParams {
|
|
2632
2635
|
commit: boolean;
|
|
2633
2636
|
token: string;
|
|
2634
2637
|
tx: string;
|