@avalabs/glacier-sdk 2.8.0-canary.f35ad12.0 → 2.8.0-canary.f6c173d.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 +572 -272
- package/dist/index.js +240 -55
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +32 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- 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/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/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/ImageAsset.d.ts +0 -3
- 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/PricingProviders.d.ts +5 -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/UnknownContract.d.ts +0 -1
- 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 +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- 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 -12
- package/esm/generated/services/PrimaryNetworkService.js +17 -7
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +11 -0
- package/esm/index.js +13 -0
- package/package.json +2 -2
|
@@ -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
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
2
|
+
import { Erc721Token } from '../models/Erc721Token.js';
|
|
3
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
5
|
+
|
|
6
|
+
declare class NfTsService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Reindex NFT metadata
|
|
11
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
12
|
+
* @returns any
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
16
|
+
/**
|
|
17
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
|
+
*/
|
|
19
|
+
chainId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Contract address on the relevant chain.
|
|
22
|
+
*/
|
|
23
|
+
address: string;
|
|
24
|
+
/**
|
|
25
|
+
* TokenId on the contract
|
|
26
|
+
*/
|
|
27
|
+
tokenId: string;
|
|
28
|
+
}): CancelablePromise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Get token details
|
|
31
|
+
* Gets token details for a specific token of an NFT contract.
|
|
32
|
+
* @returns any
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
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
|
+
/**
|
|
45
|
+
* TokenId on the contract
|
|
46
|
+
*/
|
|
47
|
+
tokenId: string;
|
|
48
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { NfTsService };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
class NfTsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
reindexNft({
|
|
6
|
+
chainId,
|
|
7
|
+
address,
|
|
8
|
+
tokenId
|
|
9
|
+
}) {
|
|
10
|
+
return this.httpRequest.request({
|
|
11
|
+
method: "POST",
|
|
12
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
13
|
+
path: {
|
|
14
|
+
"chainId": chainId,
|
|
15
|
+
"address": address,
|
|
16
|
+
"tokenId": tokenId
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
getTokenDetails({
|
|
21
|
+
chainId,
|
|
22
|
+
address,
|
|
23
|
+
tokenId
|
|
24
|
+
}) {
|
|
25
|
+
return this.httpRequest.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
28
|
+
path: {
|
|
29
|
+
"chainId": chainId,
|
|
30
|
+
"address": address,
|
|
31
|
+
"tokenId": tokenId
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
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,15 +210,11 @@ declare class PrimaryNetworkService {
|
|
|
186
210
|
* @returns ListDelegatorDetailsResponse
|
|
187
211
|
* @throws ApiError
|
|
188
212
|
*/
|
|
189
|
-
listDelegators({ network,
|
|
213
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
190
214
|
/**
|
|
191
215
|
* Either mainnet or a testnet.
|
|
192
216
|
*/
|
|
193
217
|
network: Network;
|
|
194
|
-
/**
|
|
195
|
-
* A primary network (P or X chain) nodeId.
|
|
196
|
-
*/
|
|
197
|
-
nodeId: string;
|
|
198
218
|
/**
|
|
199
219
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
200
220
|
*/
|
|
@@ -203,6 +223,10 @@ declare class PrimaryNetworkService {
|
|
|
203
223
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
204
224
|
*/
|
|
205
225
|
pageToken?: string;
|
|
226
|
+
/**
|
|
227
|
+
* A comma separated list of reward addresses to filter by.
|
|
228
|
+
*/
|
|
229
|
+
rewardAddresses?: string;
|
|
206
230
|
/**
|
|
207
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.
|
|
208
232
|
*/
|
|
@@ -211,10 +235,6 @@ declare class PrimaryNetworkService {
|
|
|
211
235
|
* Delegation status of the node.
|
|
212
236
|
*/
|
|
213
237
|
delegationStatus?: DelegationStatusType;
|
|
214
|
-
/**
|
|
215
|
-
* A comma separated list of reward addresses to filter by.
|
|
216
|
-
*/
|
|
217
|
-
rewardAddresses?: string;
|
|
218
238
|
/**
|
|
219
239
|
* A comma separated list of node ids to filter by.
|
|
220
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
|
}
|
|
@@ -131,27 +143,25 @@ class PrimaryNetworkService {
|
|
|
131
143
|
}
|
|
132
144
|
listDelegators({
|
|
133
145
|
network,
|
|
134
|
-
nodeId,
|
|
135
146
|
pageSize = 10,
|
|
136
147
|
pageToken,
|
|
148
|
+
rewardAddresses,
|
|
137
149
|
sortOrder,
|
|
138
150
|
delegationStatus,
|
|
139
|
-
rewardAddresses,
|
|
140
151
|
nodeIds
|
|
141
152
|
}) {
|
|
142
153
|
return this.httpRequest.request({
|
|
143
154
|
method: "GET",
|
|
144
155
|
url: "/v1/networks/{network}/delegators",
|
|
145
156
|
path: {
|
|
146
|
-
"network": network
|
|
147
|
-
"nodeId": nodeId
|
|
157
|
+
"network": network
|
|
148
158
|
},
|
|
149
159
|
query: {
|
|
150
160
|
"pageSize": pageSize,
|
|
151
161
|
"pageToken": pageToken,
|
|
162
|
+
"rewardAddresses": rewardAddresses,
|
|
152
163
|
"sortOrder": sortOrder,
|
|
153
164
|
"delegationStatus": delegationStatus,
|
|
154
|
-
"rewardAddresses": rewardAddresses,
|
|
155
165
|
"nodeIds": nodeIds
|
|
156
166
|
}
|
|
157
167
|
});
|
|
@@ -40,7 +40,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
40
40
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
41
41
|
/**
|
|
42
42
|
* List latest transactions
|
|
43
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
43
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
44
|
+
*
|
|
45
|
+
* Transactions are filterable by addresses.
|
|
46
|
+
*
|
|
47
|
+
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
44
48
|
* @returns any
|
|
45
49
|
* @throws ApiError
|
|
46
50
|
*/
|
package/esm/index.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export { ChainStatus } from './generated/models/ChainStatus.js';
|
|
|
21
21
|
export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
|
|
22
22
|
export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
|
|
23
23
|
export { ContractDeploymentDetails } from './generated/models/ContractDeploymentDetails.js';
|
|
24
|
+
export { ContractSubmissionBody } from './generated/models/ContractSubmissionBody.js';
|
|
25
|
+
export { ContractSubmissionErc1155 } from './generated/models/ContractSubmissionErc1155.js';
|
|
26
|
+
export { ContractSubmissionErc20 } from './generated/models/ContractSubmissionErc20.js';
|
|
27
|
+
export { ContractSubmissionErc721 } from './generated/models/ContractSubmissionErc721.js';
|
|
28
|
+
export { ContractSubmissionUnknown } from './generated/models/ContractSubmissionUnknown.js';
|
|
24
29
|
export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
|
|
25
30
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
26
31
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
@@ -112,6 +117,7 @@ export { PChainUtxo } from './generated/models/PChainUtxo.js';
|
|
|
112
117
|
export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
|
|
113
118
|
export { PendingReward } from './generated/models/PendingReward.js';
|
|
114
119
|
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
120
|
+
export { PricingProviders } from './generated/models/PricingProviders.js';
|
|
115
121
|
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
116
122
|
export { PrimaryNetworkBlock } from './generated/models/PrimaryNetworkBlock.js';
|
|
117
123
|
export { PrimaryNetworkChainInfo } from './generated/models/PrimaryNetworkChainInfo.js';
|
|
@@ -133,11 +139,13 @@ export { TransactionMethodType } from './generated/models/TransactionMethodType.
|
|
|
133
139
|
export { TransactionStatus } from './generated/models/TransactionStatus.js';
|
|
134
140
|
export { TransactionVertexDetail } from './generated/models/TransactionVertexDetail.js';
|
|
135
141
|
export { UnknownContract } from './generated/models/UnknownContract.js';
|
|
142
|
+
export { UpdateContractResponse } from './generated/models/UpdateContractResponse.js';
|
|
136
143
|
export { UtilityAddresses } from './generated/models/UtilityAddresses.js';
|
|
137
144
|
export { Utxo } from './generated/models/Utxo.js';
|
|
138
145
|
export { UtxoCredential } from './generated/models/UtxoCredential.js';
|
|
139
146
|
export { UtxoType } from './generated/models/UtxoType.js';
|
|
140
147
|
export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
|
|
148
|
+
export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
|
|
141
149
|
export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
|
|
142
150
|
export { VmName } from './generated/models/VmName.js';
|
|
143
151
|
export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
|
|
@@ -148,11 +156,14 @@ export { XChainLinearTransaction } from './generated/models/XChainLinearTransact
|
|
|
148
156
|
export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
|
|
149
157
|
export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
|
|
150
158
|
export { XChainVertex } from './generated/models/XChainVertex.js';
|
|
159
|
+
export { DefaultService } from './generated/services/DefaultService.js';
|
|
151
160
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
152
161
|
export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
|
|
153
162
|
export { EvmChainsService } from './generated/services/EvmChainsService.js';
|
|
163
|
+
export { EvmContractsService } from './generated/services/EvmContractsService.js';
|
|
154
164
|
export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
|
|
155
165
|
export { HealthCheckService } from './generated/services/HealthCheckService.js';
|
|
166
|
+
export { NfTsService } from './generated/services/NfTsService.js';
|
|
156
167
|
export { OperationsService } from './generated/services/OperationsService.js';
|
|
157
168
|
export { PrimaryNetworkService } from './generated/services/PrimaryNetworkService.js';
|
|
158
169
|
export { PrimaryNetworkBalancesService } from './generated/services/PrimaryNetworkBalancesService.js';
|
package/esm/index.js
CHANGED
|
@@ -3,11 +3,19 @@ export { ApiError } from './generated/core/ApiError.js';
|
|
|
3
3
|
export { BaseHttpRequest } from './generated/core/BaseHttpRequest.js';
|
|
4
4
|
export { CancelError, CancelablePromise } from './generated/core/CancelablePromise.js';
|
|
5
5
|
export { OpenAPI } from './generated/core/OpenAPI.js';
|
|
6
|
+
export { ActiveDelegatorDetails } from './generated/models/ActiveDelegatorDetails.js';
|
|
7
|
+
export { ActiveValidatorDetails } from './generated/models/ActiveValidatorDetails.js';
|
|
6
8
|
export { BlockchainId } from './generated/models/BlockchainId.js';
|
|
7
9
|
export { BlockchainIds } from './generated/models/BlockchainIds.js';
|
|
8
10
|
export { CChainExportTransaction } from './generated/models/CChainExportTransaction.js';
|
|
9
11
|
export { CChainImportTransaction } from './generated/models/CChainImportTransaction.js';
|
|
10
12
|
export { ChainStatus } from './generated/models/ChainStatus.js';
|
|
13
|
+
export { CompletedDelegatorDetails } from './generated/models/CompletedDelegatorDetails.js';
|
|
14
|
+
export { CompletedValidatorDetails } from './generated/models/CompletedValidatorDetails.js';
|
|
15
|
+
export { ContractSubmissionErc1155 } from './generated/models/ContractSubmissionErc1155.js';
|
|
16
|
+
export { ContractSubmissionErc20 } from './generated/models/ContractSubmissionErc20.js';
|
|
17
|
+
export { ContractSubmissionErc721 } from './generated/models/ContractSubmissionErc721.js';
|
|
18
|
+
export { ContractSubmissionUnknown } from './generated/models/ContractSubmissionUnknown.js';
|
|
11
19
|
export { CreateEvmTransactionExportRequest } from './generated/models/CreateEvmTransactionExportRequest.js';
|
|
12
20
|
export { CreatePrimaryNetworkTransactionExportRequest } from './generated/models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
13
21
|
export { CurrencyCode } from './generated/models/CurrencyCode.js';
|
|
@@ -30,6 +38,8 @@ export { OperationStatusCode } from './generated/models/OperationStatusCode.js';
|
|
|
30
38
|
export { OperationType } from './generated/models/OperationType.js';
|
|
31
39
|
export { PChainId } from './generated/models/PChainId.js';
|
|
32
40
|
export { PChainTransactionType } from './generated/models/PChainTransactionType.js';
|
|
41
|
+
export { PendingDelegatorDetails } from './generated/models/PendingDelegatorDetails.js';
|
|
42
|
+
export { PendingValidatorDetails } from './generated/models/PendingValidatorDetails.js';
|
|
33
43
|
export { PrimaryNetwork } from './generated/models/PrimaryNetwork.js';
|
|
34
44
|
export { PrimaryNetworkChainName } from './generated/models/PrimaryNetworkChainName.js';
|
|
35
45
|
export { PrimaryNetworkTxType } from './generated/models/PrimaryNetworkTxType.js';
|
|
@@ -45,11 +55,14 @@ export { VmName } from './generated/models/VmName.js';
|
|
|
45
55
|
export { XChainId } from './generated/models/XChainId.js';
|
|
46
56
|
export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
|
|
47
57
|
export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
|
|
58
|
+
export { DefaultService } from './generated/services/DefaultService.js';
|
|
48
59
|
export { EvmBalancesService } from './generated/services/EvmBalancesService.js';
|
|
49
60
|
export { EvmBlocksService } from './generated/services/EvmBlocksService.js';
|
|
50
61
|
export { EvmChainsService } from './generated/services/EvmChainsService.js';
|
|
62
|
+
export { EvmContractsService } from './generated/services/EvmContractsService.js';
|
|
51
63
|
export { EvmTransactionsService } from './generated/services/EvmTransactionsService.js';
|
|
52
64
|
export { HealthCheckService } from './generated/services/HealthCheckService.js';
|
|
65
|
+
export { NfTsService } from './generated/services/NfTsService.js';
|
|
53
66
|
export { OperationsService } from './generated/services/OperationsService.js';
|
|
54
67
|
export { PrimaryNetworkService } from './generated/services/PrimaryNetworkService.js';
|
|
55
68
|
export { PrimaryNetworkBalancesService } from './generated/services/PrimaryNetworkBalancesService.js';
|