@avalabs/glacier-sdk 2.8.0-alpha.12 → 2.8.0-alpha.121

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 (220) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3476 -3
  3. package/dist/index.js +1681 -153
  4. package/esm/generated/Glacier.d.ts +18 -0
  5. package/esm/generated/Glacier.js +28 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +13 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +86 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +244 -0
  18. package/esm/generated/models/Asset.d.ts +28 -0
  19. package/esm/generated/models/Blockchain.d.ts +10 -0
  20. package/esm/generated/models/BlockchainId.d.ts +12 -0
  21. package/esm/generated/models/BlockchainId.js +13 -0
  22. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  23. package/esm/generated/models/BlockchainIds.js +10 -0
  24. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  25. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  26. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  27. package/esm/generated/models/CChainExportTransaction.js +8 -0
  28. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  29. package/esm/generated/models/CChainImportTransaction.js +8 -0
  30. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  31. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  32. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  33. package/esm/generated/models/ChainInfo.d.ts +27 -0
  34. package/esm/generated/models/ChainStatus.d.ts +6 -0
  35. package/esm/generated/models/ChainStatus.js +7 -0
  36. package/esm/generated/models/CollectionMetrics.d.ts +41 -0
  37. package/esm/generated/models/CollectionSortByOption.d.ts +9 -0
  38. package/esm/generated/models/CollectionSortByOption.js +10 -0
  39. package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
  40. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  41. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  42. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  43. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  44. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  45. package/esm/generated/models/CurrencyCode.js +19 -0
  46. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  47. package/esm/generated/models/EVMInput.d.ts +19 -0
  48. package/esm/generated/models/EVMOutput.d.ts +14 -0
  49. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  50. package/esm/generated/models/Erc1155Token.js +8 -0
  51. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  52. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  53. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  54. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  55. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  56. package/esm/generated/models/Erc20Token.d.ts +36 -0
  57. package/esm/generated/models/Erc20Token.js +8 -0
  58. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  59. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  60. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  61. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  62. package/esm/generated/models/Erc721Token.d.ts +31 -0
  63. package/esm/generated/models/Erc721Token.js +8 -0
  64. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  65. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  66. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  67. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  68. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  69. package/esm/generated/models/ErcType.d.ts +8 -0
  70. package/esm/generated/models/ErcType.js +9 -0
  71. package/esm/generated/models/EvmBlock.d.ts +45 -0
  72. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  73. package/esm/generated/models/FloorPrice.d.ts +8 -0
  74. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  75. package/esm/generated/models/GetChainResponse.d.ts +27 -0
  76. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  77. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  78. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  79. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  80. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  81. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  82. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  83. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  84. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  85. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  86. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  87. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  88. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  89. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  90. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  91. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  92. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  94. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  96. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  97. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  98. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  99. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  100. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  101. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  102. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  103. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  104. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  105. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  106. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  107. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  108. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  109. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  110. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  111. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +11 -0
  112. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  113. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  114. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  115. package/esm/generated/models/Method.d.ts +18 -0
  116. package/esm/generated/models/Money.d.ts +14 -0
  117. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  118. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  119. package/esm/generated/models/Network.d.ts +6 -0
  120. package/esm/generated/models/Network.js +7 -0
  121. package/esm/generated/models/NetworkToken.d.ts +21 -0
  122. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  123. package/esm/generated/models/NetworkType.d.ts +6 -0
  124. package/esm/generated/models/NetworkType.js +7 -0
  125. package/esm/generated/models/NftCollection.d.ts +24 -0
  126. package/esm/generated/models/NftCollectionWithMetrics.d.ts +26 -0
  127. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  128. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  129. package/esm/generated/models/OperationStatus.d.ts +8 -0
  130. package/esm/generated/models/OperationStatus.js +9 -0
  131. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  132. package/esm/generated/models/OperationStatusCode.js +8 -0
  133. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  134. package/esm/generated/models/OperationType.d.ts +6 -0
  135. package/esm/generated/models/OperationType.js +7 -0
  136. package/esm/generated/models/PChainAsset.d.ts +6 -0
  137. package/esm/generated/models/PChainBalance.d.ts +39 -0
  138. package/esm/generated/models/PChainId.d.ts +6 -0
  139. package/esm/generated/models/PChainId.js +7 -0
  140. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  141. package/esm/generated/models/PChainTransaction.d.ts +71 -0
  142. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  143. package/esm/generated/models/PChainTransactionType.js +17 -0
  144. package/esm/generated/models/PChainUtxo.d.ts +31 -0
  145. package/esm/generated/models/PendingReward.d.ts +22 -0
  146. package/esm/generated/models/PrimaryNetworkBlock.d.ts +15 -0
  147. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +6 -0
  148. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  149. package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
  150. package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
  151. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  152. package/esm/generated/models/ResourceLink.d.ts +8 -0
  153. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  154. package/esm/generated/models/ResourceLinkType.js +23 -0
  155. package/esm/generated/models/RewardType.d.ts +6 -0
  156. package/esm/generated/models/RewardType.js +7 -0
  157. package/esm/generated/models/Rewards.d.ts +6 -0
  158. package/esm/generated/models/RichAddress.d.ts +24 -0
  159. package/esm/generated/models/SortOrder.d.ts +6 -0
  160. package/esm/generated/models/SortOrder.js +7 -0
  161. package/esm/generated/models/StakingDistribution.d.ts +6 -0
  162. package/esm/generated/models/Subnet.d.ts +13 -0
  163. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  164. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  165. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  166. package/esm/generated/models/TransactionMethodType.js +8 -0
  167. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  168. package/esm/generated/models/TransactionStatus.js +7 -0
  169. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  170. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  171. package/esm/generated/models/TrendingTimeframe.js +8 -0
  172. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  173. package/esm/generated/models/Utxo.d.ts +68 -0
  174. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  175. package/esm/generated/models/UtxoType.d.ts +6 -0
  176. package/esm/generated/models/UtxoType.js +7 -0
  177. package/esm/generated/models/ValidationStatusType.d.ts +5 -0
  178. package/esm/generated/models/ValidationStatusType.js +6 -0
  179. package/esm/generated/models/ValidatorsDetails.d.ts +10 -0
  180. package/esm/generated/models/VmName.d.ts +7 -0
  181. package/esm/generated/models/VmName.js +8 -0
  182. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  183. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  184. package/esm/generated/models/XChainBalances.d.ts +17 -0
  185. package/esm/generated/models/XChainId.d.ts +7 -0
  186. package/esm/generated/models/XChainId.js +8 -0
  187. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  188. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  189. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  190. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  191. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  192. package/esm/generated/models/XChainVertex.d.ts +12 -0
  193. package/esm/generated/services/EvmService.d.ts +616 -0
  194. package/esm/generated/services/EvmService.js +463 -0
  195. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  196. package/esm/generated/services/HealthCheckService.js +16 -0
  197. package/esm/generated/services/OperationsService.d.ts +35 -0
  198. package/esm/generated/services/OperationsService.js +28 -0
  199. package/esm/generated/services/PrimaryNetworkService.d.ts +618 -0
  200. package/esm/generated/services/PrimaryNetworkService.js +432 -0
  201. package/esm/index.d.ts +146 -0
  202. package/esm/index.js +47 -0
  203. package/package.json +11 -20
  204. package/CHANGELOG.md +0 -236
  205. package/__tests__/glacier-sdk.test.js +0 -7
  206. package/dist/index.d.ts.map +0 -1
  207. package/dist/index.js.map +0 -1
  208. package/dist/src/generated/models.d.ts +0 -385
  209. package/dist/src/generated/models.d.ts.map +0 -1
  210. package/dist/src/glacierClient.d.ts +0 -93
  211. package/dist/src/glacierClient.d.ts.map +0 -1
  212. package/dist/src/types.d.ts +0 -13
  213. package/dist/src/types.d.ts.map +0 -1
  214. package/index.ts +0 -2
  215. package/rollup.config.js +0 -33
  216. package/src/generated/models.ts +0 -460
  217. package/src/glacierClient.ts +0 -190
  218. package/src/types.ts +0 -6
  219. package/swagger/generateModels.js +0 -40
  220. package/tsconfig.json +0 -7
