@avalabs/glacier-sdk 3.1.0-alpha.66 → 3.1.0-alpha.68

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
@@ -54,16 +54,59 @@ declare abstract class BaseHttpRequest {
54
54
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
55
55
  }
56
56
 
57
+ type AvaxSupplyResponse = {
58
+ /**
59
+ * The circulating supply of AVAX.
60
+ */
61
+ circulatingSupply: string;
62
+ /**
63
+ * The total supply of AVAX.
64
+ */
65
+ totalSupply: string;
66
+ /**
67
+ * The total P-chain burned fees of AVAX.
68
+ */
69
+ totalPBurned: string;
70
+ /**
71
+ * The total C-chain burned fees of AVAX.
72
+ */
73
+ totalCBurned: string;
74
+ /**
75
+ * The total X-chain burned fees of AVAX.
76
+ */
77
+ totalXBurned: string;
78
+ /**
79
+ * The total staked AVAX.
80
+ */
81
+ totalStaked: string;
82
+ /**
83
+ * The total locked AVAX.
84
+ */
85
+ totalLocked: string;
86
+ /**
87
+ * The total rewards AVAX.
88
+ */
89
+ totalRewards: string;
90
+ /**
91
+ * The last updated time of the AVAX supply.
92
+ */
93
+ lastUpdated: string;
94
+ /**
95
+ * The genesis unlock amount of the AVAX supply.
96
+ */
97
+ genesisUnlock: string;
98
+ };
99
+
57
100
  declare class AvaxSupplyService {
58
101
  readonly httpRequest: BaseHttpRequest;
59
102
  constructor(httpRequest: BaseHttpRequest);
60
103
  /**
61
104
  * Get AVAX supply information
62
105
  * Get AVAX supply information that includes total supply, circulating supply, total p burned, total c burned, total x burned, total staked, total locked, total rewards, and last updated.
63
- * @returns void
106
+ * @returns AvaxSupplyResponse Successful response
64
107
  * @throws ApiError
65
108
  */
66
- getAvaxSupply(): CancelablePromise<void>;
109
+ getAvaxSupply(): CancelablePromise<AvaxSupplyResponse>;
67
110
  }
68
111
 
69
112
  type LogsFormatMetadata = {
@@ -2716,11 +2759,18 @@ declare class HealthCheckService {
2716
2759
  constructor(httpRequest: BaseHttpRequest);
2717
2760
  /**
2718
2761
  * Get the health of the service
2719
- * Check the health of the service.
2720
- * @returns HealthCheckResultDto The health of the service
2762
+ * Check the health of the service. This checks the read and write health of the database and cache.
2763
+ * @returns HealthCheckResultDto The health of the service. This checks the read and write health of the database and cache.
2721
2764
  * @throws ApiError
2722
2765
  */
2723
2766
  dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
2767
+ /**
2768
+ * Get the liveliness of the service (reads only)
2769
+ * Check the liveliness of the service (reads only).
2770
+ * @returns HealthCheckResultDto The liveliness of the service (reads only)
2771
+ * @throws ApiError
2772
+ */
2773
+ liveCheck(): CancelablePromise<HealthCheckResultDto>;
2724
2774
  }
2725
2775
 
2726
2776
  type IcmDestinationTransaction = {
@@ -3238,6 +3288,252 @@ declare class OperationsService {
3238
3288
  }): CancelablePromise<OperationStatusResponse>;
3239
3289
  }
3240
3290
 
