@avalabs/glacier-sdk 2.8.0-alpha.9 → 2.8.0-alpha.90

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 (212) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3278 -3
  3. package/dist/index.js +1539 -153
  4. package/esm/generated/Glacier.d.ts +18 -0
  5. package/esm/generated/Glacier.js +28 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +13 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +86 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +244 -0
  18. package/esm/generated/models/Address.d.ts +8 -0
  19. package/esm/generated/models/Asset.d.ts +28 -0
  20. package/esm/generated/models/AssetType.d.ts +8 -0
  21. package/esm/generated/models/AssetType.js +9 -0
  22. package/esm/generated/models/Block.d.ts +15 -0
  23. package/esm/generated/models/BlockchainId.d.ts +9 -0
  24. package/esm/generated/models/BlockchainId.js +10 -0
  25. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  26. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  27. package/esm/generated/models/CChainExportTransaction.js +8 -0
  28. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  29. package/esm/generated/models/CChainImportTransaction.js +8 -0
  30. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  31. package/esm/generated/models/CancelListingEventResponse.d.ts +5 -0
  32. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  33. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  34. package/esm/generated/models/ChainInfo.d.ts +30 -0
  35. package/esm/generated/models/ChainStatus.d.ts +6 -0
  36. package/esm/generated/models/ChainStatus.js +7 -0
  37. package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
  38. package/esm/generated/models/CollectionMetrics.d.ts +40 -0
  39. package/esm/generated/models/CollectionSortByOption.d.ts +8 -0
  40. package/esm/generated/models/CollectionSortByOption.js +9 -0
  41. package/esm/generated/models/ContractType.d.ts +7 -0
  42. package/esm/generated/models/ContractType.js +8 -0
  43. package/esm/generated/models/CreateTransactionExportRequest.d.ts +11 -0
  44. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  45. package/esm/generated/models/CurrencyCode.js +19 -0
  46. package/esm/generated/models/EVMInput.d.ts +14 -0
  47. package/esm/generated/models/EVMOutput.d.ts +14 -0
  48. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  49. package/esm/generated/models/Erc1155Token.js +8 -0
  50. package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
  51. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  52. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  53. package/esm/generated/models/Erc1155Transfer.d.ts +27 -0
  54. package/esm/generated/models/Erc1155TransferDetails.d.ts +11 -0
  55. package/esm/generated/models/Erc20Token.d.ts +38 -0
  56. package/esm/generated/models/Erc20Token.js +8 -0
  57. package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
  58. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  59. package/esm/generated/models/Erc20Transfer.d.ts +27 -0
  60. package/esm/generated/models/Erc20TransferDetails.d.ts +11 -0
  61. package/esm/generated/models/Erc721Token.d.ts +31 -0
  62. package/esm/generated/models/Erc721Token.js +8 -0
  63. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  64. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  65. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  66. package/esm/generated/models/Erc721Transfer.d.ts +26 -0
  67. package/esm/generated/models/Erc721TransferDetails.d.ts +10 -0
  68. package/esm/generated/models/ErcType.d.ts +8 -0
  69. package/esm/generated/models/ErcType.js +9 -0
  70. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  71. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  72. package/esm/generated/models/GetBlockResponse.d.ts +49 -0
  73. package/esm/generated/models/GetChainResponse.d.ts +30 -0
  74. package/esm/generated/models/GetContractInformationResponse.d.ts +58 -0
  75. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  76. package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
  77. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  78. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  79. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  80. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  81. package/esm/generated/models/ListBlocksResponse.d.ts +11 -0
  82. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +7 -0
  83. package/esm/generated/models/ListCChainExportTxsResponse.d.ts +11 -0
  84. package/esm/generated/models/ListCChainImportTxsResponse.d.ts +11 -0
  85. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  86. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
  87. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  88. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  89. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  90. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  91. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  92. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  94. package/esm/generated/models/ListListingsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  96. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  97. package/esm/generated/models/ListPChainBalancesResponse.d.ts +7 -0
  98. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +11 -0
  99. package/esm/generated/models/ListPChainUtxosResponse.d.ts +11 -0
  100. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  101. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  102. package/esm/generated/models/ListUtxosResponse.d.ts +11 -0
  103. package/esm/generated/models/ListXChainBalancesResponse.d.ts +7 -0
  104. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +12 -0
  105. package/esm/generated/models/ListXChainVerticesResponse.d.ts +11 -0
  106. package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
  107. package/esm/generated/models/ListingCurrencyType.js +7 -0
  108. package/esm/generated/models/ListingEventType.d.ts +8 -0
  109. package/esm/generated/models/ListingEventType.js +9 -0
  110. package/esm/generated/models/ListingResponse.d.ts +19 -0
  111. package/esm/generated/models/ListingType.d.ts +6 -0
  112. package/esm/generated/models/ListingType.js +7 -0
  113. package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
  114. package/esm/generated/models/ListingsSortByOption.js +6 -0
  115. package/esm/generated/models/Method.d.ts +24 -0
  116. package/esm/generated/models/Money.d.ts +14 -0
  117. package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
  118. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  119. package/esm/generated/models/Network.d.ts +6 -0
  120. package/esm/generated/models/Network.js +7 -0
  121. package/esm/generated/models/NetworkToken.d.ts +23 -0
  122. package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
  123. package/esm/generated/models/NftCollection.d.ts +22 -0
  124. package/esm/generated/models/NftCollectionWithMetrics.d.ts +24 -0
  125. package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
  126. package/esm/generated/models/NftSearchBody.d.ts +10 -0
  127. package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
  128. package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
  129. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  130. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  131. package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
  132. package/esm/generated/models/OperationStatus.d.ts +8 -0
  133. package/esm/generated/models/OperationStatus.js +9 -0
  134. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  135. package/esm/generated/models/OperationStatusCode.js +8 -0
  136. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  137. package/esm/generated/models/OperationTransactionExportMetadata.d.ts +18 -0
  138. package/esm/generated/models/OperationType.d.ts +5 -0
  139. package/esm/generated/models/OperationType.js +6 -0
  140. package/esm/generated/models/PChainAsset.d.ts +6 -0
  141. package/esm/generated/models/PChainBalance.d.ts +30 -0
  142. package/esm/generated/models/PChainConsumedUtxo.d.ts +11 -0
  143. package/esm/generated/models/PChainEmittedUtxo.d.ts +19 -0
  144. package/esm/generated/models/PChainId.d.ts +6 -0
  145. package/esm/generated/models/PChainId.js +7 -0
  146. package/esm/generated/models/PChainTransaction.d.ts +69 -0
  147. package/esm/generated/models/PChainUtxo.d.ts +22 -0
  148. package/esm/generated/models/PaginationParams.d.ts +13 -0
  149. package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
  150. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  151. package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
  152. package/esm/generated/models/ResourceLink.d.ts +8 -0
  153. package/esm/generated/models/ResourceLinkType.d.ts +18 -0
  154. package/esm/generated/models/ResourceLinkType.js +19 -0
  155. package/esm/generated/models/ReviewStatus.d.ts +6 -0
  156. package/esm/generated/models/ReviewStatus.js +7 -0
  157. package/esm/generated/models/RichAddress.d.ts +26 -0
  158. package/esm/generated/models/SortOrder.d.ts +6 -0
  159. package/esm/generated/models/SortOrder.js +7 -0
  160. package/esm/generated/models/TokenWithPrice.d.ts +28 -0
  161. package/esm/generated/models/TransactionDetails.d.ts +36 -0
  162. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  163. package/esm/generated/models/TransactionMethodType.js +8 -0
  164. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  165. package/esm/generated/models/TransactionStatus.js +7 -0
  166. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  167. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  168. package/esm/generated/models/TrendingTimeframe.js +8 -0
  169. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  170. package/esm/generated/models/Utxo.d.ts +60 -0
  171. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  172. package/esm/generated/models/VmName.d.ts +7 -0
  173. package/esm/generated/models/VmName.js +8 -0
  174. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  175. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  176. package/esm/generated/models/XChainBalances.d.ts +17 -0
  177. package/esm/generated/models/XChainId.d.ts +6 -0
  178. package/esm/generated/models/XChainId.js +7 -0
  179. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  180. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  181. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  182. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  183. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  184. package/esm/generated/models/XChainVertex.d.ts +12 -0
  185. package/esm/generated/services/EvmService.d.ts +734 -0
  186. package/esm/generated/services/EvmService.js +518 -0
  187. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  188. package/esm/generated/services/HealthCheckService.js +16 -0
  189. package/esm/generated/services/OperationsService.d.ts +30 -0
  190. package/esm/generated/services/OperationsService.js +28 -0
  191. package/esm/generated/services/PrimaryNetworkService.d.ts +387 -0
  192. package/esm/generated/services/PrimaryNetworkService.js +273 -0
  193. package/esm/index.d.ts +139 -0
  194. package/esm/index.js +46 -0
  195. package/package.json +12 -15
  196. package/CHANGELOG.md +0 -218
  197. package/__tests__/glacier-sdk.test.js +0 -7
  198. package/dist/index.d.ts.map +0 -1
  199. package/dist/index.js.map +0 -1
  200. package/dist/src/generated/models.d.ts +0 -385
  201. package/dist/src/generated/models.d.ts.map +0 -1
  202. package/dist/src/glacierClient.d.ts +0 -93
  203. package/dist/src/glacierClient.d.ts.map +0 -1
  204. package/dist/src/types.d.ts +0 -13
  205. package/dist/src/types.d.ts.map +0 -1
  206. package/index.ts +0 -2
  207. package/rollup.config.js +0 -33
  208. package/src/generated/models.ts +0 -460
  209. package/src/glacierClient.ts +0 -190
  210. package/src/types.ts +0 -6
  211. package/swagger/generateModels.js +0 -40
  212. package/tsconfig.json +0 -7
