@avalabs/glacier-sdk 2.8.0-alpha.13 → 2.8.0-alpha.130
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/README.md +10 -0
- package/dist/index.d.ts +3703 -3
- package/dist/index.js +1815 -155
- package/esm/generated/Glacier.d.ts +38 -0
- package/esm/generated/Glacier.js +62 -0
- package/esm/generated/core/ApiError.d.ts +13 -0
- package/esm/generated/core/ApiError.js +18 -0
- package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
- package/esm/generated/core/ApiResult.d.ts +9 -0
- package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
- package/esm/generated/core/BaseHttpRequest.js +7 -0
- package/esm/generated/core/CancelablePromise.d.ts +28 -0
- package/esm/generated/core/CancelablePromise.js +91 -0
- package/esm/generated/core/FetchHttpRequest.js +13 -0
- package/esm/generated/core/OpenAPI.d.ts +18 -0
- package/esm/generated/core/OpenAPI.js +13 -0
- package/esm/generated/core/request.js +227 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
- package/esm/generated/models/Asset.d.ts +28 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +12 -0
- package/esm/generated/models/BlockchainId.js +13 -0
- 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/CChainAtomicBalances.d.ts +8 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainExportTransaction.js +8 -0
- package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainImportTransaction.js +8 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
- package/esm/generated/models/ChainInfo.d.ts +27 -0
- package/esm/generated/models/ChainStatus.d.ts +6 -0
- package/esm/generated/models/ChainStatus.js +7 -0
- 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/CurrencyCode.d.ts +18 -0
- package/esm/generated/models/CurrencyCode.js +19 -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 +19 -0
- package/esm/generated/models/EVMOutput.d.ts +14 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155Token.d.ts +19 -0
- package/esm/generated/models/Erc1155Token.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
- package/esm/generated/models/Erc1155TokenBalance.js +8 -0
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
- package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -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 +36 -0
- package/esm/generated/models/Erc20Token.js +8 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
- package/esm/generated/models/Erc20TokenBalance.js +8 -0
- package/esm/generated/models/Erc20Transfer.d.ts +28 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Token.d.ts +31 -0
- package/esm/generated/models/Erc721Token.js +8 -0
- package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
- package/esm/generated/models/Erc721TokenBalance.js +8 -0
- package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
- package/esm/generated/models/Erc721Transfer.d.ts +27 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
- package/esm/generated/models/EvmBlock.d.ts +45 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
- package/esm/generated/models/GetChainResponse.d.ts +27 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -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 +29 -0
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/InternalTransaction.d.ts +33 -0
- package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
- package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
- package/esm/generated/models/InternalTransactionOpCall.js +12 -0
- package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
- package/esm/generated/models/ListChainsResponse.d.ts +7 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
- package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
- package/esm/generated/models/Method.d.ts +18 -0
- package/esm/generated/models/Money.d.ts +14 -0
- package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
- package/esm/generated/models/NativeTransaction.d.ts +55 -0
- package/esm/generated/models/Network.d.ts +6 -0
- package/esm/generated/models/Network.js +7 -0
- package/esm/generated/models/NetworkToken.d.ts +21 -0
- package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
- package/esm/generated/models/OperationStatus.d.ts +8 -0
- package/esm/generated/models/OperationStatus.js +9 -0
- package/esm/generated/models/OperationStatusCode.d.ts +7 -0
- package/esm/generated/models/OperationStatusCode.js +8 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
- package/esm/generated/models/OperationType.d.ts +6 -0
- package/esm/generated/models/OperationType.js +7 -0
- package/esm/generated/models/PChainAsset.d.ts +6 -0
- package/esm/generated/models/PChainBalance.d.ts +39 -0
- package/esm/generated/models/PChainId.d.ts +6 -0
- package/esm/generated/models/PChainId.js +7 -0
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +71 -0
- package/esm/generated/models/PChainTransactionType.d.ts +16 -0
- package/esm/generated/models/PChainTransactionType.js +17 -0
- package/esm/generated/models/PChainUtxo.d.ts +31 -0
- 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/PrimaryNetworkBlock.d.ts +15 -0
- 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 +7 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
- package/esm/generated/models/ProposerDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +8 -0
- package/esm/generated/models/ResourceLinkType.d.ts +22 -0
- package/esm/generated/models/ResourceLinkType.js +23 -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 +24 -0
- package/esm/generated/models/SortOrder.d.ts +6 -0
- package/esm/generated/models/SortOrder.js +7 -0
- 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 +30 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/TransactionMethodType.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.js +8 -0
- package/esm/generated/models/TransactionStatus.d.ts +6 -0
- package/esm/generated/models/TransactionStatus.js +7 -0
- package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/UtilityAddresses.d.ts +5 -0
- package/esm/generated/models/Utxo.d.ts +68 -0
- package/esm/generated/models/UtxoCredential.d.ts +12 -0
- 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/VmName.d.ts +7 -0
- package/esm/generated/models/VmName.js +8 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
- package/esm/generated/models/XChainBalances.d.ts +17 -0
- package/esm/generated/models/XChainId.d.ts +7 -0
- package/esm/generated/models/XChainId.js +8 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
- package/esm/generated/models/XChainLinearTransaction.js +9 -0
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
- package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/XChainVertex.d.ts +12 -0
- 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 +20 -0
- package/esm/generated/services/HealthCheckService.js +16 -0
- package/esm/generated/services/NfTsService.d.ts +69 -0
- package/esm/generated/services/NfTsService.js +50 -0
- package/esm/generated/services/OperationsService.d.ts +35 -0
- package/esm/generated/services/OperationsService.js +28 -0
- 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 +221 -0
- package/esm/generated/services/PrimaryNetworkService.js +159 -0
- 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 +165 -0
- package/esm/index.js +61 -0
- package/package.json +11 -20
- package/CHANGELOG.md +0 -240
- package/__tests__/glacier-sdk.test.js +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/generated/models.d.ts +0 -385
- package/dist/src/generated/models.d.ts.map +0 -1
- package/dist/src/glacierClient.d.ts +0 -93
- package/dist/src/glacierClient.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -13
- package/dist/src/types.d.ts.map +0 -1
- package/index.ts +0 -2
- package/rollup.config.js +0 -33
- package/src/generated/models.ts +0 -460
- package/src/glacierClient.ts +0 -190
- package/src/types.ts +0 -6
- package/swagger/generateModels.js +0 -40
- package/tsconfig.json +0 -7
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
|
|
2
|
+
import { Erc20TransferDetails } from './Erc20TransferDetails.js';
|
|
3
|
+
import { Erc721TransferDetails } from './Erc721TransferDetails.js';
|
|
4
|
+
import { FullNativeTransactionDetails } from './FullNativeTransactionDetails.js';
|
|
5
|
+
import { InternalTransactionDetails } from './InternalTransactionDetails.js';
|
|
6
|
+
import { NetworkTokenDetails } from './NetworkTokenDetails.js';
|
|
7
|
+
|
|
8
|
+
type GetTransactionResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* The list of ERC-20 transfers.
|
|
11
|
+
*/
|
|
12
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
13
|
+
/**
|
|
14
|
+
* The list of ERC-721 transfers.
|
|
15
|
+
*/
|
|
16
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
17
|
+
/**
|
|
18
|
+
* The list of ERC-1155 transfers.
|
|
19
|
+
*/
|
|
20
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
21
|
+
/**
|
|
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.
|
|
23
|
+
*/
|
|
24
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
25
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
26
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { GetTransactionResponse };
|
|
@@ -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 };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type InternalTransaction = {
|
|
5
|
+
/**
|
|
6
|
+
* The block number on the chain.
|
|
7
|
+
*/
|
|
8
|
+
blockNumber: string;
|
|
9
|
+
/**
|
|
10
|
+
* The block finality timestamp.
|
|
11
|
+
*/
|
|
12
|
+
blockTimestamp: number;
|
|
13
|
+
/**
|
|
14
|
+
* The block hash identifier.
|
|
15
|
+
*/
|
|
16
|
+
blockHash: string;
|
|
17
|
+
/**
|
|
18
|
+
* The transaction hash identifier.
|
|
19
|
+
*/
|
|
20
|
+
txHash: string;
|
|
21
|
+
from: RichAddress;
|
|
22
|
+
to: RichAddress;
|
|
23
|
+
internalTxType: InternalTransactionOpCall;
|
|
24
|
+
value: string;
|
|
25
|
+
/**
|
|
26
|
+
* True if the internal transaction was reverted.
|
|
27
|
+
*/
|
|
28
|
+
isReverted: boolean;
|
|
29
|
+
gasUsed: string;
|
|
30
|
+
gasLimit: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { InternalTransaction };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
+
import { RichAddress } from './RichAddress.js';
|
|
3
|
+
|
|
4
|
+
type InternalTransactionDetails = {
|
|
5
|
+
from: RichAddress;
|
|
6
|
+
to: RichAddress;
|
|
7
|
+
internalTxType: InternalTransactionOpCall;
|
|
8
|
+
value: string;
|
|
9
|
+
/**
|
|
10
|
+
* True if the internal transaction was reverted.
|
|
11
|
+
*/
|
|
12
|
+
isReverted: boolean;
|
|
13
|
+
gasUsed: string;
|
|
14
|
+
gasLimit: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { InternalTransactionDetails };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
|
|
2
|
+
InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
|
|
3
|
+
InternalTransactionOpCall2["CALL"] = "CALL";
|
|
4
|
+
InternalTransactionOpCall2["CREATE"] = "CREATE";
|
|
5
|
+
InternalTransactionOpCall2["CREATE2"] = "CREATE2";
|
|
6
|
+
InternalTransactionOpCall2["CALLCODE"] = "CALLCODE";
|
|
7
|
+
InternalTransactionOpCall2["DELEGATECALL"] = "DELEGATECALL";
|
|
8
|
+
InternalTransactionOpCall2["STATICCALL"] = "STATICCALL";
|
|
9
|
+
return InternalTransactionOpCall2;
|
|
10
|
+
})(InternalTransactionOpCall || {});
|
|
11
|
+
|
|
12
|
+
export { InternalTransactionOpCall };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Blockchain } from './Blockchain.js';
|
|
2
|
+
|
|
3
|
+
type ListBlockchainsResponse = {
|
|
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
|
+
blockchains: Array<Blockchain>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListBlockchainsResponse };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CChainAtomicBalances } from './CChainAtomicBalances.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
3
|
+
|
|
4
|
+
type ListCChainAtomicBalancesResponse = {
|
|
5
|
+
balances: CChainAtomicBalances;
|
|
6
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { ListCChainAtomicBalancesResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CChainExportTransaction } from './CChainExportTransaction.js';
|
|
2
|
+
import { CChainImportTransaction } from './CChainImportTransaction.js';
|
|
3
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
4
|
+
|
|
5
|
+
type ListCChainAtomicTransactionsResponse = {
|
|
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
|
+
transactions: Array<(CChainExportTransaction | CChainImportTransaction)>;
|
|
11
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListCChainAtomicTransactionsResponse };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
|
|
2
|
+
import { Erc721TokenBalance } from './Erc721TokenBalance.js';
|
|
3
|
+
|
|
4
|
+
type ListCollectibleBalancesResponse = {
|
|
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
|
+
/**
|
|
10
|
+
* The list of ERC-721 and ERC-1155 token balances for the address.
|
|
11
|
+
*/
|
|
12
|
+
collectibleBalances: Array<(Erc721TokenBalance | Erc1155TokenBalance)>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { ListCollectibleBalancesResponse };
|
|
@@ -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,14 @@
|
|
|
1
|
+
import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
|
|
2
|
+
|
|
3
|
+
type ListErc1155BalancesResponse = {
|
|
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
|
+
/**
|
|
9
|
+
* The list of ERC-1155 token balances for the address.
|
|
10
|
+
*/
|
|
11
|
+
erc1155TokenBalances: Array<Erc1155TokenBalance>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListErc1155BalancesResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Erc1155Transfer } from './Erc1155Transfer.js';
|
|
2
|
+
|
|
3
|
+
type ListErc1155TransactionsResponse = {
|
|
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
|
+
transactions: Array<Erc1155Transfer>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListErc1155TransactionsResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc20TokenBalance } from './Erc20TokenBalance.js';
|
|
2
|
+
|
|
3
|
+
type ListErc20BalancesResponse = {
|
|
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
|
+
/**
|
|
9
|
+
* The list of ERC-20 token balances for the address.
|
|
10
|
+
*/
|
|
11
|
+
erc20TokenBalances: Array<Erc20TokenBalance>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListErc20BalancesResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Erc20Transfer } from './Erc20Transfer.js';
|
|
2
|
+
|
|
3
|
+
type ListErc20TransactionsResponse = {
|
|
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
|
+
transactions: Array<Erc20Transfer>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListErc20TransactionsResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Erc721TokenBalance } from './Erc721TokenBalance.js';
|
|
2
|
+
|
|
3
|
+
type ListErc721BalancesResponse = {
|
|
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
|
+
/**
|
|
9
|
+
* The list of ERC-721 token balances for the address.
|
|
10
|
+
*/
|
|
11
|
+
erc721TokenBalances: Array<Erc721TokenBalance>;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListErc721BalancesResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Erc721Transfer } from './Erc721Transfer.js';
|
|
2
|
+
|
|
3
|
+
type ListErc721TransactionsResponse = {
|
|
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
|
+
transactions: Array<Erc721Transfer>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListErc721TransactionsResponse };
|
|
@@ -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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InternalTransaction } from './InternalTransaction.js';
|
|
2
|
+
|
|
3
|
+
type ListInternalTransactionsResponse = {
|
|
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
|
+
transactions: Array<InternalTransaction>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListInternalTransactionsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NativeTransaction } from './NativeTransaction.js';
|
|
2
|
+
|
|
3
|
+
type ListNativeTransactionsResponse = {
|
|
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
|
+
transactions: Array<NativeTransaction>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListNativeTransactionsResponse };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PChainBalance } from './PChainBalance.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
3
|
+
|
|
4
|
+
type ListPChainBalancesResponse = {
|
|
5
|
+
balances: PChainBalance;
|
|
6
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { ListPChainBalancesResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PChainTransaction } from './PChainTransaction.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
3
|
+
|
|
4
|
+
type ListPChainTransactionsResponse = {
|
|
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
|
+
transactions: Array<PChainTransaction>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ListPChainTransactionsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PChainUtxo } from './PChainUtxo.js';
|
|
2
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
3
|
+
|
|
4
|
+
type ListPChainUtxosResponse = {
|
|
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
|
+
utxos: Array<PChainUtxo>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
11
|
+
};
|
|
12
|
+
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Subnet } from './Subnet.js';
|
|
2
|
+
|
|
3
|
+
type ListSubnetsResponse = {
|
|
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
|
+
subnets: Array<Subnet>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListSubnetsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TransactionDetails } from './TransactionDetails.js';
|
|
2
|
+
|
|
3
|
+
type ListTransactionDetailsResponse = {
|
|
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
|
+
transactions: Array<TransactionDetails>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListTransactionDetailsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Erc1155Transfer } from './Erc1155Transfer.js';
|
|
2
|
+
import { Erc20Transfer } from './Erc20Transfer.js';
|
|
3
|
+
import { Erc721Transfer } from './Erc721Transfer.js';
|
|
4
|
+
|
|
5
|
+
type ListTransfersResponse = {
|
|
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
|
+
transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ListTransfersResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
|
+
import { Utxo } from './Utxo.js';
|
|
3
|
+
|
|
4
|
+
type ListUtxosResponse = {
|
|
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
|
+
utxos: Array<Utxo>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
11
|
+
};
|
|
12
|
+
|
|
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 };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
|
+
import { XChainBalances } from './XChainBalances.js';
|
|
3
|
+
|
|
4
|
+
type ListXChainBalancesResponse = {
|
|
5
|
+
balances: XChainBalances;
|
|
6
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { ListXChainBalancesResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
|
+
import { XChainLinearTransaction } from './XChainLinearTransaction.js';
|
|
3
|
+
import { XChainNonLinearTransaction } from './XChainNonLinearTransaction.js';
|
|
4
|
+
|
|
5
|
+
type ListXChainTransactionsResponse = {
|
|
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
|
+
transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
|
|
11
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ListXChainTransactionsResponse };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PrimaryNetworkChainInfo } from './PrimaryNetworkChainInfo.js';
|
|
2
|
+
import { XChainVertex } from './XChainVertex.js';
|
|
3
|
+
|
|
4
|
+
type ListXChainVerticesResponse = {
|
|
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
|
+
vertices: Array<XChainVertex>;
|
|
10
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { ListXChainVerticesResponse };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TransactionMethodType } from './TransactionMethodType.js';
|
|
2
|
+
|
|
3
|
+
type Method = {
|
|
4
|
+
/**
|
|
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.
|
|
6
|
+
*/
|
|
7
|
+
callType: TransactionMethodType;
|
|
8
|
+
/**
|
|
9
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
10
|
+
*/
|
|
11
|
+
methodHash: string;
|
|
12
|
+
/**
|
|
13
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
14
|
+
*/
|
|
15
|
+
methodName?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Method };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
|
|
3
|
+
type NativeTokenBalance = {
|
|
4
|
+
/**
|
|
5
|
+
* The contract name.
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The contract symbol.
|
|
10
|
+
*/
|
|
11
|
+
symbol: string;
|
|
12
|
+
/**
|
|
13
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
14
|
+
*/
|
|
15
|
+
decimals: number;
|
|
16
|
+
/**
|
|
17
|
+
* The logo uri for the address.
|
|
18
|
+
*/
|
|
19
|
+
logoUri?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The evm chain id.
|
|
22
|
+
*/
|
|
23
|
+
chainId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The token price, if available.
|
|
26
|
+
*/
|
|
27
|
+
price?: Money;
|
|
28
|
+
/**
|
|
29
|
+
* The address balance for the token, in units specified by the `decimals` value for the contract.
|
|
30
|
+
*/
|
|
31
|
+
balance: string;
|
|
32
|
+
/**
|
|
33
|
+
* The monetary value of the balance, if a price is available for the token.
|
|
34
|
+
*/
|
|
35
|
+
balanceValue?: Money;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { NativeTokenBalance };
|