@avalabs/glacier-sdk 2.8.0-canary.fdc2483.0 → 2.8.0-canary.ff11880.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 +895 -370
- package/dist/index.js +295 -22
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -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 +9 -0
- 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/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 -2
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- 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 +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -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/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/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/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/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/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/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -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/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- 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/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -11
- package/esm/generated/services/PrimaryNetworkService.js +17 -7
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +21 -1
- package/esm/index.js +17 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { DelegationStatusType } from './DelegationStatusType.js';
|
|
2
|
-
|
|
3
1
|
type CompletedDelegatorDetails = {
|
|
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
|
grossReward: string;
|
|
12
10
|
netReward: string;
|
|
11
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
13
12
|
};
|
|
13
|
+
declare namespace CompletedDelegatorDetails {
|
|
14
|
+
enum delegationStatus {
|
|
15
|
+
COMPLETED = "completed"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export { CompletedDelegatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CompletedDelegatorDetails;
|
|
2
|
+
((CompletedDelegatorDetails2) => {
|
|
3
|
+
((delegationStatus2) => {
|
|
4
|
+
delegationStatus2["COMPLETED"] = "completed";
|
|
5
|
+
})(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
|
|
6
|
+
})(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { CompletedDelegatorDetails };
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { Rewards } from './Rewards.js';
|
|
2
|
-
import { ValidationStatusType } from './ValidationStatusType.js';
|
|
3
2
|
|
|
4
3
|
type CompletedValidatorDetails = {
|
|
4
|
+
txHash: string;
|
|
5
5
|
nodeId: string;
|
|
6
|
+
subnetId: string;
|
|
6
7
|
amountStaked: string;
|
|
7
|
-
delegationFee
|
|
8
|
+
delegationFee?: string;
|
|
8
9
|
startTimestamp: number;
|
|
9
10
|
endTimestamp: number;
|
|
10
|
-
validationStatus: ValidationStatusType;
|
|
11
11
|
delegatorCount: number;
|
|
12
12
|
rewards: Rewards;
|
|
13
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
13
14
|
};
|
|
15
|
+
declare namespace CompletedValidatorDetails {
|
|
16
|
+
enum validationStatus {
|
|
17
|
+
COMPLETED = "completed"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
14
20
|
|
|
15
21
|
export { CompletedValidatorDetails };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var CompletedValidatorDetails;
|
|
2
|
+
((CompletedValidatorDetails2) => {
|
|
3
|
+
((validationStatus2) => {
|
|
4
|
+
validationStatus2["COMPLETED"] = "completed";
|
|
5
|
+
})(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
|
|
6
|
+
})(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
|
|
7
|
+
|
|
8
|
+
export { CompletedValidatorDetails };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContractSubmissionErc1155 } from './ContractSubmissionErc1155.js';
|
|
2
|
+
import { ContractSubmissionErc20 } from './ContractSubmissionErc20.js';
|
|
3
|
+
import { ContractSubmissionErc721 } from './ContractSubmissionErc721.js';
|
|
4
|
+
import { ContractSubmissionUnknown } from './ContractSubmissionUnknown.js';
|
|
5
|
+
|
|
6
|
+
type ContractSubmissionBody = {
|
|
7
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { ContractSubmissionBody };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type ContractSubmissionErc1155 = {
|
|
6
|
+
description?: string;
|
|
7
|
+
officialSite?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
logoAsset?: ImageAsset;
|
|
10
|
+
bannerAsset?: ImageAsset;
|
|
11
|
+
color?: string;
|
|
12
|
+
resourceLinks?: Array<ResourceLink>;
|
|
13
|
+
tags?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The contract name.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
19
|
+
/**
|
|
20
|
+
* The contract symbol.
|
|
21
|
+
*/
|
|
22
|
+
symbol: string;
|
|
23
|
+
pricingProviders?: PricingProviders;
|
|
24
|
+
};
|
|
25
|
+
declare namespace ContractSubmissionErc1155 {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_1155 = "ERC-1155"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ContractSubmissionErc1155 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionErc1155;
|
|
2
|
+
((ContractSubmissionErc11552) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_1155"] = "ERC-1155";
|
|
5
|
+
})(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
|
|
6
|
+
})(ContractSubmissionErc1155 || (ContractSubmissionErc1155 = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionErc1155 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
4
|
+
|
|
5
|
+
type ContractSubmissionErc20 = {
|
|
6
|
+
description?: string;
|
|
7
|
+
officialSite?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
logoAsset?: ImageAsset;
|
|
10
|
+
bannerAsset?: ImageAsset;
|
|
11
|
+
color?: string;
|
|
12
|
+
resourceLinks?: Array<ResourceLink>;
|
|
13
|
+
tags?: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The contract name.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
19
|
+
/**
|
|
20
|
+
* The contract symbol.
|
|
21
|
+
*/
|
|
22
|
+
symbol: string;
|
|
23
|
+
pricingProviders?: PricingProviders;
|
|
24
|
+
};
|
|
25
|
+
declare namespace ContractSubmissionErc20 {
|
|
26
|
+
enum ercType {
|
|
27
|
+
ERC_20 = "ERC-20"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ContractSubmissionErc20 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionErc20;
|
|
2
|
+
((ContractSubmissionErc202) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
5
|
+
})(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
|
|
6
|
+
})(ContractSubmissionErc20 || (ContractSubmissionErc20 = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionErc20 };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
3
|
+
|
|
4
|
+
type ContractSubmissionErc721 = {
|
|
5
|
+
description?: string;
|
|
6
|
+
officialSite?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
logoAsset?: ImageAsset;
|
|
9
|
+
bannerAsset?: ImageAsset;
|
|
10
|
+
color?: string;
|
|
11
|
+
resourceLinks?: Array<ResourceLink>;
|
|
12
|
+
tags?: Array<string>;
|
|
13
|
+
/**
|
|
14
|
+
* The contract name.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
18
|
+
/**
|
|
19
|
+
* The contract symbol.
|
|
20
|
+
*/
|
|
21
|
+
symbol: string;
|
|
22
|
+
};
|
|
23
|
+
declare namespace ContractSubmissionErc721 {
|
|
24
|
+
enum ercType {
|
|
25
|
+
ERC_721 = "ERC-721"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { ContractSubmissionErc721 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionErc721;
|
|
2
|
+
((ContractSubmissionErc7212) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["ERC_721"] = "ERC-721";
|
|
5
|
+
})(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
|
|
6
|
+
})(ContractSubmissionErc721 || (ContractSubmissionErc721 = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionErc721 };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ImageAsset } from './ImageAsset.js';
|
|
2
|
+
import { ResourceLink } from './ResourceLink.js';
|
|
3
|
+
|
|
4
|
+
type ContractSubmissionUnknown = {
|
|
5
|
+
description?: string;
|
|
6
|
+
officialSite?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
logoAsset?: ImageAsset;
|
|
9
|
+
bannerAsset?: ImageAsset;
|
|
10
|
+
color?: string;
|
|
11
|
+
resourceLinks?: Array<ResourceLink>;
|
|
12
|
+
tags?: Array<string>;
|
|
13
|
+
/**
|
|
14
|
+
* The contract name.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
18
|
+
};
|
|
19
|
+
declare namespace ContractSubmissionUnknown {
|
|
20
|
+
enum ercType {
|
|
21
|
+
UNKNOWN = "UNKNOWN"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { ContractSubmissionUnknown };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ContractSubmissionUnknown;
|
|
2
|
+
((ContractSubmissionUnknown2) => {
|
|
3
|
+
((ercType2) => {
|
|
4
|
+
ercType2["UNKNOWN"] = "UNKNOWN";
|
|
5
|
+
})(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
|
|
6
|
+
})(ContractSubmissionUnknown || (ContractSubmissionUnknown = {}));
|
|
7
|
+
|
|
8
|
+
export { ContractSubmissionUnknown };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
2
|
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
4
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
5
|
|
|
5
6
|
type Erc1155Contract = {
|
|
@@ -13,7 +14,6 @@ type Erc1155Contract = {
|
|
|
13
14
|
logoAsset?: ImageAsset;
|
|
14
15
|
bannerAsset?: ImageAsset;
|
|
15
16
|
color?: string;
|
|
16
|
-
coingeckoCoinId?: string;
|
|
17
17
|
resourceLinks?: Array<ResourceLink>;
|
|
18
18
|
tags?: Array<string>;
|
|
19
19
|
/**
|
|
@@ -26,6 +26,7 @@ type Erc1155Contract = {
|
|
|
26
26
|
* The contract symbol.
|
|
27
27
|
*/
|
|
28
28
|
symbol?: string;
|
|
29
|
+
pricingProviders?: PricingProviders;
|
|
29
30
|
};
|
|
30
31
|
declare namespace Erc1155Contract {
|
|
31
32
|
enum ercType {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
|
|
2
2
|
import { ImageAsset } from './ImageAsset.js';
|
|
3
|
+
import { PricingProviders } from './PricingProviders.js';
|
|
3
4
|
import { ResourceLink } from './ResourceLink.js';
|
|
4
5
|
|
|
5
6
|
type Erc20Contract = {
|
|
@@ -13,7 +14,6 @@ type Erc20Contract = {
|
|
|
13
14
|
logoAsset?: ImageAsset;
|
|
14
15
|
bannerAsset?: ImageAsset;
|
|
15
16
|
color?: string;
|
|
16
|
-
coingeckoCoinId?: string;
|
|
17
17
|
resourceLinks?: Array<ResourceLink>;
|
|
18
18
|
tags?: Array<string>;
|
|
19
19
|
/**
|
|
@@ -30,6 +30,7 @@ type Erc20Contract = {
|
|
|
30
30
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
31
31
|
*/
|
|
32
32
|
decimals: number;
|
|
33
|
+
pricingProviders?: PricingProviders;
|
|
33
34
|
};
|
|
34
35
|
declare namespace Erc20Contract {
|
|
35
36
|
enum ercType {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Asset } from './Asset.js';
|
|
2
2
|
import { RewardType } from './RewardType.js';
|
|
3
3
|
|
|
4
4
|
type HistoricalReward = {
|
|
@@ -17,7 +17,7 @@ type HistoricalReward = {
|
|
|
17
17
|
/**
|
|
18
18
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
19
19
|
*/
|
|
20
|
-
reward:
|
|
20
|
+
reward: Asset;
|
|
21
21
|
rewardTxHash: string;
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -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 };
|
|
@@ -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,27 @@
|
|
|
1
1
|
type PChainSharedAsset = {
|
|
2
|
+
/**
|
|
3
|
+
* Unique ID for an asset.
|
|
4
|
+
*/
|
|
2
5
|
assetId: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name of this asset.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Symbol for this asset (max 4 characters).
|
|
12
|
+
*/
|
|
13
|
+
symbol: string;
|
|
14
|
+
/**
|
|
15
|
+
* Denomination of this asset to represent fungibility.
|
|
16
|
+
*/
|
|
17
|
+
denomination: number;
|
|
18
|
+
/**
|
|
19
|
+
* Type of asset like SECP256K1 or NFT.
|
|
20
|
+
*/
|
|
21
|
+
type: string;
|
|
22
|
+
/**
|
|
23
|
+
* Amount of the asset.
|
|
24
|
+
*/
|
|
3
25
|
amount: string;
|
|
4
26
|
sharedWithChainId: string;
|
|
5
27
|
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 };
|