@0xsequence/indexer 3.0.0-beta.18 → 3.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -47
- package/dist/indexer.gen.d.ts +989 -633
- package/dist/indexer.gen.d.ts.map +1 -1
- package/dist/indexer.gen.js +880 -632
- package/dist/indexergw.gen.d.ts +682 -455
- package/dist/indexergw.gen.d.ts.map +1 -1
- package/dist/indexergw.gen.js +679 -426
- package/eslint.config.js +4 -0
- package/package.json +6 -3
- package/src/index.ts +6 -6
- package/src/indexer.gen.ts +1899 -1487
- package/src/indexergw.gen.ts +1210 -946
- package/tsconfig.json +3 -1
package/dist/indexer.gen.d.ts
CHANGED
|
@@ -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,50 +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 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;
|
|
364
|
+
BLOCK_ADDED = "BLOCK_ADDED",
|
|
365
|
+
BLOCK_REMOVED = "BLOCK_REMOVED"
|
|
155
366
|
}
|
|
156
367
|
export interface GatewayBackendResponseTime {
|
|
157
368
|
percentiles: {
|
|
@@ -164,6 +375,26 @@ export interface GatewayBackendRuntimeStatus {
|
|
|
164
375
|
chainId: number;
|
|
165
376
|
responseTime: GatewayBackendResponseTime;
|
|
166
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
|
+
}
|
|
167
398
|
export interface GatewayRuntimeStatus {
|
|
168
399
|
healthOK: boolean;
|
|
169
400
|
startTime: string;
|
|
@@ -173,105 +404,153 @@ export interface GatewayRuntimeStatus {
|
|
|
173
404
|
commitHash: string;
|
|
174
405
|
backends: Array<GatewayBackendRuntimeStatus>;
|
|
175
406
|
}
|
|
176
|
-
export interface
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
commitHash: string;
|
|
407
|
+
export interface GatewayTokenBalance {
|
|
408
|
+
chainId: number;
|
|
409
|
+
errorReason?: string;
|
|
410
|
+
results: Array<TokenBalance>;
|
|
411
|
+
}
|
|
412
|
+
export interface GatewayTokenPriceQuery {
|
|
183
413
|
chainID: number;
|
|
184
|
-
|
|
414
|
+
queries: Array<TokenPriceQuery>;
|
|
185
415
|
}
|
|
186
|
-
export interface
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
416
|
+
export interface GatewayTransaction {
|
|
417
|
+
chainId: number;
|
|
418
|
+
errorReason?: string;
|
|
419
|
+
results: Array<Transaction>;
|
|
420
|
+
}
|
|
421
|
+
export interface IndexState {
|
|
422
|
+
chainId: string;
|
|
193
423
|
lastBlockNum: number;
|
|
194
|
-
|
|
195
|
-
bloomStatus: BloomStatus;
|
|
196
|
-
bond: Bond;
|
|
197
|
-
diskUsage: DiskUsage;
|
|
424
|
+
lastBlockHash: string;
|
|
198
425
|
}
|
|
199
|
-
export interface
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
size: number;
|
|
203
|
-
percent: number;
|
|
204
|
-
dirs: {
|
|
205
|
-
[key: string]: string;
|
|
206
|
-
};
|
|
426
|
+
export interface IndexedBlock {
|
|
427
|
+
blockNumber: number;
|
|
428
|
+
blockShortHash: string;
|
|
207
429
|
}
|
|
208
|
-
export interface
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
estimatedDiskUsageTotal: string;
|
|
430
|
+
export interface IndexerMetrics {
|
|
431
|
+
blocksPerSecond: number;
|
|
432
|
+
eventsPerSecond: number;
|
|
212
433
|
}
|
|
213
|
-
export interface
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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;
|
|
219
449
|
}
|
|
220
|
-
export interface
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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;
|
|
224
461
|
}
|
|
225
|
-
export interface
|
|
226
|
-
|
|
227
|
-
|
|
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>;
|
|
228
473
|
}
|
|
229
474
|
export interface NativeTokenBalance {
|
|
230
475
|
accountAddress: string;
|
|
231
476
|
chainId: number;
|
|
477
|
+
name: string;
|
|
478
|
+
symbol: string;
|
|
232
479
|
balance: string;
|
|
233
|
-
|
|
480
|
+
balanceUSD: string;
|
|
481
|
+
priceUSD: string;
|
|
482
|
+
priceUpdatedAt?: string;
|
|
483
|
+
errorReason?: string;
|
|
484
|
+
}
|
|
485
|
+
export declare enum NetworkType {
|
|
486
|
+
MAINNETS = "MAINNETS",
|
|
487
|
+
TESTNETS = "TESTNETS",
|
|
488
|
+
ALL = "ALL"
|
|
234
489
|
}
|
|
235
|
-
export
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
490
|
+
export declare enum OrderStatus {
|
|
491
|
+
OPEN = "OPEN",
|
|
492
|
+
CLOSED = "CLOSED",
|
|
493
|
+
CANCELLED = "CANCELLED"
|
|
239
494
|
}
|
|
240
|
-
export interface
|
|
241
|
-
|
|
242
|
-
|
|
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;
|
|
243
503
|
}
|
|
244
|
-
export interface
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
504
|
+
export interface PebbleMetrics {
|
|
505
|
+
compactionCount: number;
|
|
506
|
+
compactionEstimatedDebt: number;
|
|
507
|
+
compactionInProgressBytes: number;
|
|
508
|
+
compactionNumInProgress: number;
|
|
509
|
+
compactionMarkedFiles: number;
|
|
248
510
|
}
|
|
249
|
-
export interface
|
|
250
|
-
id: number;
|
|
251
|
-
uid: string;
|
|
252
|
-
type: EventLogType;
|
|
253
|
-
blockNumber: number;
|
|
254
|
-
blockHash: string;
|
|
255
|
-
parentBlockHash: string;
|
|
511
|
+
export interface Price {
|
|
256
512
|
contractAddress: string;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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;
|
|
268
546
|
}
|
|
269
|
-
export interface
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
547
|
+
export interface SortBy {
|
|
548
|
+
column: string;
|
|
549
|
+
order: SortOrder;
|
|
550
|
+
}
|
|
551
|
+
export declare enum SortOrder {
|
|
552
|
+
DESC = "DESC",
|
|
553
|
+
ASC = "ASC"
|
|
275
554
|
}
|
|
276
555
|
export interface TokenBalance {
|
|
277
556
|
contractType: ContractType;
|
|
@@ -279,6 +558,9 @@ export interface TokenBalance {
|
|
|
279
558
|
accountAddress: string;
|
|
280
559
|
tokenID?: string;
|
|
281
560
|
balance: string;
|
|
561
|
+
balanceUSD: string;
|
|
562
|
+
priceUSD: string;
|
|
563
|
+
priceUpdatedAt?: string;
|
|
282
564
|
blockHash: string;
|
|
283
565
|
blockNumber: number;
|
|
284
566
|
chainId: number;
|
|
@@ -287,37 +569,29 @@ export interface TokenBalance {
|
|
|
287
569
|
contractInfo?: ContractInfo;
|
|
288
570
|
tokenMetadata?: TokenMetadata;
|
|
289
571
|
}
|
|
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;
|
|
572
|
+
export interface TokenBalanceFilter {
|
|
573
|
+
contractAddress: string;
|
|
574
|
+
sinceBlockNumber: number;
|
|
305
575
|
}
|
|
306
|
-
export interface
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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>;
|
|
316
591
|
}
|
|
317
592
|
export interface TokenHistory {
|
|
318
593
|
blockNumber: number;
|
|
319
594
|
blockHash: string;
|
|
320
|
-
accountAddress: string;
|
|
321
595
|
contractAddress: string;
|
|
322
596
|
contractType: ContractType;
|
|
323
597
|
fromAddress: string;
|
|
@@ -325,11 +599,45 @@ export interface TokenHistory {
|
|
|
325
599
|
txnHash: string;
|
|
326
600
|
txnIndex: number;
|
|
327
601
|
txnLogIndex: number;
|
|
328
|
-
logData: string;
|
|
329
602
|
tokenIDs: string;
|
|
330
|
-
|
|
603
|
+
amounts: string;
|
|
331
604
|
ts: string;
|
|
332
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
|
+
}
|
|
333
641
|
export interface TokenSupply {
|
|
334
642
|
tokenID: string;
|
|
335
643
|
supply: string;
|
|
@@ -346,19 +654,12 @@ export interface Transaction {
|
|
|
346
654
|
transfers?: Array<TxnTransfer>;
|
|
347
655
|
timestamp: string;
|
|
348
656
|
}
|
|
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
|
-
};
|
|
657
|
+
export interface TransactionFilter {
|
|
658
|
+
txnHash?: string;
|
|
659
|
+
from?: string;
|
|
660
|
+
to?: string;
|
|
661
|
+
contractAddress?: string;
|
|
662
|
+
event?: string;
|
|
362
663
|
}
|
|
363
664
|
export interface TransactionHistoryFilter {
|
|
364
665
|
accountAddress?: string;
|
|
@@ -370,13 +671,13 @@ export interface TransactionHistoryFilter {
|
|
|
370
671
|
fromBlock?: number;
|
|
371
672
|
toBlock?: number;
|
|
372
673
|
tokenID?: string;
|
|
674
|
+
omitPrices?: boolean;
|
|
373
675
|
}
|
|
374
|
-
export interface
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
event?: string;
|
|
676
|
+
export interface TransactionLog {
|
|
677
|
+
contractAddress: string;
|
|
678
|
+
topics: Array<string>;
|
|
679
|
+
data: string;
|
|
680
|
+
index: number;
|
|
380
681
|
}
|
|
381
682
|
export interface TransactionReceipt {
|
|
382
683
|
txnHash: string;
|
|
@@ -393,28 +694,56 @@ export interface TransactionReceipt {
|
|
|
393
694
|
final: boolean;
|
|
394
695
|
reorged: boolean;
|
|
395
696
|
}
|
|
396
|
-
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;
|
|
397
713
|
contractAddress: string;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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
|
+
};
|
|
401
726
|
}
|
|
402
|
-
export
|
|
403
|
-
|
|
404
|
-
|
|
727
|
+
export declare enum TxnTransferType {
|
|
728
|
+
UNKNOWN = "UNKNOWN",
|
|
729
|
+
SEND = "SEND",
|
|
730
|
+
RECEIVE = "RECEIVE"
|
|
405
731
|
}
|
|
406
|
-
export interface
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
sort?: Array<SortBy>;
|
|
412
|
-
pageSize?: number;
|
|
413
|
-
more?: boolean;
|
|
732
|
+
export interface Version {
|
|
733
|
+
webrpcVersion: string;
|
|
734
|
+
schemaVersion: string;
|
|
735
|
+
schemaHash: string;
|
|
736
|
+
appVersion: string;
|
|
414
737
|
}
|
|
415
|
-
export interface
|
|
416
|
-
|
|
417
|
-
|
|
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;
|
|
418
747
|
}
|
|
419
748
|
export interface WebhookListener {
|
|
420
749
|
id: number;
|
|
@@ -425,512 +754,498 @@ export interface WebhookListener {
|
|
|
425
754
|
updatedAt: string;
|
|
426
755
|
active: boolean;
|
|
427
756
|
}
|
|
428
|
-
export interface
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
tokenIDs?: Array<string>;
|
|
757
|
+
export interface AddWebhookListenerRequest {
|
|
758
|
+
url: string;
|
|
759
|
+
filters: EventFilter;
|
|
760
|
+
projectId?: number;
|
|
433
761
|
}
|
|
434
|
-
export interface
|
|
435
|
-
|
|
436
|
-
|
|
762
|
+
export interface AddWebhookListenerResponse {
|
|
763
|
+
status: boolean;
|
|
764
|
+
listener: WebhookListener;
|
|
437
765
|
}
|
|
438
|
-
export interface
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
includeContracts?: Array<string>;
|
|
766
|
+
export interface FetchTransactionReceiptRequest {
|
|
767
|
+
txnHash: string;
|
|
768
|
+
maxBlockWait?: number;
|
|
442
769
|
}
|
|
443
|
-
export interface
|
|
444
|
-
|
|
445
|
-
contractStatus?: ContractVerificationStatus;
|
|
446
|
-
contractTypes?: Array<string>;
|
|
447
|
-
contractWhitelist?: Array<string>;
|
|
448
|
-
contractBlacklist?: Array<string>;
|
|
449
|
-
omitNativeBalances: boolean;
|
|
770
|
+
export interface FetchTransactionReceiptResponse {
|
|
771
|
+
receipt: TransactionReceipt;
|
|
450
772
|
}
|
|
451
|
-
export interface
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
contractStatus?: ContractVerificationStatus;
|
|
773
|
+
export interface FetchTransactionReceiptWithFilterRequest {
|
|
774
|
+
filter: TransactionFilter;
|
|
775
|
+
maxBlockWait?: number;
|
|
455
776
|
}
|
|
456
|
-
export interface
|
|
457
|
-
|
|
458
|
-
error: string;
|
|
459
|
-
result: EtherBalance;
|
|
777
|
+
export interface FetchTransactionReceiptWithFilterResponse {
|
|
778
|
+
receipt: TransactionReceipt;
|
|
460
779
|
}
|
|
461
|
-
export interface
|
|
462
|
-
|
|
463
|
-
error: string;
|
|
464
|
-
result: NativeTokenBalance;
|
|
780
|
+
export interface GetAllWebhookListenersRequest {
|
|
781
|
+
projectId?: number;
|
|
465
782
|
}
|
|
466
|
-
export interface
|
|
467
|
-
|
|
468
|
-
error: string;
|
|
469
|
-
results: Array<NativeTokenBalance>;
|
|
783
|
+
export interface GetAllWebhookListenersResponse {
|
|
784
|
+
listeners: Array<WebhookListener>;
|
|
470
785
|
}
|
|
471
|
-
export interface
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
786
|
+
export interface GetBalanceUpdatesRequest {
|
|
787
|
+
contractAddress: string;
|
|
788
|
+
lastBlockNumber: number;
|
|
789
|
+
lastBlockHash?: string;
|
|
790
|
+
page?: Page;
|
|
475
791
|
}
|
|
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;
|
|
792
|
+
export interface GetBalanceUpdatesResponse {
|
|
793
|
+
page: Page;
|
|
794
|
+
balances: Array<TokenBalance>;
|
|
515
795
|
}
|
|
516
|
-
export interface
|
|
796
|
+
export interface GetChainIDRequest {
|
|
517
797
|
}
|
|
518
|
-
export interface
|
|
519
|
-
|
|
798
|
+
export interface GetChainIDResponse {
|
|
799
|
+
chainID: number;
|
|
800
|
+
}
|
|
801
|
+
export interface GetEtherBalanceRequest {
|
|
802
|
+
accountAddress?: string;
|
|
520
803
|
}
|
|
521
|
-
export interface
|
|
804
|
+
export interface GetEtherBalanceResponse {
|
|
805
|
+
balance: EtherBalance;
|
|
522
806
|
}
|
|
523
|
-
export interface
|
|
524
|
-
|
|
807
|
+
export interface GetMarketplaceOrdersRequest {
|
|
808
|
+
marketplaceContractAddress: string;
|
|
809
|
+
collectionAddress: string;
|
|
810
|
+
filter?: MarketplaceOrderFilter;
|
|
811
|
+
page?: Page;
|
|
525
812
|
}
|
|
526
|
-
export interface
|
|
813
|
+
export interface GetMarketplaceOrdersResponse {
|
|
814
|
+
page?: Page;
|
|
815
|
+
orders: Array<MarketplaceOrder>;
|
|
527
816
|
}
|
|
528
|
-
export interface
|
|
529
|
-
|
|
817
|
+
export interface GetMarketplaceTopOrdersRequest {
|
|
818
|
+
marketplaceContractAddress: string;
|
|
819
|
+
collectionAddress: string;
|
|
820
|
+
filter: MarketplaceTopOrdersFilter;
|
|
530
821
|
}
|
|
531
|
-
export interface
|
|
822
|
+
export interface GetMarketplaceTopOrdersResponse {
|
|
823
|
+
orders: Array<MarketplaceOrder>;
|
|
824
|
+
}
|
|
825
|
+
export interface GetNativeTokenBalanceRequest {
|
|
532
826
|
accountAddress?: string;
|
|
827
|
+
omitPrices?: boolean;
|
|
533
828
|
}
|
|
534
|
-
export interface
|
|
535
|
-
balance:
|
|
829
|
+
export interface GetNativeTokenBalanceResponse {
|
|
830
|
+
balance: NativeTokenBalance;
|
|
536
831
|
}
|
|
537
|
-
export interface
|
|
832
|
+
export interface GetTokenBalancesRequest {
|
|
538
833
|
accountAddress?: string;
|
|
834
|
+
contractAddress?: string;
|
|
835
|
+
tokenID?: string;
|
|
836
|
+
includeMetadata?: boolean;
|
|
837
|
+
metadataOptions?: MetadataOptions;
|
|
838
|
+
includeCollectionTokens?: boolean;
|
|
839
|
+
page?: Page;
|
|
539
840
|
}
|
|
540
|
-
export interface
|
|
541
|
-
|
|
841
|
+
export interface GetTokenBalancesResponse {
|
|
842
|
+
page: Page;
|
|
843
|
+
balances: Array<TokenBalance>;
|
|
542
844
|
}
|
|
543
|
-
export interface
|
|
544
|
-
filter:
|
|
845
|
+
export interface GetTokenBalancesByContractRequest {
|
|
846
|
+
filter: TokenBalancesByContractFilter;
|
|
545
847
|
omitMetadata?: boolean;
|
|
546
848
|
page?: Page;
|
|
547
849
|
}
|
|
548
|
-
export interface
|
|
850
|
+
export interface GetTokenBalancesByContractResponse {
|
|
549
851
|
page: Page;
|
|
550
|
-
nativeBalances: Array<NativeTokenBalance>;
|
|
551
852
|
balances: Array<TokenBalance>;
|
|
552
853
|
}
|
|
553
|
-
export interface
|
|
854
|
+
export interface GetTokenBalancesDetailsRequest {
|
|
554
855
|
filter: TokenBalancesFilter;
|
|
555
856
|
omitMetadata?: boolean;
|
|
556
857
|
page?: Page;
|
|
557
858
|
}
|
|
558
|
-
export interface
|
|
859
|
+
export interface GetTokenBalancesDetailsResponse {
|
|
559
860
|
page: Page;
|
|
560
861
|
nativeBalances: Array<NativeTokenBalance>;
|
|
561
862
|
balances: Array<TokenBalance>;
|
|
562
863
|
}
|
|
563
|
-
export interface
|
|
564
|
-
filter:
|
|
864
|
+
export interface GetTokenBalancesSummaryRequest {
|
|
865
|
+
filter: TokenBalancesFilter;
|
|
565
866
|
omitMetadata?: boolean;
|
|
566
867
|
page?: Page;
|
|
567
868
|
}
|
|
568
|
-
export interface
|
|
869
|
+
export interface GetTokenBalancesSummaryResponse {
|
|
569
870
|
page: Page;
|
|
871
|
+
nativeBalances: Array<NativeTokenBalance>;
|
|
570
872
|
balances: Array<TokenBalance>;
|
|
571
873
|
}
|
|
572
|
-
export interface
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
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;
|
|
579
885
|
page?: Page;
|
|
580
886
|
}
|
|
581
|
-
export interface
|
|
887
|
+
export interface GetTokenIDsResponse {
|
|
582
888
|
page: Page;
|
|
583
|
-
|
|
889
|
+
contractType: ContractType;
|
|
890
|
+
tokenIDs: Array<string>;
|
|
891
|
+
}
|
|
892
|
+
export interface GetTokenPriceRequest {
|
|
893
|
+
q: TokenPriceQuery;
|
|
894
|
+
}
|
|
895
|
+
export interface GetTokenPriceResponse {
|
|
896
|
+
price: Price;
|
|
584
897
|
}
|
|
585
|
-
export interface
|
|
898
|
+
export interface GetTokenPricesRequest {
|
|
899
|
+
q: Array<TokenPriceQuery>;
|
|
900
|
+
}
|
|
901
|
+
export interface GetTokenPricesResponse {
|
|
902
|
+
prices: Array<Price>;
|
|
903
|
+
}
|
|
904
|
+
export interface GetTokenSuppliesRequest {
|
|
586
905
|
contractAddress: string;
|
|
587
906
|
includeMetadata?: boolean;
|
|
588
|
-
metadataOptions?: MetadataOptions;
|
|
589
907
|
page?: Page;
|
|
590
908
|
}
|
|
591
|
-
export interface
|
|
909
|
+
export interface GetTokenSuppliesResponse {
|
|
592
910
|
page: Page;
|
|
593
911
|
contractType: ContractType;
|
|
594
912
|
tokenIDs: Array<TokenSupply>;
|
|
595
913
|
}
|
|
596
|
-
export interface
|
|
914
|
+
export interface GetTokenSuppliesMapRequest {
|
|
597
915
|
tokenMap: {
|
|
598
916
|
[key: string]: Array<string>;
|
|
599
917
|
};
|
|
600
918
|
includeMetadata?: boolean;
|
|
601
|
-
metadataOptions?: MetadataOptions;
|
|
602
919
|
}
|
|
603
|
-
export interface
|
|
920
|
+
export interface GetTokenSuppliesMapResponse {
|
|
604
921
|
supplies: {
|
|
605
922
|
[key: string]: Array<TokenSupply>;
|
|
606
923
|
};
|
|
607
924
|
}
|
|
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 {
|
|
925
|
+
export interface GetTransactionHistoryRequest {
|
|
636
926
|
filter: TransactionHistoryFilter;
|
|
637
927
|
page?: Page;
|
|
638
928
|
includeMetadata?: boolean;
|
|
639
929
|
metadataOptions?: MetadataOptions;
|
|
640
930
|
}
|
|
641
|
-
export interface
|
|
931
|
+
export interface GetTransactionHistoryResponse {
|
|
642
932
|
page: Page;
|
|
643
933
|
transactions: Array<Transaction>;
|
|
644
934
|
}
|
|
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;
|
|
935
|
+
export interface GetWebhookListenerRequest {
|
|
936
|
+
id: number;
|
|
937
|
+
projectId?: number;
|
|
661
938
|
}
|
|
662
|
-
export interface
|
|
663
|
-
|
|
939
|
+
export interface GetWebhookListenerResponse {
|
|
940
|
+
listener: WebhookListener;
|
|
664
941
|
}
|
|
665
|
-
export interface
|
|
666
|
-
|
|
942
|
+
export interface ListTokenPricesRequest {
|
|
943
|
+
page?: Page;
|
|
667
944
|
}
|
|
668
|
-
export interface
|
|
669
|
-
|
|
945
|
+
export interface ListTokenPricesResponse {
|
|
946
|
+
page: Page;
|
|
947
|
+
prices: Array<Price>;
|
|
670
948
|
}
|
|
671
|
-
export interface
|
|
672
|
-
|
|
949
|
+
export interface PauseAllWebhookListenersRequest {
|
|
950
|
+
projectId?: number;
|
|
673
951
|
}
|
|
674
|
-
export interface
|
|
675
|
-
|
|
952
|
+
export interface PauseAllWebhookListenersResponse {
|
|
953
|
+
status: boolean;
|
|
676
954
|
}
|
|
677
|
-
export interface
|
|
678
|
-
accountAddress: string;
|
|
679
|
-
contractAddress: string;
|
|
680
|
-
tokenID?: string;
|
|
955
|
+
export interface PingRequest {
|
|
681
956
|
}
|
|
682
|
-
export interface
|
|
957
|
+
export interface PingResponse {
|
|
958
|
+
status: boolean;
|
|
683
959
|
}
|
|
684
|
-
export interface
|
|
960
|
+
export interface RemoveAllWebhookListenersRequest {
|
|
685
961
|
projectId?: number;
|
|
686
962
|
}
|
|
687
|
-
export interface
|
|
688
|
-
|
|
963
|
+
export interface RemoveAllWebhookListenersResponse {
|
|
964
|
+
status: boolean;
|
|
689
965
|
}
|
|
690
|
-
export interface
|
|
966
|
+
export interface RemoveWebhookListenerRequest {
|
|
691
967
|
id: number;
|
|
692
968
|
projectId?: number;
|
|
693
969
|
}
|
|
694
|
-
export interface
|
|
695
|
-
|
|
970
|
+
export interface RemoveWebhookListenerResponse {
|
|
971
|
+
status: boolean;
|
|
696
972
|
}
|
|
697
|
-
export interface
|
|
698
|
-
url: string;
|
|
699
|
-
filters: EventFilter;
|
|
973
|
+
export interface ResumeAllWebhookListenersRequest {
|
|
700
974
|
projectId?: number;
|
|
701
975
|
}
|
|
702
|
-
export interface
|
|
976
|
+
export interface ResumeAllWebhookListenersResponse {
|
|
703
977
|
status: boolean;
|
|
704
|
-
listener: WebhookListener;
|
|
705
978
|
}
|
|
706
|
-
export interface
|
|
707
|
-
listener: WebhookListener;
|
|
708
|
-
projectId?: number;
|
|
979
|
+
export interface RuntimeStatusRequest {
|
|
709
980
|
}
|
|
710
|
-
export interface
|
|
711
|
-
status:
|
|
981
|
+
export interface RuntimeStatusResponse {
|
|
982
|
+
status: RuntimeStatus;
|
|
712
983
|
}
|
|
713
|
-
export interface
|
|
714
|
-
|
|
715
|
-
projectId?: number;
|
|
984
|
+
export interface SubscribeBalanceUpdatesRequest {
|
|
985
|
+
contractAddress: string;
|
|
716
986
|
}
|
|
717
|
-
export interface
|
|
718
|
-
|
|
987
|
+
export interface SubscribeBalanceUpdatesResponse {
|
|
988
|
+
balance: TokenBalance;
|
|
719
989
|
}
|
|
720
|
-
export interface
|
|
721
|
-
|
|
990
|
+
export interface SubscribeEventsRequest {
|
|
991
|
+
filter: EventFilter;
|
|
722
992
|
}
|
|
723
|
-
export interface
|
|
724
|
-
|
|
993
|
+
export interface SubscribeEventsResponse {
|
|
994
|
+
log: EventLog;
|
|
725
995
|
}
|
|
726
|
-
export interface
|
|
727
|
-
|
|
728
|
-
projectId?: number;
|
|
996
|
+
export interface SubscribeReceiptsRequest {
|
|
997
|
+
filter: TransactionFilter;
|
|
729
998
|
}
|
|
730
|
-
export interface
|
|
731
|
-
|
|
999
|
+
export interface SubscribeReceiptsResponse {
|
|
1000
|
+
receipt: TransactionReceipt;
|
|
732
1001
|
}
|
|
733
|
-
export interface
|
|
734
|
-
|
|
1002
|
+
export interface SyncBalanceRequest {
|
|
1003
|
+
accountAddress: string;
|
|
1004
|
+
contractAddress: string;
|
|
1005
|
+
tokenID?: string;
|
|
735
1006
|
}
|
|
736
|
-
export interface
|
|
737
|
-
status: boolean;
|
|
1007
|
+
export interface SyncBalanceResponse {
|
|
738
1008
|
}
|
|
739
|
-
export interface
|
|
1009
|
+
export interface ToggleWebhookListenerRequest {
|
|
1010
|
+
id: number;
|
|
740
1011
|
projectId?: number;
|
|
741
1012
|
}
|
|
742
|
-
export interface
|
|
743
|
-
|
|
1013
|
+
export interface ToggleWebhookListenerResponse {
|
|
1014
|
+
webhookListener: WebhookListener;
|
|
744
1015
|
}
|
|
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;
|
|
1016
|
+
export interface UpdateWebhookListenerRequest {
|
|
1017
|
+
listener: WebhookListener;
|
|
1018
|
+
projectId?: number;
|
|
756
1019
|
}
|
|
757
|
-
export interface
|
|
758
|
-
|
|
759
|
-
orders: Array<OrderbookOrder>;
|
|
1020
|
+
export interface UpdateWebhookListenerResponse {
|
|
1021
|
+
status: boolean;
|
|
760
1022
|
}
|
|
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;
|
|
1023
|
+
export interface VersionRequest {
|
|
769
1024
|
}
|
|
770
|
-
export interface
|
|
771
|
-
|
|
1025
|
+
export interface VersionResponse {
|
|
1026
|
+
version: Version;
|
|
772
1027
|
}
|
|
773
|
-
export declare class Indexer implements
|
|
1028
|
+
export declare class Indexer implements IndexerClient {
|
|
774
1029
|
protected hostname: string;
|
|
775
1030
|
protected fetch: Fetch;
|
|
776
1031
|
protected path: string;
|
|
777
1032
|
constructor(hostname: string, fetch: Fetch);
|
|
778
1033
|
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
|
-
|
|
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>;
|
|
812
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
|
+
};
|
|
813
1133
|
export declare class WebrpcError extends Error {
|
|
814
|
-
name: string;
|
|
815
1134
|
code: number;
|
|
816
|
-
message: string;
|
|
817
1135
|
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);
|
|
1136
|
+
constructor(error?: WebrpcErrorParams);
|
|
822
1137
|
static new(payload: any): WebrpcError;
|
|
823
1138
|
}
|
|
824
1139
|
export declare class WebrpcEndpointError extends WebrpcError {
|
|
825
|
-
constructor(
|
|
1140
|
+
constructor(error?: WebrpcErrorParams);
|
|
826
1141
|
}
|
|
827
1142
|
export declare class WebrpcRequestFailedError extends WebrpcError {
|
|
828
|
-
constructor(
|
|
1143
|
+
constructor(error?: WebrpcErrorParams);
|
|
829
1144
|
}
|
|
830
1145
|
export declare class WebrpcBadRouteError extends WebrpcError {
|
|
831
|
-
constructor(
|
|
1146
|
+
constructor(error?: WebrpcErrorParams);
|
|
832
1147
|
}
|
|
833
1148
|
export declare class WebrpcBadMethodError extends WebrpcError {
|
|
834
|
-
constructor(
|
|
1149
|
+
constructor(error?: WebrpcErrorParams);
|
|
835
1150
|
}
|
|
836
1151
|
export declare class WebrpcBadRequestError extends WebrpcError {
|
|
837
|
-
constructor(
|
|
1152
|
+
constructor(error?: WebrpcErrorParams);
|
|
838
1153
|
}
|
|
839
1154
|
export declare class WebrpcBadResponseError extends WebrpcError {
|
|
840
|
-
constructor(
|
|
1155
|
+
constructor(error?: WebrpcErrorParams);
|
|
841
1156
|
}
|
|
842
1157
|
export declare class WebrpcServerPanicError extends WebrpcError {
|
|
843
|
-
constructor(
|
|
1158
|
+
constructor(error?: WebrpcErrorParams);
|
|
844
1159
|
}
|
|
845
1160
|
export declare class WebrpcInternalErrorError extends WebrpcError {
|
|
846
|
-
constructor(
|
|
1161
|
+
constructor(error?: WebrpcErrorParams);
|
|
847
1162
|
}
|
|
848
|
-
export declare class
|
|
849
|
-
constructor(
|
|
1163
|
+
export declare class WebrpcClientAbortedError extends WebrpcError {
|
|
1164
|
+
constructor(error?: WebrpcErrorParams);
|
|
850
1165
|
}
|
|
851
1166
|
export declare class WebrpcStreamLostError extends WebrpcError {
|
|
852
|
-
constructor(
|
|
1167
|
+
constructor(error?: WebrpcErrorParams);
|
|
853
1168
|
}
|
|
854
1169
|
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);
|
|
1170
|
+
constructor(error?: WebrpcErrorParams);
|
|
871
1171
|
}
|
|
872
1172
|
export declare class AbortedError extends WebrpcError {
|
|
873
|
-
constructor(
|
|
1173
|
+
constructor(error?: WebrpcErrorParams);
|
|
874
1174
|
}
|
|
875
|
-
export declare class
|
|
876
|
-
constructor(
|
|
1175
|
+
export declare class AccessKeyMismatchError extends WebrpcError {
|
|
1176
|
+
constructor(error?: WebrpcErrorParams);
|
|
877
1177
|
}
|
|
878
|
-
export declare class
|
|
879
|
-
constructor(
|
|
1178
|
+
export declare class AccessKeyNotFoundError extends WebrpcError {
|
|
1179
|
+
constructor(error?: WebrpcErrorParams);
|
|
880
1180
|
}
|
|
881
|
-
export declare class
|
|
882
|
-
constructor(
|
|
1181
|
+
export declare class AtLeastOneKeyError extends WebrpcError {
|
|
1182
|
+
constructor(error?: WebrpcErrorParams);
|
|
883
1183
|
}
|
|
884
|
-
export declare class
|
|
885
|
-
constructor(
|
|
1184
|
+
export declare class GeoblockedError extends WebrpcError {
|
|
1185
|
+
constructor(error?: WebrpcErrorParams);
|
|
886
1186
|
}
|
|
887
|
-
export declare class
|
|
888
|
-
constructor(
|
|
1187
|
+
export declare class InvalidArgumentError extends WebrpcError {
|
|
1188
|
+
constructor(error?: WebrpcErrorParams);
|
|
889
1189
|
}
|
|
890
1190
|
export declare class InvalidOriginError extends WebrpcError {
|
|
891
|
-
constructor(
|
|
1191
|
+
constructor(error?: WebrpcErrorParams);
|
|
892
1192
|
}
|
|
893
1193
|
export declare class InvalidServiceError extends WebrpcError {
|
|
894
|
-
constructor(
|
|
1194
|
+
constructor(error?: WebrpcErrorParams);
|
|
895
1195
|
}
|
|
896
|
-
export declare class
|
|
897
|
-
constructor(
|
|
1196
|
+
export declare class MaxAccessKeysError extends WebrpcError {
|
|
1197
|
+
constructor(error?: WebrpcErrorParams);
|
|
898
1198
|
}
|
|
899
|
-
export declare class
|
|
900
|
-
constructor(
|
|
1199
|
+
export declare class MetadataCallFailedError extends WebrpcError {
|
|
1200
|
+
constructor(error?: WebrpcErrorParams);
|
|
901
1201
|
}
|
|
902
|
-
export declare class
|
|
903
|
-
constructor(
|
|
1202
|
+
export declare class MethodNotFoundError extends WebrpcError {
|
|
1203
|
+
constructor(error?: WebrpcErrorParams);
|
|
904
1204
|
}
|
|
905
1205
|
export declare class NoDefaultKeyError extends WebrpcError {
|
|
906
|
-
constructor(
|
|
1206
|
+
constructor(error?: WebrpcErrorParams);
|
|
907
1207
|
}
|
|
908
|
-
export declare class
|
|
909
|
-
constructor(
|
|
1208
|
+
export declare class NotFoundError extends WebrpcError {
|
|
1209
|
+
constructor(error?: WebrpcErrorParams);
|
|
910
1210
|
}
|
|
911
|
-
export declare class
|
|
912
|
-
constructor(
|
|
1211
|
+
export declare class PermissionDeniedError extends WebrpcError {
|
|
1212
|
+
constructor(error?: WebrpcErrorParams);
|
|
913
1213
|
}
|
|
914
|
-
export declare class
|
|
915
|
-
constructor(
|
|
1214
|
+
export declare class ProjectNotFoundError extends WebrpcError {
|
|
1215
|
+
constructor(error?: WebrpcErrorParams);
|
|
916
1216
|
}
|
|
917
|
-
export declare class
|
|
918
|
-
constructor(
|
|
1217
|
+
export declare class QueryFailedError extends WebrpcError {
|
|
1218
|
+
constructor(error?: WebrpcErrorParams);
|
|
919
1219
|
}
|
|
920
|
-
export declare class
|
|
921
|
-
constructor(
|
|
1220
|
+
export declare class QuotaExceededError extends WebrpcError {
|
|
1221
|
+
constructor(error?: WebrpcErrorParams);
|
|
922
1222
|
}
|
|
923
|
-
export declare class
|
|
924
|
-
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);
|
|
925
1231
|
}
|
|
926
1232
|
export declare class ResourceExhaustedError extends WebrpcError {
|
|
927
|
-
constructor(
|
|
1233
|
+
constructor(error?: WebrpcErrorParams);
|
|
928
1234
|
}
|
|
929
|
-
export declare class
|
|
930
|
-
constructor(
|
|
1235
|
+
export declare class SessionExpiredError extends WebrpcError {
|
|
1236
|
+
constructor(error?: WebrpcErrorParams);
|
|
931
1237
|
}
|
|
932
|
-
export declare class
|
|
933
|
-
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);
|
|
934
1249
|
}
|
|
935
1250
|
export declare enum errors {
|
|
936
1251
|
WebrpcEndpoint = "WebrpcEndpoint",
|
|
@@ -941,46 +1256,87 @@ export declare enum errors {
|
|
|
941
1256
|
WebrpcBadResponse = "WebrpcBadResponse",
|
|
942
1257
|
WebrpcServerPanic = "WebrpcServerPanic",
|
|
943
1258
|
WebrpcInternalError = "WebrpcInternalError",
|
|
944
|
-
|
|
1259
|
+
WebrpcClientAborted = "WebrpcClientAborted",
|
|
945
1260
|
WebrpcStreamLost = "WebrpcStreamLost",
|
|
946
1261
|
WebrpcStreamFinished = "WebrpcStreamFinished",
|
|
947
|
-
Unauthorized = "Unauthorized",
|
|
948
|
-
PermissionDenied = "PermissionDenied",
|
|
949
|
-
SessionExpired = "SessionExpired",
|
|
950
|
-
MethodNotFound = "MethodNotFound",
|
|
951
|
-
RequestConflict = "RequestConflict",
|
|
952
1262
|
Aborted = "Aborted",
|
|
953
|
-
Geoblocked = "Geoblocked",
|
|
954
|
-
RateLimited = "RateLimited",
|
|
955
|
-
ProjectNotFound = "ProjectNotFound",
|
|
956
|
-
AccessKeyNotFound = "AccessKeyNotFound",
|
|
957
1263
|
AccessKeyMismatch = "AccessKeyMismatch",
|
|
1264
|
+
AccessKeyNotFound = "AccessKeyNotFound",
|
|
1265
|
+
AtLeastOneKey = "AtLeastOneKey",
|
|
1266
|
+
Geoblocked = "Geoblocked",
|
|
1267
|
+
InvalidArgument = "InvalidArgument",
|
|
958
1268
|
InvalidOrigin = "InvalidOrigin",
|
|
959
1269
|
InvalidService = "InvalidService",
|
|
960
|
-
UnauthorizedUser = "UnauthorizedUser",
|
|
961
|
-
QuotaExceeded = "QuotaExceeded",
|
|
962
|
-
RateLimit = "RateLimit",
|
|
963
|
-
NoDefaultKey = "NoDefaultKey",
|
|
964
1270
|
MaxAccessKeys = "MaxAccessKeys",
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1271
|
+
MetadataCallFailed = "MetadataCallFailed",
|
|
1272
|
+
MethodNotFound = "MethodNotFound",
|
|
1273
|
+
NoDefaultKey = "NoDefaultKey",
|
|
1274
|
+
NotFound = "NotFound",
|
|
1275
|
+
PermissionDenied = "PermissionDenied",
|
|
1276
|
+
ProjectNotFound = "ProjectNotFound",
|
|
969
1277
|
QueryFailed = "QueryFailed",
|
|
1278
|
+
QuotaExceeded = "QuotaExceeded",
|
|
1279
|
+
RateLimit = "RateLimit",
|
|
1280
|
+
RateLimited = "RateLimited",
|
|
1281
|
+
RequestConflict = "RequestConflict",
|
|
970
1282
|
ResourceExhausted = "ResourceExhausted",
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
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;
|
|
985
1341
|
export {};
|
|
986
1342
|
//# sourceMappingURL=indexer.gen.d.ts.map
|