@0xsequence/indexer 0.39.6 → 0.40.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.
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-indexer v0.4.0
|
|
30
|
+
// sequence-indexer v0.4.0 6071879702f8258e8912ca95cf2d9c1459ca991d
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "6071879702f8258e8912ca95cf2d9c1459ca991d"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -147,6 +147,7 @@ class Indexer {
|
|
|
147
147
|
return this.fetch(this.url('GetTokenBalances'), createHTTPRequest(args, headers)).then(res => {
|
|
148
148
|
return buildResponse(res).then(_data => {
|
|
149
149
|
return {
|
|
150
|
+
page: _data.page,
|
|
150
151
|
balances: _data.balances
|
|
151
152
|
};
|
|
152
153
|
});
|
|
@@ -157,6 +158,7 @@ class Indexer {
|
|
|
157
158
|
return this.fetch(this.url('GetTokenSupplies'), createHTTPRequest(args, headers)).then(res => {
|
|
158
159
|
return buildResponse(res).then(_data => {
|
|
159
160
|
return {
|
|
161
|
+
page: _data.page,
|
|
160
162
|
contractType: _data.contractType,
|
|
161
163
|
tokenIDs: _data.tokenIDs
|
|
162
164
|
};
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-indexer v0.4.0
|
|
30
|
+
// sequence-indexer v0.4.0 6071879702f8258e8912ca95cf2d9c1459ca991d
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "6071879702f8258e8912ca95cf2d9c1459ca991d"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -147,6 +147,7 @@ class Indexer {
|
|
|
147
147
|
return this.fetch(this.url('GetTokenBalances'), createHTTPRequest(args, headers)).then(res => {
|
|
148
148
|
return buildResponse(res).then(_data => {
|
|
149
149
|
return {
|
|
150
|
+
page: _data.page,
|
|
150
151
|
balances: _data.balances
|
|
151
152
|
};
|
|
152
153
|
});
|
|
@@ -157,6 +158,7 @@ class Indexer {
|
|
|
157
158
|
return this.fetch(this.url('GetTokenSupplies'), createHTTPRequest(args, headers)).then(res => {
|
|
158
159
|
return buildResponse(res).then(_data => {
|
|
159
160
|
return {
|
|
161
|
+
page: _data.page,
|
|
160
162
|
contractType: _data.contractType,
|
|
161
163
|
tokenIDs: _data.tokenIDs
|
|
162
164
|
};
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-indexer v0.4.0
|
|
22
|
+
// sequence-indexer v0.4.0 6071879702f8258e8912ca95cf2d9c1459ca991d
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,7 +28,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "6071879702f8258e8912ca95cf2d9c1459ca991d"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -139,6 +139,7 @@ class Indexer {
|
|
|
139
139
|
return this.fetch(this.url('GetTokenBalances'), createHTTPRequest(args, headers)).then(res => {
|
|
140
140
|
return buildResponse(res).then(_data => {
|
|
141
141
|
return {
|
|
142
|
+
page: _data.page,
|
|
142
143
|
balances: _data.balances
|
|
143
144
|
};
|
|
144
145
|
});
|
|
@@ -149,6 +150,7 @@ class Indexer {
|
|
|
149
150
|
return this.fetch(this.url('GetTokenSupplies'), createHTTPRequest(args, headers)).then(res => {
|
|
150
151
|
return buildResponse(res).then(_data => {
|
|
151
152
|
return {
|
|
153
|
+
page: _data.page,
|
|
152
154
|
contractType: _data.contractType,
|
|
153
155
|
tokenIDs: _data.tokenIDs
|
|
154
156
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "6071879702f8258e8912ca95cf2d9c1459ca991d";
|
|
4
4
|
export interface ContractInfo {
|
|
5
5
|
chainId: number;
|
|
6
6
|
address: string;
|
|
@@ -181,13 +181,13 @@ export interface TransactionHistoryFilter {
|
|
|
181
181
|
toBlock?: number;
|
|
182
182
|
}
|
|
183
183
|
export interface Page {
|
|
184
|
-
pageSize?: number;
|
|
185
184
|
page?: number;
|
|
186
|
-
more?: boolean;
|
|
187
185
|
column?: string;
|
|
188
186
|
before?: any;
|
|
189
187
|
after?: any;
|
|
190
188
|
sort?: Array<SortBy>;
|
|
189
|
+
pageSize?: number;
|
|
190
|
+
more?: boolean;
|
|
191
191
|
}
|
|
192
192
|
export interface SortBy {
|
|
193
193
|
column: string;
|
|
@@ -236,15 +236,19 @@ export interface GetTokenBalancesArgs {
|
|
|
236
236
|
accountAddress?: string;
|
|
237
237
|
contractAddress?: string;
|
|
238
238
|
includeMetadata?: boolean;
|
|
239
|
+
page?: Page;
|
|
239
240
|
}
|
|
240
241
|
export interface GetTokenBalancesReturn {
|
|
242
|
+
page: Page;
|
|
241
243
|
balances: Array<TokenBalance>;
|
|
242
244
|
}
|
|
243
245
|
export interface GetTokenSuppliesArgs {
|
|
244
246
|
contractAddress: string;
|
|
245
247
|
includeMetadata?: boolean;
|
|
248
|
+
page?: Page;
|
|
246
249
|
}
|
|
247
250
|
export interface GetTokenSuppliesReturn {
|
|
251
|
+
page: Page;
|
|
248
252
|
contractType: ContractType;
|
|
249
253
|
tokenIDs: Array<TokenSupply>;
|
|
250
254
|
}
|
|
@@ -265,7 +269,7 @@ export interface GetBalanceUpdatesArgs {
|
|
|
265
269
|
page?: Page;
|
|
266
270
|
}
|
|
267
271
|
export interface GetBalanceUpdatesReturn {
|
|
268
|
-
page
|
|
272
|
+
page: Page;
|
|
269
273
|
balances: Array<TokenBalance>;
|
|
270
274
|
}
|
|
271
275
|
export interface GetTransactionHistoryArgs {
|
package/package.json
CHANGED
package/src/indexer.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-indexer v0.4.0
|
|
2
|
+
// sequence-indexer v0.4.0 6071879702f8258e8912ca95cf2d9c1459ca991d
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,7 +11,7 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "6071879702f8258e8912ca95cf2d9c1459ca991d"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -212,13 +212,13 @@ export interface TransactionHistoryFilter {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export interface Page {
|
|
215
|
-
pageSize?: number
|
|
216
215
|
page?: number
|
|
217
|
-
more?: boolean
|
|
218
216
|
column?: string
|
|
219
217
|
before?: any
|
|
220
218
|
after?: any
|
|
221
219
|
sort?: Array<SortBy>
|
|
220
|
+
pageSize?: number
|
|
221
|
+
more?: boolean
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
export interface SortBy {
|
|
@@ -275,17 +275,21 @@ export interface GetTokenBalancesArgs {
|
|
|
275
275
|
accountAddress?: string
|
|
276
276
|
contractAddress?: string
|
|
277
277
|
includeMetadata?: boolean
|
|
278
|
+
page?: Page
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
export interface GetTokenBalancesReturn {
|
|
282
|
+
page: Page
|
|
281
283
|
balances: Array<TokenBalance>
|
|
282
284
|
}
|
|
283
285
|
export interface GetTokenSuppliesArgs {
|
|
284
286
|
contractAddress: string
|
|
285
287
|
includeMetadata?: boolean
|
|
288
|
+
page?: Page
|
|
286
289
|
}
|
|
287
290
|
|
|
288
291
|
export interface GetTokenSuppliesReturn {
|
|
292
|
+
page: Page
|
|
289
293
|
contractType: ContractType
|
|
290
294
|
tokenIDs: Array<TokenSupply>
|
|
291
295
|
}
|
|
@@ -304,7 +308,7 @@ export interface GetBalanceUpdatesArgs {
|
|
|
304
308
|
}
|
|
305
309
|
|
|
306
310
|
export interface GetBalanceUpdatesReturn {
|
|
307
|
-
page
|
|
311
|
+
page: Page
|
|
308
312
|
balances: Array<TokenBalance>
|
|
309
313
|
}
|
|
310
314
|
export interface GetTransactionHistoryArgs {
|
|
@@ -415,6 +419,7 @@ export class Indexer implements Indexer {
|
|
|
415
419
|
createHTTPRequest(args, headers)).then((res) => {
|
|
416
420
|
return buildResponse(res).then(_data => {
|
|
417
421
|
return {
|
|
422
|
+
page: <Page>(_data.page),
|
|
418
423
|
balances: <Array<TokenBalance>>(_data.balances)
|
|
419
424
|
}
|
|
420
425
|
})
|
|
@@ -427,6 +432,7 @@ export class Indexer implements Indexer {
|
|
|
427
432
|
createHTTPRequest(args, headers)).then((res) => {
|
|
428
433
|
return buildResponse(res).then(_data => {
|
|
429
434
|
return {
|
|
435
|
+
page: <Page>(_data.page),
|
|
430
436
|
contractType: <ContractType>(_data.contractType),
|
|
431
437
|
tokenIDs: <Array<TokenSupply>>(_data.tokenIDs)
|
|
432
438
|
}
|
|
@@ -515,4 +521,4 @@ const buildResponse = (res: Response): Promise<any> => {
|
|
|
515
521
|
})
|
|
516
522
|
}
|
|
517
523
|
|
|
518
|
-
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>
|
|
524
|
+
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>
|