@avalabs/glacier-sdk 2.8.0-canary.f19144b.0 → 2.8.0-canary.f195b3d.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 +1330 -560
- package/dist/index.js +475 -103
- package/esm/generated/Glacier.d.ts +8 -0
- package/esm/generated/Glacier.js +12 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -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 +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -1
- 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 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -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/UnknownContract.d.ts +0 -1
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- 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/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -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/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmBalancesService.d.ts +20 -20
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +5 -5
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +79 -37
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -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 +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +20 -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 +65 -0
- package/esm/generated/services/TeleporterService.js +43 -0
- package/esm/index.d.ts +33 -1
- package/esm/index.js +25 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetWithPriceInfo } from './AssetWithPriceInfo.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
3
|
|
|
4
4
|
type HistoricalReward = {
|
|
@@ -14,10 +14,7 @@ type HistoricalReward = {
|
|
|
14
14
|
rewardType: RewardType;
|
|
15
15
|
utxoId: string;
|
|
16
16
|
outputIndex: number;
|
|
17
|
-
|
|
18
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
19
|
-
*/
|
|
20
|
-
reward: PChainAsset;
|
|
17
|
+
reward: AssetWithPriceInfo;
|
|
21
18
|
rewardTxHash: string;
|
|
22
19
|
};
|
|
23
20
|
|
|
@@ -8,7 +8,7 @@ type ListContractsResponse = {
|
|
|
8
8
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
9
9
|
*/
|
|
10
10
|
nextPageToken?: string;
|
|
11
|
-
contracts: Array<(
|
|
11
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { ListContractsResponse };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Erc1155Token } from './Erc1155Token.js';
|
|
2
|
+
import { Erc721Token } from './Erc721Token.js';
|
|
3
|
+
|
|
4
|
+
type ListNftTokens = {
|
|
5
|
+
/**
|
|
6
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
7
|
+
*/
|
|
8
|
+
nextPageToken?: string;
|
|
9
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { ListNftTokens };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
|
|
2
2
|
import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
|
|
3
3
|
import { PendingValidatorDetails } from './PendingValidatorDetails.js';
|
|
4
|
+
import { RemovedValidatorDetails } from './RemovedValidatorDetails.js';
|
|
4
5
|
|
|
5
6
|
type ListValidatorDetailsResponse = {
|
|
6
7
|
/**
|
|
@@ -8,9 +9,9 @@ type ListValidatorDetailsResponse = {
|
|
|
8
9
|
*/
|
|
9
10
|
nextPageToken?: string;
|
|
10
11
|
/**
|
|
11
|
-
* The list of
|
|
12
|
+
* The list of validator Details.
|
|
12
13
|
*/
|
|
13
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
14
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export { ListValidatorDetailsResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WebhookResponse } from './WebhookResponse.js';
|
|
2
|
+
|
|
3
|
+
type ListWebhooksResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
|
+
*/
|
|
7
|
+
nextPageToken?: string;
|
|
8
|
+
webhooks: Array<WebhookResponse>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { ListWebhooksResponse };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
2
|
import { PChainSharedAsset } from './PChainSharedAsset.js';
|
|
3
3
|
|
|
4
4
|
type PChainBalance = {
|
|
5
5
|
/**
|
|
6
6
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
7
7
|
*/
|
|
8
|
-
unlockedUnstaked: Array<
|
|
8
|
+
unlockedUnstaked: Array<Asset>;
|
|
9
9
|
/**
|
|
10
10
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
11
11
|
*/
|
|
12
|
-
unlockedStaked: Array<
|
|
12
|
+
unlockedStaked: Array<Asset>;
|
|
13
13
|
/**
|
|
14
14
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
15
15
|
*/
|
|
16
|
-
lockedPlatform: Array<
|
|
16
|
+
lockedPlatform: Array<Asset>;
|
|
17
17
|
/**
|
|
18
18
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
19
19
|
*/
|
|
20
|
-
lockedStakeable: Array<
|
|
20
|
+
lockedStakeable: Array<Asset>;
|
|
21
21
|
/**
|
|
22
22
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
23
23
|
*/
|
|
24
|
-
lockedStaked: Array<
|
|
24
|
+
lockedStaked: Array<Asset>;
|
|
25
25
|
/**
|
|
26
26
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
27
27
|
*/
|
|
28
|
-
pendingStaked: Array<
|
|
28
|
+
pendingStaked: Array<Asset>;
|
|
29
29
|
/**
|
|
30
30
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
31
31
|
*/
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
+
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
2
|
+
|
|
1
3
|
type PChainSharedAsset = {
|
|
4
|
+
/**
|
|
5
|
+
* Unique ID for an asset.
|
|
6
|
+
*/
|
|
2
7
|
assetId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Name of this asset.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Symbol for this asset (max 4 characters).
|
|
14
|
+
*/
|
|
15
|
+
symbol: string;
|
|
16
|
+
/**
|
|
17
|
+
* Denomination of this asset to represent fungibility.
|
|
18
|
+
*/
|
|
19
|
+
denomination: number;
|
|
20
|
+
/**
|
|
21
|
+
* Type of asset like SECP256K1 or NFT.
|
|
22
|
+
*/
|
|
23
|
+
type: PrimaryNetworkAssetType;
|
|
24
|
+
/**
|
|
25
|
+
* Amount of the asset.
|
|
26
|
+
*/
|
|
3
27
|
amount: string;
|
|
4
28
|
sharedWithChainId: string;
|
|
5
29
|
status: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
2
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
3
3
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
4
4
|
|
|
@@ -27,15 +27,15 @@ type PChainTransaction = {
|
|
|
27
27
|
/**
|
|
28
28
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
29
29
|
*/
|
|
30
|
-
value: Array<
|
|
30
|
+
value: Array<Asset>;
|
|
31
31
|
/**
|
|
32
32
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
33
33
|
*/
|
|
34
|
-
amountBurned: Array<
|
|
34
|
+
amountBurned: Array<Asset>;
|
|
35
35
|
/**
|
|
36
36
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
37
37
|
*/
|
|
38
|
-
amountStaked: Array<
|
|
38
|
+
amountStaked: Array<Asset>;
|
|
39
39
|
/**
|
|
40
40
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
41
41
|
*/
|
|
@@ -61,6 +61,7 @@ type PChainTransaction = {
|
|
|
61
61
|
*/
|
|
62
62
|
estimatedReward?: string;
|
|
63
63
|
rewardTxHash?: string;
|
|
64
|
+
rewardAddresses?: Array<string>;
|
|
64
65
|
memo?: string;
|
|
65
66
|
/**
|
|
66
67
|
* Present for RewardValidatorTx
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
declare enum PChainTransactionType {
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
3
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
|
-
|
|
7
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
4
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
8
5
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
9
6
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
10
7
|
IMPORT_TX = "ImportTx",
|
|
11
8
|
EXPORT_TX = "ExportTx",
|
|
12
9
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
10
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
11
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
12
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
13
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
14
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
13
15
|
UNKNOWN = "UNKNOWN"
|
|
14
16
|
}
|
|
15
17
|
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
2
2
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
|
-
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
|
-
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
3
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
|
-
PChainTransactionType2["
|
|
7
|
-
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
4
|
+
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
8
5
|
PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
9
6
|
PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
10
7
|
PChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
11
8
|
PChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
12
9
|
PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
10
|
+
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
11
|
+
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
12
|
+
PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
13
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
14
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
13
15
|
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
14
16
|
return PChainTransactionType2;
|
|
15
17
|
})(PChainTransactionType || {});
|
|
@@ -1,31 +1,51 @@
|
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
1
2
|
import { RewardType } from './RewardType.js';
|
|
2
3
|
import { UtxoType } from './UtxoType.js';
|
|
3
4
|
|
|
4
5
|
type PChainUtxo = {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
7
8
|
*/
|
|
8
9
|
addresses: Array<string>;
|
|
10
|
+
asset: Asset;
|
|
11
|
+
/**
|
|
12
|
+
* Blockchain ID on which this output is consumed on.
|
|
13
|
+
*/
|
|
14
|
+
consumedOnChainId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Transaction ID that consumed this output.
|
|
17
|
+
*/
|
|
18
|
+
consumingTxHash?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Blockchain ID on which this output is created on.
|
|
21
|
+
*/
|
|
22
|
+
createdOnChainId: string;
|
|
23
|
+
/**
|
|
24
|
+
* UTXO ID for this output.
|
|
25
|
+
*/
|
|
9
26
|
utxoId: string;
|
|
10
|
-
|
|
11
|
-
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
30
|
+
amount: string;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
34
|
+
assetId: string;
|
|
12
35
|
blockNumber: string;
|
|
13
36
|
blockTimestamp: number;
|
|
14
|
-
consumingTxHash?: string;
|
|
15
|
-
consumingBlockTimestamp?: number;
|
|
16
37
|
consumingBlockNumber?: string;
|
|
17
|
-
|
|
18
|
-
utxoType: UtxoType;
|
|
19
|
-
amount: string;
|
|
20
|
-
stakeableLocktime?: number;
|
|
38
|
+
consumingBlockTimestamp?: number;
|
|
21
39
|
platformLocktime?: number;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
40
|
+
outputIndex: number;
|
|
41
|
+
rewardType?: RewardType;
|
|
42
|
+
stakeableLocktime?: number;
|
|
25
43
|
staked?: boolean;
|
|
26
|
-
|
|
44
|
+
threshold?: number;
|
|
45
|
+
txHash: string;
|
|
27
46
|
utxoEndTimestamp?: number;
|
|
28
|
-
|
|
47
|
+
utxoStartTimestamp?: number;
|
|
48
|
+
utxoType: UtxoType;
|
|
29
49
|
};
|
|
30
50
|
|
|
31
51
|
export { PChainUtxo };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type PendingDelegatorDetails = {
|
|
4
2
|
txHash: string;
|
|
3
|
+
nodeId: string;
|
|
5
4
|
rewardAddresses: Array<string>;
|
|
6
5
|
amountDelegated: string;
|
|
7
6
|
delegationFee: string;
|
|
8
7
|
startTimestamp: number;
|
|
9
8
|
endTimestamp: number;
|
|
10
|
-
delegationStatus: DelegationStatusType;
|
|
11
9
|
estimatedGrossReward: string;
|
|
12
10
|
estimatedNetReward: string;
|
|
11
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
13
12
|
};
|
|
13
|
+
declare namespace PendingDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
PENDING = "pending"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export { PendingDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingDelegatorDetails;
|
|
2
|
+
((PendingDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingDelegatorDetails };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
3
|
|
|
4
4
|
type PendingReward = {
|
|
@@ -16,7 +16,7 @@ type PendingReward = {
|
|
|
16
16
|
/**
|
|
17
17
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
18
18
|
*/
|
|
19
|
-
estimatedReward:
|
|
19
|
+
estimatedReward: Asset;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { PendingReward };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
2
|
+
import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
|
|
3
|
+
|
|
4
|
+
type PendingTeleporterMessage = {
|
|
5
|
+
sourceBlockchainId: string;
|
|
6
|
+
destinationBlockchainId: string;
|
|
7
|
+
messageId: string;
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
data?: string;
|
|
11
|
+
messageExecuted: boolean;
|
|
12
|
+
receipts: Array<string>;
|
|
13
|
+
receiptDelivered: boolean;
|
|
14
|
+
rewardDetails: TeleporterRewardDetails;
|
|
15
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
16
|
+
status: PendingTeleporterMessage.status;
|
|
17
|
+
};
|
|
18
|
+
declare namespace PendingTeleporterMessage {
|
|
19
|
+
enum status {
|
|
20
|
+
PENDING = "pending"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
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 };
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type PendingValidatorDetails = {
|
|
2
|
+
txHash: string;
|
|
4
3
|
nodeId: string;
|
|
4
|
+
subnetId: string;
|
|
5
5
|
amountStaked: string;
|
|
6
|
-
delegationFee
|
|
6
|
+
delegationFee?: string;
|
|
7
7
|
startTimestamp: number;
|
|
8
8
|
endTimestamp: number;
|
|
9
|
-
validationStatus:
|
|
9
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
10
10
|
};
|
|
11
|
+
declare namespace PendingValidatorDetails {
|
|
12
|
+
enum validationStatus {
|
|
13
|
+
PENDING = "pending"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
11
16
|
|
|
12
17
|
export { PendingValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var PendingValidatorDetails;
|
|
2
|
+
((PendingValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["PENDING"] = "pending";
|
|
5
|
+
})(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(PendingValidatorDetails || (PendingValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { PendingValidatorDetails };
|
|
@@ -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 };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
declare enum PrimaryNetworkTxType {
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
3
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
|
-
|
|
7
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
4
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
8
5
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
9
6
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
10
7
|
IMPORT_TX = "ImportTx",
|
|
11
8
|
EXPORT_TX = "ExportTx",
|
|
12
9
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
10
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
11
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
12
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
13
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
14
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
13
15
|
UNKNOWN = "UNKNOWN",
|
|
14
16
|
BASE_TX = "BaseTx",
|
|
15
17
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
2
2
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
|
-
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
|
-
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
3
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
|
-
PrimaryNetworkTxType2["
|
|
7
|
-
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
4
|
+
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
8
5
|
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
9
6
|
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
10
7
|
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
11
8
|
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
12
9
|
PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
|
|
10
|
+
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
11
|
+
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
12
|
+
PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
13
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
14
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
13
15
|
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
14
16
|
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
15
17
|
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
+
import { EventType } from './EventType.js';
|
|
3
|
+
|
|
4
|
+
type RegisterWebhookRequest = {
|
|
5
|
+
url: string;
|
|
6
|
+
chainId: string;
|
|
7
|
+
/**
|
|
8
|
+
* The type of event for the webhook
|
|
9
|
+
*/
|
|
10
|
+
eventType: EventType;
|
|
11
|
+
metadata: AddressActivityMetadata;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
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 };
|
|
@@ -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 };
|