@avalabs/glacier-sdk 2.8.0-alpha.7 → 2.8.0-alpha.71

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 DELETED
@@ -1,206 +0,0 @@
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.7 (2022-10-27)
7
-
8
- **Note:** Version bump only for package @avalabs/glacier-sdk
9
-
10
- # 2.8.0-alpha.6 (2022-10-26)
11
-
12
- ### Bug Fixes
13
-
14
- - (Glacier) Schema update ([#213](https://github.com/ava-labs/avalanche-sdks/issues/213)) ([b4afa93](https://github.com/ava-labs/avalanche-sdks/commit/b4afa939c6ef03c4e1fe095d7c561d73a72c8556))
15
-
16
- # 2.8.0-alpha.5 (2022-10-24)
17
-
18
- **Note:** Version bump only for package @avalabs/glacier-sdk
19
-
20
- # 2.8.0-alpha.4 (2022-10-20)
21
-
22
- ### Bug Fixes
23
-
24
- - bogus commit to trigger release ([84e36d4](https://github.com/ava-labs/avalanche-sdks/commit/84e36d42deec024d0a28005c9e8928ad7fbb905a))
25
-
26
- # 2.8.0-alpha.3 (2022-10-20)
27
-
28
- ### Bug Fixes
29
-
30
- - bridge sdk tree shakable ([#208](https://github.com/ava-labs/avalanche-sdks/issues/208)) ([43952ca](https://github.com/ava-labs/avalanche-sdks/commit/43952ca8370af10d6f90578b3491300485b2056f))
31
-
32
- # 2.8.0-alpha.2 (2022-10-20)
33
-
34
- **Note:** Version bump only for package @avalabs/glacier-sdk
35
-
36
- # [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)
37
-
38
- **Note:** Version bump only for package @avalabs/glacier-sdk
39
-
40
- # [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)
41
-
42
- **Note:** Version bump only for package @avalabs/glacier-sdk
43
-
44
- ## [2.7.1-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0...v2.7.1-alpha.0) (2022-10-05)
45
-
46
- **Note:** Version bump only for package @avalabs/glacier-sdk
47
-
48
- # [2.7.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.7.0-alpha.7...v2.7.0) (2022-10-05)
49
-
50
- **Note:** Version bump only for package @avalabs/glacier-sdk
51
-
52
- # [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)
53
-
54
- **Note:** Version bump only for package @avalabs/glacier-sdk
55
-
56
- # [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)
57
-
58
- **Note:** Version bump only for package @avalabs/glacier-sdk
59
-
60
- # [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)
61
-
62
- **Note:** Version bump only for package @avalabs/glacier-sdk
63
-
64
- # [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)
65
-
66
- **Note:** Version bump only for package @avalabs/glacier-sdk
67
-
68
- # [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)
69
-
70
- **Note:** Version bump only for package @avalabs/glacier-sdk
71
-
72
- # [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)
73
-
74
- **Note:** Version bump only for package @avalabs/glacier-sdk
75
-
76
- # [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)
77
-
78
- **Note:** Version bump only for package @avalabs/glacier-sdk
79
-
80
- # [2.7.0-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.6.0...v2.7.0-alpha.0) (2022-09-09)
81
-
82
- **Note:** Version bump only for package @avalabs/glacier-sdk
83
-
84
- # [2.6.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.6.0-alpha.1...v2.6.0) (2022-09-07)
85
-
86
- **Note:** Version bump only for package @avalabs/glacier-sdk
87
-
88
- # [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)
89
-
90
- **Note:** Version bump only for package @avalabs/glacier-sdk
91
-
92
- # [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)
93
-
94
- **Note:** Version bump only for package @avalabs/glacier-sdk
95
-
96
- ## [2.5.1-alpha.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.0...v2.5.1-alpha.0) (2022-08-25)
97
-
98
- **Note:** Version bump only for package @avalabs/glacier-sdk
99
-
100
- # [2.5.0](https://github.com/ava-labs/avalanche-sdks/compare/v2.5.0-alpha.17...v2.5.0) (2022-08-18)
101
-
102
- **Note:** Version bump only for package @avalabs/glacier-sdk
103
-
104
- # [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)
105
-
106
- **Note:** Version bump only for package @avalabs/glacier-sdk
107
-
108
- # [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)
109
-
110
- **Note:** Version bump only for package @avalabs/glacier-sdk
111
-
112
- # 2.5.0-alpha.13 (2022-08-16)
113
-
114
- **Note:** Version bump only for package @avalabs/glacier-sdk
115
-
116
- # 2.5.0-alpha.12 (2022-08-15)
117
-
118
- **Note:** Version bump only for package @avalabs/glacier-sdk
119
-
120
- # 2.5.0-alpha.11 (2022-08-08)
121
-
122
- **Note:** Version bump only for package @avalabs/glacier-sdk
123
-
124
- # 2.5.0-alpha.10 (2022-08-04)
125
-
126
- ### Features
127
-
128
- - 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))
129
-
130
- # 2.5.0-alpha.9 (2022-08-04)
131
-
132
- **Note:** Version bump only for package @avalabs/glacier-sdk
133
-
134
- # 2.5.0-alpha.8 (2022-08-04)
135
-
136
- **Note:** Version bump only for package @avalabs/glacier-sdk
137
-
138
- # 2.5.0-alpha.7 (2022-08-03)
139
-
140
- ### Bug Fixes
141
-
142
- - make glacier sdk pass params to the http client correctly ([c7eb6f5](https://github.com/ava-labs/avalanche-sdks/commit/c7eb6f56a9f5769050c2d1f5db8012c5c0af0f11))
143
-
144
- # 2.5.0-alpha.6 (2022-07-28)
145
-
146
- **Note:** Version bump only for package @avalabs/glacier-sdk
147
-
148
- # 2.5.0-alpha.5 (2022-07-22)
149
-
150
- ### Bug Fixes
151
-
152
- - use current version for utils dep for auto-update ([45b69a6](https://github.com/ava-labs/avalanche-sdks/commit/45b69a64d7eb120f44fe00c7598de468c08741a4))
153
-
154
- # 2.5.0-alpha.4 (2022-07-21)
155
-
156
- **Note:** Version bump only for package @avalabs/glacier-sdk
157
-
158
- # 2.5.0-alpha.3 (2022-07-21)
159
-
160
- **Note:** Version bump only for package @avalabs/glacier-sdk
161
-
162
- # 2.5.0-alpha.2 (2022-07-21)
163
-
164
- ### Bug Fixes
165
-
166
- - **glacier:** missing dep fixed ([e51a99f](https://github.com/ava-labs/avalanche-sdks/commit/e51a99f29cc740e0e1bdcd1a437120dbdb25c696))
167
-
168
- # 2.5.0-alpha.1 (2022-07-21)
169
-
170
- ### Bug Fixes
171
-
172
- - use etherscan proxy ([#160](https://github.com/ava-labs/avalanche-sdks/issues/160)) ([f3cba1e](https://github.com/ava-labs/avalanche-sdks/commit/f3cba1ea802006d682ab806a2cf324222fb31e90))
173
-
174
- # 2.5.0-alpha.0 (2022-07-19)
175
-
176
- ### Features
177
-
178
- - 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))
179
-
180
- ## 2.4.1-alpha.10 (2022-07-18)
181
-
182
- **Note:** Version bump only for package @avalabs/glacier-sdk
183
-
184
- ## 2.4.1-alpha.9 (2022-07-14)
185
-
186
- **Note:** Version bump only for package @avalabs/glacier-sdk
187
-
188
- ## 2.4.1-alpha.8 (2022-07-07)
189
-
190
- **Note:** Version bump only for package @avalabs/glacier-sdk
191
-
192
- ## 2.4.1-alpha.7 (2022-07-07)
193
-
194
- **Note:** Version bump only for package @avalabs/glacier-sdk
195
-
196
- ## 2.4.1-alpha.6 (2022-07-07)
197
-
198
- **Note:** Version bump only for package @avalabs/glacier-sdk
199
-
200
- ## 2.4.1-alpha.5 (2022-07-07)
201
-
202
- **Note:** Version bump only for package @avalabs/glacier-sdk
203
-
204
- ## 2.4.1-alpha.4 (2022-07-06)
205
-
206
- **Note:** Version bump only for package glacier-sdk
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- const glacierSdk = require('..');
4
-
5
- describe('glacier-sdk', () => {
6
- it('needs tests');
7
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../src/generated/models.ts","../src/glacierClient.ts"],"sourcesContent":["/* eslint-disable */\n/* tslint:disable */\n/*\n * ---------------------------------------------------------------\n * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##\n * ## ##\n * ## AUTHOR: acacode ##\n * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##\n * ---------------------------------------------------------------\n */\n\nexport enum CurrencyCode {\n Usd = 'usd',\n Eur = 'eur',\n Aud = 'aud',\n Cad = 'cad',\n Chf = 'chf',\n Clp = 'clp',\n Czk = 'czk',\n Dkk = 'dkk',\n Gbp = 'gbp',\n Hkd = 'hkd',\n Huf = 'huf',\n}\n\nexport interface Money {\n /**\n * ISO 4217 currency code.\n * @example usd\n */\n currencyCode: CurrencyCode;\n\n /**\n * Monetary value in base 10 decimals.\n * @example 42.42\n */\n value: number;\n}\n\nexport interface NativeTokenBalance {\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n chainId: string;\n price?: Money;\n balance: string;\n balanceValue?: Money;\n}\n\nexport interface NativeBalance {\n nativeTokenBalance: NativeTokenBalance;\n}\n\nexport interface Erc20TokenBalance {\n /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */\n address: string;\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n price?: Money;\n chainId: string;\n balance: string;\n balanceValue?: Money;\n}\n\nexport interface Erc20Balances {\n /** 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. */\n nextPageToken?: string;\n erc20TokenBalances: Erc20TokenBalance[];\n}\n\nexport enum Erc721MetadataStatus {\n UNKNOWN = 'UNKNOWN',\n MISSING_TOKEN = 'MISSING_TOKEN',\n INVALID_TOKEN_URI = 'INVALID_TOKEN_URI',\n INVALID_TOKEN_URI_SCHEME = 'INVALID_TOKEN_URI_SCHEME',\n UNREACHABLE_TOKEN_URI = 'UNREACHABLE_TOKEN_URI',\n THROTTLED_TOKEN_URI = 'THROTTLED_TOKEN_URI',\n METADATA_CONTENT_TOO_LARGE = 'METADATA_CONTENT_TOO_LARGE',\n INVALID_METADATA = 'INVALID_METADATA',\n INVALID_METADATA_JSON = 'INVALID_METADATA_JSON',\n INDEXED = 'INDEXED',\n UNINDEXED = 'UNINDEXED',\n}\n\nexport interface Erc721Metadata {\n /**\n * The metadata indexing status of the nft.\n * @example indexed\n */\n indexStatus: Erc721MetadataStatus;\n metadataLastUpdatedTimestamp?: number;\n name?: string;\n symbol?: string;\n imageUri?: string;\n description?: string;\n animationUri?: string;\n externalUrl?: string;\n background?: string;\n attributes?: string;\n}\n\nexport interface Erc721TokenBalance {\n /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */\n address: string;\n name: string;\n symbol: string;\n tokenId: string;\n tokenUri: string;\n metadata: Erc721Metadata;\n chainId: string;\n}\n\nexport interface Erc721Balances {\n /** 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. */\n nextPageToken?: string;\n erc721TokenBalances: Erc721TokenBalance[];\n}\n\nexport interface Block {\n /**\n * The block number on the chain.\n * @example 339\n */\n blockNumber: string;\n\n /**\n * The block finality timestamp.\n * @example 1648672486\n */\n blockTimestamp: number;\n\n /**\n * The block hash identifier.\n * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c\n */\n blockHash: string;\n\n /** The number of transactions in the block. */\n txCount: number;\n\n /** The base gas fee for a transaction to be included in the block. */\n baseFee: string;\n\n /** The gas used for transactions in the block. */\n gasUsed: string;\n\n /** The total gas limit set for transactions in the block. */\n gasLimit: string;\n gasCost: string;\n\n /** The hash of the parent block. */\n parentHash: string;\n\n /** The amount of fees spent/burned for transactions in the block. */\n feesSpent: string;\n\n /** The cumulative number of transactions for the chain including this block. */\n cumulativeTransactions: string;\n}\n\nexport interface ListBlocks {\n /** 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. */\n nextPageToken?: string;\n blocks: Block[];\n}\n\nexport interface ListTransfers {\n /** 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. */\n nextPageToken?: string;\n transfers: Erc20Transfer[] | Erc721Transfer[];\n}\n\nexport interface RichAddress {\n name?: string;\n symbol?: string;\n decimals?: number;\n logoUri?: string;\n\n /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */\n address: string;\n}\n\nexport interface Method {\n /**\n * The contract method hash identifier.\n * @example 0xa9059cbb\n */\n methodHash: string;\n\n /**\n * The contract method name including parameter types.\n * @example transfer(address,uint256)\n */\n methodName?: string;\n}\n\nexport interface NativeTransaction {\n /**\n * The block number on the chain.\n * @example 339\n */\n blockNumber: string;\n\n /**\n * The block finality timestamp.\n * @example 1648672486\n */\n blockTimestamp: number;\n\n /**\n * The block hash identifier.\n * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c\n */\n blockHash: string;\n\n /**\n * The index at which the transaction occured in the block (0-indexed).\n * @example 0\n */\n blockIndex: number;\n\n /**\n * The transaction hash identifier.\n * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4\n */\n txHash: string;\n\n /**\n * The transaction status, which is either 0 (failed) or 1 (successful).\n * @example 1\n */\n txStatus: string;\n\n /**\n * The transaction type.\n * @example 1\n */\n txType: number;\n\n /**\n * The gas limit set for the transaction.\n * @example 51373\n */\n gasLimit: string;\n\n /**\n * The amount of gas used.\n * @example 51373\n */\n gasUsed: string;\n\n /**\n * The gas price denominated by the number of decimals of the native token.\n * @example 470000000000\n */\n gasPrice: string;\n\n /**\n * The nonce used by the sender of the transaction.\n * @example 1\n */\n nonce: string;\n from: RichAddress;\n to: RichAddress;\n method?: Method;\n\n /** @example 10000000000000000000 */\n value: string;\n}\n\nexport interface Erc20Token {\n /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */\n address: string;\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n price?: Money;\n}\n\nexport interface Erc20TransferDetails {\n from: RichAddress;\n to: RichAddress;\n erc20Token: Erc20Token;\n\n /** @example 10000000000000000000 */\n value: string;\n}\n\nexport interface Erc721Token {\n /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */\n address: string;\n name: string;\n symbol: string;\n tokenId: string;\n tokenUri: string;\n metadata: Erc721Metadata;\n}\n\nexport interface Erc721TransferDetails {\n from: RichAddress;\n to: RichAddress;\n erc721Token: Erc721Token;\n}\n\nexport enum InternalTransactionOpCall {\n UNKNOWN = 'UNKNOWN',\n CALL = 'CALL',\n CREATE = 'CREATE',\n CREATE2 = 'CREATE2',\n CALLCODE = 'CALLCODE',\n DELEGATECALL = 'DELEGATECALL',\n STATICCALL = 'STATICCALL',\n}\n\nexport interface InternalTransactionDetails {\n from: RichAddress;\n to: RichAddress;\n internalTxType: InternalTransactionOpCall;\n\n /** @example 10000000000000000000 */\n value: string;\n isReverted: boolean;\n}\n\nexport interface TransactionDetails {\n nativeTransaction: NativeTransaction;\n erc20Transfers?: Erc20TransferDetails[];\n erc721Transfers?: Erc721TransferDetails[];\n internalTransactions?: InternalTransactionDetails[];\n}\n\nexport interface ListTransactionDetails {\n /** 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. */\n nextPageToken?: string;\n transactions: TransactionDetails[];\n}\n\nexport interface ListNativeTransactions {\n /** 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. */\n nextPageToken?: string;\n transactions: NativeTransaction[];\n}\n\nexport interface Erc20Transfer {\n /**\n * The block number on the chain.\n * @example 339\n */\n blockNumber: string;\n\n /**\n * The block finality timestamp.\n * @example 1648672486\n */\n blockTimestamp: number;\n\n /**\n * The transaction hash identifier.\n * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4\n */\n txHash: string;\n from: RichAddress;\n to: RichAddress;\n erc20Token: Erc20Token;\n\n /** @example 10000000000000000000 */\n value: string;\n}\n\nexport interface ListErc20Transactions {\n /** 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. */\n nextPageToken?: string;\n transactions: Erc20Transfer[];\n}\n\nexport interface Erc721Transfer {\n /**\n * The block number on the chain.\n * @example 339\n */\n blockNumber: string;\n\n /**\n * The block finality timestamp.\n * @example 1648672486\n */\n blockTimestamp: number;\n\n /**\n * The transaction hash identifier.\n * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4\n */\n txHash: string;\n from: RichAddress;\n to: RichAddress;\n erc721Token: Erc721Token;\n}\n\nexport interface ListErc721Transactions {\n /** 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. */\n nextPageToken?: string;\n transactions: Erc721Transfer[];\n}\n\nexport interface NetworkToken {\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n description?: string;\n}\n\nexport interface NetworkTokenDetails {\n networkToken: NetworkToken;\n currentPrice?: Money;\n historicalPrice?: Money;\n}\n\nexport interface FullTransactionDetails {\n nativeTransaction: NativeTransaction;\n erc20Transfers?: Erc20TransferDetails[];\n erc721Transfers?: Erc721TransferDetails[];\n internalTransactions?: InternalTransactionDetails[];\n networkTokenDetails: NetworkTokenDetails;\n}\n\nexport enum VmName {\n EVM = 'EVM',\n BITCOIN = 'BITCOIN',\n ETHEREUM = 'ETHEREUM',\n}\n\nexport interface UtilityAddresses {\n multicall?: string;\n}\n\nexport interface ChainInfo {\n chainId: string;\n chainName: string;\n description: string;\n platformChainId?: string;\n subnetId?: string;\n vmId?: string;\n vmName: VmName;\n explorerUrl?: string;\n rpcUrl: string;\n wsUrl?: string;\n isTestnet: boolean;\n utilityAddresses?: UtilityAddresses;\n networkToken: NetworkToken;\n chainLogoUri?: string;\n}\n\nexport interface Chains {\n chains: ChainInfo[];\n}\n","import { HttpClient, HttpOptions } from '@avalabs/utils-sdk';\nimport {\n ChainInfo,\n Chains,\n CurrencyCode,\n Erc20Balances,\n Erc721Balances,\n ListTransactionDetails,\n NativeBalance,\n TransactionDetails,\n} from './generated/models';\nimport { HealthStatusCheck } from './types';\n\nexport class GlacierClient {\n private httpClient: HttpClient;\n constructor(\n private baseUrl: string,\n private version = 'v1',\n private httpOptions?: HttpOptions\n ) {\n this.httpClient = new HttpClient(\n `${this.baseUrl}/${this.version}`,\n this.httpOptions\n );\n }\n /**\n *\n * @name HealthCheck\n * @summary Get the health of the service.\n * @request GET:/${version}/health-check\n * @response `200` `{ status?: string, info?: Record<string, { status?: string }>, error?: Record<string, { status?: string }>, details?: Record<string, { status?: string }> }` The Health Check is successful\n * @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\n */\n healthCheck(\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<HealthStatusCheck>(\n `/health-check`,\n params,\n customOptions\n );\n }\n\n /**\n * No description\n *\n * @name GetNativeBalance\n * @summary Get native token balance of a wallet address for a given chain.\n * @request GET:/v1/chains/{chainId}/addresses/{address}/balances:getNative\n * @response `200` `NativeBalanceDto`\n */\n getNativeBalance(\n chainId: string,\n address: string,\n query?: {\n currency?: CurrencyCode;\n },\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<NativeBalance>(\n `/chains/${chainId}/addresses/${address}/balances:getNative`,\n { ...query, ...params },\n customOptions\n );\n }\n /**\n *\n * @name ListErc20Balances\n * @summary Get erc-20 token balances of a wallet address for a given chain.\n * @request GET:/v1/chains/{chainId}/addresses/{address}/balances:listErc20\n * @response `200` `Erc20BalancesDto`\n */\n listErc20Balances(\n chainId: string,\n address: string,\n query?: {\n pageSize?: number;\n pageToken?: string;\n currency?: CurrencyCode;\n },\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<Erc20Balances>(\n `/chains/${chainId}/addresses/${address}/balances:listErc20`,\n { ...query, ...params },\n customOptions\n );\n }\n /**\n * No description\n *\n * @name ListErc721Balances\n * @summary Get erc-721 token balances of a wallet address for a given chain.\n * @request GET:/v1/chains/{chainId}/addresses/{address}/balances:listErc721\n * @response `200` `Erc721BalancesDto`\n */\n listErc721Balances(\n chainId: string,\n address: string,\n query?: {\n pageSize?: number;\n pageToken?: string;\n currency?: CurrencyCode;\n },\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<Erc721Balances>(\n `/chains/${chainId}/addresses/${address}/balances:listErc721`,\n { ...query, ...params },\n customOptions\n );\n }\n /**\n * @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.\n *\n * @name ListTransactions\n * @summary Gets a list of transactions for a wallet address and chain.\n * @request GET:/v1/chains/{chainId}/addresses/{address}/transactions\n * @response `200` `ListTransactionDetailsDto`\n */\n listTransactions(\n chainId: string,\n address: string,\n query?: { pageSize?: number; pageToken?: string },\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<ListTransactionDetails>(\n `/chains/${chainId}/addresses/${address}/transactions`,\n { ...query, ...params },\n customOptions\n );\n }\n /**\n *\n * @name GetTransaction\n * @summary Gets the details of a single transaction.\n * @request GET:/v1/chains/{chainId}/transactions/{txHash}\n * @response `200` `TransactionDetailsDto`\n */\n getTransaction(\n chainId: string,\n txHash: string,\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<TransactionDetails>(\n `/chains/${chainId}/transactions/${txHash}`,\n params,\n customOptions\n );\n }\n /**\n *\n * @name SupportedChains\n * @summary Gets the list of chains supported by the api.\n * @request GET:/v1/chains\n * @response `200` `ChainsDto`\n */\n supportedChains(\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<Chains>(`/chains`, params, customOptions);\n }\n\n /**\n * No description\n *\n * @name GetChainInfo\n * @summary Gets chain information by chain id.\n * @request GET:/v1/chains/{chainId}\n * @response `200` `ChainInfoDto`\n */\n getChainInfo(\n chainId: string,\n params: Record<string, any> = {},\n customOptions: HttpOptions = {}\n ) {\n return this.httpClient.get<ChainInfo>(\n `/chains/${chainId}`,\n params,\n customOptions\n );\n }\n}\n"],"names":["CurrencyCode","Erc721MetadataStatus","InternalTransactionOpCall","VmName","HttpClient"],"mappings":";;;;;;AAAA;AACA;AACA;;;;;;;AAOG;AAESA,8BAYX;AAZD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,YAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACb,CAAC,EAZWA,oBAAY,KAAZA,oBAAY,GAYvB,EAAA,CAAA,CAAA,CAAA;AAkDWC,sCAYX;AAZD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,oBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B,CAAA;AAC/B,IAAA,oBAAA,CAAA,mBAAA,CAAA,GAAA,mBAAuC,CAAA;AACvC,IAAA,oBAAA,CAAA,0BAAA,CAAA,GAAA,0BAAqD,CAAA;AACrD,IAAA,oBAAA,CAAA,uBAAA,CAAA,GAAA,uBAA+C,CAAA;AAC/C,IAAA,oBAAA,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- Eur = "eur",
4
- Aud = "aud",
5
- Cad = "cad",
6
- Chf = "chf",
7
- Clp = "clp",
8
- Czk = "czk",
9
- Dkk = "dkk",
10
- Gbp = "gbp",
11
- Hkd = "hkd",
12
- Huf = "huf"
13
- }
14
- export interface Money {
15
- /**
16
- * ISO 4217 currency code.
17
- * @example usd
18
- */
19
- currencyCode: CurrencyCode;
20
- /**
21
- * Monetary value in base 10 decimals.
22
- * @example 42.42
23
- */
24
- value: number;
25
- }
26
- export interface NativeTokenBalance {
27
- name: string;
28
- symbol: string;
29
- decimals: number;
30
- logoUri?: string;
31
- chainId: string;
32
- price?: Money;
33
- balance: string;
34
- balanceValue?: Money;
35
- }
36
- export interface NativeBalance {
37
- nativeTokenBalance: NativeTokenBalance;
38
- }
39
- export interface Erc20TokenBalance {
40
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
41
- address: string;
42
- name: string;
43
- symbol: string;
44
- decimals: number;
45
- logoUri?: string;
46
- price?: Money;
47
- chainId: string;
48
- balance: string;
49
- balanceValue?: Money;
50
- }
51
- export interface Erc20Balances {
52
- /** 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. */
53
- nextPageToken?: string;
54
- erc20TokenBalances: Erc20TokenBalance[];
55
- }
56
- export declare enum Erc721MetadataStatus {
57
- UNKNOWN = "UNKNOWN",
58
- MISSING_TOKEN = "MISSING_TOKEN",
59
- INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
60
- INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
61
- UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
62
- THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
63
- METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
64
- INVALID_METADATA = "INVALID_METADATA",
65
- INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
66
- INDEXED = "INDEXED",
67
- UNINDEXED = "UNINDEXED"
68
- }
69
- export interface Erc721Metadata {
70
- /**
71
- * The metadata indexing status of the nft.
72
- * @example indexed
73
- */
74
- indexStatus: Erc721MetadataStatus;
75
- metadataLastUpdatedTimestamp?: number;
76
- name?: string;
77
- symbol?: string;
78
- imageUri?: string;
79
- description?: string;
80
- animationUri?: string;
81
- externalUrl?: string;
82
- background?: string;
83
- attributes?: string;
84
- }
85
- export interface Erc721TokenBalance {
86
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
87
- address: string;
88
- name: string;
89
- symbol: string;
90
- tokenId: string;
91
- tokenUri: string;
92
- metadata: Erc721Metadata;
93
- chainId: string;
94
- }
95
- export interface Erc721Balances {
96
- /** 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. */
97
- nextPageToken?: string;
98
- erc721TokenBalances: Erc721TokenBalance[];
99
- }
100
- export interface Block {
101
- /**
102
- * The block number on the chain.
103
- * @example 339
104
- */
105
- blockNumber: string;
106
- /**
107
- * The block finality timestamp.
108
- * @example 1648672486
109
- */
110
- blockTimestamp: number;
111
- /**
112
- * The block hash identifier.
113
- * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c
114
- */
115
- blockHash: string;
116
- /** The number of transactions in the block. */
117
- txCount: number;
118
- /** The base gas fee for a transaction to be included in the block. */
119
- baseFee: string;
120
- /** The gas used for transactions in the block. */
121
- gasUsed: string;
122
- /** The total gas limit set for transactions in the block. */
123
- gasLimit: string;
124
- gasCost: string;
125
- /** The hash of the parent block. */
126
- parentHash: string;
127
- /** The amount of fees spent/burned for transactions in the block. */
128
- feesSpent: string;
129
- /** The cumulative number of transactions for the chain including this block. */
130
- cumulativeTransactions: string;
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
- export interface ListTransfers {
138
- /** 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. */
139
- nextPageToken?: string;
140
- transfers: Erc20Transfer[] | Erc721Transfer[];
141
- }
142
- export interface RichAddress {
143
- name?: string;
144
- symbol?: string;
145
- decimals?: number;
146
- logoUri?: string;
147
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
148
- address: string;
149
- }
150
- export interface Method {
151
- /**
152
- * The contract method hash identifier.
153
- * @example 0xa9059cbb
154
- */
155
- methodHash: string;
156
- /**
157
- * The contract method name including parameter types.
158
- * @example transfer(address,uint256)
159
- */
160
- methodName?: string;
161
- }
162
- export interface NativeTransaction {
163
- /**
164
- * The block number on the chain.
165
- * @example 339
166
- */
167
- blockNumber: string;
168
- /**
169
- * The block finality timestamp.
170
- * @example 1648672486
171
- */
172
- blockTimestamp: number;
173
- /**
174
- * The block hash identifier.
175
- * @example 0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c
176
- */
177
- blockHash: string;
178
- /**
179
- * The index at which the transaction occured in the block (0-indexed).
180
- * @example 0
181
- */
182
- blockIndex: number;
183
- /**
184
- * The transaction hash identifier.
185
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
186
- */
187
- txHash: string;
188
- /**
189
- * The transaction status, which is either 0 (failed) or 1 (successful).
190
- * @example 1
191
- */
192
- txStatus: string;
193
- /**
194
- * The transaction type.
195
- * @example 1
196
- */
197
- txType: number;
198
- /**
199
- * The gas limit set for the transaction.
200
- * @example 51373
201
- */
202
- gasLimit: string;
203
- /**
204
- * The amount of gas used.
205
- * @example 51373
206
- */
207
- gasUsed: string;
208
- /**
209
- * The gas price denominated by the number of decimals of the native token.
210
- * @example 470000000000
211
- */
212
- gasPrice: string;
213
- /**
214
- * The nonce used by the sender of the transaction.
215
- * @example 1
216
- */
217
- nonce: string;
218
- from: RichAddress;
219
- to: RichAddress;
220
- method?: Method;
221
- /** @example 10000000000000000000 */
222
- value: string;
223
- }
224
- export interface Erc20Token {
225
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
226
- address: string;
227
- name: string;
228
- symbol: string;
229
- decimals: number;
230
- logoUri?: string;
231
- price?: Money;
232
- }
233
- export interface Erc20TransferDetails {
234
- from: RichAddress;
235
- to: RichAddress;
236
- erc20Token: Erc20Token;
237
- /** @example 10000000000000000000 */
238
- value: string;
239
- }
240
- export interface Erc721Token {
241
- /** @example 0x71C7656EC7ab88b098defB751B7401B5f6d8976F */
242
- address: string;
243
- name: string;
244
- symbol: string;
245
- tokenId: string;
246
- tokenUri: string;
247
- metadata: Erc721Metadata;
248
- }
249
- export interface Erc721TransferDetails {
250
- from: RichAddress;
251
- to: RichAddress;
252
- erc721Token: Erc721Token;
253
- }
254
- export declare enum InternalTransactionOpCall {
255
- UNKNOWN = "UNKNOWN",
256
- CALL = "CALL",
257
- CREATE = "CREATE",
258
- CREATE2 = "CREATE2",
259
- CALLCODE = "CALLCODE",
260
- DELEGATECALL = "DELEGATECALL",
261
- STATICCALL = "STATICCALL"
262
- }
263
- export interface InternalTransactionDetails {
264
- from: RichAddress;
265
- to: RichAddress;
266
- internalTxType: InternalTransactionOpCall;
267
- /** @example 10000000000000000000 */
268
- value: string;
269
- isReverted: boolean;
270
- }
271
- export interface TransactionDetails {
272
- nativeTransaction: NativeTransaction;
273
- erc20Transfers?: Erc20TransferDetails[];
274
- erc721Transfers?: Erc721TransferDetails[];
275
- internalTransactions?: InternalTransactionDetails[];
276
- }
277
- export interface ListTransactionDetails {
278
- /** 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. */
279
- nextPageToken?: string;
280
- transactions: TransactionDetails[];
281
- }
282
- export interface ListNativeTransactions {
283
- /** 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. */
284
- nextPageToken?: string;
285
- transactions: NativeTransaction[];
286
- }
287
- export interface Erc20Transfer {
288
- /**
289
- * The block number on the chain.
290
- * @example 339
291
- */
292
- blockNumber: string;
293
- /**
294
- * The block finality timestamp.
295
- * @example 1648672486
296
- */
297
- blockTimestamp: number;
298
- /**
299
- * The transaction hash identifier.
300
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
301
- */
302
- txHash: string;
303
- from: RichAddress;
304
- to: RichAddress;
305
- erc20Token: Erc20Token;
306
- /** @example 10000000000000000000 */
307
- value: string;
308
- }
309
- export interface ListErc20Transactions {
310
- /** 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. */
311
- nextPageToken?: string;
312
- transactions: Erc20Transfer[];
313
- }
314
- export interface Erc721Transfer {
315
- /**
316
- * The block number on the chain.
317
- * @example 339
318
- */
319
- blockNumber: string;
320
- /**
321
- * The block finality timestamp.
322
- * @example 1648672486
323
- */
324
- blockTimestamp: number;
325
- /**
326
- * The transaction hash identifier.
327
- * @example 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4
328
- */
329
- txHash: string;
330
- from: RichAddress;
331
- to: RichAddress;
332
- erc721Token: Erc721Token;
333
- }
334
- export interface ListErc721Transactions {
335
- /** 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. */
336
- nextPageToken?: string;
337
- transactions: Erc721Transfer[];
338
- }
339
- export interface NetworkToken {
340
- name: string;
341
- symbol: string;
342
- decimals: number;
343
- logoUri?: string;
344
- description?: string;
345
- }
346
- export interface NetworkTokenDetails {
347
- networkToken: NetworkToken;
348
- currentPrice?: Money;
349
- historicalPrice?: Money;
350
- }
351
- export interface FullTransactionDetails {
352
- nativeTransaction: NativeTransaction;
353
- erc20Transfers?: Erc20TransferDetails[];
354
- erc721Transfers?: Erc721TransferDetails[];
355
- internalTransactions?: InternalTransactionDetails[];
356
- networkTokenDetails: NetworkTokenDetails;
357
- }
358
- export declare enum VmName {
359
- EVM = "EVM",
360
- BITCOIN = "BITCOIN",
361
- ETHEREUM = "ETHEREUM"
362
- }
363
- export interface UtilityAddresses {
364
- multicall?: string;
365
- }
366
- export interface ChainInfo {
367
- chainId: string;
368
- chainName: string;
369
- description: string;
370
- platformChainId?: string;
371
- subnetId?: string;
372
- vmId?: string;
373
- vmName: VmName;
374
- explorerUrl?: string;
375
- rpcUrl: string;
376
- wsUrl?: string;
377
- isTestnet: boolean;
378
- utilityAddresses?: UtilityAddresses;
379
- networkToken: NetworkToken;
380
- chainLogoUri?: string;
381
- }
382
- export interface Chains {
383
- chains: ChainInfo[];
384
- }
385
- //# sourceMappingURL=models.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":"AAWA,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,KAAK;IACpB;;;OAGG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,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M,EAChC,aAAa,GAAE,WAAgB;IAQjC;;;;;;OAMG;IACH,eAAe,CACb,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAChC,aAAa,GAAE,WAAgB;IAKjC;;;;;;;OAOG;IACH,YAAY,CACV,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAChC,aAAa,GAAE,WAAgB;CAQlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,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/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './src/generated/models';
2
- export * from './src/glacierClient';