@avalabs/glacier-sdk 2.8.0-canary.f6c173d.0 → 2.8.0-canary.f9bee1d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -0
- package/dist/index.d.ts +1138 -414
- package/dist/index.js +1 -1946
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +1 -68
- package/esm/generated/core/ApiError.js +1 -18
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +1 -91
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -227
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/ActiveValidatorDetails.js +1 -8
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CompletedValidatorDetails.js +1 -8
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
- package/esm/generated/models/ContractSubmissionErc20.js +1 -8
- package/esm/generated/models/ContractSubmissionErc721.js +1 -8
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +1 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +1 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +1 -7
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +17 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +1 -18
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.js +1 -8
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/PendingTeleporterMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingValidatorDetails.js +1 -8
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -21
- package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
- package/esm/generated/models/RemovedValidatorDetails.js +1 -0
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.js +1 -8
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +1 -0
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +1 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -8
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +1 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +1 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +1 -0
- package/esm/generated/services/DefaultService.js +1 -13
- package/esm/generated/services/EvmBalancesService.d.ts +27 -23
- package/esm/generated/services/EvmBalancesService.js +1 -116
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +1 -29
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmContractsService.js +1 -36
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +1 -37
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -53
- package/esm/generated/services/PrimaryNetworkService.d.ts +57 -42
- package/esm/generated/services/PrimaryNetworkService.js +1 -171
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +62 -0
- package/esm/generated/services/TeleporterService.js +1 -0
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +1 -0
- package/esm/index.d.ts +41 -3
- package/esm/index.js +1 -73
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum PrimaryNetworkOperationType {
|
|
2
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
4
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { PrimaryNetworkOperationType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var R=(R=>(R.TRANSACTION_EXPORT_PRIMARY_NETWORK="TRANSACTION_EXPORT_PRIMARY_NETWORK",R.TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING="TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",R.TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE="TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",R))(R||{});export{R as PrimaryNetworkOperationType};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type PrimaryNetworkOptions = {
|
|
2
|
-
addresses
|
|
2
|
+
addresses?: Array<string>;
|
|
3
3
|
cChainEvmAddresses?: Array<string>;
|
|
4
4
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
5
5
|
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
declare enum PrimaryNetworkTxType {
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
6
3
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
7
|
-
|
|
8
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
4
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
9
5
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
10
6
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
11
7
|
IMPORT_TX = "ImportTx",
|
|
12
8
|
EXPORT_TX = "ExportTx",
|
|
13
9
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
14
|
-
|
|
10
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
11
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
12
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
13
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
14
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
UNKNOWN = "UNKNOWN",
|
|
16
18
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
17
19
|
OPERATION_TX = "OperationTx"
|
|
18
20
|
}
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
|
-
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
|
-
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
-
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
6
|
-
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
7
|
-
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
8
|
-
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
9
|
-
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
10
|
-
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
11
|
-
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
12
|
-
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
13
|
-
PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
14
|
-
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
15
|
-
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
16
|
-
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
17
|
-
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
18
|
-
return PrimaryNetworkTxType2;
|
|
19
|
-
})(PrimaryNetworkTxType || {});
|
|
20
|
-
|
|
21
|
-
export { PrimaryNetworkTxType };
|
|
1
|
+
var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BlsCredentials } from './BlsCredentials.js';
|
|
2
|
+
|
|
3
|
+
type RemovedValidatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
|
+
nodeId: string;
|
|
6
|
+
subnetId: string;
|
|
7
|
+
amountStaked: string;
|
|
8
|
+
delegationFee?: string;
|
|
9
|
+
startTimestamp: number;
|
|
10
|
+
endTimestamp: number;
|
|
11
|
+
/**
|
|
12
|
+
* Present for AddPermissionlessValidatorTx
|
|
13
|
+
*/
|
|
14
|
+
blsCredentials?: BlsCredentials;
|
|
15
|
+
removeTxHash: string;
|
|
16
|
+
removeTimestamp: number;
|
|
17
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
18
|
+
};
|
|
19
|
+
declare namespace RemovedValidatorDetails {
|
|
20
|
+
enum validationStatus {
|
|
21
|
+
REMOVED = "removed"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { RemovedValidatorDetails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a,t;((t=a||(a={})).validationStatus||(t.validationStatus={})).REMOVED="removed";export{a as RemovedValidatorDetails};
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
var
|
|
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
|
+
var T=(T=>(T.BLOG="Blog",T.COIN_GECKO="CoinGecko",T.COIN_MARKET_CAP="CoinMarketCap",T.DISCORD="Discord",T.DOCUMENTATION="Documentation",T.FACEBOOK="Facebook",T.GITHUB="Github",T.INSTAGRAM="Instagram",T.LINKED_IN="LinkedIn",T.MEDIUM="Medium",T.REDDIT="Reddit",T.SUPPORT="Support",T.TELEGRAM="Telegram",T.TIK_TOK="TikTok",T.TWITTER="Twitter",T.WEBSITE="Website",T.WHITEPAPER="Whitepaper",T.YOUTUBE="Youtube",T))(T||{});export{T as ResourceLinkType};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
RewardType2["VALIDATOR"] = "VALIDATOR";
|
|
3
|
-
RewardType2["DELEGATOR"] = "DELEGATOR";
|
|
4
|
-
RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
|
|
5
|
-
return RewardType2;
|
|
6
|
-
})(RewardType || {});
|
|
7
|
-
|
|
8
|
-
export { RewardType };
|
|
1
|
+
var A=(A=>(A.VALIDATOR="VALIDATOR",A.DELEGATOR="DELEGATOR",A.VALIDATOR_FEE="VALIDATOR_FEE",A))(A||{});export{A as RewardType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.BLOCK_INDEX="blockIndex",e.DELEGATION_CAPACITY="delegationCapacity",e.TIME_REMAINING="timeRemaining",e.DELEGATION_FEE="delegationFee",e.UPTIME_PERFORMANCE="uptimePerformance",e))(e||{});export{e as SortByOption};
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
2
|
+
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
2
3
|
|
|
3
4
|
type Subnet = {
|
|
4
5
|
createBlockTimestamp: number;
|
|
5
6
|
createBlockIndex: string;
|
|
6
7
|
subnetId: string;
|
|
8
|
+
/**
|
|
9
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
7
12
|
ownerAddresses: Array<string>;
|
|
13
|
+
/**
|
|
14
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
8
17
|
threshold: number;
|
|
18
|
+
/**
|
|
19
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
9
22
|
locktime: number;
|
|
23
|
+
/**
|
|
24
|
+
* Latest subnet owner details for this Subnet.
|
|
25
|
+
*/
|
|
26
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
10
27
|
blockchains: Array<BlockchainInfo>;
|
|
11
28
|
};
|
|
12
29
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type SubnetOwnershipInfo = {
|
|
2
|
+
/**
|
|
3
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
4
|
+
*/
|
|
5
|
+
locktime: number;
|
|
6
|
+
/**
|
|
7
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
8
|
+
*/
|
|
9
|
+
threshold: number;
|
|
10
|
+
/**
|
|
11
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
12
|
+
*/
|
|
13
|
+
addresses: Array<string>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { SubnetOwnershipInfo };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
|
|
3
|
+
type TeleporterRewardDetails = {
|
|
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`, means to divide the token amount by `1000000` to get its user representation.
|
|
18
|
+
*/
|
|
19
|
+
decimals: number;
|
|
20
|
+
/**
|
|
21
|
+
* The logo uri for the address.
|
|
22
|
+
*/
|
|
23
|
+
logoUri?: string;
|
|
24
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The token price, if available.
|
|
27
|
+
*/
|
|
28
|
+
price?: Money;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
declare namespace TeleporterRewardDetails {
|
|
32
|
+
enum ercType {
|
|
33
|
+
ERC_20 = "ERC-20"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { TeleporterRewardDetails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as TeleporterRewardDetails};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
3
|
+
*/
|
|
1
4
|
declare enum TransactionMethodType {
|
|
2
5
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
3
6
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
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
|
+
var T=(T=>(T.NATIVE_TRANSFER="NATIVE_TRANSFER",T.CONTRACT_CALL="CONTRACT_CALL",T.CONTRACT_CREATION="CONTRACT_CREATION",T))(T||{});export{T as TransactionMethodType};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
TransactionStatus2["FAILED"] = "failed";
|
|
3
|
-
TransactionStatus2["SUCCESS"] = "success";
|
|
4
|
-
return TransactionStatus2;
|
|
5
|
-
})(TransactionStatus || {});
|
|
6
|
-
|
|
7
|
-
export { TransactionStatus };
|
|
1
|
+
var e=(e=>(e.FAILED="failed",e.SUCCESS="success",e))(e||{});export{e as TransactionStatus};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var UnknownContract;
|
|
2
|
-
((UnknownContract2) => {
|
|
3
|
-
((ercType2) => {
|
|
4
|
-
ercType2["UNKNOWN"] = "UNKNOWN";
|
|
5
|
-
})(UnknownContract2.ercType || (UnknownContract2.ercType = {}));
|
|
6
|
-
})(UnknownContract || (UnknownContract = {}));
|
|
7
|
-
|
|
8
|
-
export { UnknownContract };
|
|
1
|
+
var N,e;((e=N||(N={})).ercType||(e.ercType={})).UNKNOWN="UNKNOWN";export{N as UnknownContract};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
2
|
+
|
|
3
|
+
type UpdateWebhookRequest = {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
status?: WebhookStatusType;
|
|
8
|
+
includeInternalTxs?: boolean;
|
|
9
|
+
includeLogs?: boolean;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { UpdateWebhookRequest };
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { UtxoCredential } from './UtxoCredential.js';
|
|
3
3
|
|
|
4
4
|
type Utxo = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
asset:
|
|
8
|
+
addresses: Array<string>;
|
|
9
|
+
asset: AssetAmount;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Blockchain ID on which this output is consumed on.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
consumedOnChainId: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Transaction ID that consumed this output.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
consumingTxHash?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Blockchain ID on which this output is
|
|
19
|
+
* Blockchain ID on which this output is created on.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
createdOnChainId: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* UTXO ID for this output.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
utxoId: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
consumingTxTimestamp?: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Transaction ID that created this output.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
creationTxHash: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Credentials that signed the transaction to consume this utxo
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
credentials?: Array<UtxoCredential>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Index representing the minting set for the NFT mint output.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
groupId?: number;
|
|
42
42
|
/**
|
|
43
43
|
* Locktime in seconds after which this output can be consumed.
|
|
44
44
|
*/
|
|
45
45
|
locktime: number;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
outputIndex: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Hex encoded data for NFT assets.
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
payload?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Minimum number of signatures required to consume this output.
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
threshold: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
timestamp: number;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Type of output.
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
utxoType: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export { Utxo };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
type UtxoCredential = {
|
|
2
2
|
/**
|
|
3
|
-
* Signature provided to consume the output
|
|
3
|
+
* Signature provided to consume the output.
|
|
4
4
|
*/
|
|
5
5
|
signature?: string;
|
|
6
6
|
/**
|
|
7
|
-
* Public key associated with the signature
|
|
7
|
+
* Public key associated with the signature.
|
|
8
8
|
*/
|
|
9
9
|
publicKey?: string;
|
|
10
10
|
};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
UtxoType2["STAKE"] = "STAKE";
|
|
3
|
-
UtxoType2["TRANSFER"] = "TRANSFER";
|
|
4
|
-
return UtxoType2;
|
|
5
|
-
})(UtxoType || {});
|
|
6
|
-
|
|
7
|
-
export { UtxoType };
|
|
1
|
+
var A=(A=>(A.STAKE="STAKE",A.TRANSFER="TRANSFER",A))(A||{});export{A as UtxoType};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
|
-
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
|
-
ValidationStatusType2["PENDING"] = "pending";
|
|
5
|
-
return ValidationStatusType2;
|
|
6
|
-
})(ValidationStatusType || {});
|
|
7
|
-
|
|
8
|
-
export { ValidationStatusType };
|
|
1
|
+
var e=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(e||{});export{e as ValidationStatusType};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
VmName2["EVM"] = "EVM";
|
|
3
|
-
VmName2["BITCOIN"] = "BITCOIN";
|
|
4
|
-
VmName2["ETHEREUM"] = "ETHEREUM";
|
|
5
|
-
return VmName2;
|
|
6
|
-
})(VmName || {});
|
|
7
|
-
|
|
8
|
-
export { VmName };
|
|
1
|
+
var E=(E=>(E.EVM="EVM",E.BITCOIN="BITCOIN",E.ETHEREUM="ETHEREUM",E))(E||{});export{E as VmName};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
+
import { EventType } from './EventType.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type WebhookResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
eventType: EventType;
|
|
8
|
+
metadata: AddressActivityMetadata;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to include traces in the webhook payload.
|
|
11
|
+
*/
|
|
12
|
+
includeInternalTxs?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to include logs in the webhook payload.
|
|
15
|
+
*/
|
|
16
|
+
includeLogs?: boolean;
|
|
17
|
+
url: string;
|
|
18
|
+
chainId: string;
|
|
19
|
+
status: WebhookStatusType;
|
|
20
|
+
createdAt: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { WebhookResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatus};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatusType};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
|
|
2
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
3
|
+
|
|
1
4
|
type XChainAssetDetails = {
|
|
2
5
|
/**
|
|
3
6
|
* Unique ID for an asset.
|
|
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
|
|
|
15
18
|
* Denomination of this asset to represent fungibility.
|
|
16
19
|
*/
|
|
17
20
|
denomination: number;
|
|
18
|
-
|
|
19
|
-
* Type of asset like SECP256K1 or NFT.
|
|
20
|
-
*/
|
|
21
|
-
type: string;
|
|
21
|
+
type: PrimaryNetworkAssetType;
|
|
22
22
|
/**
|
|
23
23
|
* Timestamp in seconds this asset was created on.
|
|
24
24
|
*/
|
|
25
25
|
createdAtTimestamp: number;
|
|
26
|
-
|
|
27
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
28
|
-
*/
|
|
29
|
-
cap: string;
|
|
26
|
+
cap: PrimaryNetworkAssetCap;
|
|
30
27
|
};
|
|
31
28
|
|
|
32
29
|
export { XChainAssetDetails };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
|
|
2
2
|
import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
|
|
3
3
|
|
|
4
4
|
type XChainBalances = {
|
|
5
5
|
/**
|
|
6
6
|
* A list of objects containing X-chain Asset balance information.
|
|
7
7
|
*/
|
|
8
|
-
locked: Array<
|
|
8
|
+
locked: Array<AggregatedAssetAmount>;
|
|
9
9
|
/**
|
|
10
10
|
* A list of objects containing X-chain Asset balance information.
|
|
11
11
|
*/
|
|
12
|
-
unlocked: Array<
|
|
12
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
13
13
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
14
14
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
15
15
|
};
|