@avalabs/glacier-sdk 2.8.0-canary.cfb38f5.0 → 2.8.0-canary.d0bce16.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/dist/index.d.ts CHANGED
@@ -2625,7 +2625,7 @@ declare class PrimaryNetworkService {
2625
2625
  * @returns ListValidatorDetailsResponse
2626
2626
  * @throws ApiError
2627
2627
  */
2628
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2628
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2629
2629
  /**
2630
2630
  * Either mainnet or a testnet.
2631
2631
  */
@@ -2639,41 +2639,41 @@ declare class PrimaryNetworkService {
2639
2639
  */
2640
2640
  pageToken?: string;
2641
2641
  /**
2642
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2642
+ * A comma separated list of node ids to filter by.
2643
2643
  */
2644
- minTimeRemaining?: any;
2644
+ nodeIds?: string;
2645
2645
  /**
2646
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2646
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2647
2647
  */
2648
- maxTimeRemaining?: any;
2648
+ sortOrder?: SortOrder;
2649
2649
  /**
2650
- * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2650
+ * Validation status of the node.
2651
2651
  */
2652
- minDelegationCapacity?: number;
2652
+ validationStatus?: ValidationStatusType;
2653
2653
  /**
2654
- * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2654
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2655
2655
  */
2656
- maxDelegationCapacity?: number;
2656
+ minDelegationCapacity?: any;
2657
2657
  /**
2658
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2658
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2659
2659
  */
2660
- minFeePercentage?: any;
2660
+ maxDelegationCapacity?: any;
2661
2661
  /**
2662
- * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2662
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2663
  */
2664
- maxFeePercentage?: any;
2664
+ minTimeRemaining?: any;
2665
2665
  /**
2666
- * A comma separated list of node ids to filter by.
2666
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2667
  */
2668
- nodeIds?: string;
2668
+ maxTimeRemaining?: any;
2669
2669
  /**
2670
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2670
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2671
2671
  */
2672
- sortOrder?: SortOrder;
2672
+ minFeePercentage?: any;
2673
2673
  /**
2674
- * Validation status of the node.
2674
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2675
2675
  */
2676
- validationStatus?: ValidationStatusType;
2676
+ maxFeePercentage?: any;
2677
2677
  /**
2678
2678
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2679
  */
@@ -2815,13 +2815,57 @@ type ListCChainAtomicBalancesResponse = {
2815
2815
  chainInfo: PrimaryNetworkChainInfo;
2816
2816
  };
2817
2817
 
2818
- type PChainAsset = {
2818
+ type Asset = {
2819
+ /**
2820
+ * Unique ID for an asset.
2821
+ */
2819
2822
  assetId: string;
2823
+ /**
2824
+ * Name of this asset.
2825
+ */
2826
+ name: string;
2827
+ /**
2828
+ * Symbol for this asset (max 4 characters).
2829
+ */
2830
+ symbol: string;
2831
+ /**
2832
+ * Denomination of this asset to represent fungibility.
2833
+ */
2834
+ denomination: number;
2835
+ /**
2836
+ * Type of asset like SECP256K1 or NFT.
2837
+ */
2838
+ type: string;
2839
+ /**
2840
+ * Amount of the asset.
2841
+ */
2820
2842
  amount: string;
2821
2843
  };
2822
2844
 
2823
2845
  type PChainSharedAsset = {
2846
+ /**
2847
+ * Unique ID for an asset.
2848
+ */
2824
2849
  assetId: string;
2850
+ /**
2851
+ * Name of this asset.
2852
+ */
2853
+ name: string;
2854
+ /**
2855
+ * Symbol for this asset (max 4 characters).
2856
+ */
2857
+ symbol: string;
2858
+ /**
2859
+ * Denomination of this asset to represent fungibility.
2860
+ */
2861
+ denomination: number;
2862
+ /**
2863
+ * Type of asset like SECP256K1 or NFT.
2864
+ */
2865
+ type: string;
2866
+ /**
2867
+ * Amount of the asset.
2868
+ */
2825
2869
  amount: string;
2826
2870
  sharedWithChainId: string;
2827
2871
  status: string;
@@ -2831,27 +2875,27 @@ type PChainBalance = {
2831
2875
  /**
2832
2876
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
2833
2877
  */
2834
- unlockedUnstaked: Array<PChainAsset>;
2878
+ unlockedUnstaked: Array<Asset>;
2835
2879
  /**
2836
2880
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
2837
2881
  */
2838
- unlockedStaked: Array<PChainAsset>;
2882
+ unlockedStaked: Array<Asset>;
2839
2883
  /**
2840
2884
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
2841
2885
  */
2842
- lockedPlatform: Array<PChainAsset>;
2886
+ lockedPlatform: Array<Asset>;
2843
2887
  /**
2844
2888
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
2845
2889
  */
2846
- lockedStakeable: Array<PChainAsset>;
2890
+ lockedStakeable: Array<Asset>;
2847
2891
  /**
2848
2892
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
2849
2893
  */
2850
- lockedStaked: Array<PChainAsset>;
2894
+ lockedStaked: Array<Asset>;
2851
2895
  /**
2852
2896
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
2853
2897
  */
2854
- pendingStaked: Array<PChainAsset>;
2898
+ pendingStaked: Array<Asset>;
2855
2899
  /**
2856
2900
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
2857
2901
  */
@@ -3115,7 +3159,7 @@ type HistoricalReward = {
3115
3159
  /**
3116
3160
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3117
3161
  */
3118
- reward: PChainAsset;
3162
+ reward: Asset;
3119
3163
  rewardTxHash: string;
3120
3164
  };
3121
3165
 
@@ -3142,7 +3186,7 @@ type PendingReward = {
3142
3186
  /**
3143
3187
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3144
3188
  */
3145
- estimatedReward: PChainAsset;
3189
+ estimatedReward: Asset;
3146
3190
  };
3147
3191
 
3148
3192
  type ListPendingRewardsResponse = {
@@ -3222,40 +3266,13 @@ declare class PrimaryNetworkRewardsService {
3222
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3223
3267
  }
3224
3268
 
3225
- type Asset = {
3226
- /**
3227
- * Unique ID for an asset.
3228
- */
3229
- assetId: string;
3230
- /**
3231
- * Name of this asset.
3232
- */
3233
- name: string;
3234
- /**
3235
- * Symbol for this asset (max 4 characters).
3236
- */
3237
- symbol: string;
3238
- /**
3239
- * Denomination of this asset to represent fungibility.
3240
- */
3241
- denomination: number;
3242
- /**
3243
- * Type of asset like SECP256K1 or NFT.
3244
- */
3245
- type: string;
3246
- /**
3247
- * Amount of the asset.
3248
- */
3249
- amount: string;
3250
- };
3251
-
3252
3269
  type UtxoCredential = {
3253
3270
  /**
3254
- * Signature provided to consume the output
3271
+ * Signature provided to consume the output.
3255
3272
  */
3256
3273
  signature?: string;
3257
3274
  /**
3258
- * Public key associated with the signature
3275
+ * Public key associated with the signature.
3259
3276
  */
3260
3277
  publicKey?: string;
3261
3278
  };
@@ -3277,66 +3294,66 @@ type EVMInput = {
3277
3294
 
3278
3295
  type Utxo = {
3279
3296
  /**
3280
- * UTXO ID for this output.
3297
+ * Addresses that are eligible to sign the consumption of this output.
3281
3298
  */
3282
- utxoId: string;
3299
+ addresses: Array<string>;
3283
3300
  asset: Asset;
3284
3301
  /**
3285
- * Type of output.
3302
+ * Blockchain ID on which this output is consumed on.
3286
3303
  */
3287
- utxoType: string;
3304
+ consumedOnChainId: string;
3288
3305
  /**
3289
- * Blockchain ID on which this output is created on.
3306
+ * Transaction ID that consumed this output.
3290
3307
  */
3291
- createdOnChainId: string;
3308
+ consumingTxHash?: string;
3292
3309
  /**
3293
- * Blockchain ID on which this output is consumed on.
3310
+ * Blockchain ID on which this output is created on.
3294
3311
  */
3295
- consumedOnChainId: string;
3312
+ createdOnChainId: string;
3296
3313
  /**
3297
- * Transaction ID that created this output.
3314
+ * UTXO ID for this output.
3298
3315
  */
3299
- creationTxHash: string;
3316
+ utxoId: string;
3300
3317
  /**
3301
- * Transaction ID that consumed this output.
3318
+ * Unix timestamp in seconds at which this output was consumed.
3302
3319
  */
3303
- consumingTxHash?: string;
3320
+ consumingTxTimestamp?: number;
3304
3321
  /**
3305
- * Timestamp in seconds this output is consumed.
3322
+ * Transaction ID that created this output.
3306
3323
  */
3307
- consumingTxTimestamp?: number;
3324
+ creationTxHash: string;
3308
3325
  /**
3309
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3326
+ * Credentials that signed the transaction to consume this utxo
3310
3327
  */
3311
- outputIndex: string;
3328
+ credentials?: Array<UtxoCredential>;
3312
3329
  /**
3313
- * Timestamp in seconds this outptut is created on.
3330
+ * Index representing the minting set for the NFT mint output.
3314
3331
  */
3315
- timestamp: number;
3332
+ groupId?: number;
3316
3333
  /**
3317
3334
  * Locktime in seconds after which this output can be consumed.
3318
3335
  */
3319
3336
  locktime: number;
3320
3337
  /**
3321
- * Minimum number of signatures required to consume this output.
3338
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3322
3339
  */
3323
- threshold: number;
3340
+ outputIndex: string;
3324
3341
  /**
3325
- * Addresses that are eligible to sign the consumption of this output.
3342
+ * Hex encoded data for NFT assets.
3326
3343
  */
3327
- addresses: Array<string>;
3344
+ payload?: string;
3328
3345
  /**
3329
- * Hex encoded data for NFT assets
3346
+ * Minimum number of signatures required to consume this output.
3330
3347
  */
3331
- payload?: string;
3348
+ threshold: number;
3332
3349
  /**
3333
- * Index representing the minting set for the NFT mint output
3350
+ * Unix timestamp in seconds at which this outptut was created.
3334
3351
  */
3335
- groupId?: number;
3352
+ timestamp: number;
3336
3353
  /**
3337
- * Credentials that signed the transaction to consume this utxo
3354
+ * Type of output.
3338
3355
  */
3339
- credentials?: Array<UtxoCredential>;
3356
+ utxoType: string;
3340
3357
  };
3341
3358
 
3342
3359
  type CChainExportTransaction = {
@@ -3467,17 +3484,18 @@ type ListCChainAtomicTransactionsResponse = {
3467
3484
 
3468
3485
  declare enum PChainTransactionType {
3469
3486
  ADD_VALIDATOR_TX = "AddValidatorTx",
3470
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3471
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
3487
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3474
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3488
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3476
3489
  CREATE_CHAIN_TX = "CreateChainTx",
3477
3490
  CREATE_SUBNET_TX = "CreateSubnetTx",
3478
3491
  IMPORT_TX = "ImportTx",
3479
3492
  EXPORT_TX = "ExportTx",
3480
3493
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3494
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3495
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3496
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3497
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3498
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3481
3499
  UNKNOWN = "UNKNOWN"
3482
3500
  }
3483
3501
 
@@ -3488,29 +3506,48 @@ declare enum UtxoType {
3488
3506
 
3489
3507
  type PChainUtxo = {
3490
3508
  /**
3491
- * An array of P-Chain wallet addresses.
3509
+ * Addresses that are eligible to sign the consumption of this output.
3492
3510
  */
3493
3511
  addresses: Array<string>;
3512
+ asset: Asset;
3513
+ /**
3514
+ * Blockchain ID on which this output is consumed on.
3515
+ */
3516
+ consumedOnChainId: string;
3517
+ /**
3518
+ * Transaction ID that consumed this output.
3519
+ */
3520
+ consumingTxHash?: string;
3521
+ /**
3522
+ * Blockchain ID on which this output is created on.
3523
+ */
3524
+ createdOnChainId: string;
3525
+ /**
3526
+ * UTXO ID for this output.
3527
+ */
3494
3528
  utxoId: string;
3495
- txHash: string;
3496
- outputIndex: number;
3529
+ /**
3530
+ * @deprecated
3531
+ */
3532
+ amount: string;
3533
+ /**
3534
+ * @deprecated
3535
+ */
3536
+ assetId: string;
3497
3537
  blockNumber: string;
3498
3538
  blockTimestamp: number;
3499
- consumingTxHash?: string;
3500
- consumingBlockTimestamp?: number;
3501
3539
  consumingBlockNumber?: string;
3502
- assetId: string;
3503
- utxoType: UtxoType;
3504
- amount: string;
3505
- stakeableLocktime?: number;
3540
+ consumingBlockTimestamp?: number;
3506
3541
  platformLocktime?: number;
3507
- threshold?: number;
3508
- createdOnChainId: string;
3509
- consumedOnChainId: string;
3542
+ outputIndex: number;
3543
+ rewardType?: RewardType;
3544
+ stakeableLocktime?: number;
3510
3545
  staked?: boolean;
3511
- utxoStartTimestamp?: number;
3546
+ threshold?: number;
3547
+ txHash: string;
3512
3548
  utxoEndTimestamp?: number;
3513
- rewardType?: RewardType;
3549
+ utxoStartTimestamp?: number;
3550
+ utxoType: UtxoType;
3514
3551
  };
3515
3552
 
3516
3553
  type PChainTransaction = {
@@ -3538,15 +3575,15 @@ type PChainTransaction = {
3538
3575
  /**
3539
3576
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3540
3577
  */
3541
- value: Array<PChainAsset>;
3578
+ value: Array<Asset>;
3542
3579
  /**
3543
3580
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3544
3581
  */
3545
- amountBurned: Array<PChainAsset>;
3582
+ amountBurned: Array<Asset>;
3546
3583
  /**
3547
3584
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3548
3585
  */
3549
- amountStaked: Array<PChainAsset>;
3586
+ amountStaked: Array<Asset>;
3550
3587
  /**
3551
3588
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3552
3589
  */
@@ -3749,17 +3786,18 @@ declare enum PChainId {
3749
3786
 
3750
3787
  declare enum PrimaryNetworkTxType {
3751
3788
  ADD_VALIDATOR_TX = "AddValidatorTx",
3752
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3753
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3755
3789
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3756
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3757
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3790
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3758
3791
  CREATE_CHAIN_TX = "CreateChainTx",
3759
3792
  CREATE_SUBNET_TX = "CreateSubnetTx",
3760
3793
  IMPORT_TX = "ImportTx",
3761
3794
  EXPORT_TX = "ExportTx",
3762
3795
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3796
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3797
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3798
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3799
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3800
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3763
3801
  UNKNOWN = "UNKNOWN",
3764
3802
  BASE_TX = "BaseTx",
3765
3803
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4126,4 +4164,4 @@ declare class ApiError extends Error {
4126
4164
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4127
4165
  }
4128
4166
 
4129
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
4167
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
package/dist/index.js CHANGED
@@ -1047,15 +1047,15 @@ class PrimaryNetworkService {
1047
1047
  network,
1048
1048
  pageSize = 10,
1049
1049
  pageToken,
1050
- minTimeRemaining,
1051
- maxTimeRemaining,
1050
+ nodeIds,
1051
+ sortOrder,
1052
+ validationStatus,
1052
1053
  minDelegationCapacity,
1053
1054
  maxDelegationCapacity,
1055
+ minTimeRemaining,
1056
+ maxTimeRemaining,
1054
1057
  minFeePercentage,
1055
1058
  maxFeePercentage,
1056
- nodeIds,
1057
- sortOrder,
1058
- validationStatus,
1059
1059
  subnetId
1060
1060
  }) {
1061
1061
  return this.httpRequest.request({
@@ -1067,15 +1067,15 @@ class PrimaryNetworkService {
1067
1067
  query: {
1068
1068
  "pageSize": pageSize,
1069
1069
  "pageToken": pageToken,
1070
- "minTimeRemaining": minTimeRemaining,
1071
- "maxTimeRemaining": maxTimeRemaining,
1070
+ "nodeIds": nodeIds,
1071
+ "sortOrder": sortOrder,
1072
+ "validationStatus": validationStatus,
1072
1073
  "minDelegationCapacity": minDelegationCapacity,
1073
1074
  "maxDelegationCapacity": maxDelegationCapacity,
1075
+ "minTimeRemaining": minTimeRemaining,
1076
+ "maxTimeRemaining": maxTimeRemaining,
1074
1077
  "minFeePercentage": minFeePercentage,
1075
1078
  "maxFeePercentage": maxFeePercentage,
1076
- "nodeIds": nodeIds,
1077
- "sortOrder": sortOrder,
1078
- "validationStatus": validationStatus,
1079
1079
  "subnetId": subnetId
1080
1080
  }
1081
1081
  });
@@ -1802,17 +1802,18 @@ var PChainId = /* @__PURE__ */ ((PChainId2) => {
1802
1802
 
1803
1803
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1804
1804
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1805
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1806
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1807
- PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1808
1805
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1809
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1810
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1806
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1811
1807
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1812
1808
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1813
1809
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
1814
1810
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
1815
1811
  PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
1812
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1813
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1814
+ PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1815
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1816
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1816
1817
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1817
1818
  return PChainTransactionType2;
1818
1819
  })(PChainTransactionType || {});
@@ -1846,17 +1847,18 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
1846
1847
 
1847
1848
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1848
1849
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1849
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1850
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1851
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1852
1850
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1853
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1854
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1851
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1855
1852
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1856
1853
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1857
1854
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
1858
1855
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
1859
1856
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
1857
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1858
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1859
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1860
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1861
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1860
1862
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1861
1863
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
1862
1864
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type HistoricalReward = {
@@ -17,7 +17,7 @@ type HistoricalReward = {
17
17
  /**
18
18
  * An object containing P-chain Asset ID and the amount of that Asset ID.
19
19
  */
20
- reward: PChainAsset;
20
+ reward: Asset;
21
21
  rewardTxHash: string;
22
22
  };
23
23
 
@@ -1,31 +1,31 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { PChainSharedAsset } from './PChainSharedAsset.js';
3
3
 
4
4
  type PChainBalance = {
5
5
  /**
6
6
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
7
7
  */
8
- unlockedUnstaked: Array<PChainAsset>;
8
+ unlockedUnstaked: Array<Asset>;
9
9
  /**
10
10
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
11
11
  */
12
- unlockedStaked: Array<PChainAsset>;
12
+ unlockedStaked: Array<Asset>;
13
13
  /**
14
14
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
15
15
  */
16
- lockedPlatform: Array<PChainAsset>;
16
+ lockedPlatform: Array<Asset>;
17
17
  /**
18
18
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
19
19
  */
20
- lockedStakeable: Array<PChainAsset>;
20
+ lockedStakeable: Array<Asset>;
21
21
  /**
22
22
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
23
23
  */
24
- lockedStaked: Array<PChainAsset>;
24
+ lockedStaked: Array<Asset>;
25
25
  /**
26
26
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
27
27
  */
28
- pendingStaked: Array<PChainAsset>;
28
+ pendingStaked: Array<Asset>;
29
29
  /**
30
30
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
31
31
  */
@@ -1,5 +1,27 @@
1
1
  type PChainSharedAsset = {
2
+ /**
3
+ * Unique ID for an asset.
4
+ */
2
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
+ */
3
25
  amount: string;
4
26
  sharedWithChainId: string;
5
27
  status: string;
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { PChainTransactionType } from './PChainTransactionType.js';
3
3
  import { PChainUtxo } from './PChainUtxo.js';
4
4
 
@@ -27,15 +27,15 @@ type PChainTransaction = {
27
27
  /**
28
28
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
29
29
  */
30
- value: Array<PChainAsset>;
30
+ value: Array<Asset>;
31
31
  /**
32
32
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
33
33
  */
34
- amountBurned: Array<PChainAsset>;
34
+ amountBurned: Array<Asset>;
35
35
  /**
36
36
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
37
  */
38
- amountStaked: Array<PChainAsset>;
38
+ amountStaked: Array<Asset>;
39
39
  /**
40
40
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
41
41
  */
@@ -1,16 +1,17 @@
1
1
  declare enum PChainTransactionType {
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
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
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",
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",
14
15
  UNKNOWN = "UNKNOWN"
15
16
  }
16
17
 
@@ -1,16 +1,17 @@
1
1
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
2
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
- PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
6
3
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
7
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
8
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
9
5
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
10
6
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
11
7
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
12
8
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
13
9
  PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
10
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
14
15
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
15
16
  return PChainTransactionType2;
16
17
  })(PChainTransactionType || {});
@@ -1,31 +1,51 @@
1
+ import { Asset } from './Asset.js';
1
2
  import { RewardType } from './RewardType.js';
2
3
  import { UtxoType } from './UtxoType.js';
3
4
 
4
5
  type PChainUtxo = {
5
6
  /**
6
- * An array of P-Chain wallet addresses.
7
+ * Addresses that are eligible to sign the consumption of this output.
7
8
  */
8
9
  addresses: Array<string>;
10
+ asset: Asset;
11
+ /**
12
+ * Blockchain ID on which this output is consumed on.
13
+ */
14
+ consumedOnChainId: string;
15
+ /**
16
+ * Transaction ID that consumed this output.
17
+ */
18
+ consumingTxHash?: string;
19
+ /**
20
+ * Blockchain ID on which this output is created on.
21
+ */
22
+ createdOnChainId: string;
23
+ /**
24
+ * UTXO ID for this output.
25
+ */
9
26
  utxoId: string;
10
- txHash: string;
11
- outputIndex: number;
27
+ /**
28
+ * @deprecated
29
+ */
30
+ amount: string;
31
+ /**
32
+ * @deprecated
33
+ */
34
+ assetId: string;
12
35
  blockNumber: string;
13
36
  blockTimestamp: number;
14
- consumingTxHash?: string;
15
- consumingBlockTimestamp?: number;
16
37
  consumingBlockNumber?: string;
17
- assetId: string;
18
- utxoType: UtxoType;
19
- amount: string;
20
- stakeableLocktime?: number;
38
+ consumingBlockTimestamp?: number;
21
39
  platformLocktime?: number;
22
- threshold?: number;
23
- createdOnChainId: string;
24
- consumedOnChainId: string;
40
+ outputIndex: number;
41
+ rewardType?: RewardType;
42
+ stakeableLocktime?: number;
25
43
  staked?: boolean;
26
- utxoStartTimestamp?: number;
44
+ threshold?: number;
45
+ txHash: string;
27
46
  utxoEndTimestamp?: number;
28
- rewardType?: RewardType;
47
+ utxoStartTimestamp?: number;
48
+ utxoType: UtxoType;
29
49
  };
30
50
 
31
51
  export { PChainUtxo };
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type PendingReward = {
@@ -16,7 +16,7 @@ type PendingReward = {
16
16
  /**
17
17
  * An object containing P-chain Asset ID and the amount of that Asset ID.
18
18
  */
19
- estimatedReward: PChainAsset;
19
+ estimatedReward: Asset;
20
20
  };
21
21
 
22
22
  export { PendingReward };
@@ -1,16 +1,17 @@
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
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
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",
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",
14
15
  UNKNOWN = "UNKNOWN",
15
16
  BASE_TX = "BaseTx",
16
17
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -1,16 +1,17 @@
1
1
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
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
3
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
7
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
8
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
9
5
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
10
6
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
11
7
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
12
8
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
13
9
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
10
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
14
15
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
15
16
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
17
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
@@ -3,66 +3,66 @@ import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
5
5
  /**
6
- * UTXO ID for this output.
6
+ * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
- utxoId: string;
8
+ addresses: Array<string>;
9
9
  asset: Asset;
10
10
  /**
11
- * Type of output.
11
+ * Blockchain ID on which this output is consumed on.
12
12
  */
13
- utxoType: string;
13
+ consumedOnChainId: string;
14
14
  /**
15
- * Blockchain ID on which this output is created on.
15
+ * Transaction ID that consumed this output.
16
16
  */
17
- createdOnChainId: string;
17
+ consumingTxHash?: string;
18
18
  /**
19
- * Blockchain ID on which this output is consumed on.
19
+ * Blockchain ID on which this output is created on.
20
20
  */
21
- consumedOnChainId: string;
21
+ createdOnChainId: string;
22
22
  /**
23
- * Transaction ID that created this output.
23
+ * UTXO ID for this output.
24
24
  */
25
- creationTxHash: string;
25
+ utxoId: string;
26
26
  /**
27
- * Transaction ID that consumed this output.
27
+ * Unix timestamp in seconds at which this output was consumed.
28
28
  */
29
- consumingTxHash?: string;
29
+ consumingTxTimestamp?: number;
30
30
  /**
31
- * Timestamp in seconds this output is consumed.
31
+ * Transaction ID that created this output.
32
32
  */
33
- consumingTxTimestamp?: number;
33
+ creationTxHash: string;
34
34
  /**
35
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
35
+ * Credentials that signed the transaction to consume this utxo
36
36
  */
37
- outputIndex: string;
37
+ credentials?: Array<UtxoCredential>;
38
38
  /**
39
- * Timestamp in seconds this outptut is created on.
39
+ * Index representing the minting set for the NFT mint output.
40
40
  */
41
- timestamp: number;
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
- * Minimum number of signatures required to consume this output.
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
48
  */
49
- threshold: number;
49
+ outputIndex: string;
50
50
  /**
51
- * Addresses that are eligible to sign the consumption of this output.
51
+ * Hex encoded data for NFT assets.
52
52
  */
53
- addresses: Array<string>;
53
+ payload?: string;
54
54
  /**
55
- * Hex encoded data for NFT assets
55
+ * Minimum number of signatures required to consume this output.
56
56
  */
57
- payload?: string;
57
+ threshold: number;
58
58
  /**
59
- * Index representing the minting set for the NFT mint output
59
+ * Unix timestamp in seconds at which this outptut was created.
60
60
  */
61
- groupId?: number;
61
+ timestamp: number;
62
62
  /**
63
- * Credentials that signed the transaction to consume this utxo
63
+ * Type of output.
64
64
  */
65
- credentials?: Array<UtxoCredential>;
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
  };
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
118
118
  * @returns ListValidatorDetailsResponse
119
119
  * @throws ApiError
120
120
  */
121
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
121
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
122
122
  /**
123
123
  * Either mainnet or a testnet.
124
124
  */
@@ -132,41 +132,41 @@ declare class PrimaryNetworkService {
132
132
  */
133
133
  pageToken?: string;
134
134
  /**
135
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
135
+ * A comma separated list of node ids to filter by.
136
136
  */
137
- minTimeRemaining?: any;
137
+ nodeIds?: string;
138
138
  /**
139
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
139
+ * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
140
140
  */
141
- maxTimeRemaining?: any;
141
+ sortOrder?: SortOrder;
142
142
  /**
143
- * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
143
+ * Validation status of the node.
144
144
  */
145
- minDelegationCapacity?: number;
145
+ validationStatus?: ValidationStatusType;
146
146
  /**
147
- * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
147
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
148
148
  */
149
- maxDelegationCapacity?: number;
149
+ minDelegationCapacity?: any;
150
150
  /**
151
- * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
151
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
152
152
  */
153
- minFeePercentage?: any;
153
+ maxDelegationCapacity?: any;
154
154
  /**
155
- * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
155
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
156
156
  */
157
- maxFeePercentage?: any;
157
+ minTimeRemaining?: any;
158
158
  /**
159
- * A comma separated list of node ids to filter by.
159
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
160
160
  */
161
- nodeIds?: string;
161
+ maxTimeRemaining?: any;
162
162
  /**
163
- * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
163
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
164
164
  */
165
- sortOrder?: SortOrder;
165
+ minFeePercentage?: any;
166
166
  /**
167
- * Validation status of the node.
167
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
168
168
  */
169
- validationStatus?: ValidationStatusType;
169
+ maxFeePercentage?: any;
170
170
  /**
171
171
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
172
172
  */
@@ -85,15 +85,15 @@ class PrimaryNetworkService {
85
85
  network,
86
86
  pageSize = 10,
87
87
  pageToken,
88
- minTimeRemaining,
89
- maxTimeRemaining,
88
+ nodeIds,
89
+ sortOrder,
90
+ validationStatus,
90
91
  minDelegationCapacity,
91
92
  maxDelegationCapacity,
93
+ minTimeRemaining,
94
+ maxTimeRemaining,
92
95
  minFeePercentage,
93
96
  maxFeePercentage,
94
- nodeIds,
95
- sortOrder,
96
- validationStatus,
97
97
  subnetId
98
98
  }) {
99
99
  return this.httpRequest.request({
@@ -105,15 +105,15 @@ class PrimaryNetworkService {
105
105
  query: {
106
106
  "pageSize": pageSize,
107
107
  "pageToken": pageToken,
108
- "minTimeRemaining": minTimeRemaining,
109
- "maxTimeRemaining": maxTimeRemaining,
108
+ "nodeIds": nodeIds,
109
+ "sortOrder": sortOrder,
110
+ "validationStatus": validationStatus,
110
111
  "minDelegationCapacity": minDelegationCapacity,
111
112
  "maxDelegationCapacity": maxDelegationCapacity,
113
+ "minTimeRemaining": minTimeRemaining,
114
+ "maxTimeRemaining": maxTimeRemaining,
112
115
  "minFeePercentage": minFeePercentage,
113
116
  "maxFeePercentage": maxFeePercentage,
114
- "nodeIds": nodeIds,
115
- "sortOrder": sortOrder,
116
- "validationStatus": validationStatus,
117
117
  "subnetId": subnetId
118
118
  }
119
119
  });
package/esm/index.d.ts CHANGED
@@ -111,7 +111,6 @@ export { OperationStatus } from './generated/models/OperationStatus.js';
111
111
  export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
112
112
  export { OperationStatusResponse } from './generated/models/OperationStatusResponse.js';
113
113
  export { OperationType } from './generated/models/OperationType.js';
114
- export { PChainAsset } from './generated/models/PChainAsset.js';
115
114
  export { PChainBalance } from './generated/models/PChainBalance.js';
116
115
  export { PChainId } from './generated/models/PChainId.js';
117
116
  export { PChainSharedAsset } from './generated/models/PChainSharedAsset.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-canary.cfb38f5.0+cfb38f5",
3
+ "version": "2.8.0-canary.d0bce16.0+d0bce16",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "cfb38f519d225f634500ce852855a8a449748b3c"
32
+ "gitHead": "d0bce167bb843e04219e9cc3832f8f3fedb2be8c"
33
33
  }
@@ -1,6 +0,0 @@
1
- type PChainAsset = {
2
- assetId: string;
3
- amount: string;
4
- };
5
-
6
- export { PChainAsset };