@avalabs/glacier-sdk 2.8.0-alpha.80 → 2.8.0-alpha.82

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.
Files changed (190) hide show
  1. package/dist/index.d.ts +2614 -1012
  2. package/dist/index.js +1428 -207
  3. package/esm/generated/Glacier.d.ts +18 -0
  4. package/esm/generated/Glacier.js +28 -0
  5. package/esm/generated/core/ApiError.d.ts +13 -0
  6. package/esm/generated/core/ApiError.js +13 -0
  7. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  8. package/esm/generated/core/ApiResult.d.ts +9 -0
  9. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  10. package/esm/generated/core/BaseHttpRequest.js +7 -0
  11. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  12. package/esm/generated/core/CancelablePromise.js +86 -0
  13. package/esm/generated/core/FetchHttpRequest.js +13 -0
  14. package/esm/generated/core/OpenAPI.d.ts +18 -0
  15. package/esm/generated/core/OpenAPI.js +13 -0
  16. package/esm/generated/core/request.js +244 -0
  17. package/esm/generated/models/Address.d.ts +8 -0
  18. package/esm/generated/models/Asset.d.ts +28 -0
  19. package/esm/generated/models/AssetType.d.ts +8 -0
  20. package/esm/generated/models/AssetType.js +9 -0
  21. package/esm/generated/models/Block.d.ts +15 -0
  22. package/esm/generated/models/BlockchainId.d.ts +9 -0
  23. package/esm/generated/models/BlockchainId.js +10 -0
  24. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  25. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  26. package/esm/generated/models/CChainExportTransaction.js +8 -0
  27. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  28. package/esm/generated/models/CChainImportTransaction.js +8 -0
  29. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  30. package/esm/generated/models/CPBlockchainId.d.ts +7 -0
  31. package/esm/generated/models/CPBlockchainId.js +8 -0
  32. package/esm/generated/models/CancelListingEventResponse.d.ts +5 -0
  33. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  34. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  35. package/esm/generated/models/ChainInfo.d.ts +22 -0
  36. package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
  37. package/esm/generated/models/CollectionMetrics.d.ts +40 -0
  38. package/esm/generated/models/CollectionSortByOption.d.ts +8 -0
  39. package/esm/generated/models/CollectionSortByOption.js +9 -0
  40. package/esm/generated/models/ContractType.d.ts +7 -0
  41. package/esm/generated/models/ContractType.js +8 -0
  42. package/esm/generated/models/CreateTransactionExportRequest.d.ts +11 -0
  43. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  44. package/esm/generated/models/CurrencyCode.js +19 -0
  45. package/esm/generated/models/EVMInput.d.ts +14 -0
  46. package/esm/generated/models/EVMOutput.d.ts +14 -0
  47. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  48. package/esm/generated/models/Erc1155Token.js +8 -0
  49. package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
  50. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  51. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  52. package/esm/generated/models/Erc1155Transfer.d.ts +27 -0
  53. package/esm/generated/models/Erc1155TransferDetails.d.ts +11 -0
  54. package/esm/generated/models/Erc20Token.d.ts +38 -0
  55. package/esm/generated/models/Erc20Token.js +8 -0
  56. package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
  57. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  58. package/esm/generated/models/Erc20Transfer.d.ts +27 -0
  59. package/esm/generated/models/Erc20TransferDetails.d.ts +11 -0
  60. package/esm/generated/models/Erc721Token.d.ts +27 -0
  61. package/esm/generated/models/Erc721Token.js +8 -0
  62. package/esm/generated/models/Erc721TokenBalance.d.ts +31 -0
  63. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  64. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  65. package/esm/generated/models/Erc721Transfer.d.ts +26 -0
  66. package/esm/generated/models/Erc721TransferDetails.d.ts +10 -0
  67. package/esm/generated/models/ErcType.d.ts +8 -0
  68. package/esm/generated/models/ErcType.js +9 -0
  69. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  70. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  71. package/esm/generated/models/GetBlockResponse.d.ts +49 -0
  72. package/esm/generated/models/GetChainResponse.d.ts +22 -0
  73. package/esm/generated/models/GetContractInformationResponse.d.ts +58 -0
  74. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  75. package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
  76. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  77. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  78. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  79. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  80. package/esm/generated/models/ListBlocksResponse.d.ts +11 -0
  81. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +7 -0
  82. package/esm/generated/models/ListCChainExportTxsResponse.d.ts +11 -0
  83. package/esm/generated/models/ListCChainImportTxsResponse.d.ts +11 -0
  84. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  85. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
  86. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  87. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  88. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  89. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  90. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  91. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  92. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListListingsResponse.d.ts +11 -0
  94. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  96. package/esm/generated/models/ListPChainBalancesResponse.d.ts +7 -0
  97. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +11 -0
  98. package/esm/generated/models/ListPChainUtxosResponse.d.ts +11 -0
  99. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  100. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  101. package/esm/generated/models/ListUtxosResponse.d.ts +11 -0
  102. package/esm/generated/models/ListXChainBalancesResponse.d.ts +7 -0
  103. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +11 -0
  104. package/esm/generated/models/ListXChainVerticesResponse.d.ts +11 -0
  105. package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
  106. package/esm/generated/models/ListingCurrencyType.js +7 -0
  107. package/esm/generated/models/ListingEventType.d.ts +8 -0
  108. package/esm/generated/models/ListingEventType.js +9 -0
  109. package/esm/generated/models/ListingResponse.d.ts +19 -0
  110. package/esm/generated/models/ListingType.d.ts +6 -0
  111. package/esm/generated/models/ListingType.js +7 -0
  112. package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
  113. package/esm/generated/models/ListingsSortByOption.js +6 -0
  114. package/esm/generated/models/Method.d.ts +24 -0
  115. package/esm/generated/models/Money.d.ts +14 -0
  116. package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
  117. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  118. package/esm/generated/models/Network.d.ts +6 -0
  119. package/esm/generated/models/Network.js +7 -0
  120. package/esm/generated/models/NetworkToken.d.ts +23 -0
  121. package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
  122. package/esm/generated/models/NftCollection.d.ts +22 -0
  123. package/esm/generated/models/NftCollectionWithMetrics.d.ts +24 -0
  124. package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
  125. package/esm/generated/models/NftSearchBody.d.ts +10 -0
  126. package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
  127. package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
  128. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  129. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  130. package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
  131. package/esm/generated/models/OperationMetadata.d.ts +3 -0
  132. package/esm/generated/models/OperationStatusResponse.d.ts +14 -0
  133. package/esm/generated/models/PChainAsset.d.ts +6 -0
  134. package/esm/generated/models/PChainBalance.d.ts +30 -0
  135. package/esm/generated/models/PChainConsumedUtxo.d.ts +9 -0
  136. package/esm/generated/models/PChainEmittedUtxo.d.ts +13 -0
  137. package/esm/generated/models/PChainId.d.ts +6 -0
  138. package/esm/generated/models/PChainId.js +7 -0
  139. package/esm/generated/models/PChainTransaction.d.ts +45 -0
  140. package/esm/generated/models/PChainUtxo.d.ts +20 -0
  141. package/esm/generated/models/PaginationParams.d.ts +13 -0
  142. package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
  143. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  144. package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
  145. package/esm/generated/models/ResourceLink.d.ts +8 -0
  146. package/esm/generated/models/ResourceLinkType.d.ts +18 -0
  147. package/esm/generated/models/ResourceLinkType.js +19 -0
  148. package/esm/generated/models/ReviewStatus.d.ts +6 -0
  149. package/esm/generated/models/ReviewStatus.js +7 -0
  150. package/esm/generated/models/RichAddress.d.ts +26 -0
  151. package/esm/generated/models/SortOrder.d.ts +6 -0
  152. package/esm/generated/models/SortOrder.js +7 -0
  153. package/esm/generated/models/TokenWithPrice.d.ts +28 -0
  154. package/esm/generated/models/TransactionDetails.d.ts +36 -0
  155. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  156. package/esm/generated/models/TransactionMethodType.js +8 -0
  157. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  158. package/esm/generated/models/TransactionStatus.js +7 -0
  159. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  160. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  161. package/esm/generated/models/TrendingTimeframe.js +8 -0
  162. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  163. package/esm/generated/models/Utxo.d.ts +60 -0
  164. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  165. package/esm/generated/models/VmName.d.ts +7 -0
  166. package/esm/generated/models/VmName.js +8 -0
  167. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  168. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  169. package/esm/generated/models/XChainBalances.d.ts +17 -0
  170. package/esm/generated/models/XChainId.d.ts +6 -0
  171. package/esm/generated/models/XChainId.js +7 -0
  172. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  173. package/esm/generated/models/XChainTransaction.d.ts +51 -0
  174. package/esm/generated/models/XChainVertex.d.ts +12 -0
  175. package/esm/generated/services/EvmService.d.ts +734 -0
  176. package/esm/generated/services/EvmService.js +518 -0
  177. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  178. package/esm/generated/services/HealthCheckService.js +16 -0
  179. package/esm/generated/services/OperationsService.d.ts +30 -0
  180. package/esm/generated/services/OperationsService.js +28 -0
  181. package/esm/generated/services/PrimaryNetworkService.d.ts +359 -0
  182. package/esm/generated/services/PrimaryNetworkService.js +252 -0
  183. package/esm/index.d.ts +135 -2
  184. package/esm/index.js +41 -2
  185. package/package.json +6 -6
  186. package/esm/generated/models.d.ts +0 -1351
  187. package/esm/generated/models.js +0 -148
  188. package/esm/glacierClient.d.ts +0 -128
  189. package/esm/glacierClient.js +0 -94
  190. package/esm/types.d.ts +0 -14
