@avalabs/glacier-sdk 2.8.0-canary.a18b4e4.0 → 2.8.0-canary.a436aaa.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 (214) hide show
  1. package/LICENSE.md +9 -0
  2. package/dist/index.d.ts +1674 -711
  3. package/dist/index.js +1 -1810
  4. package/esm/generated/Glacier.d.ts +10 -0
  5. package/esm/generated/Glacier.js +1 -48
  6. package/esm/generated/core/ApiError.js +1 -13
  7. package/esm/generated/core/BaseHttpRequest.js +1 -7
  8. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  9. package/esm/generated/core/CancelablePromise.js +1 -86
  10. package/esm/generated/core/FetchHttpRequest.js +1 -13
  11. package/esm/generated/core/OpenAPI.js +1 -13
  12. package/esm/generated/core/request.js +1 -244
  13. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  14. package/esm/generated/models/ActiveDelegatorDetails.js +1 -0
  15. package/esm/generated/models/ActiveValidatorDetails.d.ts +19 -6
  16. package/esm/generated/models/ActiveValidatorDetails.js +1 -0
  17. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  18. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  19. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  20. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  21. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  22. package/esm/generated/models/BlockchainId.js +1 -13
  23. package/esm/generated/models/BlockchainIds.js +1 -10
  24. package/esm/generated/models/BlsCredentials.d.ts +6 -0
  25. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  26. package/esm/generated/models/CChainExportTransaction.js +1 -8
  27. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  28. package/esm/generated/models/CChainImportTransaction.js +1 -8
  29. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  30. package/esm/generated/models/ChainInfo.d.ts +2 -3
  31. package/esm/generated/models/ChainStatus.d.ts +3 -0
  32. package/esm/generated/models/ChainStatus.js +1 -7
  33. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  34. package/esm/generated/models/CompletedDelegatorDetails.js +1 -0
  35. package/esm/generated/models/CompletedValidatorDetails.d.ts +14 -3
  36. package/esm/generated/models/CompletedValidatorDetails.js +1 -0
  37. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  38. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  39. package/esm/generated/models/ContractSubmissionErc1155.js +1 -0
  40. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  41. package/esm/generated/models/ContractSubmissionErc20.js +1 -0
  42. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  43. package/esm/generated/models/ContractSubmissionErc721.js +1 -0
  44. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  45. package/esm/generated/models/ContractSubmissionUnknown.js +1 -0
  46. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  47. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  48. package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
  49. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  50. package/esm/generated/models/CurrencyCode.js +1 -19
  51. package/esm/generated/models/DelegationStatusType.js +1 -8
  52. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  53. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
  54. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  55. package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
  56. package/esm/generated/models/EVMInput.d.ts +3 -3
  57. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  58. package/esm/generated/models/EVMOperationType.js +1 -0
  59. package/esm/generated/models/EVMOutput.d.ts +3 -3
  60. package/esm/generated/models/Erc1155Contract.js +1 -8
  61. package/esm/generated/models/Erc1155Token.js +1 -8
  62. package/esm/generated/models/Erc1155TokenBalance.js +1 -8
  63. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  64. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  65. package/esm/generated/models/Erc20Contract.js +1 -8
  66. package/esm/generated/models/Erc20Token.js +1 -8
  67. package/esm/generated/models/Erc20TokenBalance.js +1 -8
  68. package/esm/generated/models/Erc721Contract.js +1 -8
  69. package/esm/generated/models/Erc721Token.js +1 -8
  70. package/esm/generated/models/Erc721TokenBalance.js +1 -8
  71. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  72. package/esm/generated/models/EventType.d.ts +5 -0
  73. package/esm/generated/models/EventType.js +1 -0
  74. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  75. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  76. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  77. package/esm/generated/models/GlacierApiFeature.js +1 -0
  78. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  79. package/esm/generated/models/InternalTransactionOpCall.js +1 -12
  80. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  81. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  82. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  83. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  84. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  85. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  86. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  87. package/esm/generated/models/Method.d.ts +0 -3
  88. package/esm/generated/models/Money.d.ts +0 -3
  89. package/esm/generated/models/Network.js +1 -7
  90. package/esm/generated/models/NetworkType.js +1 -7
  91. package/esm/generated/models/NextPageToken.d.ts +8 -0
  92. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  93. package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
  94. package/esm/generated/models/OperationStatus.js +1 -9
  95. package/esm/generated/models/OperationStatusCode.js +1 -8
  96. package/esm/generated/models/OperationType.d.ts +4 -2
  97. package/esm/generated/models/OperationType.js +1 -7
  98. package/esm/generated/models/PChainBalance.d.ts +15 -15
  99. package/esm/generated/models/PChainId.js +1 -7
  100. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  101. package/esm/generated/models/PChainTransaction.d.ts +18 -7
  102. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  103. package/esm/generated/models/PChainTransactionType.js +1 -17
  104. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  105. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  106. package/esm/generated/models/PendingDelegatorDetails.js +1 -0
  107. package/esm/generated/models/PendingReward.d.ts +3 -3
  108. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  109. package/esm/generated/models/PendingTeleporterMessage.js +1 -0
  110. package/esm/generated/models/PendingValidatorDetails.d.ts +14 -3
  111. package/esm/generated/models/PendingValidatorDetails.js +1 -0
  112. package/esm/generated/models/PrimaryNetwork.js +1 -7
  113. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  114. package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
  115. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  116. package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
  117. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  118. package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
  119. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  120. package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
  121. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  122. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  123. package/esm/generated/models/PrimaryNetworkTxType.js +1 -20
  124. package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
  125. package/esm/generated/models/RemovedValidatorDetails.js +1 -0
  126. package/esm/generated/models/ResourceLinkType.js +1 -23
  127. package/esm/generated/models/RewardType.d.ts +2 -1
  128. package/esm/generated/models/RewardType.js +1 -7
  129. package/esm/generated/models/Rewards.d.ts +2 -0
  130. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  131. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  132. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  133. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  134. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  135. package/esm/generated/models/SortByOption.d.ts +9 -0
  136. package/esm/generated/models/SortByOption.js +1 -0
  137. package/esm/generated/models/SortOrder.js +1 -7
  138. package/esm/generated/models/Subnet.d.ts +17 -0
  139. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  140. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  141. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  142. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  143. package/esm/generated/models/TeleporterRewardDetails.js +1 -0
  144. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  145. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  146. package/esm/generated/models/TransactionMethodType.js +1 -8
  147. package/esm/generated/models/TransactionStatus.js +1 -7
  148. package/esm/generated/models/UnknownContract.js +1 -8
  149. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  150. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  151. package/esm/generated/models/Utxo.d.ts +30 -30
  152. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  153. package/esm/generated/models/UtxoType.js +1 -7
  154. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  155. package/esm/generated/models/ValidationStatusType.js +1 -8
  156. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  157. package/esm/generated/models/VmName.js +1 -8
  158. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  159. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  160. package/esm/generated/models/WebhookStatus.js +1 -0
  161. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  162. package/esm/generated/models/WebhookStatusType.js +1 -0
  163. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  164. package/esm/generated/models/XChainBalances.d.ts +3 -3
  165. package/esm/generated/models/XChainId.js +1 -8
  166. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  167. package/esm/generated/models/XChainLinearTransaction.js +1 -9
  168. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  169. package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
  170. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  171. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  172. package/esm/generated/models/XChainTransactionType.js +1 -0
  173. package/esm/generated/services/DefaultService.d.ts +14 -0
  174. package/esm/generated/services/DefaultService.js +1 -0
  175. package/esm/generated/services/EvmBalancesService.d.ts +27 -23
  176. package/esm/generated/services/EvmBalancesService.js +1 -116
  177. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  178. package/esm/generated/services/EvmBlocksService.js +1 -37
  179. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  180. package/esm/generated/services/EvmChainsService.js +1 -29
  181. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  182. package/esm/generated/services/EvmContractsService.js +1 -0
  183. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  184. package/esm/generated/services/EvmTransactionsService.js +1 -251
  185. package/esm/generated/services/HealthCheckService.js +1 -16
  186. package/esm/generated/services/NfTsService.d.ts +23 -16
  187. package/esm/generated/services/NfTsService.js +1 -50
  188. package/esm/generated/services/OperationsService.d.ts +11 -11
  189. package/esm/generated/services/OperationsService.js +1 -28
  190. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
  191. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  192. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
  193. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  194. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -49
  195. package/esm/generated/services/PrimaryNetworkService.d.ts +70 -31
  196. package/esm/generated/services/PrimaryNetworkService.js +1 -159
  197. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  198. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
  199. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  200. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
  201. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  202. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
  203. package/esm/generated/services/RpcService.d.ts +25 -0
  204. package/esm/generated/services/RpcService.js +1 -0
  205. package/esm/generated/services/TeleporterService.d.ts +62 -0
  206. package/esm/generated/services/TeleporterService.js +1 -0
  207. package/esm/generated/services/WebhooksService.d.ts +143 -0
  208. package/esm/generated/services/WebhooksService.js +1 -0
  209. package/esm/index.d.ts +50 -3
  210. package/esm/index.js +1 -61
  211. package/package.json +3 -3
  212. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  213. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  214. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -1,68 +1,68 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
