@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.122008d.0

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/dist/index.d.ts +2418 -1684
  2. package/dist/index.js +749 -317
  3. package/esm/generated/Glacier.d.ts +26 -2
  4. package/esm/generated/Glacier.js +52 -12
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/OpenAPI.js +1 -1
  8. package/esm/generated/core/request.js +14 -31
  9. package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
  10. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  11. package/esm/generated/models/ActiveValidatorDetails.d.ts +27 -0
  12. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  13. package/esm/generated/models/Blockchain.d.ts +10 -0
  14. package/esm/generated/models/BlockchainId.d.ts +6 -3
  15. package/esm/generated/models/BlockchainId.js +5 -2
  16. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  17. package/esm/generated/models/BlockchainIds.js +10 -0
  18. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  19. package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
  20. package/esm/generated/models/ChainInfo.d.ts +2 -4
  21. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  22. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  23. package/esm/generated/models/CompletedValidatorDetails.d.ts +20 -0
  24. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  25. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  26. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  27. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  28. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  29. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  30. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  31. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  32. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  33. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  34. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  35. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  36. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  37. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  38. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  39. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  40. package/esm/generated/models/DelegationStatusType.js +8 -0
  41. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  42. package/esm/generated/models/EVMInput.d.ts +5 -0
  43. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  44. package/esm/generated/models/Erc1155Contract.js +8 -0
  45. package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
  46. package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
  47. package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
  48. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  49. package/esm/generated/models/Erc20Contract.js +8 -0
  50. package/esm/generated/models/Erc20Token.d.ts +1 -3
  51. package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
  52. package/esm/generated/models/Erc20Transfer.d.ts +1 -0
  53. package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
  54. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  55. package/esm/generated/models/Erc721Contract.js +8 -0
  56. package/esm/generated/models/Erc721Transfer.d.ts +1 -0
  57. package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
  58. package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
  59. package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
  60. package/esm/generated/models/GetChainResponse.d.ts +2 -4
  61. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  62. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  63. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  64. package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
  65. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  66. package/esm/generated/models/ImageAsset.d.ts +9 -0
  67. package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
  68. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
  69. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
  70. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
  71. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  72. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  73. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  74. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  75. package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
  76. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
  77. package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
  78. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  79. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  80. package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
  81. package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
  82. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  83. package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
  84. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
  85. package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
  86. package/esm/generated/models/Method.d.ts +1 -7
  87. package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
  88. package/esm/generated/models/NetworkToken.d.ts +1 -3
  89. package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
  90. package/esm/generated/models/NetworkType.d.ts +6 -0
  91. package/esm/generated/models/NetworkType.js +7 -0
  92. package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
  93. package/esm/generated/models/OperationType.d.ts +2 -1
  94. package/esm/generated/models/OperationType.js +2 -1
  95. package/esm/generated/models/PChainBalance.d.ts +16 -7
  96. package/esm/generated/models/PChainId.d.ts +2 -2
  97. package/esm/generated/models/PChainId.js +1 -1
  98. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  99. package/esm/generated/models/PChainTransaction.d.ts +10 -15
  100. package/esm/generated/models/PChainTransactionType.d.ts +17 -0
  101. package/esm/generated/models/PChainTransactionType.js +18 -0
  102. package/esm/generated/models/PChainUtxo.d.ts +10 -1
  103. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  104. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  105. package/esm/generated/models/PendingReward.d.ts +22 -0
  106. package/esm/generated/models/PendingValidatorDetails.d.ts +16 -0
  107. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  108. package/esm/generated/models/PricingProviders.d.ts +5 -0
  109. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  110. package/esm/generated/models/PrimaryNetwork.js +7 -0
  111. package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
  112. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  113. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  114. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  115. package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
  116. package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
  117. package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
  118. package/esm/generated/models/RewardType.d.ts +7 -0
  119. package/esm/generated/models/RewardType.js +8 -0
  120. package/esm/generated/models/Rewards.d.ts +8 -0
  121. package/esm/generated/models/RichAddress.d.ts +1 -3
  122. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  123. package/esm/generated/models/Subnet.d.ts +13 -0
  124. package/esm/generated/models/TransactionDetails.d.ts +1 -7
  125. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  126. package/esm/generated/models/UnknownContract.d.ts +31 -0
  127. package/esm/generated/models/UnknownContract.js +8 -0
  128. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  129. package/esm/generated/models/Utxo.d.ts +9 -1
  130. package/esm/generated/models/UtxoType.d.ts +6 -0
  131. package/esm/generated/models/UtxoType.js +7 -0
  132. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  133. package/esm/generated/models/ValidationStatusType.js +8 -0
  134. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  135. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  136. package/esm/generated/models/XChainBalances.d.ts +2 -2
  137. package/esm/generated/models/XChainId.d.ts +3 -2
  138. package/esm/generated/models/XChainId.js +2 -1
  139. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
  140. package/esm/generated/models/XChainLinearTransaction.js +1 -1
  141. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
  142. package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
  143. package/esm/generated/services/DefaultService.d.ts +14 -0
  144. package/esm/generated/services/DefaultService.js +13 -0
  145. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  146. package/esm/generated/services/EvmBalancesService.js +116 -0
  147. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  148. package/esm/generated/services/EvmBlocksService.js +37 -0
  149. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  150. package/esm/generated/services/EvmChainsService.js +29 -0
  151. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  152. package/esm/generated/services/EvmContractsService.js +36 -0
  153. package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
  154. package/esm/generated/services/EvmTransactionsService.js +251 -0
  155. package/esm/generated/services/HealthCheckService.d.ts +1 -1
  156. package/esm/generated/services/NfTsService.d.ts +51 -0
  157. package/esm/generated/services/NfTsService.js +37 -0
  158. package/esm/generated/services/OperationsService.d.ts +8 -3
  159. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  160. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  161. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  162. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  163. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
  164. package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
  165. package/esm/generated/services/PrimaryNetworkService.d.ts +103 -245
  166. package/esm/generated/services/PrimaryNetworkService.js +65 -167
  167. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  168. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  169. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  170. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  171. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  172. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  173. package/esm/index.d.ts +71 -31
  174. package/esm/index.js +39 -9
  175. package/package.json +2 -5
  176. package/esm/generated/models/Address.d.ts +0 -8
  177. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  178. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  179. package/esm/generated/models/CollectionMetrics.d.ts +0 -40
  180. package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
  181. package/esm/generated/models/CollectionSortByOption.js +0 -9
  182. package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
  183. package/esm/generated/models/ErcType.d.ts +0 -8
  184. package/esm/generated/models/ErcType.js +0 -9
  185. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  186. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  187. package/esm/generated/models/ListingCurrencyType.js +0 -7
  188. package/esm/generated/models/ListingEventType.d.ts +0 -8
  189. package/esm/generated/models/ListingEventType.js +0 -9
  190. package/esm/generated/models/ListingResponse.d.ts +0 -19
  191. package/esm/generated/models/ListingType.d.ts +0 -6
  192. package/esm/generated/models/ListingType.js +0 -7
  193. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  194. package/esm/generated/models/ListingsSortByOption.js +0 -6
  195. package/esm/generated/models/NftCollection.d.ts +0 -24
  196. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  197. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  198. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  199. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  200. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  201. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  202. package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
  203. package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
  204. package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
  205. package/esm/generated/models/PaginationParams.d.ts +0 -13
  206. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  207. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
  208. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  209. package/esm/generated/models/TrendingTimeframe.js +0 -8
  210. package/esm/generated/services/EvmService.d.ts +0 -724
  211. package/esm/generated/services/EvmService.js +0 -509
