@avalabs/glacier-sdk 2.8.0-canary.62976f2.0 → 2.8.0-canary.6573f71.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 (42) hide show
  1. package/dist/index.d.ts +354 -120
  2. package/dist/index.js +103 -20
  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/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  7. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  8. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  9. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  10. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  11. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  12. package/esm/generated/models/NextPageToken.d.ts +8 -0
  13. package/esm/generated/models/PChainBalance.d.ts +7 -7
  14. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  15. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  16. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  17. package/esm/generated/models/PChainTransactionType.js +6 -5
  18. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  19. package/esm/generated/models/PendingReward.d.ts +2 -2
  20. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  21. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  22. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  23. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  24. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  25. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  26. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  27. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  28. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  29. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  30. package/esm/generated/models/Utxo.d.ts +28 -28
  31. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  32. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  33. package/esm/generated/models/ValidationStatusType.js +1 -0
  34. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  35. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  36. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  37. package/esm/generated/services/TeleporterService.d.ts +65 -0
  38. package/esm/generated/services/TeleporterService.js +43 -0
  39. package/esm/index.d.ts +9 -1
  40. package/esm/index.js +6 -0
  41. package/package.json +2 -2
  42. 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
  */
@@ -3115,7 +3181,7 @@ type HistoricalReward = {
3115
3181
  /**
3116
3182
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3117
3183
  */
3118
- reward: PChainAsset;
3184
+ reward: Asset;
3119
3185
  rewardTxHash: string;
3120
3186
  };
3121
3187
 
@@ -3142,7 +3208,7 @@ type PendingReward = {
3142
3208
  /**
3143
3209
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3144
3210
  */
3145
- estimatedReward: PChainAsset;
3211
+ estimatedReward: Asset;
3146
3212
  };
3147
3213
 