@@ -0,0 +1,8 @@
1
+ var OperationStatusCode = /* @__PURE__ */ ((OperationStatusCode2) => {
2
+ OperationStatusCode2["ERR_INVALID_REQUEST"] = "ErrInvalidRequest";
3
+ OperationStatusCode2["ERR_INTERNAL"] = "ErrInternal";
4
+ OperationStatusCode2["WARN_TRUNCATED_EXPORT"] = "WarnTruncatedExport";
5
+ return OperationStatusCode2;
6
+ })(OperationStatusCode || {});
7
+
8
+ export { OperationStatusCode };
@@ -0,0 +1,15 @@
1
+ import { OperationStatus } from './OperationStatus.js';
2
+ import { OperationTransactionExportMetadata } from './OperationTransactionExportMetadata.js';
3
+ import { OperationType } from './OperationType.js';
4
+
5
+ type OperationStatusResponse = {
6
+ operationId: string;
7
+ operationType: OperationType;
8
+ operationStatus: OperationStatus;
9
+ message?: string;
10
+ metadata: OperationTransactionExportMetadata;
11
+ createdAtTimestamp: number;
12
+ updatedAtTimestamp: number;
13
+ };
14
+
15
+ export { OperationStatusResponse };
@@ -0,0 +1,18 @@
1
+ import { OperationStatusCode } from './OperationStatusCode.js';
2
+
3
+ type OperationTransactionExportMetadata = {
4
+ code: OperationStatusCode;
5
+ /**
6
+ * File download URL. Provided only for COMPLETED operations.
7
+ */
8
+ downloadUrl?: string;
9
+ /**
10
+ * The next date to use as the startDate in follow up requests
11
+ * if a request results in a transaction history exceeding the max size and
12
+ * has been reported as COMPLETED_WITH_WARNING with the warning
13
+ * WarnTruncatedExport.
14
+ */
15
+ nextDate?: string;
16
+ };
17
+
18
+ export { OperationTransactionExportMetadata };
@@ -0,0 +1,5 @@
1
+ declare enum OperationType {
2
+ TRANSACTION_EXPORT = "TRANSACTION_EXPORT"
3
+ }
4
+
5
+ export { OperationType };
@@ -0,0 +1,6 @@
1
+ var OperationType = /* @__PURE__ */ ((OperationType2) => {
2
+ OperationType2["TRANSACTION_EXPORT"] = "TRANSACTION_EXPORT";
3
+ return OperationType2;
4
+ })(OperationType || {});
5
+
6
+ export { OperationType };
@@ -0,0 +1,6 @@
1
+ type PChainAsset = {
2
+ assetId: string;
3
+ amount: string;
4
+ };
5
+
6
+ export { PChainAsset };
@@ -0,0 +1,30 @@
1
+ import { PChainAsset } from './PChainAsset.js';
2
+
3
+ type PChainBalance = {
4
+ /**
5
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
6
+ */
7
+ unlockedUnstaked?: Array<PChainAsset>;
8
+ /**
9
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
10
+ */
11
+ unlockedStaked?: Array<PChainAsset>;
12
+ /**
13
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
14
+ */
15
+ lockedPlatform?: Array<PChainAsset>;
16
+ /**
17
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
18
+ */
19
+ lockedStakeable?: Array<PChainAsset>;
20
+ /**
21
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
22
+ */
23
+ lockedStaked?: Array<PChainAsset>;
24
+ /**
25
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked. Sum of lockedPlatform and lockedStakeable. TO BE DEPRECATED.
26
+ */
27
+ lockedUnstaked?: Array<PChainAsset>;
28
+ };
29
+
30
+ export { PChainBalance };
@@ -0,0 +1,11 @@
1
+ type PChainConsumedUtxo = {
2
+ addresses: Array<string>;
3
+ amount: string;
4
+ assetId: string;
5
+ utxoId: string;
6
+ createdOnChainId: string;
7
+ consumedOnChainId: string;
8
+ fromTx: string;
9
+ };
10
+
11
+ export { PChainConsumedUtxo };
@@ -0,0 +1,19 @@
1
+ type PChainEmittedUtxo = {
2
+ addresses: Array<string>;
3
+ amount: string;
4
+ assetId: string;
5
+ utxoId: string;
6
+ createdOnChainId: string;
7
+ consumedOnChainId: string;
8
+ staked: boolean;
9
+ /**
10
+ * This field is only present if the UTXO has been consumed by another transaction.
11
+ */
12
+ toTx?: string;
13
+ /**
14
+ * This field is only present if the UTXO is a transaction reward and denotes whether the reward is for the validator or delegator.
15
+ */
16
+ rewardType?: string;
17
+ };
18
+
19
+ export { PChainEmittedUtxo };
@@ -0,0 +1,6 @@
1
+ declare enum PChainId {
2
+ P_CHAIN = "p-chain",
3
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY"
4
+ }
5
+
6
+ export { PChainId };
@@ -0,0 +1,7 @@
1
+ var PChainId = /* @__PURE__ */ ((PChainId2) => {
2
+ PChainId2["P_CHAIN"] = "p-chain";
3
+ PChainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
4
+ return PChainId2;
5
+ })(PChainId || {});
6
+
7
+ export { PChainId };
@@ -0,0 +1,69 @@
1
+ import { PChainAsset } from './PChainAsset.js';
2
+ import { PChainConsumedUtxo } from './PChainConsumedUtxo.js';
3
+ import { PChainEmittedUtxo } from './PChainEmittedUtxo.js';
4
+
5
+ type PChainTransaction = {
6
+ /**
7
+ * A P-Chain transaction hash.
8
+ */
9
+ txHash: string;
10
+ txType: string;
11
+ /**
12
+ * The block finality timestamp.
13
+ */
14
+ blockTimestamp: number;
15
+ blockNumber: string;
16
+ blockHash: string;
17
+ /**
18
+ * A list of objects containing consumed UTXO info pertaining to a given transaction.
19
+ */
20
+ consumedUtxos?: Array<PChainConsumedUtxo>;
21
+ /**
22
+ * A list of objects containing emitted UTXO info pertaining to a given transaction.
23
+ */
24
+ emittedUtxos?: Array<PChainEmittedUtxo>;
25
+ /**
26
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
27
+ */
28
+ value?: Array<PChainAsset>;
29
+ /**
30
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
31
+ */
32
+ amountBurned?: Array<PChainAsset>;
33
+ /**
34
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
35
+ */
36
+ amountStaked?: Array<PChainAsset>;
37
+ /**
38
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
39
+ */
40
+ startTimestamp?: number;
41
+ /**
42
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
43
+ */
44
+ endTimestamp?: number;
45
+ /**
46
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx
47
+ */
48
+ delegationFeePercent?: string;
49
+ /**
50
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
51
+ */
52
+ nodeId?: string;
53
+ /**
54
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
55
+ */
56
+ subnetId?: string;
57
+ /**
58
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
59
+ */
60
+ estimatedReward?: string;
61
+ rewardTx?: string;
62
+ memo?: string;
63
+ /**
64
+ * Present for RewardValidatorTx
65
+ */
66
+ stakingTxHash?: string;
67
+ };
68
+
69
+ export { PChainTransaction };
@@ -0,0 +1,22 @@
1
+ type PChainUtxo = {
2
+ /**
3
+ * An array of P-Chain wallet addresses.
4
+ */
5
+ addresses: Array<string>;
6
+ utxoId: string;
7
+ txHash: string;
8
+ outputIndex: number;
9
+ blockTimestamp: number;
10
+ consumingTxHash?: string;
11
+ consumingBlockTimestamp?: number;
12
+ assetId: string;
13
+ utxoType: string;
14
+ amount: string;
15
+ stakeableLocktime?: number;
16
+ platformLocktime?: number;
17
+ threshold?: number;
18
+ createdOnChainId: string;
19
+ consumedOnChainId: string;
20
+ };
21
+
22
+ export { PChainUtxo };
@@ -0,0 +1,13 @@
1
+ type PaginationParams = {
2
+ /**
3
+ * The maximum number of items to return.
4
+ */
5
+ pageSize?: number;
6
+ /**
7
+ * A page token, received from a previous list call.
8
+ * Provide this to retrieve the subsequent page.
9
+ */
10
+ pageToken?: string;
11
+ };
12
+
13
+ export { PaginationParams };
@@ -0,0 +1,6 @@
1
+ type PrimaryNetworkOptions = {
2
+ addresses: Array<string>;
3
+ includeChains: Array<'p-chain' | 'x-chain' | 'c-chain' | '11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM'>;
4
+ };
5
+
6
+ export { PrimaryNetworkOptions };
@@ -0,0 +1,9 @@
1
+ type ProposerDetails = {
2
+ proposerId?: string;
3
+ proposerParentId?: string;
4
+ proposerNodeId?: string;
5
+ proposerPChainHeight?: number;
6
+ proposerTimestamp?: number;
7
+ };
8
+
9
+ export { ProposerDetails };
@@ -0,0 +1,17 @@
1
+ import { Address } from './Address.js';
2
+ import { ListingCurrencyType } from './ListingCurrencyType.js';
3
+ import { TokenWithPrice } from './TokenWithPrice.js';
4
+
5
+ type PurchaseListingEventResponse = {
6
+ eventTimestamp: number;
7
+ listingPrice: string;
8
+ listingCurrencyType: ListingCurrencyType;
9
+ listingCurrencyInfo: TokenWithPrice;
10
+ sellerAddress: Address;
11
+ salePrice: string;
12
+ buyerAddress: Address;
13
+ saleTimestamp: number;
14
+ purchaseTxHash?: string;
15
+ };
16
+
17
+ export { PurchaseListingEventResponse };
@@ -0,0 +1,8 @@
1
+ import { ResourceLinkType } from './ResourceLinkType.js';
2
+
3
+ type ResourceLink = {
4
+ type: ResourceLinkType;
5
+ url: string;
6
+ };
7
+
8
+ export { ResourceLink };
@@ -0,0 +1,18 @@
1
+ declare enum ResourceLinkType {
2
+ TWITTER = "Twitter",
3
+ FACEBOOK = "Facebook",
4
+ DISCORD = "Discord",
5
+ TELEGRAM = "Telegram",
6
+ BLOG = "Blog",
7
+ MEDIUM = "Medium",
8
+ WHITEPAPER = "Whitepaper",
9
+ COIN_GECKO = "CoinGecko",
10
+ COIN_MARKET_CAP = "CoinMarketCap",
11
+ LINKED_IN = "LinkedIn",
12
+ REDDIT = "Reddit",
13
+ SUPPORT = "Support",
14
+ GITHUB = "Github",
15
+ DOCUMENTATION = "Documentation"
16
+ }
17
+
18
+ export { ResourceLinkType };
@@ -0,0 +1,19 @@
1
+ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
2
+ ResourceLinkType2["TWITTER"] = "Twitter";
3
+ ResourceLinkType2["FACEBOOK"] = "Facebook";
4
+ ResourceLinkType2["DISCORD"] = "Discord";
5
+ ResourceLinkType2["TELEGRAM"] = "Telegram";
6
+ ResourceLinkType2["BLOG"] = "Blog";
7
+ ResourceLinkType2["MEDIUM"] = "Medium";
8
+ ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
9
+ ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
10
+ ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
11
+ ResourceLinkType2["LINKED_IN"] = "LinkedIn";
12
+ ResourceLinkType2["REDDIT"] = "Reddit";
13
+ ResourceLinkType2["SUPPORT"] = "Support";
14
+ ResourceLinkType2["GITHUB"] = "Github";
15
+ ResourceLinkType2["DOCUMENTATION"] = "Documentation";
16
+ return ResourceLinkType2;
17
+ })(ResourceLinkType || {});
18
+
19
+ export { ResourceLinkType };
@@ -0,0 +1,6 @@
1
+ declare enum ReviewStatus {
2
+ PENDING = "Pending",
3
+ APPROVED = "Approved"
4
+ }
5
+
6
+ export { ReviewStatus };
@@ -0,0 +1,7 @@
1
+ var ReviewStatus = /* @__PURE__ */ ((ReviewStatus2) => {
2
+ ReviewStatus2["PENDING"] = "Pending";
3
+ ReviewStatus2["APPROVED"] = "Approved";
4
+ return ReviewStatus2;
5
+ })(ReviewStatus || {});
6
+
7
+ export { ReviewStatus };
@@ -0,0 +1,26 @@
1
+ type RichAddress = {
2
+ /**
3
+ * The contract name.
4
+ */
5
+ name?: string;
6
+ /**
7
+ * The contract symbol.
8
+ */
9
+ symbol?: string;
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.
14
+ */
15
+ decimals?: number;
16
+ /**
17
+ * The logo uri for the address.
18
+ */
19
+ logoUri?: string;
20
+ /**
21
+ * A wallet or contract address in mixed-case checksum encoding.
22
+ */
23
+ address: string;
24
+ };
25
+
26
+ export { RichAddress };
@@ -0,0 +1,6 @@
1
+ declare enum SortOrder {
2
+ ASC = "asc",
3
+ DESC = "desc"
4
+ }
5
+
6
+ export { SortOrder };
@@ -0,0 +1,7 @@
1
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2
+ SortOrder2["ASC"] = "asc";
3
+ SortOrder2["DESC"] = "desc";
4
+ return SortOrder2;
5
+ })(SortOrder || {});
6
+
7
+ export { SortOrder };
@@ -0,0 +1,28 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type TokenWithPrice = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address?: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * The number of decimals the token uses. For example `6`,
18
+ * means to divide the token amount by `1000000` to get its user
19
+ * representation.
20
+ */
21
+ decimals: number;
22
+ /**
23
+ * The token price, if available.
24
+ */
25
+ price?: Money;
26
+ };
27
+
28
+ export { TokenWithPrice };
@@ -0,0 +1,36 @@
1
+ import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
2
+ import { Erc20TransferDetails } from './Erc20TransferDetails.js';
3
+ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
4
+ import { InternalTransactionDetails } from './InternalTransactionDetails.js';
5
+ import { NativeTransaction } from './NativeTransaction.js';
6
+
7
+ type TransactionDetails = {
8
+ /**
9
+ * The native (top-level) transaction details.
10
+ */
11
+ nativeTransaction: NativeTransaction;
12
+ /**
13
+ * The list of ERC-20 transfers.
14
+ */
15
+ erc20Transfers?: Array<Erc20TransferDetails>;
16
+ /**
17
+ * The list of ERC-721 transfers.
18
+ */
19
+ erc721Transfers?: Array<Erc721TransferDetails>;
20
+ /**
21
+ * The list of ERC-1155 transfers.
22
+ */
23
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
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.
32
+ */
33
+ internalTransactions?: Array<InternalTransactionDetails>;
34
+ };
35
+
36
+ export { TransactionDetails };
@@ -0,0 +1,7 @@
1
+ declare enum TransactionMethodType {
2
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
3
+ CONTRACT_CALL = "CONTRACT_CALL",
4
+ CONTRACT_CREATION = "CONTRACT_CREATION"
5
+ }
6
+
7
+ export { TransactionMethodType };
@@ -0,0 +1,8 @@
1
+ var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
2
+ TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
3
+ TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
4
+ TransactionMethodType2["CONTRACT_CREATION"] = "CONTRACT_CREATION";
5
+ return TransactionMethodType2;
6
+ })(TransactionMethodType || {});
7
+
8
+ export { TransactionMethodType };
@@ -0,0 +1,6 @@
1
+ declare enum TransactionStatus {
2
+ FAILED = "failed",
3
+ SUCCESS = "success"
4
+ }
5
+
6
+ export { TransactionStatus };
@@ -0,0 +1,7 @@
1
+ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
2
+ TransactionStatus2["FAILED"] = "failed";
3
+ TransactionStatus2["SUCCESS"] = "success";
4
+ return TransactionStatus2;
5
+ })(TransactionStatus || {});
6
+
7
+ export { TransactionStatus };
@@ -0,0 +1,16 @@
1
+ type TransactionVertexDetail = {
2
+ /**
3
+ * Vertex ID of the vertex this transaction belongs to.
4
+ */
5
+ hash: string;
6
+ /**
7
+ * Vertex height of the vertex this transaction belongs to.
8
+ */
9
+ height: number;
10
+ /**
11
+ * Timestamp in seconds this vertex was accepted.
12
+ */
13
+ timestamp: number;
14
+ };
15
+
16
+ export { TransactionVertexDetail };
@@ -0,0 +1,7 @@
1
+ declare enum TrendingTimeframe {
2
+ DAY = "day",
3
+ WEEK = "week",
4
+ MONTH = "month"
5
+ }
6
+
7
+ export { TrendingTimeframe };
@@ -0,0 +1,8 @@
1
+ var TrendingTimeframe = /* @__PURE__ */ ((TrendingTimeframe2) => {
2
+ TrendingTimeframe2["DAY"] = "day";
3
+ TrendingTimeframe2["WEEK"] = "week";
4
+ TrendingTimeframe2["MONTH"] = "month";
5
+ return TrendingTimeframe2;
6
+ })(TrendingTimeframe || {});
7
+
8
+ export { TrendingTimeframe };
@@ -0,0 +1,5 @@
1
+ type UtilityAddresses = {
2
+ multicall?: string;
3
+ };
4
+
5
+ export { UtilityAddresses };
@@ -0,0 +1,60 @@
1
+ import { Asset } from './Asset.js';
2
+ import { UtxoCredential } from './UtxoCredential.js';
3
+
4
+ type Utxo = {
5
+ /**
6
+ * UTXO ID for this output.
7
+ */
8
+ utxoId: string;
9
+ asset: Asset;
10
+ /**
11
+ * Type of output.
12
+ */
13
+ utxoType: string;
14
+ /**
15
+ * Blockchain ID on which this output is created on.
16
+ */
17
+ createdOnChainId: string;
18
+ /**
19
+ * Blockchain ID on which this output is consumed on.
20
+ */
21
+ consumedOnChainId: string;
22
+ /**
23
+ * Transaction ID that created this output.
24
+ */
25
+ creationTxHash: string;
26
+ /**
27
+ * Transaction ID that consumed this output.
28
+ */
29
+ consumingTxHash?: string;
30
+ /**
31
+ * Timestamp in seconds this output is consumed.
32
+ */
33
+ consumingTxTimestamp?: number;
34
+ /**
35
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
36
+ */
37
+ outputIndex: string;
38
+ /**
39
+ * Timestamp in seconds this outptut is created on.
40
+ */
41
+ timestamp: number;
42
+ /**
43
+ * Locktime in seconds after which this output can be consumed.
44
+ */
45
+ locktime: number;
46
+ /**
47
+ * Minimum number of signatures required to consume this output.
48
+ */
49
+ threshold: number;
50
+ /**
51
+ * Addresses that are eligible to sign the consumption of this output.
52
+ */
53
+ addresses: Array<string>;
54
+ /**
55
+ * Credentials that signed the transaction to consume this utxo
56
+ */
57
+ credentials: Array<UtxoCredential>;
58
+ };
59
+
60
+ export { Utxo };
@@ -0,0 +1,12 @@
1
+ type UtxoCredential = {
2
+ /**
3
+ * Signature provided to consume the output
4
+ */
5
+ signature?: string;
6
+ /**
7
+ * Public key associated with the signature
8
+ */
9
+ publicKey?: string;
10
+ };
11
+
12
+ export { UtxoCredential };
@@ -0,0 +1,7 @@
1
+ declare enum VmName {
2
+ EVM = "EVM",
3
+ BITCOIN = "BITCOIN",
4
+ ETHEREUM = "ETHEREUM"
5
+ }
6
+
7
+ export { VmName };
@@ -0,0 +1,8 @@
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 };