@0xsequence/indexer 3.0.0-beta.18 → 3.0.0-beta.19
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -47
- package/dist/indexer.gen.d.ts +989 -633
- package/dist/indexer.gen.d.ts.map +1 -1
- package/dist/indexer.gen.js +880 -632
- package/dist/indexergw.gen.d.ts +682 -455
- package/dist/indexergw.gen.d.ts.map +1 -1
- package/dist/indexergw.gen.js +679 -426
- package/eslint.config.js +4 -0
- package/package.json +6 -3
- package/src/index.ts +6 -6
- package/src/indexer.gen.ts +1899 -1487
- package/src/indexergw.gen.ts +1210 -946
- package/tsconfig.json +3 -1
package/dist/indexergw.gen.d.ts
CHANGED
|
@@ -1,20 +1,103 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
export declare const WebrpcVersion = "v1";
|
|
2
|
+
export declare const WebrpcSchemaVersion = "v0.4.0";
|
|
3
|
+
export declare const WebrpcSchemaHash = "b978d153702d614d5f1b9c98ff7f2e5857cccfd6";
|
|
4
|
+
export interface IndexerGatewayClient {
|
|
5
|
+
/**
|
|
6
|
+
* GetTokenBalances returns a balance summary/details for an specific account
|
|
7
|
+
* on all indexer nodes. By default if accountAddress is left empty, it will
|
|
8
|
+
* use the account from the jwt session.
|
|
9
|
+
*/
|
|
10
|
+
getBalanceUpdates(req: GetBalanceUpdatesRequest, headers?: object, signal?: AbortSignal): Promise<GetBalanceUpdatesResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* GetChains returns a list of chains with their ID and name
|
|
13
|
+
*/
|
|
14
|
+
getChains(req: GetChainsRequest, headers?: object, signal?: AbortSignal): Promise<GetChainsResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* GetNativeTokenBalance queries indexer nodes for the latest native token
|
|
17
|
+
* account balance.
|
|
18
|
+
*/
|
|
19
|
+
getNativeTokenBalance(req: GetNativeTokenBalanceRequest, headers?: object, signal?: AbortSignal): Promise<GetNativeTokenBalanceResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* GetTokenBalances returns a balance summary/details for a specific account
|
|
22
|
+
* on all indexer nodes. By default if accountAddress is left empty, it will
|
|
23
|
+
* use the account from the jwt session.
|
|
24
|
+
*
|
|
25
|
+
* @deprecated Use GetTokenBalancesSummary or GetTokenBalancesDetails instead.
|
|
26
|
+
*/
|
|
27
|
+
getTokenBalances(req: GetTokenBalancesRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* GetTokenBalancesByContract returns a balances for specific accounts and
|
|
30
|
+
* contracts on all indexer nodes. The collection ERC721 & ERC1155 tokens are
|
|
31
|
+
* represented as individual balances.
|
|
32
|
+
*/
|
|
33
|
+
getTokenBalancesByContract(req: GetTokenBalancesByContractRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesByContractResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* GetTokenBalancesDetails returns a detailed balance summary for the given
|
|
36
|
+
* accounts on all indexer nodes. The collection ERC721 & ERC1155 tokens are
|
|
37
|
+
* represented as individual balances.
|
|
38
|
+
*/
|
|
39
|
+
getTokenBalancesDetails(req: GetTokenBalancesDetailsRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesDetailsResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* GetTokenBalancesSummary returns a summary of token balances for the given
|
|
42
|
+
* accounts on all indexer nodes. The collection ERC721 & ERC1155 tokens are
|
|
43
|
+
* represented as a single aggregated balance.
|
|
44
|
+
*/
|
|
45
|
+
getTokenBalancesSummary(req: GetTokenBalancesSummaryRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesSummaryResponse>;
|
|
46
|
+
getTokenPrice(req: GetTokenPriceRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenPriceResponse>;
|
|
47
|
+
getTokenPrices(req: GetTokenPricesRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenPricesResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* GetTransactionHistory returns the history of mined transactions for the
|
|
50
|
+
* given account on all indexer nodes, which includes a list of token transfer
|
|
51
|
+
* (sent/received) , and sent transactions from a Sequence wallet.
|
|
52
|
+
*/
|
|
53
|
+
getTransactionHistory(req: GetTransactionHistoryRequest, headers?: object, signal?: AbortSignal): Promise<GetTransactionHistoryResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Ping the indexer
|
|
56
|
+
*/
|
|
57
|
+
ping(headers?: object, signal?: AbortSignal): Promise<PingResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Get the current runtime health status of the indexer gatewya
|
|
60
|
+
*/
|
|
61
|
+
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Get the current version of the indexer
|
|
64
|
+
*/
|
|
65
|
+
version(headers?: object, signal?: AbortSignal): Promise<VersionResponse>;
|
|
66
|
+
}
|
|
67
|
+
export interface Asset {
|
|
68
|
+
id: number;
|
|
69
|
+
collectionId: number;
|
|
70
|
+
tokenId?: string;
|
|
71
|
+
url?: string;
|
|
72
|
+
metadataField: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
filesize?: number;
|
|
75
|
+
mimeType?: string;
|
|
76
|
+
width?: number;
|
|
77
|
+
height?: number;
|
|
78
|
+
updatedAt?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface BloomStats {
|
|
81
|
+
hitRatio: string;
|
|
82
|
+
falsePositivesPercent: string;
|
|
83
|
+
hitCount: number;
|
|
84
|
+
missCount: number;
|
|
85
|
+
falsePositives: number;
|
|
86
|
+
}
|
|
87
|
+
export interface BloomStatus {
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
initialized: boolean;
|
|
90
|
+
bloomInitElapsedTime: string;
|
|
91
|
+
stats: BloomStats;
|
|
92
|
+
}
|
|
93
|
+
export interface Bond {
|
|
94
|
+
pebble: PebbleMetrics;
|
|
95
|
+
estimatedDiskUsagePerTable: any;
|
|
96
|
+
estimatedDiskUsageTotal: string;
|
|
97
|
+
}
|
|
98
|
+
export interface ChainInfo {
|
|
99
|
+
chainId: number;
|
|
100
|
+
chainName: string;
|
|
18
101
|
}
|
|
19
102
|
export interface ContractInfo {
|
|
20
103
|
chainId: number;
|
|
@@ -32,58 +115,29 @@ export interface ContractInfo {
|
|
|
32
115
|
queuedAt?: string;
|
|
33
116
|
status: ResourceStatus;
|
|
34
117
|
}
|
|
35
|
-
export interface
|
|
36
|
-
|
|
37
|
-
description: string;
|
|
38
|
-
categories: Array<string>;
|
|
39
|
-
ogImage: string;
|
|
40
|
-
ogName: string;
|
|
41
|
-
originChainId: number;
|
|
42
|
-
originAddress: string;
|
|
43
|
-
blacklist: boolean;
|
|
44
|
-
verified: boolean;
|
|
45
|
-
verifiedBy: string;
|
|
46
|
-
featured: boolean;
|
|
47
|
-
featureIndex: number;
|
|
118
|
+
export interface ContractInfoExtensionBridgeInfo {
|
|
119
|
+
tokenAddress: string;
|
|
48
120
|
}
|
|
49
|
-
export interface
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
121
|
+
export interface ContractInfoExtensionIndexingInfo {
|
|
122
|
+
useOnChainBalance: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface ContractInfoExtensions {
|
|
125
|
+
link?: string;
|
|
54
126
|
description?: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
properties?: {
|
|
59
|
-
[key: string]: any;
|
|
127
|
+
categories?: Array<string>;
|
|
128
|
+
bridgeInfo?: {
|
|
129
|
+
[key: string]: ContractInfoExtensionBridgeInfo;
|
|
60
130
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
status: ResourceStatus;
|
|
72
|
-
queuedAt?: string;
|
|
73
|
-
lastFetched?: string;
|
|
74
|
-
}
|
|
75
|
-
export interface Asset {
|
|
76
|
-
id: number;
|
|
77
|
-
collectionId: number;
|
|
78
|
-
tokenId?: string;
|
|
79
|
-
url?: string;
|
|
80
|
-
metadataField: string;
|
|
81
|
-
name?: string;
|
|
82
|
-
filesize?: number;
|
|
83
|
-
mimeType?: string;
|
|
84
|
-
width?: number;
|
|
85
|
-
height?: number;
|
|
86
|
-
updatedAt?: string;
|
|
131
|
+
indexingInfo?: ContractInfoExtensionIndexingInfo;
|
|
132
|
+
ogImage?: string;
|
|
133
|
+
ogName?: string;
|
|
134
|
+
originChainId?: number;
|
|
135
|
+
originAddress?: string;
|
|
136
|
+
blacklist?: boolean;
|
|
137
|
+
verified?: boolean;
|
|
138
|
+
verifiedBy?: string;
|
|
139
|
+
featured?: boolean;
|
|
140
|
+
featureIndex?: number;
|
|
87
141
|
}
|
|
88
142
|
export declare enum ContractType {
|
|
89
143
|
UNKNOWN = "UNKNOWN",
|
|
@@ -95,12 +149,59 @@ export declare enum ContractType {
|
|
|
95
149
|
ERC20_BRIDGE = "ERC20_BRIDGE",
|
|
96
150
|
ERC721_BRIDGE = "ERC721_BRIDGE",
|
|
97
151
|
ERC1155_BRIDGE = "ERC1155_BRIDGE",
|
|
98
|
-
SEQ_MARKETPLACE = "SEQ_MARKETPLACE"
|
|
152
|
+
SEQ_MARKETPLACE = "SEQ_MARKETPLACE",
|
|
153
|
+
ERC6909 = "ERC6909"
|
|
99
154
|
}
|
|
100
|
-
export declare enum
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
155
|
+
export declare enum ContractVerificationStatus {
|
|
156
|
+
VERIFIED = "VERIFIED",
|
|
157
|
+
UNVERIFIED = "UNVERIFIED",
|
|
158
|
+
ALL = "ALL"
|
|
159
|
+
}
|
|
160
|
+
export interface DiskUsage {
|
|
161
|
+
humanReadable: string;
|
|
162
|
+
used: number;
|
|
163
|
+
size: number;
|
|
164
|
+
percent: number;
|
|
165
|
+
dirs: {
|
|
166
|
+
[key: string]: string;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export interface EtherBalance {
|
|
170
|
+
accountAddress: string;
|
|
171
|
+
balanceWei: string;
|
|
172
|
+
}
|
|
173
|
+
export interface EventDecoded {
|
|
174
|
+
topicHash: string;
|
|
175
|
+
eventSig: string;
|
|
176
|
+
types: Array<string>;
|
|
177
|
+
names: Array<string>;
|
|
178
|
+
values: Array<string>;
|
|
179
|
+
}
|
|
180
|
+
export interface EventFilter {
|
|
181
|
+
events?: Array<string>;
|
|
182
|
+
contractAddresses?: Array<string>;
|
|
183
|
+
accounts?: Array<string>;
|
|
184
|
+
tokenIDs?: Array<string>;
|
|
185
|
+
}
|
|
186
|
+
export interface EventLog {
|
|
187
|
+
id: number;
|
|
188
|
+
uid: string;
|
|
189
|
+
type: EventLogType;
|
|
190
|
+
blockNumber: number;
|
|
191
|
+
blockHash: string;
|
|
192
|
+
parentBlockHash: string;
|
|
193
|
+
contractAddress: string;
|
|
194
|
+
contractType: ContractType;
|
|
195
|
+
txnHash: string;
|
|
196
|
+
txnIndex: number;
|
|
197
|
+
txnLogIndex: number;
|
|
198
|
+
logDataType: EventLogDataType;
|
|
199
|
+
ts: string;
|
|
200
|
+
txnInfo?: TxnInfo;
|
|
201
|
+
rawLog?: {
|
|
202
|
+
[key: string]: any;
|
|
203
|
+
};
|
|
204
|
+
event?: EventDecoded;
|
|
104
205
|
}
|
|
105
206
|
export declare enum EventLogDataType {
|
|
106
207
|
EVENT = "EVENT",
|
|
@@ -108,50 +209,10 @@ export declare enum EventLogDataType {
|
|
|
108
209
|
NATIVE_TOKEN_TRANSFER = "NATIVE_TOKEN_TRANSFER",
|
|
109
210
|
SEQUENCE_TXN = "SEQUENCE_TXN"
|
|
110
211
|
}
|
|
111
|
-
export declare enum
|
|
112
|
-
OPEN = "OPEN",
|
|
113
|
-
CLOSED = "CLOSED",
|
|
114
|
-
CANCELLED = "CANCELLED"
|
|
115
|
-
}
|
|
116
|
-
export declare enum TxnTransferType {
|
|
212
|
+
export declare enum EventLogType {
|
|
117
213
|
UNKNOWN = "UNKNOWN",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
export declare enum TransactionStatus {
|
|
122
|
-
FAILED = "FAILED",
|
|
123
|
-
SUCCESSFUL = "SUCCESSFUL"
|
|
124
|
-
}
|
|
125
|
-
export declare enum TransactionType {
|
|
126
|
-
LegacyTxnType = "LegacyTxnType",
|
|
127
|
-
AccessListTxnType = "AccessListTxnType",
|
|
128
|
-
DynamicFeeTxnType = "DynamicFeeTxnType"
|
|
129
|
-
}
|
|
130
|
-
export declare enum SortOrder {
|
|
131
|
-
DESC = "DESC",
|
|
132
|
-
ASC = "ASC"
|
|
133
|
-
}
|
|
134
|
-
export declare enum ContractVerificationStatus {
|
|
135
|
-
VERIFIED = "VERIFIED",
|
|
136
|
-
UNVERIFIED = "UNVERIFIED",
|
|
137
|
-
ALL = "ALL"
|
|
138
|
-
}
|
|
139
|
-
export interface Version {
|
|
140
|
-
webrpcVersion: string;
|
|
141
|
-
schemaVersion: string;
|
|
142
|
-
schemaHash: string;
|
|
143
|
-
appVersion: string;
|
|
144
|
-
}
|
|
145
|
-
export interface RuntimeStatus {
|
|
146
|
-
healthOK: boolean;
|
|
147
|
-
indexerEnabled: boolean;
|
|
148
|
-
startTime: string;
|
|
149
|
-
uptime: number;
|
|
150
|
-
ver: string;
|
|
151
|
-
branch: string;
|
|
152
|
-
commitHash: string;
|
|
153
|
-
chainID: number;
|
|
154
|
-
checks: RuntimeChecks;
|
|
214
|
+
BLOCK_ADDED = "BLOCK_ADDED",
|
|
215
|
+
BLOCK_REMOVED = "BLOCK_REMOVED"
|
|
155
216
|
}
|
|
156
217
|
export interface GatewayBackendResponseTime {
|
|
157
218
|
percentiles: {
|
|
@@ -164,6 +225,26 @@ export interface GatewayBackendRuntimeStatus {
|
|
|
164
225
|
chainId: number;
|
|
165
226
|
responseTime: GatewayBackendResponseTime;
|
|
166
227
|
}
|
|
228
|
+
export interface GatewayEtherBalance {
|
|
229
|
+
chainId: number;
|
|
230
|
+
errorReason?: string;
|
|
231
|
+
result: EtherBalance;
|
|
232
|
+
}
|
|
233
|
+
export interface GatewayNativeTokenBalance {
|
|
234
|
+
chainId: number;
|
|
235
|
+
errorReason?: string;
|
|
236
|
+
result: NativeTokenBalance;
|
|
237
|
+
}
|
|
238
|
+
export interface GatewayNativeTokenBalances {
|
|
239
|
+
chainId: number;
|
|
240
|
+
errorReason?: string;
|
|
241
|
+
results: Array<NativeTokenBalance>;
|
|
242
|
+
}
|
|
243
|
+
export interface GatewayPrice {
|
|
244
|
+
chainID: number;
|
|
245
|
+
errorReason?: string;
|
|
246
|
+
results: Array<Price>;
|
|
247
|
+
}
|
|
167
248
|
export interface GatewayRuntimeStatus {
|
|
168
249
|
healthOK: boolean;
|
|
169
250
|
startTime: string;
|
|
@@ -173,105 +254,153 @@ export interface GatewayRuntimeStatus {
|
|
|
173
254
|
commitHash: string;
|
|
174
255
|
backends: Array<GatewayBackendRuntimeStatus>;
|
|
175
256
|
}
|
|
176
|
-
export interface
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
commitHash: string;
|
|
257
|
+
export interface GatewayTokenBalance {
|
|
258
|
+
chainId: number;
|
|
259
|
+
errorReason?: string;
|
|
260
|
+
results: Array<TokenBalance>;
|
|
261
|
+
}
|
|
262
|
+
export interface GatewayTokenPriceQuery {
|
|
183
263
|
chainID: number;
|
|
184
|
-
|
|
264
|
+
queries: Array<TokenPriceQuery>;
|
|
185
265
|
}
|
|
186
|
-
export interface
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
266
|
+
export interface GatewayTransaction {
|
|
267
|
+
chainId: number;
|
|
268
|
+
errorReason?: string;
|
|
269
|
+
results: Array<Transaction>;
|
|
270
|
+
}
|
|
271
|
+
export interface IndexState {
|
|
272
|
+
chainId: string;
|
|
193
273
|
lastBlockNum: number;
|
|
194
|
-
|
|
195
|
-
bloomStatus: BloomStatus;
|
|
196
|
-
bond: Bond;
|
|
197
|
-
diskUsage: DiskUsage;
|
|
274
|
+
lastBlockHash: string;
|
|
198
275
|
}
|
|
199
|
-
export interface
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
size: number;
|
|
203
|
-
percent: number;
|
|
204
|
-
dirs: {
|
|
205
|
-
[key: string]: string;
|
|
206
|
-
};
|
|
276
|
+
export interface IndexedBlock {
|
|
277
|
+
blockNumber: number;
|
|
278
|
+
blockShortHash: string;
|
|
207
279
|
}
|
|
208
|
-
export interface
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
estimatedDiskUsageTotal: string;
|
|
280
|
+
export interface IndexerMetrics {
|
|
281
|
+
blocksPerSecond: number;
|
|
282
|
+
eventsPerSecond: number;
|
|
212
283
|
}
|
|
213
|
-
export interface
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
284
|
+
export interface MarketplaceOrder {
|
|
285
|
+
orderId: string;
|
|
286
|
+
tokenContract: string;
|
|
287
|
+
tokenId: string;
|
|
288
|
+
isListing: boolean;
|
|
289
|
+
quantity: string;
|
|
290
|
+
quantityRemaining: string;
|
|
291
|
+
currencyAddress: string;
|
|
292
|
+
pricePerToken: string;
|
|
293
|
+
expiry: string;
|
|
294
|
+
orderStatus: OrderStatus;
|
|
295
|
+
createdBy: string;
|
|
296
|
+
blockNumber: number;
|
|
297
|
+
orderbookContractAddress: string;
|
|
298
|
+
createdAt: number;
|
|
219
299
|
}
|
|
220
|
-
export interface
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
300
|
+
export interface MarketplaceOrderFilter {
|
|
301
|
+
isListing?: boolean;
|
|
302
|
+
userAddresses?: Array<string>;
|
|
303
|
+
currencyAddresses: Array<string>;
|
|
304
|
+
orderIds: Array<string>;
|
|
305
|
+
tokenIds: Array<string>;
|
|
306
|
+
excludeUserAddresses?: Array<string>;
|
|
307
|
+
blockNumberGt: number;
|
|
308
|
+
createdAtAfter: number;
|
|
309
|
+
orderStatuses: Array<OrderStatus>;
|
|
310
|
+
returnExpired: boolean;
|
|
224
311
|
}
|
|
225
|
-
export interface
|
|
226
|
-
|
|
227
|
-
|
|
312
|
+
export interface MarketplaceTopOrdersFilter {
|
|
313
|
+
currencyAddresses: Array<string>;
|
|
314
|
+
tokenIds: Array<string>;
|
|
315
|
+
isListing: boolean;
|
|
316
|
+
priceSort: SortOrder;
|
|
317
|
+
excludeUser?: string;
|
|
318
|
+
}
|
|
319
|
+
export interface MetadataOptions {
|
|
320
|
+
verifiedOnly?: boolean;
|
|
321
|
+
unverifiedOnly?: boolean;
|
|
322
|
+
includeContracts?: Array<string>;
|
|
228
323
|
}
|
|
229
324
|
export interface NativeTokenBalance {
|
|
230
325
|
accountAddress: string;
|
|
231
326
|
chainId: number;
|
|
327
|
+
name: string;
|
|
328
|
+
symbol: string;
|
|
232
329
|
balance: string;
|
|
233
|
-
|
|
330
|
+
balanceUSD: string;
|
|
331
|
+
priceUSD: string;
|
|
332
|
+
priceUpdatedAt?: string;
|
|
333
|
+
errorReason?: string;
|
|
334
|
+
}
|
|
335
|
+
export declare enum NetworkType {
|
|
336
|
+
MAINNETS = "MAINNETS",
|
|
337
|
+
TESTNETS = "TESTNETS",
|
|
338
|
+
ALL = "ALL"
|
|
234
339
|
}
|
|
235
|
-
export
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
340
|
+
export declare enum OrderStatus {
|
|
341
|
+
OPEN = "OPEN",
|
|
342
|
+
CLOSED = "CLOSED",
|
|
343
|
+
CANCELLED = "CANCELLED"
|
|
239
344
|
}
|
|
240
|
-
export interface
|
|
241
|
-
|
|
242
|
-
|
|
345
|
+
export interface Page {
|
|
346
|
+
page?: number;
|
|
347
|
+
column?: string;
|
|
348
|
+
before?: any;
|
|
349
|
+
after?: any;
|
|
350
|
+
sort?: Array<SortBy>;
|
|
351
|
+
pageSize?: number;
|
|
352
|
+
more?: boolean;
|
|
243
353
|
}
|
|
244
|
-
export interface
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
354
|
+
export interface PebbleMetrics {
|
|
355
|
+
compactionCount: number;
|
|
356
|
+
compactionEstimatedDebt: number;
|
|
357
|
+
compactionInProgressBytes: number;
|
|
358
|
+
compactionNumInProgress: number;
|
|
359
|
+
compactionMarkedFiles: number;
|
|
248
360
|
}
|
|
249
|
-
export interface
|
|
250
|
-
id: number;
|
|
251
|
-
uid: string;
|
|
252
|
-
type: EventLogType;
|
|
253
|
-
blockNumber: number;
|
|
254
|
-
blockHash: string;
|
|
255
|
-
parentBlockHash: string;
|
|
361
|
+
export interface Price {
|
|
256
362
|
contractAddress: string;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
txnLogIndex: number;
|
|
261
|
-
logDataType: EventLogDataType;
|
|
262
|
-
ts: string;
|
|
263
|
-
txnInfo?: TxnInfo;
|
|
264
|
-
rawLog?: {
|
|
265
|
-
[key: string]: any;
|
|
266
|
-
};
|
|
267
|
-
event?: EventDecoded;
|
|
363
|
+
tokenID?: string;
|
|
364
|
+
priceUSD: string;
|
|
365
|
+
updatedAt?: string;
|
|
268
366
|
}
|
|
269
|
-
export
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
367
|
+
export declare enum ResourceStatus {
|
|
368
|
+
NOT_AVAILABLE = "NOT_AVAILABLE",
|
|
369
|
+
REFRESHING = "REFRESHING",
|
|
370
|
+
AVAILABLE = "AVAILABLE"
|
|
371
|
+
}
|
|
372
|
+
export interface RuntimeChecks {
|
|
373
|
+
running: boolean;
|
|
374
|
+
runnables: any;
|
|
375
|
+
cgoEnabled: boolean;
|
|
376
|
+
quotaControlEnabled: boolean;
|
|
377
|
+
syncMode: string;
|
|
378
|
+
percentIndexed: number;
|
|
379
|
+
lastBlockNum: number;
|
|
380
|
+
lastBlockNumWithState: number;
|
|
381
|
+
bloomStatus: BloomStatus;
|
|
382
|
+
bond: Bond;
|
|
383
|
+
diskUsage: DiskUsage;
|
|
384
|
+
metrics: IndexerMetrics;
|
|
385
|
+
}
|
|
386
|
+
export interface RuntimeStatus {
|
|
387
|
+
healthOK: boolean;
|
|
388
|
+
indexerEnabled: boolean;
|
|
389
|
+
startTime: string;
|
|
390
|
+
uptime: number;
|
|
391
|
+
ver: string;
|
|
392
|
+
branch: string;
|
|
393
|
+
commitHash: string;
|
|
394
|
+
chainID: number;
|
|
395
|
+
checks: RuntimeChecks;
|
|
396
|
+
}
|
|
397
|
+
export interface SortBy {
|
|
398
|
+
column: string;
|
|
399
|
+
order: SortOrder;
|
|
400
|
+
}
|
|
401
|
+
export declare enum SortOrder {
|
|
402
|
+
DESC = "DESC",
|
|
403
|
+
ASC = "ASC"
|
|
275
404
|
}
|
|
276
405
|
export interface TokenBalance {
|
|
277
406
|
contractType: ContractType;
|
|
@@ -279,6 +408,9 @@ export interface TokenBalance {
|
|
|
279
408
|
accountAddress: string;
|
|
280
409
|
tokenID?: string;
|
|
281
410
|
balance: string;
|
|
411
|
+
balanceUSD: string;
|
|
412
|
+
priceUSD: string;
|
|
413
|
+
priceUpdatedAt?: string;
|
|
282
414
|
blockHash: string;
|
|
283
415
|
blockNumber: number;
|
|
284
416
|
chainId: number;
|
|
@@ -287,37 +419,29 @@ export interface TokenBalance {
|
|
|
287
419
|
contractInfo?: ContractInfo;
|
|
288
420
|
tokenMetadata?: TokenMetadata;
|
|
289
421
|
}
|
|
290
|
-
export interface
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
tokenId: string;
|
|
294
|
-
isListing: boolean;
|
|
295
|
-
quantity: string;
|
|
296
|
-
quantityRemaining: string;
|
|
297
|
-
currencyAddress: string;
|
|
298
|
-
pricePerToken: string;
|
|
299
|
-
expiry: string;
|
|
300
|
-
orderStatus: OrderStatus;
|
|
301
|
-
createdBy: string;
|
|
302
|
-
blockNumber: number;
|
|
303
|
-
orderbookContractAddress: string;
|
|
304
|
-
createdAt: number;
|
|
422
|
+
export interface TokenBalanceFilter {
|
|
423
|
+
contractAddress: string;
|
|
424
|
+
sinceBlockNumber: number;
|
|
305
425
|
}
|
|
306
|
-
export interface
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
426
|
+
export interface TokenBalancesByContractFilter {
|
|
427
|
+
contractAddresses: Array<string>;
|
|
428
|
+
accountAddresses?: Array<string>;
|
|
429
|
+
contractStatus?: ContractVerificationStatus;
|
|
430
|
+
tokenIDs?: Array<string>;
|
|
431
|
+
}
|
|
432
|
+
export interface TokenBalancesFilter {
|
|
433
|
+
accountAddresses: Array<string>;
|
|
434
|
+
contractStatus?: ContractVerificationStatus;
|
|
435
|
+
contractTypes?: Array<string>;
|
|
436
|
+
contractWhitelist?: Array<string>;
|
|
437
|
+
contractBlacklist?: Array<string>;
|
|
438
|
+
omitNativeBalances: boolean;
|
|
439
|
+
omitPrices?: boolean;
|
|
440
|
+
tokenIDs?: Array<string>;
|
|
316
441
|
}
|
|
317
442
|
export interface TokenHistory {
|
|
318
443
|
blockNumber: number;
|
|
319
444
|
blockHash: string;
|
|
320
|
-
accountAddress: string;
|
|
321
445
|
contractAddress: string;
|
|
322
446
|
contractType: ContractType;
|
|
323
447
|
fromAddress: string;
|
|
@@ -325,11 +449,45 @@ export interface TokenHistory {
|
|
|
325
449
|
txnHash: string;
|
|
326
450
|
txnIndex: number;
|
|
327
451
|
txnLogIndex: number;
|
|
328
|
-
logData: string;
|
|
329
452
|
tokenIDs: string;
|
|
330
|
-
|
|
453
|
+
amounts: string;
|
|
331
454
|
ts: string;
|
|
332
455
|
}
|
|
456
|
+
export interface TokenIDRange {
|
|
457
|
+
start: string;
|
|
458
|
+
end: string;
|
|
459
|
+
}
|
|
460
|
+
export interface TokenMetadata {
|
|
461
|
+
chainId?: number;
|
|
462
|
+
contractAddress?: string;
|
|
463
|
+
tokenId: string;
|
|
464
|
+
source: string;
|
|
465
|
+
name: string;
|
|
466
|
+
description?: string;
|
|
467
|
+
image?: string;
|
|
468
|
+
video?: string;
|
|
469
|
+
audio?: string;
|
|
470
|
+
properties?: {
|
|
471
|
+
[key: string]: any;
|
|
472
|
+
};
|
|
473
|
+
attributes: Array<{
|
|
474
|
+
[key: string]: any;
|
|
475
|
+
}>;
|
|
476
|
+
image_data?: string;
|
|
477
|
+
external_url?: string;
|
|
478
|
+
background_color?: string;
|
|
479
|
+
animation_url?: string;
|
|
480
|
+
decimals?: number;
|
|
481
|
+
updatedAt?: string;
|
|
482
|
+
assets?: Array<Asset>;
|
|
483
|
+
status: ResourceStatus;
|
|
484
|
+
queuedAt?: string;
|
|
485
|
+
lastFetched?: string;
|
|
486
|
+
}
|
|
487
|
+
export interface TokenPriceQuery {
|
|
488
|
+
contractAddress: string;
|
|
489
|
+
tokenID?: string;
|
|
490
|
+
}
|
|
333
491
|
export interface TokenSupply {
|
|
334
492
|
tokenID: string;
|
|
335
493
|
supply: string;
|
|
@@ -339,26 +497,19 @@ export interface TokenSupply {
|
|
|
339
497
|
}
|
|
340
498
|
export interface Transaction {
|
|
341
499
|
txnHash: string;
|
|
342
|
-
blockNumber: number;
|
|
343
|
-
blockHash: string;
|
|
344
|
-
chainId: number;
|
|
345
|
-
metaTxnID?: string;
|
|
346
|
-
transfers?: Array<TxnTransfer>;
|
|
347
|
-
timestamp: string;
|
|
348
|
-
}
|
|
349
|
-
export interface
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
tokenIds?: Array<string>;
|
|
356
|
-
amounts: Array<string>;
|
|
357
|
-
logIndex: number;
|
|
358
|
-
contractInfo?: ContractInfo;
|
|
359
|
-
tokenMetadata?: {
|
|
360
|
-
[key: string]: TokenMetadata;
|
|
361
|
-
};
|
|
500
|
+
blockNumber: number;
|
|
501
|
+
blockHash: string;
|
|
502
|
+
chainId: number;
|
|
503
|
+
metaTxnID?: string;
|
|
504
|
+
transfers?: Array<TxnTransfer>;
|
|
505
|
+
timestamp: string;
|
|
506
|
+
}
|
|
507
|
+
export interface TransactionFilter {
|
|
508
|
+
txnHash?: string;
|
|
509
|
+
from?: string;
|
|
510
|
+
to?: string;
|
|
511
|
+
contractAddress?: string;
|
|
512
|
+
event?: string;
|
|
362
513
|
}
|
|
363
514
|
export interface TransactionHistoryFilter {
|
|
364
515
|
accountAddress?: string;
|
|
@@ -370,13 +521,13 @@ export interface TransactionHistoryFilter {
|
|
|
370
521
|
fromBlock?: number;
|
|
371
522
|
toBlock?: number;
|
|
372
523
|
tokenID?: string;
|
|
524
|
+
omitPrices?: boolean;
|
|
373
525
|
}
|
|
374
|
-
export interface
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
event?: string;
|
|
526
|
+
export interface TransactionLog {
|
|
527
|
+
contractAddress: string;
|
|
528
|
+
topics: Array<string>;
|
|
529
|
+
data: string;
|
|
530
|
+
index: number;
|
|
380
531
|
}
|
|
381
532
|
export interface TransactionReceipt {
|
|
382
533
|
txnHash: string;
|
|
@@ -393,28 +544,56 @@ export interface TransactionReceipt {
|
|
|
393
544
|
final: boolean;
|
|
394
545
|
reorged: boolean;
|
|
395
546
|
}
|
|
396
|
-
export
|
|
547
|
+
export declare enum TransactionStatus {
|
|
548
|
+
FAILED = "FAILED",
|
|
549
|
+
SUCCESSFUL = "SUCCESSFUL"
|
|
550
|
+
}
|
|
551
|
+
export declare enum TransactionType {
|
|
552
|
+
LegacyTxnType = "LegacyTxnType",
|
|
553
|
+
AccessListTxnType = "AccessListTxnType",
|
|
554
|
+
DynamicFeeTxnType = "DynamicFeeTxnType"
|
|
555
|
+
}
|
|
556
|
+
export interface TxnInfo {
|
|
557
|
+
from: string;
|
|
558
|
+
to: string;
|
|
559
|
+
value: string;
|
|
560
|
+
}
|
|
561
|
+
export interface TxnTransfer {
|
|
562
|
+
transferType: TxnTransferType;
|
|
397
563
|
contractAddress: string;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
564
|
+
contractType: ContractType;
|
|
565
|
+
from: string;
|
|
566
|
+
to: string;
|
|
567
|
+
tokenIds?: Array<string>;
|
|
568
|
+
amounts: Array<string>;
|
|
569
|
+
logIndex: number;
|
|
570
|
+
amountsUSD?: Array<string>;
|
|
571
|
+
pricesUSD?: Array<string>;
|
|
572
|
+
contractInfo?: ContractInfo;
|
|
573
|
+
tokenMetadata?: {
|
|
574
|
+
[key: string]: TokenMetadata;
|
|
575
|
+
};
|
|
401
576
|
}
|
|
402
|
-
export
|
|
403
|
-
|
|
404
|
-
|
|
577
|
+
export declare enum TxnTransferType {
|
|
578
|
+
UNKNOWN = "UNKNOWN",
|
|
579
|
+
SEND = "SEND",
|
|
580
|
+
RECEIVE = "RECEIVE"
|
|
405
581
|
}
|
|
406
|
-
export interface
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
sort?: Array<SortBy>;
|
|
412
|
-
pageSize?: number;
|
|
413
|
-
more?: boolean;
|
|
582
|
+
export interface Version {
|
|
583
|
+
webrpcVersion: string;
|
|
584
|
+
schemaVersion: string;
|
|
585
|
+
schemaHash: string;
|
|
586
|
+
appVersion: string;
|
|
414
587
|
}
|
|
415
|
-
export interface
|
|
416
|
-
|
|
417
|
-
|
|
588
|
+
export interface WALWriterRuntimeStatus {
|
|
589
|
+
healthOK: boolean;
|
|
590
|
+
startTime: string;
|
|
591
|
+
uptime: number;
|
|
592
|
+
ver: string;
|
|
593
|
+
branch: string;
|
|
594
|
+
commitHash: string;
|
|
595
|
+
chainID: number;
|
|
596
|
+
percentWALWritten: number;
|
|
418
597
|
}
|
|
419
598
|
export interface WebhookListener {
|
|
420
599
|
id: number;
|
|
@@ -425,78 +604,39 @@ export interface WebhookListener {
|
|
|
425
604
|
updatedAt: string;
|
|
426
605
|
active: boolean;
|
|
427
606
|
}
|
|
428
|
-
export interface
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
tokenIDs?: Array<string>;
|
|
433
|
-
}
|
|
434
|
-
export interface TokenBalanceFilter {
|
|
607
|
+
export interface GetBalanceUpdatesRequest {
|
|
608
|
+
chainIds?: Array<number>;
|
|
609
|
+
networks?: Array<string>;
|
|
610
|
+
networkType?: NetworkType;
|
|
435
611
|
contractAddress: string;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
verifiedOnly?: boolean;
|
|
440
|
-
unverifiedOnly?: boolean;
|
|
441
|
-
includeContracts?: Array<string>;
|
|
442
|
-
}
|
|
443
|
-
export interface TokenBalancesFilter {
|
|
444
|
-
accountAddresses: Array<string>;
|
|
445
|
-
contractStatus?: ContractVerificationStatus;
|
|
446
|
-
contractTypes?: Array<string>;
|
|
447
|
-
contractWhitelist?: Array<string>;
|
|
448
|
-
contractBlacklist?: Array<string>;
|
|
449
|
-
omitNativeBalances: boolean;
|
|
450
|
-
}
|
|
451
|
-
export interface TokenBalancesByContractFilter {
|
|
452
|
-
contractAddresses: Array<string>;
|
|
453
|
-
accountAddresses?: Array<string>;
|
|
454
|
-
contractStatus?: ContractVerificationStatus;
|
|
455
|
-
}
|
|
456
|
-
export interface GatewayEtherBalance {
|
|
457
|
-
chainId: number;
|
|
458
|
-
error: string;
|
|
459
|
-
result: EtherBalance;
|
|
612
|
+
lastBlockNumber: number;
|
|
613
|
+
lastBlockHash?: string;
|
|
614
|
+
page?: Page;
|
|
460
615
|
}
|
|
461
|
-
export interface
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
result: NativeTokenBalance;
|
|
616
|
+
export interface GetBalanceUpdatesResponse {
|
|
617
|
+
page: Page;
|
|
618
|
+
balances: Array<GatewayTokenBalance>;
|
|
465
619
|
}
|
|
466
|
-
export interface
|
|
467
|
-
|
|
468
|
-
error: string;
|
|
469
|
-
results: Array<NativeTokenBalance>;
|
|
620
|
+
export interface GetChainsRequest {
|
|
621
|
+
networkType?: NetworkType;
|
|
470
622
|
}
|
|
471
|
-
export interface
|
|
472
|
-
|
|
473
|
-
error: string;
|
|
474
|
-
results: Array<TokenBalance>;
|
|
623
|
+
export interface GetChainsResponse {
|
|
624
|
+
chains: Array<ChainInfo>;
|
|
475
625
|
}
|
|
476
|
-
export interface
|
|
477
|
-
getNativeTokenBalance(args: GetNativeTokenBalanceArgs, headers?: object, signal?: AbortSignal): Promise<GetNativeTokenBalanceReturn>;
|
|
478
|
-
getTokenBalances(args: GetTokenBalancesArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesReturn>;
|
|
479
|
-
getTokenBalancesSummary(args: GetTokenBalancesSummaryArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesSummaryReturn>;
|
|
480
|
-
getTokenBalancesDetails(args: GetTokenBalancesDetailsArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesDetailsReturn>;
|
|
481
|
-
getTokenBalancesByContract(args: GetTokenBalancesByContractArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesByContractReturn>;
|
|
482
|
-
getBalanceUpdates(args: GetBalanceUpdatesArgs, headers?: object, signal?: AbortSignal): Promise<GetBalanceUpdatesReturn>;
|
|
483
|
-
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;
|
|
484
|
-
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>;
|
|
485
|
-
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusReturn>;
|
|
486
|
-
}
|
|
487
|
-
export interface GetNativeTokenBalanceArgs {
|
|
626
|
+
export interface GetNativeTokenBalanceRequest {
|
|
488
627
|
chainIds?: Array<number>;
|
|
489
628
|
networks?: Array<string>;
|
|
490
|
-
|
|
629
|
+
networkType?: NetworkType;
|
|
491
630
|
accountAddress?: string;
|
|
631
|
+
omitPrices?: boolean;
|
|
492
632
|
}
|
|
493
|
-
export interface
|
|
633
|
+
export interface GetNativeTokenBalanceResponse {
|
|
494
634
|
balances: Array<GatewayNativeTokenBalance>;
|
|
495
635
|
}
|
|
496
|
-
export interface
|
|
636
|
+
export interface GetTokenBalancesRequest {
|
|
497
637
|
chainIds?: Array<number>;
|
|
498
638
|
networks?: Array<string>;
|
|
499
|
-
|
|
639
|
+
networkType?: NetworkType;
|
|
500
640
|
accountAddress?: string;
|
|
501
641
|
contractAddress?: string;
|
|
502
642
|
tokenID?: string;
|
|
@@ -505,213 +645,249 @@ export interface GetTokenBalancesArgs {
|
|
|
505
645
|
includeCollectionTokens?: boolean;
|
|
506
646
|
page?: Page;
|
|
507
647
|
}
|
|
508
|
-
export interface
|
|
648
|
+
export interface GetTokenBalancesResponse {
|
|
509
649
|
page: Page;
|
|
510
650
|
balances: Array<GatewayTokenBalance>;
|
|
511
651
|
}
|
|
512
|
-
export interface
|
|
652
|
+
export interface GetTokenBalancesByContractRequest {
|
|
513
653
|
chainIds?: Array<number>;
|
|
514
654
|
networks?: Array<string>;
|
|
515
|
-
|
|
516
|
-
filter:
|
|
655
|
+
networkType?: NetworkType;
|
|
656
|
+
filter: TokenBalancesByContractFilter;
|
|
517
657
|
omitMetadata?: boolean;
|
|
518
658
|
page?: Page;
|
|
519
659
|
}
|
|
520
|
-
export interface
|
|
660
|
+
export interface GetTokenBalancesByContractResponse {
|
|
521
661
|
page: Page;
|
|
522
|
-
nativeBalances: Array<GatewayNativeTokenBalances>;
|
|
523
662
|
balances: Array<GatewayTokenBalance>;
|
|
524
663
|
}
|
|
525
|
-
export interface
|
|
664
|
+
export interface GetTokenBalancesDetailsRequest {
|
|
526
665
|
chainIds?: Array<number>;
|
|
527
666
|
networks?: Array<string>;
|
|
528
|
-
|
|
667
|
+
networkType?: NetworkType;
|
|
529
668
|
filter: TokenBalancesFilter;
|
|
530
669
|
omitMetadata?: boolean;
|
|
531
670
|
page?: Page;
|
|
532
671
|
}
|
|
533
|
-
export interface
|
|
672
|
+
export interface GetTokenBalancesDetailsResponse {
|
|
534
673
|
page: Page;
|
|
535
674
|
nativeBalances: Array<GatewayNativeTokenBalances>;
|
|
536
675
|
balances: Array<GatewayTokenBalance>;
|
|
537
676
|
}
|
|
538
|
-
export interface
|
|
677
|
+
export interface GetTokenBalancesSummaryRequest {
|
|
539
678
|
chainIds?: Array<number>;
|
|
540
679
|
networks?: Array<string>;
|
|
541
|
-
|
|
542
|
-
filter:
|
|
680
|
+
networkType?: NetworkType;
|
|
681
|
+
filter: TokenBalancesFilter;
|
|
543
682
|
omitMetadata?: boolean;
|
|
544
683
|
page?: Page;
|
|
545
684
|
}
|
|
546
|
-
export interface
|
|
685
|
+
export interface GetTokenBalancesSummaryResponse {
|
|
547
686
|
page: Page;
|
|
687
|
+
nativeBalances: Array<GatewayNativeTokenBalances>;
|
|
548
688
|
balances: Array<GatewayTokenBalance>;
|
|
549
689
|
}
|
|
550
|
-
export interface
|
|
690
|
+
export interface GetTokenPriceRequest {
|
|
691
|
+
q: GatewayTokenPriceQuery;
|
|
692
|
+
}
|
|
693
|
+
export interface GetTokenPriceResponse {
|
|
694
|
+
price: GatewayPrice;
|
|
695
|
+
}
|
|
696
|
+
export interface GetTokenPricesRequest {
|
|
697
|
+
q: Array<GatewayTokenPriceQuery>;
|
|
698
|
+
}
|
|
699
|
+
export interface GetTokenPricesResponse {
|
|
700
|
+
prices: Array<GatewayPrice>;
|
|
701
|
+
}
|
|
702
|
+
export interface GetTransactionHistoryRequest {
|
|
551
703
|
chainIds?: Array<number>;
|
|
552
704
|
networks?: Array<string>;
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
705
|
+
networkType?: NetworkType;
|
|
706
|
+
filter: TransactionHistoryFilter;
|
|
707
|
+
includeMetadata?: boolean;
|
|
708
|
+
metadataOptions?: MetadataOptions;
|
|
557
709
|
page?: Page;
|
|
558
710
|
}
|
|
559
|
-
export interface
|
|
711
|
+
export interface GetTransactionHistoryResponse {
|
|
560
712
|
page: Page;
|
|
561
|
-
|
|
713
|
+
transactions: Array<GatewayTransaction>;
|
|
562
714
|
}
|
|
563
|
-
export interface
|
|
715
|
+
export interface PingRequest {
|
|
564
716
|
}
|
|
565
|
-
export interface
|
|
717
|
+
export interface PingResponse {
|
|
566
718
|
status: boolean;
|
|
567
719
|
}
|
|
568
|
-
export interface
|
|
720
|
+
export interface RuntimeStatusRequest {
|
|
569
721
|
}
|
|
570
|
-
export interface
|
|
571
|
-
|
|
722
|
+
export interface RuntimeStatusResponse {
|
|
723
|
+
status: GatewayRuntimeStatus;
|
|
572
724
|
}
|
|
573
|
-
export interface
|
|
725
|
+
export interface VersionRequest {
|
|
574
726
|
}
|
|
575
|
-
export interface
|
|
576
|
-
|
|
727
|
+
export interface VersionResponse {
|
|
728
|
+
version: Version;
|
|
577
729
|
}
|
|
578
|
-
export declare class IndexerGateway implements
|
|
730
|
+
export declare class IndexerGateway implements IndexerGatewayClient {
|
|
579
731
|
protected hostname: string;
|
|
580
732
|
protected fetch: Fetch;
|
|
581
733
|
protected path: string;
|
|
582
734
|
constructor(hostname: string, fetch: Fetch);
|
|
583
735
|
private url;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
736
|
+
queryKey: {
|
|
737
|
+
getBalanceUpdates: (req: GetBalanceUpdatesRequest) => readonly ["IndexerGateway", "getBalanceUpdates", GetBalanceUpdatesRequest];
|
|
738
|
+
getChains: (req: GetChainsRequest) => readonly ["IndexerGateway", "getChains", GetChainsRequest];
|
|
739
|
+
getNativeTokenBalance: (req: GetNativeTokenBalanceRequest) => readonly ["IndexerGateway", "getNativeTokenBalance", GetNativeTokenBalanceRequest];
|
|
740
|
+
getTokenBalances: (req: GetTokenBalancesRequest) => readonly ["IndexerGateway", "getTokenBalances", GetTokenBalancesRequest];
|
|
741
|
+
getTokenBalancesByContract: (req: GetTokenBalancesByContractRequest) => readonly ["IndexerGateway", "getTokenBalancesByContract", GetTokenBalancesByContractRequest];
|
|
742
|
+
getTokenBalancesDetails: (req: GetTokenBalancesDetailsRequest) => readonly ["IndexerGateway", "getTokenBalancesDetails", GetTokenBalancesDetailsRequest];
|
|
743
|
+
getTokenBalancesSummary: (req: GetTokenBalancesSummaryRequest) => readonly ["IndexerGateway", "getTokenBalancesSummary", GetTokenBalancesSummaryRequest];
|
|
744
|
+
getTokenPrice: (req: GetTokenPriceRequest) => readonly ["IndexerGateway", "getTokenPrice", GetTokenPriceRequest];
|
|
745
|
+
getTokenPrices: (req: GetTokenPricesRequest) => readonly ["IndexerGateway", "getTokenPrices", GetTokenPricesRequest];
|
|
746
|
+
getTransactionHistory: (req: GetTransactionHistoryRequest) => readonly ["IndexerGateway", "getTransactionHistory", GetTransactionHistoryRequest];
|
|
747
|
+
ping: () => readonly ["IndexerGateway", "ping"];
|
|
748
|
+
runtimeStatus: () => readonly ["IndexerGateway", "runtimeStatus"];
|
|
749
|
+
version: () => readonly ["IndexerGateway", "version"];
|
|
750
|
+
};
|
|
751
|
+
getBalanceUpdates: (req: GetBalanceUpdatesRequest, headers?: object, signal?: AbortSignal) => Promise<GetBalanceUpdatesResponse>;
|
|
752
|
+
getChains: (req: GetChainsRequest, headers?: object, signal?: AbortSignal) => Promise<GetChainsResponse>;
|
|
753
|
+
getNativeTokenBalance: (req: GetNativeTokenBalanceRequest, headers?: object, signal?: AbortSignal) => Promise<GetNativeTokenBalanceResponse>;
|
|
754
|
+
getTokenBalances: (req: GetTokenBalancesRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesResponse>;
|
|
755
|
+
getTokenBalancesByContract: (req: GetTokenBalancesByContractRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesByContractResponse>;
|
|
756
|
+
getTokenBalancesDetails: (req: GetTokenBalancesDetailsRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesDetailsResponse>;
|
|
757
|
+
getTokenBalancesSummary: (req: GetTokenBalancesSummaryRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesSummaryResponse>;
|
|
758
|
+
getTokenPrice: (req: GetTokenPriceRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenPriceResponse>;
|
|
759
|
+
getTokenPrices: (req: GetTokenPricesRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenPricesResponse>;
|
|
760
|
+
getTransactionHistory: (req: GetTransactionHistoryRequest, headers?: object, signal?: AbortSignal) => Promise<GetTransactionHistoryResponse>;
|
|
761
|
+
ping: (headers?: object, signal?: AbortSignal) => Promise<PingResponse>;
|
|
762
|
+
runtimeStatus: (headers?: object, signal?: AbortSignal) => Promise<RuntimeStatusResponse>;
|
|
763
|
+
version: (headers?: object, signal?: AbortSignal) => Promise<VersionResponse>;
|
|
593
764
|
}
|
|
765
|
+
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
766
|
+
export declare const JsonEncode: <T = any>(obj: T) => string;
|
|
767
|
+
export declare const JsonDecode: <T = any>(data: string | any, _typ?: string) => T;
|
|
768
|
+
type WebrpcErrorParams = {
|
|
769
|
+
name?: string;
|
|
770
|
+
code?: number;
|
|
771
|
+
message?: string;
|
|
772
|
+
status?: number;
|
|
773
|
+
cause?: string;
|
|
774
|
+
};
|
|
594
775
|
export declare class WebrpcError extends Error {
|
|
595
|
-
name: string;
|
|
596
776
|
code: number;
|
|
597
|
-
message: string;
|
|
598
777
|
status: number;
|
|
599
|
-
|
|
600
|
-
/** @deprecated Use message instead of msg. Deprecated in webrpc v0.11.0. */
|
|
601
|
-
msg: string;
|
|
602
|
-
constructor(name: string, code: number, message: string, status: number, cause?: string);
|
|
778
|
+
constructor(error?: WebrpcErrorParams);
|
|
603
779
|
static new(payload: any): WebrpcError;
|
|
604
780
|
}
|
|
605
781
|
export declare class WebrpcEndpointError extends WebrpcError {
|
|
606
|
-
constructor(
|
|
782
|
+
constructor(error?: WebrpcErrorParams);
|
|
607
783
|
}
|
|
608
784
|
export declare class WebrpcRequestFailedError extends WebrpcError {
|
|
609
|
-
constructor(
|
|
785
|
+
constructor(error?: WebrpcErrorParams);
|
|
610
786
|
}
|
|
611
787
|
export declare class WebrpcBadRouteError extends WebrpcError {
|
|
612
|
-
constructor(
|
|
788
|
+
constructor(error?: WebrpcErrorParams);
|
|
613
789
|
}
|
|
614
790
|
export declare class WebrpcBadMethodError extends WebrpcError {
|
|
615
|
-
constructor(
|
|
791
|
+
constructor(error?: WebrpcErrorParams);
|
|
616
792
|
}
|
|
617
793
|
export declare class WebrpcBadRequestError extends WebrpcError {
|
|
618
|
-
constructor(
|
|
794
|
+
constructor(error?: WebrpcErrorParams);
|
|
619
795
|
}
|
|
620
796
|
export declare class WebrpcBadResponseError extends WebrpcError {
|
|
621
|
-
constructor(
|
|
797
|
+
constructor(error?: WebrpcErrorParams);
|
|
622
798
|
}
|
|
623
799
|
export declare class WebrpcServerPanicError extends WebrpcError {
|
|
624
|
-
constructor(
|
|
800
|
+
constructor(error?: WebrpcErrorParams);
|
|
625
801
|
}
|
|
626
802
|
export declare class WebrpcInternalErrorError extends WebrpcError {
|
|
627
|
-
constructor(
|
|
803
|
+
constructor(error?: WebrpcErrorParams);
|
|
628
804
|
}
|
|
629
|
-
export declare class
|
|
630
|
-
constructor(
|
|
805
|
+
export declare class WebrpcClientAbortedError extends WebrpcError {
|
|
806
|
+
constructor(error?: WebrpcErrorParams);
|
|
631
807
|
}
|
|
632
808
|
export declare class WebrpcStreamLostError extends WebrpcError {
|
|
633
|
-
constructor(
|
|
809
|
+
constructor(error?: WebrpcErrorParams);
|
|
634
810
|
}
|
|
635
811
|
export declare class WebrpcStreamFinishedError extends WebrpcError {
|
|
636
|
-
constructor(
|
|
637
|
-
}
|
|
638
|
-
export declare class UnauthorizedError extends WebrpcError {
|
|
639
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
640
|
-
}
|
|
641
|
-
export declare class PermissionDeniedError extends WebrpcError {
|
|
642
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
643
|
-
}
|
|
644
|
-
export declare class SessionExpiredError extends WebrpcError {
|
|
645
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
646
|
-
}
|
|
647
|
-
export declare class MethodNotFoundError extends WebrpcError {
|
|
648
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
649
|
-
}
|
|
650
|
-
export declare class RequestConflictError extends WebrpcError {
|
|
651
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
812
|
+
constructor(error?: WebrpcErrorParams);
|
|
652
813
|
}
|
|
653
814
|
export declare class AbortedError extends WebrpcError {
|
|
654
|
-
constructor(
|
|
815
|
+
constructor(error?: WebrpcErrorParams);
|
|
655
816
|
}
|
|
656
|
-
export declare class
|
|
657
|
-
constructor(
|
|
817
|
+
export declare class AccessKeyMismatchError extends WebrpcError {
|
|
818
|
+
constructor(error?: WebrpcErrorParams);
|
|
658
819
|
}
|
|
659
|
-
export declare class
|
|
660
|
-
constructor(
|
|
820
|
+
export declare class AccessKeyNotFoundError extends WebrpcError {
|
|
821
|
+
constructor(error?: WebrpcErrorParams);
|
|
661
822
|
}
|
|
662
|
-
export declare class
|
|
663
|
-
constructor(
|
|
823
|
+
export declare class AtLeastOneKeyError extends WebrpcError {
|
|
824
|
+
constructor(error?: WebrpcErrorParams);
|
|
664
825
|
}
|
|
665
|
-
export declare class
|
|
666
|
-
constructor(
|
|
826
|
+
export declare class GeoblockedError extends WebrpcError {
|
|
827
|
+
constructor(error?: WebrpcErrorParams);
|
|
667
828
|
}
|
|
668
|
-
export declare class
|
|
669
|
-
constructor(
|
|
829
|
+
export declare class InvalidArgumentError extends WebrpcError {
|
|
830
|
+
constructor(error?: WebrpcErrorParams);
|
|
670
831
|
}
|
|
671
832
|
export declare class InvalidOriginError extends WebrpcError {
|
|
672
|
-
constructor(
|
|
833
|
+
constructor(error?: WebrpcErrorParams);
|
|
673
834
|
}
|
|
674
835
|
export declare class InvalidServiceError extends WebrpcError {
|
|
675
|
-
constructor(
|
|
836
|
+
constructor(error?: WebrpcErrorParams);
|
|
676
837
|
}
|
|
677
|
-
export declare class
|
|
678
|
-
constructor(
|
|
838
|
+
export declare class MaxAccessKeysError extends WebrpcError {
|
|
839
|
+
constructor(error?: WebrpcErrorParams);
|
|
679
840
|
}
|
|
680
|
-
export declare class
|
|
681
|
-
constructor(
|
|
841
|
+
export declare class MetadataCallFailedError extends WebrpcError {
|
|
842
|
+
constructor(error?: WebrpcErrorParams);
|
|
682
843
|
}
|
|
683
|
-
export declare class
|
|
684
|
-
constructor(
|
|
844
|
+
export declare class MethodNotFoundError extends WebrpcError {
|
|
845
|
+
constructor(error?: WebrpcErrorParams);
|
|
685
846
|
}
|
|
686
847
|
export declare class NoDefaultKeyError extends WebrpcError {
|
|
687
|
-
constructor(
|
|
848
|
+
constructor(error?: WebrpcErrorParams);
|
|
688
849
|
}
|
|
689
|
-
export declare class
|
|
690
|
-
constructor(
|
|
850
|
+
export declare class NotFoundError extends WebrpcError {
|
|
851
|
+
constructor(error?: WebrpcErrorParams);
|
|
691
852
|
}
|
|
692
|
-
export declare class
|
|
693
|
-
constructor(
|
|
853
|
+
export declare class PermissionDeniedError extends WebrpcError {
|
|
854
|
+
constructor(error?: WebrpcErrorParams);
|
|
694
855
|
}
|
|
695
|
-
export declare class
|
|
696
|
-
constructor(
|
|
856
|
+
export declare class ProjectNotFoundError extends WebrpcError {
|
|
857
|
+
constructor(error?: WebrpcErrorParams);
|
|
697
858
|
}
|
|
698
|
-
export declare class
|
|
699
|
-
constructor(
|
|
859
|
+
export declare class QueryFailedError extends WebrpcError {
|
|
860
|
+
constructor(error?: WebrpcErrorParams);
|
|
700
861
|
}
|
|
701
|
-
export declare class
|
|
702
|
-
constructor(
|
|
862
|
+
export declare class QuotaExceededError extends WebrpcError {
|
|
863
|
+
constructor(error?: WebrpcErrorParams);
|
|
703
864
|
}
|
|
704
|
-
export declare class
|
|
705
|
-
constructor(
|
|
865
|
+
export declare class RateLimitError extends WebrpcError {
|
|
866
|
+
constructor(error?: WebrpcErrorParams);
|
|
867
|
+
}
|
|
868
|
+
export declare class RateLimitedError extends WebrpcError {
|
|
869
|
+
constructor(error?: WebrpcErrorParams);
|
|
870
|
+
}
|
|
871
|
+
export declare class RequestConflictError extends WebrpcError {
|
|
872
|
+
constructor(error?: WebrpcErrorParams);
|
|
706
873
|
}
|
|
707
874
|
export declare class ResourceExhaustedError extends WebrpcError {
|
|
708
|
-
constructor(
|
|
875
|
+
constructor(error?: WebrpcErrorParams);
|
|
709
876
|
}
|
|
710
|
-
export declare class
|
|
711
|
-
constructor(
|
|
877
|
+
export declare class SessionExpiredError extends WebrpcError {
|
|
878
|
+
constructor(error?: WebrpcErrorParams);
|
|
712
879
|
}
|
|
713
|
-
export declare class
|
|
714
|
-
constructor(
|
|
880
|
+
export declare class TimeoutError extends WebrpcError {
|
|
881
|
+
constructor(error?: WebrpcErrorParams);
|
|
882
|
+
}
|
|
883
|
+
export declare class UnauthorizedError extends WebrpcError {
|
|
884
|
+
constructor(error?: WebrpcErrorParams);
|
|
885
|
+
}
|
|
886
|
+
export declare class UnauthorizedUserError extends WebrpcError {
|
|
887
|
+
constructor(error?: WebrpcErrorParams);
|
|
888
|
+
}
|
|
889
|
+
export declare class UnavailableError extends WebrpcError {
|
|
890
|
+
constructor(error?: WebrpcErrorParams);
|
|
715
891
|
}
|
|
716
892
|
export declare enum errors {
|
|
717
893
|
WebrpcEndpoint = "WebrpcEndpoint",
|
|
@@ -722,36 +898,87 @@ export declare enum errors {
|
|
|
722
898
|
WebrpcBadResponse = "WebrpcBadResponse",
|
|
723
899
|
WebrpcServerPanic = "WebrpcServerPanic",
|
|
724
900
|
WebrpcInternalError = "WebrpcInternalError",
|
|
725
|
-
|
|
901
|
+
WebrpcClientAborted = "WebrpcClientAborted",
|
|
726
902
|
WebrpcStreamLost = "WebrpcStreamLost",
|
|
727
903
|
WebrpcStreamFinished = "WebrpcStreamFinished",
|
|
728
|
-
Unauthorized = "Unauthorized",
|
|
729
|
-
PermissionDenied = "PermissionDenied",
|
|
730
|
-
SessionExpired = "SessionExpired",
|
|
731
|
-
MethodNotFound = "MethodNotFound",
|
|
732
|
-
RequestConflict = "RequestConflict",
|
|
733
904
|
Aborted = "Aborted",
|
|
734
|
-
Geoblocked = "Geoblocked",
|
|
735
|
-
RateLimited = "RateLimited",
|
|
736
|
-
ProjectNotFound = "ProjectNotFound",
|
|
737
|
-
AccessKeyNotFound = "AccessKeyNotFound",
|
|
738
905
|
AccessKeyMismatch = "AccessKeyMismatch",
|
|
906
|
+
AccessKeyNotFound = "AccessKeyNotFound",
|
|
907
|
+
AtLeastOneKey = "AtLeastOneKey",
|
|
908
|
+
Geoblocked = "Geoblocked",
|
|
909
|
+
InvalidArgument = "InvalidArgument",
|
|
739
910
|
InvalidOrigin = "InvalidOrigin",
|
|
740
911
|
InvalidService = "InvalidService",
|
|
741
|
-
UnauthorizedUser = "UnauthorizedUser",
|
|
742
|
-
QuotaExceeded = "QuotaExceeded",
|
|
743
|
-
RateLimit = "RateLimit",
|
|
744
|
-
NoDefaultKey = "NoDefaultKey",
|
|
745
912
|
MaxAccessKeys = "MaxAccessKeys",
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
913
|
+
MetadataCallFailed = "MetadataCallFailed",
|
|
914
|
+
MethodNotFound = "MethodNotFound",
|
|
915
|
+
NoDefaultKey = "NoDefaultKey",
|
|
916
|
+
NotFound = "NotFound",
|
|
917
|
+
PermissionDenied = "PermissionDenied",
|
|
918
|
+
ProjectNotFound = "ProjectNotFound",
|
|
750
919
|
QueryFailed = "QueryFailed",
|
|
920
|
+
QuotaExceeded = "QuotaExceeded",
|
|
921
|
+
RateLimit = "RateLimit",
|
|
922
|
+
RateLimited = "RateLimited",
|
|
923
|
+
RequestConflict = "RequestConflict",
|
|
751
924
|
ResourceExhausted = "ResourceExhausted",
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
925
|
+
SessionExpired = "SessionExpired",
|
|
926
|
+
Timeout = "Timeout",
|
|
927
|
+
Unauthorized = "Unauthorized",
|
|
928
|
+
UnauthorizedUser = "UnauthorizedUser",
|
|
929
|
+
Unavailable = "Unavailable"
|
|
930
|
+
}
|
|
931
|
+
export declare enum WebrpcErrorCodes {
|
|
932
|
+
WebrpcEndpoint = 0,
|
|
933
|
+
WebrpcRequestFailed = -1,
|
|
934
|
+
WebrpcBadRoute = -2,
|
|
935
|
+
WebrpcBadMethod = -3,
|
|
936
|
+
WebrpcBadRequest = -4,
|
|
937
|
+
WebrpcBadResponse = -5,
|
|
938
|
+
WebrpcServerPanic = -6,
|
|
939
|
+
WebrpcInternalError = -7,
|
|
940
|
+
WebrpcClientAborted = -8,
|
|
941
|
+
WebrpcStreamLost = -9,
|
|
942
|
+
WebrpcStreamFinished = -10,
|
|
943
|
+
Aborted = 1005,
|
|
944
|
+
AccessKeyMismatch = 1102,
|
|
945
|
+
AccessKeyNotFound = 1101,
|
|
946
|
+
AtLeastOneKey = 1302,
|
|
947
|
+
Geoblocked = 1006,
|
|
948
|
+
InvalidArgument = 2001,
|
|
949
|
+
InvalidOrigin = 1103,
|
|
950
|
+
InvalidService = 1104,
|
|
951
|
+
MaxAccessKeys = 1301,
|
|
952
|
+
MetadataCallFailed = 3003,
|
|
953
|
+
MethodNotFound = 1003,
|
|
954
|
+
NoDefaultKey = 1300,
|
|
955
|
+
NotFound = 3000,
|
|
956
|
+
PermissionDenied = 1001,
|
|
957
|
+
ProjectNotFound = 1100,
|
|
958
|
+
QueryFailed = 2003,
|
|
959
|
+
QuotaExceeded = 1200,
|
|
960
|
+
RateLimit = 1201,
|
|
961
|
+
RateLimited = 1007,
|
|
962
|
+
RequestConflict = 1004,
|
|
963
|
+
ResourceExhausted = 2004,
|
|
964
|
+
SessionExpired = 1002,
|
|
965
|
+
Timeout = 1900,
|
|
966
|
+
Unauthorized = 1000,
|
|
967
|
+
UnauthorizedUser = 1105,
|
|
968
|
+
Unavailable = 2002
|
|
969
|
+
}
|
|
970
|
+
export declare const webrpcErrorByCode: {
|
|
971
|
+
[code: number]: any;
|
|
972
|
+
};
|
|
973
|
+
export declare const WebrpcHeader = "Webrpc";
|
|
974
|
+
export declare const WebrpcHeaderValue = "webrpc@v0.31.2;gen-typescript@v0.23.1;sequence-indexer@v0.4.0";
|
|
975
|
+
type WebrpcGenVersions = {
|
|
976
|
+
WebrpcGenVersion: string;
|
|
977
|
+
codeGenName: string;
|
|
978
|
+
codeGenVersion: string;
|
|
979
|
+
schemaName: string;
|
|
980
|
+
schemaVersion: string;
|
|
981
|
+
};
|
|
982
|
+
export declare function VersionFromHeader(headers: Headers): WebrpcGenVersions;
|
|
756
983
|
export {};
|
|
757
984
|
//# sourceMappingURL=indexergw.gen.d.ts.map
|