@avalabs/glacier-sdk 2.8.0-canary.c7d9a06.0 → 2.8.0-canary.c8536ea.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 +962 -410
- package/dist/index.js +372 -132
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -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/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -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 +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
- package/esm/generated/models/GlacierApiFeature.js +6 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- 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/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -5
- package/esm/generated/models/PChainTransactionType.js +8 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -6
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -6
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- 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 +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -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/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +27 -2
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +42 -42
- package/esm/generated/services/PrimaryNetworkService.js +20 -20
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +95 -0
- package/esm/generated/services/WebhooksService.js +80 -0
- package/esm/index.d.ts +31 -3
- package/esm/index.js +16 -2
- package/package.json +2 -2
- 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
|
};
|
|
@@ -2,6 +2,7 @@ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
|
|
|
2
2
|
ValidationStatusType2["COMPLETED"] = "completed";
|
|
3
3
|
ValidationStatusType2["ACTIVE"] = "active";
|
|
4
4
|
ValidationStatusType2["PENDING"] = "pending";
|
|
5
|
+
ValidationStatusType2["REMOVED"] = "removed";
|
|
5
6
|
return ValidationStatusType2;
|
|
6
7
|
})(ValidationStatusType || {});
|
|
7
8
|
|
|
@@ -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
|
+
includeTraces?: 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 };
|
|
@@ -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,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,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,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,11 @@
|
|
|
1
|
+
var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
|
|
2
|
+
XChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
3
|
+
XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
4
|
+
XChainTransactionType2["OPERATION_TX"] = "OperationTx";
|
|
5
|
+
XChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
6
|
+
XChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
7
|
+
XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
return XChainTransactionType2;
|
|
9
|
+
})(XChainTransactionType || {});
|
|
10
|
+
|
|
11
|
+
export { XChainTransactionType };
|
|
@@ -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,
|
|
49
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, 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,14 @@ 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
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
64
|
-
*/
|
|
65
|
-
pageSize?: number;
|
|
66
62
|
/**
|
|
67
63
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
68
64
|
*/
|
|
69
65
|
pageToken?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
68
|
+
*/
|
|
69
|
+
pageSize?: number;
|
|
70
70
|
/**
|
|
71
71
|
* A comma separated list of contract addresses to filter by.
|
|
72
72
|
*/
|
|
@@ -84,23 +84,23 @@ declare class EvmBalancesService {
|
|
|
84
84
|
* @returns ListErc721BalancesResponse
|
|
85
85
|
* @throws ApiError
|
|
86
86
|
*/
|
|
87
|
-
listErc721Balances({ chainId, address,
|
|
87
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
88
88
|
/**
|
|
89
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
89
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
90
90
|
*/
|
|
91
91
|
chainId: string;
|
|
92
92
|
/**
|
|
93
93
|
* A wallet address.
|
|
94
94
|
*/
|
|
95
95
|
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
96
|
/**
|
|
101
97
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
102
98
|
*/
|
|
103
99
|
pageToken?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
102
|
+
*/
|
|
103
|
+
pageSize?: number;
|
|
104
104
|
/**
|
|
105
105
|
* A contract addresses to filter by.
|
|
106
106
|
*/
|
|
@@ -116,9 +116,9 @@ declare class EvmBalancesService {
|
|
|
116
116
|
* @returns ListErc1155BalancesResponse
|
|
117
117
|
* @throws ApiError
|
|
118
118
|
*/
|
|
119
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
119
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
120
120
|
/**
|
|
121
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
121
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
122
122
|
*/
|
|
123
123
|
chainId: string;
|
|
124
124
|
/**
|
|
@@ -129,14 +129,14 @@ declare class EvmBalancesService {
|
|
|
129
129
|
* The block number, if not defined the block number will be the latest block.
|
|
130
130
|
*/
|
|
131
131
|
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
132
|
/**
|
|
137
133
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
138
134
|
*/
|
|
139
135
|
pageToken?: string;
|
|
136
|
+
/**
|
|
137
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
138
|
+
*/
|
|
139
|
+
pageSize?: number;
|
|
140
140
|
/**
|
|
141
141
|
* A contract addresses to filter by.
|
|
142
142
|
*/
|
|
@@ -150,23 +150,23 @@ declare class EvmBalancesService {
|
|
|
150
150
|
* @returns ListCollectibleBalancesResponse
|
|
151
151
|
* @throws ApiError
|
|
152
152
|
*/
|
|
153
|
-
listCollectibleBalances({ chainId, address,
|
|
153
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
154
154
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
155
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
156
|
*/
|
|
157
157
|
chainId: string;
|
|
158
158
|
/**
|
|
159
159
|
* A wallet address.
|
|
160
160
|
*/
|
|
161
161
|
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
162
|
/**
|
|
167
163
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
168
164
|
*/
|
|
169
165
|
pageToken?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
168
|
+
*/
|
|
169
|
+
pageSize?: number;
|
|
170
170
|
/**
|
|
171
171
|
* A contract addresses to filter by.
|
|
172
172
|
*/
|
|
@@ -25,8 +25,8 @@ class EvmBalancesService {
|
|
|
25
25
|
chainId,
|
|
26
26
|
address,
|
|
27
27
|
blockNumber,
|
|
28
|
-
pageSize = 10,
|
|
29
28
|
pageToken,
|
|
29
|
+
pageSize = 10,
|
|
30
30
|
contractAddresses,
|
|
31
31
|
currency
|
|
32
32
|
}) {
|
|
@@ -39,8 +39,8 @@ class EvmBalancesService {
|
|
|
39
39
|
},
|
|
40
40
|
query: {
|
|
41
41
|
"blockNumber": blockNumber,
|
|
42
|
-
"pageSize": pageSize,
|
|
43
42
|
"pageToken": pageToken,
|
|
43
|
+
"pageSize": pageSize,
|
|
44
44
|
"contractAddresses": contractAddresses,
|
|
45
45
|
"currency": currency
|
|
46
46
|
}
|
|
@@ -49,8 +49,8 @@ class EvmBalancesService {
|
|
|
49
49
|
listErc721Balances({
|
|
50
50
|
chainId,
|
|
51
51
|
address,
|
|
52
|
-
pageSize = 10,
|
|
53
52
|
pageToken,
|
|
53
|
+
pageSize = 10,
|
|
54
54
|
contractAddress
|
|
55
55
|
}) {
|
|
56
56
|
return this.httpRequest.request({
|
|
@@ -61,8 +61,8 @@ class EvmBalancesService {
|
|
|
61
61
|
"address": address
|
|
62
62
|
},
|
|
63
63
|
query: {
|
|
64
|
-
"pageSize": pageSize,
|
|
65
64
|
"pageToken": pageToken,
|
|
65
|
+
"pageSize": pageSize,
|
|
66
66
|
"contractAddress": contractAddress
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -71,8 +71,8 @@ class EvmBalancesService {
|
|
|
71
71
|
chainId,
|
|
72
72
|
address,
|
|
73
73
|
blockNumber,
|
|
74
|
-
pageSize = 10,
|
|
75
74
|
pageToken,
|
|
75
|
+
pageSize = 10,
|
|
76
76
|
contractAddress
|
|
77
77
|
}) {
|
|
78
78
|
return this.httpRequest.request({
|
|
@@ -84,8 +84,8 @@ class EvmBalancesService {
|
|
|
84
84
|
},
|
|
85
85
|
query: {
|
|
86
86
|
"blockNumber": blockNumber,
|
|
87
|
-
"pageSize": pageSize,
|
|
88
87
|
"pageToken": pageToken,
|
|
88
|
+
"pageSize": pageSize,
|
|
89
89
|
"contractAddress": contractAddress
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -93,8 +93,8 @@ class EvmBalancesService {
|
|
|
93
93
|
listCollectibleBalances({
|
|
94
94
|
chainId,
|
|
95
95
|
address,
|
|
96
|
-
pageSize = 10,
|
|
97
96
|
pageToken,
|
|
97
|
+
pageSize = 10,
|
|
98
98
|
contractAddress
|
|
99
99
|
}) {
|
|
100
100
|
return this.httpRequest.request({
|
|
@@ -105,8 +105,8 @@ class EvmBalancesService {
|
|
|
105
105
|
"address": address
|
|
106
106
|
},
|
|
107
107
|
query: {
|
|
108
|
-
"pageSize": pageSize,
|
|
109
108
|
"pageToken": pageToken,
|
|
109
|
+
"pageSize": pageSize,
|
|
110
110
|
"contractAddress": contractAddress
|
|
111
111
|
}
|
|
112
112
|
});
|
|
@@ -12,19 +12,19 @@ declare class EvmBlocksService {
|
|
|
12
12
|
* @returns ListEvmBlocksResponse
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
getLatestBlocks({ chainId,
|
|
15
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
16
16
|
/**
|
|
17
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
17
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
18
|
*/
|
|
19
19
|
chainId: string;
|
|
20
|
-
/**
|
|
21
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
22
|
-
*/
|
|
23
|
-
pageSize?: number;
|
|
24
20
|
/**
|
|
25
21
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
26
22
|
*/
|
|
27
23
|
pageToken?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
26
|
+
*/
|
|
27
|
+
pageSize?: number;
|
|
28
28
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Get block
|
|
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
|
|
|
34
34
|
*/
|
|
35
35
|
getBlock({ chainId, blockId, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -4,8 +4,8 @@ class EvmBlocksService {
|
|
|
4
4
|
}
|
|
5
5
|
getLatestBlocks({
|
|
6
6
|
chainId,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
pageToken,
|
|
8
|
+
pageSize = 10
|
|
9
9
|
}) {
|
|
10
10
|
return this.httpRequest.request({
|
|
11
11
|
method: "GET",
|
|
@@ -14,8 +14,8 @@ class EvmBlocksService {
|
|
|
14
14
|
"chainId": chainId
|
|
15
15
|
},
|
|
16
16
|
query: {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"pageToken": pageToken,
|
|
18
|
+
"pageSize": pageSize
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|