@avalabs/glacier-sdk 2.8.0-canary.cde943d.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
@@ -105,6 +105,10 @@ type RegisterWebhookRequest = {
105
105
  metadata: AddressActivityMetadata;
106
106
  };
107
107
 
108
+ type SharedSecretsResponse = {
109
+ secret: string;
110
+ };
111
+
108
112
  declare enum WebhookStatus {
109
113
  ACTIVE = "active",
110
114
  INACTIVE = "inactive"
@@ -159,6 +163,13 @@ declare class DefaultService {
159
163
  */
160
164
  id: string;
161
165
  }): CancelablePromise<WebhookResponse>;
166
+ /**
167
+ * Generate a shared secret
168
+ * Generates a new shared secret.
169
+ * @returns SharedSecretsResponse
170
+ * @throws ApiError
171
+ */
172
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
162
173
  }
163
174
 
164
175
  declare enum CurrencyCode {
@@ -2614,7 +2625,7 @@ declare class PrimaryNetworkService {
2614
2625
  * @returns ListValidatorDetailsResponse
2615
2626
  * @throws ApiError
2616
2627
  */
2617
- 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, }: {
2618
2629
  /**
2619
2630
  * Either mainnet or a testnet.
2620
2631
  */
@@ -2628,41 +2639,41 @@ declare class PrimaryNetworkService {
2628
2639
  */
2629
2640
  pageToken?: string;
2630
2641
  /**
2631
- * 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.
2632
2643
  */
2633
- minTimeRemaining?: any;
2644
+ nodeIds?: string;
2634
2645
  /**
2635
- * 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.
2636
2647
  */
2637
- maxTimeRemaining?: any;
2648
+ sortOrder?: SortOrder;
2638
2649
  /**
2639
- * 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.
2640
2651
  */
2641
- minDelegationCapacity?: number;
2652
+ validationStatus?: ValidationStatusType;
2642
2653
  /**
2643
- * 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
2644
2655
  */
2645
- maxDelegationCapacity?: number;
2656
+ minDelegationCapacity?: any;
2646
2657
  /**
2647
- * 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.
2648
2659
  */
2649
- minFeePercentage?: any;
2660
+ maxDelegationCapacity?: any;
2650
2661
  /**
2651
- * 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.
2652
2663
  */
2653
- maxFeePercentage?: any;
2664
+ minTimeRemaining?: any;
2654
2665
  /**
2655
- * 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.
2656
2667
  */
2657
- nodeIds?: string;
2668
+ maxTimeRemaining?: any;
2658
2669
  /**
2659
- * 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.
2660
2671
  */
2661
- sortOrder?: SortOrder;
2672
+ minFeePercentage?: any;
2662
2673
  /**
2663
- * 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.
2664
2675
  */
2665
- validationStatus?: ValidationStatusType;
2676
+ maxFeePercentage?: any;
2666
2677
  /**
2667
2678
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2668
2679
  */
@@ -2804,13 +2815,57 @@ type ListCChainAtomicBalancesResponse = {
2804
2815
  chainInfo: PrimaryNetworkChainInfo;
2805
2816
  };
2806
2817
 
2807
- type PChainAsset = {
2818
+ type Asset = {
2819
+ /**
2820
+ * Unique ID for an asset.
2821
+ */
2808
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
+ */
2809
2842
  amount: string;
2810
2843
  };
2811
2844
 
2812
2845
  type PChainSharedAsset = {
2846
+ /**
2847
+ * Unique ID for an asset.
2848
+ */
2813
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
+ */
2814
2869
  amount: string;
2815
2870
  sharedWithChainId: string;
2816
2871
  status: string;
@@ -2820,27 +2875,27 @@ type PChainBalance = {
2820
2875
  /**
2821
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.
2822
2877
  */
2823
- unlockedUnstaked: Array<PChainAsset>;
2878
+ unlockedUnstaked: Array<Asset>;
2824
2879
  /**
2825
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.
2826
2881
  */
2827
- unlockedStaked: Array<PChainAsset>;
2882
+ unlockedStaked: Array<Asset>;
2828
2883
  /**
2829
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.
2830
2885
  */
2831
- lockedPlatform: Array<PChainAsset>;
2886
+ lockedPlatform: Array<Asset>;
2832
2887
  /**
2833
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.
2834
2889
  */
2835
- lockedStakeable: Array<PChainAsset>;
2890
+ lockedStakeable: Array<Asset>;
2836
2891
  /**
2837
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.
2838
2893
  */
2839
- lockedStaked: Array<PChainAsset>;
2894
+ lockedStaked: Array<Asset>;
2840
2895
  /**
2841
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.
2842
2897
  */
2843
- pendingStaked: Array<PChainAsset>;
2898
+ pendingStaked: Array<Asset>;
2844
2899
  /**
2845
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.
2846
2901
  */
@@ -3104,7 +3159,7 @@ type HistoricalReward = {
3104
3159
  /**
3105
3160
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3106
3161
  */
3107
- reward: PChainAsset;
3162
+ reward: Asset;
3108
3163
  rewardTxHash: string;
3109
3164
  };
3110
3165
 
@@ -3131,7 +3186,7 @@ type PendingReward = {
3131
3186
  /**
3132
3187
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3133
3188
  */
3134
- estimatedReward: PChainAsset;
3189
+ estimatedReward: Asset;
3135
3190
  };
3136
3191
 
3137
3192
  type ListPendingRewardsResponse = {
@@ -3211,40 +3266,13 @@ declare class PrimaryNetworkRewardsService {
3211
3266
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3212
3267
  }
3213
3268
 
3214
- type Asset = {
3215
- /**
3216
- * Unique ID for an asset.
3217
- */
3218
- assetId: string;
3219
- /**
3220
- * Name of this asset.
3221
- */
3222
- name: string;
3223
- /**
3224
- * Symbol for this asset (max 4 characters).
3225
- */
3226
- symbol: string;
3227
- /**
3228
- * Denomination of this asset to represent fungibility.
3229
- */
3230
- denomination: number;
3231
- /**
3232
- * Type of asset like SECP256K1 or NFT.
3233
- */
3234
- type: string;
3235
- /**
3236
- * Amount of the asset.
3237
- */
3238
- amount: string;
3239
- };
3240
-
3241
3269
  type UtxoCredential = {
3242
3270
  /**
3243
- * Signature provided to consume the output
3271
+ * Signature provided to consume the output.
3244
3272
  */
3245
3273
  signature?: string;
3246
3274
  /**
3247
- * Public key associated with the signature
3275
+ * Public key associated with the signature.
3248
3276
  */
3249
3277
  publicKey?: string;
3250
3278
  };
@@ -3266,66 +3294,66 @@ type EVMInput = {
3266
3294
 
3267
3295
  type Utxo = {
3268
3296
  /**
3269
- * UTXO ID for this output.
3297
+ * Addresses that are eligible to sign the consumption of this output.
3270
3298
  */
3271
- utxoId: string;
3299
+ addresses: Array<string>;
3272
3300
  asset: Asset;
3273
3301
  /**
3274
- * Type of output.
3302
+ * Blockchain ID on which this output is consumed on.
3275
3303
  */
3276
- utxoType: string;
3304
+ consumedOnChainId: string;
3277
3305
  /**
3278
- * Blockchain ID on which this output is created on.
3306
+ * Transaction ID that consumed this output.
3279
3307
  */
3280
- createdOnChainId: string;
3308
+ consumingTxHash?: string;
3281
3309
  /**
3282
- * Blockchain ID on which this output is consumed on.
3310
+ * Blockchain ID on which this output is created on.
3283
3311
  */
3284
- consumedOnChainId: string;
3312
+ createdOnChainId: string;
3285
3313
  /**
3286
- * Transaction ID that created this output.
3314
+ * UTXO ID for this output.
3287
3315
  */
3288
- creationTxHash: string;
3316
+ utxoId: string;
3289
3317
  /**
3290
- * Transaction ID that consumed this output.
3318
+ * Unix timestamp in seconds at which this output was consumed.
3291
3319
  */
3292
- consumingTxHash?: string;
3320
+ consumingTxTimestamp?: number;
3293
3321
  /**
3294
- * Timestamp in seconds this output is consumed.
3322
+ * Transaction ID that created this output.
3295
3323
  */
3296
- consumingTxTimestamp?: number;
3324
+ creationTxHash: string;
3297
3325
  /**
3298
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3326
+ * Credentials that signed the transaction to consume this utxo
3299
3327
  */
3300
- outputIndex: string;
3328
+ credentials?: Array<UtxoCredential>;
3301
3329
  /**
3302
- * Timestamp in seconds this outptut is created on.
3330
+ * Index representing the minting set for the NFT mint output.
3303
3331
  */
3304
- timestamp: number;
3332
+ groupId?: number;
3305
3333
  /**
3306
3334
  * Locktime in seconds after which this output can be consumed.
3307
3335
  */
3308
3336
  locktime: number;
3309
3337
  /**
3310
- * Minimum number of signatures required to consume this output.
3338
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3311
3339
  */
3312
- threshold: number;
3340
+ outputIndex: string;
3313
3341
  /**
3314
- * Addresses that are eligible to sign the consumption of this output.
3342
+ * Hex encoded data for NFT assets.
3315
3343
  */
3316
- addresses: Array<string>;
3344
+ payload?: string;
3317
3345
  /**
3318
- * Hex encoded data for NFT assets
3346
+ * Minimum number of signatures required to consume this output.
3319
3347
  */
3320
- payload?: string;
3348
+ threshold: number;
3321
3349
  /**
3322
- * Index representing the minting set for the NFT mint output
3350
+ * Unix timestamp in seconds at which this outptut was created.
3323
3351
  */
3324
- groupId?: number;
3352
+ timestamp: number;
3325
3353
  /**
3326
- * Credentials that signed the transaction to consume this utxo
3354
+ * Type of output.
3327
3355
  */
3328
- credentials?: Array<UtxoCredential>;
3356
+ utxoType: string;
3329
3357
  };
3330
3358
 
3331
3359
  type CChainExportTransaction = {
@@ -3456,17 +3484,18 @@ type ListCChainAtomicTransactionsResponse = {
3456
3484
 
3457
3485
  declare enum PChainTransactionType {
3458
3486
  ADD_VALIDATOR_TX = "AddValidatorTx",
3459
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3460
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3462
3487
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3463
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3464
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3488
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3465
3489
  CREATE_CHAIN_TX = "CreateChainTx",
3466
3490
  CREATE_SUBNET_TX = "CreateSubnetTx",
3467
3491
  IMPORT_TX = "ImportTx",
3468
3492
  EXPORT_TX = "ExportTx",
3469
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",
3470
3499
  UNKNOWN = "UNKNOWN"
3471
3500
  }
3472
3501
 
@@ -3477,29 +3506,48 @@ declare enum UtxoType {
3477
3506
 
3478
3507
  type PChainUtxo = {
3479
3508
  /**
3480
- * An array of P-Chain wallet addresses.
3509
+ * Addresses that are eligible to sign the consumption of this output.
3481
3510
  */
3482
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
+ */
3483
3528
  utxoId: string;
3484
- txHash: string;
3485
- outputIndex: number;
3529
+ /**
3530
+ * @deprecated
3531
+ */
3532
+ amount: string;
3533
+ /**
3534
+ * @deprecated
3535
+ */
3536
+ assetId: string;
3486
3537
  blockNumber: string;
3487
3538
  blockTimestamp: number;
3488
- consumingTxHash?: string;
3489
- consumingBlockTimestamp?: number;
3490
3539
  consumingBlockNumber?: string;
3491
- assetId: string;
3492
- utxoType: UtxoType;
3493
- amount: string;
3494
- stakeableLocktime?: number;
3540
+ consumingBlockTimestamp?: number;
3495
3541
  platformLocktime?: number;
3496
- threshold?: number;
3497
- createdOnChainId: string;
3498
- consumedOnChainId: string;
3542
+ outputIndex: number;
3543
+ rewardType?: RewardType;
3544
+ stakeableLocktime?: number;
3499
3545
  staked?: boolean;
3500
- utxoStartTimestamp?: number;
3546
+ threshold?: number;
3547
+ txHash: string;
3501
3548
  utxoEndTimestamp?: number;
3502
- rewardType?: RewardType;
3549
+ utxoStartTimestamp?: number;
3550
+ utxoType: UtxoType;
3503
3551
  };
3504
3552
 
3505
3553
  type PChainTransaction = {
@@ -3527,15 +3575,15 @@ type PChainTransaction = {
3527
3575
  /**
3528
3576
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3529
3577
  */
3530
- value: Array<PChainAsset>;
3578
+ value: Array<Asset>;
3531
3579
  /**
3532
3580
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3533
3581
  */
3534
- amountBurned: Array<PChainAsset>;
3582
+ amountBurned: Array<Asset>;
3535
3583
  /**
3536
3584
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3537
3585
  */
3538
- amountStaked: Array<PChainAsset>;
3586
+ amountStaked: Array<Asset>;
3539
3587
  /**
3540
3588
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3541
3589
  */
@@ -3738,17 +3786,18 @@ declare enum PChainId {
3738
3786
 
3739
3787
  declare enum PrimaryNetworkTxType {
3740
3788
  ADD_VALIDATOR_TX = "AddValidatorTx",
3741
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3742
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3744
3789
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3745
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3746
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3790
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3747
3791
  CREATE_CHAIN_TX = "CreateChainTx",
3748
3792
  CREATE_SUBNET_TX = "CreateSubnetTx",
3749
3793
  IMPORT_TX = "ImportTx",
3750
3794
  EXPORT_TX = "ExportTx",
3751
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",
3752
3801
  UNKNOWN = "UNKNOWN",
3753
3802
  BASE_TX = "BaseTx",
3754
3803
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4115,4 +4164,4 @@ declare class ApiError extends Error {
4115
4164
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4116
4165
  }
4117
4166
 
4118
- 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, 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
@@ -391,6 +391,12 @@ class DefaultService {
391
391
  }
392
392
  });
393
393
  }
394
+ generateSharedSecret() {
395
+ return this.httpRequest.request({
396
+ method: "POST",
397
+ url: "/v1/webhooks:generateSharedSecret"
398
+ });
399
+ }
394
400
  }
395
401
 
396
402
  class EvmBalancesService {
@@ -1041,15 +1047,15 @@ class PrimaryNetworkService {
1041
1047
  network,
1042
1048
  pageSize = 10,
1043
1049
  pageToken,
1044
- minTimeRemaining,
1045
- maxTimeRemaining,
1050
+ nodeIds,
1051
+ sortOrder,
1052
+ validationStatus,
1046
1053
  minDelegationCapacity,
1047
1054
  maxDelegationCapacity,
1055
+ minTimeRemaining,
1056
+ maxTimeRemaining,
1048
1057
  minFeePercentage,
1049
1058
  maxFeePercentage,
1050
- nodeIds,
1051
- sortOrder,
1052
- validationStatus,
1053
1059
  subnetId
1054
1060
  }) {
1055
1061
  return this.httpRequest.request({
@@ -1061,15 +1067,15 @@ class PrimaryNetworkService {
1061
1067
  query: {
1062
1068
  "pageSize": pageSize,
1063
1069
  "pageToken": pageToken,
1064
- "minTimeRemaining": minTimeRemaining,
1065
- "maxTimeRemaining": maxTimeRemaining,
1070
+ "nodeIds": nodeIds,
1071
+ "sortOrder": sortOrder,
1072
+ "validationStatus": validationStatus,
1066
1073
  "minDelegationCapacity": minDelegationCapacity,
1067
1074
  "maxDelegationCapacity": maxDelegationCapacity,
1075
+ "minTimeRemaining": minTimeRemaining,
1076
+ "maxTimeRemaining": maxTimeRemaining,
1068
1077
  "minFeePercentage": minFeePercentage,
1069
1078
  "maxFeePercentage": maxFeePercentage,
1070
- "nodeIds": nodeIds,
1071
- "sortOrder": sortOrder,
1072
- "validationStatus": validationStatus,
1073
1079
  "subnetId": subnetId
1074
1080
  }
1075
1081
  });
@@ -1796,17 +1802,18 @@ var PChainId = /* @__PURE__ */ ((PChainId2) => {
1796
1802
 
1797
1803
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1798
1804
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1799
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1800
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1801
- PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1802
1805
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1803
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1804
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1806
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1805
1807
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1806
1808
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1807
1809
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
1808
1810
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
1809
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";
1810
1817
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1811
1818
  return PChainTransactionType2;
1812
1819
  })(PChainTransactionType || {});
@@ -1840,17 +1847,18 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
1840
1847
 
1841
1848
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1842
1849
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1843
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1844
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1845
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1846
1850
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1847
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1848
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1851
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1849
1852
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1850
1853
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1851
1854
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
1852
1855
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
1853
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";
1854
1862
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1855
1863
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
1856
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";
@@ -0,0 +1,5 @@
1
+ type SharedSecretsResponse = {
2
+ secret: string;
3
+ };
4
+
5
+ export { SharedSecretsResponse };
@@ -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
  };
@@ -1,5 +1,6 @@
1
1
  import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
2
  import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
3
4
  import { WebhookResponse } from '../models/WebhookResponse.js';
4
5
  import { WebhookStatus } from '../models/WebhookStatus.js';
5
6
  import { CancelablePromise } from '../core/CancelablePromise.js';
@@ -54,6 +55,13 @@ declare class DefaultService {
54
55
  */
55
56
  id: string;
56
57
  }): CancelablePromise<WebhookResponse>;
58
+ /**
59
+ * Generate a shared secret
60
+ * Generates a new shared secret.
61
+ * @returns SharedSecretsResponse
62
+ * @throws ApiError
63
+ */
64
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
57
65
  }
58
66
 
59
67
  export { DefaultService };
@@ -44,6 +44,12 @@ class DefaultService {
44
44
  }
45
45
  });
46
46
  }
47
+ generateSharedSecret() {
48
+ return this.httpRequest.request({
49
+ method: "POST",
50
+ url: "/v1/webhooks:generateSharedSecret"
51
+ });
52
+ }
47
53
  }
48
54
 
49
55
  export { DefaultService };
@@ -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';
@@ -135,6 +134,7 @@ export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
135
134
  export { Rewards } from './generated/models/Rewards.js';
136
135
  export { RewardType } from './generated/models/RewardType.js';
137
136
  export { RichAddress } from './generated/models/RichAddress.js';
137
+ export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
138
138
  export { SortOrder } from './generated/models/SortOrder.js';
139
139
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
140
140
  export { Subnet } from './generated/models/Subnet.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-canary.cde943d.0+cde943d",
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": "cde943d508dbce4936252396dc09d398c65635ef"
32
+ "gitHead": "d0bce167bb843e04219e9cc3832f8f3fedb2be8c"
33
33
  }
@@ -1,6 +0,0 @@
1
- type PChainAsset = {
2
- assetId: string;
3
- amount: string;
4
- };
5
-
6
- export { PChainAsset };