@avalabs/glacier-sdk 2.8.0-canary.e5344d2.0 → 2.8.0-canary.e9abb3a.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 +170 -118
- package/dist/index.js +28 -20
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
- package/esm/generated/models/HistoricalReward.d.ts +2 -2
- 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 +4 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -5
- package/esm/generated/models/PChainTransactionType.js +6 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/services/DefaultService.d.ts +8 -0
- package/esm/generated/services/DefaultService.js +6 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
- package/esm/generated/services/PrimaryNetworkService.js +10 -10
- package/esm/index.d.ts +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -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
|
*/
|
|
@@ -1,16 +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
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
6
3
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
7
|
-
|
|
8
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
4
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
9
5
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
10
6
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
11
7
|
IMPORT_TX = "ImportTx",
|
|
12
8
|
EXPORT_TX = "ExportTx",
|
|
13
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",
|
|
14
15
|
UNKNOWN = "UNKNOWN"
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -1,16 +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
|
-
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
6
3
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
7
|
-
PChainTransactionType2["
|
|
8
|
-
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
4
|
+
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
9
5
|
PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
10
6
|
PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
11
7
|
PChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
12
8
|
PChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
13
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";
|
|
14
15
|
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
15
16
|
return PChainTransactionType2;
|
|
16
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,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 };
|
|
@@ -1,16 +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
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
6
3
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
7
|
-
|
|
8
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
4
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
9
5
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
10
6
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
11
7
|
IMPORT_TX = "ImportTx",
|
|
12
8
|
EXPORT_TX = "ExportTx",
|
|
13
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",
|
|
14
15
|
UNKNOWN = "UNKNOWN",
|
|
15
16
|
BASE_TX = "BaseTx",
|
|
16
17
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -1,16 +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
|
-
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
6
3
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
7
|
-
PrimaryNetworkTxType2["
|
|
8
|
-
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
4
|
+
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
9
5
|
PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
|
|
10
6
|
PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
|
|
11
7
|
PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
|
|
12
8
|
PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
|
|
13
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";
|
|
14
15
|
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
15
16
|
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
16
17
|
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
@@ -3,66 +3,66 @@ 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
|
-
|
|
8
|
+
addresses: Array<string>;
|
|
9
9
|
asset: Asset;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Blockchain ID on which this output is consumed on.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
consumedOnChainId: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Transaction ID that consumed this output.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
consumingTxHash?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Blockchain ID on which this output is
|
|
19
|
+
* Blockchain ID on which this output is created on.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
createdOnChainId: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* UTXO ID for this output.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
utxoId: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
consumingTxTimestamp?: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Transaction ID that created this output.
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
creationTxHash: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Credentials that signed the transaction to consume this utxo
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
credentials?: Array<UtxoCredential>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Index representing the minting set for the NFT mint output.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
groupId?: number;
|
|
42
42
|
/**
|
|
43
43
|
* Locktime in seconds after which this output can be consumed.
|
|
44
44
|
*/
|
|
45
45
|
locktime: number;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
outputIndex: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Hex encoded data for NFT assets.
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
payload?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Minimum number of signatures required to consume this output.
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
threshold: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
timestamp: number;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Type of output.
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
utxoType: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export { Utxo };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
type UtxoCredential = {
|
|
2
2
|
/**
|
|
3
|
-
* Signature provided to consume the output
|
|
3
|
+
* Signature provided to consume the output.
|
|
4
4
|
*/
|
|
5
5
|
signature?: string;
|
|
6
6
|
/**
|
|
7
|
-
* Public key associated with the signature
|
|
7
|
+
* Public key associated with the signature.
|
|
8
8
|
*/
|
|
9
9
|
publicKey?: string;
|
|
10
10
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
2
2
|
import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
|
|
3
|
+
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
3
4
|
import { WebhookResponse } from '../models/WebhookResponse.js';
|
|
4
5
|
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
5
6
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -54,6 +55,13 @@ declare class DefaultService {
|
|
|
54
55
|
*/
|
|
55
56
|
id: string;
|
|
56
57
|
}): CancelablePromise<WebhookResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate a shared secret
|
|
60
|
+
* Generates a new shared secret.
|
|
61
|
+
* @returns SharedSecretsResponse
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
export { DefaultService };
|
|
@@ -20,7 +20,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
20
20
|
*/
|
|
21
21
|
network: Network;
|
|
22
22
|
/**
|
|
23
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
23
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
24
24
|
*/
|
|
25
25
|
addresses?: string;
|
|
26
26
|
/**
|
|
@@ -32,7 +32,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
32
32
|
*/
|
|
33
33
|
pageToken?: string;
|
|
34
34
|
/**
|
|
35
|
-
* A comma separated list of node ids to filter by.
|
|
35
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
36
36
|
*/
|
|
37
37
|
nodeIds?: string;
|
|
38
38
|
/**
|
|
@@ -52,7 +52,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
52
52
|
*/
|
|
53
53
|
network: Network;
|
|
54
54
|
/**
|
|
55
|
-
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
55
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
|
|
56
56
|
*/
|
|
57
57
|
addresses?: string;
|
|
58
58
|
/**
|
|
@@ -64,7 +64,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
64
64
|
*/
|
|
65
65
|
pageToken?: string;
|
|
66
66
|
/**
|
|
67
|
-
* A comma separated list of node ids to filter by.
|
|
67
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
68
68
|
*/
|
|
69
69
|
nodeIds?: string;
|
|
70
70
|
/**
|
|
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
|
|
|
118
118
|
* @returns ListValidatorDetailsResponse
|
|
119
119
|
* @throws ApiError
|
|
120
120
|
*/
|
|
121
|
-
listValidators({ network, pageSize, pageToken,
|
|
121
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
122
122
|
/**
|
|
123
123
|
* Either mainnet or a testnet.
|
|
124
124
|
*/
|
|
@@ -132,41 +132,41 @@ declare class PrimaryNetworkService {
|
|
|
132
132
|
*/
|
|
133
133
|
pageToken?: string;
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* A comma separated list of node ids to filter by.
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
nodeIds?: string;
|
|
138
138
|
/**
|
|
139
|
-
* The
|
|
139
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
sortOrder?: SortOrder;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Validation status of the node.
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
validationStatus?: ValidationStatusType;
|
|
146
146
|
/**
|
|
147
|
-
* The
|
|
147
|
+
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
148
148
|
*/
|
|
149
|
-
|
|
149
|
+
minDelegationCapacity?: any;
|
|
150
150
|
/**
|
|
151
|
-
* The
|
|
151
|
+
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
maxDelegationCapacity?: any;
|
|
154
154
|
/**
|
|
155
|
-
* The
|
|
155
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
156
156
|
*/
|
|
157
|
-
|
|
157
|
+
minTimeRemaining?: any;
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
maxTimeRemaining?: any;
|
|
162
162
|
/**
|
|
163
|
-
* The
|
|
163
|
+
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
minFeePercentage?: any;
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
167
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
168
168
|
*/
|
|
169
|
-
|
|
169
|
+
maxFeePercentage?: any;
|
|
170
170
|
/**
|
|
171
171
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
172
|
*/
|
|
@@ -85,15 +85,15 @@ class PrimaryNetworkService {
|
|
|
85
85
|
network,
|
|
86
86
|
pageSize = 10,
|
|
87
87
|
pageToken,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
nodeIds,
|
|
89
|
+
sortOrder,
|
|
90
|
+
validationStatus,
|
|
90
91
|
minDelegationCapacity,
|
|
91
92
|
maxDelegationCapacity,
|
|
93
|
+
minTimeRemaining,
|
|
94
|
+
maxTimeRemaining,
|
|
92
95
|
minFeePercentage,
|
|
93
96
|
maxFeePercentage,
|
|
94
|
-
nodeIds,
|
|
95
|
-
sortOrder,
|
|
96
|
-
validationStatus,
|
|
97
97
|
subnetId
|
|
98
98
|
}) {
|
|
99
99
|
return this.httpRequest.request({
|
|
@@ -105,15 +105,15 @@ class PrimaryNetworkService {
|
|
|
105
105
|
query: {
|
|
106
106
|
"pageSize": pageSize,
|
|
107
107
|
"pageToken": pageToken,
|
|
108
|
-
"
|
|
109
|
-
"
|
|
108
|
+
"nodeIds": nodeIds,
|
|
109
|
+
"sortOrder": sortOrder,
|
|
110
|
+
"validationStatus": validationStatus,
|
|
110
111
|
"minDelegationCapacity": minDelegationCapacity,
|
|
111
112
|
"maxDelegationCapacity": maxDelegationCapacity,
|
|
113
|
+
"minTimeRemaining": minTimeRemaining,
|
|
114
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
112
115
|
"minFeePercentage": minFeePercentage,
|
|
113
116
|
"maxFeePercentage": maxFeePercentage,
|
|
114
|
-
"nodeIds": nodeIds,
|
|
115
|
-
"sortOrder": sortOrder,
|
|
116
|
-
"validationStatus": validationStatus,
|
|
117
117
|
"subnetId": subnetId
|
|
118
118
|
}
|
|
119
119
|
});
|
package/esm/index.d.ts
CHANGED
|
@@ -111,7 +111,6 @@ export { OperationStatus } from './generated/models/OperationStatus.js';
|
|
|
111
111
|
export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
112
112
|
export { OperationStatusResponse } from './generated/models/OperationStatusResponse.js';
|
|
113
113
|
export { OperationType } from './generated/models/OperationType.js';
|
|
114
|
-
export { PChainAsset } from './generated/models/PChainAsset.js';
|
|
115
114
|
export { PChainBalance } from './generated/models/PChainBalance.js';
|
|
116
115
|
export { PChainId } from './generated/models/PChainId.js';
|
|
117
116
|
export { PChainSharedAsset } from './generated/models/PChainSharedAsset.js';
|
|
@@ -135,6 +134,7 @@ export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
|
|
|
135
134
|
export { Rewards } from './generated/models/Rewards.js';
|
|
136
135
|
export { RewardType } from './generated/models/RewardType.js';
|
|
137
136
|
export { RichAddress } from './generated/models/RichAddress.js';
|
|
137
|
+
export { SharedSecretsResponse } from './generated/models/SharedSecretsResponse.js';
|
|
138
138
|
export { SortOrder } from './generated/models/SortOrder.js';
|
|
139
139
|
export { StakingDistribution } from './generated/models/StakingDistribution.js';
|
|
140
140
|
export { Subnet } from './generated/models/Subnet.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avalabs/glacier-sdk",
|
|
3
|
-
"version": "2.8.0-canary.
|
|
3
|
+
"version": "2.8.0-canary.e9abb3a.0+e9abb3a",
|
|
4
4
|
"description": "sdk for interacting with glacier-api",
|
|
5
5
|
"author": "Oliver Wang <oliver.wang@avalabs.org>",
|
|
6
6
|
"homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/ava-labs/avalanche-sdks/issues"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "e9abb3ab339469e656b9b4069075517613396818"
|
|
33
33
|
}
|