@@ -1,15 +1,15 @@
1
1
  import { ProposerDetails } from './ProposerDetails.js';
2
2
 
3
- type Block = {
3
+ type PrimaryNetworkBlock = {
4
4
  blockNumber: string;
5
5
  blockHash: string;
6
6
  parentHash: string;
7
7
  blockTimestamp: number;
8
8
  blockType: string;
9
9
  txCount: number;
10
- transactions?: Array<string>;
10
+ transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
12
  proposerDetails?: ProposerDetails;
13
13
  };
14
14
 
15
- export { Block };
15
+ export { PrimaryNetworkBlock };
@@ -0,0 +1,9 @@
1
+ import { PrimaryNetwork } from './PrimaryNetwork.js';
2
+ import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
3
+
4
+ type PrimaryNetworkChainInfo = {
5
+ chainName: PrimaryNetworkChainName;
6
+ network: PrimaryNetwork;
7
+ };
8
+
9
+ export { PrimaryNetworkChainInfo };
@@ -0,0 +1,7 @@
1
+ declare enum PrimaryNetworkChainName {
2
+ P_CHAIN = "p-chain",
3
+ X_CHAIN = "x-chain",
4
+ C_CHAIN = "c-chain"
5
+ }
6
+
7
+ export { PrimaryNetworkChainName };
@@ -0,0 +1,8 @@
1
+ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
2
+ PrimaryNetworkChainName2["P_CHAIN"] = "p-chain";
3
+ PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
4
+ PrimaryNetworkChainName2["C_CHAIN"] = "c-chain";
5
+ return PrimaryNetworkChainName2;
6
+ })(PrimaryNetworkChainName || {});
7
+
8
+ export { PrimaryNetworkChainName };
@@ -1,6 +1,7 @@
1
1
  type PrimaryNetworkOptions = {
2
2
  addresses: Array<string>;
3
- includeChains: Array<'p-chain' | 'x-chain' | 'c-chain' | '11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM'>;
3
+ cChainEvmAddresses?: Array<string>;
4
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
4
5
  };
