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