@avalabs/glacier-sdk 2.8.0-alpha.59 → 2.8.0-alpha.6

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/CHANGELOG.md ADDED
@@ -0,0 +1,202 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # 2.8.0-alpha.6 (2022-10-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - (Glacier) Schema update ([#213](https://github.com/ava-labs/avalanche-sdks/issues/213)) ([b4afa93](https://github.com/ava-labs/avalanche-sdks/commit/b4afa939c6ef03c4e1fe095d7c561d73a72c8556))
11
+
12
+ # 2.8.0-alpha.5 (2022-10-24)
13
+
14
+ **Note:** Version bump only for package @avalabs/glacier-sdk
15
+
16
+ # 2.8.0-alpha.4 (2022-10-20)
17
+
18
+ ### Bug Fixes
19
+
20
+ - bogus commit to trigger release ([84e36d4](https://github.com/ava-labs/avalanche-sdks/commit/84e36d42deec024d0a28005c9e8928ad7fbb905a))
21
+
22
+ # 2.8.0-alpha.3 (2022-10-20)
23
+
24
+ ### Bug Fixes
25
+
26
+ - bridge sdk tree shakable ([#208](https://github.com/ava-labs/avalanche-sdks/issues/208)) ([43952ca](https://github.com/ava-labs/avalanche-sdks/commit/43952ca8370af10d6f90578b3491300485b2056f))
27
+
28
+ # 2.8.0-alpha.2 (2022-10-20)
29
+
30
+ **Note:** Version bump only for package @avalabs/glacier-sdk
31
+
32
+ # [2.8.0-alpha.1](https://github.com/ava-labs/avalanche-sdks/compare/v2.8.0-alpha.0...v2.8.0-alpha.1) (2022-10-20)
33
+
34
+ **Note:** Version bump only for package @avalabs/glacier-sdk
35
+
36
+ # [2.8.0-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.1-alpha.0...v2.8.0-alpha.0) (2022-10-18)
37
+
38
+ **Note:** Version bump only for package @avalabs/glacier-sdk
39
+
40
+ ## [2.7.1-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0...v2.7.1-alpha.0) (2022-10-05)
41
+
42
+ **Note:** Version bump only for package @avalabs/glacier-sdk
43
+
44
+ # [2.7.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.7...v2.7.0) (2022-10-05)
45
+
46
+ **Note:** Version bump only for package @avalabs/glacier-sdk
47
+
48
+ # [2.7.0-alpha.7](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.6...v2.7.0-alpha.7) (2022-10-04)
49
+
50
+ **Note:** Version bump only for package @avalabs/glacier-sdk
51
+
52
+ # [2.7.0-alpha.6](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.5...v2.7.0-alpha.6) (2022-10-04)
53
+
54
+ **Note:** Version bump only for package @avalabs/glacier-sdk
55
+
56
+ # [2.7.0-alpha.5](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.4...v2.7.0-alpha.5) (2022-09-19)
57
+
58
+ **Note:** Version bump only for package @avalabs/glacier-sdk
59
+
60
+ # [2.7.0-alpha.4](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.3...v2.7.0-alpha.4) (2022-09-19)
61
+
62
+ **Note:** Version bump only for package @avalabs/glacier-sdk
63
+
64
+ # [2.7.0-alpha.3](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.2...v2.7.0-alpha.3) (2022-09-15)
65
+
66
+ **Note:** Version bump only for package @avalabs/glacier-sdk
67
+
68
+ # [2.7.0-alpha.2](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.1...v2.7.0-alpha.2) (2022-09-14)
69
+
70
+ **Note:** Version bump only for package @avalabs/glacier-sdk
71
+
72
+ # [2.7.0-alpha.1](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.0...v2.7.0-alpha.1) (2022-09-09)
73
+
74
+ **Note:** Version bump only for package @avalabs/glacier-sdk
75
+
76
+ # [2.7.0-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.6.0...v2.7.0-alpha.0) (2022-09-09)
77
+
78
+ **Note:** Version bump only for package @avalabs/glacier-sdk
79
+
80
+ # [2.6.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.6.0-alpha.1...v2.6.0) (2022-09-07)
81
+
82
+ **Note:** Version bump only for package @avalabs/glacier-sdk
83
+
84
+ # [2.6.0-alpha.1](https://github.com/ava-labs/avalanche-sdks/compare/v2.6.0-alpha.0...v2.6.0-alpha.1) (2022-09-01)
85
+
86
+ **Note:** Version bump only for package @avalabs/glacier-sdk
87
+
88
+ # [2.6.0-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.1-alpha.0...v2.6.0-alpha.0) (2022-09-01)
89
+
90
+ **Note:** Version bump only for package @avalabs/glacier-sdk
91
+
92
+ ## [2.5.1-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.0...v2.5.1-alpha.0) (2022-08-25)
93
+
94
+ **Note:** Version bump only for package @avalabs/glacier-sdk
95
+
96
+ # [2.5.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.0-alpha.17...v2.5.0) (2022-08-18)
97
+
98
+ **Note:** Version bump only for package @avalabs/glacier-sdk
99
+
100
+ # [2.5.0-alpha.17](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.0-alpha.15...v2.5.0-alpha.17) (2022-08-18)
101
+
102
+ **Note:** Version bump only for package @avalabs/glacier-sdk
103
+
104
+ # [2.5.0-alpha.15](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.0-alpha.14...v2.5.0-alpha.15) (2022-08-17)
105
+
106
+ **Note:** Version bump only for package @avalabs/glacier-sdk
107
+
108
+ # 2.5.0-alpha.13 (2022-08-16)
109
+
110
+ **Note:** Version bump only for package @avalabs/glacier-sdk
111
+
112
+ # 2.5.0-alpha.12 (2022-08-15)
113
+
114
+ **Note:** Version bump only for package @avalabs/glacier-sdk
115
+
116
+ # 2.5.0-alpha.11 (2022-08-08)
117
+
118
+ **Note:** Version bump only for package @avalabs/glacier-sdk
119
+
120
+ # 2.5.0-alpha.10 (2022-08-04)
121
+
122
+ ### Features
123
+
124
+ - feature flag to not rely on posthog instance ([#166](https://github.com/ava-labs/avalanche-sdks/issues/166)) ([c9193aa](https://github.com/ava-labs/avalanche-sdks/commit/c9193aacb7fdb0bacb2440f1476b222bd76abe26))
125
+
126
+ # 2.5.0-alpha.9 (2022-08-04)
127
+
128
+ **Note:** Version bump only for package @avalabs/glacier-sdk
129
+
130
+ # 2.5.0-alpha.8 (2022-08-04)
131
+
132
+ **Note:** Version bump only for package @avalabs/glacier-sdk
133
+
134
+ # 2.5.0-alpha.7 (2022-08-03)
135
+
136
+ ### Bug Fixes
137
+
138
+ - make glacier sdk pass params to the http client correctly ([c7eb6f5](https://github.com/ava-labs/avalanche-sdks/commit/c7eb6f56a9f5769050c2d1f5db8012c5c0af0f11))
139
+
140
+ # 2.5.0-alpha.6 (2022-07-28)
141
+
142
+ **Note:** Version bump only for package @avalabs/glacier-sdk
143
+
144
+ # 2.5.0-alpha.5 (2022-07-22)
145
+
146
+ ### Bug Fixes
147
+
148
+ - use current version for utils dep for auto-update ([45b69a6](https://github.com/ava-labs/avalanche-sdks/commit/45b69a64d7eb120f44fe00c7598de468c08741a4))
149
+
150
+ # 2.5.0-alpha.4 (2022-07-21)
151
+
152
+ **Note:** Version bump only for package @avalabs/glacier-sdk
153
+
154
+ # 2.5.0-alpha.3 (2022-07-21)
155
+
156
+ **Note:** Version bump only for package @avalabs/glacier-sdk
157
+
158
+ # 2.5.0-alpha.2 (2022-07-21)
159
+
160
+ ### Bug Fixes
161
+
162
+ - **glacier:** missing dep fixed ([e51a99f](https://github.com/ava-labs/avalanche-sdks/commit/e51a99f29cc740e0e1bdcd1a437120dbdb25c696))
163
+
164
+ # 2.5.0-alpha.1 (2022-07-21)
165
+
166
+ ### Bug Fixes
167
+
168
+ - use etherscan proxy ([#160](https://github.com/ava-labs/avalanche-sdks/issues/160)) ([f3cba1e](https://github.com/ava-labs/avalanche-sdks/commit/f3cba1ea802006d682ab806a2cf324222fb31e90))
169
+
170
+ # 2.5.0-alpha.0 (2022-07-19)
171
+
172
+ ### Features
173
+
174
+ - get Ethereum network data from wallet-network-assets ([#156](https://github.com/ava-labs/avalanche-sdks/issues/156)) ([bfa9731](https://github.com/ava-labs/avalanche-sdks/commit/bfa973197dfd01a6cb9ee155b4660374471e173c))
175
+
176
+ ## 2.4.1-alpha.10 (2022-07-18)
177
+
178
+ **Note:** Version bump only for package @avalabs/glacier-sdk
179
+
180
+ ## 2.4.1-alpha.9 (2022-07-14)
181
+
182
+ **Note:** Version bump only for package @avalabs/glacier-sdk
183
+
184
+ ## 2.4.1-alpha.8 (2022-07-07)
185
+
186
+ **Note:** Version bump only for package @avalabs/glacier-sdk
187
+
188
+ ## 2.4.1-alpha.7 (2022-07-07)
189
+
190
+ **Note:** Version bump only for package @avalabs/glacier-sdk
191
+
192
+ ## 2.4.1-alpha.6 (2022-07-07)
193
+
194
+ **Note:** Version bump only for package @avalabs/glacier-sdk
195
+
196
+ ## 2.4.1-alpha.5 (2022-07-07)
197
+
198
+ **Note:** Version bump only for package @avalabs/glacier-sdk
199
+
200
+ ## 2.4.1-alpha.4 (2022-07-06)
201
+
202
+ **Note:** Version bump only for package glacier-sdk
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const glacierSdk = require('..');
4
+
5
+ describe('glacier-sdk', () => {
6
+ it('needs tests');
7
+ });
package/dist/index.d.ts CHANGED
@@ -1,491 +1,3 @@
1
- import { HttpOptions } from '@avalabs/utils-sdk';
2
-
3
- declare enum CurrencyCode {
4
- Usd = "usd",
5
- Eur = "eur",
6
- Aud = "aud",
7
- Cad = "cad",
8
- Chf = "chf",
9
- Clp = "clp",
10
- Czk = "czk",
11
- Dkk = "dkk",
12
- Gbp = "gbp",
13
- Hkd = "hkd",
14
- Huf = "huf"
15
- }
16
- interface Money {
17
- /**
18
- * ISO 4217 currency code.
19
- * @example usd
20
- */
21
- currencyCode: CurrencyCode;
22
- /**
23
- * Monetary value in base 10 decimals.
24
- * @example 42.42
25
- */
26
- value: number;
27
- }
28
- interface NativeTokenBalance {
29
- name: string;
30
- symbol: string;
31
- decimals: number;
32
- logoUri?: string;
33
- chainId: string;
34
- price?: Money;
35
- balance: string;
36
- balanceValue?: Money;
37
- }
38
- interface NativeBalance {
39
- nativeTokenBalance: NativeTokenBalance;
40
- }
41
- interface Erc20TokenBalance {
42
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
43
- address: string;
44
- name: string;
45
- symbol: string;
46
- decimals: number;
47
- logoUri?: string;
48
- price?: Money;
49
- chainId: string;
50
- balance: string;
51
- balanceValue?: Money;
52
- }
53
- interface Erc20Balances {
54
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
55
- nextPageToken?: string;
56
- erc20TokenBalances: Erc20TokenBalance[];
57
- }
58
- declare enum Erc721MetadataStatus {
59
- UNKNOWN = "UNKNOWN",
60
- MISSING_TOKEN = "MISSING_TOKEN",
61
- INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
62
- INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
63
- UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
64
- THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
65
- METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
66
- INVALID_METADATA = "INVALID_METADATA",
67
- INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
68
- INDEXED = "INDEXED",
69
- UNINDEXED = "UNINDEXED"
70
- }
71
- interface Erc721Metadata {
72
- /**
73
- * The metadata indexing status of the nft.
74
- * @example indexed
75
- */
76
- indexStatus: Erc721MetadataStatus;
77
- metadataLastUpdatedTimestamp?: number;
78
- name?: string;
79
- symbol?: string;
80
- imageUri?: string;
81
- description?: string;
82
- animationUri?: string;
83
- externalUrl?: string;
84
- background?: string;
85
- attributes?: string;
86
- }
87
- interface Erc721TokenBalance {
88
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
89
- address: string;
90
- name: string;
91
- symbol: string;
92
- tokenId: string;
93
- tokenUri: string;
94
- metadata: Erc721Metadata;
95
- chainId: string;
96
- }
97
- interface Erc721Balances {
98
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
99
- nextPageToken?: string;
100
- erc721TokenBalances: Erc721TokenBalance[];
101
- }
102
- interface Block {
103
- /**
104
- * The block number on the chain.
105
- * @example 339
106
- */
107
- blockNumber: string;
108
- /**
109
- * The block finality timestamp.
110
- * @example 1648672486
111
- */
112
- blockTimestamp: number;
113
- /**
114
- * The block hash identifier.
115
- * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c
116
- */
117
- blockHash: string;
118
- /** The number of transactions in the block. */
119
- txCount: number;
120
- /** The base gas fee for a transaction to be included in the block. */
121
- baseFee: string;
122
- /** The gas used for transactions in the block. */
123
- gasUsed: string;
124
- /** The total gas limit set for transactions in the block. */
125
- gasLimit: string;
126
- gasCost: string;
127
- /** The hash of the parent block. */
128
- parentHash: string;
129
- /** The amount of fees spent/burned for transactions in the block. */
130
- feesSpent: string;
131
- /** The cumulative number of transactions for the chain including this block. */
132
- cumulativeTransactions: string;
133
- }
134
- interface ListBlocks {
135
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
136
- nextPageToken?: string;
137
- blocks: Block[];
138
- }
139
- interface ListTransfers {
140
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
141
- nextPageToken?: string;
142
- transfers: Erc20Transfer[] | Erc721Transfer[];
143
- }
144
- interface RichAddress {
145
- name?: string;
146
- symbol?: string;
147
- decimals?: number;
148
- logoUri?: string;
149
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
150
- address: string;
151
- }
152
- interface Method {
153
- /**
154
- * The contract method hash identifier.
155
- * @example 0xa9059cbb
156
- */
157
- methodHash: string;
158
- /**
159
- * The contract method name including parameter types.
160
- * @example transfer(address,uint256)
161
- */
162
- methodName?: string;
163
- }
164
- interface NativeTransaction {
165
- /**
166
- * The block number on the chain.
167
- * @example 339
168
- */
169
- blockNumber: string;
170
- /**
171
- * The block finality timestamp.
172
- * @example 1648672486
173
- */
174
- blockTimestamp: number;
175
- /**
176
- * The block hash identifier.
177
- * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c
178
- */
179
- blockHash: string;
180
- /**
181
- * The index at which the transaction occured in the block (0-indexed).
182
- * @example 0
183
- */
184
- blockIndex: number;
185
- /**
186
- * The transaction hash identifier.
187
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
188
- */
189
- txHash: string;
190
- /**
191
- * The transaction status, which is either 0 (failed) or 1 (successful).
192
- * @example 1
193
- */
194
- txStatus: string;
195
- /**
196
- * The transaction type.
197
- * @example 1
198
- */
199
- txType: number;
200
- /**
201
- * The gas limit set for the transaction.
202
- * @example 51373
203
- */
204
- gasLimit: string;
205
- /**
206
- * The amount of gas used.
207
- * @example 51373
208
- */
209
- gasUsed: string;
210
- /**
211
- * The gas price denominated by the number of decimals of the native token.
212
- * @example 470000000000
213
- */
214
- gasPrice: string;
215
- /**
216
- * The nonce used by the sender of the transaction.
217
- * @example 1
218
- */
219
- nonce: string;
220
- from: RichAddress;
221
- to: RichAddress;
222
- method?: Method;
223
- /** @example 10000000000000000000 */
224
- value: string;
225
- }
226
- interface Erc20Token {
227
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
228
- address: string;
229
- name: string;
230
- symbol: string;
231
- decimals: number;
232
- logoUri?: string;
233
- price?: Money;
234
- }
235
- interface Erc20TransferDetails {
236
- from: RichAddress;
237
- to: RichAddress;
238
- erc20Token: Erc20Token;
239
- /** @example 10000000000000000000 */
240
- value: string;
241
- }
242
- interface Erc721Token {
243
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
244
- address: string;
245
- name: string;
246
- symbol: string;
247
- tokenId: string;
248
- tokenUri: string;
249
- metadata: Erc721Metadata;
250
- }
251
- interface Erc721TransferDetails {
252
- from: RichAddress;
253
- to: RichAddress;
254
- erc721Token: Erc721Token;
255
- }
256
- declare enum InternalTransactionOpCall {
257
- UNKNOWN = "UNKNOWN",
258
- CALL = "CALL",
259
- CREATE = "CREATE",
260
- CREATE2 = "CREATE2",
261
- CALLCODE = "CALLCODE",
262
- DELEGATECALL = "DELEGATECALL",
263
- STATICCALL = "STATICCALL"
264
- }
265
- interface InternalTransactionDetails {
266
- from: RichAddress;
267
- to: RichAddress;
268
- internalTxType: InternalTransactionOpCall;
269
- /** @example 10000000000000000000 */
270
- value: string;
271
- isReverted: boolean;
272
- }
273
- interface TransactionDetails {
274
- nativeTransaction: NativeTransaction;
275
- erc20Transfers?: Erc20TransferDetails[];
276
- erc721Transfers?: Erc721TransferDetails[];
277
- internalTransactions?: InternalTransactionDetails[];
278
- }
279
- interface ListTransactionDetails {
280
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
281
- nextPageToken?: string;
282
- transactions: TransactionDetails[];
283
- }
284
- interface ListNativeTransactions {
285
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
286
- nextPageToken?: string;
287
- transactions: NativeTransaction[];
288
- }
289
- interface Erc20Transfer {
290
- /**
291
- * The block number on the chain.
292
- * @example 339
293
- */
294
- blockNumber: string;
295
- /**
296
- * The block finality timestamp.
297
- * @example 1648672486
298
- */
299
- blockTimestamp: number;
300
- /**
301
- * The transaction hash identifier.
302
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
303
- */
304
- txHash: string;
305
- from: RichAddress;
306
- to: RichAddress;
307
- erc20Token: Erc20Token;
308
- /** @example 10000000000000000000 */
309
- value: string;
310
- }
311
- interface ListErc20Transactions {
312
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
313
- nextPageToken?: string;
314
- transactions: Erc20Transfer[];
315
- }
316
- interface Erc721Transfer {
317
- /**
318
- * The block number on the chain.
319
- * @example 339
320
- */
321
- blockNumber: string;
322
- /**
323
- * The block finality timestamp.
324
- * @example 1648672486
325
- */
326
- blockTimestamp: number;
327
- /**
328
- * The transaction hash identifier.
329
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
330
- */
331
- txHash: string;
332
- from: RichAddress;
333
- to: RichAddress;
334
- erc721Token: Erc721Token;
335
- }
336
- interface ListErc721Transactions {
337
- /** A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages. */
338
- nextPageToken?: string;
339
- transactions: Erc721Transfer[];
340
- }
341
- interface NetworkToken {
342
- name: string;
343
- symbol: string;
344
- decimals: number;
345
- logoUri?: string;
346
- description?: string;
347
- }
348
- interface NetworkTokenDetails {
349
- networkToken: NetworkToken;
350
- currentPrice?: Money;
351
- historicalPrice?: Money;
352
- }
353
- interface FullTransactionDetails {
354
- nativeTransaction: NativeTransaction;
355
- erc20Transfers?: Erc20TransferDetails[];
356
- erc721Transfers?: Erc721TransferDetails[];
357
- internalTransactions?: InternalTransactionDetails[];
358
- networkTokenDetails: NetworkTokenDetails;
359
- }
360
- declare enum VmName {
361
- EVM = "EVM",
362
- BITCOIN = "BITCOIN",
363
- ETHEREUM = "ETHEREUM"
364
- }
365
- interface UtilityAddresses {
366
- multicall?: string;
367
- }
368
- interface ChainInfo {
369
- chainId: string;
370
- chainName: string;
371
- description: string;
372
- platformChainId?: string;
373
- subnetId?: string;
374
- vmId?: string;
375
- vmName: VmName;
376
- explorerUrl?: string;
377
- rpcUrl: string;
378
- wsUrl?: string;
379
- isTestnet: boolean;
380
- utilityAddresses?: UtilityAddresses;
381
- networkToken: NetworkToken;
382
- chainLogoUri?: string;
383
- }
384
- interface Chains {
385
- chains: ChainInfo[];
386
- }
387
-
388
- interface HealthStatusCheck {
389
- status?: string;
390
- info?: Record<string, {
391
- status?: string;
392
- }>;
393
- error?: Record<string, {
394
- status?: string;
395
- }>;
396
- details?: Record<string, {
397
- status?: string;
398
- }>;
399
- }
400
-
401
- declare class GlacierClient {
402
- private baseUrl;
403
- private version;
404
- private httpOptions?;
405
- private httpClient;
406
- constructor(baseUrl: string, version?: string, httpOptions?: HttpOptions | undefined);
407
- /**
408
- *
409
- * @name HealthCheck
410
- * @summary Get the health of the service.
411
- * @request GET:/${version}/health-check
412
- * @response `200` `{ status?: string, info?: Record<string, { status?: string }>, error?: Record<string, { status?: string }>, details?: Record<string, { status?: string }> }` The Health Check is successful
413
- * @response `503` `{ status?: string, info?: Record<string, { status?: string }>, error?: Record<string, { status?: string }>, details?: Record<string, { status?: string }> }` The Health Check is not successful
414
- */
415
- healthCheck(params?: Record<string, any>, customOptions?: HttpOptions): Promise<HealthStatusCheck>;
416
- /**
417
- * No description
418
- *
419
- * @name GetNativeBalance
420
- * @summary Get native token balance of a wallet address for a given chain.
421
- * @request GET:/v1/chains/{chainId}/addresses/{address}/balances:getNative
422
- * @response `200` `NativeBalanceDto`
423
- */
424
- getNativeBalance(chainId: string, address: string, query?: {
425
- currency?: CurrencyCode;
426
- }, params?: Record<string, any>, customOptions?: HttpOptions): Promise<NativeBalance>;
427
- /**
428
- *
429
- * @name ListErc20Balances
430
- * @summary Get erc-20 token balances of a wallet address for a given chain.
431
- * @request GET:/v1/chains/{chainId}/addresses/{address}/balances:listErc20
432
- * @response `200` `Erc20BalancesDto`
433
- */
434
- listErc20Balances(chainId: string, address: string, query?: {
435
- pageSize?: number;
436
- pageToken?: string;
437
- currency?: CurrencyCode;
438
- }, params?: Record<string, any>, customOptions?: HttpOptions): Promise<Erc20Balances>;
439
- /**
440
- * No description
441
- *
442
- * @name ListErc721Balances
443
- * @summary Get erc-721 token balances of a wallet address for a given chain.
444
- * @request GET:/v1/chains/{chainId}/addresses/{address}/balances:listErc721
445
- * @response `200` `Erc721BalancesDto`
446
- */
447
- listErc721Balances(chainId: string, address: string, query?: {
448
- pageSize?: number;
449
- pageToken?: string;
450
- currency?: CurrencyCode;
451
- }, params?: Record<string, any>, customOptions?: HttpOptions): Promise<Erc721Balances>;
452
- /**
453
- * @description Gets a list of transactions where the given wallet address had an on-chain interaction for a given chain. The erc20 transfers, erc721 transfers, and internal transactions returned as part of the native transactions are only those where the address had an interaction. Therefore the transactions returned from this list may not be complete representations of the on-chain data. For a complete view of a transaction use the `/chains/:chainId/transactions/:txHash` endpoint.
454
- *
455
- * @name ListTransactions
456
- * @summary Gets a list of transactions for a wallet address and chain.
457
- * @request GET:/v1/chains/{chainId}/addresses/{address}/transactions
458
- * @response `200` `ListTransactionDetailsDto`
459
- */
460
- listTransactions(chainId: string, address: string, query?: {
461
- pageSize?: number;
462
- pageToken?: string;
463
- }, params?: Record<string, any>, customOptions?: HttpOptions): Promise<ListTransactionDetails>;
464
- /**
465
- *
466
- * @name GetTransaction
467
- * @summary Gets the details of a single transaction.
468
- * @request GET:/v1/chains/{chainId}/transactions/{txHash}
469
- * @response `200` `TransactionDetailsDto`
470
- */
471
- getTransaction(chainId: string, txHash: string, params?: Record<string, any>, customOptions?: HttpOptions): Promise<TransactionDetails>;
472
- /**
473
- *
474
- * @name SupportedChains
475
- * @summary Gets the list of chains supported by the api.
476
- * @request GET:/v1/chains
477
- * @response `200` `ChainsDto`
478
- */
479
- supportedChains(params?: Record<string, any>, customOptions?: HttpOptions): Promise<Chains>;
480
- /**
481
- * No description
482
- *
483
- * @name GetChainInfo
484
- * @summary Gets chain information by chain id.
485
- * @request GET:/v1/chains/{chainId}
486
- * @response `200` `ChainInfoDto`
487
- */
488
- getChainInfo(chainId: string, params?: Record<string, any>, customOptions?: HttpOptions): Promise<ChainInfo>;
489
- }
490
-
491
- export { Block, ChainInfo, Chains, CurrencyCode, Erc20Balances, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Balances, Erc721Metadata, Erc721MetadataStatus, Erc721Token, Erc721TokenBalance, Erc721Transfer, Erc721TransferDetails, FullTransactionDetails, GlacierClient, InternalTransactionDetails, InternalTransactionOpCall, ListBlocks, ListErc20Transactions, ListErc721Transactions, ListNativeTransactions, ListTransactionDetails, ListTransfers, Method, Money, NativeBalance, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, RichAddress, TransactionDetails, UtilityAddresses, VmName };
1
+ export * from './src/generated/models';
2
+ export * from './src/glacierClient';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC"}