3291
+ type EvmGenesisAllocDto = {
3292
+ /**
3293
+ * Account balance in hex format
3294
+ */
3295
+ balance?: string;
3296
+ /**
3297
+ * Contract bytecode in hex format
3298
+ */
3299
+ code?: string;
3300
+ /**
3301
+ * Contract storage slots
3302
+ */
3303
+ storage?: Record<string, string>;
3304
+ };
3305
+
3306
+ type EvmGenesisAllowListConfigDto = {
3307
+ /**
3308
+ * Block timestamp
3309
+ */
3310
+ blockTimestamp?: number;
3311
+ /**
3312
+ * Admin addresses
3313
+ */
3314
+ adminAddresses?: Array<string>;
3315
+ /**
3316
+ * Manager addresses
3317
+ */
3318
+ managerAddresses?: Array<string>;
3319
+ /**
3320
+ * Enabled addresses
3321
+ */
3322
+ enabledAddresses?: Array<string>;
3323
+ };
3324
+
3325
+ type EvmGenesisFeeConfigDto = {
3326
+ /**
3327
+ * Base fee change denominator
3328
+ */
3329
+ baseFeeChangeDenominator?: number;
3330
+ /**
3331
+ * Block gas cost step
3332
+ */
3333
+ blockGasCostStep?: number;
3334
+ /**
3335
+ * Gas limit
3336
+ */
3337
+ gasLimit?: number;
3338
+ /**
3339
+ * Maximum block gas cost
3340
+ */
3341
+ maxBlockGasCost?: number;
3342
+ /**
3343
+ * Minimum base fee
3344
+ */
3345
+ minBaseFee?: number;
3346
+ /**
3347
+ * Minimum block gas cost
3348
+ */
3349
+ minBlockGasCost?: number;
3350
+ /**
3351
+ * Target block rate
3352
+ */
3353
+ targetBlockRate?: number;
3354
+ /**
3355
+ * Target gas
3356
+ */
3357
+ targetGas?: number;
3358
+ };
3359
+
3360
+ type EvmGenesisWarpConfigDto = {
3361
+ /**
3362
+ * Block timestamp
3363
+ */
3364
+ blockTimestamp?: number;
3365
+ /**
3366
+ * Quorum numerator
3367
+ */
3368
+ quorumNumerator?: number;
3369
+ /**
3370
+ * Require primary network signers
3371
+ */
3372
+ requirePrimaryNetworkSigners?: boolean;
3373
+ };
3374
+
3375
+ type EvmGenesisConfigDto = {
3376
+ /**
3377
+ * Berlin block number
3378
+ */
3379
+ berlinBlock?: number;
3380
+ /**
3381
+ * Byzantium block number
3382
+ */
3383
+ byzantiumBlock?: number;
3384
+ /**
3385
+ * Chain ID
3386
+ */
3387
+ chainId?: number;
3388
+ /**
3389
+ * Constantinople block number
3390
+ */
3391
+ constantinopleBlock?: number;
3392
+ /**
3393
+ * EIP-150 block number
3394
+ */
3395
+ eip150Block?: number;
3396
+ /**
3397
+ * EIP-150 hash
3398
+ */
3399
+ eip150Hash?: string;
3400
+ /**
3401
+ * EIP-155 block number
3402
+ */
3403
+ eip155Block?: number;
3404
+ /**
3405
+ * EIP-158 block number
3406
+ */
3407
+ eip158Block?: number;
3408
+ /**
3409
+ * Fee configuration
3410
+ */
3411
+ feeConfig?: EvmGenesisFeeConfigDto;
3412
+ /**
3413
+ * Homestead block number
3414
+ */
3415
+ homesteadBlock?: number;
3416
+ /**
3417
+ * Istanbul block number
3418
+ */
3419
+ istanbulBlock?: number;
3420
+ /**
3421
+ * London block number
3422
+ */
3423
+ londonBlock?: number;
3424
+ /**
3425
+ * Muir Glacier block number
3426
+ */
3427
+ muirGlacierBlock?: number;
3428
+ /**
3429
+ * Petersburg block number
3430
+ */
3431
+ petersburgBlock?: number;
3432
+ /**
3433
+ * Subnet EVM timestamp
3434
+ */
3435
+ subnetEVMTimestamp?: number;
3436
+ /**
3437
+ * Allow fee recipients
3438
+ */
3439
+ allowFeeRecipients?: boolean;
3440
+ /**
3441
+ * Warp configuration
3442
+ */
3443
+ warpConfig?: EvmGenesisWarpConfigDto;
3444
+ /**
3445
+ * Transaction allow list configuration
3446
+ */
3447
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
3448
+ /**
3449
+ * Contract deployer allow list configuration
3450
+ */
3451
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
3452
+ /**
3453
+ * Contract native minter configuration
3454
+ */
3455
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
3456
+ /**
3457
+ * Fee manager configuration
3458
+ */
3459
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
3460
+ /**
3461
+ * Reward manager configuration
3462
+ */
3463
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
3464
+ };
3465
+
3466
+ type EvmGenesisDto = {
3467
+ /**
3468
+ * Airdrop amount
3469
+ */
3470
+ airdropAmount?: number | null;
3471
+ /**
3472
+ * Airdrop hash
3473
+ */
3474
+ airdropHash?: string;
3475
+ /**
3476
+ * Allocation of accounts and balances
3477
+ */
3478
+ alloc?: Record<string, EvmGenesisAllocDto>;
3479
+ /**
3480
+ * Base fee per gas
3481
+ */
3482
+ baseFeePerGas?: number | null;
3483
+ /**
3484
+ * Blob gas used
3485
+ */
3486
+ blobGasUsed?: string | null;
3487
+ /**
3488
+ * Coinbase address
3489
+ */
3490
+ coinbase?: string;
3491
+ /**
3492
+ * Genesis configuration
3493
+ */
3494
+ config?: EvmGenesisConfigDto;
3495
+ /**
3496
+ * Difficulty
3497
+ */
3498
+ difficulty?: string;
3499
+ /**
3500
+ * Excess blob gas
3501
+ */
3502
+ excessBlobGas?: string | null;
3503
+ /**
3504
+ * Extra data
3505
+ */
3506
+ extraData?: string;
3507
+ /**
3508
+ * Gas limit
3509
+ */
3510
+ gasLimit?: string;
3511
+ /**
3512
+ * Gas used
3513
+ */
3514
+ gasUsed?: string;
3515
+ /**
3516
+ * Mix hash
3517
+ */
3518
+ mixHash?: string;
3519
+ /**
3520
+ * Nonce
3521
+ */
3522
+ nonce?: string;
3523
+ /**
3524
+ * Block number
3525
+ */
3526
+ number?: string;
3527
+ /**
3528
+ * Parent hash
3529
+ */
3530
+ parentHash?: string;
3531
+ /**
3532
+ * Block timestamp
3533
+ */
3534
+ timestamp?: string;
3535
+ };
3536
+
3241
3537
  type Blockchain = {
3242
3538
  createBlockTimestamp: number;
3243
3539
  createBlockNumber: string;
@@ -3250,9 +3546,9 @@ type Blockchain = {
3250
3546
  */
3251
3547
  evmChainId: number;
3252
3548
  /**
3253
- * The genesis data of the blockchain.
3549
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
3254
3550
  */
3255
- genesisData?: Record<string, any>;
3551
+ genesisData?: (EvmGenesisDto | string);
3256
3552
  };
3257
3553
 
3258
3554
  declare enum BlockchainIds {
@@ -4685,6 +4981,10 @@ type Utxo = {
4685
4981
  * UTXO ID for this output.
4686
4982
  */
4687
4983
  utxoId: string;
4984
+ /**
4985
+ * The bytes of the UTXO
4986
+ */
4987
+ utxoBytes?: string;
4688
4988
  /**
4689
4989
  * Unix timestamp in seconds at which this output was consumed.
4690
4990
  */
@@ -4859,7 +5159,7 @@ type BlockchainInfo = {
4859
5159
  /**
4860
5160
  * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
4861
5161
  */
4862
- genesisData?: Record<string, any>;
5162
+ genesisData?: (EvmGenesisDto | string);
4863
5163
  };
4864
5164
 
4865
5165
  type L1ValidatorDetailsTransaction = {
@@ -4942,6 +5242,10 @@ type PChainUtxo = {
4942
5242
  * UTXO ID for this output.
4943
5243
  */
4944
5244
  utxoId: string;
5245
+ /**
5246
+ * The bytes of the UTXO
5247
+ */
5248
+ utxoBytes?: string;
4945
5249
  /**
4946
5250
  * @deprecated
4947
5251
  */
@@ -5464,6 +5768,18 @@ type ListUtxosResponse = {
5464
5768
  chainInfo: PrimaryNetworkChainInfo;
5465
5769
  };
5466
5770
 
5771
+ type PrimaryNetworkAddressesBodyDto = {
5772
+ /**
5773
+ * Comma-separated list of primary network addresses
5774
+ */
5775
+ addresses: string;
5776
+ };
5777
+
5778
+ declare enum UtxosSortByOption {
5779
+ TIMESTAMP = "timestamp",
5780
+ AMOUNT = "amount"
5781
+ }
5782
+
5467
5783
  declare class PrimaryNetworkUtxOsService {
5468
5784
  readonly httpRequest: BaseHttpRequest;
5469
5785
  constructor(httpRequest: BaseHttpRequest);
@@ -5473,7 +5789,7 @@ declare class PrimaryNetworkUtxOsService {
5473
5789
  * @returns any Successful response
5474
5790
  * @throws ApiError
5475
5791
  */
5476
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
5792
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5477
5793
  /**
5478
5794
  * A primary network blockchain id or alias.
5479
5795
  */
@@ -5498,10 +5814,63 @@ declare class PrimaryNetworkUtxOsService {
5498
5814
  * Asset ID for any asset (only applicable X-Chain)
5499
5815
  */
5500
5816
  assetId?: string;
5817
+ /**
5818
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5819
+ */
5820
+ minUtxoAmount?: number;
5501
5821
  /**
5502
5822
  * Boolean filter to include spent UTXOs.
5503
5823
  */
5504
5824
  includeSpent?: boolean;
5825
+ /**
5826
+ * Which property to sort by, in conjunction with sortOrder.
5827
+ */
5828
+ sortBy?: UtxosSortByOption;
5829
+ /**
5830
+ * 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.
5831
+ */
5832
+ sortOrder?: SortOrder;
5833
+ }): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
5834
+ /**
5835
+ * List UTXOs v2 - Supports querying for more addresses
5836
+ * Lists UTXOs on one of the Primary Network chains for the supplied addresses. This v2 route supports increased page size and address limit.
5837
+ * @returns any Successful response
5838
+ * @throws ApiError
5839
+ */
5840
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5841
+ /**
5842
+ * A primary network blockchain id or alias.
5843
+ */
5844
+ blockchainId: BlockchainId;
5845
+ /**
5846
+ * Either mainnet or testnet/fuji.
5847
+ */
5848
+ network: Network;
5849
+ requestBody: PrimaryNetworkAddressesBodyDto;
5850
+ /**
5851
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
5852
+ */
5853
+ pageToken?: string;
5854
+ /**
5855
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5856
+ */
5857
+ pageSize?: number;
5858
+ /**
5859
+ * Asset ID for any asset (only applicable X-Chain)
5860
+ */
5861
+ assetId?: string;
5862
+ /**
5863
+ * The minimum UTXO amount in nAVAX (inclusive), used to filter the set of UTXOs being returned. Default is 0.
5864
+ */
5865
+ minUtxoAmount?: number;
5866
+ /**
5867
+ * Boolean filter to include spent UTXOs.
5868
+ */
5869
+ includeSpent?: boolean;
5870
+ /**
5871
+ * Which property to sort by, in conjunction with sortOrder.
5872
+ */
5873
+ sortBy?: UtxosSortByOption;
5505
5874
  /**
5506
5875
  * 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.
5507
5876
  */
@@ -5615,10 +5984,30 @@ type SignatureAggregationResponse = {
5615
5984
  };
5616
5985
 
5617
5986
  type SignatureAggregatorRequest = {
5618
- message: string;
5987
+ /**
5988
+ * Either Message or Justification must be provided. Hex-encoded message, optionally prefixed with "0x"
5989
+ */
5990
+ message?: string;
5991
+ /**
5992
+ * Either Justification or Message must be provided. Hex-encoded justification, optionally prefixed with "0x"
5993
+ */
5619
5994
  justification?: string;
5995
+ /**
5996
+ * Optional hex or cb58 encoded signing subnet ID. If omitted will default to the subnetID of the source blockchain.
5997
+ */
5620
5998
  signingSubnetId?: string;
5999
+ /**
6000
+ * Optional. Integer from 0 to 100 representing the percentage of the weight of the signing Subnet that is required to sign the message. Defaults to 67 if omitted.
6001
+ */
5621
6002
  quorumPercentage?: number;
6003
+ /**
6004
+ * Optional. Integer from 0 to 100 representing the additional percentage of weight of the signing Subnet that will be attempted to add to the signature. QuorumPercentage+QuorumPercentageBuffer must be less than or equal to 100. Obtaining signatures from more validators can take a longer time, but signatures representing a large percentage of the Subnet weight are less prone to become invalid due to validator weight changes. Defaults to 0 if omitted.
6005
+ */
6006
+ quorumPercentageBuffer?: number;
6007
+ /**
6008
+ * Optional P-Chain height for validator set selection. If 0 (default), validators at proposed height will be used. If non-zero, validators at the specified P-Chain height will be used for signature aggregation.
6009
+ */
6010
+ pChainHeight?: number;
5622
6011
  };
5623
6012
 
5624
6013
  declare class SignatureAggregatorService {
@@ -6804,5 +7193,5 @@ declare class FetchHttpRequest extends BaseHttpRequest {
6804
7193
  request<T>(options: ApiRequestOptions): CancelablePromise<T>;
6805
7194
  }
6806
7195
 
6807
- export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
6808
- export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
7196
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityEventType, ApiError, ApiFeature, AvaxSupplyService, BaseHttpRequest, BlockchainId, BlockchainIds, CChainExportTransaction, CChainImportTransaction, CancelError, CancelablePromise, ChainStatus, CommonBalanceType, CompletedDelegatorDetails, CompletedValidatorDetails, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CurrencyCode, DataApiUsageMetricsService, DefaultService, DelegationStatusType, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMAddressActivityRequest, EVMOperationType, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc721Contract, Erc721Token, Erc721TokenBalance, EvmBalancesService, EvmBlocksService, EvmChainsService, EvmContractsService, EvmTransactionsService, FetchHttpRequest, Glacier, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, IcmRewardDetails, InterchainMessagingService, InternalTransactionOpCall, Network, NfTsService, NftTokenMetadataStatus, NotificationsService, OpenAPI, OperationStatus, OperationStatusCode, OperationType, OperationsService, PChainId, PChainTransactionType, PendingDelegatorDetails, PendingIcmMessage, PendingTeleporterMessage, PendingValidatorDetails, PlatformAddressActivityKeyType, PrimaryNetworkAddressActivityEventType, PrimaryNetworkAddressActivityRequest, PrimaryNetworkAddressActivitySubEventType, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlocksService, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, RemovedValidatorDetails, RequestType, ResourceLinkType, RewardType, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, SignatureAggregatorService, SortByOption, SortOrder, SubnetRpcTimeIntervalGranularity, TeleporterRewardDetails, TeleporterService, TimeIntervalGranularityExtended, TransactionDirectionType, TransactionMethodType, TransactionStatus, UnknownContract, UsageMetricsGroupByEnum, UsageMetricsValueDTO, UtxoType, UtxosSortByOption, ValidationStatusType, ValidatorActivityEventType, ValidatorActivityKeyType, ValidatorActivityRequest, VmName, WebhookAddressActivityResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainTransactionType };
7197
+ export type { AccessListData, AccessRequest, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiRequestOptions, AssetAmount, AssetWithPriceInfo, AvaxSupplyResponse, BadGateway, BadRequest, BalanceOwner, Blockchain, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainSharedAssetBalance, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ContractDeploymentDetails, ContractSubmissionBody, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, DataListChainsResponse, DelegatorsDetails, ERCToken, ERCTransfer, EVMAddressActivityResponse, EVMInput, EVMOutput, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Transfer, Erc20TransferDetails, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBlock, EvmGenesisAllocDto, EvmGenesisAllowListConfigDto, EvmGenesisConfigDto, EvmGenesisDto, EvmGenesisFeeConfigDto, EvmGenesisWarpConfigDto, EvmNetworkOptions, Forbidden, FullNativeTransactionDetails, Geolocation, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmSourceTransaction, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Log, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, NetworkToken, NetworkTokenDetails, NetworkTokenInfo, NextPageToken, NotFound, NotificationsResponse, OpenAPIConfig, OperationStatusResponse, PChainBalance, PChainSharedAsset, PChainTransaction, PChainUtxo, PendingReward, PricingProviders, PrimaryNetworkAddressActivityMetadata, PrimaryNetworkAddressActivityResponse, PrimaryNetworkAddressActivitySubEvents, PrimaryNetworkAddressesBodyDto, PrimaryNetworkBalanceThresholdFilter, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkOptions, ProposerDetails, ResourceLink, Rewards, RichAddress, RpcMetrics, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcUsageMetricsResponseDTO, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterSourceTransaction, TooManyRequests, Transaction, TransactionDetails, TransactionEvent, TransactionExportMetadata, TransactionVertexDetail, Unauthorized, UnsubscribeRequest, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsResponseDTO, UtilityAddresses, Utxo, UtxoCredential, ValidatorActivityMetadata, ValidatorActivityResponse, ValidatorActivitySubEvents, ValidatorHealthDetails, ValidatorsDetails, WebhookInternalTransaction, XChainAssetDetails, XChainBalances, XChainSharedAssetBalance, XChainVertex };
@@ -1 +1 @@
1
- import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{AvaxSupplyService as r}from"./services/AvaxSupplyService.js";import{DataApiUsageMetricsService as s}from"./services/DataApiUsageMetricsService.js";import{DefaultService as i}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as o}from"./services/EvmBlocksService.js";import{EvmChainsService as a}from"./services/EvmChainsService.js";import{EvmContractsService as c}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as n}from"./services/HealthCheckService.js";import{InterchainMessagingService as h}from"./services/InterchainMessagingService.js";import{NfTsService as v}from"./services/NfTsService.js";import{NotificationsService as p}from"./services/NotificationsService.js";import{OperationsService as w}from"./services/OperationsService.js";import{PrimaryNetworkService as S}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as u}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as f}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as E}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as l}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as j}from"./services/TeleporterService.js";import{WebhooksService as y}from"./services/WebhooksService.js";class g{avaxSupply;dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,A=e){this.request=new A({BASE:g?.BASE??"https://glacier-api-dev.avax.network",VERSION:g?.VERSION??"1.0.0",WITH_CREDENTIALS:g?.WITH_CREDENTIALS??!1,CREDENTIALS:g?.CREDENTIALS??"include",TOKEN:g?.TOKEN,USERNAME:g?.USERNAME,PASSWORD:g?.PASSWORD,HEADERS:g?.HEADERS,ENCODE_PATH:g?.ENCODE_PATH}),this.avaxSupply=new r(this.request),this.dataApiUsageMetrics=new s(this.request),this.default=new i(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new o(this.request),this.evmChains=new a(this.request),this.evmContracts=new c(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new n(this.request),this.interchainMessaging=new h(this.request),this.nfTs=new v(this.request),this.notifications=new p(this.request),this.operations=new w(this.request),this.primaryNetwork=new S(this.request),this.primaryNetworkBalances=new u(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new f(this.request),this.primaryNetworkUtxOs=new E(this.request),this.primaryNetworkVertices=new l(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new j(this.request),this.webhooks=new y(this.request)}}export{g as Glacier};
1
+ import{FetchHttpRequest as e}from"./core/FetchHttpRequest.js";import{AvaxSupplyService as r}from"./services/AvaxSupplyService.js";import{DataApiUsageMetricsService as s}from"./services/DataApiUsageMetricsService.js";import{DefaultService as i}from"./services/DefaultService.js";import{EvmBalancesService as t}from"./services/EvmBalancesService.js";import{EvmBlocksService as o}from"./services/EvmBlocksService.js";import{EvmChainsService as a}from"./services/EvmChainsService.js";import{EvmContractsService as c}from"./services/EvmContractsService.js";import{EvmTransactionsService as m}from"./services/EvmTransactionsService.js";import{HealthCheckService as n}from"./services/HealthCheckService.js";import{InterchainMessagingService as h}from"./services/InterchainMessagingService.js";import{NfTsService as v}from"./services/NfTsService.js";import{NotificationsService as p}from"./services/NotificationsService.js";import{OperationsService as w}from"./services/OperationsService.js";import{PrimaryNetworkService as S}from"./services/PrimaryNetworkService.js";import{PrimaryNetworkBalancesService as u}from"./services/PrimaryNetworkBalancesService.js";import{PrimaryNetworkBlocksService as N}from"./services/PrimaryNetworkBlocksService.js";import{PrimaryNetworkRewardsService as k}from"./services/PrimaryNetworkRewardsService.js";import{PrimaryNetworkTransactionsService as f}from"./services/PrimaryNetworkTransactionsService.js";import{PrimaryNetworkUtxOsService as E}from"./services/PrimaryNetworkUtxOsService.js";import{PrimaryNetworkVerticesService as l}from"./services/PrimaryNetworkVerticesService.js";import{SignatureAggregatorService as q}from"./services/SignatureAggregatorService.js";import{TeleporterService as j}from"./services/TeleporterService.js";import{WebhooksService as y}from"./services/WebhooksService.js";class g{avaxSupply;dataApiUsageMetrics;default;evmBalances;evmBlocks;evmChains;evmContracts;evmTransactions;healthCheck;interchainMessaging;nfTs;notifications;operations;primaryNetwork;primaryNetworkBalances;primaryNetworkBlocks;primaryNetworkRewards;primaryNetworkTransactions;primaryNetworkUtxOs;primaryNetworkVertices;signatureAggregator;teleporter;webhooks;request;constructor(g,A=e){this.request=new A({BASE:g?.BASE??"https://data-api-dev.avax.network",VERSION:g?.VERSION??"1.0.0",WITH_CREDENTIALS:g?.WITH_CREDENTIALS??!1,CREDENTIALS:g?.CREDENTIALS??"include",TOKEN:g?.TOKEN,USERNAME:g?.USERNAME,PASSWORD:g?.PASSWORD,HEADERS:g?.HEADERS,ENCODE_PATH:g?.ENCODE_PATH}),this.avaxSupply=new r(this.request),this.dataApiUsageMetrics=new s(this.request),this.default=new i(this.request),this.evmBalances=new t(this.request),this.evmBlocks=new o(this.request),this.evmChains=new a(this.request),this.evmContracts=new c(this.request),this.evmTransactions=new m(this.request),this.healthCheck=new n(this.request),this.interchainMessaging=new h(this.request),this.nfTs=new v(this.request),this.notifications=new p(this.request),this.operations=new w(this.request),this.primaryNetwork=new S(this.request),this.primaryNetworkBalances=new u(this.request),this.primaryNetworkBlocks=new N(this.request),this.primaryNetworkRewards=new k(this.request),this.primaryNetworkTransactions=new f(this.request),this.primaryNetworkUtxOs=new E(this.request),this.primaryNetworkVertices=new l(this.request),this.signatureAggregator=new q(this.request),this.teleporter=new j(this.request),this.webhooks=new y(this.request)}}export{g as Glacier};
@@ -1 +1 @@
1
- const E={BASE:"https://glacier-api-dev.avax.network",VERSION:"1.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};export{E as OpenAPI};
1
+ const E={BASE:"https://data-api-dev.avax.network",VERSION:"1.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};export{E as OpenAPI};
@@ -0,0 +1,44 @@
1
+ type AvaxSupplyResponse = {
2
+ /**
3
+ * The circulating supply of AVAX.
4
+ */
5
+ circulatingSupply: string;
6
+ /**
7
+ * The total supply of AVAX.
8
+ */
9
+ totalSupply: string;
10
+ /**
11
+ * The total P-chain burned fees of AVAX.
12
+ */
13
+ totalPBurned: string;
14
+ /**
15
+ * The total C-chain burned fees of AVAX.
16
+ */
17
+ totalCBurned: string;
18
+ /**
19
+ * The total X-chain burned fees of AVAX.
20
+ */
21
+ totalXBurned: string;
22
+ /**
23
+ * The total staked AVAX.
24
+ */
25
+ totalStaked: string;
26
+ /**
27
+ * The total locked AVAX.
28
+ */
29
+ totalLocked: string;
30
+ /**
31
+ * The total rewards AVAX.
32
+ */
33
+ totalRewards: string;
34
+ /**
35
+ * The last updated time of the AVAX supply.
36
+ */
37
+ lastUpdated: string;
38
+ /**
39
+ * The genesis unlock amount of the AVAX supply.
40
+ */
41
+ genesisUnlock: string;
42
+ };
43
+
44
+ export type { AvaxSupplyResponse };
@@ -1,3 +1,5 @@
1
+ import { EvmGenesisDto } from './EvmGenesisDto.js';
2
+
1
3
  type Blockchain = {
2
4
  createBlockTimestamp: number;
3
5
  createBlockNumber: string;
@@ -10,9 +12,9 @@ type Blockchain = {
10
12
  */
11
13
  evmChainId: number;
12
14
  /**
13
- * The genesis data of the blockchain.
15
+ * The genesis data of the blockchain. Can be either a parsed EvmGenesisDto object or a raw JSON string.
14
16
  */
15
- genesisData?: Record<string, any>;
17
+ genesisData?: (EvmGenesisDto | string);
16
18
  };
17
19
 
18
20
  export type { Blockchain };
@@ -1,10 +1,12 @@
1
+ import { EvmGenesisDto } from './EvmGenesisDto.js';
2
+
1
3
  type BlockchainInfo = {
2
4
  chainName: string;
3
5
  vmId: string;
4
6
  /**
5
7
  * The genesis data of the blockchain. Present for CreateChainTx. EVM based chains will return the genesis data as an object. Non-EVM based chains will return the genesis data as an encoded string. The encoding depends on the VM
6
8
  */
7
- genesisData?: Record<string, any>;
9
+ genesisData?: (EvmGenesisDto | string);
8
10
  };
9
11
 
10
12
  export type { BlockchainInfo };
@@ -0,0 +1,16 @@
1
+ type EvmGenesisAllocDto = {
2
+ /**
3
+ * Account balance in hex format
4
+ */
5
+ balance?: string;
6
+ /**
7
+ * Contract bytecode in hex format
8
+ */
9
+ code?: string;
10
+ /**
11
+ * Contract storage slots
12
+ */
13
+ storage?: Record<string, string>;
14
+ };
15
+
16
+ export type { EvmGenesisAllocDto };
@@ -0,0 +1,20 @@
1
+ type EvmGenesisAllowListConfigDto = {
2
+ /**
3
+ * Block timestamp
4
+ */
5
+ blockTimestamp?: number;
6
+ /**
7
+ * Admin addresses
8
+ */
9
+ adminAddresses?: Array<string>;
10
+ /**
11
+ * Manager addresses
12
+ */
13
+ managerAddresses?: Array<string>;
14
+ /**
15
+ * Enabled addresses
16
+ */
17
+ enabledAddresses?: Array<string>;
18
+ };
19
+
20
+ export type { EvmGenesisAllowListConfigDto };