@@ -0,0 +1,48 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type Erc20TokenBalance = {
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
+ /**
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
18
+ */
19
+ decimals: number;
20
+ /**
21
+ * The logo uri for the address.
22
+ */
23
+ logoUri?: string;
24
+ ercType: Erc20TokenBalance.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ /**
30
+ * The evm chain id.
31
+ */
32
+ chainId: string;
33
+ /**
34
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
35
+ */
36
+ balance: string;
37
+ /**
38
+ * The monetary value of the balance, if a price is available for the token.
39
+ */
40
+ balanceValue?: Money;
41
+ };
42
+ declare namespace Erc20TokenBalance {
43
+ enum ercType {
44
+ ERC_20 = "ERC-20"
45
+ }
46
+ }
47
+
48
+ export { Erc20TokenBalance };
@@ -0,0 +1,8 @@
1
+ var Erc20TokenBalance;
2
+ ((Erc20TokenBalance2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(Erc20TokenBalance2.ercType || (Erc20TokenBalance2.ercType = {}));
6
+ })(Erc20TokenBalance || (Erc20TokenBalance = {}));
7
+
8
+ export { Erc20TokenBalance };
@@ -0,0 +1,28 @@
1
+ import { Erc20Token } from './Erc20Token.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type Erc20Transfer = {
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
+ logIndex: number;
24
+ value: string;
25
+ erc20Token: Erc20Token;
26
+ };
27
+
28
+ export { Erc20Transfer };
@@ -0,0 +1,12 @@
1
+ import { Erc20Token } from './Erc20Token.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type Erc20TransferDetails = {
5
+ from: RichAddress;
6
+ to: RichAddress;
7
+ logIndex: number;
8
+ value: string;
9
+ erc20Token: Erc20Token;
10
+ };
11
+
12
+ export { Erc20TransferDetails };
@@ -0,0 +1,31 @@
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
+ * A wallet or contract address in mixed-case checksum encoding.
22
+ */
23
+ ownerAddress?: string;
24
+ };
25
+ declare namespace Erc721Token {
26
+ enum ercType {
27
+ ERC_721 = "ERC-721"
28
+ }
29
+ }
30
+
31
+ 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,35 @@
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
+ * A wallet or contract address in mixed-case checksum encoding.
22
+ */
23
+ ownerAddress?: string;
24
+ /**
25
+ * The evm chain id.
26
+ */
27
+ chainId: string;
28
+ };
29
+ declare namespace Erc721TokenBalance {
30
+ enum ercType {
31
+ ERC_721 = "ERC-721"
32
+ }
33
+ }
34
+
35
+ 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,27 @@
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
+ logIndex: number;
24
+ erc721Token: Erc721Token;
25
+ };
26
+
27
+ export { Erc721Transfer };
@@ -0,0 +1,11 @@
1
+ import { Erc721Token } from './Erc721Token.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type Erc721TransferDetails = {
5
+ from: RichAddress;
6
+ to: RichAddress;
7
+ logIndex: number;
8
+ erc721Token: Erc721Token;
9
+ };
10
+
11
+ 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,45 @@
1
+ type EvmBlock = {
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 base gas fee for a transaction to be included in the block.
20
+ */
21
+ baseFee: string;
22
+ /**
23
+ * The gas used for transactions in the block.
24
+ */
25
+ gasUsed: string;
26
+ /**
27
+ * The total gas limit set for transactions in the block.
28
+ */
29
+ gasLimit: string;
30
+ gasCost: string;
31
+ /**
32
+ * The hash of the parent block.
33
+ */
34
+ parentHash: string;
35
+ /**
36
+ * The amount of fees spent/burned for transactions in the block.
37
+ */
38
+ feesSpent: string;
39
+ /**
40
+ * The cumulative number of transactions for the chain including this block.
41
+ */
42
+ cumulativeTransactions: string;
43
+ };
44
+
45
+ export { EvmBlock };
@@ -0,0 +1,6 @@
1
+ type EvmNetworkOptions = {
2
+ addresses: Array<string>;
3
+ includeChains: Array<string>;
4
+ };
5
+
6
+ export { EvmNetworkOptions };
@@ -0,0 +1,8 @@
1
+ type FloorPrice = {
2
+ floorPrice: string;
3
+ marketplace: string;
4
+ listingIds: Array<string>;
5
+ isOverallFloorPrice: boolean;
6
+ };
7
+
8
+ export { FloorPrice };
@@ -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,27 @@
1
+ import { ChainStatus } from './ChainStatus.js';
2
+ import { NetworkToken } from './NetworkToken.js';
3
+ import { UtilityAddresses } from './UtilityAddresses.js';
4
+ import { VmName } from './VmName.js';
5
+
6
+ type GetChainResponse = {
7
+ chainId: string;
8
+ /**
9
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
10
+ */
11
+ status: ChainStatus;
12
+ chainName: string;
13
+ description: string;
14
+ platformChainId?: string;
15
+ subnetId?: string;
16
+ vmId?: string;
17
+ vmName: VmName;
18
+ explorerUrl?: string;
19
+ rpcUrl: string;
20
+ wsUrl?: string;
21
+ isTestnet: boolean;
22
+ utilityAddresses?: UtilityAddresses;
23
+ networkToken: NetworkToken;
24
+ chainLogoUri?: string;
25
+ };
26
+
27
+ export { GetChainResponse };
@@ -0,0 +1,45 @@
1
+ type GetEvmBlockResponse = {
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 base gas fee for a transaction to be included in the block.
20
+ */
21
+ baseFee: string;
22
+ /**
23
+ * The gas used for transactions in the block.
24
+ */
25
+ gasUsed: string;
26
+ /**
27
+ * The total gas limit set for transactions in the block.
28
+ */
29
+ gasLimit: string;
30
+ gasCost: string;
31
+ /**
32
+ * The hash of the parent block.
33
+ */
34
+ parentHash: string;
35
+ /**
36
+ * The amount of fees spent/burned for transactions in the block.
37
+ */
38
+ feesSpent: string;
39
+ /**
40
+ * The cumulative number of transactions for the chain including this block.
41
+ */
42
+ cumulativeTransactions: string;
43
+ };
44
+
45
+ export { GetEvmBlockResponse };
@@ -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,9 @@
1
+ import { DelegatorsDetails } from './DelegatorsDetails.js';
2
+ import { ValidatorsDetails } from './ValidatorsDetails.js';
3
+
4
+ type GetNetworkDetailsResponse = {
5
+ validatorDetails: ValidatorsDetails;
6
+ delegatorDetails: DelegatorsDetails;
7
+ };
8
+
9
+ export { GetNetworkDetailsResponse };
@@ -0,0 +1,15 @@
1
+ import { ProposerDetails } from './ProposerDetails.js';
2
+
3
+ type GetPrimaryNetworkBlockResponse = {
4
+ blockNumber: string;
5
+ blockHash: string;
6
+ parentHash: string;
7
+ blockTimestamp: number;
8
+ blockType: string;
9
+ txCount: number;
10
+ transactions: Array<string>;
11
+ blockSizeBytes: number;
12
+ proposerDetails?: ProposerDetails;
13
+ };
14
+
15
+ export { GetPrimaryNetworkBlockResponse };
@@ -0,0 +1,29 @@
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 includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
23
+ */
24
+ internalTransactions?: Array<InternalTransactionDetails>;
25
+ networkTokenDetails: NetworkTokenDetails;
26
+ nativeTransaction: FullNativeTransactionDetails;
27
+ };
28
+
29
+ export { GetTransactionResponse };
@@ -0,0 +1,24 @@
1
+ import { PChainAsset } from './PChainAsset.js';
2
+ import { RewardType } from './RewardType.js';
3
+
4
+ type HistoricalReward = {
5
+ /**
6
+ * An array of P-Chain wallet addresses.
7
+ */
8
+ addresses: Array<string>;
9
+ txHash: string;
10
+ amountStaked: string;
11
+ nodeId: string;
12
+ startTimestamp: number;
13
+ endTimestamp: number;
14
+ rewardType: RewardType;
15
+ utxoId: string;
16
+ outputIndex: number;
17
+ /**
18
+ * An object containing P-chain Asset ID and the amount of that Asset ID.
19
+ */
20
+ reward: PChainAsset;
21
+ rewardTxHash: string;
22
+ };
23
+
24
+ export { HistoricalReward };
@@ -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 { Blockchain } from './Blockchain.js';
2
+
3
+ type ListBlockchainsResponse = {
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
+ blockchains: Array<Blockchain>;
9
+ };
10
+
11
+ export { ListBlockchainsResponse };
@@ -0,0 +1,9 @@
1
+ import { CChainAtomicBalances } from './CChainAtomicBalances.js';
2
+ import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
3
+
4
+ type ListCChainAtomicBalancesResponse = {
5
+ balances: CChainAtomicBalances;
6
+ chainInfo: PrimaryNetworkChainInfo;
7
+ };
8
+
9
+ export { ListCChainAtomicBalancesResponse };