@@ -0,0 +1,11 @@
1
+ import { Erc20Token } from './Erc20Token.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type Erc20TransferDetails = {
5
+ from: RichAddress;
6
+ to: RichAddress;
7
+ value: string;
8
+ erc20Token: Erc20Token;
9
+ };
10
+
11
+ export { Erc20TransferDetails };
@@ -0,0 +1,27 @@
1
+ import { Erc721TokenMetadata } from './Erc721TokenMetadata.js';
2
+
3
+ type Erc721Token = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ ercType: Erc721Token.ercType;
17
+ tokenId: string;
18
+ tokenUri: string;
19
+ metadata: Erc721TokenMetadata;
20
+ };
21
+ declare namespace Erc721Token {
22
+ enum ercType {
23
+ ERC_721 = "ERC-721"
24
+ }
25
+ }
26
+
27
+ export { Erc721Token };
@@ -0,0 +1,8 @@
1
+ var Erc721Token;
2
+ ((Erc721Token2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(Erc721Token2.ercType || (Erc721Token2.ercType = {}));
6
+ })(Erc721Token || (Erc721Token = {}));
7
+
8
+ export { Erc721Token };
@@ -0,0 +1,31 @@
1
+ import { Erc721TokenMetadata } from './Erc721TokenMetadata.js';
2
+
3
+ type Erc721TokenBalance = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ ercType: Erc721TokenBalance.ercType;
17
+ tokenId: string;
18
+ tokenUri: string;
19
+ metadata: Erc721TokenMetadata;
20
+ /**
21
+ * The evm chain id.
22
+ */
23
+ chainId: string;
24
+ };
25
+ declare namespace Erc721TokenBalance {
26
+ enum ercType {
27
+ ERC_721 = "ERC-721"
28
+ }
29
+ }
30
+
31
+ export { Erc721TokenBalance };
@@ -0,0 +1,8 @@
1
+ var Erc721TokenBalance;
2
+ ((Erc721TokenBalance2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
6
+ })(Erc721TokenBalance || (Erc721TokenBalance = {}));
7
+
8
+ export { Erc721TokenBalance };
@@ -0,0 +1,19 @@
1
+ import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
2
+
3
+ type Erc721TokenMetadata = {
4
+ /**
5
+ * The metadata indexing status of the nft.
6
+ */
7
+ indexStatus: NftTokenMetadataStatus;
8
+ metadataLastUpdatedTimestamp?: number;
9
+ name?: string;
10
+ symbol?: string;
11
+ imageUri?: string;
12
+ description?: string;
13
+ animationUri?: string;
14
+ externalUrl?: string;
15
+ background?: string;
16
+ attributes?: string;
17
+ };
18
+
19
+ export { Erc721TokenMetadata };
@@ -0,0 +1,26 @@
1
+ import { Erc721Token } from './Erc721Token.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type Erc721Transfer = {
5
+ /**
6
+ * The block number on the chain.
7
+ */
8
+ blockNumber: string;
9
+ /**
10
+ * The block finality timestamp.
11
+ */
12
+ blockTimestamp: number;
13
+ /**
14
+ * The block hash identifier.
15
+ */
16
+ blockHash: string;
17
+ /**
18
+ * The transaction hash identifier.
19
+ */
20
+ txHash: string;
21
+ from: RichAddress;
22
+ to: RichAddress;
23
+ erc721Token: Erc721Token;
24
+ };
25
+
26
+ export { Erc721Transfer };
@@ -0,0 +1,10 @@
1
+ import { Erc721Token } from './Erc721Token.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type Erc721TransferDetails = {
5
+ from: RichAddress;
6
+ to: RichAddress;
7
+ erc721Token: Erc721Token;
8
+ };
9
+
10
+ export { Erc721TransferDetails };
@@ -0,0 +1,8 @@
1
+ declare enum ErcType {
2
+ ERC_20 = "ERC-20",
3
+ ERC_721 = "ERC-721",
4
+ ERC_1155 = "ERC-1155",
5
+ UNKNOWN = "UNKNOWN"
6
+ }
7
+
8
+ export { ErcType };
@@ -0,0 +1,9 @@
1
+ var ErcType = /* @__PURE__ */ ((ErcType2) => {
2
+ ErcType2["ERC_20"] = "ERC-20";
3
+ ErcType2["ERC_721"] = "ERC-721";
4
+ ErcType2["ERC_1155"] = "ERC-1155";
5
+ ErcType2["UNKNOWN"] = "UNKNOWN";
6
+ return ErcType2;
7
+ })(ErcType || {});
8
+
9
+ export { ErcType };
@@ -0,0 +1,6 @@
1
+ type EvmNetworkOptions = {
2
+ addresses: Array<string>;
3
+ includeChainIds: Array<string>;
4
+ };
5
+
6
+ export { EvmNetworkOptions };
@@ -0,0 +1,62 @@
1
+ import { Method } from './Method.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type FullNativeTransactionDetails = {
5
+ /**
6
+ * The block number on the chain.
7
+ */
8
+ blockNumber: string;
9
+ /**
10
+ * The block finality timestamp.
11
+ */
12
+ blockTimestamp: number;
13
+ /**
14
+ * The block hash identifier.
15
+ */
16
+ blockHash: string;
17
+ /**
18
+ * The index at which the transaction occured in the block (0-indexed).
19
+ */
20
+ blockIndex: number;
21
+ /**
22
+ * The transaction hash identifier.
23
+ */
24
+ txHash: string;
25
+ /**
26
+ * The transaction status, which is either 0 (failed) or 1 (successful).
27
+ */
28
+ txStatus: string;
29
+ /**
30
+ * The transaction type.
31
+ */
32
+ txType: number;
33
+ /**
34
+ * The gas limit set for the transaction.
35
+ */
36
+ gasLimit: string;
37
+ /**
38
+ * The amount of gas used.
39
+ */
40
+ gasUsed: string;
41
+ /**
42
+ * The gas price denominated by the number of decimals of the native token.
43
+ */
44
+ gasPrice: string;
45
+ /**
46
+ * The nonce used by the sender of the transaction.
47
+ */
48
+ nonce: string;
49
+ from: RichAddress;
50
+ to: RichAddress;
51
+ method?: Method;
52
+ value: string;
53
+ /**
54
+ * The data sent for the transaction.
55
+ */
56
+ input: string;
57
+ baseFeePerGas: string;
58
+ maxFeePerGas?: string;
59
+ maxPriorityFeePerGas?: string;
60
+ };
61
+
62
+ export { FullNativeTransactionDetails };
@@ -0,0 +1,49 @@
1
+ type GetBlockResponse = {
2
+ /**
3
+ * The block number on the chain.
4
+ */
5
+ blockNumber: string;
6
+ /**
7
+ * The block finality timestamp.
8
+ */
9
+ blockTimestamp: number;
10
+ /**
11
+ * The block hash identifier.
12
+ */
13
+ blockHash: string;
14
+ /**
15
+ * The number of evm transactions in the block.
16
+ */
17
+ txCount: number;
18
+ /**
19
+ * The number of atomic transactions in the block.
20
+ */
21
+ atomicTxCount: number;
22
+ /**
23
+ * The base gas fee for a transaction to be included in the block.
24
+ */
25
+ baseFee: string;
26
+ /**
27
+ * The gas used for transactions in the block.
28
+ */
29
+ gasUsed: string;
30
+ /**
31
+ * The total gas limit set for transactions in the block.
32
+ */
33
+ gasLimit: string;
34
+ gasCost: string;
35
+ /**
36
+ * The hash of the parent block.
37
+ */
38
+ parentHash: string;
39
+ /**
40
+ * The amount of fees spent/burned for transactions in the block.
41
+ */
42
+ feesSpent: string;
43
+ /**
44
+ * The cumulative number of transactions for the chain including this block.
45
+ */
46
+ cumulativeTransactions: string;
47
+ };
48
+
49
+ export { GetBlockResponse };
@@ -0,0 +1,22 @@
1
+ import { NetworkToken } from './NetworkToken.js';
2
+ import { UtilityAddresses } from './UtilityAddresses.js';
3
+ import { VmName } from './VmName.js';
4
+
5
+ type GetChainResponse = {
6
+ chainId: string;
7
+ chainName: string;
8
+ description: string;
9
+ platformChainId?: string;
10
+ subnetId?: string;
11
+ vmId?: string;
12
+ vmName: VmName;
13
+ explorerUrl?: string;
14
+ rpcUrl: string;
15
+ wsUrl?: string;
16
+ isTestnet: boolean;
17
+ utilityAddresses?: UtilityAddresses;
18
+ networkToken: NetworkToken;
19
+ chainLogoUri?: string;
20
+ };
21
+
22
+ export { GetChainResponse };
@@ -0,0 +1,58 @@
1
+ import { AssetType } from './AssetType.js';
2
+ import { ContractType } from './ContractType.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+ import { ReviewStatus } from './ReviewStatus.js';
5
+
6
+ type GetContractInformationResponse = {
7
+ /**
8
+ * A wallet or contract address in mixed-case checksum encoding.
9
+ */
10
+ address: string;
11
+ description?: string;
12
+ /**
13
+ * The contract name.
14
+ */
15
+ name?: string;
16
+ /**
17
+ * The contract symbol.
18
+ */
19
+ symbol?: string;
20
+ contractType: ContractType;
21
+ assetType?: AssetType;
22
+ officialSite?: string;
23
+ /**
24
+ * Any labels given to the contract.
25
+ */
26
+ tags?: Array<any[]>;
27
+ email?: string;
28
+ /**
29
+ * The evm chain id.
30
+ */
31
+ chainId: number;
32
+ /**
33
+ * The number of decimals the token uses. For example `6`,
34
+ * means to divide the token amount by `1000000` to get its user
35
+ * representation.
36
+ */
37
+ decimals?: number;
38
+ /**
39
+ * The logo uri for the address.
40
+ */
41
+ logoUri?: string;
42
+ /**
43
+ * The hex color code assigned to the token.
44
+ */
45
+ tokenColor?: string;
46
+ /**
47
+ * Array of resource links.
48
+ */
49
+ resourceLinks?: Array<ResourceLink>;
50
+ /**
51
+ * Status of contract information submission. All submitted
52
+ * contracts will be reviewed for approval before being inserted into the
53
+ * Glacier repository.
54
+ */
55
+ reviewStatus: ReviewStatus;
56
+ };
57
+
58
+ export { GetContractInformationResponse };
@@ -0,0 +1,10 @@
1
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
+
3
+ type GetNativeBalanceResponse = {
4
+ /**
5
+ * The native token balance for the address.
6
+ */
7
+ nativeTokenBalance: NativeTokenBalance;
8
+ };
9
+
10
+ export { GetNativeBalanceResponse };
@@ -0,0 +1,35 @@
1
+ import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
2
+ import { Erc20TransferDetails } from './Erc20TransferDetails.js';
3
+ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
4
+ import { FullNativeTransactionDetails } from './FullNativeTransactionDetails.js';
5
+ import { InternalTransactionDetails } from './InternalTransactionDetails.js';
6
+ import { NetworkTokenDetails } from './NetworkTokenDetails.js';
7
+
8
+ type GetTransactionResponse = {
9
+ /**
10
+ * The list of ERC-20 transfers.
11
+ */
12
+ erc20Transfers?: Array<Erc20TransferDetails>;
13
+ /**
14
+ * The list of ERC-721 transfers.
15
+ */
16
+ erc721Transfers?: Array<Erc721TransferDetails>;
17
+ /**
18
+ * The list of ERC-1155 transfers.
19
+ */
20
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
21
+ /**
22
+ * The list of internal transactions. Note that this list only
23
+ * includes CALL and
24
+ * CALLCODE internal transactions that had a
25
+ * non-zero value and
26
+ * CREATE/CREATE2
27
+ * calls. Use a client provider to recieve a full debug trace of the
28
+ * transaction.
29
+ */
30
+ internalTransactions?: Array<InternalTransactionDetails>;
31
+ networkTokenDetails: NetworkTokenDetails;
32
+ nativeTransaction: FullNativeTransactionDetails;
33
+ };
34
+
35
+ export { GetTransactionResponse };
@@ -0,0 +1,33 @@
1
+ import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type InternalTransaction = {
5
+ /**
6
+ * The block number on the chain.
7
+ */
8
+ blockNumber: string;
9
+ /**
10
+ * The block finality timestamp.
11
+ */
12
+ blockTimestamp: number;
13
+ /**
14
+ * The block hash identifier.
15
+ */
16
+ blockHash: string;
17
+ /**
18
+ * The transaction hash identifier.
19
+ */
20
+ txHash: string;
21
+ from: RichAddress;
22
+ to: RichAddress;
23
+ internalTxType: InternalTransactionOpCall;
24
+ value: string;
25
+ /**
26
+ * True if the internal transaction was reverted.
27
+ */
28
+ isReverted: boolean;
29
+ gasUsed: string;
30
+ gasLimit: string;
31
+ };
32
+
33
+ export { InternalTransaction };
@@ -0,0 +1,17 @@
1
+ import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type InternalTransactionDetails = {
5
+ from: RichAddress;
6
+ to: RichAddress;
7
+ internalTxType: InternalTransactionOpCall;
8
+ value: string;
9
+ /**
10
+ * True if the internal transaction was reverted.
11
+ */
12
+ isReverted: boolean;
13
+ gasUsed: string;
14
+ gasLimit: string;
15
+ };
16
+
17
+ export { InternalTransactionDetails };
@@ -0,0 +1,11 @@
1
+ declare enum InternalTransactionOpCall {
2
+ UNKNOWN = "UNKNOWN",
3
+ CALL = "CALL",
4
+ CREATE = "CREATE",
5
+ CREATE2 = "CREATE2",
6
+ CALLCODE = "CALLCODE",
7
+ DELEGATECALL = "DELEGATECALL",
8
+ STATICCALL = "STATICCALL"
9
+ }
10
+
11
+ export { InternalTransactionOpCall };
@@ -0,0 +1,12 @@
1
+ var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
2
+ InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
3
+ InternalTransactionOpCall2["CALL"] = "CALL";
4
+ InternalTransactionOpCall2["CREATE"] = "CREATE";
5
+ InternalTransactionOpCall2["CREATE2"] = "CREATE2";
6
+ InternalTransactionOpCall2["CALLCODE"] = "CALLCODE";
7
+ InternalTransactionOpCall2["DELEGATECALL"] = "DELEGATECALL";
8
+ InternalTransactionOpCall2["STATICCALL"] = "STATICCALL";
9
+ return InternalTransactionOpCall2;
10
+ })(InternalTransactionOpCall || {});
11
+
12
+ export { InternalTransactionOpCall };
@@ -0,0 +1,11 @@
1
+ import { Block } from './Block.js';
2
+
3
+ type ListBlocksResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ blocks: Array<Block>;
9
+ };
10
+
11
+ export { ListBlocksResponse };
@@ -0,0 +1,7 @@
1
+ import { CChainAtomicBalances } from './CChainAtomicBalances.js';
2
+
3
+ type ListCChainAtomicBalancesResponse = {
4
+ balances: CChainAtomicBalances;
5
+ };
6
+
7
+ export { ListCChainAtomicBalancesResponse };
@@ -0,0 +1,11 @@
1
+ import { CChainExportTransaction } from './CChainExportTransaction.js';
2
+
3
+ type ListCChainExportTxsResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ transactions: Array<CChainExportTransaction>;
9
+ };
10
+
11
+ export { ListCChainExportTxsResponse };
@@ -0,0 +1,11 @@
1
+ import { CChainImportTransaction } from './CChainImportTransaction.js';
2
+
3
+ type ListCChainImportTxsResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ transactions: Array<CChainImportTransaction>;
9
+ };
10
+
11
+ export { ListCChainImportTxsResponse };
@@ -0,0 +1,7 @@
1
+ import { ChainInfo } from './ChainInfo.js';
2
+
3
+ type ListChainsResponse = {
4
+ chains: Array<ChainInfo>;
5
+ };
6
+
7
+ export { ListChainsResponse };
@@ -0,0 +1,16 @@
1
+ import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
2
+ import { Erc721TokenBalance } from './Erc721TokenBalance.js';
3
+
4
+ type ListCollectibleBalancesResponse = {
5
+ /**
6
+ * 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.
7
+ */
8
+ nextPageToken?: string;
9
+ /**
10
+ * The list of ERC-721 and ERC-1155 token balances for the
11
+ * address.
12
+ */
13
+ collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
14
+ };
15
+
16
+ export { ListCollectibleBalancesResponse };
@@ -0,0 +1,14 @@
1
+ import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
2
+
3
+ type ListErc1155BalancesResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ /**
9
+ * The list of ERC-1155 token balances for the address.
10
+ */
11
+ erc1155TokenBalances: Array<Erc1155TokenBalance>;
12
+ };
13
+
14
+ export { ListErc1155BalancesResponse };
@@ -0,0 +1,11 @@
1
+ import { Erc1155Transfer } from './Erc1155Transfer.js';
2
+
3
+ type ListErc1155TransactionsResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ transactions: Array<Erc1155Transfer>;
9
+ };
10
+
11
+ export { ListErc1155TransactionsResponse };
@@ -0,0 +1,14 @@
1
+ import { Erc20TokenBalance } from './Erc20TokenBalance.js';
2
+
3
+ type ListErc20BalancesResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ /**
9
+ * The list of ERC-20 token balances for the address.
10
+ */
11
+ erc20TokenBalances: Array<Erc20TokenBalance>;
12
+ };
13
+
14
+ export { ListErc20BalancesResponse };
@@ -0,0 +1,11 @@
1
+ import { Erc20Transfer } from './Erc20Transfer.js';
2
+
3
+ type ListErc20TransactionsResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ transactions: Array<Erc20Transfer>;
9
+ };
10
+
11
+ export { ListErc20TransactionsResponse };
@@ -0,0 +1,14 @@
1
+ import { Erc721TokenBalance } from './Erc721TokenBalance.js';
2
+
3
+ type ListErc721BalancesResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ /**
9
+ * The list of ERC-721 token balances for the address.
10
+ */
11
+ erc721TokenBalances: Array<Erc721TokenBalance>;
12
+ };
13
+
14
+ export { ListErc721BalancesResponse };
@@ -0,0 +1,11 @@
1
+ import { Erc721Transfer } from './Erc721Transfer.js';
2
+
3
+ type ListErc721TransactionsResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ transactions: Array<Erc721Transfer>;
9
+ };
10
+
11
+ export { ListErc721TransactionsResponse };
@@ -0,0 +1,11 @@
1
+ import { InternalTransaction } from './InternalTransaction.js';
2
+
3
+ type ListInternalTransactionsResponse = {
4
+ /**
5
+ * 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.
6
+ */
7
+ nextPageToken?: string;
8
+ transactions: Array<InternalTransaction>;
9
+ };
10
+
11
+ export { ListInternalTransactionsResponse };