@avalabs/glacier-sdk 2.8.0-canary.e5344d2.0 → 2.8.0-canary.e9abb3a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +170 -118
- package/dist/index.js +28 -20
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
- package/esm/generated/models/HistoricalReward.d.ts +2 -2
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +4 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -5
- package/esm/generated/models/PChainTransactionType.js +6 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/services/DefaultService.d.ts +8 -0
- package/esm/generated/services/DefaultService.js +6 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
- package/esm/generated/services/PrimaryNetworkService.js +10 -10
- package/esm/index.d.ts +1 -1
- package/package.json +2 -2
- 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
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Array of hexadecimal strings of the event signatures.
|
|
70
|
+
*/
|
|
71
|
+
eventSignatures?: Array<string>;
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
declare enum EventType {
|
|
@@ -105,6 +108,10 @@ type RegisterWebhookRequest = {
|
|
|
105
108
|
metadata: AddressActivityMetadata;
|
|
106
109
|
};
|
|
107
110
|
|
|
111
|
+
type SharedSecretsResponse = {
|
|
112
|
+
secret: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
108
115
|
declare enum WebhookStatus {
|
|
109
116
|
ACTIVE = "active",
|
|
110
117
|
INACTIVE = "inactive"
|
|
@@ -159,6 +166,13 @@ declare class DefaultService {
|
|
|
159
166
|
*/
|
|
160
167
|
id: string;
|
|
161
168
|
}): CancelablePromise<WebhookResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* Generate a shared secret
|
|
171
|
+
* Generates a new shared secret.
|
|
172
|
+
* @returns SharedSecretsResponse
|
|
173
|
+
* @throws ApiError
|
|
174
|
+
*/
|
|
175
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
162
176
|
}
|
|
163
177
|
|
|
164
178
|
declare enum CurrencyCode {
|
|
@@ -2614,7 +2628,7 @@ declare class PrimaryNetworkService {
|
|
|
2614
2628
|
* @returns ListValidatorDetailsResponse
|
|
2615
2629
|
* @throws ApiError
|
|
2616
2630
|
*/
|
|
2617
|
-
listValidators({ network, pageSize, pageToken,
|
|
2631
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2618
2632
|
/**
|
|
2619
2633
|
* Either mainnet or a testnet.
|
|
2620
2634
|
*/
|
|
@@ -2628,41 +2642,41 @@ declare class PrimaryNetworkService {
|
|
|
2628
2642
|
*/
|
|
2629
2643
|
pageToken?: string;
|
|
2630
2644
|
/**
|
|
2631
|
-
*
|
|
2645
|
+
* A comma separated list of node ids to filter by.
|
|
2632
2646
|
*/
|
|
2633
|
-
|
|
2647
|
+
nodeIds?: string;
|
|
2634
2648
|
/**
|
|
2635
|
-
* The
|
|
2649
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2636
2650
|
*/
|
|
2637
|
-
|
|
2651
|
+
sortOrder?: SortOrder;
|
|
2638
2652
|
/**
|
|
2639
|
-
*
|
|
2653
|
+
* Validation status of the node.
|
|
2640
2654
|
*/
|
|
2641
|
-
|
|
2655
|
+
validationStatus?: ValidationStatusType;
|
|
2642
2656
|
/**
|
|
2643
|
-
* The
|
|
2657
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2644
2658
|
*/
|
|
2645
|
-
|
|
2659
|
+
minDelegationCapacity?: any;
|
|
2646
2660
|
/**
|
|
2647
|
-
* The
|
|
2661
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2648
2662
|
*/
|
|
2649
|
-
|
|
2663
|
+
maxDelegationCapacity?: any;
|
|
2650
2664
|
/**
|
|
2651
|
-
* The
|
|
2665
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2652
2666
|
*/
|
|
2653
|
-
|
|
2667
|
+
minTimeRemaining?: any;
|
|
2654
2668
|
/**
|
|
2655
|
-
*
|
|
2669
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2656
2670
|
*/
|
|
2657
|
-
|
|
2671
|
+
maxTimeRemaining?: any;
|
|
2658
2672
|
/**
|
|
2659
|
-
* The
|
|
2673
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2660
2674
|
*/
|
|
2661
|
-
|
|
2675
|
+
minFeePercentage?: any;
|
|
2662
2676
|
/**
|
|
2663
|
-
*
|
|
2677
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2664
2678
|
*/
|
|
2665
|
-
|
|
2679
|
+
maxFeePercentage?: any;
|
|
2666
2680
|
/**
|
|
2667
2681
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2668
2682
|
*/
|
|
@@ -2804,13 +2818,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2804
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2805
2819
|
};
|
|
2806
2820
|
|
|
2807
|
-
type
|
|
2821
|
+
type Asset = {
|
|
2822
|
+
/**
|
|
2823
|
+
* Unique ID for an asset.
|
|
2824
|
+
*/
|
|
2808
2825
|
assetId: string;
|
|
2826
|
+
/**
|
|
2827
|
+
* Name of this asset.
|
|
2828
|
+
*/
|
|
2829
|
+
name: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Symbol for this asset (max 4 characters).
|
|
2832
|
+
*/
|
|
2833
|
+
symbol: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* Denomination of this asset to represent fungibility.
|
|
2836
|
+
*/
|
|
2837
|
+
denomination: number;
|
|
2838
|
+
/**
|
|
2839
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2840
|
+
*/
|
|
2841
|
+
type: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* Amount of the asset.
|
|
2844
|
+
*/
|
|
2809
2845
|
amount: string;
|
|
2810
2846
|
};
|
|
2811
2847
|
|
|
2812
2848
|
type PChainSharedAsset = {
|
|
2849
|
+
/**
|
|
2850
|
+
* Unique ID for an asset.
|
|
2851
|
+
*/
|
|
2813
2852
|
assetId: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Name of this asset.
|
|
2855
|
+
*/
|
|
2856
|
+
name: string;
|
|
2857
|
+
/**
|
|
2858
|
+
* Symbol for this asset (max 4 characters).
|
|
2859
|
+
*/
|
|
2860
|
+
symbol: string;
|
|
2861
|
+
/**
|
|
2862
|
+
* Denomination of this asset to represent fungibility.
|
|
2863
|
+
*/
|
|
2864
|
+
denomination: number;
|
|
2865
|
+
/**
|
|
2866
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2867
|
+
*/
|
|
2868
|
+
type: string;
|
|
2869
|
+
/**
|
|
2870
|
+
* Amount of the asset.
|
|
2871
|
+
*/
|
|
2814
2872
|
amount: string;
|
|
2815
2873
|
sharedWithChainId: string;
|
|
2816
2874
|
status: string;
|
|
@@ -2820,27 +2878,27 @@ type PChainBalance = {
|
|
|
2820
2878
|
/**
|
|
2821
2879
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2822
2880
|
*/
|
|
2823
|
-
unlockedUnstaked: Array<
|
|
2881
|
+
unlockedUnstaked: Array<Asset>;
|
|
2824
2882
|
/**
|
|
2825
2883
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2826
2884
|
*/
|
|
2827
|
-
unlockedStaked: Array<
|
|
2885
|
+
unlockedStaked: Array<Asset>;
|
|
2828
2886
|
/**
|
|
2829
2887
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2830
2888
|
*/
|
|
2831
|
-
lockedPlatform: Array<
|
|
2889
|
+
lockedPlatform: Array<Asset>;
|
|
2832
2890
|
/**
|
|
2833
2891
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2834
2892
|
*/
|
|
2835
|
-
lockedStakeable: Array<
|
|
2893
|
+
lockedStakeable: Array<Asset>;
|
|
2836
2894
|
/**
|
|
2837
2895
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2838
2896
|
*/
|
|
2839
|
-
lockedStaked: Array<
|
|
2897
|
+
lockedStaked: Array<Asset>;
|
|
2840
2898
|
/**
|
|
2841
2899
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2842
2900
|
*/
|
|
2843
|
-
pendingStaked: Array<
|
|
2901
|
+
pendingStaked: Array<Asset>;
|
|
2844
2902
|
/**
|
|
2845
2903
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2846
2904
|
*/
|
|
@@ -3104,7 +3162,7 @@ type HistoricalReward = {
|
|
|
3104
3162
|
/**
|
|
3105
3163
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3106
3164
|
*/
|
|
3107
|
-
reward:
|
|
3165
|
+
reward: Asset;
|
|
3108
3166
|
rewardTxHash: string;
|
|
3109
3167
|
};
|
|
3110
3168
|
|
|
@@ -3131,7 +3189,7 @@ type PendingReward = {
|
|
|
3131
3189
|
/**
|
|
3132
3190
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
3133
3191
|
*/
|
|
3134
|
-
estimatedReward:
|
|
3192
|
+
estimatedReward: Asset;
|
|
3135
3193
|
};
|
|
3136
3194
|
|
|
3137
3195
|
type ListPendingRewardsResponse = {
|
|
@@ -3157,7 +3215,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3157
3215
|
*/
|
|
3158
3216
|
network: Network;
|
|
3159
3217
|
/**
|
|
3160
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3218
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
3161
3219
|
*/
|
|
3162
3220
|
addresses?: string;
|
|
3163
3221
|
/**
|
|
@@ -3169,7 +3227,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3169
3227
|
*/
|
|
3170
3228
|
pageToken?: string;
|
|
3171
3229
|
/**
|
|
3172
|
-
* A comma separated list of node ids to filter by.
|
|
3230
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3173
3231
|
*/
|
|
3174
3232
|
nodeIds?: string;
|
|
3175
3233
|
/**
|
|
@@ -3189,7 +3247,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3189
3247
|
*/
|
|
3190
3248
|
network: Network;
|
|
3191
3249
|
/**
|
|
3192
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3250
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
3193
3251
|
*/
|
|
3194
3252
|
addresses?: string;
|
|
3195
3253
|
/**
|
|
@@ -3201,7 +3259,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3201
3259
|
*/
|
|
3202
3260
|
pageToken?: string;
|
|
3203
3261
|
/**
|
|
3204
|
-
* A comma separated list of node ids to filter by.
|
|
3262
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3205
3263
|
*/
|
|
3206
3264
|
nodeIds?: string;
|
|
3207
3265
|
/**
|
|
@@ -3211,40 +3269,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3211
3269
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
3212
3270
|
}
|
|
3213
3271
|
|
|
3214
|
-
type Asset = {
|
|
3215
|
-
/**
|
|
3216
|
-
* Unique ID for an asset.
|
|
3217
|
-
*/
|
|
3218
|
-
assetId: string;
|
|
3219
|
-
/**
|
|
3220
|
-
* Name of this asset.
|
|
3221
|
-
*/
|
|
3222
|
-
name: string;
|
|
3223
|
-
/**
|
|
3224
|
-
* Symbol for this asset (max 4 characters).
|
|
3225
|
-
*/
|
|
3226
|
-
symbol: string;
|
|
3227
|
-
/**
|
|
3228
|
-
* Denomination of this asset to represent fungibility.
|
|
3229
|
-
*/
|
|
3230
|
-
denomination: number;
|
|
3231
|
-
/**
|
|
3232
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3233
|
-
*/
|
|
3234
|
-
type: string;
|
|
3235
|
-
/**
|
|
3236
|
-
* Amount of the asset.
|
|
3237
|
-
*/
|
|
3238
|
-
amount: string;
|
|
3239
|
-
};
|
|
3240
|
-
|
|
3241
3272
|
type UtxoCredential = {
|
|
3242
3273
|
/**
|
|
3243
|
-
* Signature provided to consume the output
|
|
3274
|
+
* Signature provided to consume the output.
|
|
3244
3275
|
*/
|
|
3245
3276
|
signature?: string;
|
|
3246
3277
|
/**
|
|
3247
|
-
* Public key associated with the signature
|
|
3278
|
+
* Public key associated with the signature.
|
|
3248
3279
|
*/
|
|
3249
3280
|
publicKey?: string;
|
|
3250
3281
|
};
|
|
@@ -3266,66 +3297,66 @@ type EVMInput = {
|
|
|
3266
3297
|
|
|
3267
3298
|
type Utxo = {
|
|
3268
3299
|
/**
|
|
3269
|
-
*
|
|
3300
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3270
3301
|
*/
|
|
3271
|
-
|
|
3302
|
+
addresses: Array<string>;
|
|
3272
3303
|
asset: Asset;
|
|
3273
3304
|
/**
|
|
3274
|
-
*
|
|
3305
|
+
* Blockchain ID on which this output is consumed on.
|
|
3275
3306
|
*/
|
|
3276
|
-
|
|
3307
|
+
consumedOnChainId: string;
|
|
3277
3308
|
/**
|
|
3278
|
-
*
|
|
3309
|
+
* Transaction ID that consumed this output.
|
|
3279
3310
|
*/
|
|
3280
|
-
|
|
3311
|
+
consumingTxHash?: string;
|
|
3281
3312
|
/**
|
|
3282
|
-
* Blockchain ID on which this output is
|
|
3313
|
+
* Blockchain ID on which this output is created on.
|
|
3283
3314
|
*/
|
|
3284
|
-
|
|
3315
|
+
createdOnChainId: string;
|
|
3285
3316
|
/**
|
|
3286
|
-
*
|
|
3317
|
+
* UTXO ID for this output.
|
|
3287
3318
|
*/
|
|
3288
|
-
|
|
3319
|
+
utxoId: string;
|
|
3289
3320
|
/**
|
|
3290
|
-
*
|
|
3321
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
3291
3322
|
*/
|
|
3292
|
-
|
|
3323
|
+
consumingTxTimestamp?: number;
|
|
3293
3324
|
/**
|
|
3294
|
-
*
|
|
3325
|
+
* Transaction ID that created this output.
|
|
3295
3326
|
*/
|
|
3296
|
-
|
|
3327
|
+
creationTxHash: string;
|
|
3297
3328
|
/**
|
|
3298
|
-
*
|
|
3329
|
+
* Credentials that signed the transaction to consume this utxo
|
|
3299
3330
|
*/
|
|
3300
|
-
|
|
3331
|
+
credentials?: Array<UtxoCredential>;
|
|
3301
3332
|
/**
|
|
3302
|
-
*
|
|
3333
|
+
* Index representing the minting set for the NFT mint output.
|
|
3303
3334
|
*/
|
|
3304
|
-
|
|
3335
|
+
groupId?: number;
|
|
3305
3336
|
/**
|
|
3306
3337
|
* Locktime in seconds after which this output can be consumed.
|
|
3307
3338
|
*/
|
|
3308
3339
|
locktime: number;
|
|
3309
3340
|
/**
|
|
3310
|
-
*
|
|
3341
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3311
3342
|
*/
|
|
3312
|
-
|
|
3343
|
+
outputIndex: string;
|
|
3313
3344
|
/**
|
|
3314
|
-
*
|
|
3345
|
+
* Hex encoded data for NFT assets.
|
|
3315
3346
|
*/
|
|
3316
|
-
|
|
3347
|
+
payload?: string;
|
|
3317
3348
|
/**
|
|
3318
|
-
*
|
|
3349
|
+
* Minimum number of signatures required to consume this output.
|
|
3319
3350
|
*/
|
|
3320
|
-
|
|
3351
|
+
threshold: number;
|
|
3321
3352
|
/**
|
|
3322
|
-
*
|
|
3353
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3323
3354
|
*/
|
|
3324
|
-
|
|
3355
|
+
timestamp: number;
|
|
3325
3356
|
/**
|
|
3326
|
-
*
|
|
3357
|
+
* Type of output.
|
|
3327
3358
|
*/
|
|
3328
|
-
|
|
3359
|
+
utxoType: string;
|
|
3329
3360
|
};
|
|
3330
3361
|
|
|
3331
3362
|
type CChainExportTransaction = {
|
|
@@ -3456,17 +3487,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3456
3487
|
|
|
3457
3488
|
declare enum PChainTransactionType {
|
|
3458
3489
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3459
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3460
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3461
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3462
3490
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3463
|
-
|
|
3464
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3491
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3465
3492
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3466
3493
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3467
3494
|
IMPORT_TX = "ImportTx",
|
|
3468
3495
|
EXPORT_TX = "ExportTx",
|
|
3469
3496
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3497
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3498
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3499
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3500
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3501
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3470
3502
|
UNKNOWN = "UNKNOWN"
|
|
3471
3503
|
}
|
|
3472
3504
|
|
|
@@ -3477,29 +3509,48 @@ declare enum UtxoType {
|
|
|
3477
3509
|
|
|
3478
3510
|
type PChainUtxo = {
|
|
3479
3511
|
/**
|
|
3480
|
-
*
|
|
3512
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3481
3513
|
*/
|
|
3482
3514
|
addresses: Array<string>;
|
|
3515
|
+
asset: Asset;
|
|
3516
|
+
/**
|
|
3517
|
+
* Blockchain ID on which this output is consumed on.
|
|
3518
|
+
*/
|
|
3519
|
+
consumedOnChainId: string;
|
|
3520
|
+
/**
|
|
3521
|
+
* Transaction ID that consumed this output.
|
|
3522
|
+
*/
|
|
3523
|
+
consumingTxHash?: string;
|
|
3524
|
+
/**
|
|
3525
|
+
* Blockchain ID on which this output is created on.
|
|
3526
|
+
*/
|
|
3527
|
+
createdOnChainId: string;
|
|
3528
|
+
/**
|
|
3529
|
+
* UTXO ID for this output.
|
|
3530
|
+
*/
|
|
3483
3531
|
utxoId: string;
|
|
3484
|
-
|
|
3485
|
-
|
|
3532
|
+
/**
|
|
3533
|
+
* @deprecated
|
|
3534
|
+
*/
|
|
3535
|
+
amount: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* @deprecated
|
|
3538
|
+
*/
|
|
3539
|
+
assetId: string;
|
|
3486
3540
|
blockNumber: string;
|
|
3487
3541
|
blockTimestamp: number;
|
|
3488
|
-
consumingTxHash?: string;
|
|
3489
|
-
consumingBlockTimestamp?: number;
|
|
3490
3542
|
consumingBlockNumber?: string;
|
|
3491
|
-
|
|
3492
|
-
utxoType: UtxoType;
|
|
3493
|
-
amount: string;
|
|
3494
|
-
stakeableLocktime?: number;
|
|
3543
|
+
consumingBlockTimestamp?: number;
|
|
3495
3544
|
platformLocktime?: number;
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3545
|
+
outputIndex: number;
|
|
3546
|
+
rewardType?: RewardType;
|
|
3547
|
+
stakeableLocktime?: number;
|
|
3499
3548
|
staked?: boolean;
|
|
3500
|
-
|
|
3549
|
+
threshold?: number;
|
|
3550
|
+
txHash: string;
|
|
3501
3551
|
utxoEndTimestamp?: number;
|
|
3502
|
-
|
|
3552
|
+
utxoStartTimestamp?: number;
|
|
3553
|
+
utxoType: UtxoType;
|
|
3503
3554
|
};
|
|
3504
3555
|
|
|
3505
3556
|
type PChainTransaction = {
|
|
@@ -3527,15 +3578,15 @@ type PChainTransaction = {
|
|
|
3527
3578
|
/**
|
|
3528
3579
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3529
3580
|
*/
|
|
3530
|
-
value: Array<
|
|
3581
|
+
value: Array<Asset>;
|
|
3531
3582
|
/**
|
|
3532
3583
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3533
3584
|
*/
|
|
3534
|
-
amountBurned: Array<
|
|
3585
|
+
amountBurned: Array<Asset>;
|
|
3535
3586
|
/**
|
|
3536
3587
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3537
3588
|
*/
|
|
3538
|
-
amountStaked: Array<
|
|
3589
|
+
amountStaked: Array<Asset>;
|
|
3539
3590
|
/**
|
|
3540
3591
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3541
3592
|
*/
|
|
@@ -3738,17 +3789,18 @@ declare enum PChainId {
|
|
|
3738
3789
|
|
|
3739
3790
|
declare enum PrimaryNetworkTxType {
|
|
3740
3791
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3741
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3742
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3743
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3744
3792
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3745
|
-
|
|
3746
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3793
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3747
3794
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3748
3795
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3749
3796
|
IMPORT_TX = "ImportTx",
|
|
3750
3797
|
EXPORT_TX = "ExportTx",
|
|
3751
3798
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3799
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3800
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3801
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3802
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3803
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3752
3804
|
UNKNOWN = "UNKNOWN",
|
|
3753
3805
|
BASE_TX = "BaseTx",
|
|
3754
3806
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -4115,4 +4167,4 @@ declare class ApiError extends Error {
|
|
|
4115
4167
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4116
4168
|
}
|
|
4117
4169
|
|
|
4118
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService,
|
|
4170
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|
package/dist/index.js
CHANGED
|
@@ -391,6 +391,12 @@ class DefaultService {
|
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
|
+
generateSharedSecret() {
|
|
395
|
+
return this.httpRequest.request({
|
|
396
|
+
method: "POST",
|
|
397
|
+
url: "/v1/webhooks:generateSharedSecret"
|
|
398
|
+
});
|
|
399
|
+
}
|
|
394
400
|
}
|
|
395
401
|
|
|
396
402
|
class EvmBalancesService {
|
|
@@ -1041,15 +1047,15 @@ class PrimaryNetworkService {
|
|
|
1041
1047
|
network,
|
|
1042
1048
|
pageSize = 10,
|
|
1043
1049
|
pageToken,
|
|
1044
|
-
|
|
1045
|
-
|
|
1050
|
+
nodeIds,
|
|
1051
|
+
sortOrder,
|
|
1052
|
+
validationStatus,
|
|
1046
1053
|
minDelegationCapacity,
|
|
1047
1054
|
maxDelegationCapacity,
|
|
1055
|
+
minTimeRemaining,
|
|
1056
|
+
maxTimeRemaining,
|
|
1048
1057
|
minFeePercentage,
|
|
1049
1058
|
maxFeePercentage,
|
|
1050
|
-
nodeIds,
|
|
1051
|
-
sortOrder,
|
|
1052
|
-
validationStatus,
|
|
1053
1059
|
subnetId
|
|
1054
1060
|
}) {
|
|
1055
1061
|
return this.httpRequest.request({
|
|
@@ -1061,15 +1067,15 @@ class PrimaryNetworkService {
|
|
|
1061
1067
|
query: {
|
|
1062
1068
|
"pageSize": pageSize,
|
|
1063
1069
|
"pageToken": pageToken,
|
|
1064
|
-
"
|
|
1065
|
-
"
|
|
1070
|
+
"nodeIds": nodeIds,
|
|
1071
|
+
"sortOrder": sortOrder,
|
|
1072
|
+
"validationStatus": validationStatus,
|
|
1066
1073
|
"minDelegationCapacity": minDelegationCapacity,
|
|
1067
1074
|
"maxDelegationCapacity": maxDelegationCapacity,
|
|
1075
|
+
"minTimeRemaining": minTimeRemaining,
|
|
1076
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
1068
1077
|
"minFeePercentage": minFeePercentage,
|
|
1069
1078
|
"maxFeePercentage": maxFeePercentage,
|
|
1070
|
-
"nodeIds": nodeIds,
|
|
1071
|
-
"sortOrder": sortOrder,
|
|
1072
|
-
"validationStatus": validationStatus,
|
|
1073
1079
|
"subnetId": subnetId
|
|
1074
1080
|
}
|
|
1075
1081
|
});
|
|
@@ -1796,17 +1802,18 @@ var PChainId = /* @__PURE__ */ ((PChainId2) => {
|
|
|
1796
1802
|
|
|
1797
1803
|
var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
1798
1804
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1799
|
-
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1800
|
-
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1801
|
-
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1802
1805
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1803
|
-
PChainTransactionType2["
|
|
1804
|
-
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
1806
|
+
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1805
1807
|
PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
1806
1808
|
PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
1807
1809
|
PChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
1808
1810
|
PChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
1809
1811
|
PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
1812
|
+
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
1813
|
+
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1814
|
+
PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
1815
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1816
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1810
1817
|
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
1811
1818
|
return PChainTransactionType2;
|
|
1812
1819
|
})(PChainTransactionType || {});
|
|
@@ -1840,17 +1847,18 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
|
|
|
1840
1847
|
|
|
1841
1848
|
var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
1842
1849
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1843
|
-
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1844
|
-
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1845
|
-
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1846
1850
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1847
|
-
PrimaryNetworkTxType2["
|
|
1848
|
-
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
1851
|
+
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1849
1852
|
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
1850
1853
|
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
1851
1854
|
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
1852
1855
|
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
1853
1856
|
PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
1857
|
+
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
1858
|
+
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1859
|
+
PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
1860
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1861
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1854
1862
|
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
1855
1863
|
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
1856
1864
|
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
@@ -3,7 +3,10 @@ type AddressActivityMetadata = {
|
|
|
3
3
|
* Ethereum address for the address_activity event type
|
|
4
4
|
*/
|
|
5
5
|
address: string;
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Array of hexadecimal strings of the event signatures.
|
|
8
|
+
*/
|
|
9
|
+
eventSignatures?: Array<string>;
|
|
7
10
|
};
|
|
8
11
|
|
|
9
12
|
export { AddressActivityMetadata };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
3
|
|
|
4
4
|
type HistoricalReward = {
|
|
@@ -17,7 +17,7 @@ type HistoricalReward = {
|
|
|
17
17
|
/**
|
|
18
18
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
19
19
|
*/
|
|
20
|
-
reward:
|
|
20
|
+
reward: Asset;
|
|
21
21
|
rewardTxHash: string;
|
|
22
22
|
};
|
|
23
23
|
|