@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.1c410fd.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 +2198 -1700
- package/dist/index.js +562 -266
- package/esm/generated/Glacier.d.ts +22 -2
- package/esm/generated/Glacier.js +23 -3
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +6 -3
- package/esm/generated/models/BlockchainId.js +5 -2
- package/esm/generated/models/BlockchainIds.d.ts +9 -0
- package/esm/generated/models/BlockchainIds.js +10 -0
- package/esm/generated/models/BlockchainInfo.d.ts +5 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
- package/esm/generated/models/ChainInfo.d.ts +1 -4
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
- package/esm/generated/models/DelegationStatusType.d.ts +7 -0
- package/esm/generated/models/DelegationStatusType.js +8 -0
- package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
- package/esm/generated/models/EVMInput.d.ts +5 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc20Contract.d.ts +41 -0
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc20Token.d.ts +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/Erc20Transfer.d.ts +1 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Transfer.d.ts +1 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
- package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/GetChainResponse.d.ts +1 -4
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
- package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/OperationType.d.ts +2 -1
- package/esm/generated/models/OperationType.js +2 -1
- package/esm/generated/models/PChainBalance.d.ts +16 -7
- package/esm/generated/models/PChainId.d.ts +2 -2
- package/esm/generated/models/PChainId.js +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +9 -15
- package/esm/generated/models/PChainTransactionType.d.ts +16 -0
- package/esm/generated/models/PChainTransactionType.js +17 -0
- package/esm/generated/models/PChainUtxo.d.ts +10 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
- package/esm/generated/models/RewardType.d.ts +6 -0
- package/esm/generated/models/RewardType.js +7 -0
- package/esm/generated/models/Rewards.d.ts +6 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- package/esm/generated/models/StakingDistribution.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/TransactionDetails.d.ts +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/Utxo.d.ts +9 -1
- package/esm/generated/models/UtxoType.d.ts +6 -0
- package/esm/generated/models/UtxoType.js +7 -0
- package/esm/generated/models/ValidationStatusType.d.ts +7 -0
- package/esm/generated/models/ValidationStatusType.js +8 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/models/XChainId.d.ts +3 -2
- package/esm/generated/models/XChainId.js +2 -1
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainLinearTransaction.js +1 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +177 -0
- package/esm/generated/services/EvmBalancesService.js +116 -0
- package/esm/generated/services/EvmBlocksService.d.ts +47 -0
- package/esm/generated/services/EvmBlocksService.js +37 -0
- package/esm/generated/services/EvmChainsService.d.ts +36 -0
- package/esm/generated/services/EvmChainsService.js +29 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
- package/esm/generated/services/EvmTransactionsService.js +251 -0
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/NfTsService.d.ts +69 -0
- package/esm/generated/services/NfTsService.js +50 -0
- package/esm/generated/services/OperationsService.d.ts +8 -3
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +87 -253
- package/esm/generated/services/PrimaryNetworkService.js +53 -167
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
- package/esm/index.d.ts +62 -31
- package/esm/index.js +27 -9
- package/package.json +2 -5
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/CollectionMetrics.d.ts +0 -40
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
- package/esm/generated/models/CollectionSortByOption.js +0 -9
- package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
- package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
- package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
- package/esm/generated/services/EvmService.d.ts +0 -724
- package/esm/generated/services/EvmService.js +0 -509
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type
|
|
1
|
+
type EvmBlock = {
|
|
2
2
|
/**
|
|
3
3
|
* The block number on the chain.
|
|
4
4
|
*/
|
|
@@ -15,10 +15,6 @@ type GetBlockResponse = {
|
|
|
15
15
|
* The number of evm transactions in the block.
|
|
16
16
|
*/
|
|
17
17
|
txCount: number;
|
|
18
|
-
/**
|
|
19
|
-
* The number of atomic transactions in the block.
|
|
20
|
-
*/
|
|
21
|
-
atomicTxCount: number;
|
|
22
18
|
/**
|
|
23
19
|
* The base gas fee for a transaction to be included in the block.
|
|
24
20
|
*/
|
|
@@ -46,4 +42,4 @@ type GetBlockResponse = {
|
|
|
46
42
|
cumulativeTransactions: string;
|
|
47
43
|
};
|
|
48
44
|
|
|
49
|
-
export {
|
|
45
|
+
export { EvmBlock };
|
|
@@ -6,10 +6,7 @@ import { VmName } from './VmName.js';
|
|
|
6
6
|
type GetChainResponse = {
|
|
7
7
|
chainId: string;
|
|
8
8
|
/**
|
|
9
|
-
* Status of chain nodes. Chain nodes can become temporarily
|
|
10
|
-
* `UNAVAILABLE` for several reasons, such as validator stake falling
|
|
11
|
-
* below threshold. If chain nodes are `UNAVAILABLE`, requests that rely
|
|
12
|
-
* on data from the chain nodes may return 503 errors.
|
|
9
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
13
10
|
*/
|
|
14
11
|
status: ChainStatus;
|
|
15
12
|
chainName: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
type GetEvmBlockResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* The block number on the chain.
|
|
4
|
+
*/
|
|
5
|
+
blockNumber: string;
|
|
6
|
+
/**
|
|
7
|
+
* The block finality timestamp.
|
|
8
|
+
*/
|
|
9
|
+
blockTimestamp: number;
|
|
10
|
+
/**
|
|
11
|
+
* The block hash identifier.
|
|
12
|
+
*/
|
|
13
|
+
blockHash: string;
|
|
14
|
+
/**
|
|
15
|
+
* The number of evm transactions in the block.
|
|
16
|
+
*/
|
|
17
|
+
txCount: number;
|
|
18
|
+
/**
|
|
19
|
+
* The base gas fee for a transaction to be included in the block.
|
|
20
|
+
*/
|
|
21
|
+
baseFee: string;
|
|
22
|
+
/**
|
|
23
|
+
* The gas used for transactions in the block.
|
|
24
|
+
*/
|
|
25
|
+
gasUsed: string;
|
|
26
|
+
/**
|
|
27
|
+
* The total gas limit set for transactions in the block.
|
|
28
|
+
*/
|
|
29
|
+
gasLimit: string;
|
|
30
|
+
gasCost: string;
|
|
31
|
+
/**
|
|
32
|
+
* The hash of the parent block.
|
|
33
|
+
*/
|
|
34
|
+
parentHash: string;
|
|
35
|
+
/**
|
|
36
|
+
* The amount of fees spent/burned for transactions in the block.
|
|
37
|
+
*/
|
|
38
|
+
feesSpent: string;
|
|
39
|
+
/**
|
|
40
|
+
* The cumulative number of transactions for the chain including this block.
|
|
41
|
+
*/
|
|
42
|
+
cumulativeTransactions: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { GetEvmBlockResponse };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DelegatorsDetails } from './DelegatorsDetails.js';
|
|
2
|
+
import { ValidatorsDetails } from './ValidatorsDetails.js';
|
|
3
|
+
|
|
4
|
+
type GetNetworkDetailsResponse = {
|
|
5
|
+
validatorDetails: ValidatorsDetails;
|
|
6
|
+
delegatorDetails: DelegatorsDetails;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { GetNetworkDetailsResponse };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProposerDetails } from './ProposerDetails.js';
|
|
2
|
+
|
|
3
|
+
type GetPrimaryNetworkBlockResponse = {
|
|
4
|
+
blockNumber: string;
|
|
5
|
+
blockHash: string;
|
|
6
|
+
parentHash: string;
|
|
7
|
+
blockTimestamp: number;
|
|
8
|
+
blockType: string;
|
|
9
|
+
txCount: number;
|
|
10
|
+
transactions: Array<string>;
|
|
11
|
+
blockSizeBytes: number;
|
|
12
|
+
proposerDetails?: ProposerDetails;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { GetPrimaryNetworkBlockResponse };
|
|
@@ -19,13 +19,7 @@ type GetTransactionResponse = {
|
|
|
19
19
|
*/
|
|
20
20
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
21
21
|
/**
|
|
22
|
-
* The list of internal transactions. Note that this list only
|
|
23
|
-
* includes CALL and
|
|
24
|
-
* CALLCODE internal transactions that had a
|
|
25
|
-
* non-zero value and
|
|
26
|
-
* CREATE/CREATE2
|
|
27
|
-
* calls. Use a client provider to recieve a full debug trace of the
|
|
28
|
-
* transaction.
|
|
22
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
29
23
|
*/
|
|
30
24
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
31
25
|
networkTokenDetails: NetworkTokenDetails;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { RewardType } from './RewardType.js';
|
|
3
|
+
|
|
4
|
+
type HistoricalReward = {
|
|
5
|
+
/**
|
|
6
|
+
* An array of P-Chain wallet addresses.
|
|
7
|
+
*/
|
|
8
|
+
addresses: Array<string>;
|
|
9
|
+
txHash: string;
|
|
10
|
+
amountStaked: string;
|
|
11
|
+
nodeId: string;
|
|
12
|
+
startTimestamp: number;
|
|
13
|
+
endTimestamp: number;
|
|
14
|
+
rewardType: RewardType;
|
|
15
|
+
utxoId: string;
|
|
16
|
+
outputIndex: number;
|
|
17
|
+
/**
|
|
18
|
+
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
19
|
+
*/
|
|
20
|
+
reward: PChainAsset;
|
|
21
|
+
rewardTxHash: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { HistoricalReward };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Blockchain } from './Blockchain.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type ListBlockchainsResponse = {
|
|
4
4
|
/**
|
|
5
5
|
* 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.
|
|
6
6
|
*/
|
|
7
7
|
nextPageToken?: string;
|
|
8
|
-
|
|
8
|
+
blockchains: Array<Blockchain>;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { ListBlockchainsResponse };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CChainAtomicBalances } from './CChainAtomicBalances.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
3
|
|
|
3
4
|
type ListCChainAtomicBalancesResponse = {
|
|
4
5
|
balances: CChainAtomicBalances;
|
|
6
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
5
7
|
};
|
|
6
8
|
|
|
7
9
|
export { ListCChainAtomicBalancesResponse };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CChainExportTransaction } from './CChainExportTransaction.js';
|
|
2
2
|
import { CChainImportTransaction } from './CChainImportTransaction.js';
|
|
3
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
3
4
|
|
|
4
5
|
type ListCChainAtomicTransactionsResponse = {
|
|
5
6
|
/**
|
|
@@ -7,6 +8,7 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
7
8
|
*/
|
|
8
9
|
nextPageToken?: string;
|
|
9
10
|
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
11
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
export { ListCChainAtomicTransactionsResponse };
|
|
@@ -7,8 +7,7 @@ type ListCollectibleBalancesResponse = {
|
|
|
7
7
|
*/
|
|
8
8
|
nextPageToken?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The list of ERC-721 and ERC-1155 token balances for the
|
|
11
|
-
* address.
|
|
10
|
+
* The list of ERC-721 and ERC-1155 token balances for the address.
|
|
12
11
|
*/
|
|
13
12
|
collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
|
|
14
13
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc1155Contract } from './Erc1155Contract.js';
|
|
2
|
+
import { Erc20Contract } from './Erc20Contract.js';
|
|
3
|
+
import { Erc721Contract } from './Erc721Contract.js';
|
|
4
|
+
import { UnknownContract } from './UnknownContract.js';
|
|
5
|
+
|
|
6
|
+
type ListContractsResponse = {
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
nextPageToken?: string;
|
|
11
|
+
contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListContractsResponse };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActiveDelegatorDetails } from './ActiveDelegatorDetails.js';
|
|
2
|
+
import { CompletedDelegatorDetails } from './CompletedDelegatorDetails.js';
|
|
3
|
+
import { PendingDelegatorDetails } from './PendingDelegatorDetails.js';
|
|
4
|
+
|
|
5
|
+
type ListDelegatorDetailsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
nextPageToken?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The list of Delegator Details.
|
|
12
|
+
*/
|
|
13
|
+
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { ListDelegatorDetailsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EvmBlock } from './EvmBlock.js';
|
|
2
|
+
|
|
3
|
+
type ListEvmBlocksResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
blocks: Array<EvmBlock>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListEvmBlocksResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HistoricalReward } from './HistoricalReward.js';
|
|
2
|
+
|
|
3
|
+
type ListHistoricalRewardsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
historicalRewards: Array<HistoricalReward>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListHistoricalRewardsResponse };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PChainBalance } from './PChainBalance.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
3
|
|
|
3
4
|
type ListPChainBalancesResponse = {
|
|
4
5
|
balances: PChainBalance;
|
|
6
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
5
7
|
};
|
|
6
8
|
|
|
7
9
|
export { ListPChainBalancesResponse };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PChainTransaction } from './PChainTransaction.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
3
|
|
|
3
4
|
type ListPChainTransactionsResponse = {
|
|
4
5
|
/**
|
|
@@ -6,6 +7,7 @@ type ListPChainTransactionsResponse = {
|
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
8
9
|
transactions: Array<PChainTransaction>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export { ListPChainTransactionsResponse };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
3
|
|
|
3
4
|
type ListPChainUtxosResponse = {
|
|
4
5
|
/**
|
|
@@ -6,6 +7,7 @@ type ListPChainUtxosResponse = {
|
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
8
9
|
utxos: Array<PChainUtxo>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export { ListPChainUtxosResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PendingReward } from './PendingReward.js';
|
|
2
|
+
|
|
3
|
+
type ListPendingRewardsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
pendingRewards: Array<PendingReward>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListPendingRewardsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PrimaryNetworkBlock } from './PrimaryNetworkBlock.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
3
|
+
|
|
4
|
+
type ListPrimaryNetworkBlocksResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
7
|
+
*/
|
|
8
|
+
nextPageToken?: string;
|
|
9
|
+
blocks: Array<PrimaryNetworkBlock>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ListPrimaryNetworkBlocksResponse };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Subnet } from './Subnet.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type ListSubnetsResponse = {
|
|
4
4
|
/**
|
|
5
5
|
* 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.
|
|
6
6
|
*/
|
|
7
7
|
nextPageToken?: string;
|
|
8
|
-
|
|
8
|
+
subnets: Array<Subnet>;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export {
|
|
11
|
+
export { ListSubnetsResponse };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
1
2
|
import { Utxo } from './Utxo.js';
|
|
2
3
|
|
|
3
4
|
type ListUtxosResponse = {
|
|
@@ -6,6 +7,7 @@ type ListUtxosResponse = {
|
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
8
9
|
utxos: Array<Utxo>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export { ListUtxosResponse };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
|
|
2
|
+
import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
|
|
3
|
+
import { PendingValidatorDetails } from './PendingValidatorDetails.js';
|
|
4
|
+
|
|
5
|
+
type ListValidatorDetailsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
nextPageToken?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The list of Validator Details.
|
|
12
|
+
*/
|
|
13
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { ListValidatorDetailsResponse };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
1
2
|
import { XChainBalances } from './XChainBalances.js';
|
|
2
3
|
|
|
3
4
|
type ListXChainBalancesResponse = {
|
|
4
5
|
balances: XChainBalances;
|
|
6
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
5
7
|
};
|
|
6
8
|
|
|
7
9
|
export { ListXChainBalancesResponse };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
1
2
|
import { XChainLinearTransaction } from './XChainLinearTransaction.js';
|
|
2
3
|
import { XChainNonLinearTransaction } from './XChainNonLinearTransaction.js';
|
|
3
4
|
|
|
@@ -7,6 +8,7 @@ type ListXChainTransactionsResponse = {
|
|
|
7
8
|
*/
|
|
8
9
|
nextPageToken?: string;
|
|
9
10
|
transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
|
|
11
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
export { ListXChainTransactionsResponse };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
1
2
|
import { XChainVertex } from './XChainVertex.js';
|
|
2
3
|
|
|
3
4
|
type ListXChainVerticesResponse = {
|
|
@@ -6,6 +7,7 @@ type ListXChainVerticesResponse = {
|
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
8
9
|
vertices: Array<XChainVertex>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export { ListXChainVerticesResponse };
|
|
@@ -2,13 +2,7 @@ import { TransactionMethodType } from './TransactionMethodType.js';
|
|
|
2
2
|
|
|
3
3
|
type Method = {
|
|
4
4
|
/**
|
|
5
|
-
* The contract call type.
|
|
6
|
-
* NATIVE_TRANSFER indicates a transfer of the
|
|
7
|
-
* native token without any smart-contract interaction.
|
|
8
|
-
* CONTRACT_CALL indicates a smart-contract
|
|
9
|
-
* interaction.
|
|
10
|
-
* CONTRACT_CREATION indicates a smart-contract
|
|
11
|
-
* creation.
|
|
5
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
12
6
|
*/
|
|
13
7
|
callType: TransactionMethodType;
|
|
14
8
|
/**
|
|
@@ -10,9 +10,7 @@ type NativeTokenBalance = {
|
|
|
10
10
|
*/
|
|
11
11
|
symbol: string;
|
|
12
12
|
/**
|
|
13
|
-
* The number of decimals the token uses. For example `6`,
|
|
14
|
-
* means to divide the token amount by `1000000` to get its user
|
|
15
|
-
* representation.
|
|
13
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
16
14
|
*/
|
|
17
15
|
decimals: number;
|
|
18
16
|
/**
|
|
@@ -28,8 +26,7 @@ type NativeTokenBalance = {
|
|
|
28
26
|
*/
|
|
29
27
|
price?: Money;
|
|
30
28
|
/**
|
|
31
|
-
* The address balance for the token, in units specified by the
|
|
32
|
-
* `decimals` value for the contract.
|
|
29
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
33
30
|
*/
|
|
34
31
|
balance: string;
|
|
35
32
|
/**
|
|
@@ -8,9 +8,7 @@ type NetworkToken = {
|
|
|
8
8
|
*/
|
|
9
9
|
symbol: string;
|
|
10
10
|
/**
|
|
11
|
-
* The number of decimals the token uses. For example `6`,
|
|
12
|
-
* means to divide the token amount by `1000000` to get its user
|
|
13
|
-
* representation.
|
|
11
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
14
12
|
*/
|
|
15
13
|
decimals: number;
|
|
16
14
|
/**
|
|
@@ -8,9 +8,7 @@ type NetworkTokenDetails = {
|
|
|
8
8
|
*/
|
|
9
9
|
currentPrice?: Money;
|
|
10
10
|
/**
|
|
11
|
-
* The historical token price at the time the transaction
|
|
12
|
-
* occured, if available. Note, this is only provided if the transaction
|
|
13
|
-
* occured more than 24 hours ago.
|
|
11
|
+
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
14
12
|
*/
|
|
15
13
|
historicalPrice?: Money;
|
|
16
14
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OperationStatus } from './OperationStatus.js';
|
|
2
|
-
import { OperationTransactionExportMetadata } from './OperationTransactionExportMetadata.js';
|
|
3
2
|
import { OperationType } from './OperationType.js';
|
|
3
|
+
import { TransactionExportMetadata } from './TransactionExportMetadata.js';
|
|
4
4
|
|
|
5
5
|
type OperationStatusResponse = {
|
|
6
6
|
operationId: string;
|
|
7
7
|
operationType: OperationType;
|
|
8
8
|
operationStatus: OperationStatus;
|
|
9
9
|
message?: string;
|
|
10
|
-
metadata:
|
|
10
|
+
metadata: TransactionExportMetadata;
|
|
11
11
|
createdAtTimestamp: number;
|
|
12
12
|
updatedAtTimestamp: number;
|
|
13
13
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var OperationType = /* @__PURE__ */ ((OperationType2) => {
|
|
2
|
-
OperationType2["
|
|
2
|
+
OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
|
|
3
|
+
OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
|
|
3
4
|
return OperationType2;
|
|
4
5
|
})(OperationType || {});
|
|
5
6
|
|
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { PChainSharedAsset } from './PChainSharedAsset.js';
|
|
2
3
|
|
|
3
4
|
type PChainBalance = {
|
|
4
5
|
/**
|
|
5
6
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
6
7
|
*/
|
|
7
|
-
unlockedUnstaked
|
|
8
|
+
unlockedUnstaked: Array<PChainAsset>;
|
|
8
9
|
/**
|
|
9
10
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
10
11
|
*/
|
|
11
|
-
unlockedStaked
|
|
12
|
+
unlockedStaked: Array<PChainAsset>;
|
|
12
13
|
/**
|
|
13
14
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
14
15
|
*/
|
|
15
|
-
lockedPlatform
|
|
16
|
+
lockedPlatform: Array<PChainAsset>;
|
|
16
17
|
/**
|
|
17
18
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
18
19
|
*/
|
|
19
|
-
lockedStakeable
|
|
20
|
+
lockedStakeable: Array<PChainAsset>;
|
|
20
21
|
/**
|
|
21
22
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
22
23
|
*/
|
|
23
|
-
lockedStaked
|
|
24
|
+
lockedStaked: Array<PChainAsset>;
|
|
24
25
|
/**
|
|
25
|
-
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of
|
|
26
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
26
27
|
*/
|
|
27
|
-
|
|
28
|
+
pendingStaked: Array<PChainAsset>;
|
|
29
|
+
/**
|
|
30
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
31
|
+
*/
|
|
32
|
+
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
33
|
+
/**
|
|
34
|
+
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
35
|
+
*/
|
|
36
|
+
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
28
37
|
};
|
|
29
38
|
|
|
30
39
|
export { PChainBalance };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare enum PChainId {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
_11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
|
|
3
|
+
P_CHAIN = "p-chain"
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
export { PChainId };
|