@avalabs/glacier-sdk 2.8.0-canary.cde943d.0 → 2.8.0-canary.cf01dde.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 (47) hide show
  1. package/dist/index.d.ts +401 -124
  2. package/dist/index.js +113 -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/SharedSecretsResponse.d.ts +5 -0
  28. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  29. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  30. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  31. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  32. package/esm/generated/models/Utxo.d.ts +28 -28
  33. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  34. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  35. package/esm/generated/models/ValidationStatusType.js +1 -0
  36. package/esm/generated/services/DefaultService.d.ts +8 -0
  37. package/esm/generated/services/DefaultService.js +6 -0
  38. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -5
  39. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -2
  40. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  41. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  42. package/esm/generated/services/TeleporterService.d.ts +65 -0
  43. package/esm/generated/services/TeleporterService.js +43 -0
  44. package/esm/index.d.ts +11 -1
  45. package/esm/index.js +6 -0
  46. package/package.json +2 -2
  47. 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 {
@@ -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 {
@@ -2450,6 +2464,24 @@ declare namespace PendingValidatorDetails {
2450
2464
  }
2451
2465
  }
2452
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
+
2453
2485
  type ListValidatorDetailsResponse = {
2454
2486
  /**
2455
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.
@@ -2458,7 +2490,7 @@ type ListValidatorDetailsResponse = {
2458
2490
  /**
2459
2491
  * The list of validator Details.
2460
2492
  */
2461
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2493
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
2462
2494
  };
2463
2495
 
2464
2496
  declare enum Network {
@@ -2469,7 +2501,8 @@ declare enum Network {
2469
2501
  declare enum ValidationStatusType {
2470
2502
  COMPLETED = "completed",
2471
2503
  ACTIVE = "active",
2472
- PENDING = "pending"
2504
+ PENDING = "pending",
2505
+ REMOVED = "removed"
2473
2506
  }
2474
2507
 
2475
2508
  type XChainAssetDetails = {
@@ -2614,7 +2647,7 @@ declare class PrimaryNetworkService {
2614
2647
  * @returns ListValidatorDetailsResponse
2615
2648
  * @throws ApiError
2616
2649
  */
2617
- 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, }: {
2618
2651
  /**
2619
2652
  * Either mainnet or a testnet.
2620
2653
  */
@@ -2628,41 +2661,41 @@ declare class PrimaryNetworkService {
2628
2661
  */
2629
2662
  pageToken?: string;
2630
2663
  /**
2631
- * 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.
2632
2665
  */
2633
- minTimeRemaining?: any;
2666
+ nodeIds?: string;
2634
2667
  /**
2635
- * 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.
2636
2669
  */
2637
- maxTimeRemaining?: any;
2670
+ sortOrder?: SortOrder;
2671
+ /**
2672
+ * Validation status of the node.
2673
+ */
2674
+ validationStatus?: ValidationStatusType;
2638
2675
  /**
2639
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
2640
2677
  */
2641
- minDelegationCapacity?: number;
2678
+ minDelegationCapacity?: any;
2642
2679
  /**
2643
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.
2644
2681
  */
2645
- maxDelegationCapacity?: number;
2682
+ maxDelegationCapacity?: any;
2646
2683
  /**
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.
2648
- */
2649
- minFeePercentage?: any;
2650
- /**
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.
2684
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2652
2685
  */
2653
- maxFeePercentage?: any;
2686
+ minTimeRemaining?: any;
2654
2687
  /**
2655
- * 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.
2656
2689
  */
2657
- nodeIds?: string;
2690
+ maxTimeRemaining?: any;
2658
2691
  /**
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.
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.
2660
2693
  */
2661
- sortOrder?: SortOrder;
2694
+ minFeePercentage?: any;
2662
2695
  /**
2663
- * 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.
2664
2697
  */
2665
- validationStatus?: ValidationStatusType;
2698
+ maxFeePercentage?: any;
2666
2699
  /**
2667
2700
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2668
2701
  */
@@ -2804,13 +2837,57 @@ type ListCChainAtomicBalancesResponse = {
2804
2837
  chainInfo: PrimaryNetworkChainInfo;
2805
2838
  };
2806
2839
 
2807
- type PChainAsset = {
2840
+ type Asset = {
2841
+ /**
2842
+ * Unique ID for an asset.
2843
+ */
2808
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
+ */
2809
2864
  amount: string;
2810
2865
  };
2811
2866
 
2812
2867
  type PChainSharedAsset = {
2868
+ /**
2869
+ * Unique ID for an asset.
2870
+ */
2813
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
+ */
2814
2891
  amount: string;
2815
2892
  sharedWithChainId: string;
2816
2893
  status: string;
@@ -2820,27 +2897,27 @@ type PChainBalance = {
2820
2897
  /**
2821
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.
2822
2899
  */
2823
- unlockedUnstaked: Array<PChainAsset>;
2900
+ unlockedUnstaked: Array<Asset>;
2824
2901
  /**
2825
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.
2826
2903
  */
2827
- unlockedStaked: Array<PChainAsset>;
2904
+ unlockedStaked: Array<Asset>;
2828
2905
  /**
2829
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.
2830
2907
  */
2831
- lockedPlatform: Array<PChainAsset>;
2908
+ lockedPlatform: Array<Asset>;
2832
2909
  /**
2833
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.
2834
2911
  */
2835
- lockedStakeable: Array<PChainAsset>;
2912
+ lockedStakeable: Array<Asset>;
2836
2913
  /**
2837
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.
2838
2915
  */
2839
- lockedStaked: Array<PChainAsset>;
2916
+ lockedStaked: Array<Asset>;
2840
2917
  /**
2841
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.
2842
2919
  */
2843
- pendingStaked: Array<PChainAsset>;
2920
+ pendingStaked: Array<Asset>;
2844
2921
  /**
2845
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.
2846
2923
  */
@@ -3082,6 +3159,37 @@ declare class PrimaryNetworkBlocksService {
3082
3159
  }): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
3083
3160
  }
3084
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
+
3085
3193
  declare enum RewardType {
3086
3194
  VALIDATOR = "VALIDATOR",
3087
3195
  DELEGATOR = "DELEGATOR",
@@ -3101,10 +3209,7 @@ type HistoricalReward = {
3101
3209
  rewardType: RewardType;
3102
3210
  utxoId: string;
3103
3211
  outputIndex: number;
3104
- /**
3105
- * An object containing P-chain Asset ID and the amount of that Asset ID.
3106
- */
3107
- reward: PChainAsset;
3212
+ reward: AssetWithPriceInfo;
3108
3213
  rewardTxHash: string;
3109
3214
  };
3110
3215
 
@@ -3131,7 +3236,7 @@ type PendingReward = {
3131
3236
  /**
3132
3237
  * An object containing P-chain Asset ID and the amount of that Asset ID.
3133
3238
  */
3134
- estimatedReward: PChainAsset;
3239
+ estimatedReward: Asset;
3135
3240
  };
3136
3241
 
3137
3242
  type ListPendingRewardsResponse = {
@@ -3157,7 +3262,7 @@ declare class PrimaryNetworkRewardsService {
3157
3262
  */
3158
3263
  network: Network;
3159
3264
  /**
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".
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.
3161
3266
  */
3162
3267
  addresses?: string;
3163
3268
  /**
@@ -3169,7 +3274,7 @@ declare class PrimaryNetworkRewardsService {
3169
3274
  */
3170
3275
  pageToken?: string;
3171
3276
  /**
3172
- * 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.
3173
3278
  */
3174
3279
  nodeIds?: string;
3175
3280
  /**
@@ -3183,13 +3288,13 @@ declare class PrimaryNetworkRewardsService {
3183
3288
  * @returns ListHistoricalRewardsResponse
3184
3289
  * @throws ApiError
3185
3290
  */
3186
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
3291
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, currency, }: {
3187
3292
  /**
3188
3293
  * Either mainnet or a testnet.
3189
3294
  */
3190
3295
  network: Network;
3191
3296
  /**
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".
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.
3193
3298
  */
3194
3299
  addresses?: string;
3195
3300
  /**
@@ -3201,50 +3306,27 @@ declare class PrimaryNetworkRewardsService {
3201
3306
  */
3202
3307
  pageToken?: string;
3203
3308
  /**
3204
- * 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.
3205
3310
  */
3206
3311
  nodeIds?: string;
3207
3312
  /**
3208
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.
3209
3314
  */
3210
3315
  sortOrder?: SortOrder;
3316
+ /**
3317
+ * The currency that return values should use. Defaults to USD.
3318
+ */
3319
+ currency?: CurrencyCode;
3211
3320
  }): CancelablePromise<ListHistoricalRewardsResponse>;
3212
3321
  }
3213
3322
 
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
3323
  type UtxoCredential = {
3242
3324
  /**
3243
- * Signature provided to consume the output
3325
+ * Signature provided to consume the output.
3244
3326
  */
3245
3327
  signature?: string;
3246
3328
  /**
3247
- * Public key associated with the signature
3329
+ * Public key associated with the signature.
3248
3330
  */
3249
3331
  publicKey?: string;
3250
3332
  };
@@ -3266,66 +3348,66 @@ type EVMInput = {
3266
3348
 
3267
3349
  type Utxo = {
3268
3350
  /**
3269
- * UTXO ID for this output.
3351
+ * Addresses that are eligible to sign the consumption of this output.
3270
3352
  */
3271
- utxoId: string;
3353
+ addresses: Array<string>;
3272
3354
  asset: Asset;
3273
3355
  /**
3274
- * Type of output.
3356
+ * Blockchain ID on which this output is consumed on.
3275
3357
  */
3276
- utxoType: string;
3358
+ consumedOnChainId: string;
3277
3359
  /**
3278
- * Blockchain ID on which this output is created on.
3360
+ * Transaction ID that consumed this output.
3279
3361
  */
3280
- createdOnChainId: string;
3362
+ consumingTxHash?: string;
3281
3363
  /**
3282
- * Blockchain ID on which this output is consumed on.
3364
+ * Blockchain ID on which this output is created on.
3283
3365
  */
3284
- consumedOnChainId: string;
3366
+ createdOnChainId: string;
3285
3367
  /**
3286
- * Transaction ID that created this output.
3368
+ * UTXO ID for this output.
3287
3369
  */
3288
- creationTxHash: string;
3370
+ utxoId: string;
3289
3371
  /**
3290
- * Transaction ID that consumed this output.
3372
+ * Unix timestamp in seconds at which this output was consumed.
3291
3373
  */
3292
- consumingTxHash?: string;
3374
+ consumingTxTimestamp?: number;
3293
3375
  /**
3294
- * Timestamp in seconds this output is consumed.
3376
+ * Transaction ID that created this output.
3295
3377
  */
3296
- consumingTxTimestamp?: number;
3378
+ creationTxHash: string;
3297
3379
  /**
3298
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3380
+ * Credentials that signed the transaction to consume this utxo
3299
3381
  */
3300
- outputIndex: string;
3382
+ credentials?: Array<UtxoCredential>;
3301
3383
  /**
3302
- * Timestamp in seconds this outptut is created on.
3384
+ * Index representing the minting set for the NFT mint output.
3303
3385
  */
3304
- timestamp: number;
3386
+ groupId?: number;
3305
3387
  /**
3306
3388
  * Locktime in seconds after which this output can be consumed.
3307
3389
  */
3308
3390
  locktime: number;
3309
3391
  /**
3310
- * Minimum number of signatures required to consume this output.
3392
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
3311
3393
  */
3312
- threshold: number;
3394
+ outputIndex: string;
3313
3395
  /**
3314
- * Addresses that are eligible to sign the consumption of this output.
3396
+ * Hex encoded data for NFT assets.
3315
3397
  */
3316
- addresses: Array<string>;
3398
+ payload?: string;
3317
3399
  /**
3318
- * Hex encoded data for NFT assets
3400
+ * Minimum number of signatures required to consume this output.
3319
3401
  */
3320
- payload?: string;
3402
+ threshold: number;
3321
3403
  /**
3322
- * Index representing the minting set for the NFT mint output
3404
+ * Unix timestamp in seconds at which this outptut was created.
3323
3405
  */
3324
- groupId?: number;
3406
+ timestamp: number;
3325
3407
  /**
3326
- * Credentials that signed the transaction to consume this utxo
3408
+ * Type of output.
3327
3409
  */
3328
- credentials?: Array<UtxoCredential>;
3410
+ utxoType: string;
3329
3411
  };
3330
3412
 
3331
3413
  type CChainExportTransaction = {
@@ -3456,17 +3538,18 @@ type ListCChainAtomicTransactionsResponse = {
3456
3538
 
3457
3539
  declare enum PChainTransactionType {
3458
3540
  ADD_VALIDATOR_TX = "AddValidatorTx",
3459
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3460
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3461
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3462
3541
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3463
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3464
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3542
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3465
3543
  CREATE_CHAIN_TX = "CreateChainTx",
3466
3544
  CREATE_SUBNET_TX = "CreateSubnetTx",
3467
3545
  IMPORT_TX = "ImportTx",
3468
3546
  EXPORT_TX = "ExportTx",
3469
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",
3470
3553
  UNKNOWN = "UNKNOWN"
3471
3554
  }
3472
3555
 
@@ -3477,29 +3560,48 @@ declare enum UtxoType {
3477
3560
 
3478
3561
  type PChainUtxo = {
3479
3562
  /**
3480
- * An array of P-Chain wallet addresses.
3563
+ * Addresses that are eligible to sign the consumption of this output.
3481
3564
  */
3482
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
+ */
3483
3582
  utxoId: string;
3484
- txHash: string;
3485
- outputIndex: number;
3583
+ /**
3584
+ * @deprecated
3585
+ */
3586
+ amount: string;
3587
+ /**
3588
+ * @deprecated
3589
+ */
3590
+ assetId: string;
3486
3591
  blockNumber: string;
3487
3592
  blockTimestamp: number;
3488
- consumingTxHash?: string;
3489
- consumingBlockTimestamp?: number;
3490
3593
  consumingBlockNumber?: string;
3491
- assetId: string;
3492
- utxoType: UtxoType;
3493
- amount: string;
3494
- stakeableLocktime?: number;
3594
+ consumingBlockTimestamp?: number;
3495
3595
  platformLocktime?: number;
3496
- threshold?: number;
3497
- createdOnChainId: string;
3498
- consumedOnChainId: string;
3596
+ outputIndex: number;
3597
+ rewardType?: RewardType;
3598
+ stakeableLocktime?: number;
3499
3599
  staked?: boolean;
3500
- utxoStartTimestamp?: number;
3600
+ threshold?: number;
3601
+ txHash: string;
3501
3602
  utxoEndTimestamp?: number;
3502
- rewardType?: RewardType;
3603
+ utxoStartTimestamp?: number;
3604
+ utxoType: UtxoType;
3503
3605
  };
3504
3606
 
3505
3607
  type PChainTransaction = {
@@ -3527,15 +3629,15 @@ type PChainTransaction = {
3527
3629
  /**
3528
3630
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3529
3631
  */
3530
- value: Array<PChainAsset>;
3632
+ value: Array<Asset>;
3531
3633
  /**
3532
3634
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
3533
3635
  */
3534
- amountBurned: Array<PChainAsset>;
3636
+ amountBurned: Array<Asset>;
3535
3637
  /**
3536
3638
  * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3537
3639
  */
3538
- amountStaked: Array<PChainAsset>;
3640
+ amountStaked: Array<Asset>;
3539
3641
  /**
3540
3642
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
3541
3643
  */
@@ -3738,17 +3840,18 @@ declare enum PChainId {
3738
3840
 
3739
3841
  declare enum PrimaryNetworkTxType {
3740
3842
  ADD_VALIDATOR_TX = "AddValidatorTx",
3741
- ADD_DELEGATOR_TX = "AddDelegatorTx",
3742
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3743
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3744
3843
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3745
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3746
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
3844
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
3747
3845
  CREATE_CHAIN_TX = "CreateChainTx",
3748
3846
  CREATE_SUBNET_TX = "CreateSubnetTx",
3749
3847
  IMPORT_TX = "ImportTx",
3750
3848
  EXPORT_TX = "ExportTx",
3751
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",
3752
3855
  UNKNOWN = "UNKNOWN",
3753
3856
  BASE_TX = "BaseTx",
3754
3857
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -4076,6 +4179,179 @@ declare class PrimaryNetworkVerticesService {
4076
4179
  }): CancelablePromise<ListXChainVerticesResponse>;
4077
4180
  }
4078
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
+
4079
4355
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
4080
4356
  declare class Glacier {
4081
4357
  readonly default: DefaultService;
@@ -4094,6 +4370,7 @@ declare class Glacier {
4094
4370
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
4095
4371
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
4096
4372
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
4373
+ readonly teleporter: TeleporterService;
4097
4374
  readonly request: BaseHttpRequest;
4098
4375
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
4099
4376
  }
@@ -4115,4 +4392,4 @@ declare class ApiError extends Error {
4115
4392
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
4116
4393
  }
4117
4394
 
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 };
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 };