3148
3214
  type ListPendingRewardsResponse = {
@@ -3168,7 +3234,7 @@ declare class PrimaryNetworkRewardsService {
3168
3234
  */
3169
3235
  network: Network;
3170
3236
  /**
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".
3237
+ * 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
3238
  */
3173
3239
  addresses?: string;
3174
3240
  /**
@@ -3180,7 +3246,7 @@ declare class PrimaryNetworkRewardsService {
3180
3246
  */
3181
3247
  pageToken?: string;
3182
3248
  /**
3183
- * A comma separated list of node ids to filter by.
3249
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3184
3250
  */
3185
3251
  nodeIds?: string;
3186
3252
  /**
@@ -3200,7 +3266,7 @@ declare class PrimaryNetworkRewardsService {
3200
3266
  */
3201
3267
  network: Network;
3202
3268
  /**
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".
3269
+ * 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
3270
  */
3205
3271
  addresses?: string;
3206
3272
  /**
@@ -3212,7 +3278,7 @@ declare class PrimaryNetworkRewardsService {
3212
3278
  */
3213
3279
  pageToken?: string;
3214
3280
  /**
3215
- * A comma separated list of node ids to filter by.
3281
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
3216
3282
  */
3217
3283
  nodeIds?: string;
3218
3284
  /**
@@ -3222,40 +3288,13 @@ declare class PrimaryNetworkRewardsService {
3222
3288
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3223
3289
  }
3224
3290
 
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
3291
  type UtxoCredential = {
3253
3292
  /**
3254
- * Signature provided to consume the output
3293
+ * Signature provided to consume the output.
3255
3294
  */
3256
3295
  signature?: string;
3257
3296
  /**
3258
- * Public key associated with the signature
3297
+ * Public key associated with the signature.
3259
3298
  */
3260
3299
  publicKey?: string;
3261
3300
  };
@@ -3277,66 +3316,66 @@ type EVMInput = {
3277
3316
 
3278
3317
  type Utxo = {
3279
3318
  /**
3280
- * UTXO ID for this output.
3319
+ * Addresses that are eligible to sign the consumption of this output.
3281
3320
  */
3282
- utxoId: string;
3321
+ addresses: Array<string>;
3283
3322
  asset: Asset;
3284
3323
  /**
3285
- * Type of output.
3324
+ * Blockchain ID on which this output is consumed on.
3286
3325
  */
3287
- utxoType: string;
3326
+ consumedOnChainId: string;
3288
3327
  /**
3289
- * Blockchain ID on which this output is created on.
3328
+ * Transaction ID that consumed this output.
3290
3329
  */
3291
- createdOnChainId: string;
3330
+ consumingTxHash?: string;
3292
3331
  /**
3293
- * Blockchain ID on which this output is consumed on.
3332
+ * Blockchain ID on which this output is created on.
3294
3333
  */
3295
- consumedOnChainId: string;
3334
+ createdOnChainId: string;
3296
3335
  /**
3297
- * Transaction ID that created this output.
3336
+ * UTXO ID for this output.
3298
3337
  */
3299
- creationTxHash: string;
3338
+ utxoId: string;
3300
3339
  /**
3301
- * Transaction ID that consumed this output.
3340
+ * Unix timestamp in seconds at which this output was consumed.
3302
3341
  */
3303
- consumingTxHash?: string;
3342
+ consumingTxTimestamp?: number;
3304
3343
  /**
3305
- * Timestamp in seconds this output is consumed.
3344
+ * Transaction ID that created this output.
3306
3345
  */
3307
- consumingTxTimestamp?: number;
3346
+ creationTxHash: string;
3308
3347
  /**
3309
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3348
+ * Credentials that signed the transaction to consume this utxo
3310
3349
  */
3311
- outputIndex: string;
3350
+ credentials?: Array<UtxoCredential>;
3312
3351
  /**
3313
- * Timestamp in seconds this outptut is created on.
3352
+ * Index representing the minting set for the NFT mint output.
3314
3353
  */
3315
- timestamp: number;
3354
+ groupId?: number;
3316
3355
  /**
3317
3356
  * Locktime in seconds after which this output can be consumed.
3318
3357
  */
3319
3358
  locktime: number;
3320
3359
  /**
3321
- * Minimum number of signatures required to consume this output.
3360
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3322
3361
  */
3323
- threshold: number;
3362
+ outputIndex: string;
3324
3363
  /**
3325
- * Addresses that are eligible to sign the consumption of this output.
3364
+ * Hex encoded data for NFT assets.
3326
3365
  */
3327
- addresses: Array<string>;
3366
+ payload?: string;
3328
3367
  /**
3329
- * Hex encoded data for NFT assets
3368
+ * Minimum number of signatures required to consume this output.
3330
3369
  */
3331
- payload?: string;
3370
+ threshold: number;
3332
3371
  /**
3333
- * Index representing the minting set for the NFT mint output
3372
+ * Unix timestamp in seconds at which this outptut was created.
3334
3373
  */
3335
- groupId?: number;
3374
+ timestamp: number;
3336
3375
  /**
3337
- * Credentials that signed the transaction to consume this utxo
3376
+ * Type of output.
3338
3377
  */
3339
- credentials?: Array<UtxoCredential>;
3378
+ utxoType: string;
3340
3379
  };
3341
3380
 
3342
3381
  type CChainExportTransaction = {
@@ -3467,17 +3506,18 @@ type ListCChainAtomicTransactionsResponse = {
3467
3506
 
3468
3507
  declare enum PChainTransactionType {
3469
3508
  ADD_VALIDATOR_TX = "AddValidatorTx",
3470
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3471
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3472
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3473
3509
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3474
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3475
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3510
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3476
3511
  CREATE_CHAIN_TX = "CreateChainTx",
3477
3512
  CREATE_SUBNET_TX = "CreateSubnetTx",
3478
3513
  IMPORT_TX = "ImportTx",
3479
3514
  EXPORT_TX = "ExportTx",
3480
3515
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3516
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3517
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3518
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3519
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3520
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3481
3521
  UNKNOWN = "UNKNOWN"
3482
3522
  }
3483
3523
 
@@ -3488,29 +3528,48 @@ declare enum UtxoType {
3488
3528
 
3489
3529
  type PChainUtxo = {
3490
3530
  /**
3491
- * An array of P-Chain wallet addresses.
3531
+ * Addresses that are eligible to sign the consumption of this output.
3492
3532
  */
3493
3533
  addresses: Array<string>;
3534
+ asset: Asset;
3535
+ /**
3536
+ * Blockchain ID on which this output is consumed on.
3537
+ */
3538
+ consumedOnChainId: string;
3539
+ /**
3540
+ * Transaction ID that consumed this output.
3541
+ */
3542
+ consumingTxHash?: string;
3543
+ /**
3544
+ * Blockchain ID on which this output is created on.
3545
+ */
3546
+ createdOnChainId: string;
3547
+ /**
3548
+ * UTXO ID for this output.
3549
+ */
3494
3550
  utxoId: string;
3495
- txHash: string;
3496
- outputIndex: number;
3551
+ /**
3552
+ * @deprecated
3553
+ */
3554
+ amount: string;
3555
+ /**
3556
+ * @deprecated
3557
+ */
3558
+ assetId: string;
3497
3559
  blockNumber: string;
3498
3560
  blockTimestamp: number;
3499
- consumingTxHash?: string;
3500
- consumingBlockTimestamp?: number;
3501
3561
  consumingBlockNumber?: string;
3502
- assetId: string;
3503
- utxoType: UtxoType;
3504
- amount: string;
3505
- stakeableLocktime?: number;
3562
+ consumingBlockTimestamp?: number;
3506
3563
  platformLocktime?: number;
3507
- threshold?: number;
3508
- createdOnChainId: string;
3509
- consumedOnChainId: string;
3564
+ outputIndex: number;
3565
+ rewardType?: RewardType;
3566
+ stakeableLocktime?: number;
3510
3567
  staked?: boolean;
3511
- utxoStartTimestamp?: number;
3568
+ threshold?: number;
3569
+ txHash: string;
3512
3570
  utxoEndTimestamp?: number;
3513
- rewardType?: RewardType;
3571
+ utxoStartTimestamp?: number;
3572
+ utxoType: UtxoType;
3514
3573
  };
3515
3574
 
3516
3575
  type PChainTransaction = {
@@ -3538,15 +3597,15 @@ type PChainTransaction = {
3538
3597
  /**
3539
3598
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3540
3599
  */
3541
- value: Array<PChainAsset>;
3600
+ value: Array<Asset>;
3542
3601
  /**
3543
3602
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3544
3603
  */
3545
- amountBurned: Array<PChainAsset>;
3604
+ amountBurned: Array<Asset>;
3546
3605
  /**
3547
3606
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3548
3607
  */
3549
- amountStaked: Array<PChainAsset>;
3608
+ amountStaked: Array<Asset>;
3550
3609
  /**
3551
3610
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3552
3611
  */
@@ -3749,17 +3808,18 @@ declare enum PChainId {
3749
3808
 
3750
3809
  declare enum PrimaryNetworkTxType {
3751
3810
  ADD_VALIDATOR_TX = "AddValidatorTx",
3752
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3753
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3754
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3755
3811
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3756
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3757
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3812
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3758
3813
  CREATE_CHAIN_TX = "CreateChainTx",
3759
3814
  CREATE_SUBNET_TX = "CreateSubnetTx",
3760
3815
  IMPORT_TX = "ImportTx",
3761
3816
  EXPORT_TX = "ExportTx",
3762
3817
  ADVANCE_TIME_TX = "AdvanceTimeTx",
3818
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
3819
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3820
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
3821
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3822
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3763
3823
  UNKNOWN = "UNKNOWN",
3764
3824
  BASE_TX = "BaseTx",
3765
3825
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4087,6 +4147,179 @@ declare class PrimaryNetworkVerticesService {
4087
4147
  }): CancelablePromise<ListXChainVerticesResponse>;
4088
4148
  }
4089
4149
 
4150
+ type TeleporterDestinationTransaction = {
4151
+ txHash: string;
4152
+ timestamp: number;
4153
+ gasSpent: string;
4154
+ rewardRedeemer: string;
4155
+ delivererAddress: string;
4156
+ };
4157
+
4158
+ type TeleporterRewardDetails = {
4159
+ /**
4160
+ * A wallet or contract address in mixed-case checksum encoding.
4161
+ */
4162
+ address: string;
4163
+ /**
4164
+ * The contract name.
4165
+ */
4166
+ name: string;
4167
+ /**
4168
+ * The contract symbol.
4169
+ */
4170
+ symbol: string;
4171
+ /**
4172
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
4173
+ */
4174
+ decimals: number;
4175
+ /**
4176
+ * The logo uri for the address.
4177
+ */
4178
+ logoUri?: string;
4179
+ ercType: TeleporterRewardDetails.ercType;
4180
+ /**
4181
+ * The token price, if available.
4182
+ */
4183
+ price?: Money;
4184
+ value: string;
4185
+ };
4186
+ declare namespace TeleporterRewardDetails {
4187
+ enum ercType {
4188
+ ERC_20 = "ERC-20"
4189
+ }
4190
+ }
4191
+
4192
+ type DeliveredSourceNotIndexedTeleporterMessage = {
4193
+ sourceBlockchainId: string;
4194
+ destinationBlockchainId: string;
4195
+ messageId: string;
4196
+ from: string;
4197
+ to: string;
4198
+ data?: string;
4199
+ messageExecuted: boolean;
4200
+ receipts: Array<string>;
4201
+ receiptDelivered: boolean;
4202
+ rewardDetails: TeleporterRewardDetails;
4203
+ destinationTransaction: TeleporterDestinationTransaction;
4204
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
4205
+ };
4206
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
4207
+ enum status {
4208
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
4209
+ }
4210
+ }
4211
+
4212
+ type TeleporterSourceTransaction = {
4213
+ txHash: string;
4214
+ timestamp: number;
4215
+ gasSpent: string;
4216
+ };
4217
+
4218
+ type DeliveredTeleporterMessage = {
4219
+ sourceBlockchainId: string;
4220
+ destinationBlockchainId: string;
4221
+ messageId: string;
4222
+ from: string;
4223
+ to: string;
4224
+ data?: string;
4225
+ messageExecuted: boolean;
4226
+ receipts: Array<string>;
4227
+ receiptDelivered: boolean;
4228
+ rewardDetails: TeleporterRewardDetails;
4229
+ sourceTransaction: TeleporterSourceTransaction;
4230
+ destinationTransaction: TeleporterDestinationTransaction;
4231
+ status: DeliveredTeleporterMessage.status;
4232
+ };
4233
+ declare namespace DeliveredTeleporterMessage {
4234
+ enum status {
4235
+ DELIVERED = "delivered"
4236
+ }
4237
+ }
4238
+
4239
+ type NextPageToken = {
4240
+ /**
4241
+ * 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.
4242
+ */
4243
+ nextPageToken?: string;
4244
+ };
4245
+
4246
+ type PendingTeleporterMessage = {
4247
+ sourceBlockchainId: string;
4248
+ destinationBlockchainId: string;
4249
+ messageId: string;
4250
+ from: string;
4251
+ to: string;
4252
+ data?: string;
4253
+ messageExecuted: boolean;
4254
+ receipts: Array<string>;
4255
+ receiptDelivered: boolean;
4256
+ rewardDetails: TeleporterRewardDetails;
4257
+ sourceTransaction: TeleporterSourceTransaction;
4258
+ status: PendingTeleporterMessage.status;
4259
+ };
4260
+ declare namespace PendingTeleporterMessage {
4261
+ enum status {
4262
+ PENDING = "pending"
4263
+ }
4264
+ }
4265
+
4266
+ declare class TeleporterService {
4267
+ readonly httpRequest: BaseHttpRequest;
4268
+ constructor(httpRequest: BaseHttpRequest);
4269
+ /**
4270
+ * Get a teleporter message
4271
+ * Gets a teleporter message by source chain, destination chain, and message ID.
4272
+ * @returns any
4273
+ * @throws ApiError
4274
+ */
4275
+ getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
4276
+ /**
4277
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4278
+ */
4279
+ sourceBlockchainId: any;
4280
+ /**
4281
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4282
+ */
4283
+ destinationBlockchainId: any;
4284
+ /**
4285
+ * The message ID of the teleporter message.
4286
+ */
4287
+ messageId: any;
4288
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
4289
+ /**
4290
+ * List teleporter messages
4291
+ * Lists teleporter messages. Ordered by timestamp in descending order.
4292
+ * @returns any
4293
+ * @throws ApiError
4294
+ */
4295
+ listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4296
+ /**
4297
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4298
+ */
4299
+ pageSize?: number;
4300
+ /**
4301
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4302
+ */
4303
+ pageToken?: string;
4304
+ /**
4305
+ * The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
4306
+ */
4307
+ sourceBlockchainId?: any;
4308
+ /**
4309
+ * The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
4310
+ */
4311
+ destinationBlockchainId?: any;
4312
+ /**
4313
+ * The address of the recipient of the teleporter message.
4314
+ */
4315
+ to?: any;
4316
+ /**
4317
+ * The address of the sender of the teleporter message.
4318
+ */
4319
+ from?: any;
4320
+ }): CancelablePromise<NextPageToken>;
4321
+ }
4322
+
4090
4323
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4091
4324
  declare class Glacier {
4092
4325
  readonly default: DefaultService;
@@ -4105,6 +4338,7 @@ declare class Glacier {
4105
4338
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4106
4339
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4107
4340
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4341
+ readonly teleporter: TeleporterService;
4108
4342
  readonly request: BaseHttpRequest;
4109
4343
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4110
4344
  }
@@ -4126,4 +4360,4 @@ declare class ApiError extends Error {
4126
4360
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4127
4361
  }
4128
4362
 
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 };
4363
+ 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, 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 };