@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.42fb70b.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 +579 -167
- package/dist/index.js +195 -36
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -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 +9 -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/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -2
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/PendingReward.d.ts +2 -2
- 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/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/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +15 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmContractsService.d.ts +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 +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -7
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/index.d.ts +18 -1
- package/esm/index.js +9 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Asset } from './Asset.js';
|
|
2
2
|
import { Utxo } from './Utxo.js';
|
|
3
3
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
4
|
+
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
4
5
|
|
|
5
6
|
type XChainLinearTransaction = {
|
|
6
7
|
/**
|
|
@@ -18,7 +19,7 @@ type XChainLinearTransaction = {
|
|
|
18
19
|
/**
|
|
19
20
|
* Type of transaction.
|
|
20
21
|
*/
|
|
21
|
-
txType:
|
|
22
|
+
txType: XChainTransactionType;
|
|
22
23
|
/**
|
|
23
24
|
* Hex encoded memo bytes for this transaction.
|
|
24
25
|
*/
|
|
@@ -2,6 +2,7 @@ import { Asset } from './Asset.js';
|
|
|
2
2
|
import { TransactionVertexDetail } from './TransactionVertexDetail.js';
|
|
3
3
|
import { Utxo } from './Utxo.js';
|
|
4
4
|
import { XChainAssetDetails } from './XChainAssetDetails.js';
|
|
5
|
+
import { XChainTransactionType } from './XChainTransactionType.js';
|
|
5
6
|
|
|
6
7
|
type XChainNonLinearTransaction = {
|
|
7
8
|
/**
|
|
@@ -19,7 +20,7 @@ type XChainNonLinearTransaction = {
|
|
|
19
20
|
/**
|
|
20
21
|
* Type of transaction.
|
|
21
22
|
*/
|
|
22
|
-
txType:
|
|
23
|
+
txType: XChainTransactionType;
|
|
23
24
|
/**
|
|
24
25
|
* Hex encoded memo bytes for this transaction.
|
|
25
26
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
|
|
2
|
+
XChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
3
|
+
XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
4
|
+
XChainTransactionType2["OPERATION_TX"] = "OperationTx";
|
|
5
|
+
XChainTransactionType2["IMPORT_TX"] = "ImportTx";
|
|
6
|
+
XChainTransactionType2["EXPORT_TX"] = "ExportTx";
|
|
7
|
+
XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
8
|
+
return XChainTransactionType2;
|
|
9
|
+
})(XChainTransactionType || {});
|
|
10
|
+
|
|
11
|
+
export { XChainTransactionType };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
|
|
2
|
+
import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
|
|
3
|
+
import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
|
|
4
|
+
import { WebhookResponse } from '../models/WebhookResponse.js';
|
|
5
|
+
import { WebhookStatus } from '../models/WebhookStatus.js';
|
|
6
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
8
|
+
|
|
9
|
+
declare class DefaultService {
|
|
10
|
+
readonly httpRequest: BaseHttpRequest;
|
|
11
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
12
|
+
/**
|
|
13
|
+
* @returns any
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Register a webhook
|
|
19
|
+
* Registers a new webhook.
|
|
20
|
+
* @returns WebhookResponse
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
registerWebhook({ requestBody, }: {
|
|
24
|
+
requestBody: RegisterWebhookRequest;
|
|
25
|
+
}): CancelablePromise<WebhookResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* List webhooks
|
|
28
|
+
* Lists webhooks for the user.
|
|
29
|
+
* @returns ListWebhooksResponse
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
33
|
+
/**
|
|
34
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
35
|
+
*/
|
|
36
|
+
pageSize?: number;
|
|
37
|
+
/**
|
|
38
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
39
|
+
*/
|
|
40
|
+
pageToken?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
43
|
+
*/
|
|
44
|
+
status?: WebhookStatus;
|
|
45
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Deactivate a webhook
|
|
48
|
+
* Deactivates a webhook by ID.
|
|
49
|
+
* @returns WebhookResponse
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
deactivateWebhook({ id, }: {
|
|
53
|
+
/**
|
|
54
|
+
* The webhook identifier.
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
}): CancelablePromise<WebhookResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate a shared secret
|
|
60
|
+
* Generates a new shared secret.
|
|
61
|
+
* @returns SharedSecretsResponse
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { DefaultService };
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
registerWebhook({
|
|
12
|
+
requestBody
|
|
13
|
+
}) {
|
|
14
|
+
return this.httpRequest.request({
|
|
15
|
+
method: "POST",
|
|
16
|
+
url: "/v1/webhooks",
|
|
17
|
+
body: requestBody,
|
|
18
|
+
mediaType: "application/json"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
listWebhooks({
|
|
22
|
+
pageSize = 10,
|
|
23
|
+
pageToken,
|
|
24
|
+
status
|
|
25
|
+
}) {
|
|
26
|
+
return this.httpRequest.request({
|
|
27
|
+
method: "GET",
|
|
28
|
+
url: "/v1/webhooks",
|
|
29
|
+
query: {
|
|
30
|
+
"pageSize": pageSize,
|
|
31
|
+
"pageToken": pageToken,
|
|
32
|
+
"status": status
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
deactivateWebhook({
|
|
37
|
+
id
|
|
38
|
+
}) {
|
|
39
|
+
return this.httpRequest.request({
|
|
40
|
+
method: "DELETE",
|
|
41
|
+
url: "/v1/webhooks/{id}",
|
|
42
|
+
path: {
|
|
43
|
+
"id": id
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
generateSharedSecret() {
|
|
48
|
+
return this.httpRequest.request({
|
|
49
|
+
method: "POST",
|
|
50
|
+
url: "/v1/webhooks:generateSharedSecret"
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { DefaultService };
|
|
@@ -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 };
|
|
@@ -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
|
});
|