@avalabs/glacier-sdk 3.1.0-canary.9af5915.0 → 3.1.0-canary.9c8a267.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
@@ -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 {
@@ -4863,7 +5159,7 @@ type BlockchainInfo = {
4863
5159
  /**
4864
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
4865
5161
  */
4866
- genesisData?: Record<string, any>;
5162
+ genesisData?: (EvmGenesisDto | string);
4867
5163
  };
4868
5164
 
4869
5165
  type L1ValidatorDetailsTransaction = {
@@ -5493,7 +5789,7 @@ declare class PrimaryNetworkUtxOsService {
5493
5789
  * @returns any Successful response
5494
5790
  * @throws ApiError
5495
5791
  */
5496
- getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
5792
+ getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5497
5793
  /**
5498
5794
  * A primary network blockchain id or alias.
5499
5795
  */
@@ -5518,6 +5814,10 @@ declare class PrimaryNetworkUtxOsService {
5518
5814
  * Asset ID for any asset (only applicable X-Chain)
5519
5815
  */
5520
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;
5521
5821
  /**
5522
5822
  * Boolean filter to include spent UTXOs.
5523
5823
  */
@@ -5537,7 +5837,7 @@ declare class PrimaryNetworkUtxOsService {
5537
5837
  * @returns any Successful response
5538
5838
  * @throws ApiError
5539
5839
  */
5540
- getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, includeSpent, sortBy, sortOrder, }: {
5840
+ getUtxosByAddressesV2({ blockchainId, network, requestBody, pageToken, pageSize, assetId, minUtxoAmount, includeSpent, sortBy, sortOrder, }: {
5541
5841
  /**
5542
5842
  * A primary network blockchain id or alias.
5543
5843
  */
@@ -5552,13 +5852,17 @@ declare class PrimaryNetworkUtxOsService {
5552
5852
  */
5553
5853
  pageToken?: string;
5554
5854
  /**
5555
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
5855
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 1024.
5556
5856
  */
5557
5857
  pageSize?: number;
5558
5858
  /**
5559
5859
  * Asset ID for any asset (only applicable X-Chain)
5560
5860
  */
5561
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;
5562
5866
  /**
5563
5867
  * Boolean filter to include spent UTXOs.
5564
5868
  */
@@ -5680,10 +5984,30 @@ type SignatureAggregationResponse = {
5680
5984
  };
5681
5985
 
5682
5986
  type SignatureAggregatorRequest = {
5683
- 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
+ */
5684
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
+ */
5685
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
+ */
5686
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;
5687
6011
  };
5688
6012
 
5689
6013
  declare class SignatureAggregatorService {
@@ -6870,4 +7194,4 @@ declare class FetchHttpRequest extends BaseHttpRequest {
6870
7194
  }
6871
7195
 
6872
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 };
6873
- 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, 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 };
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 };
@@ -0,0 +1,96 @@
1
+ import { EvmGenesisAllowListConfigDto } from './EvmGenesisAllowListConfigDto.js';
2
+ import { EvmGenesisFeeConfigDto } from './EvmGenesisFeeConfigDto.js';
3
+ import { EvmGenesisWarpConfigDto } from './EvmGenesisWarpConfigDto.js';
4
+
5
+ type EvmGenesisConfigDto = {
6
+ /**
7
+ * Berlin block number
8
+ */
9
+ berlinBlock?: number;
10
+ /**
11
+ * Byzantium block number
12
+ */
13
+ byzantiumBlock?: number;
14
+ /**
15
+ * Chain ID
16
+ */
17
+ chainId?: number;
18
+ /**
19
+ * Constantinople block number
20
+ */
21
+ constantinopleBlock?: number;
22
+ /**
23
+ * EIP-150 block number
24
+ */
25
+ eip150Block?: number;
26
+ /**
27
+ * EIP-150 hash
28
+ */
29
+ eip150Hash?: string;
30
+ /**
31
+ * EIP-155 block number
32
+ */
33
+ eip155Block?: number;
34
+ /**
35
+ * EIP-158 block number
36
+ */
37
+ eip158Block?: number;
38
+ /**
39
+ * Fee configuration
40
+ */
41
+ feeConfig?: EvmGenesisFeeConfigDto;
42
+ /**
43
+ * Homestead block number
44
+ */
45
+ homesteadBlock?: number;
46
+ /**
47
+ * Istanbul block number
48
+ */
49
+ istanbulBlock?: number;
50
+ /**
51
+ * London block number
52
+ */
53
+ londonBlock?: number;
54
+ /**
55
+ * Muir Glacier block number
56
+ */
57
+ muirGlacierBlock?: number;
58
+ /**
59
+ * Petersburg block number
60
+ */
61
+ petersburgBlock?: number;
62
+ /**
63
+ * Subnet EVM timestamp
64
+ */
65
+ subnetEVMTimestamp?: number;
66
+ /**
67
+ * Allow fee recipients
68
+ */
69
+ allowFeeRecipients?: boolean;
70
+ /**
71
+ * Warp configuration
72
+ */
73
+ warpConfig?: EvmGenesisWarpConfigDto;
74
+ /**
75
+ * Transaction allow list configuration
76
+ */
77
+ txAllowListConfig?: EvmGenesisAllowListConfigDto;
78
+ /**
79
+ * Contract deployer allow list configuration
80
+ */
81
+ contractDeployerAllowListConfig?: EvmGenesisAllowListConfigDto;
82
+ /**
83
+ * Contract native minter configuration
84
+ */
85
+ contractNativeMinterConfig?: EvmGenesisAllowListConfigDto;
86
+ /**
87
+ * Fee manager configuration
88
+ */
89
+ feeManagerConfig?: EvmGenesisAllowListConfigDto;
90
+ /**
91
+ * Reward manager configuration
92
+ */
93
+ rewardManagerConfig?: EvmGenesisAllowListConfigDto;
94
+ };
95
+
96
+ export type { EvmGenesisConfigDto };