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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/CHANGELOG.md +236 -0
  2. package/README.md +0 -10
  3. package/__tests__/glacier-sdk.test.js +7 -0
  4. package/dist/index.d.ts +3 -3239
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +153 -1560
  7. package/dist/index.js.map +1 -0
  8. package/dist/src/generated/models.d.ts +385 -0
  9. package/dist/src/generated/models.d.ts.map +1 -0
  10. package/dist/src/glacierClient.d.ts +93 -0
  11. package/dist/src/glacierClient.d.ts.map +1 -0
  12. package/dist/src/types.d.ts +13 -0
  13. package/dist/src/types.d.ts.map +1 -0
  14. package/index.ts +2 -0
  15. package/package.json +20 -11
  16. package/rollup.config.js +33 -0
  17. package/src/generated/models.ts +460 -0
  18. package/src/glacierClient.ts +190 -0
  19. package/src/types.ts +6 -0
  20. package/swagger/generateModels.js +40 -0
  21. package/tsconfig.json +7 -0
  22. package/esm/generated/Glacier.d.ts +0 -18
  23. package/esm/generated/Glacier.js +0 -28
  24. package/esm/generated/core/ApiError.d.ts +0 -13
  25. package/esm/generated/core/ApiError.js +0 -13
  26. package/esm/generated/core/ApiRequestOptions.d.ts +0 -15
  27. package/esm/generated/core/ApiResult.d.ts +0 -9
  28. package/esm/generated/core/BaseHttpRequest.d.ts +0 -11
  29. package/esm/generated/core/BaseHttpRequest.js +0 -7
  30. package/esm/generated/core/CancelablePromise.d.ts +0 -28
  31. package/esm/generated/core/CancelablePromise.js +0 -86
  32. package/esm/generated/core/FetchHttpRequest.js +0 -13
  33. package/esm/generated/core/OpenAPI.d.ts +0 -18
  34. package/esm/generated/core/OpenAPI.js +0 -13
  35. package/esm/generated/core/request.js +0 -244
  36. package/esm/generated/models/Address.d.ts +0 -8
  37. package/esm/generated/models/Asset.d.ts +0 -28
  38. package/esm/generated/models/Block.d.ts +0 -15
  39. package/esm/generated/models/BlockchainId.d.ts +0 -9
  40. package/esm/generated/models/BlockchainId.js +0 -10
  41. package/esm/generated/models/CChainAtomicBalances.d.ts +0 -8
  42. package/esm/generated/models/CChainExportTransaction.d.ts +0 -58
  43. package/esm/generated/models/CChainExportTransaction.js +0 -8
  44. package/esm/generated/models/CChainImportTransaction.d.ts +0 -58
  45. package/esm/generated/models/CChainImportTransaction.js +0 -8
  46. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -30
  47. package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
  48. package/esm/generated/models/ChainAddressChainIdMap.d.ts +0 -8
  49. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +0 -7
  50. package/esm/generated/models/ChainInfo.d.ts +0 -30
  51. package/esm/generated/models/ChainStatus.d.ts +0 -6
  52. package/esm/generated/models/ChainStatus.js +0 -7
  53. package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
  54. package/esm/generated/models/CollectionMetrics.d.ts +0 -40
  55. package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
  56. package/esm/generated/models/CollectionSortByOption.js +0 -9
  57. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +0 -16
  58. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -9
  59. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +0 -16
  60. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -9
  61. package/esm/generated/models/CurrencyCode.d.ts +0 -18
  62. package/esm/generated/models/CurrencyCode.js +0 -19
  63. package/esm/generated/models/EVMInput.d.ts +0 -14
  64. package/esm/generated/models/EVMOutput.d.ts +0 -14
  65. package/esm/generated/models/Erc1155Token.d.ts +0 -19
  66. package/esm/generated/models/Erc1155Token.js +0 -8
  67. package/esm/generated/models/Erc1155TokenBalance.d.ts +0 -28
  68. package/esm/generated/models/Erc1155TokenBalance.js +0 -8
  69. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -20
  70. package/esm/generated/models/Erc1155Transfer.d.ts +0 -27
  71. package/esm/generated/models/Erc1155TransferDetails.d.ts +0 -11
  72. package/esm/generated/models/Erc20Token.d.ts +0 -38
  73. package/esm/generated/models/Erc20Token.js +0 -8
  74. package/esm/generated/models/Erc20TokenBalance.d.ts +0 -51
  75. package/esm/generated/models/Erc20TokenBalance.js +0 -8
  76. package/esm/generated/models/Erc20Transfer.d.ts +0 -27
  77. package/esm/generated/models/Erc20TransferDetails.d.ts +0 -11
  78. package/esm/generated/models/Erc721Token.d.ts +0 -31
  79. package/esm/generated/models/Erc721Token.js +0 -8
  80. package/esm/generated/models/Erc721TokenBalance.d.ts +0 -35
  81. package/esm/generated/models/Erc721TokenBalance.js +0 -8
  82. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -19
  83. package/esm/generated/models/Erc721Transfer.d.ts +0 -26
  84. package/esm/generated/models/Erc721TransferDetails.d.ts +0 -10
  85. package/esm/generated/models/ErcType.d.ts +0 -8
  86. package/esm/generated/models/ErcType.js +0 -9
  87. package/esm/generated/models/EvmNetworkOptions.d.ts +0 -6
  88. package/esm/generated/models/FullNativeTransactionDetails.d.ts +0 -62
  89. package/esm/generated/models/GetBlockResponse.d.ts +0 -49
  90. package/esm/generated/models/GetChainResponse.d.ts +0 -30
  91. package/esm/generated/models/GetNativeBalanceResponse.d.ts +0 -10
  92. package/esm/generated/models/GetTransactionResponse.d.ts +0 -35
  93. package/esm/generated/models/InternalTransaction.d.ts +0 -33
  94. package/esm/generated/models/InternalTransactionDetails.d.ts +0 -17
  95. package/esm/generated/models/InternalTransactionOpCall.d.ts +0 -11
  96. package/esm/generated/models/InternalTransactionOpCall.js +0 -12
  97. package/esm/generated/models/ListBlocksResponse.d.ts +0 -11
  98. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +0 -7
  99. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +0 -12
  100. package/esm/generated/models/ListChainsResponse.d.ts +0 -7
  101. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +0 -16
  102. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +0 -14
  103. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +0 -11
  104. package/esm/generated/models/ListErc20BalancesResponse.d.ts +0 -14
  105. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +0 -11
  106. package/esm/generated/models/ListErc721BalancesResponse.d.ts +0 -14
  107. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +0 -11
  108. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +0 -11
  109. package/esm/generated/models/ListListingsResponse.d.ts +0 -11
  110. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +0 -11
  111. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
  112. package/esm/generated/models/ListPChainBalancesResponse.d.ts +0 -7
  113. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +0 -11
  114. package/esm/generated/models/ListPChainUtxosResponse.d.ts +0 -11
  115. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +0 -11
  116. package/esm/generated/models/ListTransfersResponse.d.ts +0 -13
  117. package/esm/generated/models/ListUtxosResponse.d.ts +0 -11
  118. package/esm/generated/models/ListXChainBalancesResponse.d.ts +0 -7
  119. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +0 -12
  120. package/esm/generated/models/ListXChainVerticesResponse.d.ts +0 -11
  121. package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
  122. package/esm/generated/models/ListingCurrencyType.js +0 -7
  123. package/esm/generated/models/ListingEventType.d.ts +0 -8
  124. package/esm/generated/models/ListingEventType.js +0 -9
  125. package/esm/generated/models/ListingResponse.d.ts +0 -19
  126. package/esm/generated/models/ListingType.d.ts +0 -6
  127. package/esm/generated/models/ListingType.js +0 -7
  128. package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
  129. package/esm/generated/models/ListingsSortByOption.js +0 -6
  130. package/esm/generated/models/Method.d.ts +0 -24
  131. package/esm/generated/models/Money.d.ts +0 -14
  132. package/esm/generated/models/NativeTokenBalance.d.ts +0 -41
  133. package/esm/generated/models/NativeTransaction.d.ts +0 -55
  134. package/esm/generated/models/Network.d.ts +0 -6
  135. package/esm/generated/models/Network.js +0 -7
  136. package/esm/generated/models/NetworkToken.d.ts +0 -23
  137. package/esm/generated/models/NetworkTokenDetails.d.ts +0 -18
  138. package/esm/generated/models/NftCollection.d.ts +0 -24
  139. package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
  140. package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
  141. package/esm/generated/models/NftSearchBody.d.ts +0 -10
  142. package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
  143. package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
  144. package/esm/generated/models/NftTokenMetadataStatus.d.ts +0 -15
  145. package/esm/generated/models/NftTokenMetadataStatus.js +0 -16
  146. package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
  147. package/esm/generated/models/OperationStatus.d.ts +0 -8
  148. package/esm/generated/models/OperationStatus.js +0 -9
  149. package/esm/generated/models/OperationStatusCode.d.ts +0 -7
  150. package/esm/generated/models/OperationStatusCode.js +0 -8
  151. package/esm/generated/models/OperationStatusResponse.d.ts +0 -15
  152. package/esm/generated/models/OperationType.d.ts +0 -6
  153. package/esm/generated/models/OperationType.js +0 -7
  154. package/esm/generated/models/PChainAsset.d.ts +0 -6
  155. package/esm/generated/models/PChainBalance.d.ts +0 -30
  156. package/esm/generated/models/PChainId.d.ts +0 -6
  157. package/esm/generated/models/PChainId.js +0 -7
  158. package/esm/generated/models/PChainTransaction.d.ts +0 -76
  159. package/esm/generated/models/PChainTransactionType.d.ts +0 -16
  160. package/esm/generated/models/PChainTransactionType.js +0 -17
  161. package/esm/generated/models/PChainUtxo.d.ts +0 -37
  162. package/esm/generated/models/PaginationParams.d.ts +0 -13
  163. package/esm/generated/models/PrimaryNetworkOptions.d.ts +0 -6
  164. package/esm/generated/models/ProposerDetails.d.ts +0 -9
  165. package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
  166. package/esm/generated/models/ResourceLink.d.ts +0 -8
  167. package/esm/generated/models/ResourceLinkType.d.ts +0 -22
  168. package/esm/generated/models/ResourceLinkType.js +0 -23
  169. package/esm/generated/models/RewardType.d.ts +0 -6
  170. package/esm/generated/models/RewardType.js +0 -7
  171. package/esm/generated/models/RichAddress.d.ts +0 -26
  172. package/esm/generated/models/SortOrder.d.ts +0 -6
  173. package/esm/generated/models/SortOrder.js +0 -7
  174. package/esm/generated/models/TokenWithPrice.d.ts +0 -28
  175. package/esm/generated/models/TransactionDetails.d.ts +0 -36
  176. package/esm/generated/models/TransactionExportMetadata.d.ts +0 -18
  177. package/esm/generated/models/TransactionMethodType.d.ts +0 -7
  178. package/esm/generated/models/TransactionMethodType.js +0 -8
  179. package/esm/generated/models/TransactionStatus.d.ts +0 -6
  180. package/esm/generated/models/TransactionStatus.js +0 -7
  181. package/esm/generated/models/TransactionVertexDetail.d.ts +0 -16
  182. package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
  183. package/esm/generated/models/TrendingTimeframe.js +0 -8
  184. package/esm/generated/models/UtilityAddresses.d.ts +0 -5
  185. package/esm/generated/models/Utxo.d.ts +0 -60
  186. package/esm/generated/models/UtxoCredential.d.ts +0 -12
  187. package/esm/generated/models/UtxoType.d.ts +0 -6
  188. package/esm/generated/models/UtxoType.js +0 -7
  189. package/esm/generated/models/VmName.d.ts +0 -7
  190. package/esm/generated/models/VmName.js +0 -8
  191. package/esm/generated/models/XChainAssetBalance.d.ts +0 -29
  192. package/esm/generated/models/XChainAssetDetails.d.ts +0 -32
  193. package/esm/generated/models/XChainBalances.d.ts +0 -17
  194. package/esm/generated/models/XChainId.d.ts +0 -6
  195. package/esm/generated/models/XChainId.js +0 -7
  196. package/esm/generated/models/XChainLinearTransaction.d.ts +0 -67
  197. package/esm/generated/models/XChainLinearTransaction.js +0 -9
  198. package/esm/generated/models/XChainNonLinearTransaction.d.ts +0 -64
  199. package/esm/generated/models/XChainNonLinearTransaction.js +0 -9
  200. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -30
  201. package/esm/generated/models/XChainVertex.d.ts +0 -12
  202. package/esm/generated/services/EvmService.d.ts +0 -730
  203. package/esm/generated/services/EvmService.js +0 -511
  204. package/esm/generated/services/HealthCheckService.d.ts +0 -20
  205. package/esm/generated/services/HealthCheckService.js +0 -16
  206. package/esm/generated/services/OperationsService.d.ts +0 -31
  207. package/esm/generated/services/OperationsService.js +0 -28
  208. package/esm/generated/services/PrimaryNetworkService.d.ts +0 -387
  209. package/esm/generated/services/PrimaryNetworkService.js +0 -273
  210. package/esm/index.d.ts +0 -136
  211. package/esm/index.js +0 -48
