@avalabs/glacier-sdk 2.8.0-alpha.100 → 2.8.0-alpha.11

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 (211) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/README.md +0 -10
  3. package/__tests__/glacier-sdk.test.js +7 -0
  4. package/dist/index.d.ts +3 -3239
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +153 -1560
  7. package/dist/index.js.map +1 -0
  8. package/dist/src/generated/models.d.ts +385 -0
  9. package/dist/src/generated/models.d.ts.map +1 -0
  10. package/dist/src/glacierClient.d.ts +93 -0
  11. package/dist/src/glacierClient.d.ts.map +1 -0
  12. package/dist/src/types.d.ts +13 -0
  13. package/dist/src/types.d.ts.map +1 -0
  14. package/index.ts +2 -0
  15. package/package.json +20 -11
  16. package/rollup.config.js +33 -0
  17. package/src/generated/models.ts +460 -0
  18. package/src/glacierClient.ts +190 -0
  19. package/src/types.ts +6 -0
  20. package/swagger/generateModels.js +40 -0
  21. package/tsconfig.json +7 -0
  22. package/esm/generated/Glacier.d.ts +0 -18
  23. package/esm/generated/Glacier.js +0 -28
  24. package/esm/generated/core/ApiError.d.ts +0 -13
  25. package/esm/generated/core/ApiError.js +0 -13
  26. package/esm/generated/core/ApiRequestOptions.d.ts +0 -15
  27. package/esm/generated/core/ApiResult.d.ts +0 -9
  28. package/esm/generated/core/BaseHttpRequest.d.ts +0 -11
  29. package/esm/generated/core/BaseHttpRequest.js +0 -7
  30. package/esm/generated/core/CancelablePromise.d.ts +0 -28
  31. package/esm/generated/core/CancelablePromise.js +0 -86
  32. package/esm/generated/core/FetchHttpRequest.js +0 -13
  33. package/esm/generated/core/OpenAPI.d.ts +0 -18
  34. package/esm/generated/core/OpenAPI.js +0 -13
  35. package/esm/generated/core/request.js +0 -244
  36. package/esm/generated/models/Address.d.ts +0 -8
  37. package/esm/generated/models/Asset.d.ts +0 -28
  38. package/esm/generated/models/Block.d.ts +0 -15
  39. package/esm/generated/models/BlockchainId.d.ts +0 -9
  40. package/esm/generated/models/BlockchainId.js +0 -10
  41. package/esm/generated/models/CChainAtomicBalances.d.ts +0 -8
  42. package/esm/generated/models/CChainExportTransaction.d.ts +0 -58
  43. package/esm/generated/models/CChainExportTransaction.js +0 -8
  44. package/esm/generated/models/CChainImportTransaction.d.ts +0 -58
  45. package/esm/generated/models/CChainImportTransaction.js +0 -8
  46. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -30
  47. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  48. package/esm/generated/models/ChainAddressChainIdMap.d.ts +0 -8
  49. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +0 -7
  50. package/esm/generated/models/ChainInfo.d.ts +0 -30
  51. package/esm/generated/models/ChainStatus.d.ts +0 -6
  52. package/esm/generated/models/ChainStatus.js +0 -7
  53. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  54. package/esm/generated/models/CollectionMetrics.d.ts +0 -40
  55. package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
  56. package/esm/generated/models/CollectionSortByOption.js +0 -9
  57. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +0 -16
  58. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -9
  59. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +0 -16
  60. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -9
  61. package/esm/generated/models/CurrencyCode.d.ts +0 -18
  62. package/esm/generated/models/CurrencyCode.js +0 -19
  63. package/esm/generated/models/EVMInput.d.ts +0 -14
  64. package/esm/generated/models/EVMOutput.d.ts +0 -14
  65. package/esm/generated/models/Erc1155Token.d.ts +0 -19
  66. package/esm/generated/models/Erc1155Token.js +0 -8
  67. package/esm/generated/models/Erc1155TokenBalance.d.ts +0 -28
  68. package/esm/generated/models/Erc1155TokenBalance.js +0 -8
  69. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -20
  70. package/esm/generated/models/Erc1155Transfer.d.ts +0 -27
  71. package/esm/generated/models/Erc1155TransferDetails.d.ts +0 -11
  72. package/esm/generated/models/Erc20Token.d.ts +0 -38
  73. package/esm/generated/models/Erc20Token.js +0 -8
  74. package/esm/generated/models/Erc20TokenBalance.d.ts +0 -51
  75. package/esm/generated/models/Erc20TokenBalance.js +0 -8
  76. package/esm/generated/models/Erc20Transfer.d.ts +0 -27
  77. package/esm/generated/models/Erc20TransferDetails.d.ts +0 -11
  78. package/esm/generated/models/Erc721Token.d.ts +0 -31
  79. package/esm/generated/models/Erc721Token.js +0 -8
  80. package/esm/generated/models/Erc721TokenBalance.d.ts +0 -35
  81. package/esm/generated/models/Erc721TokenBalance.js +0 -8
  82. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -19
  83. package/esm/generated/models/Erc721Transfer.d.ts +0 -26
  84. package/esm/generated/models/Erc721TransferDetails.d.ts +0 -10
  85. package/esm/generated/models/ErcType.d.ts +0 -8
  86. package/esm/generated/models/ErcType.js +0 -9
  87. package/esm/generated/models/EvmNetworkOptions.d.ts +0 -6
  88. package/esm/generated/models/FullNativeTransactionDetails.d.ts +0 -62
  89. package/esm/generated/models/GetBlockResponse.d.ts +0 -49
  90. package/esm/generated/models/GetChainResponse.d.ts +0 -30
  91. package/esm/generated/models/GetNativeBalanceResponse.d.ts +0 -10
  92. package/esm/generated/models/GetTransactionResponse.d.ts +0 -35
  93. package/esm/generated/models/InternalTransaction.d.ts +0 -33
  94. package/esm/generated/models/InternalTransactionDetails.d.ts +0 -17
  95. package/esm/generated/models/InternalTransactionOpCall.d.ts +0 -11
  96. package/esm/generated/models/InternalTransactionOpCall.js +0 -12
  97. package/esm/generated/models/ListBlocksResponse.d.ts +0 -11
  98. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +0 -7
  99. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +0 -12
  100. package/esm/generated/models/ListChainsResponse.d.ts +0 -7
  101. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +0 -16
  102. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +0 -14
  103. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +0 -11
  104. package/esm/generated/models/ListErc20BalancesResponse.d.ts +0 -14
  105. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +0 -11
  106. package/esm/generated/models/ListErc721BalancesResponse.d.ts +0 -14
  107. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +0 -11
  108. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +0 -11
  109. package/esm/generated/models/ListListingsResponse.d.ts +0 -11
  110. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +0 -11
  111. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  112. package/esm/generated/models/ListPChainBalancesResponse.d.ts +0 -7
  113. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +0 -11
  114. package/esm/generated/models/ListPChainUtxosResponse.d.ts +0 -11
  115. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +0 -11
  116. package/esm/generated/models/ListTransfersResponse.d.ts +0 -13
  117. package/esm/generated/models/ListUtxosResponse.d.ts +0 -11
  118. package/esm/generated/models/ListXChainBalancesResponse.d.ts +0 -7
  119. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +0 -12
  120. package/esm/generated/models/ListXChainVerticesResponse.d.ts +0 -11
  121. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  122. package/esm/generated/models/ListingCurrencyType.js +0 -7
  123. package/esm/generated/models/ListingEventType.d.ts +0 -8
  124. package/esm/generated/models/ListingEventType.js +0 -9
  125. package/esm/generated/models/ListingResponse.d.ts +0 -19
  126. package/esm/generated/models/ListingType.d.ts +0 -6
  127. package/esm/generated/models/ListingType.js +0 -7
  128. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  129. package/esm/generated/models/ListingsSortByOption.js +0 -6
  130. package/esm/generated/models/Method.d.ts +0 -24
  131. package/esm/generated/models/Money.d.ts +0 -14
  132. package/esm/generated/models/NativeTokenBalance.d.ts +0 -41
  133. package/esm/generated/models/NativeTransaction.d.ts +0 -55
  134. package/esm/generated/models/Network.d.ts +0 -6
  135. package/esm/generated/models/Network.js +0 -7
  136. package/esm/generated/models/NetworkToken.d.ts +0 -23
  137. package/esm/generated/models/NetworkTokenDetails.d.ts +0 -18
  138. package/esm/generated/models/NftCollection.d.ts +0 -24
  139. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  140. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  141. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  142. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  143. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  144. package/esm/generated/models/NftTokenMetadataStatus.d.ts +0 -15
  145. package/esm/generated/models/NftTokenMetadataStatus.js +0 -16
  146. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  147. package/esm/generated/models/OperationStatus.d.ts +0 -8
  148. package/esm/generated/models/OperationStatus.js +0 -9
  149. package/esm/generated/models/OperationStatusCode.d.ts +0 -7
  150. package/esm/generated/models/OperationStatusCode.js +0 -8
  151. package/esm/generated/models/OperationStatusResponse.d.ts +0 -15
  152. package/esm/generated/models/OperationType.d.ts +0 -6
  153. package/esm/generated/models/OperationType.js +0 -7
  154. package/esm/generated/models/PChainAsset.d.ts +0 -6
  155. package/esm/generated/models/PChainBalance.d.ts +0 -30
  156. package/esm/generated/models/PChainId.d.ts +0 -6
  157. package/esm/generated/models/PChainId.js +0 -7
  158. package/esm/generated/models/PChainTransaction.d.ts +0 -76
  159. package/esm/generated/models/PChainTransactionType.d.ts +0 -16
  160. package/esm/generated/models/PChainTransactionType.js +0 -17
  161. package/esm/generated/models/PChainUtxo.d.ts +0 -37
  162. package/esm/generated/models/PaginationParams.d.ts +0 -13
  163. package/esm/generated/models/PrimaryNetworkOptions.d.ts +0 -6
  164. package/esm/generated/models/ProposerDetails.d.ts +0 -9
  165. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  166. package/esm/generated/models/ResourceLink.d.ts +0 -8
  167. package/esm/generated/models/ResourceLinkType.d.ts +0 -22
  168. package/esm/generated/models/ResourceLinkType.js +0 -23
  169. package/esm/generated/models/RewardType.d.ts +0 -6
  170. package/esm/generated/models/RewardType.js +0 -7
  171. package/esm/generated/models/RichAddress.d.ts +0 -26
  172. package/esm/generated/models/SortOrder.d.ts +0 -6
  173. package/esm/generated/models/SortOrder.js +0 -7
  174. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
  175. package/esm/generated/models/TransactionDetails.d.ts +0 -36
  176. package/esm/generated/models/TransactionExportMetadata.d.ts +0 -18
  177. package/esm/generated/models/TransactionMethodType.d.ts +0 -7
  178. package/esm/generated/models/TransactionMethodType.js +0 -8
  179. package/esm/generated/models/TransactionStatus.d.ts +0 -6
  180. package/esm/generated/models/TransactionStatus.js +0 -7
  181. package/esm/generated/models/TransactionVertexDetail.d.ts +0 -16
  182. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  183. package/esm/generated/models/TrendingTimeframe.js +0 -8
  184. package/esm/generated/models/UtilityAddresses.d.ts +0 -5
  185. package/esm/generated/models/Utxo.d.ts +0 -60
  186. package/esm/generated/models/UtxoCredential.d.ts +0 -12
  187. package/esm/generated/models/UtxoType.d.ts +0 -6
  188. package/esm/generated/models/UtxoType.js +0 -7
  189. package/esm/generated/models/VmName.d.ts +0 -7
  190. package/esm/generated/models/VmName.js +0 -8
  191. package/esm/generated/models/XChainAssetBalance.d.ts +0 -29
  192. package/esm/generated/models/XChainAssetDetails.d.ts +0 -32
  193. package/esm/generated/models/XChainBalances.d.ts +0 -17
  194. package/esm/generated/models/XChainId.d.ts +0 -6
  195. package/esm/generated/models/XChainId.js +0 -7
  196. package/esm/generated/models/XChainLinearTransaction.d.ts +0 -67
  197. package/esm/generated/models/XChainLinearTransaction.js +0 -9
  198. package/esm/generated/models/XChainNonLinearTransaction.d.ts +0 -64
  199. package/esm/generated/models/XChainNonLinearTransaction.js +0 -9
  200. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -30
  201. package/esm/generated/models/XChainVertex.d.ts +0 -12
  202. package/esm/generated/services/EvmService.d.ts +0 -730
  203. package/esm/generated/services/EvmService.js +0 -511
  204. package/esm/generated/services/HealthCheckService.d.ts +0 -20
  205. package/esm/generated/services/HealthCheckService.js +0 -16
  206. package/esm/generated/services/OperationsService.d.ts +0 -31
  207. package/esm/generated/services/OperationsService.js +0 -28
  208. package/esm/generated/services/PrimaryNetworkService.d.ts +0 -387
  209. package/esm/generated/services/PrimaryNetworkService.js +0 -273
  210. package/esm/index.d.ts +0 -136
  211. package/esm/index.js +0 -48