5
5
  /**
6
- * UTXO ID for this output.
6
+ * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
- utxoId: string;
9
- asset: Asset;
8
+ addresses: Array<string>;
9
+ asset: AssetAmount;
10
10
  /**
11
- * Type of output.
11
+ * Blockchain ID on which this output is consumed on.
12
12
  */
13
- utxoType: string;
13
+ consumedOnChainId: string;
14
14
  /**
15
- * Blockchain ID on which this output is created on.
15
+ * Transaction ID that consumed this output.
16
16
  */
17
- createdOnChainId: string;
17
+ consumingTxHash?: string;
18
18
  /**
19
- * Blockchain ID on which this output is consumed on.
19
+ * Blockchain ID on which this output is created on.
20
20
  */
21
- consumedOnChainId: string;
21
+ createdOnChainId: string;
22
22
  /**
23
- * Transaction ID that created this output.
23
+ * UTXO ID for this output.
24
24
  */
25
- creationTxHash: string;
25
+ utxoId: string;
26
26
  /**
27
- * Transaction ID that consumed this output.
27
+ * Unix timestamp in seconds at which this output was consumed.
28
28
  */
29
- consumingTxHash?: string;
29
+ consumingTxTimestamp?: number;
30
30
  /**
31
- * Timestamp in seconds this output is consumed.
31
+ * Transaction ID that created this output.
32
32
  */
