@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.c938eae.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 +551 -312
- package/dist/index.js +147 -18
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -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/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/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.js +1 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -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/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +0 -18
- package/esm/generated/services/NfTsService.js +0 -13
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/index.d.ts +9 -0
- package/esm/index.js +12 -0
- package/package.json +2 -2
|
@@ -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 };
|
|
@@ -30,7 +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
|
|
33
|
+
pricingProviders?: PricingProviders;
|
|
34
34
|
};
|
|
35
35
|
declare namespace Erc20Contract {
|
|
36
36
|
enum ercType {
|
|
@@ -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 };
|
|
@@ -2,6 +2,7 @@ declare enum PChainTransactionType {
|
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
3
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
4
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
5
6
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
7
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
8
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -2,6 +2,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
2
2
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
3
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
4
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
5
6
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
7
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
8
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -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,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 };
|
|
@@ -2,6 +2,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
2
2
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3
3
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
4
4
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
5
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
5
6
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
6
7
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
7
8
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -2,6 +2,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
2
2
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
3
3
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
4
4
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
5
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
5
6
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
6
7
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
7
8
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Erc1155Contract } from './Erc1155Contract.js';
|
|
2
|
+
import { Erc20Contract } from './Erc20Contract.js';
|
|
3
|
+
import { Erc721Contract } from './Erc721Contract.js';
|
|
4
|
+
import { UnknownContract } from './UnknownContract.js';
|
|
5
|
+
|
|
6
|
+
type UpdateContractResponse = {
|
|
7
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { UpdateContractResponse };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type ValidatorHealthDetails = {
|
|
2
|
+
/**
|
|
3
|
+
* Percent of requests responded to in last polling.
|
|
4
|
+
*/
|
|
5
|
+
reachabilityPercent: number;
|
|
6
|
+
/**
|
|
7
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
8
|
+
*/
|
|
9
|
+
benchedPChainRequestsPercent: number;
|
|
10
|
+
/**
|
|
11
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
12
|
+
*/
|
|
13
|
+
benchedXChainRequestsPercent: number;
|
|
14
|
+
/**
|
|
15
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
16
|
+
*/
|
|
17
|
+
benchedCChainRequestsPercent: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { ValidatorHealthDetails };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
3
|
+
|
|
4
|
+
declare class DefaultService {
|
|
5
|
+
readonly httpRequest: BaseHttpRequest;
|
|
6
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
7
|
+
/**
|
|
8
|
+
* @returns any
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { DefaultService };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class DefaultService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
mediaControllerUploadImage() {
|
|
6
|
+
return this.httpRequest.request({
|
|
7
|
+
method: "POST",
|
|
8
|
+
url: "/v1/media/uploadImage"
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { DefaultService };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ContractSubmissionBody } from '../models/ContractSubmissionBody.js';
|
|
2
|
+
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
3
|
+
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
4
|
+
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
5
|
+
import { UnknownContract } from '../models/UnknownContract.js';
|
|
6
|
+
import { UpdateContractResponse } from '../models/UpdateContractResponse.js';
|
|
7
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
9
|
+
|
|
10
|
+
declare class EvmContractsService {
|
|
11
|
+
readonly httpRequest: BaseHttpRequest;
|
|
12
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
13
|
+
/**
|
|
14
|
+
* Get contract metadata
|
|
15
|
+
* Gets metadata about the contract at the given address.
|
|
16
|
+
* @returns any
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
getContractMetadata({ chainId, address, }: {
|
|
20
|
+
/**
|
|
21
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
22
|
+
*/
|
|
23
|
+
chainId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Contract address on the relevant chain.
|
|
26
|
+
*/
|
|
27
|
+
address: string;
|
|
28
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
29
|
+
/**
|
|
30
|
+
* Update contract information
|
|
31
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
32
|
+
* @returns UpdateContractResponse
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
36
|
+
/**
|
|
37
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
*/
|
|
39
|
+
chainId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Contract address on the relevant chain.
|
|
42
|
+
*/
|
|
43
|
+
address: string;
|
|
44
|
+
requestBody: ContractSubmissionBody;
|
|
45
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { EvmContractsService };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class EvmContractsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getContractMetadata({
|
|
6
|
+
chainId,
|
|
7
|
+
address
|
|
8
|
+
}) {
|
|
9
|
+
return this.httpRequest.request({
|
|
10
|
+
method: "GET",
|
|
11
|
+
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
12
|
+
path: {
|
|
13
|
+
"chainId": chainId,
|
|
14
|
+
"address": address
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
updateContractInfo({
|
|
19
|
+
chainId,
|
|
20
|
+
address,
|
|
21
|
+
requestBody
|
|
22
|
+
}) {
|
|
23
|
+
return this.httpRequest.request({
|
|
24
|
+
method: "PATCH",
|
|
25
|
+
url: "/v1/chains/{chainId}/contracts/{address}",
|
|
26
|
+
path: {
|
|
27
|
+
"chainId": chainId,
|
|
28
|
+
"address": address
|
|
29
|
+
},
|
|
30
|
+
body: requestBody,
|
|
31
|
+
mediaType: "application/json"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { EvmContractsService };
|
|
@@ -27,7 +27,7 @@ class EvmTransactionsService {
|
|
|
27
27
|
}) {
|
|
28
28
|
return this.httpRequest.request({
|
|
29
29
|
method: "GET",
|
|
30
|
-
url: "/v1/chains/{chainId}/
|
|
30
|
+
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
31
|
path: {
|
|
32
32
|
"chainId": chainId,
|
|
33
33
|
"address": address
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
2
1
|
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
3
|
-
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
4
2
|
import { Erc721Token } from '../models/Erc721Token.js';
|
|
5
3
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
4
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -48,22 +46,6 @@ declare class NfTsService {
|
|
|
48
46
|
*/
|
|
49
47
|
tokenId: string;
|
|
50
48
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
51
|
-
/**
|
|
52
|
-
* Get collection details
|
|
53
|
-
* Gets collection details for a NFT contract.
|
|
54
|
-
* @returns any
|
|
55
|
-
* @throws ApiError
|
|
56
|
-
*/
|
|
57
|
-
getCollection({ chainId, address, }: {
|
|
58
|
-
/**
|
|
59
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
60
|
-
*/
|
|
61
|
-
chainId: string;
|
|
62
|
-
/**
|
|
63
|
-
* Contract address on the relevant chain.
|
|
64
|
-
*/
|
|
65
|
-
address: string;
|
|
66
|
-
}): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
|
|
67
49
|
}
|
|
68
50
|
|
|
69
51
|
export { NfTsService };
|
|
@@ -32,19 +32,6 @@ class NfTsService {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
getCollection({
|
|
36
|
-
chainId,
|
|
37
|
-
address
|
|
38
|
-
}) {
|
|
39
|
-
return this.httpRequest.request({
|
|
40
|
-
method: "GET",
|
|
41
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}",
|
|
42
|
-
path: {
|
|
43
|
-
"chainId": chainId,
|
|
44
|
-
"address": address
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
35
|
}
|
|
49
36
|
|
|
50
37
|
export { NfTsService };
|
|
@@ -14,7 +14,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
14
14
|
* @returns ListPendingRewardsResponse
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
17
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
18
18
|
/**
|
|
19
19
|
* Either mainnet or a testnet.
|
|
20
20
|
*/
|
|
@@ -31,6 +31,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
31
31
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
32
|
*/
|
|
33
33
|
pageToken?: string;
|
|
34
|
+
/**
|
|
35
|
+
* A comma separated list of node ids to filter by.
|
|
36
|
+
*/
|
|
37
|
+
nodeIds?: string;
|
|
34
38
|
/**
|
|
35
39
|
* 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.
|
|
36
40
|
*/
|
|
@@ -42,7 +46,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
42
46
|
* @returns ListHistoricalRewardsResponse
|
|
43
47
|
* @throws ApiError
|
|
44
48
|
*/
|
|
45
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
49
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
46
50
|
/**
|
|
47
51
|
* Either mainnet or a testnet.
|
|
48
52
|
*/
|
|
@@ -59,6 +63,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
59
63
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
64
|
*/
|
|
61
65
|
pageToken?: string;
|
|
66
|
+
/**
|
|
67
|
+
* A comma separated list of node ids to filter by.
|
|
68
|
+
*/
|
|
69
|
+
nodeIds?: string;
|
|
62
70
|
/**
|
|
63
71
|
* 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.
|
|
64
72
|
*/
|
|
@@ -7,6 +7,7 @@ class PrimaryNetworkRewardsService {
|
|
|
7
7
|
addresses,
|
|
8
8
|
pageSize = 10,
|
|
9
9
|
pageToken,
|
|
10
|
+
nodeIds,
|
|
10
11
|
sortOrder
|
|
11
12
|
}) {
|
|
12
13
|
return this.httpRequest.request({
|
|
@@ -19,6 +20,7 @@ class PrimaryNetworkRewardsService {
|
|
|
19
20
|
"addresses": addresses,
|
|
20
21
|
"pageSize": pageSize,
|
|
21
22
|
"pageToken": pageToken,
|
|
23
|
+
"nodeIds": nodeIds,
|
|
22
24
|
"sortOrder": sortOrder
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -28,6 +30,7 @@ class PrimaryNetworkRewardsService {
|
|
|
28
30
|
addresses,
|
|
29
31
|
pageSize = 10,
|
|
30
32
|
pageToken,
|
|
33
|
+
nodeIds,
|
|
31
34
|
sortOrder
|
|
32
35
|
}) {
|
|
33
36
|
return this.httpRequest.request({
|
|
@@ -40,6 +43,7 @@ class PrimaryNetworkRewardsService {
|
|
|
40
43
|
"addresses": addresses,
|
|
41
44
|
"pageSize": pageSize,
|
|
42
45
|
"pageToken": pageToken,
|
|
46
|
+
"nodeIds": nodeIds,
|
|
43
47
|
"sortOrder": sortOrder
|
|
44
48
|
}
|
|
45
49
|
});
|
|
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
|
|
|
118
118
|
* @returns ListValidatorDetailsResponse
|
|
119
119
|
* @throws ApiError
|
|
120
120
|
*/
|
|
121
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
121
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
|
|
122
122
|
/**
|
|
123
123
|
* Either mainnet or a testnet.
|
|
124
124
|
*/
|
|
@@ -131,6 +131,30 @@ declare class PrimaryNetworkService {
|
|
|
131
131
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
132
132
|
*/
|
|
133
133
|
pageToken?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
136
|
+
*/
|
|
137
|
+
minTimeRemaining?: any;
|
|
138
|
+
/**
|
|
139
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
140
|
+
*/
|
|
141
|
+
maxTimeRemaining?: any;
|
|
142
|
+
/**
|
|
143
|
+
* 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
|
|
144
|
+
*/
|
|
145
|
+
minDelegationCapacity?: number;
|
|
146
|
+
/**
|
|
147
|
+
* 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.
|
|
148
|
+
*/
|
|
149
|
+
maxDelegationCapacity?: number;
|
|
150
|
+
/**
|
|
151
|
+
* 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.
|
|
152
|
+
*/
|
|
153
|
+
minFeePercentage?: any;
|
|
154
|
+
/**
|
|
155
|
+
* 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.
|
|
156
|
+
*/
|
|
157
|
+
maxFeePercentage?: any;
|
|
134
158
|
/**
|
|
135
159
|
* A comma separated list of node ids to filter by.
|
|
136
160
|
*/
|
|
@@ -144,9 +168,9 @@ declare class PrimaryNetworkService {
|
|
|
144
168
|
*/
|
|
145
169
|
validationStatus?: ValidationStatusType;
|
|
146
170
|
/**
|
|
147
|
-
* The
|
|
171
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
148
172
|
*/
|
|
149
|
-
|
|
173
|
+
subnetId?: string;
|
|
150
174
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
151
175
|
/**
|
|
152
176
|
* Get single validator details
|
|
@@ -186,7 +210,7 @@ declare class PrimaryNetworkService {
|
|
|
186
210
|
* @returns ListDelegatorDetailsResponse
|
|
187
211
|
* @throws ApiError
|
|
188
212
|
*/
|
|
189
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
213
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
190
214
|
/**
|
|
191
215
|
* Either mainnet or a testnet.
|
|
192
216
|
*/
|
|
@@ -199,6 +223,10 @@ declare class PrimaryNetworkService {
|
|
|
199
223
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
200
224
|
*/
|
|
201
225
|
pageToken?: string;
|
|
226
|
+
/**
|
|
227
|
+
* A comma separated list of reward addresses to filter by.
|
|
228
|
+
*/
|
|
229
|
+
rewardAddresses?: string;
|
|
202
230
|
/**
|
|
203
231
|
* 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.
|
|
204
232
|
*/
|
|
@@ -207,10 +235,6 @@ declare class PrimaryNetworkService {
|
|
|
207
235
|
* Delegation status of the node.
|
|
208
236
|
*/
|
|
209
237
|
delegationStatus?: DelegationStatusType;
|
|
210
|
-
/**
|
|
211
|
-
* A comma separated list of reward addresses to filter by.
|
|
212
|
-
*/
|
|
213
|
-
rewardAddresses?: string;
|
|
214
238
|
/**
|
|
215
239
|
* A comma separated list of node ids to filter by.
|
|
216
240
|
*/
|
|
@@ -85,10 +85,16 @@ class PrimaryNetworkService {
|
|
|
85
85
|
network,
|
|
86
86
|
pageSize = 10,
|
|
87
87
|
pageToken,
|
|
88
|
+
minTimeRemaining,
|
|
89
|
+
maxTimeRemaining,
|
|
90
|
+
minDelegationCapacity,
|
|
91
|
+
maxDelegationCapacity,
|
|
92
|
+
minFeePercentage,
|
|
93
|
+
maxFeePercentage,
|
|
88
94
|
nodeIds,
|
|
89
95
|
sortOrder,
|
|
90
96
|
validationStatus,
|
|
91
|
-
|
|
97
|
+
subnetId
|
|
92
98
|
}) {
|
|
93
99
|
return this.httpRequest.request({
|
|
94
100
|
method: "GET",
|
|
@@ -99,10 +105,16 @@ class PrimaryNetworkService {
|
|
|
99
105
|
query: {
|
|
100
106
|
"pageSize": pageSize,
|
|
101
107
|
"pageToken": pageToken,
|
|
108
|
+
"minTimeRemaining": minTimeRemaining,
|
|
109
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
110
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
111
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
112
|
+
"minFeePercentage": minFeePercentage,
|
|
113
|
+
"maxFeePercentage": maxFeePercentage,
|
|
102
114
|
"nodeIds": nodeIds,
|
|
103
115
|
"sortOrder": sortOrder,
|
|
104
116
|
"validationStatus": validationStatus,
|
|
105
|
-
"
|
|
117
|
+
"subnetId": subnetId
|
|
106
118
|
}
|
|
107
119
|
});
|
|
108
120
|
}
|
|
@@ -133,9 +145,9 @@ class PrimaryNetworkService {
|
|
|
133
145
|
network,
|
|
134
146
|
pageSize = 10,
|
|
135
147
|
pageToken,
|
|
148
|
+
rewardAddresses,
|
|
136
149
|
sortOrder,
|
|
137
150
|
delegationStatus,
|
|
138
|
-
rewardAddresses,
|
|
139
151
|
nodeIds
|
|
140
152
|
}) {
|
|
141
153
|
return this.httpRequest.request({
|
|
@@ -147,9 +159,9 @@ class PrimaryNetworkService {
|
|
|
147
159
|
query: {
|
|
148
160
|
"pageSize": pageSize,
|
|
149
161
|
"pageToken": pageToken,
|
|
162
|
+
"rewardAddresses": rewardAddresses,
|
|
150
163
|
"sortOrder": sortOrder,
|
|
151
164
|
"delegationStatus": delegationStatus,
|
|
152
|
-
"rewardAddresses": rewardAddresses,
|
|
153
165
|
"nodeIds": nodeIds
|
|
154
166
|
}
|
|
155
167
|
});
|