@avalabs/glacier-sdk 2.8.0-canary.5825aa6.0 → 2.8.0-canary.5a7c244.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 +139 -32
- package/dist/index.js +81 -33
- package/esm/generated/core/CancelablePromise.js +3 -6
- package/esm/generated/core/OpenAPI.d.ts +5 -5
- package/esm/generated/core/request.js +7 -22
- package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -1
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -1
- package/esm/generated/models/GlacierApiFeature.d.ts +2 -1
- package/esm/generated/models/GlacierApiFeature.js +1 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/PendingTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +10 -0
- package/esm/generated/services/EvmBalancesService.d.ts +5 -1
- package/esm/generated/services/EvmBalancesService.js +2 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +23 -8
- package/esm/generated/services/PrimaryNetworkService.js +10 -4
- package/esm/generated/services/TeleporterService.d.ts +9 -4
- package/esm/generated/services/TeleporterService.js +4 -2
- package/esm/generated/services/WebhooksService.d.ts +50 -2
- package/esm/generated/services/WebhooksService.js +45 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.js +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -40,11 +40,11 @@ type OpenAPIConfig = {
|
|
|
40
40
|
VERSION: string;
|
|
41
41
|
WITH_CREDENTIALS: boolean;
|
|
42
42
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
43
|
-
TOKEN?: string | Resolver<string
|
|
44
|
-
USERNAME?: string | Resolver<string
|
|
45
|
-
PASSWORD?: string | Resolver<string
|
|
46
|
-
HEADERS?: Headers | Resolver<Headers
|
|
47
|
-
ENCODE_PATH?: (
|
|
43
|
+
TOKEN?: string | Resolver<string>;
|
|
44
|
+
USERNAME?: string | Resolver<string>;
|
|
45
|
+
PASSWORD?: string | Resolver<string>;
|
|
46
|
+
HEADERS?: Headers | Resolver<Headers>;
|
|
47
|
+
ENCODE_PATH?: (path: string) => string;
|
|
48
48
|
};
|
|
49
49
|
declare const OpenAPI: OpenAPIConfig;
|
|
50
50
|
|
|
@@ -362,7 +362,7 @@ declare class EvmBalancesService {
|
|
|
362
362
|
* @returns ListErc20BalancesResponse
|
|
363
363
|
* @throws ApiError
|
|
364
364
|
*/
|
|
365
|
-
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
366
366
|
/**
|
|
367
367
|
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
368
368
|
*/
|
|
@@ -383,6 +383,10 @@ declare class EvmBalancesService {
|
|
|
383
383
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
384
|
*/
|
|
385
385
|
pageSize?: number;
|
|
386
|
+
/**
|
|
387
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
388
|
+
*/
|
|
389
|
+
filterSpamTokens?: boolean;
|
|
386
390
|
/**
|
|
387
391
|
* A comma separated list of contract addresses to filter by.
|
|
388
392
|
*/
|
|
@@ -682,11 +686,12 @@ type GetChainResponse = {
|
|
|
682
686
|
networkToken: NetworkToken;
|
|
683
687
|
chainLogoUri?: string;
|
|
684
688
|
private?: boolean;
|
|
685
|
-
enabledFeatures?: Array<'nftIndexing'>;
|
|
689
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
686
690
|
};
|
|
687
691
|
|
|
688
692
|
declare enum GlacierApiFeature {
|
|
689
|
-
NFT_INDEXING = "nftIndexing"
|
|
693
|
+
NFT_INDEXING = "nftIndexing",
|
|
694
|
+
WEBHOOKS = "webhooks"
|
|
690
695
|
}
|
|
691
696
|
|
|
692
697
|
type ChainInfo = {
|
|
@@ -706,7 +711,7 @@ type ChainInfo = {
|
|
|
706
711
|
networkToken: NetworkToken;
|
|
707
712
|
chainLogoUri?: string;
|
|
708
713
|
private?: boolean;
|
|
709
|
-
enabledFeatures?: Array<'nftIndexing'>;
|
|
714
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
710
715
|
};
|
|
711
716
|
|
|
712
717
|
type ListChainsResponse = {
|
|
@@ -2424,6 +2429,14 @@ declare enum Network {
|
|
|
2424
2429
|
FUJI = "fuji"
|
|
2425
2430
|
}
|
|
2426
2431
|
|
|
2432
|
+
declare enum SortByOption {
|
|
2433
|
+
BLOCK_INDEX = "blockIndex",
|
|
2434
|
+
DELEGATION_CAPACITY = "delegationCapacity",
|
|
2435
|
+
TIME_REMAINING = "timeRemaining",
|
|
2436
|
+
DELEGATION_FEE = "delegationFee",
|
|
2437
|
+
UPTIME_PERFORMANCE = "uptimePerformance"
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2427
2440
|
declare enum ValidationStatusType {
|
|
2428
2441
|
COMPLETED = "completed",
|
|
2429
2442
|
ACTIVE = "active",
|
|
@@ -2583,7 +2596,7 @@ declare class PrimaryNetworkService {
|
|
|
2583
2596
|
* @returns ListValidatorDetailsResponse
|
|
2584
2597
|
* @throws ApiError
|
|
2585
2598
|
*/
|
|
2586
|
-
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2599
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2587
2600
|
/**
|
|
2588
2601
|
* Either mainnet or a testnet.
|
|
2589
2602
|
*/
|
|
@@ -2600,6 +2613,12 @@ declare class PrimaryNetworkService {
|
|
|
2600
2613
|
* A comma separated list of node ids to filter by.
|
|
2601
2614
|
*/
|
|
2602
2615
|
nodeIds?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
2618
|
+
*
|
|
2619
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
2620
|
+
*/
|
|
2621
|
+
sortBy?: SortByOption;
|
|
2603
2622
|
/**
|
|
2604
2623
|
* 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.
|
|
2605
2624
|
*/
|
|
@@ -2625,13 +2644,21 @@ declare class PrimaryNetworkService {
|
|
|
2625
2644
|
*/
|
|
2626
2645
|
maxTimeRemaining?: number;
|
|
2627
2646
|
/**
|
|
2628
|
-
* 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.
|
|
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.0, as per the Avalanche spec.
|
|
2629
2648
|
*/
|
|
2630
2649
|
minFeePercentage?: number;
|
|
2631
2650
|
/**
|
|
2632
|
-
* 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.
|
|
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.0.
|
|
2633
2652
|
*/
|
|
2634
2653
|
maxFeePercentage?: number;
|
|
2654
|
+
/**
|
|
2655
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
2656
|
+
*/
|
|
2657
|
+
minUptimePerformance?: number;
|
|
2658
|
+
/**
|
|
2659
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
2660
|
+
*/
|
|
2661
|
+
maxUptimePerformance?: number;
|
|
2635
2662
|
/**
|
|
2636
2663
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2637
2664
|
*/
|
|
@@ -2643,7 +2670,7 @@ declare class PrimaryNetworkService {
|
|
|
2643
2670
|
* @returns ListValidatorDetailsResponse
|
|
2644
2671
|
* @throws ApiError
|
|
2645
2672
|
*/
|
|
2646
|
-
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize,
|
|
2673
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2647
2674
|
/**
|
|
2648
2675
|
* Either mainnet or a testnet.
|
|
2649
2676
|
*/
|
|
@@ -2660,14 +2687,14 @@ declare class PrimaryNetworkService {
|
|
|
2660
2687
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2661
2688
|
*/
|
|
2662
2689
|
pageSize?: number;
|
|
2663
|
-
/**
|
|
2664
|
-
* 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.
|
|
2665
|
-
*/
|
|
2666
|
-
sortOrder?: SortOrder;
|
|
2667
2690
|
/**
|
|
2668
2691
|
* Validation status of the node.
|
|
2669
2692
|
*/
|
|
2670
2693
|
validationStatus?: ValidationStatusType;
|
|
2694
|
+
/**
|
|
2695
|
+
* 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.
|
|
2696
|
+
*/
|
|
2697
|
+
sortOrder?: SortOrder;
|
|
2671
2698
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2672
2699
|
/**
|
|
2673
2700
|
* List delegators
|
|
@@ -4197,6 +4224,8 @@ type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
|
4197
4224
|
teleporterContractAddress: string;
|
|
4198
4225
|
sourceBlockchainId: string;
|
|
4199
4226
|
destinationBlockchainId: string;
|
|
4227
|
+
sourceEvmChainId: string;
|
|
4228
|
+
destinationEvmChainId: string;
|
|
4200
4229
|
messageNonce: string;
|
|
4201
4230
|
from: string;
|
|
4202
4231
|
to: string;
|
|
@@ -4225,6 +4254,8 @@ type DeliveredTeleporterMessage = {
|
|
|
4225
4254
|
teleporterContractAddress: string;
|
|
4226
4255
|
sourceBlockchainId: string;
|
|
4227
4256
|
destinationBlockchainId: string;
|
|
4257
|
+
sourceEvmChainId: string;
|
|
4258
|
+
destinationEvmChainId: string;
|
|
4228
4259
|
messageNonce: string;
|
|
4229
4260
|
from: string;
|
|
4230
4261
|
to: string;
|
|
@@ -4243,18 +4274,13 @@ declare namespace DeliveredTeleporterMessage {
|
|
|
4243
4274
|
}
|
|
4244
4275
|
}
|
|
4245
4276
|
|
|
4246
|
-
type NextPageToken = {
|
|
4247
|
-
/**
|
|
4248
|
-
* 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.
|
|
4249
|
-
*/
|
|
4250
|
-
nextPageToken?: string;
|
|
4251
|
-
};
|
|
4252
|
-
|
|
4253
4277
|
type PendingTeleporterMessage = {
|
|
4254
4278
|
messageId: string;
|
|
4255
4279
|
teleporterContractAddress: string;
|
|
4256
4280
|
sourceBlockchainId: string;
|
|
4257
4281
|
destinationBlockchainId: string;
|
|
4282
|
+
sourceEvmChainId: string;
|
|
4283
|
+
destinationEvmChainId: string;
|
|
4258
4284
|
messageNonce: string;
|
|
4259
4285
|
from: string;
|
|
4260
4286
|
to: string;
|
|
@@ -4272,6 +4298,14 @@ declare namespace PendingTeleporterMessage {
|
|
|
4272
4298
|
}
|
|
4273
4299
|
}
|
|
4274
4300
|
|
|
4301
|
+
type ListTeleporterMessagesResponse = {
|
|
4302
|
+
/**
|
|
4303
|
+
* 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.
|
|
4304
|
+
*/
|
|
4305
|
+
nextPageToken?: string;
|
|
4306
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4307
|
+
};
|
|
4308
|
+
|
|
4275
4309
|
declare class TeleporterService {
|
|
4276
4310
|
readonly httpRequest: BaseHttpRequest;
|
|
4277
4311
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -4290,10 +4324,10 @@ declare class TeleporterService {
|
|
|
4290
4324
|
/**
|
|
4291
4325
|
* List teleporter messages
|
|
4292
4326
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4293
|
-
* @returns
|
|
4327
|
+
* @returns ListTeleporterMessagesResponse
|
|
4294
4328
|
* @throws ApiError
|
|
4295
4329
|
*/
|
|
4296
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4330
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4297
4331
|
/**
|
|
4298
4332
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4299
4333
|
*/
|
|
@@ -4318,14 +4352,34 @@ declare class TeleporterService {
|
|
|
4318
4352
|
* The address of the sender of the teleporter message.
|
|
4319
4353
|
*/
|
|
4320
4354
|
from?: string;
|
|
4321
|
-
|
|
4355
|
+
/**
|
|
4356
|
+
* mainnet or testnet.
|
|
4357
|
+
*/
|
|
4358
|
+
network?: NetworkType;
|
|
4359
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4322
4360
|
}
|
|
4323
4361
|
|
|
4362
|
+
type AddressesChangeRequest = {
|
|
4363
|
+
/**
|
|
4364
|
+
* Ethereum address(es) for the address_activity event type
|
|
4365
|
+
*/
|
|
4366
|
+
addresses: Array<any[]>;
|
|
4367
|
+
};
|
|
4368
|
+
|
|
4369
|
+
type ListWebhookAddressesResponse = {
|
|
4370
|
+
/**
|
|
4371
|
+
* 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.
|
|
4372
|
+
*/
|
|
4373
|
+
nextPageToken?: string;
|
|
4374
|
+
addresses: Array<string>;
|
|
4375
|
+
totalAddresses: number;
|
|
4376
|
+
};
|
|
4377
|
+
|
|
4324
4378
|
type AddressActivityMetadata = {
|
|
4325
4379
|
/**
|
|
4326
|
-
* Ethereum address for the address_activity event type
|
|
4380
|
+
* Ethereum address(es) for the address_activity event type
|
|
4327
4381
|
*/
|
|
4328
|
-
|
|
4382
|
+
addresses: Array<any[]>;
|
|
4329
4383
|
/**
|
|
4330
4384
|
* Array of hexadecimal strings of the event signatures.
|
|
4331
4385
|
*/
|
|
@@ -4406,8 +4460,8 @@ declare class WebhooksService {
|
|
|
4406
4460
|
readonly httpRequest: BaseHttpRequest;
|
|
4407
4461
|
constructor(httpRequest: BaseHttpRequest);
|
|
4408
4462
|
/**
|
|
4409
|
-
*
|
|
4410
|
-
*
|
|
4463
|
+
* Create a webhook
|
|
4464
|
+
* Create a new webhook.
|
|
4411
4465
|
* @returns WebhookResponse
|
|
4412
4466
|
* @throws ApiError
|
|
4413
4467
|
*/
|
|
@@ -4485,6 +4539,52 @@ declare class WebhooksService {
|
|
|
4485
4539
|
* @throws ApiError
|
|
4486
4540
|
*/
|
|
4487
4541
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4542
|
+
/**
|
|
4543
|
+
* Add address(es) to a webhook
|
|
4544
|
+
* Adding address(es) to a given webhook.
|
|
4545
|
+
* @returns WebhookResponse
|
|
4546
|
+
* @throws ApiError
|
|
4547
|
+
*/
|
|
4548
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4549
|
+
/**
|
|
4550
|
+
* The webhook identifier.
|
|
4551
|
+
*/
|
|
4552
|
+
id: string;
|
|
4553
|
+
requestBody: AddressesChangeRequest;
|
|
4554
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4555
|
+
/**
|
|
4556
|
+
* Remove address(es) from a webhook
|
|
4557
|
+
* Removing address(es) from a given webhook.
|
|
4558
|
+
* @returns WebhookResponse
|
|
4559
|
+
* @throws ApiError
|
|
4560
|
+
*/
|
|
4561
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4562
|
+
/**
|
|
4563
|
+
* The webhook identifier.
|
|
4564
|
+
*/
|
|
4565
|
+
id: string;
|
|
4566
|
+
requestBody: AddressesChangeRequest;
|
|
4567
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4568
|
+
/**
|
|
4569
|
+
* Get address(es) from a given webhook
|
|
4570
|
+
* Retrieving address(es) from a given webhook.
|
|
4571
|
+
* @returns ListWebhookAddressesResponse
|
|
4572
|
+
* @throws ApiError
|
|
4573
|
+
*/
|
|
4574
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
4575
|
+
/**
|
|
4576
|
+
* The webhook identifier.
|
|
4577
|
+
*/
|
|
4578
|
+
id: string;
|
|
4579
|
+
/**
|
|
4580
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4581
|
+
*/
|
|
4582
|
+
pageToken?: string;
|
|
4583
|
+
/**
|
|
4584
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4585
|
+
*/
|
|
4586
|
+
pageSize?: number;
|
|
4587
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
4488
4588
|
}
|
|
4489
4589
|
|
|
4490
4590
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4529,4 +4629,11 @@ declare class ApiError extends Error {
|
|
|
4529
4629
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4530
4630
|
}
|
|
4531
4631
|
|
|
4532
|
-
|
|
4632
|
+
type NextPageToken = {
|
|
4633
|
+
/**
|
|
4634
|
+
* 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.
|
|
4635
|
+
*/
|
|
4636
|
+
nextPageToken?: string;
|
|
4637
|
+
};
|
|
4638
|
+
|
|
4639
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, 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, EVMOperationType, 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, GlacierApiFeature, 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, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, 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, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|
package/dist/index.js
CHANGED
|
@@ -53,16 +53,14 @@ class CancelablePromise {
|
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
this.#isResolved = true;
|
|
56
|
-
|
|
57
|
-
this.#resolve(value);
|
|
56
|
+
this.#resolve?.(value);
|
|
58
57
|
};
|
|
59
58
|
const onReject = (reason) => {
|
|
60
59
|
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
61
60
|
return;
|
|
62
61
|
}
|
|
63
62
|
this.#isRejected = true;
|
|
64
|
-
|
|
65
|
-
this.#reject(reason);
|
|
63
|
+
this.#reject?.(reason);
|
|
66
64
|
};
|
|
67
65
|
const onCancel = (cancelHandler) => {
|
|
68
66
|
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
@@ -110,8 +108,7 @@ class CancelablePromise {
|
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
110
|
this.#cancelHandlers.length = 0;
|
|
113
|
-
|
|
114
|
-
this.#reject(new CancelError("Request aborted"));
|
|
111
|
+
this.#reject?.(new CancelError("Request aborted"));
|
|
115
112
|
}
|
|
116
113
|
get isCancelled() {
|
|
117
114
|
return this.#isCancelled;
|
|
@@ -210,12 +207,10 @@ const resolve = async (options, resolver) => {
|
|
|
210
207
|
return resolver;
|
|
211
208
|
};
|
|
212
209
|
const getHeaders = async (config, options) => {
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
resolve(options, config.HEADERS)
|
|
218
|
-
]);
|
|
210
|
+
const token = await resolve(options, config.TOKEN);
|
|
211
|
+
const username = await resolve(options, config.USERNAME);
|
|
212
|
+
const password = await resolve(options, config.PASSWORD);
|
|
213
|
+
const additionalHeaders = await resolve(options, config.HEADERS);
|
|
219
214
|
const headers = Object.entries({
|
|
220
215
|
Accept: "application/json",
|
|
221
216
|
...additionalHeaders,
|
|
@@ -231,7 +226,7 @@ const getHeaders = async (config, options) => {
|
|
|
231
226
|
const credentials = base64(`${username}:${password}`);
|
|
232
227
|
headers["Authorization"] = `Basic ${credentials}`;
|
|
233
228
|
}
|
|
234
|
-
if (options.body
|
|
229
|
+
if (options.body) {
|
|
235
230
|
if (options.mediaType) {
|
|
236
231
|
headers["Content-Type"] = options.mediaType;
|
|
237
232
|
} else if (isBlob(options.body)) {
|
|
@@ -314,20 +309,7 @@ const catchErrorCodes = (options, result) => {
|
|
|
314
309
|
throw new ApiError(options, result, error);
|
|
315
310
|
}
|
|
316
311
|
if (!result.ok) {
|
|
317
|
-
|
|
318
|
-
const errorStatusText = result.statusText ?? "unknown";
|
|
319
|
-
const errorBody = (() => {
|
|
320
|
-
try {
|
|
321
|
-
return JSON.stringify(result.body, null, 2);
|
|
322
|
-
} catch (e) {
|
|
323
|
-
return void 0;
|
|
324
|
-
}
|
|
325
|
-
})();
|
|
326
|
-
throw new ApiError(
|
|
327
|
-
options,
|
|
328
|
-
result,
|
|
329
|
-
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
|
|
330
|
-
);
|
|
312
|
+
throw new ApiError(options, result, "Generic Error");
|
|
331
313
|
}
|
|
332
314
|
};
|
|
333
315
|
const request = (config, options) => {
|
|
@@ -407,6 +389,7 @@ class EvmBalancesService {
|
|
|
407
389
|
blockNumber,
|
|
408
390
|
pageToken,
|
|
409
391
|
pageSize = 10,
|
|
392
|
+
filterSpamTokens = true,
|
|
410
393
|
contractAddresses,
|
|
411
394
|
currency
|
|
412
395
|
}) {
|
|
@@ -421,6 +404,7 @@ class EvmBalancesService {
|
|
|
421
404
|
"blockNumber": blockNumber,
|
|
422
405
|
"pageToken": pageToken,
|
|
423
406
|
"pageSize": pageSize,
|
|
407
|
+
"filterSpamTokens": filterSpamTokens,
|
|
424
408
|
"contractAddresses": contractAddresses,
|
|
425
409
|
"currency": currency
|
|
426
410
|
}
|
|
@@ -1029,6 +1013,7 @@ class PrimaryNetworkService {
|
|
|
1029
1013
|
pageToken,
|
|
1030
1014
|
pageSize = 10,
|
|
1031
1015
|
nodeIds,
|
|
1016
|
+
sortBy,
|
|
1032
1017
|
sortOrder,
|
|
1033
1018
|
validationStatus,
|
|
1034
1019
|
minDelegationCapacity,
|
|
@@ -1037,6 +1022,8 @@ class PrimaryNetworkService {
|
|
|
1037
1022
|
maxTimeRemaining,
|
|
1038
1023
|
minFeePercentage,
|
|
1039
1024
|
maxFeePercentage,
|
|
1025
|
+
minUptimePerformance,
|
|
1026
|
+
maxUptimePerformance,
|
|
1040
1027
|
subnetId
|
|
1041
1028
|
}) {
|
|
1042
1029
|
return this.httpRequest.request({
|
|
@@ -1049,6 +1036,7 @@ class PrimaryNetworkService {
|
|
|
1049
1036
|
"pageToken": pageToken,
|
|
1050
1037
|
"pageSize": pageSize,
|
|
1051
1038
|
"nodeIds": nodeIds,
|
|
1039
|
+
"sortBy": sortBy,
|
|
1052
1040
|
"sortOrder": sortOrder,
|
|
1053
1041
|
"validationStatus": validationStatus,
|
|
1054
1042
|
"minDelegationCapacity": minDelegationCapacity,
|
|
@@ -1057,6 +1045,8 @@ class PrimaryNetworkService {
|
|
|
1057
1045
|
"maxTimeRemaining": maxTimeRemaining,
|
|
1058
1046
|
"minFeePercentage": minFeePercentage,
|
|
1059
1047
|
"maxFeePercentage": maxFeePercentage,
|
|
1048
|
+
"minUptimePerformance": minUptimePerformance,
|
|
1049
|
+
"maxUptimePerformance": maxUptimePerformance,
|
|
1060
1050
|
"subnetId": subnetId
|
|
1061
1051
|
}
|
|
1062
1052
|
});
|
|
@@ -1066,8 +1056,8 @@ class PrimaryNetworkService {
|
|
|
1066
1056
|
nodeId,
|
|
1067
1057
|
pageToken,
|
|
1068
1058
|
pageSize = 10,
|
|
1069
|
-
|
|
1070
|
-
|
|
1059
|
+
validationStatus,
|
|
1060
|
+
sortOrder
|
|
1071
1061
|
}) {
|
|
1072
1062
|
return this.httpRequest.request({
|
|
1073
1063
|
method: "GET",
|
|
@@ -1079,8 +1069,8 @@ class PrimaryNetworkService {
|
|
|
1079
1069
|
query: {
|
|
1080
1070
|
"pageToken": pageToken,
|
|
1081
1071
|
"pageSize": pageSize,
|
|
1082
|
-
"
|
|
1083
|
-
"
|
|
1072
|
+
"validationStatus": validationStatus,
|
|
1073
|
+
"sortOrder": sortOrder
|
|
1084
1074
|
}
|
|
1085
1075
|
});
|
|
1086
1076
|
}
|
|
@@ -1497,7 +1487,8 @@ class TeleporterService {
|
|
|
1497
1487
|
sourceBlockchainId,
|
|
1498
1488
|
destinationBlockchainId,
|
|
1499
1489
|
to,
|
|
1500
|
-
from
|
|
1490
|
+
from,
|
|
1491
|
+
network
|
|
1501
1492
|
}) {
|
|
1502
1493
|
return this.httpRequest.request({
|
|
1503
1494
|
method: "GET",
|
|
@@ -1508,7 +1499,8 @@ class TeleporterService {
|
|
|
1508
1499
|
"sourceBlockchainId": sourceBlockchainId,
|
|
1509
1500
|
"destinationBlockchainId": destinationBlockchainId,
|
|
1510
1501
|
"to": to,
|
|
1511
|
-
"from": from
|
|
1502
|
+
"from": from,
|
|
1503
|
+
"network": network
|
|
1512
1504
|
}
|
|
1513
1505
|
});
|
|
1514
1506
|
}
|
|
@@ -1591,6 +1583,51 @@ class WebhooksService {
|
|
|
1591
1583
|
url: "/v1/webhooks:getSharedSecret"
|
|
1592
1584
|
});
|
|
1593
1585
|
}
|
|
1586
|
+
addAddressesToWebhook({
|
|
1587
|
+
id,
|
|
1588
|
+
requestBody
|
|
1589
|
+
}) {
|
|
1590
|
+
return this.httpRequest.request({
|
|
1591
|
+
method: "PATCH",
|
|
1592
|
+
url: "/v1/webhooks/{id}/addresses",
|
|
1593
|
+
path: {
|
|
1594
|
+
"id": id
|
|
1595
|
+
},
|
|
1596
|
+
body: requestBody,
|
|
1597
|
+
mediaType: "application/json"
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
removeAddressesFromWebhook({
|
|
1601
|
+
id,
|
|
1602
|
+
requestBody
|
|
1603
|
+
}) {
|
|
1604
|
+
return this.httpRequest.request({
|
|
1605
|
+
method: "DELETE",
|
|
1606
|
+
url: "/v1/webhooks/{id}/addresses",
|
|
1607
|
+
path: {
|
|
1608
|
+
"id": id
|
|
1609
|
+
},
|
|
1610
|
+
body: requestBody,
|
|
1611
|
+
mediaType: "application/json"
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
getAddressesFromWebhook({
|
|
1615
|
+
id,
|
|
1616
|
+
pageToken,
|
|
1617
|
+
pageSize = 10
|
|
1618
|
+
}) {
|
|
1619
|
+
return this.httpRequest.request({
|
|
1620
|
+
method: "GET",
|
|
1621
|
+
url: "/v1/webhooks/{id}/addresses",
|
|
1622
|
+
path: {
|
|
1623
|
+
"id": id
|
|
1624
|
+
},
|
|
1625
|
+
query: {
|
|
1626
|
+
"pageToken": pageToken,
|
|
1627
|
+
"pageSize": pageSize
|
|
1628
|
+
}
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1594
1631
|
}
|
|
1595
1632
|
|
|
1596
1633
|
class Glacier {
|
|
@@ -1871,6 +1908,7 @@ var EVMOperationType = /* @__PURE__ */ ((EVMOperationType2) => {
|
|
|
1871
1908
|
|
|
1872
1909
|
var GlacierApiFeature = /* @__PURE__ */ ((GlacierApiFeature2) => {
|
|
1873
1910
|
GlacierApiFeature2["NFT_INDEXING"] = "nftIndexing";
|
|
1911
|
+
GlacierApiFeature2["WEBHOOKS"] = "webhooks";
|
|
1874
1912
|
return GlacierApiFeature2;
|
|
1875
1913
|
})(GlacierApiFeature || {});
|
|
1876
1914
|
|
|
@@ -2072,6 +2110,15 @@ var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
|
2072
2110
|
return RewardType2;
|
|
2073
2111
|
})(RewardType || {});
|
|
2074
2112
|
|
|
2113
|
+
var SortByOption = /* @__PURE__ */ ((SortByOption2) => {
|
|
2114
|
+
SortByOption2["BLOCK_INDEX"] = "blockIndex";
|
|
2115
|
+
SortByOption2["DELEGATION_CAPACITY"] = "delegationCapacity";
|
|
2116
|
+
SortByOption2["TIME_REMAINING"] = "timeRemaining";
|
|
2117
|
+
SortByOption2["DELEGATION_FEE"] = "delegationFee";
|
|
2118
|
+
SortByOption2["UPTIME_PERFORMANCE"] = "uptimePerformance";
|
|
2119
|
+
return SortByOption2;
|
|
2120
|
+
})(SortByOption || {});
|
|
2121
|
+
|
|
2075
2122
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
2076
2123
|
SortOrder2["ASC"] = "asc";
|
|
2077
2124
|
SortOrder2["DESC"] = "desc";
|
|
@@ -2219,6 +2266,7 @@ exports.PrimaryNetworkVerticesService = PrimaryNetworkVerticesService;
|
|
|
2219
2266
|
exports.ResourceLinkType = ResourceLinkType;
|
|
2220
2267
|
exports.RewardType = RewardType;
|
|
2221
2268
|
exports.RpcService = RpcService;
|
|
2269
|
+
exports.SortByOption = SortByOption;
|
|
2222
2270
|
exports.SortOrder = SortOrder;
|
|
2223
2271
|
exports.TeleporterService = TeleporterService;
|
|
2224
2272
|
exports.TransactionMethodType = TransactionMethodType;
|
|
@@ -28,16 +28,14 @@ class CancelablePromise {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
this.#isResolved = true;
|
|
31
|
-
|
|
32
|
-
this.#resolve(value);
|
|
31
|
+
this.#resolve?.(value);
|
|
33
32
|
};
|
|
34
33
|
const onReject = (reason) => {
|
|
35
34
|
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
36
35
|
return;
|
|
37
36
|
}
|
|
38
37
|
this.#isRejected = true;
|
|
39
|
-
|
|
40
|
-
this.#reject(reason);
|
|
38
|
+
this.#reject?.(reason);
|
|
41
39
|
};
|
|
42
40
|
const onCancel = (cancelHandler) => {
|
|
43
41
|
if (this.#isResolved || this.#isRejected || this.#isCancelled) {
|
|
@@ -85,8 +83,7 @@ class CancelablePromise {
|
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
85
|
this.#cancelHandlers.length = 0;
|
|
88
|
-
|
|
89
|
-
this.#reject(new CancelError("Request aborted"));
|
|
86
|
+
this.#reject?.(new CancelError("Request aborted"));
|
|
90
87
|
}
|
|
91
88
|
get isCancelled() {
|
|
92
89
|
return this.#isCancelled;
|
|
@@ -7,11 +7,11 @@ type OpenAPIConfig = {
|
|
|
7
7
|
VERSION: string;
|
|
8
8
|
WITH_CREDENTIALS: boolean;
|
|
9
9
|
CREDENTIALS: 'include' | 'omit' | 'same-origin';
|
|
10
|
-
TOKEN?: string | Resolver<string
|
|
11
|
-
USERNAME?: string | Resolver<string
|
|
12
|
-
PASSWORD?: string | Resolver<string
|
|
13
|
-
HEADERS?: Headers | Resolver<Headers
|
|
14
|
-
ENCODE_PATH?: (
|
|
10
|
+
TOKEN?: string | Resolver<string>;
|
|
11
|
+
USERNAME?: string | Resolver<string>;
|
|
12
|
+
PASSWORD?: string | Resolver<string>;
|
|
13
|
+
HEADERS?: Headers | Resolver<Headers>;
|
|
14
|
+
ENCODE_PATH?: (path: string) => string;
|
|
15
15
|
};
|
|
16
16
|
declare const OpenAPI: OpenAPIConfig;
|
|
17
17
|
|
|
@@ -93,12 +93,10 @@ const resolve = async (options, resolver) => {
|
|
|
93
93
|
return resolver;
|
|
94
94
|
};
|
|
95
95
|
const getHeaders = async (config, options) => {
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
resolve(options, config.HEADERS)
|
|
101
|
-
]);
|
|
96
|
+
const token = await resolve(options, config.TOKEN);
|
|
97
|
+
const username = await resolve(options, config.USERNAME);
|
|
98
|
+
const password = await resolve(options, config.PASSWORD);
|
|
99
|
+
const additionalHeaders = await resolve(options, config.HEADERS);
|
|
102
100
|
const headers = Object.entries({
|
|
103
101
|
Accept: "application/json",
|
|
104
102
|
...additionalHeaders,
|
|
@@ -114,7 +112,7 @@ const getHeaders = async (config, options) => {
|
|
|
114
112
|
const credentials = base64(`${username}:${password}`);
|
|
115
113
|
headers["Authorization"] = `Basic ${credentials}`;
|
|
116
114
|
}
|
|
117
|
-
if (options.body
|
|
115
|
+
if (options.body) {
|
|
118
116
|
if (options.mediaType) {
|
|
119
117
|
headers["Content-Type"] = options.mediaType;
|
|
120
118
|
} else if (isBlob(options.body)) {
|
|
@@ -197,20 +195,7 @@ const catchErrorCodes = (options, result) => {
|
|
|
197
195
|
throw new ApiError(options, result, error);
|
|
198
196
|
}
|
|
199
197
|
if (!result.ok) {
|
|
200
|
-
|
|
201
|
-
const errorStatusText = result.statusText ?? "unknown";
|
|
202
|
-
const errorBody = (() => {
|
|
203
|
-
try {
|
|
204
|
-
return JSON.stringify(result.body, null, 2);
|
|
205
|
-
} catch (e) {
|
|
206
|
-
return void 0;
|
|
207
|
-
}
|
|
208
|
-
})();
|
|
209
|
-
throw new ApiError(
|
|
210
|
-
options,
|
|
211
|
-
result,
|
|
212
|
-
`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
|
|
213
|
-
);
|
|
198
|
+
throw new ApiError(options, result, "Generic Error");
|
|
214
199
|
}
|
|
215
200
|
};
|
|
216
201
|
const request = (config, options) => {
|
|
@@ -240,4 +225,4 @@ const request = (config, options) => {
|
|
|
240
225
|
});
|
|
241
226
|
};
|
|
242
227
|
|
|
243
|
-
export {
|
|
228
|
+
export { request, sendRequest };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type AddressActivityMetadata = {
|
|
2
2
|
/**
|
|
3
|
-
* Ethereum address for the address_activity event type
|
|
3
|
+
* Ethereum address(es) for the address_activity event type
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
addresses: Array<any[]>;
|
|
6
6
|
/**
|
|
7
7
|
* Array of hexadecimal strings of the event signatures.
|
|
8
8
|
*/
|
|
@@ -7,6 +7,8 @@ type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
|
7
7
|
teleporterContractAddress: string;
|
|
8
8
|
sourceBlockchainId: string;
|
|
9
9
|
destinationBlockchainId: string;
|
|
10
|
+
sourceEvmChainId: string;
|
|
11
|
+
destinationEvmChainId: string;
|
|
10
12
|
messageNonce: string;
|
|
11
13
|
from: string;
|
|
12
14
|
to: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeliveredTeleporterMessage } from './DeliveredTeleporterMessage.js';
|
|
2
|
+
import { PendingTeleporterMessage } from './PendingTeleporterMessage.js';
|
|
3
|
+
|
|
4
|
+
type ListTeleporterMessagesResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* 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.
|
|
7
|
+
*/
|
|
8
|
+
nextPageToken?: string;
|
|
9
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ListTeleporterMessagesResponse };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ListWebhookAddressesResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
*/
|
|
5
|
+
nextPageToken?: string;
|
|
6
|
+
addresses: Array<string>;
|
|
7
|
+
totalAddresses: number;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { ListWebhookAddressesResponse };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var SortByOption = /* @__PURE__ */ ((SortByOption2) => {
|
|
2
|
+
SortByOption2["BLOCK_INDEX"] = "blockIndex";
|
|
3
|
+
SortByOption2["DELEGATION_CAPACITY"] = "delegationCapacity";
|
|
4
|
+
SortByOption2["TIME_REMAINING"] = "timeRemaining";
|
|
5
|
+
SortByOption2["DELEGATION_FEE"] = "delegationFee";
|
|
6
|
+
SortByOption2["UPTIME_PERFORMANCE"] = "uptimePerformance";
|
|
7
|
+
return SortByOption2;
|
|
8
|
+
})(SortByOption || {});
|
|
9
|
+
|
|
10
|
+
export { SortByOption };
|
|
@@ -46,7 +46,7 @@ declare class EvmBalancesService {
|
|
|
46
46
|
* @returns ListErc20BalancesResponse
|
|
47
47
|
* @throws ApiError
|
|
48
48
|
*/
|
|
49
|
-
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
49
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
50
50
|
/**
|
|
51
51
|
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
52
52
|
*/
|
|
@@ -67,6 +67,10 @@ declare class EvmBalancesService {
|
|
|
67
67
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
68
68
|
*/
|
|
69
69
|
pageSize?: number;
|
|
70
|
+
/**
|
|
71
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
72
|
+
*/
|
|
73
|
+
filterSpamTokens?: boolean;
|
|
70
74
|
/**
|
|
71
75
|
* A comma separated list of contract addresses to filter by.
|
|
72
76
|
*/
|
|
@@ -27,6 +27,7 @@ class EvmBalancesService {
|
|
|
27
27
|
blockNumber,
|
|
28
28
|
pageToken,
|
|
29
29
|
pageSize = 10,
|
|
30
|
+
filterSpamTokens = true,
|
|
30
31
|
contractAddresses,
|
|
31
32
|
currency
|
|
32
33
|
}) {
|
|
@@ -41,6 +42,7 @@ class EvmBalancesService {
|
|
|
41
42
|
"blockNumber": blockNumber,
|
|
42
43
|
"pageToken": pageToken,
|
|
43
44
|
"pageSize": pageSize,
|
|
45
|
+
"filterSpamTokens": filterSpamTokens,
|
|
44
46
|
"contractAddresses": contractAddresses,
|
|
45
47
|
"currency": currency
|
|
46
48
|
}
|
|
@@ -6,6 +6,7 @@ import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResp
|
|
|
6
6
|
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
7
7
|
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
8
8
|
import { Network } from '../models/Network.js';
|
|
9
|
+
import { SortByOption } from '../models/SortByOption.js';
|
|
9
10
|
import { SortOrder } from '../models/SortOrder.js';
|
|
10
11
|
import { ValidationStatusType } from '../models/ValidationStatusType.js';
|
|
11
12
|
import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
|
|
@@ -118,7 +119,7 @@ declare class PrimaryNetworkService {
|
|
|
118
119
|
* @returns ListValidatorDetailsResponse
|
|
119
120
|
* @throws ApiError
|
|
120
121
|
*/
|
|
121
|
-
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
122
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
122
123
|
/**
|
|
123
124
|
* Either mainnet or a testnet.
|
|
124
125
|
*/
|
|
@@ -135,6 +136,12 @@ declare class PrimaryNetworkService {
|
|
|
135
136
|
* A comma separated list of node ids to filter by.
|
|
136
137
|
*/
|
|
137
138
|
nodeIds?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
141
|
+
*
|
|
142
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
143
|
+
*/
|
|
144
|
+
sortBy?: SortByOption;
|
|
138
145
|
/**
|
|
139
146
|
* 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.
|
|
140
147
|
*/
|
|
@@ -160,13 +167,21 @@ declare class PrimaryNetworkService {
|
|
|
160
167
|
*/
|
|
161
168
|
maxTimeRemaining?: number;
|
|
162
169
|
/**
|
|
163
|
-
* 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.
|
|
170
|
+
* 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.0, as per the Avalanche spec.
|
|
164
171
|
*/
|
|
165
172
|
minFeePercentage?: number;
|
|
166
173
|
/**
|
|
167
|
-
* 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.
|
|
174
|
+
* 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.0.
|
|
168
175
|
*/
|
|
169
176
|
maxFeePercentage?: number;
|
|
177
|
+
/**
|
|
178
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
179
|
+
*/
|
|
180
|
+
minUptimePerformance?: number;
|
|
181
|
+
/**
|
|
182
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
183
|
+
*/
|
|
184
|
+
maxUptimePerformance?: number;
|
|
170
185
|
/**
|
|
171
186
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
187
|
*/
|
|
@@ -178,7 +193,7 @@ declare class PrimaryNetworkService {
|
|
|
178
193
|
* @returns ListValidatorDetailsResponse
|
|
179
194
|
* @throws ApiError
|
|
180
195
|
*/
|
|
181
|
-
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize,
|
|
196
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
182
197
|
/**
|
|
183
198
|
* Either mainnet or a testnet.
|
|
184
199
|
*/
|
|
@@ -195,14 +210,14 @@ declare class PrimaryNetworkService {
|
|
|
195
210
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
196
211
|
*/
|
|
197
212
|
pageSize?: number;
|
|
198
|
-
/**
|
|
199
|
-
* 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.
|
|
200
|
-
*/
|
|
201
|
-
sortOrder?: SortOrder;
|
|
202
213
|
/**
|
|
203
214
|
* Validation status of the node.
|
|
204
215
|
*/
|
|
205
216
|
validationStatus?: ValidationStatusType;
|
|
217
|
+
/**
|
|
218
|
+
* 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.
|
|
219
|
+
*/
|
|
220
|
+
sortOrder?: SortOrder;
|
|
206
221
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
207
222
|
/**
|
|
208
223
|
* List delegators
|
|
@@ -86,6 +86,7 @@ class PrimaryNetworkService {
|
|
|
86
86
|
pageToken,
|
|
87
87
|
pageSize = 10,
|
|
88
88
|
nodeIds,
|
|
89
|
+
sortBy,
|
|
89
90
|
sortOrder,
|
|
90
91
|
validationStatus,
|
|
91
92
|
minDelegationCapacity,
|
|
@@ -94,6 +95,8 @@ class PrimaryNetworkService {
|
|
|
94
95
|
maxTimeRemaining,
|
|
95
96
|
minFeePercentage,
|
|
96
97
|
maxFeePercentage,
|
|
98
|
+
minUptimePerformance,
|
|
99
|
+
maxUptimePerformance,
|
|
97
100
|
subnetId
|
|
98
101
|
}) {
|
|
99
102
|
return this.httpRequest.request({
|
|
@@ -106,6 +109,7 @@ class PrimaryNetworkService {
|
|
|
106
109
|
"pageToken": pageToken,
|
|
107
110
|
"pageSize": pageSize,
|
|
108
111
|
"nodeIds": nodeIds,
|
|
112
|
+
"sortBy": sortBy,
|
|
109
113
|
"sortOrder": sortOrder,
|
|
110
114
|
"validationStatus": validationStatus,
|
|
111
115
|
"minDelegationCapacity": minDelegationCapacity,
|
|
@@ -114,6 +118,8 @@ class PrimaryNetworkService {
|
|
|
114
118
|
"maxTimeRemaining": maxTimeRemaining,
|
|
115
119
|
"minFeePercentage": minFeePercentage,
|
|
116
120
|
"maxFeePercentage": maxFeePercentage,
|
|
121
|
+
"minUptimePerformance": minUptimePerformance,
|
|
122
|
+
"maxUptimePerformance": maxUptimePerformance,
|
|
117
123
|
"subnetId": subnetId
|
|
118
124
|
}
|
|
119
125
|
});
|
|
@@ -123,8 +129,8 @@ class PrimaryNetworkService {
|
|
|
123
129
|
nodeId,
|
|
124
130
|
pageToken,
|
|
125
131
|
pageSize = 10,
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
validationStatus,
|
|
133
|
+
sortOrder
|
|
128
134
|
}) {
|
|
129
135
|
return this.httpRequest.request({
|
|
130
136
|
method: "GET",
|
|
@@ -136,8 +142,8 @@ class PrimaryNetworkService {
|
|
|
136
142
|
query: {
|
|
137
143
|
"pageToken": pageToken,
|
|
138
144
|
"pageSize": pageSize,
|
|
139
|
-
"
|
|
140
|
-
"
|
|
145
|
+
"validationStatus": validationStatus,
|
|
146
|
+
"sortOrder": sortOrder
|
|
141
147
|
}
|
|
142
148
|
});
|
|
143
149
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
2
2
|
import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ListTeleporterMessagesResponse } from '../models/ListTeleporterMessagesResponse.js';
|
|
4
|
+
import { NetworkType } from '../models/NetworkType.js';
|
|
4
5
|
import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
|
|
5
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
7
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -23,10 +24,10 @@ declare class TeleporterService {
|
|
|
23
24
|
/**
|
|
24
25
|
* List teleporter messages
|
|
25
26
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
26
|
-
* @returns
|
|
27
|
+
* @returns ListTeleporterMessagesResponse
|
|
27
28
|
* @throws ApiError
|
|
28
29
|
*/
|
|
29
|
-
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
30
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
30
31
|
/**
|
|
31
32
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
33
|
*/
|
|
@@ -51,7 +52,11 @@ declare class TeleporterService {
|
|
|
51
52
|
* The address of the sender of the teleporter message.
|
|
52
53
|
*/
|
|
53
54
|
from?: string;
|
|
54
|
-
|
|
55
|
+
/**
|
|
56
|
+
* mainnet or testnet.
|
|
57
|
+
*/
|
|
58
|
+
network?: NetworkType;
|
|
59
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
export { TeleporterService };
|
|
@@ -19,7 +19,8 @@ class TeleporterService {
|
|
|
19
19
|
sourceBlockchainId,
|
|
20
20
|
destinationBlockchainId,
|
|
21
21
|
to,
|
|
22
|
-
from
|
|
22
|
+
from,
|
|
23
|
+
network
|
|
23
24
|
}) {
|
|
24
25
|
return this.httpRequest.request({
|
|
25
26
|
method: "GET",
|
|
@@ -30,7 +31,8 @@ class TeleporterService {
|
|
|
30
31
|
"sourceBlockchainId": sourceBlockchainId,
|
|
31
32
|
"destinationBlockchainId": destinationBlockchainId,
|
|
32
33
|
"to": to,
|
|
33
|
-
"from": from
|
|
34
|
+
"from": from,
|
|
35
|
+
"network": network
|
|
34
36
|
}
|
|
35
37
|
});
|
|
36
38
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AddressesChangeRequest } from '../models/AddressesChangeRequest.js';
|
|
2
|
+
import { ListWebhookAddressesResponse } from '../models/ListWebhookAddressesResponse.js';
|
|
1
3
|
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
2
4
|
import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
|
|
3
5
|
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
@@ -11,8 +13,8 @@ declare class WebhooksService {
|
|
|
11
13
|
readonly httpRequest: BaseHttpRequest;
|
|
12
14
|
constructor(httpRequest: BaseHttpRequest);
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
+
* Create a webhook
|
|
17
|
+
* Create a new webhook.
|
|
16
18
|
* @returns WebhookResponse
|
|
17
19
|
* @throws ApiError
|
|
18
20
|
*/
|
|
@@ -90,6 +92,52 @@ declare class WebhooksService {
|
|
|
90
92
|
* @throws ApiError
|
|
91
93
|
*/
|
|
92
94
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Add address(es) to a webhook
|
|
97
|
+
* Adding address(es) to a given webhook.
|
|
98
|
+
* @returns WebhookResponse
|
|
99
|
+
* @throws ApiError
|
|
100
|
+
*/
|
|
101
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
102
|
+
/**
|
|
103
|
+
* The webhook identifier.
|
|
104
|
+
*/
|
|
105
|
+
id: string;
|
|
106
|
+
requestBody: AddressesChangeRequest;
|
|
107
|
+
}): CancelablePromise<WebhookResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* Remove address(es) from a webhook
|
|
110
|
+
* Removing address(es) from a given webhook.
|
|
111
|
+
* @returns WebhookResponse
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
115
|
+
/**
|
|
116
|
+
* The webhook identifier.
|
|
117
|
+
*/
|
|
118
|
+
id: string;
|
|
119
|
+
requestBody: AddressesChangeRequest;
|
|
120
|
+
}): CancelablePromise<WebhookResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* Get address(es) from a given webhook
|
|
123
|
+
* Retrieving address(es) from a given webhook.
|
|
124
|
+
* @returns ListWebhookAddressesResponse
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
128
|
+
/**
|
|
129
|
+
* The webhook identifier.
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
/**
|
|
133
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
134
|
+
*/
|
|
135
|
+
pageToken?: string;
|
|
136
|
+
/**
|
|
137
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
138
|
+
*/
|
|
139
|
+
pageSize?: number;
|
|
140
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
93
141
|
}
|
|
94
142
|
|
|
95
143
|
export { WebhooksService };
|
|
@@ -75,6 +75,51 @@ class WebhooksService {
|
|
|
75
75
|
url: "/v1/webhooks:getSharedSecret"
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
+
addAddressesToWebhook({
|
|
79
|
+
id,
|
|
80
|
+
requestBody
|
|
81
|
+
}) {
|
|
82
|
+
return this.httpRequest.request({
|
|
83
|
+
method: "PATCH",
|
|
84
|
+
url: "/v1/webhooks/{id}/addresses",
|
|
85
|
+
path: {
|
|
86
|
+
"id": id
|
|
87
|
+
},
|
|
88
|
+
body: requestBody,
|
|
89
|
+
mediaType: "application/json"
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
removeAddressesFromWebhook({
|
|
93
|
+
id,
|
|
94
|
+
requestBody
|
|
95
|
+
}) {
|
|
96
|
+
return this.httpRequest.request({
|
|
97
|
+
method: "DELETE",
|
|
98
|
+
url: "/v1/webhooks/{id}/addresses",
|
|
99
|
+
path: {
|
|
100
|
+
"id": id
|
|
101
|
+
},
|
|
102
|
+
body: requestBody,
|
|
103
|
+
mediaType: "application/json"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
getAddressesFromWebhook({
|
|
107
|
+
id,
|
|
108
|
+
pageToken,
|
|
109
|
+
pageSize = 10
|
|
110
|
+
}) {
|
|
111
|
+
return this.httpRequest.request({
|
|
112
|
+
method: "GET",
|
|
113
|
+
url: "/v1/webhooks/{id}/addresses",
|
|
114
|
+
path: {
|
|
115
|
+
"id": id
|
|
116
|
+
},
|
|
117
|
+
query: {
|
|
118
|
+
"pageToken": pageToken,
|
|
119
|
+
"pageSize": pageSize
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
78
123
|
}
|
|
79
124
|
|
|
80
125
|
export { WebhooksService };
|
package/esm/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { OpenAPI, OpenAPIConfig } from './generated/core/OpenAPI.js';
|
|
|
6
6
|
export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
|
|
7
7
|
export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
|
|
8
8
|
export { AddressActivityMetadata } from './generated/models/AddressActivityMetadata.js';
|
|
9
|
+
export { AddressesChangeRequest } from './generated/models/AddressesChangeRequest.js';
|
|
9
10
|
export { AggregatedAssetAmount } from './generated/models/AggregatedAssetAmount.js';
|
|
10
11
|
export { AssetAmount } from './generated/models/AssetAmount.js';
|
|
11
12
|
export { AssetWithPriceInfo } from './generated/models/AssetWithPriceInfo.js';
|
|
@@ -96,10 +97,12 @@ export { ListPChainUtxosResponse } from './generated/models/ListPChainUtxosRespo
|
|
|
96
97
|
export { ListPendingRewardsResponse } from './generated/models/ListPendingRewardsResponse.js';
|
|
97
98
|
export { ListPrimaryNetworkBlocksResponse } from './generated/models/ListPrimaryNetworkBlocksResponse.js';
|
|
98
99
|
export { ListSubnetsResponse } from './generated/models/ListSubnetsResponse.js';
|
|
100
|
+
export { ListTeleporterMessagesResponse } from './generated/models/ListTeleporterMessagesResponse.js';
|
|
99
101
|
export { ListTransactionDetailsResponse } from './generated/models/ListTransactionDetailsResponse.js';
|
|
100
102
|
export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
|
|
101
103
|
export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
|
|
102
104
|
export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
|
|
105
|
+
export { ListWebhookAddressesResponse } from './generated/models/ListWebhookAddressesResponse.js';
|
|
103
106
|
export { ListWebhooksResponse } from './generated/models/ListWebhooksResponse.js';
|
|
104
107
|
export { ListXChainBalancesResponse } from './generated/models/ListXChainBalancesResponse.js';
|
|
105
108
|
export { ListXChainTransactionsResponse } from './generated/models/ListXChainTransactionsResponse.js';
|
|
@@ -151,6 +154,7 @@ export { RpcErrorResponseDto } from './generated/models/RpcErrorResponseDto.js';
|
|
|
151
154
|
export { RpcRequestBodyDto } from './generated/models/RpcRequestBodyDto.js';
|
|
152
155
|
export { RpcSuccessResponseDto } from './generated/models/RpcSuccessResponseDto.js';
|
|
153
156
|
export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
|
|
157
|
+
export { SortByOption } from './generated/models/SortByOption.js';
|
|
154
158
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
155
159
|
export { StakingDistribution } from './generated/models/StakingDistribution.js';
|
|
156
160
|
export { Subnet } from './generated/models/Subnet.js';
|
package/esm/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js
|
|
|
53
53
|
export { RemovedValidatorDetails } from './generated/models/RemovedValidatorDetails.js';
|
|
54
54
|
export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
55
55
|
export { RewardType } from './generated/models/RewardType.js';
|
|
56
|
+
export { SortByOption } from './generated/models/SortByOption.js';
|
|
56
57
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
57
58
|
export { TeleporterRewardDetails } from './generated/models/TeleporterRewardDetails.js';
|
|
58
59
|
export { TransactionMethodType } from './generated/models/TransactionMethodType.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "2.8.0-canary.
|
|
3
|
+
"version": "2.8.0-canary.5a7c244.0+5a7c244",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"openapi-typescript-codegen": "0.
|
|
17
|
+
"openapi-typescript-codegen": "0.24.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "5a7c244b94d34ce3b9fcc49724e853ee22b2a1df"
|
|
33
33
|
}
|