@avalabs/glacier-sdk 2.5.0-alpha.12 → 2.5.0-alpha.13

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.
@@ -9,21 +9,27 @@
9
9
  * ---------------------------------------------------------------
10
10
  */
11
11
 
12
- export type CurrencyCode =
13
- | 'usd'
14
- | 'eur'
15
- | 'aud'
16
- | 'cad'
17
- | 'chf'
18
- | 'clp'
19
- | 'czk'
20
- | 'dkk'
21
- | 'gbp'
22
- | 'hkd'
23
- | 'huf';
12
+ export enum CurrencyCode {
13
+ Usd = 'usd',
14
+ Eur = 'eur',
15
+ Aud = 'aud',
16
+ Cad = 'cad',
17
+ Chf = 'chf',
18
+ Clp = 'clp',
19
+ Czk = 'czk',
20
+ Dkk = 'dkk',
21
+ Gbp = 'gbp',
22
+ Hkd = 'hkd',
23
+ Huf = 'huf',
24
+ }
24
25
 
25
26
  export interface Money {
27
+ /**
28
+ * ISO 4217 currency code.
29
+ * @example usd
30
+ */
26
31
  currencyCode: CurrencyCode;
32
+
27
33
  /**
28
34
  * Monetary value in base 10 decimals.
29
35
  * @example 42.42
@@ -32,11 +38,11 @@ export interface Money {
32
38
  }
33
39
 
34
40
  export interface NativeTokenBalance {
35
- chainId: string;
36
41
  name: string;
37
42
  symbol: string;
38
43
  decimals: number;
39
- logoUri: string;
44
+ logoUri?: string;
45
+ chainId: string;
40
46
  price?: Money;
41
47
  balance: string;
42
48
  balanceValue?: Money;
@@ -47,14 +53,14 @@ export interface NativeBalance {
47
53
  }
48
54
 
49
55
  export interface Erc20TokenBalance {
50
- chainId: string;
51
- contractAddress: string;
56
+ /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
57
+ address: string;
52
58
  name: string;
53
59
  symbol: string;
54
60
  decimals: number;
55
- tags?: string[];
56
61
  logoUri?: string;
57
62
  price?: Money;
63
+ chainId: string;
58
64
  balance: string;
59
65
  balanceValue?: Money;
60
66
  }
@@ -66,12 +72,13 @@ export interface Erc20Balances {
66
72
  }
67
73
 
68
74
  export interface Erc721TokenBalance {
69
- chainId: string;
70
- contractAddress: string;
75
+ /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
76
+ address: string;
71
77
  name: string;
72
78
  symbol: string;
73
79
  tokenId: string;
74
80
  tokenUri: string;
81
+ chainId: string;
75
82
  }
76
83
 
77
84
  export interface Erc721Balances {
@@ -80,13 +87,62 @@ export interface Erc721Balances {
80
87
  erc721TokenBalances: Erc721TokenBalance[];
81
88
  }
82
89
 
83
- export interface Address {
84
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
85
- address: string;
90
+ export interface Block {
91
+ /**
92
+ * The block number on the chain.
93
+ * @example 339
94
+ */
95
+ blockNumber: string;
96
+
97
+ /**
98
+ * The block finality timestamp.
99
+ * @example 1648672486
100
+ */
101
+ blockTimestamp: number;
102
+
103
+ /**
104
+ * The block hash identifier.
105
+ * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c
106
+ */
107
+ blockHash: string;
108
+
109
+ /** The number of transactions in the block. */
110
+ txCount: number;
111
+
112
+ /** The base gas fee for a transaction to be included in the block. */
113
+ baseFee: string;
114
+
115
+ /** The gas used for transactions in the block. */
116
+ gasUsed: string;
117
+
118
+ /** The total gas limit set for transactions in the block. */
119
+ gasLimit: string;
120
+ gasCost: string;
121
+
122
+ /** The hash of the parent block. */
123
+ parentHash: string;
124
+
125
+ /** The amount of fees spent/burned for transactions in the block. */
126
+ feesSpent: string;
127
+
128
+ /** The cumulative number of transactions for the chain including this block. */
129
+ cumulativeTransactions: string;
130
+ }
131
+
132
+ export interface ListBlocks {
133
+ /** 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. */
134
+ nextPageToken?: string;
135
+ blocks: Block[];
136
+ }
137
+
138
+ export interface RichAddress {
86
139
  name?: string;
87
140
  symbol?: string;
88
- tags?: string[];
141
+ decimals?: number;
89
142
  logoUri?: string;
143
+
144
+ /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
145
+ address: string;
90
146
  }
