@avalabs/glacier-sdk 2.8.0-canary.e5344d2.0 → 2.8.0-canary.e9abb3a.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 {
@@ -105,6 +108,10 @@ type RegisterWebhookRequest = {
105
108
  metadata: AddressActivityMetadata;
106
109
  };
107
110
 
111
+ type SharedSecretsResponse = {
112
+ secret: string;
113
+ };
114
+
108
115
  declare enum WebhookStatus {
109
116
  ACTIVE = "active",
110
117
  INACTIVE = "inactive"
@@ -159,6 +166,13 @@ declare class DefaultService {
159
166
  */
160
167
  id: string;
161
168
  }): CancelablePromise<WebhookResponse>;
169
+ /**
170
+ * Generate a shared secret
171
+ * Generates a new shared secret.
172
+ * @returns SharedSecretsResponse
173
+ * @throws ApiError
174
+ */
175
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
162
176
  }
163
177
 
164
178
  declare enum CurrencyCode {
@@ -2614,7 +2628,7 @@ declare class PrimaryNetworkService {
2614
2628
  * @returns ListValidatorDetailsResponse
2615
2629
  * @throws ApiError
2616
2630
  */
2617
- 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, }: {
2618
2632
  /**
2619
2633
  * Either mainnet or a testnet.
2620
2634
  */
@@ -2628,41 +2642,41 @@ declare class PrimaryNetworkService {
2628
2642
  */
2629
2643
  pageToken?: string;
2630
2644
  /**
2631
- * 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.
2632
2646
  */
2633
- minTimeRemaining?: any;
2647
+ nodeIds?: string;
2634
2648
  /**
2635
- * 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.
2636
2650
  */
2637
- maxTimeRemaining?: any;
2651
+ sortOrder?: SortOrder;
2638
2652
  /**
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
2653
+ * Validation status of the node.
2640
2654
  */
2641
- minDelegationCapacity?: number;
2655
+ validationStatus?: ValidationStatusType;
2642
2656
  /**
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.
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
2644
2658
  */
2645
- maxDelegationCapacity?: number;
2659
+ minDelegationCapacity?: any;
2646
2660
  /**
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.
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.
2648
2662
  */
2649
- minFeePercentage?: any;
2663
+ maxDelegationCapacity?: any;
2650
2664
  /**
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.
2665
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2652
2666
  */
2653
- maxFeePercentage?: any;
2667
+ minTimeRemaining?: any;
2654
2668
  /**
2655
- * 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.
2656
2670
  */
2657
- nodeIds?: string;
2671
+ maxTimeRemaining?: any;
2658
2672
  /**
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.
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.
2660
2674
  */
2661
- sortOrder?: SortOrder;
2675
+ minFeePercentage?: any;
2662
2676
  /**
2663
- * 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.
2664
2678
  */
2665
- validationStatus?: ValidationStatusType;
2679
+ maxFeePercentage?: any;
2666
2680
  /**
2667
2681
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2668
2682
  */
@@ -2804,13 +2818,57 @@ type ListCChainAtomicBalancesResponse = {
2804
2818
  chainInfo: PrimaryNetworkChainInfo;
2805
2819
  };
2806
2820
 
2807
- type PChainAsset = {
2821
+ type Asset = {
2822
+ /**
2823
+ * Unique ID for an asset.
2824
+ */
2808
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
+ */
2809
2845
  amount: string;
2810
2846
  };
2811
2847
 
2812
2848
  type PChainSharedAsset = {
2849
+ /**
2850
+ * Unique ID for an asset.
2851
+ */
2813
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
+ */
2814
2872
  amount: string;
2815
2873
  sharedWithChainId: string;
2816
2874
  status: string;
@@ -2820,27 +2878,27 @@ type PChainBalance = {
2820
2878
  /**
2821
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.
2822
2880
  */
2823
- unlockedUnstaked: Array<PChainAsset>;
2881
+ unlockedUnstaked: Array<Asset>;
2824
2882
  /**
2825
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.
2826
2884
  */
2827
- unlockedStaked: Array<PChainAsset>;
2885
+ unlockedStaked: Array<Asset>;
2828
2886
  /**
2829
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.
2830
2888
  */
2831
- lockedPlatform: Array<PChainAsset>;
2889
+ lockedPlatform: Array<Asset>;
2832
2890
  /**
2833
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.
2834
2892
  */
2835
- lockedStakeable: Array<PChainAsset>;
2893
+ lockedStakeable: Array<Asset>;
2836
2894
  /**
2837
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.
2838
2896
  */
2839
- lockedStaked: Array<PChainAsset>;
2897
+ lockedStaked: Array<Asset>;
2840
2898
  /**
2841
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.
2842
2900
  */
2843
- pendingStaked: Array<PChainAsset>;
2901
+ pendingStaked: Array<Asset>;
2844
2902
  /**
2845
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.
2846
2904
  */
@@ -3104,7 +3162,7 @@ type HistoricalReward = {
3104
3162
  /**
3105
3163
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3106
3164
  */
3107
- reward: PChainAsset;
3165
+ reward: Asset;
3108
3166
  rewardTxHash: string;
3109
3167
  };
3110
3168
 
@@ -3131,7 +3189,7 @@ type PendingReward = {
3131
3189
  /**
3132
3190
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3133
3191
  */
3134
- estimatedReward: PChainAsset;
3192
+ estimatedReward: Asset;
3135
3193
  };
3136
3194
 
3137
3195
  type ListPendingRewardsResponse = {
@@ -3157,7 +3215,7 @@ declare class PrimaryNetworkRewardsService {
3157
3215
  */
3158
3216
  network: Network;
3159
3217
  /**
3160
- * 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.
3161
3219
  */
3162
3220
  addresses?: string;
3163
3221
  /**
@@ -3169,7 +3227,7 @@ declare class PrimaryNetworkRewardsService {
3169
3227
  */
3170
3228
  pageToken?: string;
3171
3229
  /**
3172
- * 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.
3173
3231
  */
3174
3232
  nodeIds?: string;
3175
3233
  /**
@@ -3189,7 +3247,7 @@ declare class PrimaryNetworkRewardsService {
3189
3247
  */
3190
3248
  network: Network;
3191
3249
  /**
3192
- * 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.
3193
3251
  */
3194
3252
  addresses?: string;
3195
3253
  /**
@@ -3201,7 +3259,7 @@ declare class PrimaryNetworkRewardsService {
3201
3259
  */
3202
3260
  pageToken?: string;
3203
3261
  /**
3204
- * 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.
3205
3263
  */
3206
3264
  nodeIds?: string;
3207
3265
  /**
@@ -3211,40 +3269,13 @@ declare class PrimaryNetworkRewardsService {
3211
3269
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3212
3270
  }
3213
3271
 
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
3272
  type UtxoCredential = {
3242
3273
  /**
3243
- * Signature provided to consume the output
3274
+ * Signature provided to consume the output.
3244
3275
  */
3245
3276
  signature?: string;
3246
3277
  /**
3247
- * Public key associated with the signature
3278
+ * Public key associated with the signature.
3248
3279
  */
3249
3280
  publicKey?: string;
3250
3281
  };
@@ -3266,66 +3297,66 @@ type EVMInput = {
3266
3297
 
3267
3298
  type Utxo = {
3268
3299
  /**
3269
- * UTXO ID for this output.
3300
+ * Addresses that are eligible to sign the consumption of this output.
3270
3301
  */
3271
- utxoId: string;
3302
+ addresses: Array<string>;
3272
3303
  asset: Asset;
3273
3304
  /**
3274
- * Type of output.
3305
+ * Blockchain ID on which this output is consumed on.
3275
3306
  */
3276
- utxoType: string;
3307
+ consumedOnChainId: string;
3277
3308
  /**
3278
- * Blockchain ID on which this output is created on.
3309
+ * Transaction ID that consumed this output.
3279
3310
  */
3280
- createdOnChainId: string;
3311
+ consumingTxHash?: string;
3281
3312
  /**
3282
- * Blockchain ID on which this output is consumed on.
3313
+ * Blockchain ID on which this output is created on.
3283
3314
  */
3284
- consumedOnChainId: string;
3315
+ createdOnChainId: string;
3285
3316
  /**
3286
- * Transaction ID that created this output.
3317
+ * UTXO ID for this output.
3287
3318
  */
3288
- creationTxHash: string;
3319
+ utxoId: string;
3289
3320
  /**
3290
- * Transaction ID that consumed this output.
3321
+ * Unix timestamp in seconds at which this output was consumed.
3291
3322
  */
3292
- consumingTxHash?: string;
3323
+ consumingTxTimestamp?: number;
3293
3324
  /**
3294
- * Timestamp in seconds this output is consumed.
3325
+ * Transaction ID that created this output.
3295
3326
  */
3296
- consumingTxTimestamp?: number;
3327
+ creationTxHash: string;
3297
3328
  /**
3298
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3329
+ * Credentials that signed the transaction to consume this utxo
3299
3330
  */
3300
- outputIndex: string;
3331
+ credentials?: Array<UtxoCredential>;
3301
3332
  /**
3302
- * Timestamp in seconds this outptut is created on.
3333
+ * Index representing the minting set for the NFT mint output.
3303
3334
  */
3304
- timestamp: number;
3335
+ groupId?: number;
3305
3336
  /**
3306
3337
  * Locktime in seconds after which this output can be consumed.
3307
3338
  */
3308
3339
  locktime: number;
3309
3340
  /**
3310
- * Minimum number of signatures required to consume this output.
3341
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3311
3342
  */
3312
- threshold: number;
3343
+ outputIndex: string;
3313
3344
  /**
3314
- * Addresses that are eligible to sign the consumption of this output.
3345
+ * Hex encoded data for NFT assets.
3315
3346
  */
3316
- addresses: Array<string>;
3347
+ payload?: string;
3317
3348
  /**
3318
- * Hex encoded data for NFT assets
3349
+ * Minimum number of signatures required to consume this output.
3319
3350
  */
3320
- payload?: string;
3351
+ threshold: number;
3321
3352
  /**
3322
- * Index representing the minting set for the NFT mint output
3353
+ * Unix timestamp in seconds at which this outptut was created.
3323
3354
  */
3324
- groupId?: number;
3355
+ timestamp: number;
3325
3356
  /**
3326
- * Credentials that signed the transaction to consume this utxo
3357
+ * Type of output.
3327
3358
  */
3328
- credentials?: Array<UtxoCredential>;
3359
+ utxoType: string;
3329
3360
  };
3330
3361
 
3331
3362
  type CChainExportTransaction = {
@@ -3456,17 +3487,18 @@ type ListCChainAtomicTransactionsResponse = {
3456
3487
 
3457
3488
  declare enum PChainTransactionType {
3458
3489
  ADD_VALIDATOR_TX = "AddValidatorTx",
3459
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3460
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3462
3490
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3463
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3464
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3491
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3465
3492
  CREATE_CHAIN_TX = "CreateChainTx",
3466
3493
  CREATE_SUBNET_TX = "CreateSubnetTx",
3467
3494
  IMPORT_TX = "ImportTx",
3468
3495
  EXPORT_TX = "ExportTx",
3469
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",
3470
3502
  UNKNOWN = "UNKNOWN"
3471
3503
  }
3472
3504
 
@@ -3477,29 +3509,48 @@ declare enum UtxoType {
3477
3509
 
3478
3510
  type PChainUtxo = {
3479
3511
  /**
3480
- * An array of P-Chain wallet addresses.
3512
+ * Addresses that are eligible to sign the consumption of this output.
3481
3513
  */
3482
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
+ */
3483
3531
  utxoId: string;
3484
- txHash: string;
3485
- outputIndex: number;
3532
+ /**
3533
+ * @deprecated
3534
+ */
3535
+ amount: string;
3536
+ /**
3537
+ * @deprecated
3538
+ */
3539
+ assetId: string;
3486
3540
  blockNumber: string;
3487
3541
  blockTimestamp: number;
3488
- consumingTxHash?: string;
3489
- consumingBlockTimestamp?: number;
3490
3542
  consumingBlockNumber?: string;
3491
- assetId: string;
3492
- utxoType: UtxoType;
3493
- amount: string;
3494
- stakeableLocktime?: number;
3543
+ consumingBlockTimestamp?: number;
3495
3544
  platformLocktime?: number;
3496
- threshold?: number;
3497
- createdOnChainId: string;
3498
- consumedOnChainId: string;
3545
+ outputIndex: number;
3546
+ rewardType?: RewardType;
3547
+ stakeableLocktime?: number;
3499
3548
  staked?: boolean;
3500
- utxoStartTimestamp?: number;
3549
+ threshold?: number;
3550
+ txHash: string;
3501
3551
  utxoEndTimestamp?: number;
3502
- rewardType?: RewardType;
3552
+ utxoStartTimestamp?: number;
3553
+ utxoType: UtxoType;
3503
3554
  };
3504
3555
 
3505
3556
  type PChainTransaction = {
@@ -3527,15 +3578,15 @@ type PChainTransaction = {
3527
3578
  /**
3528
3579
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3529
3580
  */
3530
- value: Array<PChainAsset>;
3581
+ value: Array<Asset>;
3531
3582
  /**
3532
3583
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3533
3584
  */
3534
- amountBurned: Array<PChainAsset>;
3585
+ amountBurned: Array<Asset>;
3535
3586
  /**
3536
3587
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3537
3588
  */
3538
- amountStaked: Array<PChainAsset>;
3589
+ amountStaked: Array<Asset>;
3539
3590
  /**
3540
3591
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3541
3592
  */
@@ -3738,17 +3789,18 @@ declare enum PChainId {
3738
3789
 
3739
3790
  declare enum PrimaryNetworkTxType {
3740
3791
  ADD_VALIDATOR_TX = "AddValidatorTx",
3741
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3742
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3744
3792
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3745
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3746
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3793
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3747
3794
  CREATE_CHAIN_TX = "CreateChainTx",
3748
3795
  CREATE_SUBNET_TX = "CreateSubnetTx",
3749
3796
  IMPORT_TX = "ImportTx",
3750
3797
  EXPORT_TX = "ExportTx",
3751
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",
3752
3804
  UNKNOWN = "UNKNOWN",
3753
3805
  BASE_TX = "BaseTx",
3754
3806
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4115,4 +4167,4 @@ declare class ApiError extends Error {
4115
4167
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4116
4168
  }
4117
4169
 
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 };
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
@@ -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";
@@ -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