@avalabs/glacier-sdk 2.8.0-canary.a18b4e4.0 → 2.8.0-canary.a436aaa.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/LICENSE.md +9 -0
- package/dist/index.d.ts +1674 -711
- package/dist/index.js +1 -1810
- package/esm/generated/Glacier.d.ts +10 -0
- package/esm/generated/Glacier.js +1 -48
- package/esm/generated/core/ApiError.js +1 -13
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +1 -86
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -244
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +19 -6
- package/esm/generated/models/ActiveValidatorDetails.js +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +14 -3
- package/esm/generated/models/CompletedValidatorDetails.js +1 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +1 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +1 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +1 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +1 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +1 -7
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +18 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +1 -17
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +1 -0
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/PendingTeleporterMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +14 -3
- package/esm/generated/models/PendingValidatorDetails.js +1 -0
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -20
- package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
- package/esm/generated/models/RemovedValidatorDetails.js +1 -0
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -7
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +1 -0
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +1 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -8
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +1 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +1 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +1 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +27 -23
- package/esm/generated/services/EvmBalancesService.js +1 -116
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +1 -29
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +1 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.d.ts +23 -16
- package/esm/generated/services/NfTsService.js +1 -50
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -49
- package/esm/generated/services/PrimaryNetworkService.d.ts +70 -31
- package/esm/generated/services/PrimaryNetworkService.js +1 -159
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +62 -0
- package/esm/generated/services/TeleporterService.js +1 -0
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +1 -0
- package/esm/index.d.ts +50 -3
- package/esm/index.js +1 -61
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { UtxoCredential } from './UtxoCredential.js';
|
|
3
3
|
|
|
4
4
|
type Utxo = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
asset:
|
|
8
|
+
addresses: Array<string>;
|
|
9
|
+
asset: AssetAmount;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Blockchain ID on which this output is consumed on.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
consumedOnChainId: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Transaction ID that consumed this output.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
consumingTxHash?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Blockchain ID on which this output is
|
|
19
|
+
* Blockchain ID on which this output is created on.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
createdOnChainId: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* UTXO ID for this output.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
utxoId: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
consumingTxTimestamp?: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Transaction ID that created this output.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
creationTxHash: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Credentials that signed the transaction to consume this utxo
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
credentials?: Array<UtxoCredential>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Index representing the minting set for the NFT mint output.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
groupId?: number;
|
|
42
42
|
/**
|
|
43
43
|
* Locktime in seconds after which this output can be consumed.
|
|
44
44
|
*/
|
|
45
45
|
locktime: number;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
outputIndex: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Hex encoded data for NFT assets.
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
payload?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Minimum number of signatures required to consume this output.
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
threshold: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
timestamp: number;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Type of output.
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
utxoType: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export { Utxo };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
type UtxoCredential = {
|
|
2
2
|
/**
|
|
3
|
-
* Signature provided to consume the output
|
|
3
|
+
* Signature provided to consume the output.
|
|
4
4
|
*/
|
|
5
5
|
signature?: string;
|
|
6
6
|
/**
|
|
7
|
-
* Public key associated with the signature
|
|
7
|
+
* Public key associated with the signature.
|
|
8
8
|
*/
|
|
9
9
|
publicKey?: string;
|
|
10
10
|
};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
UtxoType2["STAKE"] = "STAKE";
|
|
3
|
-
UtxoType2["TRANSFER"] = "TRANSFER";
|
|
4
|
-
return UtxoType2;
|
|
5
|
-
})(UtxoType || {});
|
|
6
|
-
|
|
7
|
-
export { UtxoType };
|
|
1
|
+
var A=(A=>(A.STAKE="STAKE",A.TRANSFER="TRANSFER",A))(A||{});export{A as UtxoType};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
|
-
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
|
-
ValidationStatusType2["PENDING"] = "pending";
|
|
5
|
-
return ValidationStatusType2;
|
|
6
|
-
})(ValidationStatusType || {});
|
|
7
|
-
|
|
8
|
-
export { ValidationStatusType };
|
|
1
|
+
var e=(e=>(e.COMPLETED="completed",e.ACTIVE="active",e.PENDING="pending",e.REMOVED="removed",e))(e||{});export{e as ValidationStatusType};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type ValidatorHealthDetails = {
|
|
2
|
+
/**
|
|
3
|
+
* Percent of requests responded to in last polling.
|
|
4
|
+
*/
|
|
5
|
+
reachabilityPercent: number;
|
|
6
|
+
/**
|
|
7
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
8
|
+
*/
|
|
9
|
+
benchedPChainRequestsPercent: number;
|
|
10
|
+
/**
|
|
11
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
12
|
+
*/
|
|
13
|
+
benchedXChainRequestsPercent: number;
|
|
14
|
+
/**
|
|
15
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
16
|
+
*/
|
|
17
|
+
benchedCChainRequestsPercent: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { ValidatorHealthDetails };
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
VmName2["EVM"] = "EVM";
|
|
3
|
-
VmName2["BITCOIN"] = "BITCOIN";
|
|
4
|
-
VmName2["ETHEREUM"] = "ETHEREUM";
|
|
5
|
-
return VmName2;
|
|
6
|
-
})(VmName || {});
|
|
7
|
-
|
|
8
|
-
export { VmName };
|
|
1
|
+
var E=(E=>(E.EVM="EVM",E.BITCOIN="BITCOIN",E.ETHEREUM="ETHEREUM",E))(E||{});export{E as VmName};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
+
import { EventType } from './EventType.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type WebhookResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
eventType: EventType;
|
|
8
|
+
metadata: AddressActivityMetadata;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to include traces in the webhook payload.
|
|
11
|
+
*/
|
|
12
|
+
includeInternalTxs?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to include logs in the webhook payload.
|
|
15
|
+
*/
|
|
16
|
+
includeLogs?: boolean;
|
|
17
|
+
url: string;
|
|
18
|
+
chainId: string;
|
|
19
|
+
status: WebhookStatusType;
|
|
20
|
+
createdAt: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { WebhookResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatus};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.ACTIVE="active",a.INACTIVE="inactive",a))(a||{});export{a as WebhookStatusType};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
|
|
2
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
3
|
+
|
|
1
4
|
type XChainAssetDetails = {
|
|
2
5
|
/**
|
|
3
6
|
* Unique ID for an asset.
|
|
@@ -15,18 +18,12 @@ type XChainAssetDetails = {
|
|
|
15
18
|
* Denomination of this asset to represent fungibility.
|
|
16
19
|
*/
|
|
17
20
|
denomination: number;
|
|
18
|
-
|
|
19
|
-
* Type of asset like SECP256K1 or NFT.
|
|
20
|
-
*/
|
|
21
|
-
type: string;
|
|
21
|
+
type: PrimaryNetworkAssetType;
|
|
22
22
|
/**
|
|
23
23
|
* Timestamp in seconds this asset was created on.
|
|
24
24
|
*/
|
|
25
25
|
createdAtTimestamp: number;
|
|
26
|
-
|
|
27
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
28
|
-
*/
|
|
29
|
-
cap: string;
|
|
26
|
+
cap: PrimaryNetworkAssetCap;
|
|
30
27
|
};
|
|
31
28
|
|
|
32
29
|
export { XChainAssetDetails };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
|
|
2
2
|
import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
|
|
3
3
|
|
|
4
4
|
type XChainBalances = {
|
|
5
5
|
/**
|
|
6
6
|
* A list of objects containing X-chain Asset balance information.
|
|
7
7
|
*/
|
|
8
|
-
locked: Array<
|
|
8
|
+
locked: Array<AggregatedAssetAmount>;
|
|
9
9
|
/**
|
|
10
10
|
* A list of objects containing X-chain Asset balance information.
|
|
11
11
|
*/
|
|
12
|
-
unlocked: Array<
|
|
12
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
13
13
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
14
14
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
15
15
|
};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
|
|
3
|
-
XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
|
|
4
|
-
XChainId2["X_CHAIN"] = "x-chain";
|
|
5
|
-
return XChainId2;
|
|
6
|
-
})(XChainId || {});
|
|
7
|
-
|
|
8
|
-
export { XChainId };
|
|
1
|
+
var N=(N=>(N._2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M="2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",N._2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM="2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",N.X_CHAIN="x-chain",N))(N||{});export{N as XChainId};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { Utxo } from './Utxo.js';
|
|
3
3
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
4
|
+
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
4
5
|
|
|
5
6
|
type XChainLinearTransaction = {
|
|
6
7
|
/**
|
|
@@ -15,10 +16,7 @@ type XChainLinearTransaction = {
|
|
|
15
16
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
16
17
|
*/
|
|
17
18
|
timestamp: number;
|
|
18
|
-
|
|
19
|
-
* Type of transaction.
|
|
20
|
-
*/
|
|
21
|
-
txType: string;
|
|
19
|
+
txType: XChainTransactionType;
|
|
22
20
|
/**
|
|
23
21
|
* Hex encoded memo bytes for this transaction.
|
|
24
22
|
*/
|
|
@@ -28,11 +26,11 @@ type XChainLinearTransaction = {
|
|
|
28
26
|
/**
|
|
29
27
|
* Assets unlocked by inputs of this transaction.
|
|
30
28
|
*/
|
|
31
|
-
amountUnlocked: Array<
|
|
29
|
+
amountUnlocked: Array<AssetAmount>;
|
|
32
30
|
/**
|
|
33
31
|
* Assets created by outputs of this transaction.
|
|
34
32
|
*/
|
|
35
|
-
amountCreated: Array<
|
|
33
|
+
amountCreated: Array<AssetAmount>;
|
|
36
34
|
/**
|
|
37
35
|
* Source chain for an atomic transaction.
|
|
38
36
|
*/
|
|
@@ -42,7 +40,7 @@ type XChainLinearTransaction = {
|
|
|
42
40
|
*/
|
|
43
41
|
destinationChain?: string;
|
|
44
42
|
/**
|
|
45
|
-
*
|
|
43
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
46
44
|
*/
|
|
47
45
|
assetCreated?: XChainAssetDetails;
|
|
48
46
|
/**
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
var XChainLinearTransaction;
|
|
2
|
-
((XChainLinearTransaction2) => {
|
|
3
|
-
((chainFormat2) => {
|
|
4
|
-
chainFormat2["NON_LINEAR"] = "non-linear";
|
|
5
|
-
chainFormat2["LINEAR"] = "linear";
|
|
6
|
-
})(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
|
|
7
|
-
})(XChainLinearTransaction || (XChainLinearTransaction = {}));
|
|
8
|
-
|
|
9
|
-
export { XChainLinearTransaction };
|
|
1
|
+
var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainLinearTransaction};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { TransactionVertexDetail } from './TransactionVertexDetail.js';
|
|
3
3
|
import { Utxo } from './Utxo.js';
|
|
4
4
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
5
|
+
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
5
6
|
|
|
6
7
|
type XChainNonLinearTransaction = {
|
|
7
8
|
/**
|
|
@@ -16,10 +17,7 @@ type XChainNonLinearTransaction = {
|
|
|
16
17
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
17
18
|
*/
|
|
18
19
|
timestamp: number;
|
|
19
|
-
|
|
20
|
-
* Type of transaction.
|
|
21
|
-
*/
|
|
22
|
-
txType: string;
|
|
20
|
+
txType: XChainTransactionType;
|
|
23
21
|
/**
|
|
24
22
|
* Hex encoded memo bytes for this transaction.
|
|
25
23
|
*/
|
|
@@ -29,11 +27,11 @@ type XChainNonLinearTransaction = {
|
|
|
29
27
|
/**
|
|
30
28
|
* Assets unlocked by inputs of this transaction.
|
|
31
29
|
*/
|
|
32
|
-
amountUnlocked: Array<
|
|
30
|
+
amountUnlocked: Array<AssetAmount>;
|
|
33
31
|
/**
|
|
34
32
|
* Assets created by outputs of this transaction.
|
|
35
33
|
*/
|
|
36
|
-
amountCreated: Array<
|
|
34
|
+
amountCreated: Array<AssetAmount>;
|
|
37
35
|
/**
|
|
38
36
|
* Source chain for an atomic transaction.
|
|
39
37
|
*/
|
|
@@ -43,7 +41,7 @@ type XChainNonLinearTransaction = {
|
|
|
43
41
|
*/
|
|
44
42
|
destinationChain?: string;
|
|
45
43
|
/**
|
|
46
|
-
*
|
|
44
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
47
45
|
*/
|
|
48
46
|
assetCreated?: XChainAssetDetails;
|
|
49
47
|
/**
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
var XChainNonLinearTransaction;
|
|
2
|
-
((XChainNonLinearTransaction2) => {
|
|
3
|
-
((chainFormat2) => {
|
|
4
|
-
chainFormat2["NON_LINEAR"] = "non-linear";
|
|
5
|
-
chainFormat2["LINEAR"] = "linear";
|
|
6
|
-
})(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
|
|
7
|
-
})(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
|
|
8
|
-
|
|
9
|
-
export { XChainNonLinearTransaction };
|
|
1
|
+
var a,n,r;n=a||(a={}),(r=n.chainFormat||(n.chainFormat={})).NON_LINEAR="non-linear",r.LINEAR="linear";export{a as XChainNonLinearTransaction};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
2
|
+
|
|
1
3
|
type XChainSharedAssetBalance = {
|
|
2
4
|
/**
|
|
3
5
|
* Unique ID for an asset.
|
|
@@ -15,10 +17,7 @@ type XChainSharedAssetBalance = {
|
|
|
15
17
|
* Denomination of this asset to represent fungibility.
|
|
16
18
|
*/
|
|
17
19
|
denomination: number;
|
|
18
|
-
|
|
19
|
-
* Type of asset like SECP256K1 or NFT.
|
|
20
|
-
*/
|
|
21
|
-
type: string;
|
|
20
|
+
type: PrimaryNetworkAssetType;
|
|
22
21
|
/**
|
|
23
22
|
* Amount of the asset.
|
|
24
23
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type of transaction.
|
|
3
|
+
*/
|
|
4
|
+
declare enum XChainTransactionType {
|
|
5
|
+
BASE_TX = "BaseTx",
|
|
6
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
7
|
+
OPERATION_TX = "OperationTx",
|
|
8
|
+
IMPORT_TX = "ImportTx",
|
|
9
|
+
EXPORT_TX = "ExportTx",
|
|
10
|
+
UNKNOWN = "UNKNOWN"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { XChainTransactionType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var T=(T=>(T.BASE_TX="BaseTx",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as XChainTransactionType};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
3
|
+
|
|
4
|
+
declare class DefaultService {
|
|
5
|
+
readonly httpRequest: BaseHttpRequest;
|
|
6
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
7
|
+
/**
|
|
8
|
+
* @returns any
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { DefaultService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}export{t as DefaultService};
|
|
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
|
|
|
20
20
|
*/
|
|
21
21
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
22
22
|
/**
|
|
23
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
23
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
24
24
|
*/
|
|
25
25
|
chainId: string;
|
|
26
26
|
/**
|
|
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
|
|
|
46
46
|
* @returns ListErc20BalancesResponse
|
|
47
47
|
* @throws ApiError
|
|
48
48
|
*/
|
|
49
|
-
listErc20Balances({ chainId, address, blockNumber, pageSize,
|
|
49
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
50
50
|
/**
|
|
51
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
51
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
52
52
|
*/
|
|
53
53
|
chainId: string;
|
|
54
54
|
/**
|
|
@@ -59,14 +59,18 @@ declare class EvmBalancesService {
|
|
|
59
59
|
* The block number, if not defined the block number will be the latest block.
|
|
60
60
|
*/
|
|
61
61
|
blockNumber?: string;
|
|
62
|
+
/**
|
|
63
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
64
|
+
*/
|
|
65
|
+
pageToken?: string;
|
|
62
66
|
/**
|
|
63
67
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
64
68
|
*/
|
|
65
69
|
pageSize?: number;
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
68
72
|
*/
|
|
69
|
-
|
|
73
|
+
filterSpamTokens?: boolean;
|
|
70
74
|
/**
|
|
71
75
|
* A comma separated list of contract addresses to filter by.
|
|
72
76
|
*/
|
|
@@ -84,23 +88,23 @@ declare class EvmBalancesService {
|
|
|
84
88
|
* @returns ListErc721BalancesResponse
|
|
85
89
|
* @throws ApiError
|
|
86
90
|
*/
|
|
87
|
-
listErc721Balances({ chainId, address,
|
|
91
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
88
92
|
/**
|
|
89
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
93
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
90
94
|
*/
|
|
91
95
|
chainId: string;
|
|
92
96
|
/**
|
|
93
97
|
* A wallet address.
|
|
94
98
|
*/
|
|
95
99
|
address: string;
|
|
96
|
-
/**
|
|
97
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
98
|
-
*/
|
|
99
|
-
pageSize?: number;
|
|
100
100
|
/**
|
|
101
101
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
102
102
|
*/
|
|
103
103
|
pageToken?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
106
|
+
*/
|
|
107
|
+
pageSize?: number;
|
|
104
108
|
/**
|
|
105
109
|
* A contract addresses to filter by.
|
|
106
110
|
*/
|
|
@@ -116,9 +120,9 @@ declare class EvmBalancesService {
|
|
|
116
120
|
* @returns ListErc1155BalancesResponse
|
|
117
121
|
* @throws ApiError
|
|
118
122
|
*/
|
|
119
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
123
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
120
124
|
/**
|
|
121
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
125
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
122
126
|
*/
|
|
123
127
|
chainId: string;
|
|
124
128
|
/**
|
|
@@ -129,14 +133,14 @@ declare class EvmBalancesService {
|
|
|
129
133
|
* The block number, if not defined the block number will be the latest block.
|
|
130
134
|
*/
|
|
131
135
|
blockNumber?: string;
|
|
132
|
-
/**
|
|
133
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
134
|
-
*/
|
|
135
|
-
pageSize?: number;
|
|
136
136
|
/**
|
|
137
137
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
138
138
|
*/
|
|
139
139
|
pageToken?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
142
|
+
*/
|
|
143
|
+
pageSize?: number;
|
|
140
144
|
/**
|
|
141
145
|
* A contract addresses to filter by.
|
|
142
146
|
*/
|
|
@@ -150,23 +154,23 @@ declare class EvmBalancesService {
|
|
|
150
154
|
* @returns ListCollectibleBalancesResponse
|
|
151
155
|
* @throws ApiError
|
|
152
156
|
*/
|
|
153
|
-
listCollectibleBalances({ chainId, address,
|
|
157
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
154
158
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
159
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
160
|
*/
|
|
157
161
|
chainId: string;
|
|
158
162
|
/**
|
|
159
163
|
* A wallet address.
|
|
160
164
|
*/
|
|
161
165
|
address: string;
|
|
162
|
-
/**
|
|
163
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
164
|
-
*/
|
|
165
|
-
pageSize?: number;
|
|
166
166
|
/**
|
|
167
167
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
168
168
|
*/
|
|
169
169
|
pageToken?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
172
|
+
*/
|
|
173
|
+
pageSize?: number;
|
|
170
174
|
/**
|
|
171
175
|
* A contract addresses to filter by.
|
|
172
176
|
*/
|