33
- consumingTxTimestamp?: number;
33
+ creationTxHash: string;
34
34
  /**
35
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
35
+ * Credentials that signed the transaction to consume this utxo
36
36
  */
37
- outputIndex: string;
37
+ credentials?: Array<UtxoCredential>;
38
38
  /**
39
- * Timestamp in seconds this outptut is created on.
39
+ * Index representing the minting set for the NFT mint output.
40
40
  */
41
- timestamp: number;
41
+ groupId?: number;
42
42
  /**
43
43
  * Locktime in seconds after which this output can be consumed.
44
44
  */
45
45
  locktime: number;
46
46
  /**
47
- * Minimum number of signatures required to consume this output.
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
48
  */
49
- threshold: number;
49
+ outputIndex: string;
50
50
  /**
51
- * Addresses that are eligible to sign the consumption of this output.
51
+ * Hex encoded data for NFT assets.
52
52
  */
53
- addresses: Array<string>;
53
+ payload?: string;
54
54
  /**
55
- * Hex encoded data for NFT assets
55
+ * Minimum number of signatures required to consume this output.
56
56
  */
57
- payload?: string;
57
+ threshold: number;
58
58
  /**
59
- * Index representing the minting set for the NFT mint output
59
+ * Unix timestamp in seconds at which this outptut was created.
60
60
  */
61
- groupId?: number;
61
+ timestamp: number;
62
62
  /**
63
- * Credentials that signed the transaction to consume this utxo
63
+ * Type of output.
64
64
  */
