@avalabs/glacier-sdk 2.8.0-canary.7233ef7.0 → 2.8.0-canary.72ea4bc.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.
Files changed (44) hide show
  1. package/dist/index.d.ts +390 -124
  2. package/dist/index.js +107 -22
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
  6. package/esm/generated/models/AssetWithPriceInfo.d.ts +34 -0
  7. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  8. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  9. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  10. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  11. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  12. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  13. package/esm/generated/models/NextPageToken.d.ts +8 -0
  14. package/esm/generated/models/PChainBalance.d.ts +7 -7
  15. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  16. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  17. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  18. package/esm/generated/models/PChainTransactionType.js +6 -5
  19. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  20. package/esm/generated/models/PendingReward.d.ts +2 -2
  21. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  22. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  23. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  24. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  25. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  26. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  27. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  28. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  29. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  30. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  31. package/esm/generated/models/Utxo.d.ts +28 -28
  32. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  33. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  34. package/esm/generated/models/ValidationStatusType.js +1 -0
  35. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -5
  36. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -2
  37. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  38. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  39. package/esm/generated/services/TeleporterService.d.ts +65 -0
  40. package/esm/generated/services/TeleporterService.js +43 -0
  41. package/esm/index.d.ts +10 -1
  42. package/esm/index.js +6 -0
  43. package/package.json +2 -2
  44. package/esm/generated/models/PChainAsset.d.ts +0 -6
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 {
@@ -2461,6 +2464,24 @@ declare namespace PendingValidatorDetails {
2461
2464
  }
2462
2465
  }
2463
2466
 
2467
+ type RemovedValidatorDetails = {
2468
+ txHash: string;
2469
+ nodeId: string;
2470
+ subnetId: string;
2471
+ amountStaked: string;
2472
+ delegationFee?: string;
2473
+ startTimestamp: number;
2474
+ endTimestamp: number;
2475
+ removeTxHash: string;
2476
+ removeTimestamp: number;
2477
+ validationStatus: RemovedValidatorDetails.validationStatus;
2478
+ };
2479
+ declare namespace RemovedValidatorDetails {
2480
+ enum validationStatus {
2481
+ REMOVED = "removed"
2482
+ }
2483
+ }
2484
+
2464
2485
  type ListValidatorDetailsResponse = {
2465
2486
  /**
2466
2487
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -2469,7 +2490,7 @@ type ListValidatorDetailsResponse = {
2469
2490
  /**
2470
2491
  * The list of validator Details.
2471
2492
  */
2472
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2493
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2473
2494
  };
2474
2495
 