5
6
 
6
7
  export { PrimaryNetworkOptions };
@@ -0,0 +1,20 @@
1
+ declare enum PrimaryNetworkTxType {
2
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
4
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
6
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
7
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
8
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
9
+ CREATE_CHAIN_TX = "CreateChainTx",
10
+ CREATE_SUBNET_TX = "CreateSubnetTx",
11
+ IMPORT_TX = "ImportTx",
12
+ EXPORT_TX = "ExportTx",
13
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
14
+ UNKNOWN = "UNKNOWN",
15
+ BASE_TX = "BaseTx",
16
+ CREATE_ASSET_TX = "CreateAssetTx",
17
+ OPERATION_TX = "OperationTx"
18
+ }
19
+
20
+ export { PrimaryNetworkTxType };
@@ -0,0 +1,21 @@
1
+ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
+ PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
6
+ PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
7
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
8
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
9
+ PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
10
+ PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
11
+ PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
12
+ PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
13
+ PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
14
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
15
+ PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
+ PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
17
+ PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
18
+ return PrimaryNetworkTxType2;
19
+ })(PrimaryNetworkTxType || {});
20
+
21
+ export { PrimaryNetworkTxType };
@@ -0,0 +1,7 @@
1
+ declare enum RewardType {
2
+ VALIDATOR = "VALIDATOR",
3
+ DELEGATOR = "DELEGATOR",
4
+ VALIDATOR_FEE = "VALIDATOR_FEE"
5
+ }
6
+
7
+ export { RewardType };
@@ -0,0 +1,8 @@
1
+ var RewardType = /* @__PURE__ */ ((RewardType2) => {
2
+ RewardType2["VALIDATOR"] = "VALIDATOR";
3
+ RewardType2["DELEGATOR"] = "DELEGATOR";
4
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
5
+ return RewardType2;
6
+ })(RewardType || {});
7
+
8
+ export { RewardType };
@@ -0,0 +1,8 @@
1
+ type Rewards = {
2
+ validationRewardAmount: string;
3
+ delegationRewardAmount: string;
4
+ rewardAddresses?: Array<string>;
5
+ rewardTxHash?: string;
6
+ };
7
+
8
+ export { Rewards };
@@ -8,9 +8,7 @@ type RichAddress = {
8
8
  */
9
9
  symbol?: string;
10
10
  /**
11
- * The number of decimals the token uses. For example `6`,
12
- * means to divide the token amount by `1000000` to get its user
13
- * representation.
11
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
14
12
  */
15
13
  decimals?: number;
16
14
  /**
@@ -0,0 +1,7 @@
1
+ type StakingDistribution = {
2
+ version: string;
3
+ amountStaked: string;
4
+ validatorCount: number;
5
+ };
6
+
7
+ export { StakingDistribution };
@@ -0,0 +1,13 @@
1
+ import { BlockchainInfo } from './BlockchainInfo.js';
2
+
3
+ type Subnet = {
4
+ createBlockTimestamp: number;
5
+ createBlockIndex: string;
6
+ subnetId: string;
7
+ ownerAddresses: Array<string>;
8
+ threshold: number;
9
+ locktime: number;
10
+ blockchains: Array<BlockchainInfo>;
11
+ };
12
+
13
+ export { Subnet };
@@ -22,13 +22,7 @@ type TransactionDetails = {
22
22
  */
23
23
  erc1155Transfers?: Array<Erc1155TransferDetails>;
24
24
  /**
25
- * The list of internal transactions. Note that this list only
26
- * includes CALL and
27
- * CALLCODE internal transactions that had a
28
- * non-zero value and
29
- * CREATE/CREATE2
30
- * calls. Use a client provider to recieve a full debug trace of the
31
- * transaction.
25
+ * 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.
32
26
  */
33
27
  internalTransactions?: Array<InternalTransactionDetails>;
34
28
  };