65
- credentials?: Array<UtxoCredential>;
65
+ utxoType: string;
66
66
  };
67
67
 
68
68
  export { Utxo };
@@ -1,10 +1,10 @@
1
1
  type UtxoCredential = {
2
2
  /**
3
- * Signature provided to consume the output
3
+ * Signature provided to consume the output.
4
4
  */
5
5
  signature?: string;
6
6
  /**
7
- * Public key associated with the signature
7
+ * Public key associated with the signature.
8
8
  */
9
9
  publicKey?: string;
10
10
  };
@@ -1,7 +1 @@
1
- var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
2
- UtxoType2["STAKE"] = "STAKE";
3
- UtxoType2["TRANSFER"] = "TRANSFER";
4
- return UtxoType2;
5
- })(UtxoType || {});
6
-
7
- export { UtxoType };
1
+ var A=(A=>(A.STAKE="STAKE",A.TRANSFER="TRANSFER",A))(A||{});export{A as UtxoType};
@@ -1,7 +1,8 @@
1
1
  declare enum ValidationStatusType {
2
2
  COMPLETED = "completed",
3
3
  ACTIVE = "active",
4
- PENDING = "pending"
4
+ PENDING = "pending",
5
+ REMOVED = "removed"
5
6
  }
6
7
 
7
8
  export { ValidationStatusType };
@@ -1,8 +1 @@
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 };
1
+ var e=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(e||{});export{e as 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 };
@@ -1,8 +1 @@
1
- var VmName = /* @__PURE__ */ ((VmName2) => {
2
- VmName2["EVM"] = "EVM";
3
- VmName2["BITCOIN"] = "BITCOIN";
4
- VmName2["ETHEREUM"] = "ETHEREUM";
5
- return VmName2;
6
- })(VmName || {});
7
-
8
- export { VmName };
1
+ var E=(E=>(E.EVM="EVM",E.BITCOIN="BITCOIN",E.ETHEREUM="ETHEREUM",E))(E||{});export{E as VmName};
@@ -0,0 +1,25 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type WebhookResponse = {
6
+ id: string;
7
+ eventType: EventType;
8
+ metadata: AddressActivityMetadata;
9
+ /**
10
+ * Whether to include traces in the webhook payload.
11
+ */
12
+ includeInternalTxs?: boolean;
13
+ /**
14
+ * Whether to include logs in the webhook payload.
15
+ */
16
+ includeLogs?: boolean;
17
+ url: string;
18
+ chainId: string;
19
+ status: WebhookStatusType;
20
+ createdAt: number;
21
+ name: string;
22
+ description: string;
23
+ };
24
+
25
+ export { WebhookResponse };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatus };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatus};
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatusType {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatusType };
@@ -0,0 +1 @@
1
+ var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatusType};
@@ -1,3 +1,6 @@
1
+ import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
1
4
  type XChainAssetDetails = {
2
5
  /**
3
6
  * Unique ID for an asset.
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
15
18
  * Denomination of this asset to represent fungibility.
16
19
  */
17
20
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
21
+ type: PrimaryNetworkAssetType;
22
22
  /**
23
23
  * Timestamp in seconds this asset was created on.
24
24
  */
25
25
  createdAtTimestamp: number;
26
- /**
27
- * Cap represents if an asset can be or is fixed cap.
28
- */
29
- cap: string;
26
+ cap: PrimaryNetworkAssetCap;
30
27
  };
31
28
 
32
29
  export { XChainAssetDetails };
@@ -1,15 +1,15 @@
1
- import { XChainAssetBalance } from './XChainAssetBalance.js';
1
+ import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
2
2
  import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
3
 
4
4
  type XChainBalances = {
5
5
  /**
6
6
  * A list of objects containing X-chain Asset balance information.
7
7
  */
8
- locked: Array<XChainAssetBalance>;
8
+ locked: Array<AggregatedAssetAmount>;
9
9
  /**
10
10
  * A list of objects containing X-chain Asset balance information.
11
11
  */
12
- unlocked: Array<XChainAssetBalance>;
12
+ unlocked: Array<AggregatedAssetAmount>;
13
13
  atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
14
14
  atomicMemoryLocked: Array<XChainSharedAssetBalance>;
15
15
  };
