@avalabs/glacier-sdk 2.8.0-alpha.15 → 2.8.0-alpha.151
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.
- package/README.md +10 -0
- package/dist/index.d.ts +4118 -3
- package/dist/index.js +2030 -155
- package/esm/generated/Glacier.d.ts +42 -0
- package/esm/generated/Glacier.js +68 -0
- package/esm/generated/core/ApiError.d.ts +13 -0
- package/esm/generated/core/ApiError.js +18 -0
- package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
- package/esm/generated/core/ApiResult.d.ts +9 -0
- package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
- package/esm/generated/core/BaseHttpRequest.js +7 -0
- package/esm/generated/core/CancelablePromise.d.ts +28 -0
- package/esm/generated/core/CancelablePromise.js +91 -0
- package/esm/generated/core/FetchHttpRequest.js +13 -0
- package/esm/generated/core/OpenAPI.d.ts +18 -0
- package/esm/generated/core/OpenAPI.js +13 -0
- package/esm/generated/core/request.js +227 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +28 -0
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
- package/esm/generated/models/Asset.d.ts +28 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +12 -0
- package/esm/generated/models/BlockchainId.js +13 -0
- package/esm/generated/models/BlockchainIds.d.ts +9 -0
- package/esm/generated/models/BlockchainIds.js +10 -0
- package/esm/generated/models/BlockchainInfo.d.ts +5 -0
- package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainExportTransaction.js +8 -0
- package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainImportTransaction.js +8 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
- package/esm/generated/models/ChainInfo.d.ts +28 -0
- package/esm/generated/models/ChainStatus.d.ts +6 -0
- package/esm/generated/models/ChainStatus.js +7 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +21 -0
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
- package/esm/generated/models/CurrencyCode.d.ts +18 -0
- package/esm/generated/models/CurrencyCode.js +19 -0
- package/esm/generated/models/DelegationStatusType.d.ts +7 -0
- package/esm/generated/models/DelegationStatusType.js +8 -0
- package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
- package/esm/generated/models/EVMInput.d.ts +19 -0
- package/esm/generated/models/EVMOutput.d.ts +14 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155Token.d.ts +19 -0
- package/esm/generated/models/Erc1155Token.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
- package/esm/generated/models/Erc1155TokenBalance.js +8 -0
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
- package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
- package/esm/generated/models/Erc20Contract.d.ts +41 -0
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc20Token.d.ts +36 -0
- package/esm/generated/models/Erc20Token.js +8 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
- package/esm/generated/models/Erc20TokenBalance.js +8 -0
- package/esm/generated/models/Erc20Transfer.d.ts +28 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Token.d.ts +31 -0
- package/esm/generated/models/Erc721Token.js +8 -0
- package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
- package/esm/generated/models/Erc721TokenBalance.js +8 -0
- package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
- package/esm/generated/models/Erc721Transfer.d.ts +27 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/EvmBlock.d.ts +45 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
- package/esm/generated/models/GetChainResponse.d.ts +28 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +16 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/InternalTransaction.d.ts +33 -0
- package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
- package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
- package/esm/generated/models/InternalTransactionOpCall.js +12 -0
- package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
- package/esm/generated/models/ListChainsResponse.d.ts +7 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
- package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
- package/esm/generated/models/Method.d.ts +18 -0
- package/esm/generated/models/Money.d.ts +14 -0
- package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
- package/esm/generated/models/NativeTransaction.d.ts +55 -0
- package/esm/generated/models/Network.d.ts +6 -0
- package/esm/generated/models/Network.js +7 -0
- package/esm/generated/models/NetworkToken.d.ts +21 -0
- package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
- package/esm/generated/models/OperationStatus.d.ts +8 -0
- package/esm/generated/models/OperationStatus.js +9 -0
- package/esm/generated/models/OperationStatusCode.d.ts +7 -0
- package/esm/generated/models/OperationStatusCode.js +8 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
- package/esm/generated/models/OperationType.d.ts +6 -0
- package/esm/generated/models/OperationType.js +7 -0
- package/esm/generated/models/PChainAsset.d.ts +6 -0
- package/esm/generated/models/PChainBalance.d.ts +39 -0
- package/esm/generated/models/PChainId.d.ts +6 -0
- package/esm/generated/models/PChainId.js +7 -0
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +72 -0
- package/esm/generated/models/PChainTransactionType.d.ts +17 -0
- package/esm/generated/models/PChainTransactionType.js +18 -0
- package/esm/generated/models/PChainUtxo.d.ts +31 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +17 -0
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +16 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
- package/esm/generated/models/ProposerDetails.d.ts +9 -0
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/ResourceLink.d.ts +8 -0
- package/esm/generated/models/ResourceLinkType.d.ts +22 -0
- package/esm/generated/models/ResourceLinkType.js +23 -0
- package/esm/generated/models/RewardType.d.ts +7 -0
- package/esm/generated/models/RewardType.js +8 -0
- package/esm/generated/models/Rewards.d.ts +8 -0
- package/esm/generated/models/RichAddress.d.ts +24 -0
- package/esm/generated/models/SortOrder.d.ts +6 -0
- package/esm/generated/models/SortOrder.js +7 -0
- package/esm/generated/models/StakingDistribution.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/TransactionDetails.d.ts +30 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/TransactionMethodType.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.js +8 -0
- package/esm/generated/models/TransactionStatus.d.ts +6 -0
- package/esm/generated/models/TransactionStatus.js +7 -0
- package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UtilityAddresses.d.ts +5 -0
- package/esm/generated/models/Utxo.d.ts +68 -0
- package/esm/generated/models/UtxoCredential.d.ts +12 -0
- package/esm/generated/models/UtxoType.d.ts +6 -0
- package/esm/generated/models/UtxoType.js +7 -0
- package/esm/generated/models/ValidationStatusType.d.ts +7 -0
- package/esm/generated/models/ValidationStatusType.js +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
- package/esm/generated/models/VmName.d.ts +7 -0
- package/esm/generated/models/VmName.js +8 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
- package/esm/generated/models/XChainBalances.d.ts +17 -0
- package/esm/generated/models/XChainId.d.ts +7 -0
- package/esm/generated/models/XChainId.js +8 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +68 -0
- package/esm/generated/models/XChainLinearTransaction.js +9 -0
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +65 -0
- package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/models/XChainVertex.d.ts +12 -0
- package/esm/generated/services/DefaultService.d.ts +59 -0
- package/esm/generated/services/DefaultService.js +49 -0
- package/esm/generated/services/EvmBalancesService.d.ts +177 -0
- package/esm/generated/services/EvmBalancesService.js +116 -0
- package/esm/generated/services/EvmBlocksService.d.ts +47 -0
- package/esm/generated/services/EvmBlocksService.js +37 -0
- package/esm/generated/services/EvmChainsService.d.ts +36 -0
- package/esm/generated/services/EvmChainsService.js +29 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +353 -0
- package/esm/generated/services/EvmTransactionsService.js +251 -0
- package/esm/generated/services/HealthCheckService.d.ts +20 -0
- package/esm/generated/services/HealthCheckService.js +16 -0
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -0
- package/esm/generated/services/OperationsService.d.ts +35 -0
- package/esm/generated/services/OperationsService.js +28 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
- package/esm/generated/services/PrimaryNetworkService.js +171 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
- package/esm/index.d.ts +183 -0
- package/esm/index.js +77 -0
- package/package.json +11 -20
- package/.eslintrc.js +0 -3
- package/CHANGELOG.md +0 -250
- package/__tests__/glacier-sdk.test.js +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/generated/models.d.ts +0 -385
- package/dist/src/generated/models.d.ts.map +0 -1
- package/dist/src/glacierClient.d.ts +0 -93
- package/dist/src/glacierClient.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -13
- package/dist/src/types.d.ts.map +0 -1
- package/index.ts +0 -2
- package/rollup.config.js +0 -33
- package/src/generated/models.ts +0 -460
- package/src/glacierClient.ts +0 -190
- package/src/types.ts +0 -6
- package/swagger/generateModels.js +0 -40
- package/tsconfig.json +0 -7
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Hex encoded data for NFT assets
|
|
56
|
+
*/
|
|
57
|
+
payload?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Index representing the minting set for the NFT mint output
|
|
60
|
+
*/
|
|
61
|
+
groupId?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Credentials that signed the transaction to consume this utxo
|
|
64
|
+
*/
|
|
65
|
+
credentials?: Array<UtxoCredential>;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { Utxo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
2
|
+
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
|
+
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
|
+
ValidationStatusType2["PENDING"] = "pending";
|
|
5
|
+
return ValidationStatusType2;
|
|
6
|
+
})(ValidationStatusType || {});
|
|
7
|
+
|
|
8
|
+
export { ValidationStatusType };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type ValidatorHealthDetails = {
|
|
2
|
+
/**
|
|
3
|
+
* Percent of requests responded to in last polling.
|
|
4
|
+
*/
|
|
5
|
+
reachabilityPercent: number;
|
|
6
|
+
/**
|
|
7
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
8
|
+
*/
|
|
9
|
+
benchedPChainRequestsPercent: number;
|
|
10
|
+
/**
|
|
11
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
12
|
+
*/
|
|
13
|
+
benchedXChainRequestsPercent: number;
|
|
14
|
+
/**
|
|
15
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
16
|
+
*/
|
|
17
|
+
benchedCChainRequestsPercent: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { ValidatorHealthDetails };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StakingDistribution } from './StakingDistribution.js';
|
|
2
|
+
|
|
3
|
+
type ValidatorsDetails = {
|
|
4
|
+
validatorCount: number;
|
|
5
|
+
totalAmountStaked: string;
|
|
6
|
+
estimatedAnnualStakingReward: string;
|
|
7
|
+
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
8
|
+
stakingRatio: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ValidatorsDetails };
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
url: string;
|
|
10
|
+
chainId: string;
|
|
11
|
+
status: WebhookStatusType;
|
|
12
|
+
createdAt: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { WebhookResponse };
|
|
@@ -0,0 +1,29 @@
|
|
|
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 };
|
|
@@ -0,0 +1,32 @@
|
|
|
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 };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { XChainAssetBalance } from './XChainAssetBalance.js';
|
|
2
|
+
import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
|
|
3
|
+
|
|
4
|
+
type XChainBalances = {
|
|
5
|
+
/**
|
|
6
|
+
* A list of objects containing X-chain Asset balance information.
|
|
7
|
+
*/
|
|
8
|
+
locked: Array<XChainAssetBalance>;
|
|
9
|
+
/**
|
|
10
|
+
* A list of objects containing X-chain Asset balance information.
|
|
11
|
+
*/
|
|
12
|
+
unlocked: Array<XChainAssetBalance>;
|
|
13
|
+
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
14
|
+
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { XChainBalances };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum XChainId {
|
|
2
|
+
_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
|
|
3
|
+
_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
|
|
4
|
+
X_CHAIN = "x-chain"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { XChainId };
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
|
+
import { Utxo } from './Utxo.js';
|
|
3
|
+
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
4
|
+
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
5
|
+
|
|
6
|
+
type XChainLinearTransaction = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique ID for this transaction.
|
|
9
|
+
*/
|
|
10
|
+
txHash: string;
|
|
11
|
+
/**
|
|
12
|
+
* Represents chain format this transaction is included in.
|
|
13
|
+
*/
|
|
14
|
+
chainFormat: XChainLinearTransaction.chainFormat;
|
|
15
|
+
/**
|
|
16
|
+
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
17
|
+
*/
|
|
18
|
+
timestamp: number;
|
|
19
|
+
/**
|
|
20
|
+
* Type of transaction.
|
|
21
|
+
*/
|
|
22
|
+
txType: XChainTransactionType;
|
|
23
|
+
/**
|
|
24
|
+
* Hex encoded memo bytes for this transaction.
|
|
25
|
+
*/
|
|
26
|
+
memo: string;
|
|
27
|
+
consumedUtxos: Array<Utxo>;
|
|
28
|
+
emittedUtxos: Array<Utxo>;
|
|
29
|
+
/**
|
|
30
|
+
* Assets unlocked by inputs of this transaction.
|
|
31
|
+
*/
|
|
32
|
+
amountUnlocked: Array<Asset>;
|
|
33
|
+
/**
|
|
34
|
+
* Assets created by outputs of this transaction.
|
|
35
|
+
*/
|
|
36
|
+
amountCreated: Array<Asset>;
|
|
37
|
+
/**
|
|
38
|
+
* Source chain for an atomic transaction.
|
|
39
|
+
*/
|
|
40
|
+
sourceChain?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Destination chain for an atomic transaction.
|
|
43
|
+
*/
|
|
44
|
+
destinationChain?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Asset details of the asset created in CreateAssetTx
|
|
47
|
+
*/
|
|
48
|
+
assetCreated?: XChainAssetDetails;
|
|
49
|
+
/**
|
|
50
|
+
* Height of the block this transaction belongs to.
|
|
51
|
+
*/
|
|
52
|
+
blockHeight: number;
|
|
53
|
+
/**
|
|
54
|
+
* Hash of the block this transaction belongs to.
|
|
55
|
+
*/
|
|
56
|
+
blockHash: string;
|
|
57
|
+
};
|
|
58
|
+
declare namespace XChainLinearTransaction {
|
|
59
|
+
/**
|
|
60
|
+
* Represents chain format this transaction is included in.
|
|
61
|
+
*/
|
|
62
|
+
enum chainFormat {
|
|
63
|
+
NON_LINEAR = "non-linear",
|
|
64
|
+
LINEAR = "linear"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { XChainLinearTransaction };
|
|
@@ -0,0 +1,9 @@
|
|
|
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 };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
|
+
import { TransactionVertexDetail } from './TransactionVertexDetail.js';
|
|
3
|
+
import { Utxo } from './Utxo.js';
|
|
4
|
+
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
5
|
+
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
6
|
+
|
|
7
|
+
type XChainNonLinearTransaction = {
|
|
8
|
+
/**
|
|
9
|
+
* Unique ID for this transaction.
|
|
10
|
+
*/
|
|
11
|
+
txHash: string;
|
|
12
|
+
/**
|
|
13
|
+
* Represents chain format this transaction is included in.
|
|
14
|
+
*/
|
|
15
|
+
chainFormat: XChainNonLinearTransaction.chainFormat;
|
|
16
|
+
/**
|
|
17
|
+
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
18
|
+
*/
|
|
19
|
+
timestamp: number;
|
|
20
|
+
/**
|
|
21
|
+
* Type of transaction.
|
|
22
|
+
*/
|
|
23
|
+
txType: XChainTransactionType;
|
|
24
|
+
/**
|
|
25
|
+
* Hex encoded memo bytes for this transaction.
|
|
26
|
+
*/
|
|
27
|
+
memo: string;
|
|
28
|
+
consumedUtxos: Array<Utxo>;
|
|
29
|
+
emittedUtxos: Array<Utxo>;
|
|
30
|
+
/**
|
|
31
|
+
* Assets unlocked by inputs of this transaction.
|
|
32
|
+
*/
|
|
33
|
+
amountUnlocked: Array<Asset>;
|
|
34
|
+
/**
|
|
35
|
+
* Assets created by outputs of this transaction.
|
|
36
|
+
*/
|
|
37
|
+
amountCreated: Array<Asset>;
|
|
38
|
+
/**
|
|
39
|
+
* Source chain for an atomic transaction.
|
|
40
|
+
*/
|
|
41
|
+
sourceChain?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Destination chain for an atomic transaction.
|
|
44
|
+
*/
|
|
45
|
+
destinationChain?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Asset details of the asset created in CreateAssetTx
|
|
48
|
+
*/
|
|
49
|
+
assetCreated?: XChainAssetDetails;
|
|
50
|
+
/**
|
|
51
|
+
* A transaction on X-Chain can be accepted over multiple vertices.
|
|
52
|
+
*/
|
|
53
|
+
vertices: Array<TransactionVertexDetail>;
|
|
54
|
+
};
|
|
55
|
+
declare namespace XChainNonLinearTransaction {
|
|
56
|
+
/**
|
|
57
|
+
* Represents chain format this transaction is included in.
|
|
58
|
+
*/
|
|
59
|
+
enum chainFormat {
|
|
60
|
+
NON_LINEAR = "non-linear",
|
|
61
|
+
LINEAR = "linear"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { XChainNonLinearTransaction };
|
|
@@ -0,0 +1,9 @@
|
|
|
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 };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type XChainSharedAssetBalance = {
|
|
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
|
+
sharedWithChainId: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { XChainSharedAssetBalance };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
|
|
2
|
+
XChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
3
|
+
XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
4
|
+
XChainTransactionType2["OPERATION_TX"] = "OperationTx";
|
|
5
|
+
XChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
6
|
+
XChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
7
|
+
XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
return XChainTransactionType2;
|
|
9
|
+
})(XChainTransactionType || {});
|
|
10
|
+
|
|
11
|
+
export { XChainTransactionType };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type XChainVertex = {
|
|
2
|
+
vertexHash: string;
|
|
3
|
+
parentHashes: Array<string>;
|
|
4
|
+
vertexHeight: number;
|
|
5
|
+
vertexIndex: number;
|
|
6
|
+
vertexTimestamp: number;
|
|
7
|
+
txCount: number;
|
|
8
|
+
transactions: Array<string>;
|
|
9
|
+
vertexSizeBytes: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { XChainVertex };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
2
|
+
import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
|
|
3
|
+
import { WebhookResponse } from '../models/WebhookResponse.js';
|
|
4
|
+
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
5
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
+
|
|
8
|
+
declare class DefaultService {
|
|
9
|
+
readonly httpRequest: BaseHttpRequest;
|
|
10
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
+
/**
|
|
12
|
+
* @returns any
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Register a webhook
|
|
18
|
+
* Registers a new webhook.
|
|
19
|
+
* @returns WebhookResponse
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
registerWebhook({ requestBody, }: {
|
|
23
|
+
requestBody: RegisterWebhookRequest;
|
|
24
|
+
}): CancelablePromise<WebhookResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* List webhooks
|
|
27
|
+
* Lists webhooks for the user.
|
|
28
|
+
* @returns ListWebhooksResponse
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
32
|
+
/**
|
|
33
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
34
|
+
*/
|
|
35
|
+
pageSize?: number;
|
|
36
|
+
/**
|
|
37
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
38
|
+
*/
|
|
39
|
+
pageToken?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
42
|
+
*/
|
|
43
|
+
status?: WebhookStatus;
|
|
44
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Deactivate a webhook
|
|
47
|
+
* Deactivates a webhook by ID.
|
|
48
|
+
* @returns WebhookResponse
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
deactivateWebhook({ id, }: {
|
|
52
|
+
/**
|
|
53
|
+
* The webhook identifier.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
}): CancelablePromise<WebhookResponse>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { DefaultService };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
class DefaultService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
mediaControllerUploadImage() {
|
|
6
|
+
return this.httpRequest.request({
|
|
7
|
+
method: "POST",
|
|
8
|
+
url: "/v1/media/uploadImage"
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
registerWebhook({
|
|
12
|
+
requestBody
|
|
13
|
+
}) {
|
|
14
|
+
return this.httpRequest.request({
|
|
15
|
+
method: "POST",
|
|
16
|
+
url: "/v1/webhooks",
|
|
17
|
+
body: requestBody,
|
|
18
|
+
mediaType: "application/json"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
listWebhooks({
|
|
22
|
+
pageSize = 10,
|
|
23
|
+
pageToken,
|
|
24
|
+
status
|
|
25
|
+
}) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/v1/webhooks",
|
|
29
|
+
query: {
|
|
30
|
+
"pageSize": pageSize,
|
|
31
|
+
"pageToken": pageToken,
|
|
32
|
+
"status": status
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
deactivateWebhook({
|
|
37
|
+
id
|
|
38
|
+
}) {
|
|
39
|
+
return this.httpRequest.request({
|
|
40
|
+
method: "DELETE",
|
|
41
|
+
url: "/v1/webhooks/{id}",
|
|
42
|
+
path: {
|
|
43
|
+
"id": id
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { DefaultService };
|