@avalabs/glacier-sdk 2.8.0-canary.57278c1.0 → 2.8.0-canary.582297d.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 CHANGED
@@ -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
  */
@@ -2307,6 +2311,11 @@ type ListSubnetsResponse = {
2307
2311
  subnets: Array<Subnet>;
2308
2312
  };
2309
2313
 
2314
+ type BlsCredentials = {
2315
+ publicKey: string;
2316
+ proofOfPossession: string;
2317
+ };
2318
+
2310
2319
  type Rewards = {
2311
2320
  validationRewardAmount: string;
2312
2321
  delegationRewardAmount: string;
@@ -2341,6 +2350,10 @@ type ActiveValidatorDetails = {
2341
2350
  delegationFee?: string;
2342
2351
  startTimestamp: number;
2343
2352
  endTimestamp: number;
2353
+ /**
2354
+ * Present for AddPermissionlessValidatorTx
2355
+ */
2356
+ blsCredentials?: BlsCredentials;
2344
2357
  stakePercentage: number;
2345
2358
  delegatorCount: number;
2346
2359
  amountDelegated?: string;
@@ -2365,6 +2378,10 @@ type CompletedValidatorDetails = {
2365
2378
  delegationFee?: string;
2366
2379
  startTimestamp: number;
2367
2380
  endTimestamp: number;
2381
+ /**
2382
+ * Present for AddPermissionlessValidatorTx
2383
+ */
2384
+ blsCredentials?: BlsCredentials;
2368
2385
  delegatorCount: number;
2369
2386
  rewards: Rewards;
2370
2387
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -2383,6 +2400,10 @@ type PendingValidatorDetails = {
2383
2400
  delegationFee?: string;
2384
2401
  startTimestamp: number;
2385
2402
  endTimestamp: number;
2403
+ /**
2404
+ * Present for AddPermissionlessValidatorTx
2405
+ */
2406
+ blsCredentials?: BlsCredentials;
2386
2407
  validationStatus: PendingValidatorDetails.validationStatus;
2387
2408
  };
2388
2409
  declare namespace PendingValidatorDetails {
@@ -2399,6 +2420,10 @@ type RemovedValidatorDetails = {
2399
2420
  delegationFee?: string;
2400
2421
  startTimestamp: number;
2401
2422
  endTimestamp: number;
2423
+ /**
2424
+ * Present for AddPermissionlessValidatorTx
2425
+ */
2426
+ blsCredentials?: BlsCredentials;
2402
2427
  removeTxHash: string;
2403
2428
  removeTimestamp: number;
2404
2429
  validationStatus: RemovedValidatorDetails.validationStatus;
@@ -2425,6 +2450,14 @@ declare enum Network {
2425
2450
  FUJI = "fuji"
2426
2451
  }
2427
2452
 
2453
+ declare enum SortByOption {
2454
+ BLOCK_INDEX = "blockIndex",
2455
+ DELEGATION_CAPACITY = "delegationCapacity",
2456
+ TIME_REMAINING = "timeRemaining",
2457
+ DELEGATION_FEE = "delegationFee",
2458
+ UPTIME_PERFORMANCE = "uptimePerformance"
2459
+ }
2460
+
2428
2461
  declare enum ValidationStatusType {
2429
2462
  COMPLETED = "completed",
2430
2463
  ACTIVE = "active",
@@ -2584,7 +2617,7 @@ declare class PrimaryNetworkService {
2584
2617
  * @returns ListValidatorDetailsResponse
2585
2618
  * @throws ApiError
2586
2619
  */
2587
- listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
2620
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
2588
2621
  /**
2589
2622
  * Either mainnet or a testnet.
2590
2623
  */
@@ -2601,6 +2634,12 @@ declare class PrimaryNetworkService {
2601
2634
  * A comma separated list of node ids to filter by.
2602
2635
  */
2603
2636
  nodeIds?: string;
2637
+ /**
2638
+ * Which property to sort by, in conjunction with sortOrder.
2639
+ *
2640
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
2641
+ */
2642
+ sortBy?: SortByOption;
2604
2643
  /**
2605
2644
  * 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.
2606
2645
  */
@@ -2626,13 +2665,21 @@ declare class PrimaryNetworkService {
2626
2665
  */
2627
2666
  maxTimeRemaining?: number;
2628
2667
  /**
2629
- * 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.
2668
+ * 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.
2630
2669
  */
2631
2670
  minFeePercentage?: number;
2632
2671
  /**
2633
- * 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.
2672
+ * 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.
2634
2673
  */
2635
2674
  maxFeePercentage?: number;
2675
+ /**
2676
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
2677
+ */
2678
+ minUptimePerformance?: number;
2679
+ /**
2680
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
2681
+ */
2682
+ maxUptimePerformance?: number;
2636
2683
  /**
2637
2684
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
2638
2685
  */
@@ -2644,7 +2691,7 @@ declare class PrimaryNetworkService {
2644
2691
  * @returns ListValidatorDetailsResponse
2645
2692
  * @throws ApiError
2646
2693
  */
2647
- getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
2694
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
2648
2695
  /**
2649
2696
  * Either mainnet or a testnet.
2650
2697
  */
@@ -2661,14 +2708,14 @@ declare class PrimaryNetworkService {
2661
2708
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2662
2709
  */
2663
2710
  pageSize?: number;
2664
- /**
2665
- * 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.
2666
- */
2667
- sortOrder?: SortOrder;
2668
2711
  /**
2669
2712
  * Validation status of the node.
2670
2713
  */
2671
2714
  validationStatus?: ValidationStatusType;
2715
+ /**
2716
+ * 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.
2717
+ */
2718
+ sortOrder?: SortOrder;
2672
2719
  }): CancelablePromise<ListValidatorDetailsResponse>;
2673
2720
  /**
2674
2721
  * List delegators
@@ -3595,6 +3642,10 @@ type PChainTransaction = {
3595
3642
  * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
3596
3643
  */
3597
3644
  subnetOwnershipInfo?: SubnetOwnershipInfo;
3645
+ /**
3646
+ * Present for AddPermissionlessValidatorTx
3647
+ */
3648
+ blsCredentials?: BlsCredentials;
3598
3649
  };
3599
3650
 
3600
3651
  type ListPChainTransactionsResponse = {
@@ -4301,7 +4352,7 @@ declare class TeleporterService {
4301
4352
  * @returns ListTeleporterMessagesResponse
4302
4353
  * @throws ApiError
4303
4354
  */
4304
- listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
4355
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
4305
4356
  /**
4306
4357
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4307
4358
  */
@@ -4326,6 +4377,10 @@ declare class TeleporterService {
4326
4377
  * The address of the sender of the teleporter message.
4327
4378
  */
4328
4379
  from?: string;
4380
+ /**
4381
+ * mainnet or testnet.
4382
+ */
4383
+ network?: NetworkType;
4329
4384
  }): CancelablePromise<ListTeleporterMessagesResponse>;
4330
4385
  }
4331
4386
 
@@ -4340,7 +4395,7 @@ type AddressActivityMetadata = {
4340
4395
  /**
4341
4396
  * Ethereum address(es) for the address_activity event type
4342
4397
  */
4343
- addresses: Array<any[]>;
4398
+ addresses: Array<string>;
4344
4399
  /**
4345
4400
  * Array of hexadecimal strings of the event signatures.
4346
4401
  */
@@ -4351,6 +4406,32 @@ declare enum EventType {
4351
4406
  ADDRESS_ACTIVITY = "address_activity"
4352
4407
  }
4353
4408
 
4409
+ type CreateWebhookRequest = {
4410
+ url: string;
4411
+ chainId: string;
4412
+ eventType: EventType;
4413
+ metadata: AddressActivityMetadata;
4414
+ name?: string;
4415
+ description?: string;
4416
+ /**
4417
+ * Whether to include traces in the webhook payload.
4418
+ */
4419
+ includeInternalTxs?: boolean;
4420
+ /**
4421
+ * Whether to include logs in the webhook payload.
4422
+ */
4423
+ includeLogs?: boolean;
4424
+ };
4425
+
4426
+ type ListWebhookAddressesResponse = {
4427
+ /**
4428
+ * 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.
4429
+ */
4430
+ nextPageToken?: string;
4431
+ addresses: Array<string>;
4432
+ totalAddresses: number;
4433
+ };
4434
+
4354
4435
  declare enum WebhookStatusType {
4355
4436
  ACTIVE = "active",
4356
4437
  INACTIVE = "inactive"
@@ -4384,21 +4465,6 @@ type ListWebhooksResponse = {
4384
4465
  webhooks: Array<WebhookResponse>;
4385
4466
  };
4386
4467
 
4387
- type RegisterWebhookRequest = {
4388
- url: string;
4389
- chainId: string;
4390
- eventType: EventType;
4391
- metadata: AddressActivityMetadata;
4392
- /**
4393
- * Whether to include traces in the webhook payload.
4394
- */
4395
- includeInternalTxs?: boolean;
4396
- /**
4397
- * Whether to include logs in the webhook payload.
4398
- */
4399
- includeLogs?: boolean;
4400
- };
4401
-
4402
4468
  type SharedSecretsResponse = {
4403
4469
  secret: string;
4404
4470
  };
@@ -4426,8 +4492,8 @@ declare class WebhooksService {
4426
4492
  * @returns WebhookResponse
4427
4493
  * @throws ApiError
4428
4494
  */
4429
- registerWebhook({ requestBody, }: {
4430
- requestBody: RegisterWebhookRequest;
4495
+ createWebhook({ requestBody, }: {
4496
+ requestBody: CreateWebhookRequest;
4431
4497
  }): CancelablePromise<WebhookResponse>;
4432
4498
  /**
4433
4499
  * List webhooks
@@ -4501,8 +4567,8 @@ declare class WebhooksService {
4501
4567
  */
4502
4568
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
4503
4569
  /**
4504
- * Add address(es) to a webhook
4505
- * Adding address(es) to a given webhook.
4570
+ * Add addresses to webhook
4571
+ * Add addresses to webhook.
4506
4572
  * @returns WebhookResponse
4507
4573
  * @throws ApiError
4508
4574
  */
@@ -4514,8 +4580,8 @@ declare class WebhooksService {
4514
4580
  requestBody: AddressesChangeRequest;
4515
4581
  }): CancelablePromise<WebhookResponse>;
4516
4582
  /**
4517
- * Remove address(es) from a webhook
4518
- * Removing address(es) from a given webhook.
4583
+ * Remove addresses from webhook
4584
+ * Remove addresses from webhook.
4519
4585
  * @returns WebhookResponse
4520
4586
  * @throws ApiError
4521
4587
  */
@@ -4526,6 +4592,26 @@ declare class WebhooksService {
4526
4592
  id: string;
4527
4593
  requestBody: AddressesChangeRequest;
4528
4594
  }): CancelablePromise<WebhookResponse>;
4595
+ /**
4596
+ * List adresses by webhook
4597
+ * List adresses by webhook.
4598
+ * @returns ListWebhookAddressesResponse
4599
+ * @throws ApiError
4600
+ */
4601
+ getAddressesFromWebhook({ id, pageToken, pageSize, }: {
4602
+ /**
4603
+ * The webhook identifier.
4604
+ */
4605
+ id: string;
4606
+ /**
4607
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
4608
+ */
4609
+ pageToken?: string;
4610
+ /**
4611
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
4612
+ */
4613
+ pageSize?: number;
4614
+ }): CancelablePromise<ListWebhookAddressesResponse>;
4529
4615
  }
4530
4616
 
4531
4617
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
@@ -4577,4 +4663,4 @@ type NextPageToken = {
4577
4663
  nextPageToken?: string;
4578
4664
  };
4579
4665
 
4580
- 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, 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, 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 };
4666
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, 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, 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
@@ -389,6 +389,7 @@ class EvmBalancesService {
389
389
  blockNumber,
390
390
  pageToken,
391
391
  pageSize = 10,
392
+ filterSpamTokens = true,
392
393
  contractAddresses,
393
394
  currency
394
395
  }) {
@@ -403,6 +404,7 @@ class EvmBalancesService {
403
404
  "blockNumber": blockNumber,
404
405
  "pageToken": pageToken,
405
406
  "pageSize": pageSize,
407
+ "filterSpamTokens": filterSpamTokens,
406
408
  "contractAddresses": contractAddresses,
407
409
  "currency": currency
408
410
  }
@@ -1011,6 +1013,7 @@ class PrimaryNetworkService {
1011
1013
  pageToken,
1012
1014
  pageSize = 10,
1013
1015
  nodeIds,
1016
+ sortBy,
1014
1017
  sortOrder,
1015
1018
  validationStatus,
1016
1019
  minDelegationCapacity,
@@ -1019,6 +1022,8 @@ class PrimaryNetworkService {
1019
1022
  maxTimeRemaining,
1020
1023
  minFeePercentage,
1021
1024
  maxFeePercentage,
1025
+ minUptimePerformance,
1026
+ maxUptimePerformance,
1022
1027
  subnetId
1023
1028
  }) {
1024
1029
  return this.httpRequest.request({
@@ -1031,6 +1036,7 @@ class PrimaryNetworkService {
1031
1036
  "pageToken": pageToken,
1032
1037
  "pageSize": pageSize,
1033
1038
  "nodeIds": nodeIds,
1039
+ "sortBy": sortBy,
1034
1040
  "sortOrder": sortOrder,
1035
1041
  "validationStatus": validationStatus,
1036
1042
  "minDelegationCapacity": minDelegationCapacity,
@@ -1039,6 +1045,8 @@ class PrimaryNetworkService {
1039
1045
  "maxTimeRemaining": maxTimeRemaining,
1040
1046
  "minFeePercentage": minFeePercentage,
1041
1047
  "maxFeePercentage": maxFeePercentage,
1048
+ "minUptimePerformance": minUptimePerformance,
1049
+ "maxUptimePerformance": maxUptimePerformance,
1042
1050
  "subnetId": subnetId
1043
1051
  }
1044
1052
  });
@@ -1048,8 +1056,8 @@ class PrimaryNetworkService {
1048
1056
  nodeId,
1049
1057
  pageToken,
1050
1058
  pageSize = 10,
1051
- sortOrder,
1052
- validationStatus
1059
+ validationStatus,
1060
+ sortOrder
1053
1061
  }) {
1054
1062
  return this.httpRequest.request({
1055
1063
  method: "GET",
@@ -1061,8 +1069,8 @@ class PrimaryNetworkService {
1061
1069
  query: {
1062
1070
  "pageToken": pageToken,
1063
1071
  "pageSize": pageSize,
1064
- "sortOrder": sortOrder,
1065
- "validationStatus": validationStatus
1072
+ "validationStatus": validationStatus,
1073
+ "sortOrder": sortOrder
1066
1074
  }
1067
1075
  });
1068
1076
  }
@@ -1479,7 +1487,8 @@ class TeleporterService {
1479
1487
  sourceBlockchainId,
1480
1488
  destinationBlockchainId,
1481
1489
  to,
1482
- from
1490
+ from,
1491
+ network
1483
1492
  }) {
1484
1493
  return this.httpRequest.request({
1485
1494
  method: "GET",
@@ -1490,7 +1499,8 @@ class TeleporterService {
1490
1499
  "sourceBlockchainId": sourceBlockchainId,
1491
1500
  "destinationBlockchainId": destinationBlockchainId,
1492
1501
  "to": to,
1493
- "from": from
1502
+ "from": from,
1503
+ "network": network
1494
1504
  }
1495
1505
  });
1496
1506
  }
@@ -1500,7 +1510,7 @@ class WebhooksService {
1500
1510
  constructor(httpRequest) {
1501
1511
  this.httpRequest = httpRequest;
1502
1512
  }
1503
- registerWebhook({
1513
+ createWebhook({
1504
1514
  requestBody
1505
1515
  }) {
1506
1516
  return this.httpRequest.request({
@@ -1601,6 +1611,23 @@ class WebhooksService {
1601
1611
  mediaType: "application/json"
1602
1612
  });
1603
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
+ }
1604
1631
  }
1605
1632
 
1606
1633
  class Glacier {
@@ -2083,6 +2110,15 @@ var RewardType = /* @__PURE__ */ ((RewardType2) => {
2083
2110
  return RewardType2;
2084
2111
  })(RewardType || {});
2085
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
+
2086
2122
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2087
2123
  SortOrder2["ASC"] = "asc";
2088
2124
  SortOrder2["DESC"] = "desc";
@@ -2230,6 +2266,7 @@ exports.PrimaryNetworkVerticesService = PrimaryNetworkVerticesService;
2230
2266
  exports.ResourceLinkType = ResourceLinkType;
2231
2267
  exports.RewardType = RewardType;
2232
2268
  exports.RpcService = RpcService;
2269
+ exports.SortByOption = SortByOption;
2233
2270
  exports.SortOrder = SortOrder;
2234
2271
  exports.TeleporterService = TeleporterService;
2235
2272
  exports.TransactionMethodType = TransactionMethodType;
@@ -1,3 +1,4 @@
1
+ import { BlsCredentials } from './BlsCredentials.js';
1
2
  import { Rewards } from './Rewards.js';
2
3
  import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
4
 
@@ -9,6 +10,10 @@ type ActiveValidatorDetails = {
9
10
  delegationFee?: string;
10
11
  startTimestamp: number;
11
12
  endTimestamp: number;
13
+ /**
14
+ * Present for AddPermissionlessValidatorTx
15
+ */
16
+ blsCredentials?: BlsCredentials;
12
17
  stakePercentage: number;
13
18
  delegatorCount: number;
14
19
  amountDelegated?: string;
@@ -2,7 +2,7 @@ type AddressActivityMetadata = {
2
2
  /**
3
3
  * Ethereum address(es) for the address_activity event type
4
4
  */
5
- addresses: Array<any[]>;
5
+ addresses: Array<string>;
6
6
  /**
7
7
  * Array of hexadecimal strings of the event signatures.
8
8
  */
@@ -0,0 +1,6 @@
1
+ type BlsCredentials = {
2
+ publicKey: string;
3
+ proofOfPossession: string;
4
+ };
5
+
6
+ export { BlsCredentials };
@@ -1,3 +1,4 @@
1
+ import { BlsCredentials } from './BlsCredentials.js';
1
2
  import { Rewards } from './Rewards.js';
2
3
 
3
4
  type CompletedValidatorDetails = {
@@ -8,6 +9,10 @@ type CompletedValidatorDetails = {
8
9
  delegationFee?: string;
9
10
  startTimestamp: number;
10
11
  endTimestamp: number;
12
+ /**
13
+ * Present for AddPermissionlessValidatorTx
14
+ */
15
+ blsCredentials?: BlsCredentials;
11
16
  delegatorCount: number;
12
17
  rewards: Rewards;
13
18
  validationStatus: CompletedValidatorDetails.validationStatus;
@@ -1,11 +1,13 @@
1
1
  import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
2
  import { EventType } from './EventType.js';
3
3
 
4
- type RegisterWebhookRequest = {
4
+ type CreateWebhookRequest = {
5
5
  url: string;
6
6
  chainId: string;
7
7
  eventType: EventType;
8
8
  metadata: AddressActivityMetadata;
9
+ name?: string;
10
+ description?: string;
9
11
  /**
10
12
  * Whether to include traces in the webhook payload.
11
13
  */
@@ -16,4 +18,4 @@ type RegisterWebhookRequest = {
16
18
  includeLogs?: boolean;
17
19
  };
18
20
 
19
- export { RegisterWebhookRequest };
21
+ export { CreateWebhookRequest };
@@ -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 };
@@ -1,4 +1,5 @@
1
1
  import { AssetAmount } from './AssetAmount.js';
2
+ import { BlsCredentials } from './BlsCredentials.js';
2
3
  import { PChainTransactionType } from './PChainTransactionType.js';
3
4
  import { PChainUtxo } from './PChainUtxo.js';
4
5
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
@@ -72,6 +73,10 @@ type PChainTransaction = {
72
73
  * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
73
74
  */
74
75
  subnetOwnershipInfo?: SubnetOwnershipInfo;
76
+ /**
77
+ * Present for AddPermissionlessValidatorTx
78
+ */
79
+ blsCredentials?: BlsCredentials;
75
80
  };
76
81
 
77
82
  export { PChainTransaction };
@@ -1,3 +1,5 @@
1
+ import { BlsCredentials } from './BlsCredentials.js';
2
+
1
3
  type PendingValidatorDetails = {
2
4
  txHash: string;
3
5
  nodeId: string;
@@ -6,6 +8,10 @@ type PendingValidatorDetails = {
6
8
  delegationFee?: string;
7
9
  startTimestamp: number;
8
10
  endTimestamp: number;
11
+ /**
12
+ * Present for AddPermissionlessValidatorTx
13
+ */
14
+ blsCredentials?: BlsCredentials;
9
15
  validationStatus: PendingValidatorDetails.validationStatus;
10
16
  };
11
17
  declare namespace PendingValidatorDetails {
@@ -1,3 +1,5 @@
1
+ import { BlsCredentials } from './BlsCredentials.js';
2
+
1
3
  type RemovedValidatorDetails = {
2
4
  txHash: string;
3
5
  nodeId: string;
@@ -6,6 +8,10 @@ type RemovedValidatorDetails = {
6
8
  delegationFee?: string;
7
9
  startTimestamp: number;
8
10
  endTimestamp: number;
11
+ /**
12
+ * Present for AddPermissionlessValidatorTx
13
+ */
14
+ blsCredentials?: BlsCredentials;
9
15
  removeTxHash: string;
10
16
  removeTimestamp: number;
11
17
  validationStatus: RemovedValidatorDetails.validationStatus;
@@ -0,0 +1,9 @@
1
+ declare enum SortByOption {
2
+ BLOCK_INDEX = "blockIndex",
3
+ DELEGATION_CAPACITY = "delegationCapacity",
4
+ TIME_REMAINING = "timeRemaining",
5
+ DELEGATION_FEE = "delegationFee",
6
+ UPTIME_PERFORMANCE = "uptimePerformance"
7
+ }
8
+
9
+ export { SortByOption };
@@ -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, sortOrder, validationStatus, }: {
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
- sortOrder,
127
- validationStatus
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
- "sortOrder": sortOrder,
140
- "validationStatus": validationStatus
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
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';
@@ -26,7 +27,7 @@ declare class TeleporterService {
26
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,6 +52,10 @@ declare class TeleporterService {
51
52
  * The address of the sender of the teleporter message.
52
53
  */
53
54
  from?: string;
55
+ /**
56
+ * mainnet or testnet.
57
+ */
58
+ network?: NetworkType;
54
59
  }): CancelablePromise<ListTeleporterMessagesResponse>;
55
60
  }
56
61
 
@@ -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,6 +1,7 @@
1
1
  import { AddressesChangeRequest } from '../models/AddressesChangeRequest.js';
2
+ import { CreateWebhookRequest } from '../models/CreateWebhookRequest.js';
3
+ import { ListWebhookAddressesResponse } from '../models/ListWebhookAddressesResponse.js';
2
4
  import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
3
- import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
4
5
  import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
5
6
  import { UpdateWebhookRequest } from '../models/UpdateWebhookRequest.js';
6
7
  import { WebhookResponse } from '../models/WebhookResponse.js';
@@ -17,8 +18,8 @@ declare class WebhooksService {
17
18
  * @returns WebhookResponse
18
19
  * @throws ApiError
19
20
  */
20
- registerWebhook({ requestBody, }: {
21
- requestBody: RegisterWebhookRequest;
21
+ createWebhook({ requestBody, }: {
22
+ requestBody: CreateWebhookRequest;
22
23
  }): CancelablePromise<WebhookResponse>;
23
24
  /**
24
25
  * List webhooks
@@ -92,8 +93,8 @@ declare class WebhooksService {
92
93
  */
93
94
  getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
94
95
  /**
95
- * Add address(es) to a webhook
96
- * Adding address(es) to a given webhook.
96
+ * Add addresses to webhook
97
+ * Add addresses to webhook.
97
98
  * @returns WebhookResponse
98
99
  * @throws ApiError
99
100
  */
@@ -105,8 +106,8 @@ declare class WebhooksService {
105
106
  requestBody: AddressesChangeRequest;
106
107
  }): CancelablePromise<WebhookResponse>;
107
108
  /**
108
- * Remove address(es) from a webhook
109
- * Removing address(es) from a given webhook.
109
+ * Remove addresses from webhook
110
+ * Remove addresses from webhook.
110
111
  * @returns WebhookResponse
111
112
  * @throws ApiError
112
113
  */
@@ -117,6 +118,26 @@ declare class WebhooksService {
117
118
  id: string;
118
119
  requestBody: AddressesChangeRequest;
119
120
  }): CancelablePromise<WebhookResponse>;
121
+ /**
122
+ * List adresses by webhook
123
+ * List adresses by 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>;
120
141
  }
121
142
 
122
143
  export { WebhooksService };
@@ -2,7 +2,7 @@ class WebhooksService {
2
2
  constructor(httpRequest) {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
- registerWebhook({
5
+ createWebhook({
6
6
  requestBody
7
7
  }) {
8
8
  return this.httpRequest.request({
@@ -103,6 +103,23 @@ class WebhooksService {
103
103
  mediaType: "application/json"
104
104
  });
105
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
+ }
106
123
  }
107
124
 
108
125
  export { WebhooksService };
package/esm/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export { Blockchain } from './generated/models/Blockchain.js';
14
14
  export { BlockchainId } from './generated/models/BlockchainId.js';
15
15
  export { BlockchainIds } from './generated/models/BlockchainIds.js';
16
16
  export { BlockchainInfo } from './generated/models/BlockchainInfo.js';
17
+ export { BlsCredentials } from './generated/models/BlsCredentials.js';
17
18
  export { CChainAtomicBalances } from './generated/models/CChainAtomicBalances.js';
18
19
  export { CChainExportTransaction } from './generated/models/CChainExportTransaction.js';
19
20
  export { CChainImportTransaction } from './generated/models/CChainImportTransaction.js';
@@ -32,6 +33,7 @@ export { ContractSubmissionErc721 } from './generated/models/ContractSubmissionE
32
33
  export { ContractSubmissionUnknown } from './generated/models/ContractSubmissionUnknown.js';
33
34
  export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
34
35
  export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
36
+ export { CreateWebhookRequest } from './generated/models/CreateWebhookRequest.js';
35
37
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
36
38
  export { DelegationStatusType } from './generated/models/DelegationStatusType.js';
37
39
  export { DelegatorsDetails } from './generated/models/DelegatorsDetails.js';
@@ -102,6 +104,7 @@ export { ListTransactionDetailsResponse } from './generated/models/ListTransacti
102
104
  export { ListTransfersResponse } from './generated/models/ListTransfersResponse.js';
103
105
  export { ListUtxosResponse } from './generated/models/ListUtxosResponse.js';
104
106
  export { ListValidatorDetailsResponse } from './generated/models/ListValidatorDetailsResponse.js';
107
+ export { ListWebhookAddressesResponse } from './generated/models/ListWebhookAddressesResponse.js';
105
108
  export { ListWebhooksResponse } from './generated/models/ListWebhooksResponse.js';
106
109
  export { ListXChainBalancesResponse } from './generated/models/ListXChainBalancesResponse.js';
107
110
  export { ListXChainTransactionsResponse } from './generated/models/ListXChainTransactionsResponse.js';
@@ -141,7 +144,6 @@ export { PrimaryNetworkOperationType } from './generated/models/PrimaryNetworkOp
141
144
  export { PrimaryNetworkOptions } from './generated/models/PrimaryNetworkOptions.js';
142
145
  export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
143
146
  export { ProposerDetails } from './generated/models/ProposerDetails.js';
144
- export { RegisterWebhookRequest } from './generated/models/RegisterWebhookRequest.js';
145
147
  export { RemovedValidatorDetails } from './generated/models/RemovedValidatorDetails.js';
146
148
  export { ResourceLink } from './generated/models/ResourceLink.js';
147
149
  export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
@@ -153,6 +155,7 @@ export { RpcErrorResponseDto } from './generated/models/RpcErrorResponseDto.js';
153
155
  export { RpcRequestBodyDto } from './generated/models/RpcRequestBodyDto.js';
154
156
  export { RpcSuccessResponseDto } from './generated/models/RpcSuccessResponseDto.js';
155
157
  export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
158
+ export { SortByOption } from './generated/models/SortByOption.js';
156
159
  export { SortOrder } from './generated/models/SortOrder.js';
157
160
  export { StakingDistribution } from './generated/models/StakingDistribution.js';
158
161
  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.57278c1.0+57278c1",
3
+ "version": "2.8.0-canary.582297d.0+582297d",
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",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "57278c106233326785f29d4b97470966ffe0998e"
32
+ "gitHead": "582297dee1446e6cc9c145f5c8cab961e648a0da"
33
33
  }