@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.db60279.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 +757 -430
- package/dist/index.js +294 -148
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
- 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/GetChainResponse.d.ts +1 -3
- 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 +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- 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 +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- 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/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -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 +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 +10 -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 +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +0 -53
- package/esm/generated/services/DefaultService.js +0 -42
- 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 +57 -57
- package/esm/generated/services/EvmTransactionsService.js +32 -32
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +4 -4
- 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 +32 -32
- package/esm/generated/services/PrimaryNetworkService.js +10 -10
- 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 +21 -2
- package/esm/index.js +12 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
2
|
+
|
|
1
3
|
type PChainSharedAsset = {
|
|
2
4
|
/**
|
|
3
5
|
* Unique ID for an asset.
|
|
@@ -15,14 +17,12 @@ type PChainSharedAsset = {
|
|
|
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
|
*/
|
|
25
24
|
amount: string;
|
|
25
|
+
utxoCount: number;
|
|
26
26
|
sharedWithChainId: string;
|
|
27
27
|
status: string;
|
|
28
28
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
3
3
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
4
|
+
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
4
5
|
|
|
5
6
|
type PChainTransaction = {
|
|
6
7
|
/**
|
|
@@ -25,17 +26,17 @@ type PChainTransaction = {
|
|
|
25
26
|
*/
|
|
26
27
|
destinationChain?: string;
|
|
27
28
|
/**
|
|
28
|
-
* A list of objects containing P-chain Asset
|
|
29
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
29
30
|
*/
|
|
30
|
-
value: Array<
|
|
31
|
+
value: Array<AssetAmount>;
|
|
31
32
|
/**
|
|
32
|
-
* A list of objects containing P-chain Asset
|
|
33
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
33
34
|
*/
|
|
34
|
-
amountBurned: Array<
|
|
35
|
+
amountBurned: Array<AssetAmount>;
|
|
35
36
|
/**
|
|
36
|
-
* A list of objects containing P-chain Asset
|
|
37
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
37
38
|
*/
|
|
38
|
-
amountStaked: Array<
|
|
39
|
+
amountStaked: Array<AssetAmount>;
|
|
39
40
|
/**
|
|
40
41
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
41
42
|
*/
|
|
@@ -67,6 +68,10 @@ type PChainTransaction = {
|
|
|
67
68
|
* Present for RewardValidatorTx
|
|
68
69
|
*/
|
|
69
70
|
stakingTxHash?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
73
|
+
*/
|
|
74
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
70
75
|
};
|
|
71
76
|
|
|
72
77
|
export { PChainTransaction };
|
|
@@ -12,6 +12,8 @@ declare enum PChainTransactionType {
|
|
|
12
12
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
13
13
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
|
+
BASE_TX = "BaseTx",
|
|
16
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
15
17
|
UNKNOWN = "UNKNOWN"
|
|
16
18
|
}
|
|
17
19
|
|
|
@@ -12,6 +12,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
12
12
|
PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
13
13
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
14
14
|
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
15
|
+
PChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
16
|
+
PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
|
|
15
17
|
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
16
18
|
return PChainTransactionType2;
|
|
17
19
|
})(PChainTransactionType || {});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
3
|
import { UtxoType } from './UtxoType.js';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ type PChainUtxo = {
|
|
|
7
7
|
* Addresses that are eligible to sign the consumption of this output.
|
|
8
8
|
*/
|
|
9
9
|
addresses: Array<string>;
|
|
10
|
-
asset:
|
|
10
|
+
asset: AssetAmount;
|
|
11
11
|
/**
|
|
12
12
|
* Blockchain ID on which this output is consumed on.
|
|
13
13
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
3
|
|
|
4
4
|
type PendingReward = {
|
|
@@ -14,9 +14,9 @@ type PendingReward = {
|
|
|
14
14
|
rewardType: RewardType;
|
|
15
15
|
progress: number;
|
|
16
16
|
/**
|
|
17
|
-
* An object containing P-chain Asset
|
|
17
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
18
18
|
*/
|
|
19
|
-
estimatedReward:
|
|
19
|
+
estimatedReward: AssetAmount;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { PendingReward };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TeleporterReceipt } from './TeleporterReceipt.js';
|
|
2
|
+
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
3
|
+
import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
|
|
4
|
+
|
|
5
|
+
type PendingTeleporterMessage = {
|
|
6
|
+
messageId: string;
|
|
7
|
+
teleporterContractAddress: string;
|
|
8
|
+
sourceBlockchainId: string;
|
|
9
|
+
destinationBlockchainId: string;
|
|
10
|
+
messageNonce: string;
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
data?: string;
|
|
14
|
+
messageExecuted: boolean;
|
|
15
|
+
receipts: Array<TeleporterReceipt>;
|
|
16
|
+
receiptDelivered: boolean;
|
|
17
|
+
rewardDetails: TeleporterRewardDetails;
|
|
18
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
19
|
+
status: PendingTeleporterMessage.status;
|
|
20
|
+
};
|
|
21
|
+
declare namespace PendingTeleporterMessage {
|
|
22
|
+
enum status {
|
|
23
|
+
PENDING = "pending"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { PendingTeleporterMessage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingTeleporterMessage;
|
|
2
|
+
((PendingTeleporterMessage2) => {
|
|
3
|
+
((status2) => {
|
|
4
|
+
status2["PENDING"] = "pending";
|
|
5
|
+
})(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
|
|
6
|
+
})(PendingTeleporterMessage || (PendingTeleporterMessage = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingTeleporterMessage };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var PrimaryNetworkAssetCap = /* @__PURE__ */ ((PrimaryNetworkAssetCap2) => {
|
|
2
|
+
PrimaryNetworkAssetCap2["FIXED"] = "fixed";
|
|
3
|
+
PrimaryNetworkAssetCap2["VARIABLE"] = "variable";
|
|
4
|
+
return PrimaryNetworkAssetCap2;
|
|
5
|
+
})(PrimaryNetworkAssetCap || {});
|
|
6
|
+
|
|
7
|
+
export { PrimaryNetworkAssetCap };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var PrimaryNetworkAssetType = /* @__PURE__ */ ((PrimaryNetworkAssetType2) => {
|
|
2
|
+
PrimaryNetworkAssetType2["SECP256K1"] = "secp256k1";
|
|
3
|
+
PrimaryNetworkAssetType2["NFT"] = "nft";
|
|
4
|
+
return PrimaryNetworkAssetType2;
|
|
5
|
+
})(PrimaryNetworkAssetType || {});
|
|
6
|
+
|
|
7
|
+
export { PrimaryNetworkAssetType };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum PrimaryNetworkOperationType {
|
|
2
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
3
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
4
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { PrimaryNetworkOperationType };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PrimaryNetworkOperationType = /* @__PURE__ */ ((PrimaryNetworkOperationType2) => {
|
|
2
|
+
PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
|
|
3
|
+
PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
|
|
4
|
+
PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
|
|
5
|
+
return PrimaryNetworkOperationType2;
|
|
6
|
+
})(PrimaryNetworkOperationType || {});
|
|
7
|
+
|
|
8
|
+
export { PrimaryNetworkOperationType };
|
|
@@ -12,8 +12,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
12
12
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
13
13
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
14
14
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
15
|
-
UNKNOWN = "UNKNOWN",
|
|
16
15
|
BASE_TX = "BaseTx",
|
|
16
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
17
|
+
UNKNOWN = "UNKNOWN",
|
|
17
18
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
18
19
|
OPERATION_TX = "OperationTx"
|
|
19
20
|
}
|
|
@@ -12,8 +12,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
12
12
|
PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
13
13
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
14
14
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
15
|
-
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
16
15
|
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
16
|
+
PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
|
|
17
|
+
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
17
18
|
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
18
19
|
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
19
20
|
return PrimaryNetworkTxType2;
|
|
@@ -4,11 +4,16 @@ import { EventType } from './EventType.js';
|
|
|
4
4
|
type RegisterWebhookRequest = {
|
|
5
5
|
url: string;
|
|
6
6
|
chainId: string;
|
|
7
|
-
/**
|
|
8
|
-
* The type of event for the webhook
|
|
9
|
-
*/
|
|
10
7
|
eventType: EventType;
|
|
11
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;
|
|
12
17
|
};
|
|
13
18
|
|
|
14
19
|
export { RegisterWebhookRequest };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type RemovedValidatorDetails = {
|
|
2
|
+
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
4
|
+
subnetId: string;
|
|
5
|
+
amountStaked: string;
|
|
6
|
+
delegationFee?: string;
|
|
7
|
+
startTimestamp: number;
|
|
8
|
+
endTimestamp: number;
|
|
9
|
+
removeTxHash: string;
|
|
10
|
+
removeTimestamp: number;
|
|
11
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
12
|
+
};
|
|
13
|
+
declare namespace RemovedValidatorDetails {
|
|
14
|
+
enum validationStatus {
|
|
15
|
+
REMOVED = "removed"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { RemovedValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var RemovedValidatorDetails;
|
|
2
|
+
((RemovedValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["REMOVED"] = "removed";
|
|
5
|
+
})(RemovedValidatorDetails2.validationStatus || (RemovedValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(RemovedValidatorDetails || (RemovedValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { RemovedValidatorDetails };
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { BlockchainInfo } from './BlockchainInfo.js';
|
|
2
|
+
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
2
3
|
|
|
3
4
|
type Subnet = {
|
|
4
5
|
createBlockTimestamp: number;
|
|
5
6
|
createBlockIndex: string;
|
|
6
7
|
subnetId: string;
|
|
8
|
+
/**
|
|
9
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
7
12
|
ownerAddresses: Array<string>;
|
|
13
|
+
/**
|
|
14
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
8
17
|
threshold: number;
|
|
18
|
+
/**
|
|
19
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
9
22
|
locktime: number;
|
|
23
|
+
/**
|
|
24
|
+
* Latest subnet owner details for this Subnet.
|
|
25
|
+
*/
|
|
26
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
10
27
|
blockchains: Array<BlockchainInfo>;
|
|
11
28
|
};
|
|
12
29
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type SubnetOwnershipInfo = {
|
|
2
|
+
/**
|
|
3
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
4
|
+
*/
|
|
5
|
+
locktime: number;
|
|
6
|
+
/**
|
|
7
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
8
|
+
*/
|
|
9
|
+
threshold: number;
|
|
10
|
+
/**
|
|
11
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
12
|
+
*/
|
|
13
|
+
addresses: Array<string>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { SubnetOwnershipInfo };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Money } from './Money.js';
|
|
2
|
+
|
|
3
|
+
type TeleporterRewardDetails = {
|
|
4
|
+
/**
|
|
5
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
6
|
+
*/
|
|
7
|
+
address: string;
|
|
8
|
+
/**
|
|
9
|
+
* The contract name.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The contract symbol.
|
|
14
|
+
*/
|
|
15
|
+
symbol: string;
|
|
16
|
+
/**
|
|
17
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
18
|
+
*/
|
|
19
|
+
decimals: number;
|
|
20
|
+
/**
|
|
21
|
+
* The logo uri for the address.
|
|
22
|
+
*/
|
|
23
|
+
logoUri?: string;
|
|
24
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
25
|
+
/**
|
|
26
|
+
* The token price, if available.
|
|
27
|
+
*/
|
|
28
|
+
price?: Money;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
declare namespace TeleporterRewardDetails {
|
|
32
|
+
enum ercType {
|
|
33
|
+
ERC_20 = "ERC-20"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { TeleporterRewardDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var TeleporterRewardDetails;
|
|
2
|
+
((TeleporterRewardDetails2) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
5
|
+
})(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
|
|
6
|
+
})(TeleporterRewardDetails || (TeleporterRewardDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { TeleporterRewardDetails };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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.
|
|
3
|
+
*/
|
|
1
4
|
declare enum TransactionMethodType {
|
|
2
5
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
3
6
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
2
|
+
|
|
3
|
+
type UpdateWebhookRequest = {
|
|
4
|
+
name?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
status?: WebhookStatusType;
|
|
8
|
+
includeTraces?: boolean;
|
|
9
|
+
includeLogs?: boolean;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { UpdateWebhookRequest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { UtxoCredential } from './UtxoCredential.js';
|
|
3
3
|
|
|
4
4
|
type Utxo = {
|
|
@@ -6,7 +6,7 @@ type Utxo = {
|
|
|
6
6
|
* Addresses that are eligible to sign the consumption of this output.
|
|
7
7
|
*/
|
|
8
8
|
addresses: Array<string>;
|
|
9
|
-
asset:
|
|
9
|
+
asset: AssetAmount;
|
|
10
10
|
/**
|
|
11
11
|
* Blockchain ID on which this output is consumed on.
|
|
12
12
|
*/
|
|
@@ -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
|
|
|
@@ -6,10 +6,20 @@ type WebhookResponse = {
|
|
|
6
6
|
id: string;
|
|
7
7
|
eventType: EventType;
|
|
8
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;
|
|
9
17
|
url: string;
|
|
10
18
|
chainId: string;
|
|
11
19
|
status: WebhookStatusType;
|
|
12
20
|
createdAt: number;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
13
23
|
};
|
|
14
24
|
|
|
15
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { Utxo } from './Utxo.js';
|
|
3
3
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
4
4
|
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
@@ -16,9 +16,6 @@ type XChainLinearTransaction = {
|
|
|
16
16
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
17
17
|
*/
|
|
18
18
|
timestamp: number;
|
|
19
|
-
/**
|
|
20
|
-
* Type of transaction.
|
|
21
|
-
*/
|
|
22
19
|
txType: XChainTransactionType;
|
|
23
20
|
/**
|
|
24
21
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -29,11 +26,11 @@ type XChainLinearTransaction = {
|
|
|
29
26
|
/**
|
|
30
27
|
* Assets unlocked by inputs of this transaction.
|
|
31
28
|
*/
|
|
32
|
-
amountUnlocked: Array<
|
|
29
|
+
amountUnlocked: Array<AssetAmount>;
|
|
33
30
|
/**
|
|
34
31
|
* Assets created by outputs of this transaction.
|
|
35
32
|
*/
|
|
36
|
-
amountCreated: Array<
|
|
33
|
+
amountCreated: Array<AssetAmount>;
|
|
37
34
|
/**
|
|
38
35
|
* Source chain for an atomic transaction.
|
|
39
36
|
*/
|
|
@@ -43,7 +40,7 @@ type XChainLinearTransaction = {
|
|
|
43
40
|
*/
|
|
44
41
|
destinationChain?: string;
|
|
45
42
|
/**
|
|
46
|
-
*
|
|
43
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
47
44
|
*/
|
|
48
45
|
assetCreated?: XChainAssetDetails;
|
|
49
46
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
@@ -17,9 +17,6 @@ type XChainNonLinearTransaction = {
|
|
|
17
17
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
18
18
|
*/
|
|
19
19
|
timestamp: number;
|
|
20
|
-
/**
|
|
21
|
-
* Type of transaction.
|
|
22
|
-
*/
|
|
23
20
|
txType: XChainTransactionType;
|
|
24
21
|
/**
|
|
25
22
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -30,11 +27,11 @@ type XChainNonLinearTransaction = {
|
|
|
30
27
|
/**
|
|
31
28
|
* Assets unlocked by inputs of this transaction.
|
|
32
29
|
*/
|
|
33
|
-
amountUnlocked: Array<
|
|
30
|
+
amountUnlocked: Array<AssetAmount>;
|
|
34
31
|
/**
|
|
35
32
|
* Assets created by outputs of this transaction.
|
|
36
33
|
*/
|
|
37
|
-
amountCreated: Array<
|
|
34
|
+
amountCreated: Array<AssetAmount>;
|
|
38
35
|
/**
|
|
39
36
|
* Source chain for an atomic transaction.
|
|
40
37
|
*/
|
|
@@ -44,7 +41,7 @@ type XChainNonLinearTransaction = {
|
|
|
44
41
|
*/
|
|
45
42
|
destinationChain?: string;
|
|
46
43
|
/**
|
|
47
|
-
*
|
|
44
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
48
45
|
*/
|
|
49
46
|
assetCreated?: XChainAssetDetails;
|
|
50
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
|
*/
|