@0xsequence/indexer 2.3.39 → 2.3.41
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/dist/0xsequence-indexer.cjs.dev.js +1424 -870
- package/dist/0xsequence-indexer.cjs.prod.js +1424 -870
- package/dist/0xsequence-indexer.esm.js +1417 -867
- package/dist/declarations/src/indexer.gen.d.ts +987 -640
- package/dist/declarations/src/indexergw.gen.d.ts +672 -462
- package/package.json +1 -1
- package/src/indexer.gen.ts +1972 -1716
- package/src/indexergw.gen.ts +1185 -992
|
@@ -1,20 +1,253 @@
|
|
|
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 = "caf5c4c3677ac2dce41858dce7cd727a7810845f";
|
|
4
|
+
export interface IndexerClient {
|
|
5
|
+
addWebhookListener(req: AddWebhookListenerRequest, headers?: object, signal?: AbortSignal): Promise<AddWebhookListenerResponse>;
|
|
6
|
+
/**
|
|
7
|
+
* Fetches a single receipt and then will stop the subscription
|
|
8
|
+
*/
|
|
9
|
+
fetchTransactionReceipt(req: FetchTransactionReceiptRequest, headers?: object, signal?: AbortSignal): Promise<FetchTransactionReceiptResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Fetches a single receipt with filter and then will stop the subscription
|
|
12
|
+
*/
|
|
13
|
+
fetchTransactionReceiptWithFilter(req: FetchTransactionReceiptWithFilterRequest, headers?: object, signal?: AbortSignal): Promise<FetchTransactionReceiptWithFilterResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Webhooks
|
|
16
|
+
*/
|
|
17
|
+
getAllWebhookListeners(req: GetAllWebhookListenersRequest, headers?: object, signal?: AbortSignal): Promise<GetAllWebhookListenersResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get balance update aggregate values -- useful for syncing balance details of a contract, ie. from Skyweaver.
|
|
20
|
+
* Also consider using SubscribeBalanceUpdates or SubscribeEvents as other alternatives.
|
|
21
|
+
*/
|
|
22
|
+
getBalanceUpdates(req: GetBalanceUpdatesRequest, headers?: object, signal?: AbortSignal): Promise<GetBalanceUpdatesResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the chain ID of the indexer
|
|
25
|
+
*/
|
|
26
|
+
getChainID(headers?: object, signal?: AbortSignal): Promise<GetChainIDResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Queries an ethereum node for the latest and confirm ETH balances
|
|
29
|
+
* DEPRECATED: use GetNativeTokenBalance instead
|
|
30
|
+
*
|
|
31
|
+
* @deprecated GetNativeTokenBalance
|
|
32
|
+
*/
|
|
33
|
+
getEtherBalance(req: GetEtherBalanceRequest, headers?: object, signal?: AbortSignal): Promise<GetEtherBalanceResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* GetMarketplaceOrders queries marketplace orders with filtering and pagination.
|
|
36
|
+
*
|
|
37
|
+
* Retrieves buy orders (offers) and sell orders (listings) from a specific marketplace
|
|
38
|
+
* and collection with comprehensive filtering options.
|
|
39
|
+
*
|
|
40
|
+
* Parameters:
|
|
41
|
+
* marketplaceContractAddress: Target marketplace contract (required)
|
|
42
|
+
* collectionAddress: NFT collection contract (required)
|
|
43
|
+
* filter: MarketplaceOrderFilter with options:
|
|
44
|
+
* - isListing: true=listings, false=offers, omit=both
|
|
45
|
+
* - userAddresses: Include specific users
|
|
46
|
+
* - currencyAddresses: Filter by currencies (empty=all)
|
|
47
|
+
* - orderIds: Filter by specific order ids (empty=all)
|
|
48
|
+
* - tokenIds: Filter by specific tokens (empty=all)
|
|
49
|
+
* - excludeUserAddresses: Exclude specific users
|
|
50
|
+
* - blockNumberGt: Orders greater than block number
|
|
51
|
+
* - createdAtAfter: Orders after timestamp
|
|
52
|
+
* - orderStatuses: Filter by status (OPEN, CLOSED, CANCELLED)
|
|
53
|
+
* - returnExpired: Include expired orders
|
|
54
|
+
* page: Pagination control (optional)
|
|
55
|
+
*
|
|
56
|
+
* Returns: Updated pagination info and array of matching orders
|
|
57
|
+
*/
|
|
58
|
+
getMarketplaceOrders(req: GetMarketplaceOrdersRequest, headers?: object, signal?: AbortSignal): Promise<GetMarketplaceOrdersResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* GetMarketplaceTopOrders finds the most competitive orders for specific tokens.
|
|
61
|
+
*
|
|
62
|
+
* Optimized for price discovery, returns the best available orders for each token.
|
|
63
|
+
* Useful for displaying current market prices and finding trading opportunities.
|
|
64
|
+
*
|
|
65
|
+
* Parameters:
|
|
66
|
+
* marketplaceContractAddress: Target marketplace contract (required)
|
|
67
|
+
* collectionAddress: NFT collection contract (required)
|
|
68
|
+
* filter: MarketplaceTopOrdersFilter with options:
|
|
69
|
+
* - currencyAddresses: Consider specific currencies (empty=all)
|
|
70
|
+
* - tokenIds: Target token IDs (required, non-empty)
|
|
71
|
+
* - isListing: true=listings/sell orders, false=offers/buy orders
|
|
72
|
+
* - priceSort: ASC=lowest first, DESC=highest first
|
|
73
|
+
* - excludeUser: Hide orders from specific user
|
|
74
|
+
*
|
|
75
|
+
* Returns: Array of top-priced active orders, sorted by priceSort preference
|
|
76
|
+
*/
|
|
77
|
+
getMarketplaceTopOrders(req: GetMarketplaceTopOrdersRequest, headers?: object, signal?: AbortSignal): Promise<GetMarketplaceTopOrdersResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* GetNativeTokenBalance queries an ethereum node for the latest native token account balance.
|
|
80
|
+
* The native token is the token of the chain the indexer is connected to, for example, ETH on Ethereum
|
|
81
|
+
* and POL on Polygon.
|
|
82
|
+
*/
|
|
83
|
+
getNativeTokenBalance(req: GetNativeTokenBalanceRequest, headers?: object, signal?: AbortSignal): Promise<GetNativeTokenBalanceResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* GetTokenBalances returns a balance summary/details for a specific account. By default
|
|
86
|
+
* if accountAddress is left empty, it will use the account from the jwt session.
|
|
87
|
+
*
|
|
88
|
+
* Also, if contractAddress is undefined, then it will list all current user coins/collectibles.
|
|
89
|
+
* But, if contractAddress is provided, then it will return the token balances for the contract, this is
|
|
90
|
+
* only useful for 1155, but for other tokens, it can act as a filter for the single balance.
|
|
91
|
+
*
|
|
92
|
+
* DEPRECATED: use GetTokenBalancesSummary / GetTokenBalancesDetails
|
|
93
|
+
*
|
|
94
|
+
* @deprecated GetTokenBalancesSummary
|
|
95
|
+
*/
|
|
96
|
+
getTokenBalances(req: GetTokenBalancesRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* GetTokenBalancesByContract returns a balances for a specific accounts and
|
|
99
|
+
* contracts. The collection ERC721 & ERC1155 tokens are represented as
|
|
100
|
+
* individual balances.
|
|
101
|
+
*
|
|
102
|
+
* If `filter` is not provided, it will error out as it requires at least
|
|
103
|
+
* contract address.
|
|
104
|
+
*
|
|
105
|
+
* If `filter.contractStatus` is not provided, it will include verified only
|
|
106
|
+
* tokens.
|
|
107
|
+
*/
|
|
108
|
+
getTokenBalancesByContract(req: GetTokenBalancesByContractRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesByContractResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* GetTokenBalancesDetails returns a detailed balance summary for a specific
|
|
111
|
+
* accounts. The collection ERC721 & ERC1155 tokens are represented as
|
|
112
|
+
* individual balances.
|
|
113
|
+
*
|
|
114
|
+
* If `filter` is not provided, it will use the filter with account from the
|
|
115
|
+
* jwt session.
|
|
116
|
+
*
|
|
117
|
+
* If `filter.contractStatus` is not provided, it will include verified only
|
|
118
|
+
* tokens.
|
|
119
|
+
*/
|
|
120
|
+
getTokenBalancesDetails(req: GetTokenBalancesDetailsRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesDetailsResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* GetTokenBalancesSummary returns a summary of token balances for a specific
|
|
123
|
+
* accounts. The collection ERC721 & ERC1155 tokens are represented as a
|
|
124
|
+
* single aggregated balance.
|
|
125
|
+
*
|
|
126
|
+
* If `filter` is not provided, it will use the filter with account from the
|
|
127
|
+
* jwt session.
|
|
128
|
+
*
|
|
129
|
+
* If `filter.contractStatus` is not provided, it will include verified only
|
|
130
|
+
* tokens.
|
|
131
|
+
*/
|
|
132
|
+
getTokenBalancesSummary(req: GetTokenBalancesSummaryRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesSummaryResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* GetTokenIDRanges returns the range of tokenIDs for a token collection contract.
|
|
135
|
+
* This is useful for ERC-721 and ERC-1155 contracts to get the range of valid tokenIDs. It is similar to
|
|
136
|
+
* GetTokenIDs, but returns the range of tokenIDs instead of the list of tokenIDs, which is more efficient
|
|
137
|
+
* for large collections and very easy to the caller to expand the range into a list of tokenIDs.
|
|
138
|
+
*
|
|
139
|
+
* NOTE: this method will only return up to 15,000 ranges, if there are more ranges, it will return
|
|
140
|
+
* a boolean to indicate there are more ranges beyond the first 15,000. Therefore, if `moreRanges` is
|
|
141
|
+
* false then you have all the ranges, but if true, you need to make a follow up call to fetch the next
|
|
142
|
+
* page of ranges.
|
|
143
|
+
*
|
|
144
|
+
* As an example, if a NFT collection of 100,000 tokens uses ids from 1,2,3,...,100_000 then this endpoint
|
|
145
|
+
* will return just a single range from [1,100_000], but if there are gaps between the sequence, then
|
|
146
|
+
* those will be broken into separate range entries.
|
|
147
|
+
*/
|
|
148
|
+
getTokenIDRanges(req: GetTokenIDRangesRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenIDRangesResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* GetTokenIDs returns the list of each individual token id for a token collection contract.
|
|
151
|
+
* This is useful for ERC-721 and ERC-1155 contracts to get the list of valid tokenIDs.
|
|
152
|
+
*/
|
|
153
|
+
getTokenIDs(req: GetTokenIDsRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenIDsResponse>;
|
|
154
|
+
getTokenPrice(req: GetTokenPriceRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenPriceResponse>;
|
|
155
|
+
getTokenPrices(req: GetTokenPricesRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenPricesResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* GetTokenSupplies returns the set of tokenIDs used by a contract address, supporting ERC-20, ERC-721, and ERC-1155
|
|
158
|
+
* contracts, and their respective supply as well.
|
|
159
|
+
*/
|
|
160
|
+
getTokenSupplies(req: GetTokenSuppliesRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenSuppliesResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* GetTokenSuppliesMap returns the token supplies of ERC-20 and ERC-1155 tokens as requested in the `tokenMap`
|
|
163
|
+
* represented as a map of contractAddress :: []tokenIDs.
|
|
164
|
+
*
|
|
165
|
+
* For an ERC-20 specify tokenIDs as an empty array or [0], for example, { '0xdef': [] } or { '0xdef': [0] }
|
|
166
|
+
* For ERC-1155 pass the array of tokens are strings, ie. { '0xabc': ['1', '2', '3'] }
|
|
167
|
+
*/
|
|
168
|
+
getTokenSuppliesMap(req: GetTokenSuppliesMapRequest, headers?: object, signal?: AbortSignal): Promise<GetTokenSuppliesMapResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* History of mined transactions for the account which includes a list of token transfers (sent/recieved)
|
|
171
|
+
* and sent transactions from a Sequence wallet
|
|
172
|
+
*/
|
|
173
|
+
getTransactionHistory(req: GetTransactionHistoryRequest, headers?: object, signal?: AbortSignal): Promise<GetTransactionHistoryResponse>;
|
|
174
|
+
getWebhookListener(req: GetWebhookListenerRequest, headers?: object, signal?: AbortSignal): Promise<GetWebhookListenerResponse>;
|
|
175
|
+
listTokenPrices(req: ListTokenPricesRequest, headers?: object, signal?: AbortSignal): Promise<ListTokenPricesResponse>;
|
|
176
|
+
pauseAllWebhookListeners(req: PauseAllWebhookListenersRequest, headers?: object, signal?: AbortSignal): Promise<PauseAllWebhookListenersResponse>;
|
|
177
|
+
/**
|
|
178
|
+
* Ping the indexer
|
|
179
|
+
*/
|
|
180
|
+
ping(headers?: object, signal?: AbortSignal): Promise<PingResponse>;
|
|
181
|
+
removeAllWebhookListeners(req: RemoveAllWebhookListenersRequest, headers?: object, signal?: AbortSignal): Promise<RemoveAllWebhookListenersResponse>;
|
|
182
|
+
removeWebhookListener(req: RemoveWebhookListenerRequest, headers?: object, signal?: AbortSignal): Promise<RemoveWebhookListenerResponse>;
|
|
183
|
+
resumeAllWebhookListeners(req: ResumeAllWebhookListenersRequest, headers?: object, signal?: AbortSignal): Promise<ResumeAllWebhookListenersResponse>;
|
|
184
|
+
/**
|
|
185
|
+
* Get the current runtime health status of the indexer
|
|
186
|
+
*/
|
|
187
|
+
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* SubscribeBalanceUpdates listens to balance updates for a specific contract address
|
|
190
|
+
*/
|
|
191
|
+
subscribeBalanceUpdates(req: SubscribeBalanceUpdatesRequest, options: WebrpcStreamOptions<SubscribeBalanceUpdatesResponse>): WebrpcStreamController;
|
|
192
|
+
/**
|
|
193
|
+
* SubscribeEvents listens to events on-chain based on the filter criteria
|
|
194
|
+
*
|
|
195
|
+
* TODO: some additional options can be passed such as block, reorg true, etc.
|
|
196
|
+
* or stay behind, etc.
|
|
197
|
+
*/
|
|
198
|
+
subscribeEvents(req: SubscribeEventsRequest, options: WebrpcStreamOptions<SubscribeEventsResponse>): WebrpcStreamController;
|
|
199
|
+
/**
|
|
200
|
+
* Listen to transaction receipts on-chain based on the filter criteria
|
|
201
|
+
*/
|
|
202
|
+
subscribeReceipts(req: SubscribeReceiptsRequest, options: WebrpcStreamOptions<SubscribeReceiptsResponse>): WebrpcStreamController;
|
|
203
|
+
/**
|
|
204
|
+
* Re-sync an incorrect token balance with the correct on-chain balance
|
|
205
|
+
* NOTE: this method is almost never used, but we've marked it internal in case
|
|
206
|
+
* we ever want to use it again. This method was written a very long time ago in
|
|
207
|
+
* scenarios when the indexer had little bugs, but now its solid.
|
|
208
|
+
*/
|
|
209
|
+
syncBalance(req: SyncBalanceRequest, headers?: object, signal?: AbortSignal): Promise<SyncBalanceResponse>;
|
|
210
|
+
toggleWebhookListener(req: ToggleWebhookListenerRequest, headers?: object, signal?: AbortSignal): Promise<ToggleWebhookListenerResponse>;
|
|
211
|
+
updateWebhookListener(req: UpdateWebhookListenerRequest, headers?: object, signal?: AbortSignal): Promise<UpdateWebhookListenerResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* Get the current version of the indexer
|
|
214
|
+
*/
|
|
215
|
+
version(headers?: object, signal?: AbortSignal): Promise<VersionResponse>;
|
|
216
|
+
}
|
|
217
|
+
export interface Asset {
|
|
218
|
+
id: number;
|
|
219
|
+
collectionId: number;
|
|
220
|
+
tokenId?: string;
|
|
221
|
+
url?: string;
|
|
222
|
+
metadataField: string;
|
|
223
|
+
name?: string;
|
|
224
|
+
filesize?: number;
|
|
225
|
+
mimeType?: string;
|
|
226
|
+
width?: number;
|
|
227
|
+
height?: number;
|
|
228
|
+
updatedAt?: string;
|
|
229
|
+
}
|
|
230
|
+
export interface BloomStats {
|
|
231
|
+
hitRatio: string;
|
|
232
|
+
falsePositivesPercent: string;
|
|
233
|
+
hitCount: number;
|
|
234
|
+
missCount: number;
|
|
235
|
+
falsePositives: number;
|
|
236
|
+
}
|
|
237
|
+
export interface BloomStatus {
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
initialized: boolean;
|
|
240
|
+
bloomInitElapsedTime: string;
|
|
241
|
+
stats: BloomStats;
|
|
242
|
+
}
|
|
243
|
+
export interface Bond {
|
|
244
|
+
pebble: PebbleMetrics;
|
|
245
|
+
estimatedDiskUsagePerTable: any;
|
|
246
|
+
estimatedDiskUsageTotal: string;
|
|
247
|
+
}
|
|
248
|
+
export interface ChainInfo {
|
|
249
|
+
chainId: number;
|
|
250
|
+
chainName: string;
|
|
18
251
|
}
|
|
19
252
|
export interface ContractInfo {
|
|
20
253
|
chainId: number;
|
|
@@ -32,58 +265,29 @@ export interface ContractInfo {
|
|
|
32
265
|
queuedAt?: string;
|
|
33
266
|
status: ResourceStatus;
|
|
34
267
|
}
|
|
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;
|
|
268
|
+
export interface ContractInfoExtensionBridgeInfo {
|
|
269
|
+
tokenAddress: string;
|
|
48
270
|
}
|
|
49
|
-
export interface
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
271
|
+
export interface ContractInfoExtensionIndexingInfo {
|
|
272
|
+
useOnChainBalance: boolean;
|
|
273
|
+
}
|
|
274
|
+
export interface ContractInfoExtensions {
|
|
275
|
+
link?: string;
|
|
54
276
|
description?: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
properties?: {
|
|
59
|
-
[key: string]: any;
|
|
277
|
+
categories?: Array<string>;
|
|
278
|
+
bridgeInfo?: {
|
|
279
|
+
[key: string]: ContractInfoExtensionBridgeInfo;
|
|
60
280
|
};
|
|
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;
|
|
281
|
+
indexingInfo?: ContractInfoExtensionIndexingInfo;
|
|
282
|
+
ogImage?: string;
|
|
283
|
+
ogName?: string;
|
|
284
|
+
originChainId?: number;
|
|
285
|
+
originAddress?: string;
|
|
286
|
+
blacklist?: boolean;
|
|
287
|
+
verified?: boolean;
|
|
288
|
+
verifiedBy?: string;
|
|
289
|
+
featured?: boolean;
|
|
290
|
+
featureIndex?: number;
|
|
87
291
|
}
|
|
88
292
|
export declare enum ContractType {
|
|
89
293
|
UNKNOWN = "UNKNOWN",
|
|
@@ -95,12 +299,59 @@ export declare enum ContractType {
|
|
|
95
299
|
ERC20_BRIDGE = "ERC20_BRIDGE",
|
|
96
300
|
ERC721_BRIDGE = "ERC721_BRIDGE",
|
|
97
301
|
ERC1155_BRIDGE = "ERC1155_BRIDGE",
|
|
98
|
-
SEQ_MARKETPLACE = "SEQ_MARKETPLACE"
|
|
302
|
+
SEQ_MARKETPLACE = "SEQ_MARKETPLACE",
|
|
303
|
+
ERC6909 = "ERC6909"
|
|
99
304
|
}
|
|
100
|
-
export declare enum
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
305
|
+
export declare enum ContractVerificationStatus {
|
|
306
|
+
VERIFIED = "VERIFIED",
|
|
307
|
+
UNVERIFIED = "UNVERIFIED",
|
|
308
|
+
ALL = "ALL"
|
|
309
|
+
}
|
|
310
|
+
export interface DiskUsage {
|
|
311
|
+
humanReadable: string;
|
|
312
|
+
used: number;
|
|
313
|
+
size: number;
|
|
314
|
+
percent: number;
|
|
315
|
+
dirs: {
|
|
316
|
+
[key: string]: string;
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
export interface EtherBalance {
|
|
320
|
+
accountAddress: string;
|
|
321
|
+
balanceWei: string;
|
|
322
|
+
}
|
|
323
|
+
export interface EventDecoded {
|
|
324
|
+
topicHash: string;
|
|
325
|
+
eventSig: string;
|
|
326
|
+
types: Array<string>;
|
|
327
|
+
names: Array<string>;
|
|
328
|
+
values: Array<string>;
|
|
329
|
+
}
|
|
330
|
+
export interface EventFilter {
|
|
331
|
+
events?: Array<string>;
|
|
332
|
+
contractAddresses?: Array<string>;
|
|
333
|
+
accounts?: Array<string>;
|
|
334
|
+
tokenIDs?: Array<string>;
|
|
335
|
+
}
|
|
336
|
+
export interface EventLog {
|
|
337
|
+
id: number;
|
|
338
|
+
uid: string;
|
|
339
|
+
type: EventLogType;
|
|
340
|
+
blockNumber: number;
|
|
341
|
+
blockHash: string;
|
|
342
|
+
parentBlockHash: string;
|
|
343
|
+
contractAddress: string;
|
|
344
|
+
contractType: ContractType;
|
|
345
|
+
txnHash: string;
|
|
346
|
+
txnIndex: number;
|
|
347
|
+
txnLogIndex: number;
|
|
348
|
+
logDataType: EventLogDataType;
|
|
349
|
+
ts: string;
|
|
350
|
+
txnInfo?: TxnInfo;
|
|
351
|
+
rawLog?: {
|
|
352
|
+
[key: string]: any;
|
|
353
|
+
};
|
|
354
|
+
event?: EventDecoded;
|
|
104
355
|
}
|
|
105
356
|
export declare enum EventLogDataType {
|
|
106
357
|
EVENT = "EVENT",
|
|
@@ -108,55 +359,10 @@ export declare enum EventLogDataType {
|
|
|
108
359
|
NATIVE_TOKEN_TRANSFER = "NATIVE_TOKEN_TRANSFER",
|
|
109
360
|
SEQUENCE_TXN = "SEQUENCE_TXN"
|
|
110
361
|
}
|
|
111
|
-
export declare enum
|
|
112
|
-
OPEN = "OPEN",
|
|
113
|
-
CLOSED = "CLOSED",
|
|
114
|
-
CANCELLED = "CANCELLED"
|
|
115
|
-
}
|
|
116
|
-
export declare enum TxnTransferType {
|
|
362
|
+
export declare enum EventLogType {
|
|
117
363
|
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 declare enum NetworkType {
|
|
140
|
-
MAINNETS = "MAINNETS",
|
|
141
|
-
TESTNETS = "TESTNETS",
|
|
142
|
-
ALL = "ALL"
|
|
143
|
-
}
|
|
144
|
-
export interface Version {
|
|
145
|
-
webrpcVersion: string;
|
|
146
|
-
schemaVersion: string;
|
|
147
|
-
schemaHash: string;
|
|
148
|
-
appVersion: string;
|
|
149
|
-
}
|
|
150
|
-
export interface RuntimeStatus {
|
|
151
|
-
healthOK: boolean;
|
|
152
|
-
indexerEnabled: boolean;
|
|
153
|
-
startTime: string;
|
|
154
|
-
uptime: number;
|
|
155
|
-
ver: string;
|
|
156
|
-
branch: string;
|
|
157
|
-
commitHash: string;
|
|
158
|
-
chainID: number;
|
|
159
|
-
checks: RuntimeChecks;
|
|
364
|
+
BLOCK_ADDED = "BLOCK_ADDED",
|
|
365
|
+
BLOCK_REMOVED = "BLOCK_REMOVED"
|
|
160
366
|
}
|
|
161
367
|
export interface GatewayBackendResponseTime {
|
|
162
368
|
percentiles: {
|
|
@@ -169,6 +375,26 @@ export interface GatewayBackendRuntimeStatus {
|
|
|
169
375
|
chainId: number;
|
|
170
376
|
responseTime: GatewayBackendResponseTime;
|
|
171
377
|
}
|
|
378
|
+
export interface GatewayEtherBalance {
|
|
379
|
+
chainId: number;
|
|
380
|
+
errorReason?: string;
|
|
381
|
+
result: EtherBalance;
|
|
382
|
+
}
|
|
383
|
+
export interface GatewayNativeTokenBalance {
|
|
384
|
+
chainId: number;
|
|
385
|
+
errorReason?: string;
|
|
386
|
+
result: NativeTokenBalance;
|
|
387
|
+
}
|
|
388
|
+
export interface GatewayNativeTokenBalances {
|
|
389
|
+
chainId: number;
|
|
390
|
+
errorReason?: string;
|
|
391
|
+
results: Array<NativeTokenBalance>;
|
|
392
|
+
}
|
|
393
|
+
export interface GatewayPrice {
|
|
394
|
+
chainID: number;
|
|
395
|
+
errorReason?: string;
|
|
396
|
+
results: Array<Price>;
|
|
397
|
+
}
|
|
172
398
|
export interface GatewayRuntimeStatus {
|
|
173
399
|
healthOK: boolean;
|
|
174
400
|
startTime: string;
|
|
@@ -178,105 +404,153 @@ export interface GatewayRuntimeStatus {
|
|
|
178
404
|
commitHash: string;
|
|
179
405
|
backends: Array<GatewayBackendRuntimeStatus>;
|
|
180
406
|
}
|
|
181
|
-
export interface
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
commitHash: string;
|
|
407
|
+
export interface GatewayTokenBalance {
|
|
408
|
+
chainId: number;
|
|
409
|
+
errorReason?: string;
|
|
410
|
+
results: Array<TokenBalance>;
|
|
411
|
+
}
|
|
412
|
+
export interface GatewayTokenPriceQuery {
|
|
188
413
|
chainID: number;
|
|
189
|
-
|
|
414
|
+
queries: Array<TokenPriceQuery>;
|
|
190
415
|
}
|
|
191
|
-
export interface
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
416
|
+
export interface GatewayTransaction {
|
|
417
|
+
chainId: number;
|
|
418
|
+
errorReason?: string;
|
|
419
|
+
results: Array<Transaction>;
|
|
420
|
+
}
|
|
421
|
+
export interface IndexState {
|
|
422
|
+
chainId: string;
|
|
198
423
|
lastBlockNum: number;
|
|
199
|
-
|
|
200
|
-
bloomStatus: BloomStatus;
|
|
201
|
-
bond: Bond;
|
|
202
|
-
diskUsage: DiskUsage;
|
|
424
|
+
lastBlockHash: string;
|
|
203
425
|
}
|
|
204
|
-
export interface
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
size: number;
|
|
208
|
-
percent: number;
|
|
209
|
-
dirs: {
|
|
210
|
-
[key: string]: string;
|
|
211
|
-
};
|
|
426
|
+
export interface IndexedBlock {
|
|
427
|
+
blockNumber: number;
|
|
428
|
+
blockShortHash: string;
|
|
212
429
|
}
|
|
213
|
-
export interface
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
estimatedDiskUsageTotal: string;
|
|
430
|
+
export interface IndexerMetrics {
|
|
431
|
+
blocksPerSecond: number;
|
|
432
|
+
eventsPerSecond: number;
|
|
217
433
|
}
|
|
218
|
-
export interface
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
434
|
+
export interface MarketplaceOrder {
|
|
435
|
+
orderId: string;
|
|
436
|
+
tokenContract: string;
|
|
437
|
+
tokenId: string;
|
|
438
|
+
isListing: boolean;
|
|
439
|
+
quantity: string;
|
|
440
|
+
quantityRemaining: string;
|
|
441
|
+
currencyAddress: string;
|
|
442
|
+
pricePerToken: string;
|
|
443
|
+
expiry: string;
|
|
444
|
+
orderStatus: OrderStatus;
|
|
445
|
+
createdBy: string;
|
|
446
|
+
blockNumber: number;
|
|
447
|
+
orderbookContractAddress: string;
|
|
448
|
+
createdAt: number;
|
|
224
449
|
}
|
|
225
|
-
export interface
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
450
|
+
export interface MarketplaceOrderFilter {
|
|
451
|
+
isListing?: boolean;
|
|
452
|
+
userAddresses?: Array<string>;
|
|
453
|
+
currencyAddresses: Array<string>;
|
|
454
|
+
orderIds: Array<string>;
|
|
455
|
+
tokenIds: Array<string>;
|
|
456
|
+
excludeUserAddresses?: Array<string>;
|
|
457
|
+
blockNumberGt: number;
|
|
458
|
+
createdAtAfter: number;
|
|
459
|
+
orderStatuses: Array<OrderStatus>;
|
|
460
|
+
returnExpired: boolean;
|
|
229
461
|
}
|
|
230
|
-
export interface
|
|
231
|
-
|
|
232
|
-
|
|
462
|
+
export interface MarketplaceTopOrdersFilter {
|
|
463
|
+
currencyAddresses: Array<string>;
|
|
464
|
+
tokenIds: Array<string>;
|
|
465
|
+
isListing: boolean;
|
|
466
|
+
priceSort: SortOrder;
|
|
467
|
+
excludeUser?: string;
|
|
468
|
+
}
|
|
469
|
+
export interface MetadataOptions {
|
|
470
|
+
verifiedOnly?: boolean;
|
|
471
|
+
unverifiedOnly?: boolean;
|
|
472
|
+
includeContracts?: Array<string>;
|
|
233
473
|
}
|
|
234
474
|
export interface NativeTokenBalance {
|
|
235
475
|
accountAddress: string;
|
|
236
476
|
chainId: number;
|
|
477
|
+
name: string;
|
|
478
|
+
symbol: string;
|
|
237
479
|
balance: string;
|
|
480
|
+
balanceUSD: string;
|
|
481
|
+
priceUSD: string;
|
|
482
|
+
priceUpdatedAt?: string;
|
|
238
483
|
errorReason?: string;
|
|
239
484
|
}
|
|
240
|
-
export
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
485
|
+
export declare enum NetworkType {
|
|
486
|
+
MAINNETS = "MAINNETS",
|
|
487
|
+
TESTNETS = "TESTNETS",
|
|
488
|
+
ALL = "ALL"
|
|
244
489
|
}
|
|
245
|
-
export
|
|
246
|
-
|
|
247
|
-
|
|
490
|
+
export declare enum OrderStatus {
|
|
491
|
+
OPEN = "OPEN",
|
|
492
|
+
CLOSED = "CLOSED",
|
|
493
|
+
CANCELLED = "CANCELLED"
|
|
248
494
|
}
|
|
249
|
-
export interface
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
495
|
+
export interface Page {
|
|
496
|
+
page?: number;
|
|
497
|
+
column?: string;
|
|
498
|
+
before?: any;
|
|
499
|
+
after?: any;
|
|
500
|
+
sort?: Array<SortBy>;
|
|
501
|
+
pageSize?: number;
|
|
502
|
+
more?: boolean;
|
|
253
503
|
}
|
|
254
|
-
export interface
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
504
|
+
export interface PebbleMetrics {
|
|
505
|
+
compactionCount: number;
|
|
506
|
+
compactionEstimatedDebt: number;
|
|
507
|
+
compactionInProgressBytes: number;
|
|
508
|
+
compactionNumInProgress: number;
|
|
509
|
+
compactionMarkedFiles: number;
|
|
510
|
+
}
|
|
511
|
+
export interface Price {
|
|
261
512
|
contractAddress: string;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
513
|
+
tokenID?: string;
|
|
514
|
+
priceUSD: string;
|
|
515
|
+
updatedAt?: string;
|
|
516
|
+
}
|
|
517
|
+
export declare enum ResourceStatus {
|
|
518
|
+
NOT_AVAILABLE = "NOT_AVAILABLE",
|
|
519
|
+
REFRESHING = "REFRESHING",
|
|
520
|
+
AVAILABLE = "AVAILABLE"
|
|
521
|
+
}
|
|
522
|
+
export interface RuntimeChecks {
|
|
523
|
+
running: boolean;
|
|
524
|
+
runnables: any;
|
|
525
|
+
cgoEnabled: boolean;
|
|
526
|
+
quotaControlEnabled: boolean;
|
|
527
|
+
syncMode: string;
|
|
528
|
+
percentIndexed: number;
|
|
529
|
+
lastBlockNum: number;
|
|
530
|
+
lastBlockNumWithState: number;
|
|
531
|
+
bloomStatus: BloomStatus;
|
|
532
|
+
bond: Bond;
|
|
533
|
+
diskUsage: DiskUsage;
|
|
534
|
+
metrics: IndexerMetrics;
|
|
535
|
+
}
|
|
536
|
+
export interface RuntimeStatus {
|
|
537
|
+
healthOK: boolean;
|
|
538
|
+
indexerEnabled: boolean;
|
|
539
|
+
startTime: string;
|
|
540
|
+
uptime: number;
|
|
541
|
+
ver: string;
|
|
542
|
+
branch: string;
|
|
543
|
+
commitHash: string;
|
|
544
|
+
chainID: number;
|
|
545
|
+
checks: RuntimeChecks;
|
|
273
546
|
}
|
|
274
|
-
export interface
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
547
|
+
export interface SortBy {
|
|
548
|
+
column: string;
|
|
549
|
+
order: SortOrder;
|
|
550
|
+
}
|
|
551
|
+
export declare enum SortOrder {
|
|
552
|
+
DESC = "DESC",
|
|
553
|
+
ASC = "ASC"
|
|
280
554
|
}
|
|
281
555
|
export interface TokenBalance {
|
|
282
556
|
contractType: ContractType;
|
|
@@ -284,6 +558,9 @@ export interface TokenBalance {
|
|
|
284
558
|
accountAddress: string;
|
|
285
559
|
tokenID?: string;
|
|
286
560
|
balance: string;
|
|
561
|
+
balanceUSD: string;
|
|
562
|
+
priceUSD: string;
|
|
563
|
+
priceUpdatedAt?: string;
|
|
287
564
|
blockHash: string;
|
|
288
565
|
blockNumber: number;
|
|
289
566
|
chainId: number;
|
|
@@ -292,37 +569,29 @@ export interface TokenBalance {
|
|
|
292
569
|
contractInfo?: ContractInfo;
|
|
293
570
|
tokenMetadata?: TokenMetadata;
|
|
294
571
|
}
|
|
295
|
-
export interface
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
tokenId: string;
|
|
299
|
-
isListing: boolean;
|
|
300
|
-
quantity: string;
|
|
301
|
-
quantityRemaining: string;
|
|
302
|
-
currencyAddress: string;
|
|
303
|
-
pricePerToken: string;
|
|
304
|
-
expiry: string;
|
|
305
|
-
orderStatus: OrderStatus;
|
|
306
|
-
createdBy: string;
|
|
307
|
-
blockNumber: number;
|
|
308
|
-
orderbookContractAddress: string;
|
|
309
|
-
createdAt: number;
|
|
572
|
+
export interface TokenBalanceFilter {
|
|
573
|
+
contractAddress: string;
|
|
574
|
+
sinceBlockNumber: number;
|
|
310
575
|
}
|
|
311
|
-
export interface
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
576
|
+
export interface TokenBalancesByContractFilter {
|
|
577
|
+
contractAddresses: Array<string>;
|
|
578
|
+
accountAddresses?: Array<string>;
|
|
579
|
+
contractStatus?: ContractVerificationStatus;
|
|
580
|
+
tokenIDs?: Array<string>;
|
|
581
|
+
}
|
|
582
|
+
export interface TokenBalancesFilter {
|
|
583
|
+
accountAddresses: Array<string>;
|
|
584
|
+
contractStatus?: ContractVerificationStatus;
|
|
585
|
+
contractTypes?: Array<string>;
|
|
586
|
+
contractWhitelist?: Array<string>;
|
|
587
|
+
contractBlacklist?: Array<string>;
|
|
588
|
+
omitNativeBalances: boolean;
|
|
589
|
+
omitPrices?: boolean;
|
|
590
|
+
tokenIDs?: Array<string>;
|
|
321
591
|
}
|
|
322
592
|
export interface TokenHistory {
|
|
323
593
|
blockNumber: number;
|
|
324
594
|
blockHash: string;
|
|
325
|
-
accountAddress: string;
|
|
326
595
|
contractAddress: string;
|
|
327
596
|
contractType: ContractType;
|
|
328
597
|
fromAddress: string;
|
|
@@ -330,11 +599,45 @@ export interface TokenHistory {
|
|
|
330
599
|
txnHash: string;
|
|
331
600
|
txnIndex: number;
|
|
332
601
|
txnLogIndex: number;
|
|
333
|
-
logData: string;
|
|
334
602
|
tokenIDs: string;
|
|
335
|
-
|
|
603
|
+
amounts: string;
|
|
336
604
|
ts: string;
|
|
337
605
|
}
|
|
606
|
+
export interface TokenIDRange {
|
|
607
|
+
start: string;
|
|
608
|
+
end: string;
|
|
609
|
+
}
|
|
610
|
+
export interface TokenMetadata {
|
|
611
|
+
chainId?: number;
|
|
612
|
+
contractAddress?: string;
|
|
613
|
+
tokenId: string;
|
|
614
|
+
source: string;
|
|
615
|
+
name: string;
|
|
616
|
+
description?: string;
|
|
617
|
+
image?: string;
|
|
618
|
+
video?: string;
|
|
619
|
+
audio?: string;
|
|
620
|
+
properties?: {
|
|
621
|
+
[key: string]: any;
|
|
622
|
+
};
|
|
623
|
+
attributes: Array<{
|
|
624
|
+
[key: string]: any;
|
|
625
|
+
}>;
|
|
626
|
+
image_data?: string;
|
|
627
|
+
external_url?: string;
|
|
628
|
+
background_color?: string;
|
|
629
|
+
animation_url?: string;
|
|
630
|
+
decimals?: number;
|
|
631
|
+
updatedAt?: string;
|
|
632
|
+
assets?: Array<Asset>;
|
|
633
|
+
status: ResourceStatus;
|
|
634
|
+
queuedAt?: string;
|
|
635
|
+
lastFetched?: string;
|
|
636
|
+
}
|
|
637
|
+
export interface TokenPriceQuery {
|
|
638
|
+
contractAddress: string;
|
|
639
|
+
tokenID?: string;
|
|
640
|
+
}
|
|
338
641
|
export interface TokenSupply {
|
|
339
642
|
tokenID: string;
|
|
340
643
|
supply: string;
|
|
@@ -351,19 +654,12 @@ export interface Transaction {
|
|
|
351
654
|
transfers?: Array<TxnTransfer>;
|
|
352
655
|
timestamp: string;
|
|
353
656
|
}
|
|
354
|
-
export interface
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
tokenIds?: Array<string>;
|
|
361
|
-
amounts: Array<string>;
|
|
362
|
-
logIndex: number;
|
|
363
|
-
contractInfo?: ContractInfo;
|
|
364
|
-
tokenMetadata?: {
|
|
365
|
-
[key: string]: TokenMetadata;
|
|
366
|
-
};
|
|
657
|
+
export interface TransactionFilter {
|
|
658
|
+
txnHash?: string;
|
|
659
|
+
from?: string;
|
|
660
|
+
to?: string;
|
|
661
|
+
contractAddress?: string;
|
|
662
|
+
event?: string;
|
|
367
663
|
}
|
|
368
664
|
export interface TransactionHistoryFilter {
|
|
369
665
|
accountAddress?: string;
|
|
@@ -375,13 +671,13 @@ export interface TransactionHistoryFilter {
|
|
|
375
671
|
fromBlock?: number;
|
|
376
672
|
toBlock?: number;
|
|
377
673
|
tokenID?: string;
|
|
674
|
+
omitPrices?: boolean;
|
|
378
675
|
}
|
|
379
|
-
export interface
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
event?: string;
|
|
676
|
+
export interface TransactionLog {
|
|
677
|
+
contractAddress: string;
|
|
678
|
+
topics: Array<string>;
|
|
679
|
+
data: string;
|
|
680
|
+
index: number;
|
|
385
681
|
}
|
|
386
682
|
export interface TransactionReceipt {
|
|
387
683
|
txnHash: string;
|
|
@@ -398,28 +694,56 @@ export interface TransactionReceipt {
|
|
|
398
694
|
final: boolean;
|
|
399
695
|
reorged: boolean;
|
|
400
696
|
}
|
|
401
|
-
export
|
|
697
|
+
export declare enum TransactionStatus {
|
|
698
|
+
FAILED = "FAILED",
|
|
699
|
+
SUCCESSFUL = "SUCCESSFUL"
|
|
700
|
+
}
|
|
701
|
+
export declare enum TransactionType {
|
|
702
|
+
LegacyTxnType = "LegacyTxnType",
|
|
703
|
+
AccessListTxnType = "AccessListTxnType",
|
|
704
|
+
DynamicFeeTxnType = "DynamicFeeTxnType"
|
|
705
|
+
}
|
|
706
|
+
export interface TxnInfo {
|
|
707
|
+
from: string;
|
|
708
|
+
to: string;
|
|
709
|
+
value: string;
|
|
710
|
+
}
|
|
711
|
+
export interface TxnTransfer {
|
|
712
|
+
transferType: TxnTransferType;
|
|
402
713
|
contractAddress: string;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
714
|
+
contractType: ContractType;
|
|
715
|
+
from: string;
|
|
716
|
+
to: string;
|
|
717
|
+
tokenIds?: Array<string>;
|
|
718
|
+
amounts: Array<string>;
|
|
719
|
+
logIndex: number;
|
|
720
|
+
amountsUSD?: Array<string>;
|
|
721
|
+
pricesUSD?: Array<string>;
|
|
722
|
+
contractInfo?: ContractInfo;
|
|
723
|
+
tokenMetadata?: {
|
|
724
|
+
[key: string]: TokenMetadata;
|
|
725
|
+
};
|
|
406
726
|
}
|
|
407
|
-
export
|
|
408
|
-
|
|
409
|
-
|
|
727
|
+
export declare enum TxnTransferType {
|
|
728
|
+
UNKNOWN = "UNKNOWN",
|
|
729
|
+
SEND = "SEND",
|
|
730
|
+
RECEIVE = "RECEIVE"
|
|
410
731
|
}
|
|
411
|
-
export interface
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
sort?: Array<SortBy>;
|
|
417
|
-
pageSize?: number;
|
|
418
|
-
more?: boolean;
|
|
732
|
+
export interface Version {
|
|
733
|
+
webrpcVersion: string;
|
|
734
|
+
schemaVersion: string;
|
|
735
|
+
schemaHash: string;
|
|
736
|
+
appVersion: string;
|
|
419
737
|
}
|
|
420
|
-
export interface
|
|
421
|
-
|
|
422
|
-
|
|
738
|
+
export interface WALWriterRuntimeStatus {
|
|
739
|
+
healthOK: boolean;
|
|
740
|
+
startTime: string;
|
|
741
|
+
uptime: number;
|
|
742
|
+
ver: string;
|
|
743
|
+
branch: string;
|
|
744
|
+
commitHash: string;
|
|
745
|
+
chainID: number;
|
|
746
|
+
percentWALWritten: number;
|
|
423
747
|
}
|
|
424
748
|
export interface WebhookListener {
|
|
425
749
|
id: number;
|
|
@@ -430,516 +754,498 @@ export interface WebhookListener {
|
|
|
430
754
|
updatedAt: string;
|
|
431
755
|
active: boolean;
|
|
432
756
|
}
|
|
433
|
-
export interface
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
tokenIDs?: Array<string>;
|
|
757
|
+
export interface AddWebhookListenerRequest {
|
|
758
|
+
url: string;
|
|
759
|
+
filters: EventFilter;
|
|
760
|
+
projectId?: number;
|
|
438
761
|
}
|
|
439
|
-
export interface
|
|
440
|
-
|
|
441
|
-
|
|
762
|
+
export interface AddWebhookListenerResponse {
|
|
763
|
+
status: boolean;
|
|
764
|
+
listener: WebhookListener;
|
|
442
765
|
}
|
|
443
|
-
export interface
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
includeContracts?: Array<string>;
|
|
766
|
+
export interface FetchTransactionReceiptRequest {
|
|
767
|
+
txnHash: string;
|
|
768
|
+
maxBlockWait?: number;
|
|
447
769
|
}
|
|
448
|
-
export interface
|
|
449
|
-
|
|
450
|
-
contractStatus?: ContractVerificationStatus;
|
|
451
|
-
contractTypes?: Array<string>;
|
|
452
|
-
contractWhitelist?: Array<string>;
|
|
453
|
-
contractBlacklist?: Array<string>;
|
|
454
|
-
omitNativeBalances: boolean;
|
|
770
|
+
export interface FetchTransactionReceiptResponse {
|
|
771
|
+
receipt: TransactionReceipt;
|
|
455
772
|
}
|
|
456
|
-
export interface
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
contractStatus?: ContractVerificationStatus;
|
|
773
|
+
export interface FetchTransactionReceiptWithFilterRequest {
|
|
774
|
+
filter: TransactionFilter;
|
|
775
|
+
maxBlockWait?: number;
|
|
460
776
|
}
|
|
461
|
-
export interface
|
|
462
|
-
|
|
463
|
-
errorReason?: string;
|
|
464
|
-
result: EtherBalance;
|
|
777
|
+
export interface FetchTransactionReceiptWithFilterResponse {
|
|
778
|
+
receipt: TransactionReceipt;
|
|
465
779
|
}
|
|
466
|
-
export interface
|
|
467
|
-
|
|
468
|
-
errorReason?: string;
|
|
469
|
-
result: NativeTokenBalance;
|
|
780
|
+
export interface GetAllWebhookListenersRequest {
|
|
781
|
+
projectId?: number;
|
|
470
782
|
}
|
|
471
|
-
export interface
|
|
472
|
-
|
|
473
|
-
errorReason?: string;
|
|
474
|
-
results: Array<NativeTokenBalance>;
|
|
783
|
+
export interface GetAllWebhookListenersResponse {
|
|
784
|
+
listeners: Array<WebhookListener>;
|
|
475
785
|
}
|
|
476
|
-
export interface
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
786
|
+
export interface GetBalanceUpdatesRequest {
|
|
787
|
+
contractAddress: string;
|
|
788
|
+
lastBlockNumber: number;
|
|
789
|
+
lastBlockHash?: string;
|
|
790
|
+
page?: Page;
|
|
480
791
|
}
|
|
481
|
-
export interface
|
|
482
|
-
|
|
483
|
-
|
|
792
|
+
export interface GetBalanceUpdatesResponse {
|
|
793
|
+
page: Page;
|
|
794
|
+
balances: Array<TokenBalance>;
|
|
484
795
|
}
|
|
485
|
-
export interface
|
|
486
|
-
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;
|
|
487
|
-
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>;
|
|
488
|
-
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusReturn>;
|
|
489
|
-
getChainID(headers?: object, signal?: AbortSignal): Promise<GetChainIDReturn>;
|
|
490
|
-
getEtherBalance(args: GetEtherBalanceArgs, headers?: object, signal?: AbortSignal): Promise<GetEtherBalanceReturn>;
|
|
491
|
-
getNativeTokenBalance(args: GetNativeTokenBalanceArgs, headers?: object, signal?: AbortSignal): Promise<GetNativeTokenBalanceReturn>;
|
|
492
|
-
getTokenBalancesSummary(args: GetTokenBalancesSummaryArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesSummaryReturn>;
|
|
493
|
-
getTokenBalancesDetails(args: GetTokenBalancesDetailsArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesDetailsReturn>;
|
|
494
|
-
getTokenBalancesByContract(args: GetTokenBalancesByContractArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesByContractReturn>;
|
|
495
|
-
getTokenBalances(args: GetTokenBalancesArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenBalancesReturn>;
|
|
496
|
-
getTokenSupplies(args: GetTokenSuppliesArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenSuppliesReturn>;
|
|
497
|
-
getTokenSuppliesMap(args: GetTokenSuppliesMapArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenSuppliesMapReturn>;
|
|
498
|
-
getTokenIDs(args: GetTokenIDsArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenIDsReturn>;
|
|
499
|
-
getTokenIDRanges(args: GetTokenIDRangesArgs, headers?: object, signal?: AbortSignal): Promise<GetTokenIDRangesReturn>;
|
|
500
|
-
getBalanceUpdates(args: GetBalanceUpdatesArgs, headers?: object, signal?: AbortSignal): Promise<GetBalanceUpdatesReturn>;
|
|
501
|
-
getTransactionHistory(args: GetTransactionHistoryArgs, headers?: object, signal?: AbortSignal): Promise<GetTransactionHistoryReturn>;
|
|
502
|
-
fetchTransactionReceipt(args: FetchTransactionReceiptArgs, headers?: object, signal?: AbortSignal): Promise<FetchTransactionReceiptReturn>;
|
|
503
|
-
fetchTransactionReceiptWithFilter(args: FetchTransactionReceiptWithFilterArgs, headers?: object, signal?: AbortSignal): Promise<FetchTransactionReceiptWithFilterReturn>;
|
|
504
|
-
subscribeReceipts(args: SubscribeReceiptsArgs, options: WebrpcStreamOptions<SubscribeReceiptsReturn>): Promise<void>;
|
|
505
|
-
subscribeEvents(args: SubscribeEventsArgs, options: WebrpcStreamOptions<SubscribeEventsReturn>): Promise<void>;
|
|
506
|
-
subscribeBalanceUpdates(args: SubscribeBalanceUpdatesArgs, options: WebrpcStreamOptions<SubscribeBalanceUpdatesReturn>): Promise<void>;
|
|
507
|
-
syncBalance(args: SyncBalanceArgs, headers?: object, signal?: AbortSignal): Promise<SyncBalanceReturn>;
|
|
508
|
-
getAllWebhookListeners(args: GetAllWebhookListenersArgs, headers?: object, signal?: AbortSignal): Promise<GetAllWebhookListenersReturn>;
|
|
509
|
-
getWebhookListener(args: GetWebhookListenerArgs, headers?: object, signal?: AbortSignal): Promise<GetWebhookListenerReturn>;
|
|
510
|
-
addWebhookListener(args: AddWebhookListenerArgs, headers?: object, signal?: AbortSignal): Promise<AddWebhookListenerReturn>;
|
|
511
|
-
updateWebhookListener(args: UpdateWebhookListenerArgs, headers?: object, signal?: AbortSignal): Promise<UpdateWebhookListenerReturn>;
|
|
512
|
-
removeWebhookListener(args: RemoveWebhookListenerArgs, headers?: object, signal?: AbortSignal): Promise<RemoveWebhookListenerReturn>;
|
|
513
|
-
removeAllWebhookListeners(args: RemoveAllWebhookListenersArgs, headers?: object, signal?: AbortSignal): Promise<RemoveAllWebhookListenersReturn>;
|
|
514
|
-
toggleWebhookListener(args: ToggleWebhookListenerArgs, headers?: object, signal?: AbortSignal): Promise<ToggleWebhookListenerReturn>;
|
|
515
|
-
pauseAllWebhookListeners(args: PauseAllWebhookListenersArgs, headers?: object, signal?: AbortSignal): Promise<PauseAllWebhookListenersReturn>;
|
|
516
|
-
resumeAllWebhookListeners(args: ResumeAllWebhookListenersArgs, headers?: object, signal?: AbortSignal): Promise<ResumeAllWebhookListenersReturn>;
|
|
517
|
-
getOrderbookOrders(args: GetOrderbookOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetOrderbookOrdersReturn>;
|
|
518
|
-
getTopOrders(args: GetTopOrdersArgs, headers?: object, signal?: AbortSignal): Promise<GetTopOrdersReturn>;
|
|
519
|
-
}
|
|
520
|
-
export interface PingArgs {
|
|
521
|
-
}
|
|
522
|
-
export interface PingReturn {
|
|
523
|
-
status: boolean;
|
|
796
|
+
export interface GetChainIDRequest {
|
|
524
797
|
}
|
|
525
|
-
export interface
|
|
798
|
+
export interface GetChainIDResponse {
|
|
799
|
+
chainID: number;
|
|
526
800
|
}
|
|
527
|
-
export interface
|
|
528
|
-
|
|
801
|
+
export interface GetEtherBalanceRequest {
|
|
802
|
+
accountAddress?: string;
|
|
529
803
|
}
|
|
530
|
-
export interface
|
|
804
|
+
export interface GetEtherBalanceResponse {
|
|
805
|
+
balance: EtherBalance;
|
|
531
806
|
}
|
|
532
|
-
export interface
|
|
533
|
-
|
|
807
|
+
export interface GetMarketplaceOrdersRequest {
|
|
808
|
+
marketplaceContractAddress: string;
|
|
809
|
+
collectionAddress: string;
|
|
810
|
+
filter?: MarketplaceOrderFilter;
|
|
811
|
+
page?: Page;
|
|
534
812
|
}
|
|
535
|
-
export interface
|
|
813
|
+
export interface GetMarketplaceOrdersResponse {
|
|
814
|
+
page?: Page;
|
|
815
|
+
orders: Array<MarketplaceOrder>;
|
|
536
816
|
}
|
|
537
|
-
export interface
|
|
538
|
-
|
|
817
|
+
export interface GetMarketplaceTopOrdersRequest {
|
|
818
|
+
marketplaceContractAddress: string;
|
|
819
|
+
collectionAddress: string;
|
|
820
|
+
filter: MarketplaceTopOrdersFilter;
|
|
539
821
|
}
|
|
540
|
-
export interface
|
|
822
|
+
export interface GetMarketplaceTopOrdersResponse {
|
|
823
|
+
orders: Array<MarketplaceOrder>;
|
|
824
|
+
}
|
|
825
|
+
export interface GetNativeTokenBalanceRequest {
|
|
541
826
|
accountAddress?: string;
|
|
827
|
+
omitPrices?: boolean;
|
|
542
828
|
}
|
|
543
|
-
export interface
|
|
544
|
-
balance:
|
|
829
|
+
export interface GetNativeTokenBalanceResponse {
|
|
830
|
+
balance: NativeTokenBalance;
|
|
545
831
|
}
|
|
546
|
-
export interface
|
|
832
|
+
export interface GetTokenBalancesRequest {
|
|
547
833
|
accountAddress?: string;
|
|
834
|
+
contractAddress?: string;
|
|
835
|
+
tokenID?: string;
|
|
836
|
+
includeMetadata?: boolean;
|
|
837
|
+
metadataOptions?: MetadataOptions;
|
|
838
|
+
includeCollectionTokens?: boolean;
|
|
839
|
+
page?: Page;
|
|
548
840
|
}
|
|
549
|
-
export interface
|
|
550
|
-
|
|
841
|
+
export interface GetTokenBalancesResponse {
|
|
842
|
+
page: Page;
|
|
843
|
+
balances: Array<TokenBalance>;
|
|
551
844
|
}
|
|
552
|
-
export interface
|
|
553
|
-
filter:
|
|
845
|
+
export interface GetTokenBalancesByContractRequest {
|
|
846
|
+
filter: TokenBalancesByContractFilter;
|
|
554
847
|
omitMetadata?: boolean;
|
|
555
848
|
page?: Page;
|
|
556
849
|
}
|
|
557
|
-
export interface
|
|
850
|
+
export interface GetTokenBalancesByContractResponse {
|
|
558
851
|
page: Page;
|
|
559
|
-
nativeBalances: Array<NativeTokenBalance>;
|
|
560
852
|
balances: Array<TokenBalance>;
|
|
561
853
|
}
|
|
562
|
-
export interface
|
|
854
|
+
export interface GetTokenBalancesDetailsRequest {
|
|
563
855
|
filter: TokenBalancesFilter;
|
|
564
856
|
omitMetadata?: boolean;
|
|
565
857
|
page?: Page;
|
|
566
858
|
}
|
|
567
|
-
export interface
|
|
859
|
+
export interface GetTokenBalancesDetailsResponse {
|
|
568
860
|
page: Page;
|
|
569
861
|
nativeBalances: Array<NativeTokenBalance>;
|
|
570
862
|
balances: Array<TokenBalance>;
|
|
571
863
|
}
|
|
572
|
-
export interface
|
|
573
|
-
filter:
|
|
864
|
+
export interface GetTokenBalancesSummaryRequest {
|
|
865
|
+
filter: TokenBalancesFilter;
|
|
574
866
|
omitMetadata?: boolean;
|
|
575
867
|
page?: Page;
|
|
576
868
|
}
|
|
577
|
-
export interface
|
|
869
|
+
export interface GetTokenBalancesSummaryResponse {
|
|
578
870
|
page: Page;
|
|
871
|
+
nativeBalances: Array<NativeTokenBalance>;
|
|
579
872
|
balances: Array<TokenBalance>;
|
|
580
873
|
}
|
|
581
|
-
export interface
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
874
|
+
export interface GetTokenIDRangesRequest {
|
|
875
|
+
contractAddress: string;
|
|
876
|
+
lastTokenID?: string;
|
|
877
|
+
}
|
|
878
|
+
export interface GetTokenIDRangesResponse {
|
|
879
|
+
contractType: ContractType;
|
|
880
|
+
tokenIDRanges: Array<TokenIDRange>;
|
|
881
|
+
moreRanges: boolean;
|
|
882
|
+
}
|
|
883
|
+
export interface GetTokenIDsRequest {
|
|
884
|
+
contractAddress: string;
|
|
588
885
|
page?: Page;
|
|
589
886
|
}
|
|
590
|
-
export interface
|
|
887
|
+
export interface GetTokenIDsResponse {
|
|
591
888
|
page: Page;
|
|
592
|
-
|
|
889
|
+
contractType: ContractType;
|
|
890
|
+
tokenIDs: Array<string>;
|
|
891
|
+
}
|
|
892
|
+
export interface GetTokenPriceRequest {
|
|
893
|
+
q: TokenPriceQuery;
|
|
894
|
+
}
|
|
895
|
+
export interface GetTokenPriceResponse {
|
|
896
|
+
price: Price;
|
|
593
897
|
}
|
|
594
|
-
export interface
|
|
898
|
+
export interface GetTokenPricesRequest {
|
|
899
|
+
q: Array<TokenPriceQuery>;
|
|
900
|
+
}
|
|
901
|
+
export interface GetTokenPricesResponse {
|
|
902
|
+
prices: Array<Price>;
|
|
903
|
+
}
|
|
904
|
+
export interface GetTokenSuppliesRequest {
|
|
595
905
|
contractAddress: string;
|
|
596
906
|
includeMetadata?: boolean;
|
|
597
|
-
metadataOptions?: MetadataOptions;
|
|
598
907
|
page?: Page;
|
|
599
908
|
}
|
|
600
|
-
export interface
|
|
909
|
+
export interface GetTokenSuppliesResponse {
|
|
601
910
|
page: Page;
|
|
602
911
|
contractType: ContractType;
|
|
603
912
|
tokenIDs: Array<TokenSupply>;
|
|
604
913
|
}
|
|
605
|
-
export interface
|
|
914
|
+
export interface GetTokenSuppliesMapRequest {
|
|
606
915
|
tokenMap: {
|
|
607
916
|
[key: string]: Array<string>;
|
|
608
917
|
};
|
|
609
918
|
includeMetadata?: boolean;
|
|
610
|
-
metadataOptions?: MetadataOptions;
|
|
611
919
|
}
|
|
612
|
-
export interface
|
|
920
|
+
export interface GetTokenSuppliesMapResponse {
|
|
613
921
|
supplies: {
|
|
614
922
|
[key: string]: Array<TokenSupply>;
|
|
615
923
|
};
|
|
616
924
|
}
|
|
617
|
-
export interface
|
|
618
|
-
contractAddress: string;
|
|
619
|
-
page?: Page;
|
|
620
|
-
}
|
|
621
|
-
export interface GetTokenIDsReturn {
|
|
622
|
-
page: Page;
|
|
623
|
-
contractType: ContractType;
|
|
624
|
-
tokenIDs: Array<string>;
|
|
625
|
-
}
|
|
626
|
-
export interface GetTokenIDRangesArgs {
|
|
627
|
-
contractAddress: string;
|
|
628
|
-
}
|
|
629
|
-
export interface GetTokenIDRangesReturn {
|
|
630
|
-
contractType: ContractType;
|
|
631
|
-
tokenIDRanges: Array<TokenIDRange>;
|
|
632
|
-
moreRanges: boolean;
|
|
633
|
-
}
|
|
634
|
-
export interface GetBalanceUpdatesArgs {
|
|
635
|
-
contractAddress: string;
|
|
636
|
-
lastBlockNumber: number;
|
|
637
|
-
lastBlockHash?: string;
|
|
638
|
-
page?: Page;
|
|
639
|
-
}
|
|
640
|
-
export interface GetBalanceUpdatesReturn {
|
|
641
|
-
page: Page;
|
|
642
|
-
balances: Array<TokenBalance>;
|
|
643
|
-
}
|
|
644
|
-
export interface GetTransactionHistoryArgs {
|
|
925
|
+
export interface GetTransactionHistoryRequest {
|
|
645
926
|
filter: TransactionHistoryFilter;
|
|
646
927
|
page?: Page;
|
|
647
928
|
includeMetadata?: boolean;
|
|
648
929
|
metadataOptions?: MetadataOptions;
|
|
649
930
|
}
|
|
650
|
-
export interface
|
|
931
|
+
export interface GetTransactionHistoryResponse {
|
|
651
932
|
page: Page;
|
|
652
933
|
transactions: Array<Transaction>;
|
|
653
934
|
}
|
|
654
|
-
export interface
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}
|
|
658
|
-
export interface FetchTransactionReceiptReturn {
|
|
659
|
-
receipt: TransactionReceipt;
|
|
660
|
-
}
|
|
661
|
-
export interface FetchTransactionReceiptWithFilterArgs {
|
|
662
|
-
filter: TransactionFilter;
|
|
663
|
-
maxBlockWait?: number;
|
|
664
|
-
}
|
|
665
|
-
export interface FetchTransactionReceiptWithFilterReturn {
|
|
666
|
-
receipt: TransactionReceipt;
|
|
667
|
-
}
|
|
668
|
-
export interface SubscribeReceiptsArgs {
|
|
669
|
-
filter: TransactionFilter;
|
|
935
|
+
export interface GetWebhookListenerRequest {
|
|
936
|
+
id: number;
|
|
937
|
+
projectId?: number;
|
|
670
938
|
}
|
|
671
|
-
export interface
|
|
672
|
-
|
|
939
|
+
export interface GetWebhookListenerResponse {
|
|
940
|
+
listener: WebhookListener;
|
|
673
941
|
}
|
|
674
|
-
export interface
|
|
675
|
-
|
|
942
|
+
export interface ListTokenPricesRequest {
|
|
943
|
+
page?: Page;
|
|
676
944
|
}
|
|
677
|
-
export interface
|
|
678
|
-
|
|
945
|
+
export interface ListTokenPricesResponse {
|
|
946
|
+
page: Page;
|
|
947
|
+
prices: Array<Price>;
|
|
679
948
|
}
|
|
680
|
-
export interface
|
|
681
|
-
|
|
949
|
+
export interface PauseAllWebhookListenersRequest {
|
|
950
|
+
projectId?: number;
|
|
682
951
|
}
|
|
683
|
-
export interface
|
|
684
|
-
|
|
952
|
+
export interface PauseAllWebhookListenersResponse {
|
|
953
|
+
status: boolean;
|
|
685
954
|
}
|
|
686
|
-
export interface
|
|
687
|
-
accountAddress: string;
|
|
688
|
-
contractAddress: string;
|
|
689
|
-
tokenID?: string;
|
|
955
|
+
export interface PingRequest {
|
|
690
956
|
}
|
|
691
|
-
export interface
|
|
957
|
+
export interface PingResponse {
|
|
958
|
+
status: boolean;
|
|
692
959
|
}
|
|
693
|
-
export interface
|
|
960
|
+
export interface RemoveAllWebhookListenersRequest {
|
|
694
961
|
projectId?: number;
|
|
695
962
|
}
|
|
696
|
-
export interface
|
|
697
|
-
|
|
963
|
+
export interface RemoveAllWebhookListenersResponse {
|
|
964
|
+
status: boolean;
|
|
698
965
|
}
|
|
699
|
-
export interface
|
|
966
|
+
export interface RemoveWebhookListenerRequest {
|
|
700
967
|
id: number;
|
|
701
968
|
projectId?: number;
|
|
702
969
|
}
|
|
703
|
-
export interface
|
|
704
|
-
|
|
970
|
+
export interface RemoveWebhookListenerResponse {
|
|
971
|
+
status: boolean;
|
|
705
972
|
}
|
|
706
|
-
export interface
|
|
707
|
-
url: string;
|
|
708
|
-
filters: EventFilter;
|
|
973
|
+
export interface ResumeAllWebhookListenersRequest {
|
|
709
974
|
projectId?: number;
|
|
710
975
|
}
|
|
711
|
-
export interface
|
|
976
|
+
export interface ResumeAllWebhookListenersResponse {
|
|
712
977
|
status: boolean;
|
|
713
|
-
listener: WebhookListener;
|
|
714
978
|
}
|
|
715
|
-
export interface
|
|
716
|
-
listener: WebhookListener;
|
|
717
|
-
projectId?: number;
|
|
979
|
+
export interface RuntimeStatusRequest {
|
|
718
980
|
}
|
|
719
|
-
export interface
|
|
720
|
-
status:
|
|
981
|
+
export interface RuntimeStatusResponse {
|
|
982
|
+
status: RuntimeStatus;
|
|
721
983
|
}
|
|
722
|
-
export interface
|
|
723
|
-
|
|
724
|
-
projectId?: number;
|
|
984
|
+
export interface SubscribeBalanceUpdatesRequest {
|
|
985
|
+
contractAddress: string;
|
|
725
986
|
}
|
|
726
|
-
export interface
|
|
727
|
-
|
|
987
|
+
export interface SubscribeBalanceUpdatesResponse {
|
|
988
|
+
balance: TokenBalance;
|
|
728
989
|
}
|
|
729
|
-
export interface
|
|
730
|
-
|
|
990
|
+
export interface SubscribeEventsRequest {
|
|
991
|
+
filter: EventFilter;
|
|
731
992
|
}
|
|
732
|
-
export interface
|
|
733
|
-
|
|
993
|
+
export interface SubscribeEventsResponse {
|
|
994
|
+
log: EventLog;
|
|
734
995
|
}
|
|
735
|
-
export interface
|
|
736
|
-
|
|
737
|
-
projectId?: number;
|
|
996
|
+
export interface SubscribeReceiptsRequest {
|
|
997
|
+
filter: TransactionFilter;
|
|
738
998
|
}
|
|
739
|
-
export interface
|
|
740
|
-
|
|
999
|
+
export interface SubscribeReceiptsResponse {
|
|
1000
|
+
receipt: TransactionReceipt;
|
|
741
1001
|
}
|
|
742
|
-
export interface
|
|
743
|
-
|
|
1002
|
+
export interface SyncBalanceRequest {
|
|
1003
|
+
accountAddress: string;
|
|
1004
|
+
contractAddress: string;
|
|
1005
|
+
tokenID?: string;
|
|
744
1006
|
}
|
|
745
|
-
export interface
|
|
746
|
-
status: boolean;
|
|
1007
|
+
export interface SyncBalanceResponse {
|
|
747
1008
|
}
|
|
748
|
-
export interface
|
|
1009
|
+
export interface ToggleWebhookListenerRequest {
|
|
1010
|
+
id: number;
|
|
749
1011
|
projectId?: number;
|
|
750
1012
|
}
|
|
751
|
-
export interface
|
|
752
|
-
|
|
1013
|
+
export interface ToggleWebhookListenerResponse {
|
|
1014
|
+
webhookListener: WebhookListener;
|
|
753
1015
|
}
|
|
754
|
-
export interface
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
collectionAddress: string;
|
|
758
|
-
currencyAddresses: Array<string>;
|
|
759
|
-
filter: OrderbookOrderFilter;
|
|
760
|
-
orderStatuses: Array<OrderStatus>;
|
|
761
|
-
filters: Array<OrderbookOrderFilter>;
|
|
762
|
-
beforeExpiryTimestamp: number;
|
|
763
|
-
blockNumberAfter: number;
|
|
764
|
-
createdAtAfter: number;
|
|
1016
|
+
export interface UpdateWebhookListenerRequest {
|
|
1017
|
+
listener: WebhookListener;
|
|
1018
|
+
projectId?: number;
|
|
765
1019
|
}
|
|
766
|
-
export interface
|
|
767
|
-
|
|
768
|
-
orders: Array<OrderbookOrder>;
|
|
1020
|
+
export interface UpdateWebhookListenerResponse {
|
|
1021
|
+
status: boolean;
|
|
769
1022
|
}
|
|
770
|
-
export interface
|
|
771
|
-
orderbookContractAddress: string;
|
|
772
|
-
collectionAddress: string;
|
|
773
|
-
currencyAddresses: Array<string>;
|
|
774
|
-
tokenIDs: Array<string>;
|
|
775
|
-
isListing: boolean;
|
|
776
|
-
priceSort: SortOrder;
|
|
777
|
-
excludeUser?: string;
|
|
1023
|
+
export interface VersionRequest {
|
|
778
1024
|
}
|
|
779
|
-
export interface
|
|
780
|
-
|
|
1025
|
+
export interface VersionResponse {
|
|
1026
|
+
version: Version;
|
|
781
1027
|
}
|
|
782
|
-
export declare class Indexer implements
|
|
1028
|
+
export declare class Indexer implements IndexerClient {
|
|
783
1029
|
protected hostname: string;
|
|
784
1030
|
protected fetch: Fetch;
|
|
785
1031
|
protected path: string;
|
|
786
1032
|
constructor(hostname: string, fetch: Fetch);
|
|
787
1033
|
private url;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
1034
|
+
queryKey: {
|
|
1035
|
+
addWebhookListener: (req: AddWebhookListenerRequest) => readonly ["Indexer", "addWebhookListener", AddWebhookListenerRequest];
|
|
1036
|
+
fetchTransactionReceipt: (req: FetchTransactionReceiptRequest) => readonly ["Indexer", "fetchTransactionReceipt", FetchTransactionReceiptRequest];
|
|
1037
|
+
fetchTransactionReceiptWithFilter: (req: FetchTransactionReceiptWithFilterRequest) => readonly ["Indexer", "fetchTransactionReceiptWithFilter", FetchTransactionReceiptWithFilterRequest];
|
|
1038
|
+
getAllWebhookListeners: (req: GetAllWebhookListenersRequest) => readonly ["Indexer", "getAllWebhookListeners", GetAllWebhookListenersRequest];
|
|
1039
|
+
getBalanceUpdates: (req: GetBalanceUpdatesRequest) => readonly ["Indexer", "getBalanceUpdates", GetBalanceUpdatesRequest];
|
|
1040
|
+
getChainID: () => readonly ["Indexer", "getChainID"];
|
|
1041
|
+
getEtherBalance: (req: GetEtherBalanceRequest) => readonly ["Indexer", "getEtherBalance", GetEtherBalanceRequest];
|
|
1042
|
+
getMarketplaceOrders: (req: GetMarketplaceOrdersRequest) => readonly ["Indexer", "getMarketplaceOrders", GetMarketplaceOrdersRequest];
|
|
1043
|
+
getMarketplaceTopOrders: (req: GetMarketplaceTopOrdersRequest) => readonly ["Indexer", "getMarketplaceTopOrders", GetMarketplaceTopOrdersRequest];
|
|
1044
|
+
getNativeTokenBalance: (req: GetNativeTokenBalanceRequest) => readonly ["Indexer", "getNativeTokenBalance", GetNativeTokenBalanceRequest];
|
|
1045
|
+
getTokenBalances: (req: GetTokenBalancesRequest) => readonly ["Indexer", "getTokenBalances", GetTokenBalancesRequest];
|
|
1046
|
+
getTokenBalancesByContract: (req: GetTokenBalancesByContractRequest) => readonly ["Indexer", "getTokenBalancesByContract", GetTokenBalancesByContractRequest];
|
|
1047
|
+
getTokenBalancesDetails: (req: GetTokenBalancesDetailsRequest) => readonly ["Indexer", "getTokenBalancesDetails", GetTokenBalancesDetailsRequest];
|
|
1048
|
+
getTokenBalancesSummary: (req: GetTokenBalancesSummaryRequest) => readonly ["Indexer", "getTokenBalancesSummary", GetTokenBalancesSummaryRequest];
|
|
1049
|
+
getTokenIDRanges: (req: GetTokenIDRangesRequest) => readonly ["Indexer", "getTokenIDRanges", GetTokenIDRangesRequest];
|
|
1050
|
+
getTokenIDs: (req: GetTokenIDsRequest) => readonly ["Indexer", "getTokenIDs", GetTokenIDsRequest];
|
|
1051
|
+
getTokenPrice: (req: GetTokenPriceRequest) => readonly ["Indexer", "getTokenPrice", GetTokenPriceRequest];
|
|
1052
|
+
getTokenPrices: (req: GetTokenPricesRequest) => readonly ["Indexer", "getTokenPrices", GetTokenPricesRequest];
|
|
1053
|
+
getTokenSupplies: (req: GetTokenSuppliesRequest) => readonly ["Indexer", "getTokenSupplies", GetTokenSuppliesRequest];
|
|
1054
|
+
getTokenSuppliesMap: (req: GetTokenSuppliesMapRequest) => readonly ["Indexer", "getTokenSuppliesMap", GetTokenSuppliesMapRequest];
|
|
1055
|
+
getTransactionHistory: (req: GetTransactionHistoryRequest) => readonly ["Indexer", "getTransactionHistory", GetTransactionHistoryRequest];
|
|
1056
|
+
getWebhookListener: (req: GetWebhookListenerRequest) => readonly ["Indexer", "getWebhookListener", GetWebhookListenerRequest];
|
|
1057
|
+
listTokenPrices: (req: ListTokenPricesRequest) => readonly ["Indexer", "listTokenPrices", ListTokenPricesRequest];
|
|
1058
|
+
pauseAllWebhookListeners: (req: PauseAllWebhookListenersRequest) => readonly ["Indexer", "pauseAllWebhookListeners", PauseAllWebhookListenersRequest];
|
|
1059
|
+
ping: () => readonly ["Indexer", "ping"];
|
|
1060
|
+
removeAllWebhookListeners: (req: RemoveAllWebhookListenersRequest) => readonly ["Indexer", "removeAllWebhookListeners", RemoveAllWebhookListenersRequest];
|
|
1061
|
+
removeWebhookListener: (req: RemoveWebhookListenerRequest) => readonly ["Indexer", "removeWebhookListener", RemoveWebhookListenerRequest];
|
|
1062
|
+
resumeAllWebhookListeners: (req: ResumeAllWebhookListenersRequest) => readonly ["Indexer", "resumeAllWebhookListeners", ResumeAllWebhookListenersRequest];
|
|
1063
|
+
runtimeStatus: () => readonly ["Indexer", "runtimeStatus"];
|
|
1064
|
+
subscribeBalanceUpdates: (req: SubscribeBalanceUpdatesRequest) => readonly ["Indexer", "subscribeBalanceUpdates", SubscribeBalanceUpdatesRequest];
|
|
1065
|
+
subscribeEvents: (req: SubscribeEventsRequest) => readonly ["Indexer", "subscribeEvents", SubscribeEventsRequest];
|
|
1066
|
+
subscribeReceipts: (req: SubscribeReceiptsRequest) => readonly ["Indexer", "subscribeReceipts", SubscribeReceiptsRequest];
|
|
1067
|
+
syncBalance: (req: SyncBalanceRequest) => readonly ["Indexer", "syncBalance", SyncBalanceRequest];
|
|
1068
|
+
toggleWebhookListener: (req: ToggleWebhookListenerRequest) => readonly ["Indexer", "toggleWebhookListener", ToggleWebhookListenerRequest];
|
|
1069
|
+
updateWebhookListener: (req: UpdateWebhookListenerRequest) => readonly ["Indexer", "updateWebhookListener", UpdateWebhookListenerRequest];
|
|
1070
|
+
version: () => readonly ["Indexer", "version"];
|
|
1071
|
+
};
|
|
1072
|
+
addWebhookListener: (req: AddWebhookListenerRequest, headers?: object, signal?: AbortSignal) => Promise<AddWebhookListenerResponse>;
|
|
1073
|
+
fetchTransactionReceipt: (req: FetchTransactionReceiptRequest, headers?: object, signal?: AbortSignal) => Promise<FetchTransactionReceiptResponse>;
|
|
1074
|
+
fetchTransactionReceiptWithFilter: (req: FetchTransactionReceiptWithFilterRequest, headers?: object, signal?: AbortSignal) => Promise<FetchTransactionReceiptWithFilterResponse>;
|
|
1075
|
+
getAllWebhookListeners: (req: GetAllWebhookListenersRequest, headers?: object, signal?: AbortSignal) => Promise<GetAllWebhookListenersResponse>;
|
|
1076
|
+
getBalanceUpdates: (req: GetBalanceUpdatesRequest, headers?: object, signal?: AbortSignal) => Promise<GetBalanceUpdatesResponse>;
|
|
1077
|
+
getChainID: (headers?: object, signal?: AbortSignal) => Promise<GetChainIDResponse>;
|
|
1078
|
+
getEtherBalance: (req: GetEtherBalanceRequest, headers?: object, signal?: AbortSignal) => Promise<GetEtherBalanceResponse>;
|
|
1079
|
+
getMarketplaceOrders: (req: GetMarketplaceOrdersRequest, headers?: object, signal?: AbortSignal) => Promise<GetMarketplaceOrdersResponse>;
|
|
1080
|
+
getMarketplaceTopOrders: (req: GetMarketplaceTopOrdersRequest, headers?: object, signal?: AbortSignal) => Promise<GetMarketplaceTopOrdersResponse>;
|
|
1081
|
+
getNativeTokenBalance: (req: GetNativeTokenBalanceRequest, headers?: object, signal?: AbortSignal) => Promise<GetNativeTokenBalanceResponse>;
|
|
1082
|
+
getTokenBalances: (req: GetTokenBalancesRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesResponse>;
|
|
1083
|
+
getTokenBalancesByContract: (req: GetTokenBalancesByContractRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesByContractResponse>;
|
|
1084
|
+
getTokenBalancesDetails: (req: GetTokenBalancesDetailsRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesDetailsResponse>;
|
|
1085
|
+
getTokenBalancesSummary: (req: GetTokenBalancesSummaryRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenBalancesSummaryResponse>;
|
|
1086
|
+
getTokenIDRanges: (req: GetTokenIDRangesRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenIDRangesResponse>;
|
|
1087
|
+
getTokenIDs: (req: GetTokenIDsRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenIDsResponse>;
|
|
1088
|
+
getTokenPrice: (req: GetTokenPriceRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenPriceResponse>;
|
|
1089
|
+
getTokenPrices: (req: GetTokenPricesRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenPricesResponse>;
|
|
1090
|
+
getTokenSupplies: (req: GetTokenSuppliesRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenSuppliesResponse>;
|
|
1091
|
+
getTokenSuppliesMap: (req: GetTokenSuppliesMapRequest, headers?: object, signal?: AbortSignal) => Promise<GetTokenSuppliesMapResponse>;
|
|
1092
|
+
getTransactionHistory: (req: GetTransactionHistoryRequest, headers?: object, signal?: AbortSignal) => Promise<GetTransactionHistoryResponse>;
|
|
1093
|
+
getWebhookListener: (req: GetWebhookListenerRequest, headers?: object, signal?: AbortSignal) => Promise<GetWebhookListenerResponse>;
|
|
1094
|
+
listTokenPrices: (req: ListTokenPricesRequest, headers?: object, signal?: AbortSignal) => Promise<ListTokenPricesResponse>;
|
|
1095
|
+
pauseAllWebhookListeners: (req: PauseAllWebhookListenersRequest, headers?: object, signal?: AbortSignal) => Promise<PauseAllWebhookListenersResponse>;
|
|
1096
|
+
ping: (headers?: object, signal?: AbortSignal) => Promise<PingResponse>;
|
|
1097
|
+
removeAllWebhookListeners: (req: RemoveAllWebhookListenersRequest, headers?: object, signal?: AbortSignal) => Promise<RemoveAllWebhookListenersResponse>;
|
|
1098
|
+
removeWebhookListener: (req: RemoveWebhookListenerRequest, headers?: object, signal?: AbortSignal) => Promise<RemoveWebhookListenerResponse>;
|
|
1099
|
+
resumeAllWebhookListeners: (req: ResumeAllWebhookListenersRequest, headers?: object, signal?: AbortSignal) => Promise<ResumeAllWebhookListenersResponse>;
|
|
1100
|
+
runtimeStatus: (headers?: object, signal?: AbortSignal) => Promise<RuntimeStatusResponse>;
|
|
1101
|
+
subscribeBalanceUpdates: (req: SubscribeBalanceUpdatesRequest, options: WebrpcStreamOptions<SubscribeBalanceUpdatesResponse>) => WebrpcStreamController;
|
|
1102
|
+
subscribeEvents: (req: SubscribeEventsRequest, options: WebrpcStreamOptions<SubscribeEventsResponse>) => WebrpcStreamController;
|
|
1103
|
+
subscribeReceipts: (req: SubscribeReceiptsRequest, options: WebrpcStreamOptions<SubscribeReceiptsResponse>) => WebrpcStreamController;
|
|
1104
|
+
syncBalance: (req: SyncBalanceRequest, headers?: object, signal?: AbortSignal) => Promise<SyncBalanceResponse>;
|
|
1105
|
+
toggleWebhookListener: (req: ToggleWebhookListenerRequest, headers?: object, signal?: AbortSignal) => Promise<ToggleWebhookListenerResponse>;
|
|
1106
|
+
updateWebhookListener: (req: UpdateWebhookListenerRequest, headers?: object, signal?: AbortSignal) => Promise<UpdateWebhookListenerResponse>;
|
|
1107
|
+
version: (headers?: object, signal?: AbortSignal) => Promise<VersionResponse>;
|
|
1108
|
+
}
|
|
1109
|
+
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1110
|
+
export interface WebrpcStreamOptions<T> extends WebrpcOptions {
|
|
1111
|
+
onMessage: (message: T) => void;
|
|
1112
|
+
onError: (error: WebrpcError, reconnect: () => void) => void;
|
|
1113
|
+
onOpen?: () => void;
|
|
1114
|
+
onClose?: () => void;
|
|
1115
|
+
}
|
|
1116
|
+
export interface WebrpcOptions {
|
|
1117
|
+
headers?: HeadersInit;
|
|
1118
|
+
signal?: AbortSignal;
|
|
1119
|
+
}
|
|
1120
|
+
export interface WebrpcStreamController {
|
|
1121
|
+
abort: (reason?: any) => void;
|
|
1122
|
+
closed: Promise<void>;
|
|
821
1123
|
}
|
|
1124
|
+
export declare const JsonEncode: <T = any>(obj: T) => string;
|
|
1125
|
+
export declare const JsonDecode: <T = any>(data: string | any, _typ?: string) => T;
|
|
1126
|
+
type WebrpcErrorParams = {
|
|
1127
|
+
name?: string;
|
|
1128
|
+
code?: number;
|
|
1129
|
+
message?: string;
|
|
1130
|
+
status?: number;
|
|
1131
|
+
cause?: string;
|
|
1132
|
+
};
|
|
822
1133
|
export declare class WebrpcError extends Error {
|
|
823
|
-
name: string;
|
|
824
1134
|
code: number;
|
|
825
|
-
message: string;
|
|
826
1135
|
status: number;
|
|
827
|
-
|
|
828
|
-
/** @deprecated Use message instead of msg. Deprecated in webrpc v0.11.0. */
|
|
829
|
-
msg: string;
|
|
830
|
-
constructor(name: string, code: number, message: string, status: number, cause?: string);
|
|
1136
|
+
constructor(error?: WebrpcErrorParams);
|
|
831
1137
|
static new(payload: any): WebrpcError;
|
|
832
1138
|
}
|
|
833
1139
|
export declare class WebrpcEndpointError extends WebrpcError {
|
|
834
|
-
constructor(
|
|
1140
|
+
constructor(error?: WebrpcErrorParams);
|
|
835
1141
|
}
|
|
836
1142
|
export declare class WebrpcRequestFailedError extends WebrpcError {
|
|
837
|
-
constructor(
|
|
1143
|
+
constructor(error?: WebrpcErrorParams);
|
|
838
1144
|
}
|
|
839
1145
|
export declare class WebrpcBadRouteError extends WebrpcError {
|
|
840
|
-
constructor(
|
|
1146
|
+
constructor(error?: WebrpcErrorParams);
|
|
841
1147
|
}
|
|
842
1148
|
export declare class WebrpcBadMethodError extends WebrpcError {
|
|
843
|
-
constructor(
|
|
1149
|
+
constructor(error?: WebrpcErrorParams);
|
|
844
1150
|
}
|
|
845
1151
|
export declare class WebrpcBadRequestError extends WebrpcError {
|
|
846
|
-
constructor(
|
|
1152
|
+
constructor(error?: WebrpcErrorParams);
|
|
847
1153
|
}
|
|
848
1154
|
export declare class WebrpcBadResponseError extends WebrpcError {
|
|
849
|
-
constructor(
|
|
1155
|
+
constructor(error?: WebrpcErrorParams);
|
|
850
1156
|
}
|
|
851
1157
|
export declare class WebrpcServerPanicError extends WebrpcError {
|
|
852
|
-
constructor(
|
|
1158
|
+
constructor(error?: WebrpcErrorParams);
|
|
853
1159
|
}
|
|
854
1160
|
export declare class WebrpcInternalErrorError extends WebrpcError {
|
|
855
|
-
constructor(
|
|
1161
|
+
constructor(error?: WebrpcErrorParams);
|
|
856
1162
|
}
|
|
857
|
-
export declare class
|
|
858
|
-
constructor(
|
|
1163
|
+
export declare class WebrpcClientAbortedError extends WebrpcError {
|
|
1164
|
+
constructor(error?: WebrpcErrorParams);
|
|
859
1165
|
}
|
|
860
1166
|
export declare class WebrpcStreamLostError extends WebrpcError {
|
|
861
|
-
constructor(
|
|
1167
|
+
constructor(error?: WebrpcErrorParams);
|
|
862
1168
|
}
|
|
863
1169
|
export declare class WebrpcStreamFinishedError extends WebrpcError {
|
|
864
|
-
constructor(
|
|
865
|
-
}
|
|
866
|
-
export declare class UnauthorizedError extends WebrpcError {
|
|
867
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
868
|
-
}
|
|
869
|
-
export declare class PermissionDeniedError extends WebrpcError {
|
|
870
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
871
|
-
}
|
|
872
|
-
export declare class SessionExpiredError extends WebrpcError {
|
|
873
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
874
|
-
}
|
|
875
|
-
export declare class MethodNotFoundError extends WebrpcError {
|
|
876
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
877
|
-
}
|
|
878
|
-
export declare class RequestConflictError extends WebrpcError {
|
|
879
|
-
constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
|
|
1170
|
+
constructor(error?: WebrpcErrorParams);
|
|
880
1171
|
}
|
|
881
1172
|
export declare class AbortedError extends WebrpcError {
|
|
882
|
-
constructor(
|
|
1173
|
+
constructor(error?: WebrpcErrorParams);
|
|
883
1174
|
}
|
|
884
|
-
export declare class
|
|
885
|
-
constructor(
|
|
1175
|
+
export declare class AccessKeyMismatchError extends WebrpcError {
|
|
1176
|
+
constructor(error?: WebrpcErrorParams);
|
|
886
1177
|
}
|
|
887
|
-
export declare class
|
|
888
|
-
constructor(
|
|
1178
|
+
export declare class AccessKeyNotFoundError extends WebrpcError {
|
|
1179
|
+
constructor(error?: WebrpcErrorParams);
|
|
889
1180
|
}
|
|
890
|
-
export declare class
|
|
891
|
-
constructor(
|
|
1181
|
+
export declare class AtLeastOneKeyError extends WebrpcError {
|
|
1182
|
+
constructor(error?: WebrpcErrorParams);
|
|
892
1183
|
}
|
|
893
|
-
export declare class
|
|
894
|
-
constructor(
|
|
1184
|
+
export declare class GeoblockedError extends WebrpcError {
|
|
1185
|
+
constructor(error?: WebrpcErrorParams);
|
|
895
1186
|
}
|
|
896
|
-
export declare class
|
|
897
|
-
constructor(
|
|
1187
|
+
export declare class InvalidArgumentError extends WebrpcError {
|
|
1188
|
+
constructor(error?: WebrpcErrorParams);
|
|
898
1189
|
}
|
|
899
1190
|
export declare class InvalidOriginError extends WebrpcError {
|
|
900
|
-
constructor(
|
|
1191
|
+
constructor(error?: WebrpcErrorParams);
|
|
901
1192
|
}
|
|
902
1193
|
export declare class InvalidServiceError extends WebrpcError {
|
|
903
|
-
constructor(
|
|
1194
|
+
constructor(error?: WebrpcErrorParams);
|
|
904
1195
|
}
|
|
905
|
-
export declare class
|
|
906
|
-
constructor(
|
|
1196
|
+
export declare class MaxAccessKeysError extends WebrpcError {
|
|
1197
|
+
constructor(error?: WebrpcErrorParams);
|
|
907
1198
|
}
|
|
908
|
-
export declare class
|
|
909
|
-
constructor(
|
|
1199
|
+
export declare class MetadataCallFailedError extends WebrpcError {
|
|
1200
|
+
constructor(error?: WebrpcErrorParams);
|
|
910
1201
|
}
|
|
911
|
-
export declare class
|
|
912
|
-
constructor(
|
|
1202
|
+
export declare class MethodNotFoundError extends WebrpcError {
|
|
1203
|
+
constructor(error?: WebrpcErrorParams);
|
|
913
1204
|
}
|
|
914
1205
|
export declare class NoDefaultKeyError extends WebrpcError {
|
|
915
|
-
constructor(
|
|
1206
|
+
constructor(error?: WebrpcErrorParams);
|
|
916
1207
|
}
|
|
917
|
-
export declare class
|
|
918
|
-
constructor(
|
|
1208
|
+
export declare class NotFoundError extends WebrpcError {
|
|
1209
|
+
constructor(error?: WebrpcErrorParams);
|
|
919
1210
|
}
|
|
920
|
-
export declare class
|
|
921
|
-
constructor(
|
|
1211
|
+
export declare class PermissionDeniedError extends WebrpcError {
|
|
1212
|
+
constructor(error?: WebrpcErrorParams);
|
|
922
1213
|
}
|
|
923
|
-
export declare class
|
|
924
|
-
constructor(
|
|
1214
|
+
export declare class ProjectNotFoundError extends WebrpcError {
|
|
1215
|
+
constructor(error?: WebrpcErrorParams);
|
|
925
1216
|
}
|
|
926
|
-
export declare class
|
|
927
|
-
constructor(
|
|
1217
|
+
export declare class QueryFailedError extends WebrpcError {
|
|
1218
|
+
constructor(error?: WebrpcErrorParams);
|
|
928
1219
|
}
|
|
929
|
-
export declare class
|
|
930
|
-
constructor(
|
|
1220
|
+
export declare class QuotaExceededError extends WebrpcError {
|
|
1221
|
+
constructor(error?: WebrpcErrorParams);
|
|
931
1222
|
}
|
|
932
|
-
export declare class
|
|
933
|
-
constructor(
|
|
1223
|
+
export declare class RateLimitError extends WebrpcError {
|
|
1224
|
+
constructor(error?: WebrpcErrorParams);
|
|
1225
|
+
}
|
|
1226
|
+
export declare class RateLimitedError extends WebrpcError {
|
|
1227
|
+
constructor(error?: WebrpcErrorParams);
|
|
1228
|
+
}
|
|
1229
|
+
export declare class RequestConflictError extends WebrpcError {
|
|
1230
|
+
constructor(error?: WebrpcErrorParams);
|
|
934
1231
|
}
|
|
935
1232
|
export declare class ResourceExhaustedError extends WebrpcError {
|
|
936
|
-
constructor(
|
|
1233
|
+
constructor(error?: WebrpcErrorParams);
|
|
937
1234
|
}
|
|
938
|
-
export declare class
|
|
939
|
-
constructor(
|
|
1235
|
+
export declare class SessionExpiredError extends WebrpcError {
|
|
1236
|
+
constructor(error?: WebrpcErrorParams);
|
|
940
1237
|
}
|
|
941
|
-
export declare class
|
|
942
|
-
constructor(
|
|
1238
|
+
export declare class TimeoutError extends WebrpcError {
|
|
1239
|
+
constructor(error?: WebrpcErrorParams);
|
|
1240
|
+
}
|
|
1241
|
+
export declare class UnauthorizedError extends WebrpcError {
|
|
1242
|
+
constructor(error?: WebrpcErrorParams);
|
|
1243
|
+
}
|
|
1244
|
+
export declare class UnauthorizedUserError extends WebrpcError {
|
|
1245
|
+
constructor(error?: WebrpcErrorParams);
|
|
1246
|
+
}
|
|
1247
|
+
export declare class UnavailableError extends WebrpcError {
|
|
1248
|
+
constructor(error?: WebrpcErrorParams);
|
|
943
1249
|
}
|
|
944
1250
|
export declare enum errors {
|
|
945
1251
|
WebrpcEndpoint = "WebrpcEndpoint",
|
|
@@ -950,45 +1256,86 @@ export declare enum errors {
|
|
|
950
1256
|
WebrpcBadResponse = "WebrpcBadResponse",
|
|
951
1257
|
WebrpcServerPanic = "WebrpcServerPanic",
|
|
952
1258
|
WebrpcInternalError = "WebrpcInternalError",
|
|
953
|
-
|
|
1259
|
+
WebrpcClientAborted = "WebrpcClientAborted",
|
|
954
1260
|
WebrpcStreamLost = "WebrpcStreamLost",
|
|
955
1261
|
WebrpcStreamFinished = "WebrpcStreamFinished",
|
|
956
|
-
Unauthorized = "Unauthorized",
|
|
957
|
-
PermissionDenied = "PermissionDenied",
|
|
958
|
-
SessionExpired = "SessionExpired",
|
|
959
|
-
MethodNotFound = "MethodNotFound",
|
|
960
|
-
RequestConflict = "RequestConflict",
|
|
961
1262
|
Aborted = "Aborted",
|
|
962
|
-
Geoblocked = "Geoblocked",
|
|
963
|
-
RateLimited = "RateLimited",
|
|
964
|
-
ProjectNotFound = "ProjectNotFound",
|
|
965
|
-
AccessKeyNotFound = "AccessKeyNotFound",
|
|
966
1263
|
AccessKeyMismatch = "AccessKeyMismatch",
|
|
1264
|
+
AccessKeyNotFound = "AccessKeyNotFound",
|
|
1265
|
+
AtLeastOneKey = "AtLeastOneKey",
|
|
1266
|
+
Geoblocked = "Geoblocked",
|
|
1267
|
+
InvalidArgument = "InvalidArgument",
|
|
967
1268
|
InvalidOrigin = "InvalidOrigin",
|
|
968
1269
|
InvalidService = "InvalidService",
|
|
969
|
-
UnauthorizedUser = "UnauthorizedUser",
|
|
970
|
-
QuotaExceeded = "QuotaExceeded",
|
|
971
|
-
RateLimit = "RateLimit",
|
|
972
|
-
NoDefaultKey = "NoDefaultKey",
|
|
973
1270
|
MaxAccessKeys = "MaxAccessKeys",
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1271
|
+
MetadataCallFailed = "MetadataCallFailed",
|
|
1272
|
+
MethodNotFound = "MethodNotFound",
|
|
1273
|
+
NoDefaultKey = "NoDefaultKey",
|
|
1274
|
+
NotFound = "NotFound",
|
|
1275
|
+
PermissionDenied = "PermissionDenied",
|
|
1276
|
+
ProjectNotFound = "ProjectNotFound",
|
|
978
1277
|
QueryFailed = "QueryFailed",
|
|
1278
|
+
QuotaExceeded = "QuotaExceeded",
|
|
1279
|
+
RateLimit = "RateLimit",
|
|
1280
|
+
RateLimited = "RateLimited",
|
|
1281
|
+
RequestConflict = "RequestConflict",
|
|
979
1282
|
ResourceExhausted = "ResourceExhausted",
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1283
|
+
SessionExpired = "SessionExpired",
|
|
1284
|
+
Timeout = "Timeout",
|
|
1285
|
+
Unauthorized = "Unauthorized",
|
|
1286
|
+
UnauthorizedUser = "UnauthorizedUser",
|
|
1287
|
+
Unavailable = "Unavailable"
|
|
1288
|
+
}
|
|
1289
|
+
export declare enum WebrpcErrorCodes {
|
|
1290
|
+
WebrpcEndpoint = 0,
|
|
1291
|
+
WebrpcRequestFailed = -1,
|
|
1292
|
+
WebrpcBadRoute = -2,
|
|
1293
|
+
WebrpcBadMethod = -3,
|
|
1294
|
+
WebrpcBadRequest = -4,
|
|
1295
|
+
WebrpcBadResponse = -5,
|
|
1296
|
+
WebrpcServerPanic = -6,
|
|
1297
|
+
WebrpcInternalError = -7,
|
|
1298
|
+
WebrpcClientAborted = -8,
|
|
1299
|
+
WebrpcStreamLost = -9,
|
|
1300
|
+
WebrpcStreamFinished = -10,
|
|
1301
|
+
Aborted = 1005,
|
|
1302
|
+
AccessKeyMismatch = 1102,
|
|
1303
|
+
AccessKeyNotFound = 1101,
|
|
1304
|
+
AtLeastOneKey = 1302,
|
|
1305
|
+
Geoblocked = 1006,
|
|
1306
|
+
InvalidArgument = 2001,
|
|
1307
|
+
InvalidOrigin = 1103,
|
|
1308
|
+
InvalidService = 1104,
|
|
1309
|
+
MaxAccessKeys = 1301,
|
|
1310
|
+
MetadataCallFailed = 3003,
|
|
1311
|
+
MethodNotFound = 1003,
|
|
1312
|
+
NoDefaultKey = 1300,
|
|
1313
|
+
NotFound = 3000,
|
|
1314
|
+
PermissionDenied = 1001,
|
|
1315
|
+
ProjectNotFound = 1100,
|
|
1316
|
+
QueryFailed = 2003,
|
|
1317
|
+
QuotaExceeded = 1200,
|
|
1318
|
+
RateLimit = 1201,
|
|
1319
|
+
RateLimited = 1007,
|
|
1320
|
+
RequestConflict = 1004,
|
|
1321
|
+
ResourceExhausted = 2004,
|
|
1322
|
+
SessionExpired = 1002,
|
|
1323
|
+
Timeout = 1900,
|
|
1324
|
+
Unauthorized = 1000,
|
|
1325
|
+
UnauthorizedUser = 1105,
|
|
1326
|
+
Unavailable = 2002
|
|
1327
|
+
}
|
|
1328
|
+
export declare const webrpcErrorByCode: {
|
|
1329
|
+
[code: number]: any;
|
|
1330
|
+
};
|
|
1331
|
+
export declare const WebrpcHeader = "Webrpc";
|
|
1332
|
+
export declare const WebrpcHeaderValue = "webrpc@v0.31.2;gen-typescript@v0.23.1;sequence-indexer@v0.4.0";
|
|
1333
|
+
type WebrpcGenVersions = {
|
|
1334
|
+
WebrpcGenVersion: string;
|
|
1335
|
+
codeGenName: string;
|
|
1336
|
+
codeGenVersion: string;
|
|
1337
|
+
schemaName: string;
|
|
1338
|
+
schemaVersion: string;
|
|
1339
|
+
};
|
|
1340
|
+
export declare function VersionFromHeader(headers: Headers): WebrpcGenVersions;
|
|
994
1341
|
export {};
|