91
147
 
92
148
  export interface Method {
@@ -169,8 +225,8 @@ export interface NativeTransaction {
169
225
  * @example 1
170
226
  */
171
227
  nonce: string;
172
- from: Address;
173
- to: Address;
228
+ from: RichAddress;
229
+ to: RichAddress;
174
230
  method?: Method;
175
231
 
176
232
  /** @example 10000000000000000000 */
@@ -179,16 +235,17 @@ export interface NativeTransaction {
179
235
 
180
236
  export interface Erc20Token {
181
237
  /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
182
- contractAddress: string;
183
- tokenName: string;
184
- tokenSymbol: string;
185
- tokenDecimals: number;
238
+ address: string;
239
+ name: string;
240
+ symbol: string;
241
+ decimals: number;
242
+ logoUri?: string;
186
243
  price?: Money;
187
244
  }
188
245
 
189
246
  export interface Erc20TransferDetails {
190
- from: Address;
191
- to: Address;
247
+ from: RichAddress;
248
+ to: RichAddress;
192
249
  erc20Token: Erc20Token;
193
250
 
194
251
  /** @example 10000000000000000000 */
@@ -197,30 +254,33 @@ export interface Erc20TransferDetails {
197
254
 
198
255
  export interface Erc721Token {
199
256
  /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
200
- contractAddress: string;
201
- tokenName: string;
202
- tokenSymbol: string;
257
+ address: string;
258
+ name: string;
259
+ symbol: string;
203
260
  tokenId: string;
204
261
  tokenUri: string;
205
262
  }
206
263
 
207
264
  export interface Erc721TransferDetails {
208
- from: Address;
209
- to: Address;
265
+ from: RichAddress;
266
+ to: RichAddress;
210
267
  erc721Token: Erc721Token;
211
268
  }
212
269
 
270
+ export enum InternalTransactionOpCall {
271
+ UNKNOWN = 'UNKNOWN',
272
+ CALL = 'CALL',
273
+ CREATE = 'CREATE',
274
+ CREATE2 = 'CREATE2',
275
+ CALLCODE = 'CALLCODE',
276
+ DELEGATECALL = 'DELEGATECALL',
277
+ STATICCALL = 'STATICCALL',
278
+ }
279
+
213
280
  export interface InternalTransactionDetails {
214
- from: Address;
215
- to: Address;
216
- internalTxType:
217
- | 'UNKNOWN'
218
- | 'CALL'
219
- | 'CREATE'
220
- | 'CREATE2'
221
- | 'CALLCODE'
222
- | 'DELEGATECALL'
223
- | 'STATICCALL';
281
+ from: RichAddress;
282
+ to: RichAddress;
283
+ internalTxType: InternalTransactionOpCall;
224
284
 
225
285
  /** @example 10000000000000000000 */
226
286
  value: string;
@@ -240,16 +300,103 @@ export interface ListTransactionDetails {
240
300
  transactions: TransactionDetails[];
241
301
  }
242
302
 
243
- export interface UtilityAddresses {
244
- multicall?: string;
303
+ export interface ListNativeTransactions {
304
+ /** 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. */
305
+ nextPageToken?: string;
306
+ transactions: NativeTransaction[];
307
+ }
308
+
309
+ export interface Erc20Transfer {
310
+ /**
311
+ * The block number on the chain.
312
+ * @example 339
313
+ */
314
+ blockNumber: string;
315
+
316
+ /**
317
+ * The block finality timestamp.
318
+ * @example 1648672486
319
+ */
320
+ blockTimestamp: number;
321
+
322
+ /**
323
+ * The transaction hash identifier.
324
+ * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
325
+ */
326
+ txHash: string;
327
+ from: RichAddress;
328
+ to: RichAddress;
329
+ erc20Token: Erc20Token;
330
+
331
+ /** @example 10000000000000000000 */
332
+ value: string;
333
+ }
334
+
335
+ export interface ListErc20Transactions {
336
+ /** 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. */
337
+ nextPageToken?: string;
338
+ transactions: Erc20Transfer[];
339
+ }
340
+
341
+ export interface Erc721Transfer {
342
+ /**
343
+ * The block number on the chain.
344
+ * @example 339
345
+ */
346
+ blockNumber: string;
347
+
348
+ /**
349
+ * The block finality timestamp.
350
+ * @example 1648672486
351
+ */
352
+ blockTimestamp: number;
353
+
354
+ /**
355
+ * The transaction hash identifier.
356
+ * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
357
+ */
358
+ txHash: string;
359
+ from: RichAddress;
360
+ to: RichAddress;
361
+ erc721Token: Erc721Token;
362
+ }
363
+
364
+ export interface ListErc721Transactions {
365
+ /** 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. */
366
+ nextPageToken?: string;
367
+ transactions: Erc721Transfer[];
245
368
  }
246
369
 
247
370
  export interface NetworkToken {
248
371
  name: string;
249
372
  symbol: string;
250
- description: string;
251
373
  decimals: number;
252
374
  logoUri?: string;
375
+ description?: string;
376
+ }
377
+
378
+ export interface NetworkTokenDetails {
379
+ networkToken: NetworkToken;
380
+ currentPrice?: Money;
381
+ historicalPrice?: Money;
382
+ }
383
+
384
+ export interface FullTransactionDetails {
385
+ nativeTransaction: NativeTransaction;
386
+ erc20Transfers?: Erc20TransferDetails[];
387
+ erc721Transfers?: Erc721TransferDetails[];
388
+ internalTransactions?: InternalTransactionDetails[];
389
+ networkTokenDetails: NetworkTokenDetails;
390
+ }
391
+
392
+ export enum VmName {
393
+ EVM = 'EVM',
394
+ BITCOIN = 'BITCOIN',
395
+ ETHEREUM = 'ETHEREUM',
396
+ }
397
+
398
+ export interface UtilityAddresses {
399
+ multicall?: string;
253
400
  }
254
401
 
255
402
  export interface ChainInfo {
@@ -259,7 +406,7 @@ export interface ChainInfo {
259
406
  platformChainId: string;
260
407
  subnetId: string;
261
408
  vmId: string;
262
- vmName: 'EVM' | 'BITCOIN' | 'ETHEREUM';
409
+ vmName: VmName;
263
410
  explorerUrl?: string;
264
411
  rpcUrl: string;
265
412
  wsUrl?: string;
@@ -272,10 +419,3 @@ export interface ChainInfo {
272
419
  export interface Chains {
273
420
  chains: ChainInfo[];
274
421
  }
275
-
276
- export interface HealthStatusCheck {
277
- status?: string;
278
- info?: Record<string, { status?: string }>;
279
- error?: Record<string, { status?: string }>;
280
- details?: Record<string, { status?: string }>;
281
- }
@@ -5,11 +5,11 @@ import {
5
5
  CurrencyCode,
6
6
  Erc20Balances,
7
7
  Erc721Balances,
8
- HealthStatusCheck,
9
8
  ListTransactionDetails,
10
9
  NativeBalance,
11
10
  TransactionDetails,
12
- } from './models';
11
+ } from './generated/models';
12
+ import { HealthStatusCheck } from './types';
13
13
 
14
14
  export class GlacierClient {
15
15
  private httpClient: HttpClient;
package/src/types.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface HealthStatusCheck {
2
+ status?: string;
3
+ info?: Record<string, { status?: string }>;
4
+ error?: Record<string, { status?: string }>;
5
+ details?: Record<string, { status?: string }>;
6
+ }
@@ -0,0 +1,40 @@
1
+ const { generateApi } = require('swagger-typescript-api');
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ const SCHEMA_URL = 'https://glacier-api.avax-test.network/api-json';
6
+
7
+ const OUTPUT_FOLDER = path.resolve(process.cwd(), 'src/generated');
8
+
9
+ const dataContractFilenames = { raw: 'data-contracts.ts', actual: 'models.ts' };
10
+
11
+ generateApi({
12
+ output: OUTPUT_FOLDER,
13
+ url: SCHEMA_URL,
14
+ modular: true,
15
+ generateClient: false,
16
+ generateResponses: false,
17
+ hooks: {
18
+ onFormatTypeName: (_typeName, rawTypeName) => {
19
+ // remove Dto suffix from type name
20
+ if (rawTypeName.includes('Dto')) {
21
+ return rawTypeName.replace(/Dto/g, '');
22
+ }
23
+ },
24
+ },
25
+ })
26
+ .then(({ files }) => {
27
+ files.forEach(({ name }) => {
28
+ if (name === dataContractFilenames.raw) {
29
+ // rename data contract file name
30
+ fs.rename(
31
+ path.resolve(OUTPUT_FOLDER, dataContractFilenames.raw),
32
+ path.resolve(OUTPUT_FOLDER, dataContractFilenames.actual),
33
+ () => {
34
+ // noop
35
+ }
36
+ );
37
+ }
38
+ });
39
+ })
40
+ .catch(console.error);
@@ -1,223 +0,0 @@
1
- export declare type CurrencyCode = 'usd' | 'eur' | 'aud' | 'cad' | 'chf' | 'clp' | 'czk' | 'dkk' | 'gbp' | 'hkd' | 'huf';
2
- export interface Money {
3
- currencyCode: CurrencyCode;
4
- /**
5
- * Monetary value in base 10 decimals.
6
- * @example 42.42
7
- */
8
- value: number;
9
- }
10
- export interface NativeTokenBalance {
11
- chainId: string;
12
- name: string;
13
- symbol: string;
14
- decimals: number;
15
- logoUri: string;
16
- price?: Money;
17
- balance: string;
18
- balanceValue?: Money;
19
- }
20
- export interface NativeBalance {
21
- nativeTokenBalance: NativeTokenBalance;
22
- }
23
- export interface Erc20TokenBalance {
24
- chainId: string;
25
- contractAddress: string;
26
- name: string;
27
- symbol: string;
28
- decimals: number;
29
- tags?: string[];
30
- logoUri?: string;
31
- price?: Money;
32
- balance: string;
33
- balanceValue?: Money;
34
- }
35
- export interface Erc20Balances {
36
- /** 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. */
37
- nextPageToken?: string;
38
- erc20TokenBalances: Erc20TokenBalance[];
39
- }
40
- export interface Erc721TokenBalance {
41
- chainId: string;
42
- contractAddress: string;
43
- name: string;
44
- symbol: string;
45
- tokenId: string;
46
- tokenUri: string;
47
- }
48
- export interface Erc721Balances {
49
- /** 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. */
50
- nextPageToken?: string;
51
- erc721TokenBalances: Erc721TokenBalance[];
52
- }
53
- export interface Address {
54
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
55
- address: string;
56
- name?: string;
57
- symbol?: string;
58
- tags?: string[];
59
- logoUri?: string;
60
- }
61
- export interface Method {
62
- /**
63
- * The contract method hash identifier.
64
- * @example 0xa9059cbb
65
- */
66
- methodHash: string;
67
- /**
68
- * The contract method name including parameter types.
69
- * @example transfer(address,uint256)
70
- */
71
- methodName?: string;
72
- }
73
- export interface NativeTransaction {
74
- /**
75
- * The block number on the chain.
76
- * @example 339
77
- */
78
- blockNumber: string;
79
- /**
80
- * The block finality timestamp.
81
- * @example 1648672486
82
- */
83
- blockTimestamp: number;
84
- /**
85
- * The block hash identifier.
86
- * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c
87
- */
88
- blockHash: string;
89
- /**
90
- * The index at which the transaction occured in the block (0-indexed).
91
- * @example 0
92
- */
93
- blockIndex: number;
94
- /**
95
- * The transaction hash identifier.
96
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
97
- */
98
- txHash: string;
99
- /**
100
- * The transaction status, which is either 0 (failed) or 1 (successful).
101
- * @example 1
102
- */
103
- txStatus: string;
104
- /**
105
- * The transaction type.
106
- * @example 1
107
- */
108
- txType: number;
109
- /**
110
- * The gas limit set for the transaction.
111
- * @example 51373
112
- */
113
- gasLimit: string;
114
- /**
115
- * The amount of gas used.
116
- * @example 51373
117
- */
118
- gasUsed: string;
119
- /**
120
- * The gas price denominated by the number of decimals of the native token.
121
- * @example 470000000000
122
- */
123
- gasPrice: string;
124
- /**
125
- * The nonce used by the sender of the transaction.
126
- * @example 1
127
- */
128
- nonce: string;
129
- from: Address;
130
- to: Address;
131
- method?: Method;
132
- /** @example 10000000000000000000 */
133
- value: string;
134
- }
135
- export interface Erc20Token {
136
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
137
- contractAddress: string;
138
- tokenName: string;
139
- tokenSymbol: string;
140
- tokenDecimals: number;
141
- price?: Money;
142
- }
143
- export interface Erc20TransferDetails {
144
- from: Address;
145
- to: Address;
146
- erc20Token: Erc20Token;
147
- /** @example 10000000000000000000 */
148
- value: string;
149
- }
150
- export interface Erc721Token {
151
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
152
- contractAddress: string;
153
- tokenName: string;
154
- tokenSymbol: string;
155
- tokenId: string;
156
- tokenUri: string;
157
- }
158
- export interface Erc721TransferDetails {
159
- from: Address;
160
- to: Address;
161
- erc721Token: Erc721Token;
162
- }
163
- export interface InternalTransactionDetails {
164
- from: Address;
165
- to: Address;
166
- internalTxType: 'UNKNOWN' | 'CALL' | 'CREATE' | 'CREATE2' | 'CALLCODE' | 'DELEGATECALL' | 'STATICCALL';
167
- /** @example 10000000000000000000 */
168
- value: string;
169
- isReverted: boolean;
170
- }
171
- export interface TransactionDetails {
172
- nativeTransaction: NativeTransaction;
173
- erc20Transfers?: Erc20TransferDetails[];
174
- erc721Transfers?: Erc721TransferDetails[];
175
- internalTransactions?: InternalTransactionDetails[];
176
- }
177
- export interface ListTransactionDetails {
178
- /** 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. */
179
- nextPageToken?: string;
180
- transactions: TransactionDetails[];
181
- }
182
- export interface UtilityAddresses {
183
- multicall?: string;
184
- }
185
- export interface NetworkToken {
186
- name: string;
187
- symbol: string;
188
- description: string;
189
- decimals: number;
190
- logoUri?: string;
191
- }
192
- export interface ChainInfo {
193
- chainId: string;
194
- chainName: string;
195
- description: string;
196
- platformChainId: string;
197
- subnetId: string;
198
- vmId: string;
199
- vmName: 'EVM' | 'BITCOIN' | 'ETHEREUM';
200
- explorerUrl?: string;
201
- rpcUrl: string;
202
- wsUrl?: string;
203
- isTestnet: boolean;
204
- utilityAddresses?: UtilityAddresses;
205
- networkToken: NetworkToken;
206
- chainLogoUri?: string;
207
- }
208
- export interface Chains {
209
- chains: ChainInfo[];
210
- }
211
- export interface HealthStatusCheck {
212
- status?: string;
213
- info?: Record<string, {
214
- status?: string;
215
- }>;
216
- error?: Record<string, {
217
- status?: string;
218
- }>;
219
- details?: Record<string, {
220
- status?: string;
221
- }>;
222
- }
223
- //# sourceMappingURL=models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAWA,oBAAY,YAAY,GACpB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AAEV,MAAM,WAAW,KAAK;IACpB,YAAY,EAAE,YAAY,CAA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AC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C"}
package/regenerate-sdk.sh DELETED
@@ -1,3 +0,0 @@
1
- curl "https://glacier-api.avax-test.network/api/json" > ./swagger/glacier.json
2
-
3
- sta -p ./swagger/glacier.json -o ./src --modular -r