@avalabs/glacier-sdk 2.8.0-canary.7233ef7.0 → 2.8.0-canary.736c05a.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
@@ -65,7 +65,10 @@ type AddressActivityMetadata = {
65
65
  * Ethereum address for the address_activity event type
66
66
  */
67
67
  address: string;
68
- topic0?: string;
68
+ /**
69
+ * Array of hexadecimal strings of the event signatures.
70
+ */
71
+ eventSignatures?: Array<string>;
69
72
  };
70
73
 
71
74
  declare enum EventType {
@@ -2625,7 +2628,7 @@ declare class PrimaryNetworkService {
2625
2628
  * @returns ListValidatorDetailsResponse
2626
2629
  * @throws ApiError
2627
2630
  */
2628
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2631
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2629
2632
  /**
2630
2633
  * Either mainnet or a testnet.
2631
2634
  */
@@ -2639,41 +2642,41 @@ declare class PrimaryNetworkService {
2639
2642
  */
2640
2643
  pageToken?: string;
2641
2644
  /**
2642
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2645
+ * A comma separated list of node ids to filter by.
2643
2646
  */
2644
- minTimeRemaining?: any;
2647
+ nodeIds?: string;
2645
2648
  /**
2646
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2649
+ * 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
2650
  */
2648
- maxTimeRemaining?: any;
2651
+ sortOrder?: SortOrder;
2649
2652
  /**
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
2653
+ * Validation status of the node.
2651
2654
  */
2652
- minDelegationCapacity?: number;
2655
+ validationStatus?: ValidationStatusType;
2653
2656
  /**
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.
2657
+ * 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
2658
  */
2656
- maxDelegationCapacity?: number;
2659
+ minDelegationCapacity?: any;
2657
2660
  /**
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.
2661
+ * 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
2662
  */
2660
- minFeePercentage?: any;
2663
+ maxDelegationCapacity?: any;
2661
2664
  /**
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.
2665
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2666
  */
2664
- maxFeePercentage?: any;
2667
+ minTimeRemaining?: any;
2665
2668
  /**
2666
- * A comma separated list of node ids to filter by.
2669
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2670
  */
2668
- nodeIds?: string;
2671
+ maxTimeRemaining?: any;
2669
2672
  /**
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.
2673
+ * 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
2674
  */
2672
- sortOrder?: SortOrder;
2675
+ minFeePercentage?: any;
2673
2676
  /**
2674
- * Validation status of the node.
2677
+ * 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
2678
  */
2676
- validationStatus?: ValidationStatusType;
2679
+ maxFeePercentage?: any;
2677
2680
  /**
2678
2681
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2682
  */
@@ -2815,13 +2818,57 @@ type ListCChainAtomicBalancesResponse = {
2815
2818
  chainInfo: PrimaryNetworkChainInfo;
2816
2819
  };
2817
2820
 
2818
- type PChainAsset = {
2821
+ type Asset = {
2822
+ /**
2823
+ * Unique ID for an asset.
2824
+ */
2819
2825
  assetId: string;
2826
+ /**
2827
+ * Name of this asset.
2828
+ */
2829
+ name: string;
2830
+ /**
2831
+ * Symbol for this asset (max 4 characters).
2832
+ */
2833
+ symbol: string;
2834
+ /**
2835
+ * Denomination of this asset to represent fungibility.
2836
+ */
2837
+ denomination: number;
2838
+ /**
2839
+ * Type of asset like SECP256K1 or NFT.
2840
+ */
2841
+ type: string;
2842
+ /**
2843
+ * Amount of the asset.
2844
+ */
2820
2845
  amount: string;
2821
2846
  };
2822
2847
 
2823
2848
  type PChainSharedAsset = {
2849
+ /**
2850
+ * Unique ID for an asset.
2851
+ */
2824
2852
  assetId: string;
2853
+ /**
2854
+ * Name of this asset.
2855
+ */
2856
+ name: string;
2857
+ /**
2858
+ * Symbol for this asset (max 4 characters).
2859
+ */
2860
+ symbol: string;
2861
+ /**
2862
+ * Denomination of this asset to represent fungibility.
2863
+ */
2864
+ denomination: number;
2865
+ /**
2866
+ * Type of asset like SECP256K1 or NFT.
2867
+ */
2868
+ type: string;
2869
+ /**
2870
+ * Amount of the asset.
2871
+ */
2825
2872
  amount: string;
2826
2873
  sharedWithChainId: string;
2827
2874
  status: string;
@@ -2831,27 +2878,27 @@ type PChainBalance = {
2831
2878
  /**
2832
2879
  * 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
2880
  */
2834
- unlockedUnstaked: Array<PChainAsset>;
2881
+ unlockedUnstaked: Array<Asset>;
2835
2882
  /**
2836
2883
  * 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
2884
  */
2838
- unlockedStaked: Array<PChainAsset>;
2885
+ unlockedStaked: Array<Asset>;
2839
2886
  /**
2840
2887
  * 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
2888
  */
2842
- lockedPlatform: Array<PChainAsset>;
2889
+ lockedPlatform: Array<Asset>;
2843
2890
  /**
2844
2891
  * 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
2892
  */
2846
- lockedStakeable: Array<PChainAsset>;
2893
+ lockedStakeable: Array<Asset>;
2847
2894
  /**
2848
2895
  * 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
2896
  */
2850
- lockedStaked: Array<PChainAsset>;
2897
+ lockedStaked: Array<Asset>;
2851
2898
  /**
2852
2899
  * 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
2900
  */
2854
- pendingStaked: Array<PChainAsset>;
2901
+ pendingStaked: Array<Asset>;
2855
2902
  /**
2856
2903
  * 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
2904
  */
@@ -3115,7 +3162,7 @@ type HistoricalReward = {
3115
3162
  /**
3116
3163
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3117
3164
  */
3118
- reward: PChainAsset;
3165
+ reward: Asset;
3119
3166
  rewardTxHash: string;
3120
3167
  };
3121
3168
 
@@ -3142,7 +3189,7 @@ type PendingReward = {
3142
3189
  /**
3143
3190
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3144
3191
  */
3145
- estimatedReward: PChainAsset;
3192
+ estimatedReward: Asset;
3146
3193
  };
3147
3194
 
3148
3195
  type ListPendingRewardsResponse = {
@@ -3168,7 +3215,7 @@ declare class PrimaryNetworkRewardsService {
3168
3215
  */
3169
3216
  network: Network;
3170
3217
  /**
3171
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3218
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3172
3219
  */
3173
3220
  addresses?: string;
3174
3221
  /**
@@ -3180,7 +3227,7 @@ declare class PrimaryNetworkRewardsService {
3180
3227
  */
3181
3228
  pageToken?: string;
3182
3229
  /**
3183
- * A comma separated list of node ids to filter by.
3230
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3184
3231
  */
3185
3232
  nodeIds?: string;
3186
3233
  /**
@@ -3200,7 +3247,7 @@ declare class PrimaryNetworkRewardsService {
3200
3247
  */
3201
3248
  network: Network;
3202
3249
  /**
3203
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
3250
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
3204
3251
  */
3205
3252
  addresses?: string;
3206
3253
  /**
@@ -3212,7 +3259,7 @@ declare class PrimaryNetworkRewardsService {
3212
3259
  */
3213
3260
  pageToken?: string;
3214
3261
  /**
3215
- * A comma separated list of node ids to filter by.
3262
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3216
3263
  */
3217
3264
  nodeIds?: string;
3218
3265
  /**
@@ -3222,40 +3269,13 @@ declare class PrimaryNetworkRewardsService {
3222
3269
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3223
3270
  }
3224
3271
 
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
3272
  type UtxoCredential = {
3253
3273
  /**
3254
- * Signature provided to consume the output
3274
+ * Signature provided to consume the output.
3255
3275
  */
3256
3276
  signature?: string;
3257
3277
  /**
3258
- * Public key associated with the signature
3278
+ * Public key associated with the signature.
3259
3279
  */
3260
3280
  publicKey?: string;
3261
3281
  };
@@ -3277,66 +3297,66 @@ type EVMInput = {
3277
3297
 
3278
3298
  type Utxo = {
3279
3299
  /**
3280
- * UTXO ID for this output.
3300
+ * Addresses that are eligible to sign the consumption of this output.
3281
3301
  */
3282
- utxoId: string;
3302
+ addresses: Array<string>;
3283
3303
  asset: Asset;
3284
3304
  /**
3285
- * Type of output.
3305
+ * Blockchain ID on which this output is consumed on.
3286
3306
  */
3287
- utxoType: string;
3307
+ consumedOnChainId: string;
3288
3308
  /**
3289
- * Blockchain ID on which this output is created on.
3309
+ * Transaction ID that consumed this output.
3290
3310
  */
3291
- createdOnChainId: string;
3311
+ consumingTxHash?: string;
3292
3312
  /**
3293
- * Blockchain ID on which this output is consumed on.
3313
+ * Blockchain ID on which this output is created on.
3294
3314
  */
3295
- consumedOnChainId: string;
3315
+ createdOnChainId: string;
3296
3316
  /**
3297
- * Transaction ID that created this output.
3317
+ * UTXO ID for this output.
3298
3318
  */
3299
- creationTxHash: string;
3319
+ utxoId: string;
3300
3320
  /**
3301
- * Transaction ID that consumed this output.
3321
+ * Unix timestamp in seconds at which this output was consumed.
3302
3322
  */
3303
- consumingTxHash?: string;
3323
+ consumingTxTimestamp?: number;
3304
3324
  /**
3305
- * Timestamp in seconds this output is consumed.
3325
+ * Transaction ID that created this output.
3306
3326
  */
3307
- consumingTxTimestamp?: number;
3327
+ creationTxHash: string;
3308
3328
  /**
3309
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3329
+ * Credentials that signed the transaction to consume this utxo
3310
3330
  */
3311
- outputIndex: string;
3331
+ credentials?: Array<UtxoCredential>;
3312
3332
  /**
3313
- * Timestamp in seconds this outptut is created on.
3333
+ * Index representing the minting set for the NFT mint output.
3314
3334
  */
3315
- timestamp: number;
3335
+ groupId?: number;
3316
3336
  /**
3317
3337
  * Locktime in seconds after which this output can be consumed.
3318
3338
  */
3319
3339
  locktime: number;
3320
3340
  /**
3321
- * Minimum number of signatures required to consume this output.
3341
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3322
3342
  */
3323
- threshold: number;
3343
+ outputIndex: string;
3324
3344
  /**
3325
- * Addresses that are eligible to sign the consumption of this output.
3345
+ * Hex encoded data for NFT assets.
3326
3346
  */
3327
- addresses: Array<string>;
3347
+ payload?: string;
3328
3348
  /**
3329
- * Hex encoded data for NFT assets
3349
+ * Minimum number of signatures required to consume this output.
3330
3350
  */
3331
- payload?: string;
3351
+ threshold: number;
3332
3352
  /**
3333
- * Index representing the minting set for the NFT mint output
3353
+ * Unix timestamp in seconds at which this outptut was created.
3334
3354
  */
3335
- groupId?: number;
3355
+ timestamp: number;
3336
3356
  /**
3337
- * Credentials that signed the transaction to consume this utxo
3357
+ * Type of output.
3338
3358
  */
3339
- credentials?: Array<UtxoCredential>;
3359
+ utxoType: string;
3340
3360
  };
3341
3361
 
3342
3362
  type CChainExportTransaction = {
@@ -3467,17 +3487,18 @@ type ListCChainAtomicTransactionsResponse = {
3467
3487
 
3468
3488
  declare enum PChainTransactionType {
3469
3489
  ADD_VALIDATOR_TX = "AddValidatorTx",
3470
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3471
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
3490
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3474
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3491
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3476
3492
  CREATE_CHAIN_TX = "CreateChainTx",
3477
3493
  CREATE_SUBNET_TX = "CreateSubnetTx",
3478
3494
  IMPORT_TX = "ImportTx",
3479
3495
  EXPORT_TX = "ExportTx",
3480
3496
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3497
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3498
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3499
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3500
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3501
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3481
3502
  UNKNOWN = "UNKNOWN"
3482
3503
  }
3483
3504
 
@@ -3488,29 +3509,48 @@ declare enum UtxoType {
3488
3509
 
3489
3510
  type PChainUtxo = {
3490
3511
  /**
3491
- * An array of P-Chain wallet addresses.
3512
+ * Addresses that are eligible to sign the consumption of this output.
3492
3513
  */
3493
3514
  addresses: Array<string>;
3515
+ asset: Asset;
3516
+ /**
3517
+ * Blockchain ID on which this output is consumed on.
3518
+ */
3519
+ consumedOnChainId: string;
3520
+ /**
3521
+ * Transaction ID that consumed this output.
3522
+ */
3523
+ consumingTxHash?: string;
3524
+ /**
3525
+ * Blockchain ID on which this output is created on.
3526
+ */
3527
+ createdOnChainId: string;
3528
+ /**
3529
+ * UTXO ID for this output.
3530
+ */
3494
3531
  utxoId: string;
3495
- txHash: string;
3496
- outputIndex: number;
3532
+ /**
3533
+ * @deprecated
3534
+ */
3535
+ amount: string;
3536
+ /**
3537
+ * @deprecated
3538
+ */
3539
+ assetId: string;
3497
3540
  blockNumber: string;
3498
3541
  blockTimestamp: number;
3499
- consumingTxHash?: string;
3500
- consumingBlockTimestamp?: number;
3501
3542
  consumingBlockNumber?: string;
3502
- assetId: string;
3503
- utxoType: UtxoType;
3504
- amount: string;
3505
- stakeableLocktime?: number;
3543
+ consumingBlockTimestamp?: number;
3506
3544
  platformLocktime?: number;
3507
- threshold?: number;
3508
- createdOnChainId: string;
3509
- consumedOnChainId: string;
3545
+ outputIndex: number;
3546
+ rewardType?: RewardType;
3547
+ stakeableLocktime?: number;
3510
3548
  staked?: boolean;
3511
- utxoStartTimestamp?: number;
3549
+ threshold?: number;
3550
+ txHash: string;
3512
3551
  utxoEndTimestamp?: number;
3513
- rewardType?: RewardType;
3552
+ utxoStartTimestamp?: number;
3553
+ utxoType: UtxoType;
3514
3554
  };
3515
3555
 
3516
3556
  type PChainTransaction = {
@@ -3538,15 +3578,15 @@ type PChainTransaction = {
3538
3578
  /**
3539
3579
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3540
3580
  */
3541
- value: Array<PChainAsset>;
3581
+ value: Array<Asset>;
3542
3582
  /**
3543
3583
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3544
3584
  */
3545
- amountBurned: Array<PChainAsset>;
3585
+ amountBurned: Array<Asset>;
3546
3586
  /**
3547
3587
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3548
3588
  */
3549
- amountStaked: Array<PChainAsset>;
3589
+ amountStaked: Array<Asset>;
3550
3590
  /**
3551
3591
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3552
3592
  */
@@ -3749,17 +3789,18 @@ declare enum PChainId {
3749
3789
 
3750
3790
  declare enum PrimaryNetworkTxType {
3751
3791
  ADD_VALIDATOR_TX = "AddValidatorTx",
3752
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3753
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3755
3792
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3756
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3757
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3793
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3758
3794
  CREATE_CHAIN_TX = "CreateChainTx",
3759
3795
  CREATE_SUBNET_TX = "CreateSubnetTx",
3760
3796
  IMPORT_TX = "ImportTx",
3761
3797
  EXPORT_TX = "ExportTx",
3762
3798
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3799
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3800
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3801
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3802
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3803
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3763
3804
  UNKNOWN = "UNKNOWN",
3764
3805
  BASE_TX = "BaseTx",
3765
3806
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4126,4 +4167,4 @@ declare class ApiError extends Error {
4126
4167
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4127
4168
  }
4128
4169
 
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 };
4170
+ 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";
@@ -3,7 +3,10 @@ type AddressActivityMetadata = {
3
3
  * Ethereum address for the address_activity event type
4
4
  */
5
5
  address: string;
6
- topic0?: string;
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
9
+ eventSignatures?: Array<string>;
7
10
  };
8
11
 
9
12
  export { AddressActivityMetadata };
@@ -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
  };
@@ -20,7 +20,7 @@ declare class PrimaryNetworkRewardsService {
20
20
  */
21
21
  network: Network;
22
22
  /**
23
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
23
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
24
24
  */
25
25
  addresses?: string;
26
26
  /**
@@ -32,7 +32,7 @@ declare class PrimaryNetworkRewardsService {
32
32
  */
33
33
  pageToken?: string;
34
34
  /**
35
- * A comma separated list of node ids to filter by.
35
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
36
36
  */
37
37
  nodeIds?: string;
38
38
  /**
@@ -52,7 +52,7 @@ declare class PrimaryNetworkRewardsService {
52
52
  */
53
53
  network: Network;
54
54
  /**
55
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
55
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
56
56
  */
57
57
  addresses?: string;
58
58
  /**
@@ -64,7 +64,7 @@ declare class PrimaryNetworkRewardsService {
64
64
  */
65
65
  pageToken?: string;
66
66
  /**
67
- * A comma separated list of node ids to filter by.
67
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
68
68
  */
69
69
  nodeIds?: string;
70
70
  /**
@@ -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.7233ef7.0+7233ef7",
3
+ "version": "2.8.0-canary.736c05a.0+736c05a",
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": "7233ef7b5897e55fc24a869161a2612b4ce29b99"
32
+ "gitHead": "736c05a857148a04e5029d94993560360ee3950d"
33
33
  }
@@ -1,6 +0,0 @@
1
- type PChainAsset = {
2
- assetId: string;
3
- amount: string;
4
- };
5
-
6
- export { PChainAsset };