@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.1b2916c.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 +2256 -1706
- package/dist/index.js +684 -317
- package/esm/generated/Glacier.d.ts +24 -2
- package/esm/generated/Glacier.js +49 -12
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +18 -0
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +24 -0
- package/esm/generated/models/ActiveValidatorDetails.js +8 -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 +18 -0
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/CompletedValidatorDetails.js +8 -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 +18 -0
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +15 -0
- package/esm/generated/models/PendingValidatorDetails.js +8 -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/EvmContractsService.d.ts +29 -0
- package/esm/generated/services/EvmContractsService.js +20 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +331 -0
- package/esm/generated/services/EvmTransactionsService.js +264 -0
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -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 +63 -31
- package/esm/index.js +34 -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,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 };
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
3
|
+
import { PChainUtxo } from './PChainUtxo.js';
|
|
4
4
|
|
|
5
5
|
type PChainTransaction = {
|
|
6
6
|
/**
|
|
7
7
|
* A P-Chain transaction hash.
|
|
8
8
|
*/
|
|
9
9
|
txHash: string;
|
|
10
|
-
txType:
|
|
10
|
+
txType: PChainTransactionType;
|
|
11
11
|
/**
|
|
12
12
|
* The block finality timestamp.
|
|
13
13
|
*/
|
|
14
14
|
blockTimestamp: number;
|
|
15
15
|
blockNumber: string;
|
|
16
16
|
blockHash: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
consumedUtxos?: Array<PChainConsumedUtxo>;
|
|
21
|
-
/**
|
|
22
|
-
* A list of objects containing emitted UTXO info pertaining to a given transaction.
|
|
23
|
-
*/
|
|
24
|
-
emittedUtxos?: Array<PChainEmittedUtxo>;
|
|
17
|
+
consumedUtxos: Array<PChainUtxo>;
|
|
18
|
+
emittedUtxos: Array<PChainUtxo>;
|
|
25
19
|
/**
|
|
26
20
|
* Source chain for an atomic transaction.
|
|
27
21
|
*/
|
|
@@ -33,15 +27,15 @@ type PChainTransaction = {
|
|
|
33
27
|
/**
|
|
34
28
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
35
29
|
*/
|
|
36
|
-
value
|
|
30
|
+
value: Array<PChainAsset>;
|
|
37
31
|
/**
|
|
38
32
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
39
33
|
*/
|
|
40
|
-
amountBurned
|
|
34
|
+
amountBurned: Array<PChainAsset>;
|
|
41
35
|
/**
|
|
42
36
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
43
37
|
*/
|
|
44
|
-
amountStaked
|
|
38
|
+
amountStaked: Array<PChainAsset>;
|
|
45
39
|
/**
|
|
46
40
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
47
41
|
*/
|
|
@@ -66,7 +60,7 @@ type PChainTransaction = {
|
|
|
66
60
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
67
61
|
*/
|
|
68
62
|
estimatedReward?: string;
|
|
69
|
-
|
|
63
|
+
rewardTxHash?: string;
|
|
70
64
|
memo?: string;
|
|
71
65
|
/**
|
|
72
66
|
* Present for RewardValidatorTx
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare enum PChainTransactionType {
|
|
2
|
+
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
8
|
+
CREATE_CHAIN_TX = "CreateChainTx",
|
|
9
|
+
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
10
|
+
IMPORT_TX = "ImportTx",
|
|
11
|
+
EXPORT_TX = "ExportTx",
|
|
12
|
+
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
13
|
+
UNKNOWN = "UNKNOWN"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { PChainTransactionType };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
2
|
+
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
|
+
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
|
+
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
|
+
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
8
|
+
PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
9
|
+
PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
10
|
+
PChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
11
|
+
PChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
12
|
+
PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
13
|
+
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
14
|
+
return PChainTransactionType2;
|
|
15
|
+
})(PChainTransactionType || {});
|
|
16
|
+
|
|
17
|
+
export { PChainTransactionType };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { RewardType } from './RewardType.js';
|
|
2
|
+
import { UtxoType } from './UtxoType.js';
|
|
3
|
+
|
|
1
4
|
type PChainUtxo = {
|
|
2
5
|
/**
|
|
3
6
|
* An array of P-Chain wallet addresses.
|
|
@@ -6,17 +9,23 @@ type PChainUtxo = {
|
|
|
6
9
|
utxoId: string;
|
|
7
10
|
txHash: string;
|
|
8
11
|
outputIndex: number;
|
|
12
|
+
blockNumber: string;
|
|
9
13
|
blockTimestamp: number;
|
|
10
14
|
consumingTxHash?: string;
|
|
11
15
|
consumingBlockTimestamp?: number;
|
|
16
|
+
consumingBlockNumber?: string;
|
|
12
17
|
assetId: string;
|
|
13
|
-
utxoType:
|
|
18
|
+
utxoType: UtxoType;
|
|
14
19
|
amount: string;
|
|
15
20
|
stakeableLocktime?: number;
|
|
16
21
|
platformLocktime?: number;
|
|
17
22
|
threshold?: number;
|
|
18
23
|
createdOnChainId: string;
|
|
19
24
|
consumedOnChainId: string;
|
|
25
|
+
staked?: boolean;
|
|
26
|
+
utxoStartTimestamp?: number;
|
|
27
|
+
utxoEndTimestamp?: number;
|
|
28
|
+
rewardType?: RewardType;
|
|
20
29
|
};
|
|
21
30
|
|
|
22
31
|
export { PChainUtxo };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type PendingDelegatorDetails = {
|
|
2
|
+
txHash: string;
|
|
3
|
+
rewardAddresses: Array<string>;
|
|
4
|
+
amountDelegated: string;
|
|
5
|
+
delegationFee: string;
|
|
6
|
+
startTimestamp: number;
|
|
7
|
+
endTimestamp: number;
|
|
8
|
+
estimatedGrossReward: string;
|
|
9
|
+
estimatedNetReward: string;
|
|
10
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
11
|
+
};
|
|
12
|
+
declare namespace PendingDelegatorDetails {
|
|
13
|
+
enum delegationStatus {
|
|
14
|
+
PENDING = "pending"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingDelegatorDetails;
|
|
2
|
+
((PendingDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PChainAsset } from './PChainAsset.js';
|
|
2
|
+
import { RewardType } from './RewardType.js';
|
|
3
|
+
|
|
4
|
+
type PendingReward = {
|
|
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
|
+
progress: number;
|
|
16
|
+
/**
|
|
17
|
+
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
18
|
+
*/
|
|
19
|
+
estimatedReward: PChainAsset;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { PendingReward };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type PendingValidatorDetails = {
|
|
2
|
+
nodeId: string;
|
|
3
|
+
amountStaked: string;
|
|
4
|
+
delegationFee: string;
|
|
5
|
+
startTimestamp: number;
|
|
6
|
+
endTimestamp: number;
|
|
7
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
8
|
+
};
|
|
9
|
+
declare namespace PendingValidatorDetails {
|
|
10
|
+
enum validationStatus {
|
|
11
|
+
PENDING = "pending"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { PendingValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingValidatorDetails;
|
|
2
|
+
((PendingValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(PendingValidatorDetails || (PendingValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingValidatorDetails };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ProposerDetails } from './ProposerDetails.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type PrimaryNetworkBlock = {
|
|
4
4
|
blockNumber: string;
|
|
5
5
|
blockHash: string;
|
|
6
6
|
parentHash: string;
|
|
7
7
|
blockTimestamp: number;
|
|
8
8
|
blockType: string;
|
|
9
9
|
txCount: number;
|
|
10
|
-
transactions
|
|
10
|
+
transactions: Array<string>;
|
|
11
11
|
blockSizeBytes: number;
|
|
12
12
|
proposerDetails?: ProposerDetails;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { PrimaryNetworkBlock };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PrimaryNetwork } from './PrimaryNetwork.js';
|
|
2
|
+
import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
|
|
3
|
+
|
|
4
|
+
type PrimaryNetworkChainInfo = {
|
|
5
|
+
chainName: PrimaryNetworkChainName;
|
|
6
|
+
network: PrimaryNetwork;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { PrimaryNetworkChainInfo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
|
|
2
|
+
PrimaryNetworkChainName2["P_CHAIN"] = "p-chain";
|
|
3
|
+
PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
|
|
4
|
+
PrimaryNetworkChainName2["C_CHAIN"] = "c-chain";
|
|
5
|
+
return PrimaryNetworkChainName2;
|
|
6
|
+
})(PrimaryNetworkChainName || {});
|
|
7
|
+
|
|
8
|
+
export { PrimaryNetworkChainName };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type PrimaryNetworkOptions = {
|
|
2
2
|
addresses: Array<string>;
|
|
3
|
-
|
|
3
|
+
cChainEvmAddresses?: Array<string>;
|
|
4
|
+
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
4
5
|
};
|
|
5
6
|
|
|
6
7
|
export { PrimaryNetworkOptions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare enum PrimaryNetworkTxType {
|
|
2
|
+
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
8
|
+
CREATE_CHAIN_TX = "CreateChainTx",
|
|
9
|
+
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
10
|
+
IMPORT_TX = "ImportTx",
|
|
11
|
+
EXPORT_TX = "ExportTx",
|
|
12
|
+
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
13
|
+
UNKNOWN = "UNKNOWN",
|
|
14
|
+
BASE_TX = "BaseTx",
|
|
15
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
16
|
+
OPERATION_TX = "OperationTx"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { PrimaryNetworkTxType };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
2
|
+
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
|
+
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
|
+
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
|
+
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
8
|
+
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
9
|
+
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
10
|
+
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
11
|
+
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
12
|
+
PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
13
|
+
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
14
|
+
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
15
|
+
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
16
|
+
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
17
|
+
return PrimaryNetworkTxType2;
|
|
18
|
+
})(PrimaryNetworkTxType || {});
|
|
19
|
+
|
|
20
|
+
export { PrimaryNetworkTxType };
|
|
@@ -8,9 +8,7 @@ type RichAddress = {
|
|
|
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
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
2
|
+
|
|
3
|
+
type Subnet = {
|
|
4
|
+
createBlockTimestamp: number;
|
|
5
|
+
createBlockIndex: string;
|
|
6
|
+
subnetId: string;
|
|
7
|
+
ownerAddresses: Array<string>;
|
|
8
|
+
threshold: number;
|
|
9
|
+
locktime: number;
|
|
10
|
+
blockchains: Array<BlockchainInfo>;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { Subnet };
|
|
@@ -22,13 +22,7 @@ type TransactionDetails = {
|
|
|
22
22
|
*/
|
|
23
23
|
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
24
24
|
/**
|
|
25
|
-
* The list of internal transactions. Note that this list only
|
|
26
|
-
* includes CALL and
|
|
27
|
-
* CALLCODE internal transactions that had a
|
|
28
|
-
* non-zero value and
|
|
29
|
-
* CREATE/CREATE2
|
|
30
|
-
* calls. Use a client provider to recieve a full debug trace of the
|
|
31
|
-
* transaction.
|
|
25
|
+
* 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.
|
|
32
26
|
*/
|
|
33
27
|
internalTransactions?: Array<InternalTransactionDetails>;
|
|
34
28
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OperationStatusCode } from './OperationStatusCode.js';
|
|
2
|
+
|
|
3
|
+
type TransactionExportMetadata = {
|
|
4
|
+
code?: OperationStatusCode;
|
|
5
|
+
/**
|
|
6
|
+
* File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
|
|
7
|
+
*/
|
|
8
|
+
downloadUrl?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The next date (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
|
|
11
|
+
*/
|
|
12
|
+
nextDate?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { TransactionExportMetadata };
|