@@ -1,8 +1 @@
1
- var XChainId = /* @__PURE__ */ ((XChainId2) => {
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";
5
- return XChainId2;
6
- })(XChainId || {});
7
-
8
- export { XChainId };
1
+ var N=(N=>(N._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",N._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",N.X_CHAIN="x-chain",N))(N||{});export{N as XChainId};
@@ -1,6 +1,7 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+ import { XChainTransactionType } from './XChainTransactionType.js';
4
5
 
5
6
  type XChainLinearTransaction = {
6
7
  /**
@@ -15,10 +16,7 @@ type XChainLinearTransaction = {
15
16
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
16
17
  */
17
18
  timestamp: number;
18
- /**
19
- * Type of transaction.
20
- */
21
- txType: string;
19
+ txType: XChainTransactionType;
22
20
  /**
23
21
  * Hex encoded memo bytes for this transaction.
24
22
  */
@@ -28,11 +26,11 @@ type XChainLinearTransaction = {
28
26
  /**
29
27
  * Assets unlocked by inputs of this transaction.
30
28
  */
31
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
32
30
  /**
33
31
  * Assets created by outputs of this transaction.
34
32
  */
35
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
36
34
  /**
37
35
  * Source chain for an atomic transaction.
38
36
  */
@@ -42,7 +40,7 @@ type XChainLinearTransaction = {
42
40
  */
43
41
  destinationChain?: string;
44
42
  /**
45
- * Asset details of the asset created in CreateAssetTx
43
+ * AssetAmount details of the asset created in CreateAssetTx
46
44
  */
47
45
  assetCreated?: XChainAssetDetails;
48
46
  /**
@@ -1,9 +1 @@
1
- var XChainLinearTransaction;
2
- ((XChainLinearTransaction2) => {
3
- ((chainFormat2) => {
4
- chainFormat2["NON_LINEAR"] = "non-linear";
5
- chainFormat2["LINEAR"] = "linear";
6
- })(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
7
- })(XChainLinearTransaction || (XChainLinearTransaction = {}));
8
-
9
- export { XChainLinearTransaction };
1
+ var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainLinearTransaction};
@@ -1,7 +1,8 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
5
+ import { XChainTransactionType } from './XChainTransactionType.js';
5
6
 
6
7
  type XChainNonLinearTransaction = {
7
8
  /**
@@ -16,10 +17,7 @@ type XChainNonLinearTransaction = {
16
17
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
18
  */
18
19
  timestamp: number;
19
- /**
20
- * Type of transaction.
21
- */
22
- txType: string;
20
+ txType: XChainTransactionType;
23
21
  /**
24
22
  * Hex encoded memo bytes for this transaction.
25
23
  */
@@ -29,11 +27,11 @@ type XChainNonLinearTransaction = {
29
27
  /**
30
28
  * Assets unlocked by inputs of this transaction.
31
29
  */
32
- amountUnlocked: Array<Asset>;
30
+ amountUnlocked: Array<AssetAmount>;
33
31
  /**
34
32
  * Assets created by outputs of this transaction.
35
33
  */
36
- amountCreated: Array<Asset>;
34
+ amountCreated: Array<AssetAmount>;
37
35
  /**
38
36
  * Source chain for an atomic transaction.
39
37
  */
@@ -43,7 +41,7 @@ type XChainNonLinearTransaction = {
43
41
  */
44
42
  destinationChain?: string;
45
43
  /**
46
- * Asset details of the asset created in CreateAssetTx
44
+ * AssetAmount details of the asset created in CreateAssetTx
47
45
  */
48
46
  assetCreated?: XChainAssetDetails;
49
47
  /**
@@ -1,9 +1 @@
1
- var XChainNonLinearTransaction;
2
- ((XChainNonLinearTransaction2) => {
3
- ((chainFormat2) => {
4
- chainFormat2["NON_LINEAR"] = "non-linear";
5
- chainFormat2["LINEAR"] = "linear";
6
- })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
7
- })(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
8
-
9
- export { XChainNonLinearTransaction };
1
+ var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainNonLinearTransaction};
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type XChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -15,10 +17,7 @@ type XChainSharedAssetBalance = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Type of transaction.
3
+ */
4
+ declare enum XChainTransactionType {
5
+ BASE_TX = "BaseTx",
6
+ CREATE_ASSET_TX = "CreateAssetTx",
7
+ OPERATION_TX = "OperationTx",
8
+ IMPORT_TX = "ImportTx",
9
+ EXPORT_TX = "ExportTx",
10
+ UNKNOWN = "UNKNOWN"
11
+ }
12
+
13
+ export { XChainTransactionType };
@@ -0,0 +1 @@
1
+ var T=(T=>(T.BASE_TX="BaseTx",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as XChainTransactionType};
@@ -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 @@
1
+ class t{constructor(t){this.httpRequest=t}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}export{t as DefaultService};
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
20
20
  */
21
21
  getNativeBalance({ chainId, address, blockNumber, currency, }: {
22
22
  /**
23
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
23
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
24
24
  */
25
25
  chainId: string;
26
26
  /**
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
46
46
  * @returns ListErc20BalancesResponse
47
47
  * @throws ApiError
48
48
  */
49
- listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
49
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
50
50
  /**
51
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
51
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
52
  */
53
53
  chainId: string;
54
54
  /**
@@ -59,14 +59,18 @@ declare class EvmBalancesService {
59
59
  * The block number, if not defined the block number will be the latest block.
60
60
  */
61
61
  blockNumber?: string;
62
+ /**
63
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
64
+ */
65
+ pageToken?: string;
62
66
  /**
63
67
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
64
68
  */
65
69
  pageSize?: number;
66
70
  /**
67
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
71
+ * whether to filter out spam tokens from the response. Default is true.
68
72
  */
69
- pageToken?: string;
73
+ filterSpamTokens?: boolean;
70
74
  /**
71
75
  * A comma separated list of contract addresses to filter by.
72
76
  */
@@ -84,23 +88,23 @@ declare class EvmBalancesService {
84
88
  * @returns ListErc721BalancesResponse
85
89
  * @throws ApiError
86
90
  */
87
- listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
91
+ listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
88
92
  /**
89
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
93
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
90
94
  */
91
95
  chainId: string;
92
96
  /**
93
97
  * A wallet address.
94
98
  */
95
99
  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
100
  /**
101
101
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
102
102
  */
103
103
  pageToken?: string;
104
+ /**
105
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
106
+ */
107
+ pageSize?: number;
104
108
  /**
105
109
  * A contract addresses to filter by.
106
110
  */
@@ -116,9 +120,9 @@ declare class EvmBalancesService {
116
120
  * @returns ListErc1155BalancesResponse
117
121
  * @throws ApiError
118
122
  */
119
- listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
123
+ listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
120
124
  /**
121
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
125
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
122
126
  */
123
127
  chainId: string;
124
128
  /**
@@ -129,14 +133,14 @@ declare class EvmBalancesService {
129
133
  * The block number, if not defined the block number will be the latest block.
130
134
  */
131
135
  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
136
  /**
137
137
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
138
138
  */
139
139
  pageToken?: string;
140
+ /**
141
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
142
+ */
143
+ pageSize?: number;
140
144
  /**
141
145
  * A contract addresses to filter by.
142
146
  */
@@ -150,23 +154,23 @@ declare class EvmBalancesService {
150
154
  * @returns ListCollectibleBalancesResponse
151
155
  * @throws ApiError
152
156
  */
153
- listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
157
+ listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
154
158
  /**
155
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
159
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
156
160
  */
157
161
  chainId: string;
158
162
  /**
159
163
  * A wallet address.
160
164
  */
161
165
  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
166
  /**
167
167
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
168
168
  */
169
169
  pageToken?: string;
170
+ /**
171
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
172
+ */
173
+ pageSize?: number;
170
174
  /**
171
175
  * A contract addresses to filter by.
172
176
  */