@avalabs/glacier-sdk 3.1.0-alpha.1 → 3.1.0-alpha.100
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/CHANGELOG.md +1754 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +6116 -3184
- package/esm/generated/Glacier.d.ts +8 -4
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/core/ApiRequestOptions.d.ts +1 -1
- package/esm/generated/core/ApiResult.d.ts +1 -1
- package/esm/generated/core/CancelablePromise.d.ts +2 -1
- package/esm/generated/core/FetchHttpRequest.d.ts +17 -0
- package/esm/generated/core/OpenAPI.d.ts +2 -1
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +35 -0
- package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
- package/esm/generated/models/AddressActivityMetadata.d.ts +5 -5
- package/esm/generated/models/AddressesChangeRequest.d.ts +2 -2
- package/esm/generated/models/AggregatedAssetAmount.d.ts +1 -1
- package/esm/generated/models/ApiFeature.d.ts +7 -0
- package/esm/generated/models/ApiFeature.js +1 -0
- package/esm/generated/models/AssetAmount.d.ts +1 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +1 -1
- package/esm/generated/models/AutoRenewDetails.d.ts +41 -0
- package/esm/generated/models/AutoRenewExitReason.d.ts +9 -0
- package/esm/generated/models/AutoRenewExitReason.js +1 -0
- package/esm/generated/models/AutoRenewState.d.ts +11 -0
- package/esm/generated/models/AutoRenewState.js +1 -0
- package/esm/generated/models/AutoRenewedCycle.d.ts +67 -0
- package/esm/generated/models/AutoRenewedCycleOutcome.d.ts +10 -0
- package/esm/generated/models/AutoRenewedCycleOutcome.js +1 -0
- package/esm/generated/models/AvaxSupplyResponse.d.ts +48 -0
- package/esm/generated/models/BadGateway.d.ts +16 -0
- package/esm/generated/models/BadRequest.d.ts +16 -0
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/Blockchain.d.ts +11 -1
- package/esm/generated/models/BlockchainInfo.d.ts +9 -2
- package/esm/generated/models/BlsCredentials.d.ts +1 -1
- package/esm/generated/models/CChainAtomicBalances.d.ts +1 -1
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +1 -1
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +1 -1
- package/esm/generated/models/ChainInfo.d.ts +2 -2
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +22 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +1 -1
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +5 -5
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +5 -5
- package/esm/generated/models/CurrentAutoRenewedCycle.d.ts +47 -0
- package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
- package/esm/generated/models/DelegatorsDetails.d.ts +1 -1
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +25 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
- package/esm/generated/models/EVMInput.d.ts +1 -1
- package/esm/generated/models/EVMOutput.d.ts +1 -1
- package/esm/generated/models/Erc1155Contract.d.ts +1 -1
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc1155Transfer.d.ts +6 -2
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/Erc20TokenV2.d.ts +47 -0
- package/esm/generated/models/Erc20TokenV2.js +1 -0
- package/esm/generated/models/Erc20Transfer.d.ts +6 -2
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -1
- package/esm/generated/models/Erc20TransferDetailsV2.d.ts +12 -0
- package/esm/generated/models/Erc721Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +1 -1
- package/esm/generated/models/Erc721Transfer.d.ts +6 -2
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -1
- package/esm/generated/models/EvmBlock.d.ts +14 -2
- package/esm/generated/models/EvmGenesisAllocDto.d.ts +16 -0
- package/esm/generated/models/EvmGenesisAllowListConfigDto.d.ts +20 -0
- package/esm/generated/models/EvmGenesisConfigDto.d.ts +96 -0
- package/esm/generated/models/EvmGenesisDto.d.ts +75 -0
- package/esm/generated/models/EvmGenesisFeeConfigDto.d.ts +36 -0
- package/esm/generated/models/EvmGenesisWarpConfigDto.d.ts +16 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/Forbidden.d.ts +16 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +14 -2
- package/esm/generated/models/Geolocation.d.ts +24 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -2
- package/esm/generated/models/GetEvmBlockResponse.d.ts +14 -2
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +1 -1
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +1 -1
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +3 -1
- package/esm/generated/models/GetTransactionResponse.d.ts +7 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +6 -1
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/{ContractSubmissionErc20.js → IcmRewardDetails.js} +1 -1
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/ImageAsset.d.ts +1 -1
- package/esm/generated/models/InternalServerError.d.ts +16 -0
- package/esm/generated/models/InternalTransaction.d.ts +6 -2
- package/esm/generated/models/InternalTransactionDetails.d.ts +1 -1
- package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -1
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/LastActivityTimestamp.d.ts +29 -0
- package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
- package/esm/generated/models/ListAutoRenewedCyclesResponse.d.ts +19 -0
- package/esm/generated/models/ListBlockchainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListChainsResponse.d.ts +1 -1
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +6 -1
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListL1ValidatorsResponse.d.ts +18 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainStakingTransactionsResponse.d.ts +13 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +1 -1
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +1 -1
- package/esm/generated/models/ListSubnetsResponse.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +3 -2
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListTransactionDetailsResponseV2.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListUtxosResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +5 -3
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +1 -1
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +1 -1
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/LogsFormat.d.ts +60 -0
- package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
- package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
- package/esm/generated/models/Method.d.ts +1 -1
- package/esm/generated/models/Metric.d.ts +14 -0
- package/esm/generated/models/Money.d.ts +1 -1
- package/esm/generated/models/NativeTokenBalance.d.ts +1 -1
- package/esm/generated/models/NativeTransaction.d.ts +14 -2
- package/esm/generated/models/Network.d.ts +2 -1
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkToken.d.ts +1 -1
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NextPageToken.d.ts +1 -1
- package/esm/generated/models/NotFound.d.ts +16 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +7 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -1
- package/esm/generated/models/PChainStakingTransaction.d.ts +131 -0
- package/esm/generated/models/PChainTransaction.d.ts +56 -12
- package/esm/generated/models/PChainTransactionType.d.ts +8 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +32 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +7 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +5 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
- package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
- package/esm/generated/models/PricingProviders.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkAddressesBodyDto.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +3 -3
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/{PrimaryNetwork.js → PrimaryNetworkType.js} +1 -1
- package/esm/generated/models/ProposerDetails.d.ts +1 -1
- package/esm/generated/models/RemovedValidatorDetails.d.ts +11 -0
- package/esm/generated/models/RequestType.d.ts +9 -0
- package/esm/generated/models/RequestType.js +1 -0
- package/esm/generated/models/ResourceLink.d.ts +1 -1
- package/esm/generated/models/Rewards.d.ts +1 -1
- package/esm/generated/models/RichAddress.d.ts +1 -1
- package/esm/generated/models/RpcMetrics.d.ts +14 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
- package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +1 -1
- package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +28 -0
- package/esm/generated/models/StakingDistribution.d.ts +10 -1
- package/esm/generated/models/StakingType.d.ts +9 -0
- package/esm/generated/models/StakingType.js +1 -0
- package/esm/generated/models/Subnet.d.ts +16 -3
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +1 -1
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +1 -1
- package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +1 -1
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +1 -1
- package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
- package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
- package/esm/generated/models/TooManyRequests.d.ts +16 -0
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionDetails.d.ts +2 -2
- package/esm/generated/models/TransactionDetailsV2.d.ts +30 -0
- package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
- package/esm/generated/models/TransactionDirectionType.js +1 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +1 -1
- package/esm/generated/models/TransactionVertexDetail.d.ts +1 -1
- package/esm/generated/models/Unauthorized.d.ts +16 -0
- package/esm/generated/models/UnknownContract.d.ts +1 -1
- package/esm/generated/models/UpdateWebhookRequest.d.ts +4 -1
- package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
- package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
- package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
- package/esm/generated/models/UtilityAddresses.d.ts +1 -1
- package/esm/generated/models/Utxo.d.ts +5 -1
- package/esm/generated/models/UtxoCredential.d.ts +1 -1
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/UtxosSortByOption.d.ts +6 -0
- package/esm/generated/models/UtxosSortByOption.js +1 -0
- package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
- package/esm/generated/models/ValidatorActivityEventType.js +1 -0
- package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
- package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
- package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
- package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
- package/esm/generated/models/ValidatorActivityRequest.js +1 -0
- package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
- package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +1 -1
- package/esm/generated/models/ValidatorsDetails.d.ts +7 -1
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +1 -1
- package/esm/generated/models/XChainBalances.d.ts +1 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +1 -1
- package/esm/generated/models/XChainVertex.d.ts +1 -1
- package/esm/generated/services/AvaxSupplyService.d.ts +17 -0
- package/esm/generated/services/AvaxSupplyService.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +14 -14
- package/esm/generated/services/EvmBalancesService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +25 -4
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +88 -10
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmContractsService.d.ts +2 -21
- package/esm/generated/services/EvmContractsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +99 -26
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +11 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NfTsService.d.ts +6 -6
- package/esm/generated/services/NfTsService.js +1 -1
- package/esm/generated/services/OperationsService.d.ts +2 -2
- package/esm/generated/services/OperationsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +112 -22
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +15 -11
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +96 -3
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +41 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +44 -10
- package/esm/generated/services/TeleporterService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +32 -28
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +106 -18
- package/esm/index.js +1 -1
- package/package.json +16 -7
- package/LICENSE.md +0 -9
- package/dist/index.js +0 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +0 -10
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +0 -31
- package/esm/generated/models/ContractSubmissionErc1155.js +0 -1
- package/esm/generated/models/ContractSubmissionErc20.d.ts +0 -31
- package/esm/generated/models/ContractSubmissionErc721.d.ts +0 -29
- package/esm/generated/models/ContractSubmissionErc721.js +0 -1
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +0 -25
- package/esm/generated/models/ContractSubmissionUnknown.js +0 -1
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/EventType.d.ts +0 -5
- package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
- package/esm/generated/models/GlacierApiFeature.js +0 -1
- package/esm/generated/models/NetworkType.d.ts +0 -6
- package/esm/generated/models/NetworkType.js +0 -1
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/models/UpdateContractResponse.d.ts +0 -10
- package/esm/generated/services/DefaultService.d.ts +0 -14
- package/esm/generated/services/DefaultService.js +0 -1
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
|
@@ -7,13 +7,25 @@ type NativeTransaction = {
|
|
|
7
7
|
*/
|
|
8
8
|
blockNumber: string;
|
|
9
9
|
/**
|
|
10
|
-
* The block
|
|
10
|
+
* The block creation (proposal) timestamp in seconds
|
|
11
11
|
*/
|
|
12
12
|
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block creation (proposal) timestamp in milliseconds. Available only after Granite upgrade.
|
|
15
|
+
*/
|
|
16
|
+
blockTimestampMilliseconds?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Minimum block delay in milliseconds. Available only after Granite upgrade.
|
|
19
|
+
*/
|
|
20
|
+
blockMinDelayExcess?: number;
|
|
13
21
|
/**
|
|
14
22
|
* The block hash identifier.
|
|
15
23
|
*/
|
|
16
24
|
blockHash: string;
|
|
25
|
+
/**
|
|
26
|
+
* The EVM chain ID on which the transaction occured.
|
|
27
|
+
*/
|
|
28
|
+
chainId: string;
|
|
17
29
|
/**
|
|
18
30
|
* The index at which the transaction occured in the block (0-indexed).
|
|
19
31
|
*/
|
|
@@ -52,4 +64,4 @@ type NativeTransaction = {
|
|
|
52
64
|
value: string;
|
|
53
65
|
};
|
|
54
66
|
|
|
55
|
-
export { NativeTransaction };
|
|
67
|
+
export type { NativeTransaction };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t=(t=>(t.MAINNET="mainnet",t.FUJI="fuji",t.TESTNET="testnet",t))(t||{});export{t as Network};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type NetworkTokenInfo = {
|
|
2
|
+
/**
|
|
3
|
+
* Token name
|
|
4
|
+
*/
|
|
5
|
+
tokenName?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Token symbol
|
|
8
|
+
*/
|
|
9
|
+
tokenSymbol?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Token decimals
|
|
12
|
+
*/
|
|
13
|
+
tokenDecimals?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Value including decimals
|
|
16
|
+
*/
|
|
17
|
+
valueWithDecimals?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type { NetworkTokenInfo };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type NotFound = {
|
|
2
|
+
/**
|
|
3
|
+
* The error message describing the reason for the exception
|
|
4
|
+
*/
|
|
5
|
+
message: (string | Array<string>);
|
|
6
|
+
/**
|
|
7
|
+
* The HTTP status code of the response
|
|
8
|
+
*/
|
|
9
|
+
statusCode: number;
|
|
10
|
+
/**
|
|
11
|
+
* The type of error
|
|
12
|
+
*/
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type { NotFound };
|
|
@@ -7,9 +7,9 @@ type OperationStatusResponse = {
|
|
|
7
7
|
operationType: OperationType;
|
|
8
8
|
operationStatus: OperationStatus;
|
|
9
9
|
message?: string;
|
|
10
|
-
metadata
|
|
10
|
+
metadata?: TransactionExportMetadata;
|
|
11
11
|
createdAtTimestamp: number;
|
|
12
12
|
updatedAtTimestamp: number;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export { OperationStatusResponse };
|
|
15
|
+
export type { OperationStatusResponse };
|
|
@@ -26,6 +26,12 @@ type PChainBalance = {
|
|
|
26
26
|
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
27
27
|
*/
|
|
28
28
|
pendingStaked: Array<AggregatedAssetAmount>;
|
|
29
|
+
/**
|
|
30
|
+
* Total AVAX (in nAVAX) restaked into auto-renewed validators via compounding. These rewards are bonded into validator weight and have no UTXO until the validator exits, so they are reported here as a separate amount (always AVAX). Add to unlockedStaked/lockedStaked for an auto-renewed validator's full current staked value.
|
|
31
|
+
*
|
|
32
|
+
* Current-balance queries only. The field is OMITTED for historical queries, i.e. when blockTimestamp is supplied with a value greater than 0, because compounding history is not reconstructable from current-state data. Absence therefore means "not available for this timestamp" — it does not mean nothing was compounded. A current-balance query for an address with no auto-renewed position returns "0". Note blockTimestamp=0 is treated as "no timestamp supplied" and is answered as a current-balance query.
|
|
33
|
+
*/
|
|
34
|
+
restakedRewards?: string;
|
|
29
35
|
/**
|
|
30
36
|
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
31
37
|
*/
|
|
@@ -36,4 +42,4 @@ type PChainBalance = {
|
|
|
36
42
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
37
43
|
};
|
|
38
44
|
|
|
39
|
-
export { PChainBalance };
|
|
45
|
+
export type { PChainBalance };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
|
+
import { AutoRenewDetails } from './AutoRenewDetails.js';
|
|
3
|
+
import { BalanceOwner } from './BalanceOwner.js';
|
|
4
|
+
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
5
|
+
import { BlsCredentials } from './BlsCredentials.js';
|
|
6
|
+
import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
|
|
7
|
+
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
8
|
+
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
9
|
+
import { PChainUtxo } from './PChainUtxo.js';
|
|
10
|
+
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
11
|
+
|
|
12
|
+
type PChainStakingTransaction = {
|
|
13
|
+
/**
|
|
14
|
+
* A P-Chain transaction hash.
|
|
15
|
+
*/
|
|
16
|
+
txHash: string;
|
|
17
|
+
txType: PChainTransactionType;
|
|
18
|
+
/**
|
|
19
|
+
* The block creation (proposal) timestamp in seconds
|
|
20
|
+
*/
|
|
21
|
+
blockTimestamp: number;
|
|
22
|
+
/**
|
|
23
|
+
* The height of the block in which the transaction was included
|
|
24
|
+
*/
|
|
25
|
+
blockNumber: string;
|
|
26
|
+
blockHash: string;
|
|
27
|
+
/**
|
|
28
|
+
* The consumed UTXOs of the transaction
|
|
29
|
+
*/
|
|
30
|
+
consumedUtxos: Array<PChainUtxo>;
|
|
31
|
+
/**
|
|
32
|
+
* The newly created UTXOs of the transaction
|
|
33
|
+
*/
|
|
34
|
+
emittedUtxos: Array<PChainUtxo>;
|
|
35
|
+
/**
|
|
36
|
+
* Source chain for an atomic transaction.
|
|
37
|
+
*/
|
|
38
|
+
sourceChain?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Destination chain for an atomic transaction.
|
|
41
|
+
*/
|
|
42
|
+
destinationChain?: string;
|
|
43
|
+
/**
|
|
44
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
45
|
+
*/
|
|
46
|
+
value: Array<AssetAmount>;
|
|
47
|
+
/**
|
|
48
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
49
|
+
*/
|
|
50
|
+
amountBurned: Array<AssetAmount>;
|
|
51
|
+
/**
|
|
52
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
53
|
+
*/
|
|
54
|
+
amountStaked: Array<AssetAmount>;
|
|
55
|
+
/**
|
|
56
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
57
|
+
*/
|
|
58
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
59
|
+
/**
|
|
60
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal; use blockTimestamp for when the position was first created.
|
|
61
|
+
*/
|
|
62
|
+
startTimestamp?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal.
|
|
65
|
+
*/
|
|
66
|
+
endTimestamp?: number;
|
|
67
|
+
/**
|
|
68
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
69
|
+
*/
|
|
70
|
+
delegationFeePercent?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
73
|
+
*/
|
|
74
|
+
nodeId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
77
|
+
*/
|
|
78
|
+
subnetId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
81
|
+
*/
|
|
82
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
83
|
+
/**
|
|
84
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
85
|
+
*/
|
|
86
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
87
|
+
/**
|
|
88
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx (the cycle the validator is currently serving), and each RewardAutoRenewedValidatorTx (the estimate for the next cycle it starts).
|
|
89
|
+
*/
|
|
90
|
+
estimatedReward?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Reward transaction hash for the completed validations or delegations
|
|
93
|
+
*/
|
|
94
|
+
rewardTxHash?: string;
|
|
95
|
+
rewardAddresses?: Array<string>;
|
|
96
|
+
memo?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Staking transaction corresponding to the RewardValidatorTx, or the originating AddAutoRenewedValidatorTx for a RewardAutoRenewedValidatorTx
|
|
99
|
+
*/
|
|
100
|
+
stakingTxHash?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
103
|
+
*/
|
|
104
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
105
|
+
/**
|
|
106
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
107
|
+
*/
|
|
108
|
+
blsCredentials?: BlsCredentials;
|
|
109
|
+
/**
|
|
110
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
111
|
+
*/
|
|
112
|
+
blockchainInfo?: BlockchainInfo;
|
|
113
|
+
/**
|
|
114
|
+
* Length of an auto-renewed validation cycle, in seconds. Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx. A value of 0 on SetAutoRenewedValidatorConfigTx indicates validation will attempt a graceful exit at the end of the current cycle.
|
|
115
|
+
*/
|
|
116
|
+
period?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Fraction of each cycle’s rewards that is restaked (compounded into validator weight) rather than withdrawn, expressed in millionths (0–1000000). Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx.
|
|
119
|
+
*/
|
|
120
|
+
autoCompoundRewardShares?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Owner (addresses + signature threshold) authorized to reconfigure or exit the auto-renewed validator via SetAutoRenewedValidatorConfigTx. Present for AddAutoRenewedValidatorTx.
|
|
123
|
+
*/
|
|
124
|
+
validatorAuthority?: BalanceOwner;
|
|
125
|
+
/**
|
|
126
|
+
* Present only for an active auto-renewed validator (AddAutoRenewedValidatorTx). The validator's current live auto-renew state and latest/next-cycle config, different from the initial `period`/`autoCompoundRewardShares`.
|
|
127
|
+
*/
|
|
128
|
+
autoRenew?: AutoRenewDetails;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export type { PChainStakingTransaction };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { AssetAmount } from './AssetAmount.js';
|
|
2
|
+
import { BalanceOwner } from './BalanceOwner.js';
|
|
3
|
+
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
2
4
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
5
|
+
import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
|
|
6
|
+
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
3
7
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
4
8
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
5
9
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
@@ -11,12 +15,21 @@ type PChainTransaction = {
|
|
|
11
15
|
txHash: string;
|
|
12
16
|
txType: PChainTransactionType;
|
|
13
17
|
/**
|
|
14
|
-
* The block
|
|
18
|
+
* The block creation (proposal) timestamp in seconds
|
|
15
19
|
*/
|
|
16
20
|
blockTimestamp: number;
|
|
21
|
+
/**
|
|
22
|
+
* The height of the block in which the transaction was included
|
|
23
|
+
*/
|
|
17
24
|
blockNumber: string;
|
|
18
25
|
blockHash: string;
|
|
26
|
+
/**
|
|
27
|
+
* The consumed UTXOs of the transaction
|
|
28
|
+
*/
|
|
19
29
|
consumedUtxos: Array<PChainUtxo>;
|
|
30
|
+
/**
|
|
31
|
+
* The newly created UTXOs of the transaction
|
|
32
|
+
*/
|
|
20
33
|
emittedUtxos: Array<PChainUtxo>;
|
|
21
34
|
/**
|
|
22
35
|
* Source chain for an atomic transaction.
|
|
@@ -27,31 +40,35 @@ type PChainTransaction = {
|
|
|
27
40
|
*/
|
|
28
41
|
destinationChain?: string;
|
|
29
42
|
/**
|
|
30
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
43
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
31
44
|
*/
|
|
32
45
|
value: Array<AssetAmount>;
|
|
33
46
|
/**
|
|
34
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
47
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
35
48
|
*/
|
|
36
49
|
amountBurned: Array<AssetAmount>;
|
|
37
50
|
/**
|
|
38
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
51
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
39
52
|
*/
|
|
40
53
|
amountStaked: Array<AssetAmount>;
|
|
41
54
|
/**
|
|
42
|
-
*
|
|
55
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
56
|
+
*/
|
|
57
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
58
|
+
/**
|
|
59
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal; use blockTimestamp for when the position was first created.
|
|
43
60
|
*/
|
|
44
61
|
startTimestamp?: number;
|
|
45
62
|
/**
|
|
46
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
63
|
+
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx. For AddAutoRenewedValidatorTx this reflects the cycle the validator is currently serving, so it advances on each renewal.
|
|
47
64
|
*/
|
|
48
65
|
endTimestamp?: number;
|
|
49
66
|
/**
|
|
50
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
67
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
51
68
|
*/
|
|
52
69
|
delegationFeePercent?: string;
|
|
53
70
|
/**
|
|
54
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
71
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx
|
|
55
72
|
*/
|
|
56
73
|
nodeId?: string;
|
|
57
74
|
/**
|
|
@@ -59,14 +76,25 @@ type PChainTransaction = {
|
|
|
59
76
|
*/
|
|
60
77
|
subnetId?: string;
|
|
61
78
|
/**
|
|
62
|
-
* Present for
|
|
79
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
80
|
+
*/
|
|
81
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
82
|
+
/**
|
|
83
|
+
* Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
84
|
+
*/
|
|
85
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
86
|
+
/**
|
|
87
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, AddAutoRenewedValidatorTx (the cycle the validator is currently serving), and each RewardAutoRenewedValidatorTx (the estimate for the next cycle it starts).
|
|
63
88
|
*/
|
|
64
89
|
estimatedReward?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Reward transaction hash for the completed validations or delegations
|
|
92
|
+
*/
|
|
65
93
|
rewardTxHash?: string;
|
|
66
94
|
rewardAddresses?: Array<string>;
|
|
67
95
|
memo?: string;
|
|
68
96
|
/**
|
|
69
|
-
*
|
|
97
|
+
* Staking transaction corresponding to the RewardValidatorTx, or the originating AddAutoRenewedValidatorTx for a RewardAutoRenewedValidatorTx
|
|
70
98
|
*/
|
|
71
99
|
stakingTxHash?: string;
|
|
72
100
|
/**
|
|
@@ -74,9 +102,25 @@ type PChainTransaction = {
|
|
|
74
102
|
*/
|
|
75
103
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
76
104
|
/**
|
|
77
|
-
* Present for AddPermissionlessValidatorTx
|
|
105
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx, AddAutoRenewedValidatorTx
|
|
78
106
|
*/
|
|
79
107
|
blsCredentials?: BlsCredentials;
|
|
108
|
+
/**
|
|
109
|
+
* Details of the blockchain that was created in the CreateChainTx
|
|
110
|
+
*/
|
|
111
|
+
blockchainInfo?: BlockchainInfo;
|
|
112
|
+
/**
|
|
113
|
+
* Length of an auto-renewed validation cycle, in seconds. Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx. A value of 0 on SetAutoRenewedValidatorConfigTx indicates validation will attempt a graceful exit at the end of the current cycle.
|
|
114
|
+
*/
|
|
115
|
+
period?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Fraction of each cycle’s rewards that is restaked (compounded into validator weight) rather than withdrawn, expressed in millionths (0–1000000). Present for AddAutoRenewedValidatorTx and SetAutoRenewedValidatorConfigTx.
|
|
118
|
+
*/
|
|
119
|
+
autoCompoundRewardShares?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Owner (addresses + signature threshold) authorized to reconfigure or exit the auto-renewed validator via SetAutoRenewedValidatorConfigTx. Present for AddAutoRenewedValidatorTx.
|
|
122
|
+
*/
|
|
123
|
+
validatorAuthority?: BalanceOwner;
|
|
80
124
|
};
|
|
81
125
|
|
|
82
|
-
export { PChainTransaction };
|
|
126
|
+
export type { PChainTransaction };
|
|
@@ -14,6 +14,14 @@ declare enum PChainTransactionType {
|
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
15
|
BASE_TX = "BaseTx",
|
|
16
16
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
|
|
18
|
+
REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
|
|
19
|
+
SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
|
|
20
|
+
DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
|
|
21
|
+
INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
|
|
22
|
+
ADD_AUTO_RENEWED_VALIDATOR_TX = "AddAutoRenewedValidatorTx",
|
|
23
|
+
SET_AUTO_RENEWED_VALIDATOR_CONFIG_TX = "SetAutoRenewedValidatorConfigTx",
|
|
24
|
+
REWARD_AUTO_RENEWED_VALIDATOR_TX = "RewardAutoRenewedValidatorTx",
|
|
17
25
|
UNKNOWN = "UNKNOWN"
|
|
18
26
|
}
|
|
19
27
|
|
|
@@ -1 +1 @@
|
|
|
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))(T||{});export{T as PChainTransactionType};
|
|
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.CONVERT_SUBNET_TO_L1TX="ConvertSubnetToL1Tx",T.REGISTER_L1VALIDATOR_TX="RegisterL1ValidatorTx",T.SET_L1VALIDATOR_WEIGHT_TX="SetL1ValidatorWeightTx",T.DISABLE_L1VALIDATOR_TX="DisableL1ValidatorTx",T.INCREASE_L1VALIDATOR_BALANCE_TX="IncreaseL1ValidatorBalanceTx",T.ADD_AUTO_RENEWED_VALIDATOR_TX="AddAutoRenewedValidatorTx",T.SET_AUTO_RENEWED_VALIDATOR_CONFIG_TX="SetAutoRenewedValidatorConfigTx",T.REWARD_AUTO_RENEWED_VALIDATOR_TX="RewardAutoRenewedValidatorTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
|
|
@@ -24,6 +24,10 @@ type PChainUtxo = {
|
|
|
24
24
|
* UTXO ID for this output.
|
|
25
25
|
*/
|
|
26
26
|
utxoId: string;
|
|
27
|
+
/**
|
|
28
|
+
* The bytes of the UTXO
|
|
29
|
+
*/
|
|
30
|
+
utxoBytes?: string;
|
|
27
31
|
/**
|
|
28
32
|
* @deprecated
|
|
29
33
|
*/
|
|
@@ -34,18 +38,45 @@ type PChainUtxo = {
|
|
|
34
38
|
assetId: string;
|
|
35
39
|
blockNumber: string;
|
|
36
40
|
blockTimestamp: number;
|
|
41
|
+
/**
|
|
42
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
43
|
+
*/
|
|
37
44
|
consumingBlockNumber?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
47
|
+
*/
|
|
38
48
|
consumingBlockTimestamp?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
51
|
+
*/
|
|
39
52
|
platformLocktime?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The index of the UTXO in the transaction
|
|
55
|
+
*/
|
|
40
56
|
outputIndex: number;
|
|
41
57
|
rewardType?: RewardType;
|
|
58
|
+
/**
|
|
59
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
60
|
+
*/
|
|
42
61
|
stakeableLocktime?: number;
|
|
43
62
|
staked?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The minimum number of signatures required to spend this UTXO
|
|
65
|
+
*/
|
|
44
66
|
threshold?: number;
|
|
67
|
+
/**
|
|
68
|
+
* The hash of the transaction that created this UTXO
|
|
69
|
+
*/
|
|
45
70
|
txHash: string;
|
|
71
|
+
/**
|
|
72
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked. For an auto-renewed (ACP-236) position this is the end of the CURRENT validation cycle, not an unlock date: the principal stays bonded and is returned only when the validator stops, so the value rolls forward each time the position renews. Use autoRenew.state from the validator endpoints to tell a renewing position from an exiting one.
|
|
73
|
+
*/
|
|
46
74
|
utxoEndTimestamp?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Timestamp in seconds at which the staked UTXO was locked. For an auto-renewed (ACP-236) position this is the start of the CURRENT validation cycle, not the original bonding time, so it advances each time the position renews.
|
|
77
|
+
*/
|
|
47
78
|
utxoStartTimestamp?: number;
|
|
48
79
|
utxoType: UtxoType;
|
|
49
80
|
};
|
|
50
81
|
|
|
51
|
-
export { PChainUtxo };
|
|
82
|
+
export type { PChainUtxo };
|
|
@@ -6,7 +6,13 @@ type PendingDelegatorDetails = {
|
|
|
6
6
|
delegationFee: string;
|
|
7
7
|
startTimestamp: number;
|
|
8
8
|
endTimestamp: number;
|
|
9
|
+
/**
|
|
10
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
11
|
+
*/
|
|
9
12
|
estimatedGrossReward: string;
|
|
13
|
+
/**
|
|
14
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
15
|
+
*/
|
|
10
16
|
estimatedNetReward: string;
|
|
11
17
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
12
18
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IcmReceipt } from './IcmReceipt.js';
|
|
2
|
+
import { IcmRewardDetails } from './IcmRewardDetails.js';
|
|
3
|
+
import { IcmSourceTransaction } from './IcmSourceTransaction.js';
|
|
4
|
+
|
|
5
|
+
type PendingIcmMessage = {
|
|
6
|
+
messageId: string;
|
|
7
|
+
icmContractAddress: string;
|
|
8
|
+
sourceBlockchainId: string;
|
|
9
|
+
destinationBlockchainId: string;
|
|
10
|
+
sourceEvmChainId: string;
|
|
11
|
+
destinationEvmChainId: string;
|
|
12
|
+
messageNonce: string;
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
data?: string;
|
|
16
|
+
messageExecuted: boolean;
|
|
17
|
+
receipts: Array<IcmReceipt>;
|
|
18
|
+
receiptDelivered: boolean;
|
|
19
|
+
rewardDetails: IcmRewardDetails;
|
|
20
|
+
sourceTransaction: IcmSourceTransaction;
|
|
21
|
+
status: PendingIcmMessage.status;
|
|
22
|
+
};
|
|
23
|
+
declare namespace PendingIcmMessage {
|
|
24
|
+
enum status {
|
|
25
|
+
PENDING = "pending"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { PendingIcmMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,s;((s=t||(t={})).status||(s.status={})).PENDING="pending";export{t as PendingIcmMessage};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
|
+
import { StakingType } from './StakingType.js';
|
|
3
4
|
|
|
4
5
|
type PendingReward = {
|
|
5
6
|
/**
|
|
@@ -7,16 +8,20 @@ type PendingReward = {
|
|
|
7
8
|
*/
|
|
8
9
|
addresses: Array<string>;
|
|
9
10
|
txHash: string;
|
|
11
|
+
/**
|
|
12
|
+
* Amount staked by the validator this reward comes from. For autoRenewed validators this is the position's compounded weight, so it is the same on every cycle rather than the weight held during that particular cycle — per-cycle weight is not recorded on chain.
|
|
13
|
+
*/
|
|
10
14
|
amountStaked: string;
|
|
11
15
|
nodeId: string;
|
|
12
16
|
startTimestamp: number;
|
|
13
17
|
endTimestamp: number;
|
|
14
18
|
rewardType: RewardType;
|
|
19
|
+
stakingType: StakingType;
|
|
15
20
|
progress: number;
|
|
16
21
|
/**
|
|
17
|
-
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
22
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID. For `autoRenewed` validators this amount is **net** of compounding: it is only the portion of the cycle's reward that will be paid out to the reward address, already reduced by the auto-compound share. Do **not** apply `autoRenew.autoCompoundSharePercent` to it again — that double-discounts the payout. The gross figure for the same cycle is `potentialRewards.validationRewardAmount` on the validator endpoints.
|
|
18
23
|
*/
|
|
19
24
|
estimatedReward: AssetAmount;
|
|
20
25
|
};
|
|
21
26
|
|
|
22
|
-
export { PendingReward };
|
|
27
|
+
export type { PendingReward };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
2
|
+
import { StakingType } from './StakingType.js';
|
|
2
3
|
|
|
3
4
|
type PendingValidatorDetails = {
|
|
4
5
|
txHash: string;
|
|
5
6
|
nodeId: string;
|
|
6
7
|
subnetId: string;
|
|
7
8
|
amountStaked: string;
|
|
9
|
+
/**
|
|
10
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
11
|
+
*/
|
|
8
12
|
delegationFee?: string;
|
|
9
13
|
startTimestamp: number;
|
|
10
14
|
endTimestamp: number;
|
|
@@ -13,6 +17,7 @@ type PendingValidatorDetails = {
|
|
|
13
17
|
*/
|
|
14
18
|
blsCredentials?: BlsCredentials;
|
|
15
19
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
20
|
+
stakingType: StakingType;
|
|
16
21
|
};
|
|
17
22
|
declare namespace PendingValidatorDetails {
|
|
18
23
|
enum validationStatus {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.ADDRESSES="addresses",e))(e||{});export{e as PlatformAddressActivityKeyType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=(r=>(r.PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity",r))(r||{});export{r as PrimaryNetworkAddressActivityEventType};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PlatformAddressActivityKeyType } from './PlatformAddressActivityKeyType.js';
|
|
2
|
+
import { PrimaryNetworkAddressActivitySubEvents } from './PrimaryNetworkAddressActivitySubEvents.js';
|
|
3
|
+
import { PrimaryNetworkBalanceThresholdFilter } from './PrimaryNetworkBalanceThresholdFilter.js';
|
|
4
|
+
|
|
5
|
+
type PrimaryNetworkAddressActivityMetadata = {
|
|
6
|
+
/**
|
|
7
|
+
* Array of hexadecimal strings of the event signatures.
|
|
8
|
+
*/
|
|
9
|
+
eventSignatures?: Array<string>;
|
|
10
|
+
keyType: PlatformAddressActivityKeyType;
|
|
11
|
+
/**
|
|
12
|
+
* Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
|
|
13
|
+
*/
|
|
14
|
+
keys: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Sub-events to monitor
|
|
17
|
+
*/
|
|
18
|
+
subEvents: PrimaryNetworkAddressActivitySubEvents;
|
|
19
|
+
/**
|
|
20
|
+
* Balance threshold filter
|
|
21
|
+
*/
|
|
22
|
+
balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type { PrimaryNetworkAddressActivityMetadata };
|