@@ -1,31 +0,0 @@
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 };
@@ -1,8 +0,0 @@
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 };
@@ -1,35 +0,0 @@
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 };
@@ -1,8 +0,0 @@
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 };
@@ -1,19 +0,0 @@
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 };
@@ -1,26 +0,0 @@
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 };
@@ -1,10 +0,0 @@
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 };
@@ -1,8 +0,0 @@
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 };
@@ -1,9 +0,0 @@
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 };
@@ -1,6 +0,0 @@
1
- type EvmNetworkOptions = {
2
- addresses: Array<string>;
3
- includeChains: Array<string>;
4
- };
5
-
6
- export { EvmNetworkOptions };
@@ -1,62 +0,0 @@
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 };
@@ -1,49 +0,0 @@
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 };
@@ -1,30 +0,0 @@
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
10
- * `UNAVAILABLE` for several reasons, such as validator stake falling
11
- * below threshold. If chain nodes are `UNAVAILABLE`, requests that rely
12
- * on data from the chain nodes may return 503 errors.
13
- */
14
- status: ChainStatus;
15
- chainName: string;
16
- description: string;
17
- platformChainId?: string;
18
- subnetId?: string;
19
- vmId?: string;
20
- vmName: VmName;
21
- explorerUrl?: string;
22
- rpcUrl: string;
23
- wsUrl?: string;
24
- isTestnet: boolean;
25
- utilityAddresses?: UtilityAddresses;
26
- networkToken: NetworkToken;
27
- chainLogoUri?: string;
28
- };
29
-
30
- export { GetChainResponse };
@@ -1,10 +0,0 @@
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 };
@@ -1,35 +0,0 @@
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 };
@@ -1,33 +0,0 @@
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 };
@@ -1,17 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,7 +0,0 @@
1
- import { CChainAtomicBalances } from './CChainAtomicBalances.js';
2
-
3
- type ListCChainAtomicBalancesResponse = {
4
- balances: CChainAtomicBalances;
5
- };
6
-
7
- export { ListCChainAtomicBalancesResponse };
@@ -1,12 +0,0 @@
1
- import { CChainExportTransaction } from './CChainExportTransaction.js';
2
- import { CChainImportTransaction } from './CChainImportTransaction.js';
3
-
4
- type ListCChainAtomicTransactionsResponse = {
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
- transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
10
- };
11
-
12
- export { ListCChainAtomicTransactionsResponse };
@@ -1,7 +0,0 @@
1
- import { ChainInfo } from './ChainInfo.js';
2
-
3
- type ListChainsResponse = {
4
- chains: Array<ChainInfo>;
5
- };
6
-
7
- export { ListChainsResponse };
@@ -1,16 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,11 +0,0 @@
1
- import { ListingResponse } from './ListingResponse.js';
2
-
3
- type ListListingsResponse = {
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
- listings: Array<ListingResponse>;
9
- };
10
-
11
- export { ListListingsResponse };
@@ -1,11 +0,0 @@
1
- import { NativeTransaction } from './NativeTransaction.js';
2
-
3
- type ListNativeTransactionsResponse = {
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<NativeTransaction>;
9
- };
10
-
11
- export { ListNativeTransactionsResponse };
@@ -1,11 +0,0 @@
1
- import { NftCollectionWithMetrics } from './NftCollectionWithMetrics.js';
2
-
3
- type ListNftCollectionWithMetricsResponse = {
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
- collections: Array<NftCollectionWithMetrics>;
9
- };
10
-
11
- export { ListNftCollectionWithMetricsResponse };
@@ -1,7 +0,0 @@
1
- import { PChainBalance } from './PChainBalance.js';
2
-
3
- type ListPChainBalancesResponse = {
4
- balances: PChainBalance;
5
- };
6
-
7
- export { ListPChainBalancesResponse };
@@ -1,11 +0,0 @@
1
- import { PChainTransaction } from './PChainTransaction.js';
2
-
3
- type ListPChainTransactionsResponse = {
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<PChainTransaction>;
9
- };
10
-
11
- export { ListPChainTransactionsResponse };