@@ -1,76 +0,0 @@
1
- import { PChainAsset } from './PChainAsset.js';
2
- import { PChainTransactionType } from './PChainTransactionType.js';
3
- import { PChainUtxo } from './PChainUtxo.js';
4
-
5
- type PChainTransaction = {
6
- /**
7
- * A P-Chain transaction hash.
8
- */
9
- txHash: string;
10
- txType: PChainTransactionType;
11
- /**
12
- * The block finality timestamp.
13
- */
14
- blockTimestamp: number;
15
- blockNumber: string;
16
- blockHash: string;
17
- consumedUtxos: Array<PChainUtxo>;
18
- emittedUtxos: Array<PChainUtxo>;
19
- /**
20
- * Source chain for an atomic transaction.
21
- */
22
- sourceChain?: string;
23
- /**
24
- * Destination chain for an atomic transaction.
25
- */
26
- destinationChain?: string;
27
- /**
28
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
29
- */
30
- value?: Array<PChainAsset>;
31
- /**
32
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
33
- */
34
- amountBurned?: Array<PChainAsset>;
35
- /**
36
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
- */
38
- amountStaked?: Array<PChainAsset>;
39
- /**
40
- * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
41
- */
42
- startTimestamp?: number;
43
- /**
44
- * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
45
- */
46
- endTimestamp?: number;
47
- /**
48
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
49
- */
50
- delegationFeePercent?: string;
51
- /**
52
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
53
- */
54
- nodeId?: string;
55
- /**
56
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
57
- */
58
- subnetId?: string;
59
- /**
60
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
61
- */
62
- estimatedReward?: string;
63
- rewardTxHash?: string;
64
- /**
65
- * To be deprecated
66
- * @deprecated
67
- */
68
- rewardTx?: string;
69
- memo?: string;
70
- /**
71
- * Present for RewardValidatorTx
72
- */
73
- stakingTxHash?: string;
74
- };
75
-
76
- export { PChainTransaction };
@@ -1,16 +0,0 @@
1
- declare enum PChainTransactionType {
2
- ADD_VALIDATOR_TX = "AddValidatorTx",
3
- ADD_DELEGATOR_TX = "AddDelegatorTx",
4
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
- ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
8
- CREATE_CHAIN_TX = "CreateChainTx",
9
- CREATE_SUBNET_TX = "CreateSubnetTx",
10
- IMPORT_TX = "ImportTx",
11
- EXPORT_TX = "ExportTx",
12
- ADVANCE_TIME_TX = "AdvanceTimeTx",
13
- UNKNOWN = "UNKNOWN"
14
- }
15
-
16
- export { PChainTransactionType };
@@ -1,17 +0,0 @@
1
- var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
- PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
- PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
8
- PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
9
- PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
10
- PChainTransactionType2["IMPORT_TX"] = "ImportTx";
11
- PChainTransactionType2["EXPORT_TX"] = "ExportTx";
12
- PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
13
- PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
14
- return PChainTransactionType2;
15
- })(PChainTransactionType || {});
16
-
17
- export { PChainTransactionType };
@@ -1,37 +0,0 @@
1
- import { RewardType } from './RewardType.js';
2
- import { UtxoType } from './UtxoType.js';
3
-
4
- type PChainUtxo = {
5
- /**
6
- * An array of P-Chain wallet addresses.
7
- */
8
- addresses: Array<string>;
9
- utxoId: string;
10
- txHash: string;
11
- outputIndex: number;
12
- blockTimestamp: number;
13
- consumingTxHash?: string;
14
- consumingBlockTimestamp?: number;
15
- assetId: string;
16
- utxoType: UtxoType;
17
- amount: string;
18
- stakeableLocktime?: number;
19
- platformLocktime?: number;
20
- threshold?: number;
21
- createdOnChainId: string;
22
- consumedOnChainId: string;
23
- staked?: boolean;
24
- rewardType?: RewardType;
25
- /**
26
- * To be deprecated
27
- * @deprecated
28
- */
29
- fromTx?: string;
30
- /**
31
- * To be deprecated
32
- * @deprecated
33
- */
34
- toTx?: string;
35
- };
36
-
37
- export { PChainUtxo };
@@ -1,13 +0,0 @@
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 };
@@ -1,6 +0,0 @@
1
- type PrimaryNetworkOptions = {
2
- addresses: Array<string>;
3
- includeChains: Array<'p-chain' | 'x-chain' | 'c-chain' | '11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM'>;
4
- };
5
-
6
- export { PrimaryNetworkOptions };
@@ -1,9 +0,0 @@
1
- type ProposerDetails = {
2
- proposerId?: string;
3
- proposerParentId?: string;
4
- proposerNodeId?: string;
5
- proposerPChainHeight?: number;
6
- proposerTimestamp?: number;
7
- };
8
-
9
- export { ProposerDetails };
@@ -1,17 +0,0 @@
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 };
@@ -1,8 +0,0 @@
1
- import { ResourceLinkType } from './ResourceLinkType.js';
2
-
3
- type ResourceLink = {
4
- type: ResourceLinkType;
5
- url: string;
6
- };
7
-
8
- export { ResourceLink };
@@ -1,22 +0,0 @@
1
- declare enum ResourceLinkType {
2
- BLOG = "Blog",
3
- COIN_GECKO = "CoinGecko",
4
- COIN_MARKET_CAP = "CoinMarketCap",
5
- DISCORD = "Discord",
6
- DOCUMENTATION = "Documentation",
7
- FACEBOOK = "Facebook",
8
- GITHUB = "Github",
9
- INSTAGRAM = "Instagram",
10
- LINKED_IN = "LinkedIn",
11
- MEDIUM = "Medium",
12
- REDDIT = "Reddit",
13
- SUPPORT = "Support",
14
- TELEGRAM = "Telegram",
15
- TIK_TOK = "TikTok",
16
- TWITTER = "Twitter",
17
- WEBSITE = "Website",
18
- WHITEPAPER = "Whitepaper",
19
- YOUTUBE = "Youtube"
20
- }
21
-
22
- export { ResourceLinkType };
@@ -1,23 +0,0 @@
1
- var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
2
- ResourceLinkType2["BLOG"] = "Blog";
3
- ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
4
- ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
5
- ResourceLinkType2["DISCORD"] = "Discord";
6
- ResourceLinkType2["DOCUMENTATION"] = "Documentation";
7
- ResourceLinkType2["FACEBOOK"] = "Facebook";
8
- ResourceLinkType2["GITHUB"] = "Github";
9
- ResourceLinkType2["INSTAGRAM"] = "Instagram";
10
- ResourceLinkType2["LINKED_IN"] = "LinkedIn";
11
- ResourceLinkType2["MEDIUM"] = "Medium";
12
- ResourceLinkType2["REDDIT"] = "Reddit";
13
- ResourceLinkType2["SUPPORT"] = "Support";
14
- ResourceLinkType2["TELEGRAM"] = "Telegram";
15
- ResourceLinkType2["TIK_TOK"] = "TikTok";
16
- ResourceLinkType2["TWITTER"] = "Twitter";
17
- ResourceLinkType2["WEBSITE"] = "Website";
18
- ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
19
- ResourceLinkType2["YOUTUBE"] = "Youtube";
20
- return ResourceLinkType2;
21
- })(ResourceLinkType || {});
22
-
23
- export { ResourceLinkType };
@@ -1,6 +0,0 @@
1
- declare enum RewardType {
2
- VALIDATOR = "VALIDATOR",
3
- DELEGATOR = "DELEGATOR"
4
- }
5
-
6
- export { RewardType };
@@ -1,7 +0,0 @@
1
- var RewardType = /* @__PURE__ */ ((RewardType2) => {
2
- RewardType2["VALIDATOR"] = "VALIDATOR";
3
- RewardType2["DELEGATOR"] = "DELEGATOR";
4
- return RewardType2;
5
- })(RewardType || {});
6
-
7
- export { RewardType };
@@ -1,26 +0,0 @@
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 };
@@ -1,6 +0,0 @@
1
- declare enum SortOrder {
2
- ASC = "asc",
3
- DESC = "desc"
4
- }
5
-
6
- export { SortOrder };
@@ -1,7 +0,0 @@
1
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2
- SortOrder2["ASC"] = "asc";
3
- SortOrder2["DESC"] = "desc";
4
- return SortOrder2;
5
- })(SortOrder || {});
6
-
7
- export { SortOrder };
@@ -1,28 +0,0 @@
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 };
@@ -1,36 +0,0 @@
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 };
@@ -1,18 +0,0 @@
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 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 { TransactionExportMetadata };
@@ -1,7 +0,0 @@
1
- declare enum TransactionMethodType {
2
- NATIVE_TRANSFER = "NATIVE_TRANSFER",
3
- CONTRACT_CALL = "CONTRACT_CALL",
4
- CONTRACT_CREATION = "CONTRACT_CREATION"
5
- }
6
-
7
- export { TransactionMethodType };
@@ -1,8 +0,0 @@
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 };
@@ -1,6 +0,0 @@
1
- declare enum TransactionStatus {
2
- FAILED = "failed",
3
- SUCCESS = "success"
4
- }
5
-
6
- export { TransactionStatus };
@@ -1,7 +0,0 @@
1
- var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
2
- TransactionStatus2["FAILED"] = "failed";
3
- TransactionStatus2["SUCCESS"] = "success";
4
- return TransactionStatus2;
5
- })(TransactionStatus || {});
6
-
7
- export { TransactionStatus };
@@ -1,16 +0,0 @@
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 };
@@ -1,7 +0,0 @@
1
- declare enum TrendingTimeframe {
2
- DAY = "day",
3
- WEEK = "week",
4
- MONTH = "month"
5
- }
6
-
7
- export { TrendingTimeframe };
@@ -1,8 +0,0 @@
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 };
@@ -1,5 +0,0 @@
1
- type UtilityAddresses = {
2
- multicall?: string;
3
- };
4
-
5
- export { UtilityAddresses };
@@ -1,60 +0,0 @@
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 };
@@ -1,12 +0,0 @@
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 };
@@ -1,6 +0,0 @@
1
- declare enum UtxoType {
2
- STAKE = "STAKE",
3
- TRANSFER = "TRANSFER"
4
- }
5
-
6
- export { UtxoType };
@@ -1,7 +0,0 @@
1
- var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
2
- UtxoType2["STAKE"] = "STAKE";
3
- UtxoType2["TRANSFER"] = "TRANSFER";
4
- return UtxoType2;
5
- })(UtxoType || {});
6
-
7
- export { UtxoType };
@@ -1,7 +0,0 @@
1
- declare enum VmName {
2
- EVM = "EVM",
3
- BITCOIN = "BITCOIN",
4
- ETHEREUM = "ETHEREUM"
5
- }
6
-
7
- export { VmName };
@@ -1,8 +0,0 @@
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,29 +0,0 @@
1
- type XChainAssetBalance = {
2
- /**
3
- * Unique ID for an asset.
4
- */
5
- assetId: string;
6
- /**
7
- * Name of this asset.
8
- */
9
- name: string;
10
- /**
11
- * Symbol for this asset (max 4 characters).
12
- */
13
- symbol: string;
14
- /**
15
- * Denomination of this asset to represent fungibility.
16
- */
17
- denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
22
- /**
23
- * Amount of the asset.
24
- */
25
- amount: string;
26
- utxoCount: number;
27
- };
28
-
29
- export { XChainAssetBalance };
@@ -1,32 +0,0 @@
1
- type XChainAssetDetails = {
2
- /**
3
- * Unique ID for an asset.
4
- */
5
- assetId: string;
6
- /**
7
- * Name of this asset.
8
- */
9
- name: string;
10
- /**
11
- * Symbol for this asset (max 4 characters).
12
- */
13
- symbol: string;
14
- /**
15
- * Denomination of this asset to represent fungibility.
16
- */
17
- denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
22
- /**
23
- * Timestamp in seconds this asset was created on.
24
- */
25
- createdAtTimestamp: number;
26
- /**
27
- * Cap represents if an asset can be or is fixed cap.
28
- */
29
- cap: string;
30
- };
31
-
32
- export { XChainAssetDetails };