@avalabs/glacier-sdk 2.8.0-alpha.109 → 2.8.0-alpha.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -1344,7 +1344,7 @@ declare class EvmService {
|
|
|
1344
1344
|
* @returns ListErc20BalancesResponse
|
|
1345
1345
|
* @throws ApiError
|
|
1346
1346
|
*/
|
|
1347
|
-
listErc20Balances({ chainId, address, pageSize, pageToken, currency, }: {
|
|
1347
|
+
listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, currency, }: {
|
|
1348
1348
|
/**
|
|
1349
1349
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1350
1350
|
* a list of supported chain ids.
|
|
@@ -1354,6 +1354,10 @@ declare class EvmService {
|
|
|
1354
1354
|
* A wallet address.
|
|
1355
1355
|
*/
|
|
1356
1356
|
address: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* The block number, if not defined the block number will be the latest block.
|
|
1359
|
+
*/
|
|
1360
|
+
blockNumber?: string;
|
|
1357
1361
|
/**
|
|
1358
1362
|
* The maximum number of items to return. The minimum page size
|
|
1359
1363
|
* is 1. The maximum pageSize is 100.
|
|
@@ -1398,7 +1402,7 @@ declare class EvmService {
|
|
|
1398
1402
|
* @returns ListErc1155BalancesResponse
|
|
1399
1403
|
* @throws ApiError
|
|
1400
1404
|
*/
|
|
1401
|
-
listErc1155Balances({ chainId, address, pageSize, pageToken, }: {
|
|
1405
|
+
listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, }: {
|
|
1402
1406
|
/**
|
|
1403
1407
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
1404
1408
|
* a list of supported chain ids.
|
|
@@ -1408,6 +1412,10 @@ declare class EvmService {
|
|
|
1408
1412
|
* A wallet address.
|
|
1409
1413
|
*/
|
|
1410
1414
|
address: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* The block number, if not defined the block number will be the latest block.
|
|
1417
|
+
*/
|
|
1418
|
+
blockNumber?: string;
|
|
1411
1419
|
/**
|
|
1412
1420
|
* The maximum number of items to return. The minimum page size
|
|
1413
1421
|
* is 1. The maximum pageSize is 100.
|
package/dist/index.js
CHANGED
|
@@ -378,6 +378,7 @@ class EvmService {
|
|
|
378
378
|
listErc20Balances({
|
|
379
379
|
chainId,
|
|
380
380
|
address,
|
|
381
|
+
blockNumber,
|
|
381
382
|
pageSize = 10,
|
|
382
383
|
pageToken,
|
|
383
384
|
currency
|
|
@@ -390,6 +391,7 @@ class EvmService {
|
|
|
390
391
|
"address": address
|
|
391
392
|
},
|
|
392
393
|
query: {
|
|
394
|
+
"blockNumber": blockNumber,
|
|
393
395
|
"pageSize": pageSize,
|
|
394
396
|
"pageToken": pageToken,
|
|
395
397
|
"currency": currency
|
|
@@ -418,6 +420,7 @@ class EvmService {
|
|
|
418
420
|
listErc1155Balances({
|
|
419
421
|
chainId,
|
|
420
422
|
address,
|
|
423
|
+
blockNumber,
|
|
421
424
|
pageSize = 10,
|
|
422
425
|
pageToken
|
|
423
426
|
}) {
|
|
@@ -429,6 +432,7 @@ class EvmService {
|
|
|
429
432
|
"address": address
|
|
430
433
|
},
|
|
431
434
|
query: {
|
|
435
|
+
"blockNumber": blockNumber,
|
|
432
436
|
"pageSize": pageSize,
|
|
433
437
|
"pageToken": pageToken
|
|
434
438
|
}
|
|
@@ -64,7 +64,7 @@ declare class EvmService {
|
|
|
64
64
|
* @returns ListErc20BalancesResponse
|
|
65
65
|
* @throws ApiError
|
|
66
66
|
*/
|
|
67
|
-
listErc20Balances({ chainId, address, pageSize, pageToken, currency, }: {
|
|
67
|
+
listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, currency, }: {
|
|
68
68
|
/**
|
|
69
69
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
70
70
|
* a list of supported chain ids.
|
|
@@ -74,6 +74,10 @@ declare class EvmService {
|
|
|
74
74
|
* A wallet address.
|
|
75
75
|
*/
|
|
76
76
|
address: string;
|
|
77
|
+
/**
|
|
78
|
+
* The block number, if not defined the block number will be the latest block.
|
|
79
|
+
*/
|
|
80
|
+
blockNumber?: string;
|
|
77
81
|
/**
|
|
78
82
|
* The maximum number of items to return. The minimum page size
|
|
79
83
|
* is 1. The maximum pageSize is 100.
|
|
@@ -118,7 +122,7 @@ declare class EvmService {
|
|
|
118
122
|
* @returns ListErc1155BalancesResponse
|
|
119
123
|
* @throws ApiError
|
|
120
124
|
*/
|
|
121
|
-
listErc1155Balances({ chainId, address, pageSize, pageToken, }: {
|
|
125
|
+
listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, }: {
|
|
122
126
|
/**
|
|
123
127
|
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
124
128
|
* a list of supported chain ids.
|
|
@@ -128,6 +132,10 @@ declare class EvmService {
|
|
|
128
132
|
* A wallet address.
|
|
129
133
|
*/
|
|
130
134
|
address: string;
|
|
135
|
+
/**
|
|
136
|
+
* The block number, if not defined the block number will be the latest block.
|
|
137
|
+
*/
|
|
138
|
+
blockNumber?: string;
|
|
131
139
|
/**
|
|
132
140
|
* The maximum number of items to return. The minimum page size
|
|
133
141
|
* is 1. The maximum pageSize is 100.
|
|
@@ -24,6 +24,7 @@ class EvmService {
|
|
|
24
24
|
listErc20Balances({
|
|
25
25
|
chainId,
|
|
26
26
|
address,
|
|
27
|
+
blockNumber,
|
|
27
28
|
pageSize = 10,
|
|
28
29
|
pageToken,
|
|
29
30
|
currency
|
|
@@ -36,6 +37,7 @@ class EvmService {
|
|
|
36
37
|
"address": address
|
|
37
38
|
},
|
|
38
39
|
query: {
|
|
40
|
+
"blockNumber": blockNumber,
|
|
39
41
|
"pageSize": pageSize,
|
|
40
42
|
"pageToken": pageToken,
|
|
41
43
|
"currency": currency
|
|
@@ -64,6 +66,7 @@ class EvmService {
|
|
|
64
66
|
listErc1155Balances({
|
|
65
67
|
chainId,
|
|
66
68
|
address,
|
|
69
|
+
blockNumber,
|
|
67
70
|
pageSize = 10,
|
|
68
71
|
pageToken
|
|
69
72
|
}) {
|
|
@@ -75,6 +78,7 @@ class EvmService {
|
|
|
75
78
|
"address": address
|
|
76
79
|
},
|
|
77
80
|
query: {
|
|
81
|
+
"blockNumber": blockNumber,
|
|
78
82
|
"pageSize": pageSize,
|
|
79
83
|
"pageToken": pageToken
|
|
80
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "2.8.0-alpha.
|
|
3
|
+
"version": "2.8.0-alpha.110",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f6e6525e13030a63e0a4e0e4f957138d0887f778"
|
|
33
33
|
}
|