@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.3761e06.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 +812 -172
- package/dist/index.js +280 -38
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/AssetWithPriceInfo.d.ts +34 -0
- package/esm/generated/models/ChainInfo.d.ts +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +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 +1 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/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 +19 -0
- package/esm/generated/services/EvmContractsService.js +16 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -20
- package/esm/generated/services/EvmTransactionsService.js +1 -14
- package/esm/generated/services/NfTsService.d.ts +25 -0
- package/esm/generated/services/NfTsService.js +19 -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 +17 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -2
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -7
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/generated/services/TeleporterService.d.ts +65 -0
- package/esm/generated/services/TeleporterService.js +43 -0
- package/esm/index.d.ts +28 -1
- package/esm/index.js +15 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ContractSubmissionBody } from '../models/ContractSubmissionBody.js';
|
|
1
2
|
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
2
3
|
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
3
4
|
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
4
5
|
import { UnknownContract } from '../models/UnknownContract.js';
|
|
6
|
+
import { UpdateContractResponse } from '../models/UpdateContractResponse.js';
|
|
5
7
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
8
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
9
|
|
|
@@ -24,6 +26,23 @@ declare class EvmContractsService {
|
|
|
24
26
|
*/
|
|
25
27
|
address: string;
|
|
26
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>;
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
export { EvmContractsService };
|
|
@@ -15,6 +15,22 @@ class EvmContractsService {
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
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
|
+
}
|
|
18
34
|
}
|
|
19
35
|
|
|
20
36
|
export { EvmContractsService };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
2
|
-
import { Erc1155Contract } from '../models/Erc1155Contract.js';
|
|
3
|
-
import { Erc20Contract } from '../models/Erc20Contract.js';
|
|
4
|
-
import { Erc721Contract } from '../models/Erc721Contract.js';
|
|
5
2
|
import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
|
|
6
3
|
import { ListContractsResponse } from '../models/ListContractsResponse.js';
|
|
7
4
|
import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
|
|
@@ -13,7 +10,6 @@ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetails
|
|
|
13
10
|
import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
|
|
14
11
|
import { SortOrder } from '../models/SortOrder.js';
|
|
15
12
|
import { TransactionStatus } from '../models/TransactionStatus.js';
|
|
16
|
-
import { UnknownContract } from '../models/UnknownContract.js';
|
|
17
13
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
18
14
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
19
15
|
|
|
@@ -64,22 +60,6 @@ declare class EvmTransactionsService {
|
|
|
64
60
|
*/
|
|
65
61
|
pageToken?: string;
|
|
66
62
|
}): CancelablePromise<ListContractsResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Get contract metadata
|
|
69
|
-
* Gets metadata about the contract at the given address.
|
|
70
|
-
* @returns any
|
|
71
|
-
* @throws ApiError
|
|
72
|
-
*/
|
|
73
|
-
getContractMetadata({ chainId, address, }: {
|
|
74
|
-
/**
|
|
75
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
76
|
-
*/
|
|
77
|
-
chainId: string;
|
|
78
|
-
/**
|
|
79
|
-
* Contract address on the relevant chain.
|
|
80
|
-
*/
|
|
81
|
-
address: string;
|
|
82
|
-
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
83
63
|
/**
|
|
84
64
|
* List ERC transfers
|
|
85
65
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
@@ -95,7 +75,13 @@ declare class EvmTransactionsService {
|
|
|
95
75
|
* A wallet address.
|
|
96
76
|
*/
|
|
97
77
|
address: string;
|
|
78
|
+
/**
|
|
79
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
80
|
+
*/
|
|
98
81
|
startBlock?: number;
|
|
82
|
+
/**
|
|
83
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
84
|
+
*/
|
|
99
85
|
endBlock?: number;
|
|
100
86
|
/**
|
|
101
87
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -131,7 +117,13 @@ declare class EvmTransactionsService {
|
|
|
131
117
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
132
118
|
*/
|
|
133
119
|
pageToken?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
122
|
+
*/
|
|
134
123
|
startBlock?: number;
|
|
124
|
+
/**
|
|
125
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
126
|
+
*/
|
|
135
127
|
endBlock?: number;
|
|
136
128
|
/**
|
|
137
129
|
* 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.
|
|
@@ -153,7 +145,13 @@ declare class EvmTransactionsService {
|
|
|
153
145
|
* A wallet address.
|
|
154
146
|
*/
|
|
155
147
|
address: string;
|
|
148
|
+
/**
|
|
149
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
150
|
+
*/
|
|
156
151
|
startBlock?: number;
|
|
152
|
+
/**
|
|
153
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
154
|
+
*/
|
|
157
155
|
endBlock?: number;
|
|
158
156
|
/**
|
|
159
157
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -179,7 +177,13 @@ declare class EvmTransactionsService {
|
|
|
179
177
|
* A wallet address.
|
|
180
178
|
*/
|
|
181
179
|
address: string;
|
|
180
|
+
/**
|
|
181
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
182
|
+
*/
|
|
182
183
|
startBlock?: number;
|
|
184
|
+
/**
|
|
185
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
186
|
+
*/
|
|
183
187
|
endBlock?: number;
|
|
184
188
|
/**
|
|
185
189
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -205,7 +209,13 @@ declare class EvmTransactionsService {
|
|
|
205
209
|
* A wallet address.
|
|
206
210
|
*/
|
|
207
211
|
address: string;
|
|
212
|
+
/**
|
|
213
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
214
|
+
*/
|
|
208
215
|
startBlock?: number;
|
|
216
|
+
/**
|
|
217
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
218
|
+
*/
|
|
209
219
|
endBlock?: number;
|
|
210
220
|
/**
|
|
211
221
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -231,7 +241,13 @@ declare class EvmTransactionsService {
|
|
|
231
241
|
* A wallet address.
|
|
232
242
|
*/
|
|
233
243
|
address: string;
|
|
244
|
+
/**
|
|
245
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
246
|
+
*/
|
|
234
247
|
startBlock?: number;
|
|
248
|
+
/**
|
|
249
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
250
|
+
*/
|
|
235
251
|
endBlock?: number;
|
|
236
252
|
/**
|
|
237
253
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -259,7 +275,13 @@ declare class EvmTransactionsService {
|
|
|
259
275
|
* A wallet address.
|
|
260
276
|
*/
|
|
261
277
|
address: string;
|
|
278
|
+
/**
|
|
279
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
280
|
+
*/
|
|
262
281
|
startBlock?: number;
|
|
282
|
+
/**
|
|
283
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
284
|
+
*/
|
|
263
285
|
endBlock?: number;
|
|
264
286
|
/**
|
|
265
287
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -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
|
|
@@ -38,19 +38,6 @@ class EvmTransactionsService {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
getContractMetadata({
|
|
42
|
-
chainId,
|
|
43
|
-
address
|
|
44
|
-
}) {
|
|
45
|
-
return this.httpRequest.request({
|
|
46
|
-
method: "GET",
|
|
47
|
-
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
48
|
-
path: {
|
|
49
|
-
"chainId": chainId,
|
|
50
|
-
"address": address
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
41
|
listTransfers({
|
|
55
42
|
chainId,
|
|
56
43
|
address,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
2
2
|
import { Erc721Token } from '../models/Erc721Token.js';
|
|
3
|
+
import { ListNftTokens } from '../models/ListNftTokens.js';
|
|
3
4
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
5
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
5
6
|
|
|
@@ -26,6 +27,30 @@ declare class NfTsService {
|
|
|
26
27
|
*/
|
|
27
28
|
tokenId: string;
|
|
28
29
|
}): CancelablePromise<any>;
|
|
30
|
+
/**
|
|
31
|
+
* List tokens
|
|
32
|
+
* Lists tokens for an NFT contract.
|
|
33
|
+
* @returns ListNftTokens
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
37
|
+
/**
|
|
38
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
|
+
*/
|
|
40
|
+
chainId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Contract address on the relevant chain.
|
|
43
|
+
*/
|
|
44
|
+
address: string;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
47
|
+
*/
|
|
48
|
+
pageSize?: number;
|
|
49
|
+
/**
|
|
50
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
51
|
+
*/
|
|
52
|
+
pageToken?: string;
|
|
53
|
+
}): CancelablePromise<ListNftTokens>;
|
|
29
54
|
/**
|
|
30
55
|
* Get token details
|
|
31
56
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -17,6 +17,25 @@ class NfTsService {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
listTokens({
|
|
21
|
+
chainId,
|
|
22
|
+
address,
|
|
23
|
+
pageSize = 10,
|
|
24
|
+
pageToken
|
|
25
|
+
}) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
+
path: {
|
|
30
|
+
"chainId": chainId,
|
|
31
|
+
"address": address
|
|
32
|
+
},
|
|
33
|
+
query: {
|
|
34
|
+
"pageSize": pageSize,
|
|
35
|
+
"pageToken": pageToken
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
20
39
|
getTokenDetails({
|
|
21
40
|
chainId,
|
|
22
41
|
address,
|
|
@@ -7,17 +7,6 @@ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
|
7
7
|
declare class OperationsService {
|
|
8
8
|
readonly httpRequest: BaseHttpRequest;
|
|
9
9
|
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
-
/**
|
|
11
|
-
* Create transaction export operation
|
|
12
|
-
* Trigger a transaction export operation with given parameters.
|
|
13
|
-
*
|
|
14
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
15
|
-
* @returns OperationStatusResponse
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
postTransactionExportJob({ requestBody, }: {
|
|
19
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
20
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
21
10
|
/**
|
|
22
11
|
* Get operation
|
|
23
12
|
* Gets operation details for the given operation id.
|
|
@@ -30,6 +19,17 @@ declare class OperationsService {
|
|
|
30
19
|
*/
|
|
31
20
|
operationId: string;
|
|
32
21
|
}): CancelablePromise<OperationStatusResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create transaction export operation
|
|
24
|
+
* Trigger a transaction export operation with given parameters.
|
|
25
|
+
*
|
|
26
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
27
|
+
* @returns OperationStatusResponse
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
postTransactionExportJob({ requestBody, }: {
|
|
31
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
32
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export { OperationsService };
|
|
@@ -2,16 +2,6 @@ class OperationsService {
|
|
|
2
2
|
constructor(httpRequest) {
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
|
-
postTransactionExportJob({
|
|
6
|
-
requestBody
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "POST",
|
|
10
|
-
url: "/v1/operations/transactions:export",
|
|
11
|
-
body: requestBody,
|
|
12
|
-
mediaType: "application/json"
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
5
|
getOperationResult({
|
|
16
6
|
operationId
|
|
17
7
|
}) {
|
|
@@ -23,6 +13,16 @@ class OperationsService {
|
|
|
23
13
|
}
|
|
24
14
|
});
|
|
25
15
|
}
|
|
16
|
+
postTransactionExportJob({
|
|
17
|
+
requestBody
|
|
18
|
+
}) {
|
|
19
|
+
return this.httpRequest.request({
|
|
20
|
+
method: "POST",
|
|
21
|
+
url: "/v1/operations/transactions:export",
|
|
22
|
+
body: requestBody,
|
|
23
|
+
mediaType: "application/json"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { OperationsService };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
1
2
|
import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
|
|
2
3
|
import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
|
|
3
4
|
import { Network } from '../models/Network.js';
|
|
@@ -14,13 +15,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
14
15
|
* @returns ListPendingRewardsResponse
|
|
15
16
|
* @throws ApiError
|
|
16
17
|
*/
|
|
17
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
18
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
18
19
|
/**
|
|
19
20
|
* Either mainnet or a testnet.
|
|
20
21
|
*/
|
|
21
22
|
network: Network;
|
|
22
23
|
/**
|
|
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".
|
|
24
|
+
* 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
25
|
*/
|
|
25
26
|
addresses?: string;
|
|
26
27
|
/**
|
|
@@ -31,6 +32,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
31
32
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
33
|
*/
|
|
33
34
|
pageToken?: string;
|
|
35
|
+
/**
|
|
36
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
37
|
+
*/
|
|
38
|
+
nodeIds?: string;
|
|
34
39
|
/**
|
|
35
40
|
* 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
41
|
*/
|
|
@@ -42,13 +47,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
42
47
|
* @returns ListHistoricalRewardsResponse
|
|
43
48
|
* @throws ApiError
|
|
44
49
|
*/
|
|
45
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
50
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, currency, }: {
|
|
46
51
|
/**
|
|
47
52
|
* Either mainnet or a testnet.
|
|
48
53
|
*/
|
|
49
54
|
network: Network;
|
|
50
55
|
/**
|
|
51
|
-
* 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".
|
|
56
|
+
* 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.
|
|
52
57
|
*/
|
|
53
58
|
addresses?: string;
|
|
54
59
|
/**
|
|
@@ -59,10 +64,18 @@ declare class PrimaryNetworkRewardsService {
|
|
|
59
64
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
65
|
*/
|
|
61
66
|
pageToken?: string;
|
|
67
|
+
/**
|
|
68
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
69
|
+
*/
|
|
70
|
+
nodeIds?: string;
|
|
62
71
|
/**
|
|
63
72
|
* 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
73
|
*/
|
|
65
74
|
sortOrder?: SortOrder;
|
|
75
|
+
/**
|
|
76
|
+
* The currency that return values should use. Defaults to USD.
|
|
77
|
+
*/
|
|
78
|
+
currency?: CurrencyCode;
|
|
66
79
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
67
80
|
}
|
|
68
81
|
|
|
@@ -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,7 +30,9 @@ class PrimaryNetworkRewardsService {
|
|
|
28
30
|
addresses,
|
|
29
31
|
pageSize = 10,
|
|
30
32
|
pageToken,
|
|
31
|
-
|
|
33
|
+
nodeIds,
|
|
34
|
+
sortOrder,
|
|
35
|
+
currency
|
|
32
36
|
}) {
|
|
33
37
|
return this.httpRequest.request({
|
|
34
38
|
method: "GET",
|
|
@@ -40,7 +44,9 @@ class PrimaryNetworkRewardsService {
|
|
|
40
44
|
"addresses": addresses,
|
|
41
45
|
"pageSize": pageSize,
|
|
42
46
|
"pageToken": pageToken,
|
|
43
|
-
"
|
|
47
|
+
"nodeIds": nodeIds,
|
|
48
|
+
"sortOrder": sortOrder,
|
|
49
|
+
"currency": currency
|
|
44
50
|
}
|
|
45
51
|
});
|
|
46
52
|
}
|
|
@@ -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, minDelegationCapacity, }: {
|
|
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
|
*/
|
|
@@ -144,9 +144,33 @@ declare class PrimaryNetworkService {
|
|
|
144
144
|
*/
|
|
145
145
|
validationStatus?: ValidationStatusType;
|
|
146
146
|
/**
|
|
147
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
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
|
+
/**
|
|
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
|
+
*/
|
|
153
|
+
maxDelegationCapacity?: any;
|
|
154
|
+
/**
|
|
155
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
156
|
+
*/
|
|
157
|
+
minTimeRemaining?: any;
|
|
158
|
+
/**
|
|
159
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
160
|
+
*/
|
|
161
|
+
maxTimeRemaining?: any;
|
|
162
|
+
/**
|
|
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
|
+
*/
|
|
165
|
+
minFeePercentage?: any;
|
|
166
|
+
/**
|
|
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
|
+
*/
|
|
169
|
+
maxFeePercentage?: any;
|
|
170
|
+
/**
|
|
171
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
|
+
*/
|
|
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
|
*/
|
|
@@ -88,7 +88,13 @@ class PrimaryNetworkService {
|
|
|
88
88
|
nodeIds,
|
|
89
89
|
sortOrder,
|
|
90
90
|
validationStatus,
|
|
91
|
-
minDelegationCapacity
|
|
91
|
+
minDelegationCapacity,
|
|
92
|
+
maxDelegationCapacity,
|
|
93
|
+
minTimeRemaining,
|
|
94
|
+
maxTimeRemaining,
|
|
95
|
+
minFeePercentage,
|
|
96
|
+
maxFeePercentage,
|
|
97
|
+
subnetId
|
|
92
98
|
}) {
|
|
93
99
|
return this.httpRequest.request({
|
|
94
100
|
method: "GET",
|
|
@@ -102,7 +108,13 @@ class PrimaryNetworkService {
|
|
|
102
108
|
"nodeIds": nodeIds,
|
|
103
109
|
"sortOrder": sortOrder,
|
|
104
110
|
"validationStatus": validationStatus,
|
|
105
|
-
"minDelegationCapacity": minDelegationCapacity
|
|
111
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
112
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
113
|
+
"minTimeRemaining": minTimeRemaining,
|
|
114
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
115
|
+
"minFeePercentage": minFeePercentage,
|
|
116
|
+
"maxFeePercentage": maxFeePercentage,
|
|
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
|
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
|
|
2
|
+
import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
|
|
3
|
+
import { NextPageToken } from '../models/NextPageToken.js';
|
|
4
|
+
import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
|
|
5
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
+
|
|
8
|
+
declare class TeleporterService {
|
|
9
|
+
readonly httpRequest: BaseHttpRequest;
|
|
10
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
+
/**
|
|
12
|
+
* Get a teleporter message
|
|
13
|
+
* Gets a teleporter message by source chain, destination chain, and message ID.
|
|
14
|
+
* @returns any
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
|
|
18
|
+
/**
|
|
19
|
+
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
20
|
+
*/
|
|
21
|
+
sourceBlockchainId: any;
|
|
22
|
+
/**
|
|
23
|
+
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
24
|
+
*/
|
|
25
|
+
destinationBlockchainId: any;
|
|
26
|
+
/**
|
|
27
|
+
* The message ID of the teleporter message.
|
|
28
|
+
*/
|
|
29
|
+
messageId: any;
|
|
30
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
31
|
+
/**
|
|
32
|
+
* List teleporter messages
|
|
33
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
34
|
+
* @returns any
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
38
|
+
/**
|
|
39
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
40
|
+
*/
|
|
41
|
+
pageSize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
44
|
+
*/
|
|
45
|
+
pageToken?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
48
|
+
*/
|
|
49
|
+
sourceBlockchainId?: any;
|
|
50
|
+
/**
|
|
51
|
+
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
52
|
+
*/
|
|
53
|
+
destinationBlockchainId?: any;
|
|
54
|
+
/**
|
|
55
|
+
* The address of the recipient of the teleporter message.
|
|
56
|
+
*/
|
|
57
|
+
to?: any;
|
|
58
|
+
/**
|
|
59
|
+
* The address of the sender of the teleporter message.
|
|
60
|
+
*/
|
|
61
|
+
from?: any;
|
|
62
|
+
}): CancelablePromise<NextPageToken>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { TeleporterService };
|