@@ -0,0 +1,15 @@
1
+ import { OperationStatusCode } from './OperationStatusCode.js';
2
+
3
+ type TransactionExportMetadata = {
4
+ code?: OperationStatusCode;
5
+ /**
6
+ * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
7
+ */
8
+ downloadUrl?: string;
9
+ /**
10
+ * The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
11
+ */
12
+ nextDate?: string;
13
+ };
14
+
15
+ export { TransactionExportMetadata };
@@ -0,0 +1,31 @@
1
+ import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
+ import { ImageAsset } from './ImageAsset.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type UnknownContract = {
6
+ /**
7
+ * The contract name.
8
+ */
9
+ name?: string;
10
+ description?: string;
11
+ officialSite?: string;
12
+ email?: string;
13
+ logoAsset?: ImageAsset;
14
+ bannerAsset?: ImageAsset;
15
+ color?: string;
16
+ resourceLinks?: Array<ResourceLink>;
17
+ tags?: Array<string>;
18
+ /**
19
+ * A wallet or contract address in mixed-case checksum encoding.
20
+ */
21
+ address: string;
22
+ deploymentDetails: ContractDeploymentDetails;
23
+ ercType: UnknownContract.ercType;
24
+ };
25
+ declare namespace UnknownContract {
26
+ enum ercType {
27
+ UNKNOWN = "UNKNOWN"
28
+ }
29
+ }
30
+
31
+ export { UnknownContract };
@@ -0,0 +1,8 @@
1
+ var UnknownContract;
2
+ ((UnknownContract2) => {
3
+ ((ercType2) => {
4
+ ercType2["UNKNOWN"] = "UNKNOWN";
5
+ })(UnknownContract2.ercType || (UnknownContract2.ercType = {}));
6
+ })(UnknownContract || (UnknownContract = {}));
7
+
8
+ export { UnknownContract };
@@ -0,0 +1,10 @@
1
+ import { Erc1155Contract } from './Erc1155Contract.js';
2
+ import { Erc20Contract } from './Erc20Contract.js';
3
+ import { Erc721Contract } from './Erc721Contract.js';
4
+ import { UnknownContract } from './UnknownContract.js';
5
+
6
+ type UpdateContractResponse = {
7
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
8
+ };
9
+
10
+ export { UpdateContractResponse };
@@ -51,10 +51,18 @@ type Utxo = {
51
51
  * Addresses that are eligible to sign the consumption of this output.
52
52
  */
53
53
  addresses: Array<string>;
54
+ /**
55
+ * Hex encoded data for NFT assets
56
+ */
57
+ payload?: string;
58
+ /**
59
+ * Index representing the minting set for the NFT mint output
60
+ */
61
+ groupId?: number;
54
62
  /**
55
63
  * Credentials that signed the transaction to consume this utxo
56
64
  */
57
- credentials: Array<UtxoCredential>;
65
+ credentials?: Array<UtxoCredential>;
58
66
  };
59
67
 
60
68
  export { Utxo };