2475
2496
  declare enum Network {
@@ -2480,7 +2501,8 @@ declare enum Network {
2480
2501
  declare enum ValidationStatusType {
2481
2502
  COMPLETED = "completed",
2482
2503
  ACTIVE = "active",
2483
- PENDING = "pending"
2504
+ PENDING = "pending",
2505
+ REMOVED = "removed"
2484
2506
  }
2485
2507
 
2486
2508
  type XChainAssetDetails = {
@@ -2625,7 +2647,7 @@ declare class PrimaryNetworkService {
2625
2647
  * @returns ListValidatorDetailsResponse
2626
2648
  * @throws ApiError
2627
2649
  */
2628
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2650
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2629
2651
  /**
2630
2652
  * Either mainnet or a testnet.
2631
2653
  */
@@ -2639,41 +2661,41 @@ declare class PrimaryNetworkService {
2639
2661
  */
2640
2662
  pageToken?: string;
2641
2663
  /**
2642
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2664
+ * A comma separated list of node ids to filter by.
2643
2665
  */
2644
- minTimeRemaining?: any;
2666
+ nodeIds?: string;
2645
2667
  /**
2646
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2668
+ * 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
2669
  */
2648
- maxTimeRemaining?: any;
2670
+ sortOrder?: SortOrder;
2649
2671
  /**
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
2672
+ * Validation status of the node.
2651
2673
  */
2652
- minDelegationCapacity?: number;
2674
+ validationStatus?: ValidationStatusType;
2653
2675
  /**
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.
2676
+ * 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
2677
  */
2656
- maxDelegationCapacity?: number;
2678
+ minDelegationCapacity?: any;
2657
2679
  /**
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.
2680
+ * 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
2681
  */
2660
- minFeePercentage?: any;
2682
+ maxDelegationCapacity?: any;
2661
2683
  /**
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.
2684
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2663
2685
  */
2664
- maxFeePercentage?: any;
2686
+ minTimeRemaining?: any;
2665
2687
  /**
2666
- * A comma separated list of node ids to filter by.
2688
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2667
2689
  */
2668
- nodeIds?: string;
2690
+ maxTimeRemaining?: any;
2669
2691
  /**
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.
2692
+ * 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
2693
  */
2672
- sortOrder?: SortOrder;
2694
+ minFeePercentage?: any;
2673
2695
  /**
2674
- * Validation status of the node.
2696
+ * 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
2697
  */
2676
- validationStatus?: ValidationStatusType;
2698
+ maxFeePercentage?: any;
2677
2699
  /**
2678
2700
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2679
2701
  */
@@ -2815,13 +2837,57 @@ type ListCChainAtomicBalancesResponse = {
2815
2837
  chainInfo: PrimaryNetworkChainInfo;
2816
2838
  };
2817
2839
 
2818
- type PChainAsset = {
2840
+ type Asset = {
2841
+ /**
2842
+ * Unique ID for an asset.
2843
+ */
2819
2844
  assetId: string;
2845
+ /**
2846
+ * Name of this asset.
2847
+ */
2848
+ name: string;
2849
+ /**
2850
+ * Symbol for this asset (max 4 characters).
2851
+ */
2852
+ symbol: string;
2853
+ /**
2854
+ * Denomination of this asset to represent fungibility.
2855
+ */
2856
+ denomination: number;
2857
+ /**
2858
+ * Type of asset like SECP256K1 or NFT.
2859
+ */
2860
+ type: string;
2861
+ /**
2862
+ * Amount of the asset.
2863
+ */
2820
2864
  amount: string;
2821
2865
  };
2822
2866
 
2823
2867
  type PChainSharedAsset = {
2868
+ /**
2869
+ * Unique ID for an asset.
2870
+ */
2824
2871
  assetId: string;
2872
+ /**
2873
+ * Name of this asset.
2874
+ */
2875
+ name: string;
2876
+ /**
2877
+ * Symbol for this asset (max 4 characters).
2878
+ */
2879
+ symbol: string;
2880
+ /**
2881
+ * Denomination of this asset to represent fungibility.
2882
+ */
2883
+ denomination: number;
2884
+ /**
2885
+ * Type of asset like SECP256K1 or NFT.
2886
+ */
2887
+ type: string;
2888
+ /**
2889
+ * Amount of the asset.
2890
+ */
2825
2891
  amount: string;
2826
2892
  sharedWithChainId: string;
2827
2893
  status: string;
@@ -2831,27 +2897,27 @@ type PChainBalance = {
2831
2897
  /**
2832
2898
  * 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
2899
  */
2834
- unlockedUnstaked: Array<PChainAsset>;
2900
+ unlockedUnstaked: Array<Asset>;
2835
2901
  /**
2836
2902
  * 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
2903
  */
2838
- unlockedStaked: Array<PChainAsset>;
2904
+ unlockedStaked: Array<Asset>;
2839
2905
  /**
2840
2906
  * 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
2907
  */
2842
- lockedPlatform: Array<PChainAsset>;
2908
+ lockedPlatform: Array<Asset>;
2843
2909
  /**
2844
2910
  * 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
2911
  */
2846
- lockedStakeable: Array<PChainAsset>;
2912
+ lockedStakeable: Array<Asset>;
2847
2913
  /**
2848
2914
  * 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
2915
  */
2850
- lockedStaked: Array<PChainAsset>;
2916
+ lockedStaked: Array<Asset>;
2851
2917
  /**
2852
2918
  * 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
2919
  */
2854
- pendingStaked: Array<PChainAsset>;
2920
+ pendingStaked: Array<Asset>;
2855
2921
  /**
2856
2922
  * 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
2923
  */
@@ -3093,6 +3159,37 @@ declare class PrimaryNetworkBlocksService {
3093
3159
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3094
3160
  }
3095
3161
 
3162
+ type AssetWithPriceInfo = {
3163
+ /**
3164
+ * Unique ID for an asset.
3165
+ */
3166
+ assetId: string;
3167
+ /**
3168
+ * Name of this asset.
3169
+ */
3170
+ name: string;
3171
+ /**
3172
+ * Symbol for this asset (max 4 characters).
3173
+ */
3174
+ symbol: string;
3175
+ /**
3176
+ * Denomination of this asset to represent fungibility.
3177
+ */
3178
+ denomination: number;
3179
+ /**
3180
+ * Type of asset like SECP256K1 or NFT.
3181
+ */
3182
+ type: string;
3183
+ /**
3184
+ * Amount of the asset.
3185
+ */
3186
+ amount: string;
3187
+ /**
3188
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
3189
+ */
3190
+ historicalPrice?: Money;
3191
+ };
3192
+
3096
3193
  declare enum RewardType {
3097
3194
  VALIDATOR = "VALIDATOR",
3098
3195
  DELEGATOR = "DELEGATOR",
@@ -3112,10 +3209,7 @@ type HistoricalReward = {
3112
3209
  rewardType: RewardType;
3113
3210
  utxoId: string;
3114
3211
  outputIndex: number;
3115
- /**
3116
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3117
- */
3118
- reward: PChainAsset;
3212
+ reward: AssetWithPriceInfo;
3119
3213
  rewardTxHash: string;
3120
3214
  };
3121
3215
 
@@ -3142,7 +3236,7 @@ type PendingReward = {
3142
3236
  /**
3143
3237
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3144
3238
  */
3145
- estimatedReward: PChainAsset;
3239
+ estimatedReward: Asset;
3146
3240
  };
3147
3241
 
3148
3242
  type ListPendingRewardsResponse = {
@@ -3168,7 +3262,7 @@ declare class PrimaryNetworkRewardsService {
3168
3262
  */
3169
3263
  network: Network;
3170
3264
  /**
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".
3265
+ * 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
3266
  */
3173
3267
  addresses?: string;
3174
3268
  /**
@@ -3180,7 +3274,7 @@ declare class PrimaryNetworkRewardsService {
3180
3274
  */
3181
3275
  pageToken?: string;
3182
3276
  /**
3183
- * A comma separated list of node ids to filter by.
3277
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3184
3278
  */
3185
3279
  nodeIds?: string;
3186
3280
  /**
@@ -3194,13 +3288,13 @@ declare class PrimaryNetworkRewardsService {
3194
3288
  * @returns ListHistoricalRewardsResponse
3195
3289
  * @throws ApiError
3196
3290
  */
3197
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3291
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, currency, }: {
3198
3292
  /**
3199
3293
  * Either mainnet or a testnet.
3200
3294
  */
3201
3295
  network: Network;
3202
3296
  /**
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".
3297
+ * 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
3298
  */
3205
3299
  addresses?: string;
3206
3300
  /**
@@ -3212,50 +3306,27 @@ declare class PrimaryNetworkRewardsService {
3212
3306
  */
3213
3307
  pageToken?: string;
3214
3308
  /**
3215
- * A comma separated list of node ids to filter by.
3309
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3216
3310
  */
3217
3311
  nodeIds?: string;
3218
3312
  /**
3219
3313
  * 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.
3220
3314
  */
3221
3315
  sortOrder?: SortOrder;
3316
+ /**
3317
+ * The currency that return values should use. Defaults to USD.
3318
+ */
3319
+ currency?: CurrencyCode;
3222
3320
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3223
3321
  }
3224
3322
 
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
3323
  type UtxoCredential = {
3253
3324
  /**
3254
- * Signature provided to consume the output
3325
+ * Signature provided to consume the output.
3255
3326
  */
3256
3327
  signature?: string;
3257
3328
  /**
3258
- * Public key associated with the signature
3329
+ * Public key associated with the signature.
3259
3330
  */
3260
3331
  publicKey?: string;
3261
3332
  };
@@ -3277,66 +3348,66 @@ type EVMInput = {
3277
3348
 
3278
3349
  type Utxo = {
3279
3350
  /**
3280
- * UTXO ID for this output.
3351
+ * Addresses that are eligible to sign the consumption of this output.
3281
3352
  */
3282
- utxoId: string;
3353
+ addresses: Array<string>;
3283
3354
  asset: Asset;
3284
3355
  /**
3285
- * Type of output.
3356
+ * Blockchain ID on which this output is consumed on.
3286
3357
  */
3287
- utxoType: string;
3358
+ consumedOnChainId: string;
3288
3359
  /**
3289
- * Blockchain ID on which this output is created on.
3360
+ * Transaction ID that consumed this output.
3290
3361
  */
3291
- createdOnChainId: string;
3362
+ consumingTxHash?: string;
3292
3363
  /**
3293
- * Blockchain ID on which this output is consumed on.
3364
+ * Blockchain ID on which this output is created on.
3294
3365
  */
3295
- consumedOnChainId: string;
3366
+ createdOnChainId: string;
3296
3367
  /**
3297
- * Transaction ID that created this output.
3368
+ * UTXO ID for this output.
3298
3369
  */
3299
- creationTxHash: string;
3370
+ utxoId: string;
3300
3371
  /**
3301
- * Transaction ID that consumed this output.
3372
+ * Unix timestamp in seconds at which this output was consumed.
3302
3373
  */
3303
- consumingTxHash?: string;
3374
+ consumingTxTimestamp?: number;
3304
3375
  /**
3305
- * Timestamp in seconds this output is consumed.
3376
+ * Transaction ID that created this output.
3306
3377
  */
3307
- consumingTxTimestamp?: number;
3378
+ creationTxHash: string;
3308
3379
  /**
3309
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3380
+ * Credentials that signed the transaction to consume this utxo
3310
3381
  */
3311
- outputIndex: string;
3382
+ credentials?: Array<UtxoCredential>;
3312
3383
  /**
3313
- * Timestamp in seconds this outptut is created on.
3384
+ * Index representing the minting set for the NFT mint output.
3314
3385
  */
3315
- timestamp: number;
3386
+ groupId?: number;
3316
3387
  /**
3317
3388
  * Locktime in seconds after which this output can be consumed.
3318
3389
  */
3319
3390
  locktime: number;
3320
3391
  /**
3321
- * Minimum number of signatures required to consume this output.
3392
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3322
3393
  */
3323
- threshold: number;
3394
+ outputIndex: string;
3324
3395
  /**
3325
- * Addresses that are eligible to sign the consumption of this output.
3396
+ * Hex encoded data for NFT assets.
3326
3397
  */
3327
- addresses: Array<string>;
3398
+ payload?: string;
3328
3399
  /**
3329
- * Hex encoded data for NFT assets
3400
+ * Minimum number of signatures required to consume this output.
3330
3401
  */
3331
- payload?: string;
3402
+ threshold: number;
3332
3403
  /**
3333
- * Index representing the minting set for the NFT mint output
3404
+ * Unix timestamp in seconds at which this outptut was created.
3334
3405
  */
3335
- groupId?: number;
3406
+ timestamp: number;
3336
3407
  /**
3337
- * Credentials that signed the transaction to consume this utxo
3408
+ * Type of output.
3338
3409
  */
3339
- credentials?: Array<UtxoCredential>;
3410
+ utxoType: string;
3340
3411
  };
3341
3412
 
3342
3413
  type CChainExportTransaction = {
@@ -3467,17 +3538,18 @@ type ListCChainAtomicTransactionsResponse = {
3467
3538
 
3468
3539
  declare enum PChainTransactionType {
3469
3540
  ADD_VALIDATOR_TX = "AddValidatorTx",
3470
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3471
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
3541
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3474
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3542
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3476
3543
  CREATE_CHAIN_TX = "CreateChainTx",
3477
3544
  CREATE_SUBNET_TX = "CreateSubnetTx",
3478
3545
  IMPORT_TX = "ImportTx",
3479
3546
  EXPORT_TX = "ExportTx",
3480
3547
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3548
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3549
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3550
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3551
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3552
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3481
3553
  UNKNOWN = "UNKNOWN"
3482
3554
  }
3483
3555
 
@@ -3488,29 +3560,48 @@ declare enum UtxoType {
3488
3560
 
3489
3561
  type PChainUtxo = {
3490
3562
  /**
3491
- * An array of P-Chain wallet addresses.
3563
+ * Addresses that are eligible to sign the consumption of this output.
3492
3564
  */
3493
3565
  addresses: Array<string>;
3566
+ asset: Asset;
3567
+ /**
3568
+ * Blockchain ID on which this output is consumed on.
3569
+ */
3570
+ consumedOnChainId: string;
3571
+ /**
3572
+ * Transaction ID that consumed this output.
3573
+ */
3574
+ consumingTxHash?: string;
3575
+ /**
3576
+ * Blockchain ID on which this output is created on.
3577
+ */
3578
+ createdOnChainId: string;
3579
+ /**
3580
+ * UTXO ID for this output.
3581
+ */
3494
3582
  utxoId: string;
3495
- txHash: string;
3496
- outputIndex: number;
3583
+ /**
3584
+ * @deprecated
3585
+ */
3586
+ amount: string;
3587
+ /**
3588
+ * @deprecated
3589
+ */
3590
+ assetId: string;
3497
3591
  blockNumber: string;
3498
3592
  blockTimestamp: number;
3499
- consumingTxHash?: string;
3500
- consumingBlockTimestamp?: number;
3501
3593
  consumingBlockNumber?: string;
3502
- assetId: string;
3503
- utxoType: UtxoType;
3504
- amount: string;
3505
- stakeableLocktime?: number;
3594
+ consumingBlockTimestamp?: number;
3506
3595
  platformLocktime?: number;
3507
- threshold?: number;
3508
- createdOnChainId: string;
3509
- consumedOnChainId: string;
3596
+ outputIndex: number;
3597
+ rewardType?: RewardType;
3598
+ stakeableLocktime?: number;
3510
3599
  staked?: boolean;
3511
- utxoStartTimestamp?: number;
3600
+ threshold?: number;
3601
+ txHash: string;
3512
3602
  utxoEndTimestamp?: number;
3513
- rewardType?: RewardType;
3603
+ utxoStartTimestamp?: number;
3604
+ utxoType: UtxoType;
3514
3605
  };
3515
3606
 
3516
3607
  type PChainTransaction = {
@@ -3538,15 +3629,15 @@ type PChainTransaction = {
3538
3629
  /**
3539
3630
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3540
3631
  */
3541
- value: Array<PChainAsset>;
3632
+ value: Array<Asset>;
3542
3633
  /**
3543
3634
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3544
3635
  */
3545
- amountBurned: Array<PChainAsset>;
3636
+ amountBurned: Array<Asset>;
3546
3637
  /**
3547
3638
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3548
3639
  */
3549
- amountStaked: Array<PChainAsset>;
3640
+ amountStaked: Array<Asset>;
3550
3641
  /**
3551
3642
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3552
3643
  */
@@ -3749,17 +3840,18 @@ declare enum PChainId {
3749
3840
 
3750
3841
  declare enum PrimaryNetworkTxType {
3751
3842
  ADD_VALIDATOR_TX = "AddValidatorTx",
3752
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3753
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3755
3843
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3756
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3757
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3844
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3758
3845
  CREATE_CHAIN_TX = "CreateChainTx",
3759
3846
  CREATE_SUBNET_TX = "CreateSubnetTx",
3760
3847
  IMPORT_TX = "ImportTx",
3761
3848
  EXPORT_TX = "ExportTx",
3762
3849
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3850
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3851
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3852
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3853
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3854
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3763
3855
  UNKNOWN = "UNKNOWN",
3764
3856
  BASE_TX = "BaseTx",
3765
3857
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4087,6 +4179,179 @@ declare class PrimaryNetworkVerticesService {
4087
4179
  }): CancelablePromise<ListXChainVerticesResponse>;
4088
4180
  }
4089
4181
 
4182
+ type TeleporterDestinationTransaction = {
4183
+ txHash: string;
4184
+ timestamp: number;
4185
+ gasSpent: string;
4186
+ rewardRedeemer: string;
4187
+ delivererAddress: string;
4188
+ };
4189
+
4190
+ type TeleporterRewardDetails = {
4191
+ /**
4192
+ * A wallet or contract address in mixed-case checksum encoding.
4193
+ */
4194
+ address: string;
4195
+ /**
4196
+ * The contract name.
4197
+ */
4198
+ name: string;
4199
+ /**
4200
+ * The contract symbol.
4201
+ */
4202
+ symbol: string;
4203
+ /**
4204
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4205
+ */
4206
+ decimals: number;
4207
+ /**
4208
+ * The logo uri for the address.
4209
+ */
4210
+ logoUri?: string;
4211
+ ercType: TeleporterRewardDetails.ercType;
4212
+ /**
4213
+ * The token price, if available.
4214
+ */
4215
+ price?: Money;
4216
+ value: string;
4217
+ };
4218
+ declare namespace TeleporterRewardDetails {
4219
+ enum ercType {
4220
+ ERC_20 = "ERC-20"
4221
+ }
4222
+ }
4223
+
4224
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4225
+ sourceBlockchainId: string;
4226
+ destinationBlockchainId: string;
4227
+ messageId: string;
4228
+ from: string;
4229
+ to: string;
4230
+ data?: string;
4231
+ messageExecuted: boolean;
4232
+ receipts: Array<string>;
4233
+ receiptDelivered: boolean;
4234
+ rewardDetails: TeleporterRewardDetails;
4235
+ destinationTransaction: TeleporterDestinationTransaction;
4236
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4237
+ };
4238
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4239
+ enum status {
4240
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4241
+ }
4242
+ }
4243
+
4244
+ type TeleporterSourceTransaction = {
4245
+ txHash: string;
4246
+ timestamp: number;
4247
+ gasSpent: string;
4248
+ };
4249
+
4250
+ type DeliveredTeleporterMessage = {
4251
+ sourceBlockchainId: string;
4252
+ destinationBlockchainId: string;
4253
+ messageId: string;
4254
+ from: string;
4255
+ to: string;
4256
+ data?: string;
4257
+ messageExecuted: boolean;
4258
+ receipts: Array<string>;
4259
+ receiptDelivered: boolean;
4260
+ rewardDetails: TeleporterRewardDetails;
4261
+ sourceTransaction: TeleporterSourceTransaction;
4262
+ destinationTransaction: TeleporterDestinationTransaction;
4263
+ status: DeliveredTeleporterMessage.status;
4264
+ };
4265
+ declare namespace DeliveredTeleporterMessage {
4266
+ enum status {
4267
+ DELIVERED = "delivered"
4268
+ }
4269
+ }
4270
+
4271
+ type NextPageToken = {
4272
+ /**
4273
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
4274
+ */
4275
+ nextPageToken?: string;
4276
+ };
4277
+
4278
+ type PendingTeleporterMessage = {
4279
+ sourceBlockchainId: string;
4280
+ destinationBlockchainId: string;
4281
+ messageId: string;
4282
+ from: string;
4283
+ to: string;
4284
+ data?: string;
4285
+ messageExecuted: boolean;
4286
+ receipts: Array<string>;
4287
+ receiptDelivered: boolean;
4288
+ rewardDetails: TeleporterRewardDetails;
4289
+ sourceTransaction: TeleporterSourceTransaction;
4290
+ status: PendingTeleporterMessage.status;
4291
+ };
4292
+ declare namespace PendingTeleporterMessage {
4293
+ enum status {
4294
+ PENDING = "pending"
4295
+ }
4296
+ }
4297
+
4298
+ declare class TeleporterService {
4299
+ readonly httpRequest: BaseHttpRequest;
4300
+ constructor(httpRequest: BaseHttpRequest);
4301
+ /**
4302
+ * Get a teleporter message
4303
+ * Gets a teleporter message by source chain, destination chain, and message ID.
4304
+ * @returns any
4305
+ * @throws ApiError
4306
+ */
4307
+ getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4308
+ /**
4309
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4310
+ */
4311
+ sourceBlockchainId: any;
4312
+ /**
4313
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4314
+ */
4315
+ destinationBlockchainId: any;
4316
+ /**
4317
+ * The message ID of the teleporter message.
4318
+ */
4319
+ messageId: any;
4320
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4321
+ /**
4322
+ * List teleporter messages
4323
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4324
+ * @returns any
4325
+ * @throws ApiError
4326
+ */
4327
+ listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4328
+ /**
4329
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4330
+ */
4331
+ pageSize?: number;
4332
+ /**
4333
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4334
+ */
4335
+ pageToken?: string;
4336
+ /**
4337
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4338
+ */
4339
+ sourceBlockchainId?: any;
4340
+ /**
4341
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4342
+ */
4343
+ destinationBlockchainId?: any;
4344
+ /**
4345
+ * The address of the recipient of the teleporter message.
4346
+ */
4347
+ to?: any;
4348
+ /**
4349
+ * The address of the sender of the teleporter message.
4350
+ */
4351
+ from?: any;
4352
+ }): CancelablePromise<NextPageToken>;
4353
+ }
4354
+
4090
4355
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4091
4356
  declare class Glacier {
4092
4357
  readonly default: DefaultService;
@@ -4105,6 +4370,7 @@ declare class Glacier {
4105
4370
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4106
4371
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4107
4372
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4373
+ readonly teleporter: TeleporterService;
4108
4374
  readonly request: BaseHttpRequest;
4109
4375
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4110
4376
  }
@@ -4126,4 +4392,4 @@ declare class ApiError extends Error {
4126
4392
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4127
4393
  }
4128
4394
 
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 };
4395
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, AssetWithPriceInfo, 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, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, 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 };