@@ -0,0 +1,6 @@
1
+ declare enum UtxoType {
2
+ STAKE = "STAKE",
3
+ TRANSFER = "TRANSFER"
4
+ }
5
+
6
+ export { UtxoType };
@@ -0,0 +1,7 @@
1
+ var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
2
+ UtxoType2["STAKE"] = "STAKE";
3
+ UtxoType2["TRANSFER"] = "TRANSFER";
4
+ return UtxoType2;
5
+ })(UtxoType || {});
6
+
7
+ export { UtxoType };
@@ -0,0 +1,7 @@
1
+ declare enum ValidationStatusType {
2
+ COMPLETED = "completed",
3
+ ACTIVE = "active",
4
+ PENDING = "pending"
5
+ }
6
+
7
+ export { ValidationStatusType };
@@ -0,0 +1,8 @@
1
+ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
+ ValidationStatusType2["COMPLETED"] = "completed";
3
+ ValidationStatusType2["ACTIVE"] = "active";
4
+ ValidationStatusType2["PENDING"] = "pending";
5
+ return ValidationStatusType2;
6
+ })(ValidationStatusType || {});
7
+
8
+ export { ValidationStatusType };
@@ -0,0 +1,20 @@
1
+ type ValidatorHealthDetails = {
2
+ /**
3
+ * Percent of requests responded to in last polling.
4
+ */
5
+ reachabilityPercent: number;
6
+ /**
7
+ * Percent of requests benched on the P-Chain in last polling.
8
+ */
9
+ benchedPChainRequestsPercent: number;
10
+ /**
11
+ * Percentage of requests benched on the X-Chain in last polling.
12
+ */
13
+ benchedXChainRequestsPercent: number;
14
+ /**
15
+ * Percentage of requests benched on the C-Chain in last polling.
16
+ */
17
+ benchedCChainRequestsPercent: number;
18
+ };
19
+
20
+ export { ValidatorHealthDetails };
@@ -0,0 +1,11 @@
1
+ import { StakingDistribution } from './StakingDistribution.js';
2
+
3
+ type ValidatorsDetails = {
4
+ validatorCount: number;
5
+ totalAmountStaked: string;
6
+ estimatedAnnualStakingReward: string;
7
+ stakingDistributionByVersion: Array<StakingDistribution>;
8
+ stakingRatio: string;
9
+ };
10
+
11
+ export { ValidatorsDetails };
@@ -3,11 +3,11 @@ import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
3
 
4
4
  type XChainBalances = {
5
5
  /**
6
- * A list of objects containing X-chain Asset balance infromation.
6
+ * A list of objects containing X-chain Asset balance information.
7
7
  */
8
8
  locked: Array<XChainAssetBalance>;
9
9
  /**
10
- * A list of objects containing X-chain Asset balance infromation.
10
+ * A list of objects containing X-chain Asset balance information.
11
11
  */
12
12
  unlocked: Array<XChainAssetBalance>;
13
13
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
@@ -1,6 +1,7 @@
1
1
  declare enum XChainId {
2
- X_CHAIN = "x-chain",
3
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
2
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4
+ X_CHAIN = "x-chain"
4
5
  }
5
6
 
6
7
  export { XChainId };
@@ -1,6 +1,7 @@
1
1
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
2
- XChainId2["X_CHAIN"] = "x-chain";
3
2
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
3
+ XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
4
+ XChainId2["X_CHAIN"] = "x-chain";
4
5
  return XChainId2;
5
6
  })(XChainId || {});
6
7
 
@@ -8,7 +8,7 @@ type XChainLinearTransaction = {
8
8
  */
9
9
  txHash: string;
10
10
  /**
11
- * Represents container format this transaction is included in.
11
+ * Represents chain format this transaction is included in.
12
12
  */
13
13
  chainFormat: XChainLinearTransaction.chainFormat;
14
14
  /**
@@ -56,11 +56,11 @@ type XChainLinearTransaction = {
56
56
  };
57
57
  declare namespace XChainLinearTransaction {
58
58
  /**
59
- * Represents container format this transaction is included in.
59
+ * Represents chain format this transaction is included in.
60
60
  */
61
61
  enum chainFormat {
62
- LINEAR = "linear",
63
- NON_LINEAR = "non-linear"
62
+ NON_LINEAR = "non-linear",
63
+ LINEAR = "linear"
64
64
  }
65
65
  }
66
66
 
@@ -1,8 +1,8 @@
1
1
  var XChainLinearTransaction;
2
2
  ((XChainLinearTransaction2) => {
3
3
  ((chainFormat2) => {
4
- chainFormat2["LINEAR"] = "linear";
5
4
  chainFormat2["NON_LINEAR"] = "non-linear";
5
+ chainFormat2["LINEAR"] = "linear";
6
6
  })(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
7
7
  })(XChainLinearTransaction || (XChainLinearTransaction = {}));
8
8
 
@@ -9,7 +9,7 @@ type XChainNonLinearTransaction = {
9
9
  */
10
10
  txHash: string;
11
11
  /**
12
- * Represents container format this transaction is included in.
12
+ * Represents chain format this transaction is included in.
13
13
  */
14
14
  chainFormat: XChainNonLinearTransaction.chainFormat;
15
15
  /**
@@ -53,11 +53,11 @@ type XChainNonLinearTransaction = {
53
53
  };
54
54
  declare namespace XChainNonLinearTransaction {
55
55
  /**
56
- * Represents container format this transaction is included in.
56
+ * Represents chain format this transaction is included in.
57
57
  */
58
58
  enum chainFormat {
59
- LINEAR = "linear",
60
- NON_LINEAR = "non-linear"
59
+ NON_LINEAR = "non-linear",
60
+ LINEAR = "linear"
61
61
  }
62
62
  }
63
63
 
@@ -1,8 +1,8 @@
1
1
  var XChainNonLinearTransaction;
2
2
  ((XChainNonLinearTransaction2) => {
3
3
  ((chainFormat2) => {
4
- chainFormat2["LINEAR"] = "linear";
5
4
  chainFormat2["NON_LINEAR"] = "non-linear";
5
+ chainFormat2["LINEAR"] = "linear";
6
6
  })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
7
7
  })(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
8
8
 
@@ -0,0 +1,14 @@
1
+ import { CancelablePromise } from '../core/CancelablePromise.js';
2
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
+
4
+ declare class DefaultService {
5
+ readonly httpRequest: BaseHttpRequest;
6
+ constructor(httpRequest: BaseHttpRequest);
7
+ /**
8
+ * @returns any
9
+ * @throws ApiError
10
+ */
11
+ mediaControllerUploadImage(): CancelablePromise<any>;
12
+ }
13
+
14
+ export { DefaultService };
@@ -0,0 +1,13 @@
1
+ class DefaultService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ mediaControllerUploadImage() {
6
+ return this.httpRequest.request({
7
+ method: "POST",
8
+ url: "/v1/media/uploadImage"
9
+ });
10
+ }
11
+ }
12
+
13
+ export { DefaultService };
@@ -0,0 +1,177 @@
1
+ import { CurrencyCode } from '../models/CurrencyCode.js';
2
+ import { GetNativeBalanceResponse } from '../models/GetNativeBalanceResponse.js';
3
+ import { ListCollectibleBalancesResponse } from '../models/ListCollectibleBalancesResponse.js';
4
+ import { ListErc1155BalancesResponse } from '../models/ListErc1155BalancesResponse.js';
5
+ import { ListErc20BalancesResponse } from '../models/ListErc20BalancesResponse.js';
6
+ import { ListErc721BalancesResponse } from '../models/ListErc721BalancesResponse.js';
7
+ import { CancelablePromise } from '../core/CancelablePromise.js';
8
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
9
+
10
+ declare class EvmBalancesService {
11
+ readonly httpRequest: BaseHttpRequest;
12
+ constructor(httpRequest: BaseHttpRequest);
13
+ /**
14
+ * Get native token balance
15
+ * Gets native token balance of a wallet address.
16
+ *
17
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
18
+ * @returns GetNativeBalanceResponse
19
+ * @throws ApiError
20
+ */
21
+ getNativeBalance({ chainId, address, blockNumber, currency, }: {
22
+ /**
23
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
24
+ */
25
+ chainId: string;
26
+ /**
27
+ * A wallet address.
28
+ */
29
+ address: string;
30
+ /**
31
+ * The block number, if not defined the block number will be the latest block.
32
+ */
33
+ blockNumber?: string;
34
+ /**
35
+ * The currency that return values should use. Defaults to USD.
36
+ */
37
+ currency?: CurrencyCode;
38
+ }): CancelablePromise<GetNativeBalanceResponse>;
39
+ /**
40
+ * List ERC-20 balances
41
+ * Lists ERC-20 token balances of a wallet address.
42
+ *
43
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
44
+ *
45
+ * Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
46
+ * @returns ListErc20BalancesResponse
47
+ * @throws ApiError
48
+ */
49
+ listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
50
+ /**
51
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
+ */
53
+ chainId: string;
54
+ /**
55
+ * A wallet address.
56
+ */
57
+ address: string;
58
+ /**
59
+ * The block number, if not defined the block number will be the latest block.
60
+ */
61
+ blockNumber?: string;
62
+ /**
63
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
64
+ */
65
+ pageSize?: number;
66
+ /**
67
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
68
+ */
69
+ pageToken?: string;
70
+ /**
71
+ * A comma separated list of contract addresses to filter by.
72
+ */
73
+ contractAddresses?: string;
74
+ /**
75
+ * The currency that return values should use. Defaults to USD.
76
+ */
77
+ currency?: CurrencyCode;
78
+ }): CancelablePromise<ListErc20BalancesResponse>;
79
+ /**
80
+ * List ERC-721 balances
81
+ * Lists ERC-721 token balances of a wallet address.
82
+ *
83
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
84
+ * @returns ListErc721BalancesResponse
85
+ * @throws ApiError
86
+ */
87
+ listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
88
+ /**
89
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
90
+ */
91
+ chainId: string;
92
+ /**
93
+ * A wallet address.
94
+ */
95
+ address: string;
96
+ /**
97
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
98
+ */
99
+ pageSize?: number;
100
+ /**
101
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
102
+ */
103
+ pageToken?: string;
104
+ /**
105
+ * A contract addresses to filter by.
106
+ */
107
+ contractAddress?: string;
108
+ }): CancelablePromise<ListErc721BalancesResponse>;
109
+ /**
110
+ * List ERC-1155 balances
111
+ * Lists ERC-1155 token balances of a wallet address.
112
+ *
113
+ * Balance at a given block can be retrieved with the `blockNumber` parameter.
114
+ *
115
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
116
+ * @returns ListErc1155BalancesResponse
117
+ * @throws ApiError
118
+ */
119
+ listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
120
+ /**
121
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
122
+ */
123
+ chainId: string;
124
+ /**
125
+ * A wallet address.
126
+ */
127
+ address: string;
128
+ /**
129
+ * The block number, if not defined the block number will be the latest block.
130
+ */
131
+ blockNumber?: string;
132
+ /**
133
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
134
+ */
135
+ pageSize?: number;
136
+ /**
137
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
138
+ */
139
+ pageToken?: string;
140
+ /**
141
+ * A contract addresses to filter by.
142
+ */
143
+ contractAddress?: string;
144
+ }): CancelablePromise<ListErc1155BalancesResponse>;
145
+ /**
146
+ * List collectible (ERC-721/ERC-1155) balances
147
+ * Lists ERC-721 and ERC-1155 token balances of a wallet address.
148
+ *
149
+ * Balance for a specific contract can be retrieved with the `contractAddress` parameter.
150
+ * @returns ListCollectibleBalancesResponse
151
+ * @throws ApiError
152
+ */
153
+ listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
154
+ /**
155
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
156
+ */
157
+ chainId: string;
158
+ /**
159
+ * A wallet address.
160
+ */
161
+ address: string;
162
+ /**
163
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
164
+ */
165
+ pageSize?: number;
166
+ /**
167
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
168
+ */
169
+ pageToken?: string;
170
+ /**
171
+ * A contract addresses to filter by.
172
+ */
173
+ contractAddress?: string;
174
+ }): CancelablePromise<ListCollectibleBalancesResponse>;
175
+ }
176
+
177
+ export { EvmBalancesService };