@avalabs/glacier-sdk 2.8.0-canary.d096f01.0 → 2.8.0-canary.d1d734a.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/LICENSE.md +9 -0
- package/dist/index.d.ts +125 -33
- package/dist/index.js +1 -2244
- package/esm/generated/Glacier.js +1 -77
- package/esm/generated/core/ApiError.js +1 -18
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.js +1 -93
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -228
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/ActiveValidatorDetails.js +1 -8
- package/esm/generated/models/AddressActivityMetadata.d.ts +1 -1
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CompletedValidatorDetails.js +1 -8
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
- package/esm/generated/models/ContractSubmissionErc20.js +1 -8
- package/esm/generated/models/ContractSubmissionErc721.js +1 -8
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
- package/esm/generated/models/{RegisterWebhookRequest.d.ts → CreateWebhookRequest.d.ts} +4 -2
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -8
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -8
- package/esm/generated/models/EVMOperationType.js +1 -6
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/EventType.js +1 -6
- package/esm/generated/models/GlacierApiFeature.js +1 -7
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.js +1 -9
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainTransaction.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -21
- package/esm/generated/models/PendingDelegatorDetails.js +1 -8
- package/esm/generated/models/PendingTeleporterMessage.d.ts +2 -0
- package/esm/generated/models/PendingTeleporterMessage.js +1 -8
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingValidatorDetails.js +1 -8
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -7
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -8
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -23
- package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
- package/esm/generated/models/RemovedValidatorDetails.js +1 -8
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.js +1 -8
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +1 -0
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/TeleporterRewardDetails.js +1 -8
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.js +1 -9
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookStatus.js +1 -7
- package/esm/generated/models/WebhookStatusType.js +1 -7
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainTransactionType.js +1 -11
- package/esm/generated/services/DefaultService.js +1 -13
- package/esm/generated/services/EvmBalancesService.d.ts +5 -1
- package/esm/generated/services/EvmBalancesService.js +1 -116
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.js +1 -31
- package/esm/generated/services/EvmContractsService.js +1 -36
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.js +1 -56
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -55
- package/esm/generated/services/PrimaryNetworkService.d.ts +23 -8
- package/esm/generated/services/PrimaryNetworkService.js +1 -171
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.js +1 -24
- package/esm/generated/services/TeleporterService.d.ts +6 -1
- package/esm/generated/services/TeleporterService.js +1 -39
- package/esm/generated/services/WebhooksService.d.ts +28 -7
- package/esm/generated/services/WebhooksService.js +1 -108
- package/esm/index.d.ts +4 -1
- package/esm/index.js +1 -88
- package/package.json +2 -2
|
@@ -1,251 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getDeploymentTransaction({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
currency
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId,
|
|
15
|
-
"address": address
|
|
16
|
-
},
|
|
17
|
-
query: {
|
|
18
|
-
"currency": currency
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
listContractDeployments({
|
|
23
|
-
chainId,
|
|
24
|
-
address,
|
|
25
|
-
pageToken,
|
|
26
|
-
pageSize = 10
|
|
27
|
-
}) {
|
|
28
|
-
return this.httpRequest.request({
|
|
29
|
-
method: "GET",
|
|
30
|
-
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
|
-
path: {
|
|
32
|
-
"chainId": chainId,
|
|
33
|
-
"address": address
|
|
34
|
-
},
|
|
35
|
-
query: {
|
|
36
|
-
"pageToken": pageToken,
|
|
37
|
-
"pageSize": pageSize
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
listTransfers({
|
|
42
|
-
chainId,
|
|
43
|
-
address,
|
|
44
|
-
startBlock,
|
|
45
|
-
endBlock,
|
|
46
|
-
pageToken,
|
|
47
|
-
pageSize = 10
|
|
48
|
-
}) {
|
|
49
|
-
return this.httpRequest.request({
|
|
50
|
-
method: "GET",
|
|
51
|
-
url: "/v1/chains/{chainId}/tokens/{address}/transfers",
|
|
52
|
-
path: {
|
|
53
|
-
"chainId": chainId,
|
|
54
|
-
"address": address
|
|
55
|
-
},
|
|
56
|
-
query: {
|
|
57
|
-
"startBlock": startBlock,
|
|
58
|
-
"endBlock": endBlock,
|
|
59
|
-
"pageToken": pageToken,
|
|
60
|
-
"pageSize": pageSize
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
listTransactions({
|
|
65
|
-
chainId,
|
|
66
|
-
address,
|
|
67
|
-
pageToken,
|
|
68
|
-
pageSize = 10,
|
|
69
|
-
startBlock,
|
|
70
|
-
endBlock,
|
|
71
|
-
sortOrder
|
|
72
|
-
}) {
|
|
73
|
-
return this.httpRequest.request({
|
|
74
|
-
method: "GET",
|
|
75
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions",
|
|
76
|
-
path: {
|
|
77
|
-
"chainId": chainId,
|
|
78
|
-
"address": address
|
|
79
|
-
},
|
|
80
|
-
query: {
|
|
81
|
-
"pageToken": pageToken,
|
|
82
|
-
"pageSize": pageSize,
|
|
83
|
-
"startBlock": startBlock,
|
|
84
|
-
"endBlock": endBlock,
|
|
85
|
-
"sortOrder": sortOrder
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
listNativeTransactions({
|
|
90
|
-
chainId,
|
|
91
|
-
address,
|
|
92
|
-
startBlock,
|
|
93
|
-
endBlock,
|
|
94
|
-
pageToken,
|
|
95
|
-
pageSize = 10
|
|
96
|
-
}) {
|
|
97
|
-
return this.httpRequest.request({
|
|
98
|
-
method: "GET",
|
|
99
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
|
|
100
|
-
path: {
|
|
101
|
-
"chainId": chainId,
|
|
102
|
-
"address": address
|
|
103
|
-
},
|
|
104
|
-
query: {
|
|
105
|
-
"startBlock": startBlock,
|
|
106
|
-
"endBlock": endBlock,
|
|
107
|
-
"pageToken": pageToken,
|
|
108
|
-
"pageSize": pageSize
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
listErc20Transactions({
|
|
113
|
-
chainId,
|
|
114
|
-
address,
|
|
115
|
-
startBlock,
|
|
116
|
-
endBlock,
|
|
117
|
-
pageToken,
|
|
118
|
-
pageSize = 10
|
|
119
|
-
}) {
|
|
120
|
-
return this.httpRequest.request({
|
|
121
|
-
method: "GET",
|
|
122
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
|
|
123
|
-
path: {
|
|
124
|
-
"chainId": chainId,
|
|
125
|
-
"address": address
|
|
126
|
-
},
|
|
127
|
-
query: {
|
|
128
|
-
"startBlock": startBlock,
|
|
129
|
-
"endBlock": endBlock,
|
|
130
|
-
"pageToken": pageToken,
|
|
131
|
-
"pageSize": pageSize
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
listErc721Transactions({
|
|
136
|
-
chainId,
|
|
137
|
-
address,
|
|
138
|
-
startBlock,
|
|
139
|
-
endBlock,
|
|
140
|
-
pageToken,
|
|
141
|
-
pageSize = 10
|
|
142
|
-
}) {
|
|
143
|
-
return this.httpRequest.request({
|
|
144
|
-
method: "GET",
|
|
145
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
|
|
146
|
-
path: {
|
|
147
|
-
"chainId": chainId,
|
|
148
|
-
"address": address
|
|
149
|
-
},
|
|
150
|
-
query: {
|
|
151
|
-
"startBlock": startBlock,
|
|
152
|
-
"endBlock": endBlock,
|
|
153
|
-
"pageToken": pageToken,
|
|
154
|
-
"pageSize": pageSize
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
listErc1155Transactions({
|
|
159
|
-
chainId,
|
|
160
|
-
address,
|
|
161
|
-
startBlock,
|
|
162
|
-
endBlock,
|
|
163
|
-
pageToken,
|
|
164
|
-
pageSize = 10
|
|
165
|
-
}) {
|
|
166
|
-
return this.httpRequest.request({
|
|
167
|
-
method: "GET",
|
|
168
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
|
|
169
|
-
path: {
|
|
170
|
-
"chainId": chainId,
|
|
171
|
-
"address": address
|
|
172
|
-
},
|
|
173
|
-
query: {
|
|
174
|
-
"startBlock": startBlock,
|
|
175
|
-
"endBlock": endBlock,
|
|
176
|
-
"pageToken": pageToken,
|
|
177
|
-
"pageSize": pageSize
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
listInternalTransactions({
|
|
182
|
-
chainId,
|
|
183
|
-
address,
|
|
184
|
-
startBlock,
|
|
185
|
-
endBlock,
|
|
186
|
-
pageToken,
|
|
187
|
-
pageSize = 10
|
|
188
|
-
}) {
|
|
189
|
-
return this.httpRequest.request({
|
|
190
|
-
method: "GET",
|
|
191
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
|
|
192
|
-
path: {
|
|
193
|
-
"chainId": chainId,
|
|
194
|
-
"address": address
|
|
195
|
-
},
|
|
196
|
-
query: {
|
|
197
|
-
"startBlock": startBlock,
|
|
198
|
-
"endBlock": endBlock,
|
|
199
|
-
"pageToken": pageToken,
|
|
200
|
-
"pageSize": pageSize
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
getTransaction({
|
|
205
|
-
chainId,
|
|
206
|
-
txHash
|
|
207
|
-
}) {
|
|
208
|
-
return this.httpRequest.request({
|
|
209
|
-
method: "GET",
|
|
210
|
-
url: "/v1/chains/{chainId}/transactions/{txHash}",
|
|
211
|
-
path: {
|
|
212
|
-
"chainId": chainId,
|
|
213
|
-
"txHash": txHash
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
getTransactionsForBlock({
|
|
218
|
-
chainId,
|
|
219
|
-
blockId
|
|
220
|
-
}) {
|
|
221
|
-
return this.httpRequest.request({
|
|
222
|
-
method: "GET",
|
|
223
|
-
url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
|
|
224
|
-
path: {
|
|
225
|
-
"chainId": chainId,
|
|
226
|
-
"blockId": blockId
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
listLatestTransactions({
|
|
231
|
-
chainId,
|
|
232
|
-
pageToken,
|
|
233
|
-
pageSize = 10,
|
|
234
|
-
status
|
|
235
|
-
}) {
|
|
236
|
-
return this.httpRequest.request({
|
|
237
|
-
method: "GET",
|
|
238
|
-
url: "/v1/chains/{chainId}/transactions",
|
|
239
|
-
path: {
|
|
240
|
-
"chainId": chainId
|
|
241
|
-
},
|
|
242
|
-
query: {
|
|
243
|
-
"pageToken": pageToken,
|
|
244
|
-
"pageSize": pageSize,
|
|
245
|
-
"status": status
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export { EvmTransactionsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:s,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:s},query:{currency:t}})}listContractDeployments({chainId:e,address:s,pageToken:t,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a}})}listTransfers({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listTransactions({chainId:e,address:s,pageToken:t,pageSize:a=10,startBlock:r,endBlock:n,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a,startBlock:r,endBlock:n,sortOrder:d}})}listNativeTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc20Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc721Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc1155Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listInternalTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}getTransaction({chainId:e,txHash:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:s}})}getTransactionsForBlock({chainId:e,blockId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:s}})}listLatestTransactions({chainId:e,pageToken:s,pageSize:t=10,status:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:s,pageSize:t,status:a}})}}export{e as EvmTransactionsService};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
healthCheck() {
|
|
6
|
-
return this.httpRequest.request({
|
|
7
|
-
method: "GET",
|
|
8
|
-
url: "/v1/health-check",
|
|
9
|
-
errors: {
|
|
10
|
-
503: `The Health Check is not successful`
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { HealthCheckService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}export{e as HealthCheckService};
|
|
@@ -1,56 +1 @@
|
|
|
1
|
-
class
|
|
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
|
-
listTokens({
|
|
21
|
-
chainId,
|
|
22
|
-
address,
|
|
23
|
-
pageToken,
|
|
24
|
-
pageSize = 10
|
|
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
|
-
"pageToken": pageToken,
|
|
35
|
-
"pageSize": pageSize
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
getTokenDetails({
|
|
40
|
-
chainId,
|
|
41
|
-
address,
|
|
42
|
-
tokenId
|
|
43
|
-
}) {
|
|
44
|
-
return this.httpRequest.request({
|
|
45
|
-
method: "GET",
|
|
46
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
47
|
-
path: {
|
|
48
|
-
"chainId": chainId,
|
|
49
|
-
"address": address,
|
|
50
|
-
"tokenId": tokenId
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { NfTsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:s}})}listTokens({chainId:e,address:t,pageToken:s,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:s,pageSize:d}})}getTokenDetails({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:s}})}}export{e as NfTsService};
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getOperationResult({
|
|
6
|
-
operationId
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "GET",
|
|
10
|
-
url: "/v1/operations/{operationId}",
|
|
11
|
-
path: {
|
|
12
|
-
"operationId": operationId
|
|
13
|
-
}
|
|
14
|
-
});
|
|
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
|
-
}
|
|
27
|
-
|
|
28
|
-
export { OperationsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}getOperationResult({operationId:t}){return this.httpRequest.request({method:"GET",url:"/v1/operations/{operationId}",path:{operationId:t}})}postTransactionExportJob({requestBody:t}){return this.httpRequest.request({method:"POST",url:"/v1/operations/transactions:export",body:t,mediaType:"application/json"})}}export{t as OperationsService};
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getBalancesByAddresses({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
blockTimestamp,
|
|
9
|
-
addresses
|
|
10
|
-
}) {
|
|
11
|
-
return this.httpRequest.request({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/balances",
|
|
14
|
-
path: {
|
|
15
|
-
"blockchainId": blockchainId,
|
|
16
|
-
"network": network
|
|
17
|
-
},
|
|
18
|
-
query: {
|
|
19
|
-
"blockTimestamp": blockTimestamp,
|
|
20
|
-
"addresses": addresses
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { PrimaryNetworkBalancesService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getBalancesByAddresses({blockchainId:e,network:s,blockTimestamp:t,addresses:c}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/balances",path:{blockchainId:e,network:s},query:{blockTimestamp:t,addresses:c}})}}export{e as PrimaryNetworkBalancesService};
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getBlockById({
|
|
6
|
-
blockchainId,
|
|
7
|
-
network,
|
|
8
|
-
blockId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",
|
|
13
|
-
path: {
|
|
14
|
-
"blockchainId": blockchainId,
|
|
15
|
-
"network": network,
|
|
16
|
-
"blockId": blockId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listPrimaryNetworkBlocksByNodeId({
|
|
21
|
-
blockchainId,
|
|
22
|
-
network,
|
|
23
|
-
nodeId,
|
|
24
|
-
pageToken,
|
|
25
|
-
pageSize = 10
|
|
26
|
-
}) {
|
|
27
|
-
return this.httpRequest.request({
|
|
28
|
-
method: "GET",
|
|
29
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",
|
|
30
|
-
path: {
|
|
31
|
-
"blockchainId": blockchainId,
|
|
32
|
-
"network": network,
|
|
33
|
-
"nodeId": nodeId
|
|
34
|
-
},
|
|
35
|
-
query: {
|
|
36
|
-
"pageToken": pageToken,
|
|
37
|
-
"pageSize": pageSize
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
listLatestPrimaryNetworkBlocks({
|
|
42
|
-
blockchainId,
|
|
43
|
-
network,
|
|
44
|
-
pageToken,
|
|
45
|
-
pageSize = 10
|
|
46
|
-
}) {
|
|
47
|
-
return this.httpRequest.request({
|
|
48
|
-
method: "GET",
|
|
49
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks",
|
|
50
|
-
path: {
|
|
51
|
-
"blockchainId": blockchainId,
|
|
52
|
-
"network": network
|
|
53
|
-
},
|
|
54
|
-
query: {
|
|
55
|
-
"pageToken": pageToken,
|
|
56
|
-
"pageSize": pageSize
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { PrimaryNetworkBlocksService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getBlockById({blockchainId:e,network:o,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",path:{blockchainId:e,network:o,blockId:t}})}listPrimaryNetworkBlocksByNodeId({blockchainId:e,network:o,nodeId:t,pageToken:k,pageSize:c=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",path:{blockchainId:e,network:o,nodeId:t},query:{pageToken:k,pageSize:c}})}listLatestPrimaryNetworkBlocks({blockchainId:e,network:o,pageToken:t,pageSize:k=10}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/blockchains/{blockchainId}/blocks",path:{blockchainId:e,network:o},query:{pageToken:t,pageSize:k}})}}export{e as PrimaryNetworkBlocksService};
|
|
@@ -1,55 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
listPendingPrimaryNetworkRewards({
|
|
6
|
-
network,
|
|
7
|
-
addresses,
|
|
8
|
-
pageToken,
|
|
9
|
-
pageSize = 10,
|
|
10
|
-
nodeIds,
|
|
11
|
-
sortOrder
|
|
12
|
-
}) {
|
|
13
|
-
return this.httpRequest.request({
|
|
14
|
-
method: "GET",
|
|
15
|
-
url: "/v1/networks/{network}/rewards:listPending",
|
|
16
|
-
path: {
|
|
17
|
-
"network": network
|
|
18
|
-
},
|
|
19
|
-
query: {
|
|
20
|
-
"addresses": addresses,
|
|
21
|
-
"pageToken": pageToken,
|
|
22
|
-
"pageSize": pageSize,
|
|
23
|
-
"nodeIds": nodeIds,
|
|
24
|
-
"sortOrder": sortOrder
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
listHistoricalPrimaryNetworkRewards({
|
|
29
|
-
network,
|
|
30
|
-
addresses,
|
|
31
|
-
pageToken,
|
|
32
|
-
pageSize = 10,
|
|
33
|
-
nodeIds,
|
|
34
|
-
sortOrder,
|
|
35
|
-
currency
|
|
36
|
-
}) {
|
|
37
|
-
return this.httpRequest.request({
|
|
38
|
-
method: "GET",
|
|
39
|
-
url: "/v1/networks/{network}/rewards",
|
|
40
|
-
path: {
|
|
41
|
-
"network": network
|
|
42
|
-
},
|
|
43
|
-
query: {
|
|
44
|
-
"addresses": addresses,
|
|
45
|
-
"pageToken": pageToken,
|
|
46
|
-
"pageSize": pageSize,
|
|
47
|
-
"nodeIds": nodeIds,
|
|
48
|
-
"sortOrder": sortOrder,
|
|
49
|
-
"currency": currency
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { PrimaryNetworkRewardsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}listPendingPrimaryNetworkRewards({network:e,addresses:r,pageToken:s,pageSize:t=10,nodeIds:d,sortOrder:o}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards:listPending",path:{network:e},query:{addresses:r,pageToken:s,pageSize:t,nodeIds:d,sortOrder:o}})}listHistoricalPrimaryNetworkRewards({network:e,addresses:r,pageToken:s,pageSize:t=10,nodeIds:d,sortOrder:o,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/networks/{network}/rewards",path:{network:e},query:{addresses:r,pageToken:s,pageSize:t,nodeIds:d,sortOrder:o,currency:n}})}}export{e as PrimaryNetworkRewardsService};
|
|
@@ -6,6 +6,7 @@ import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResp
|
|
|
6
6
|
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
7
7
|
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
8
8
|
import { Network } from '../models/Network.js';
|
|
9
|
+
import { SortByOption } from '../models/SortByOption.js';
|
|
9
10
|
import { SortOrder } from '../models/SortOrder.js';
|
|
10
11
|
import { ValidationStatusType } from '../models/ValidationStatusType.js';
|
|
11
12
|
import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
|
|
@@ -118,7 +119,7 @@ declare class PrimaryNetworkService {
|
|
|
118
119
|
* @returns ListValidatorDetailsResponse
|
|
119
120
|
* @throws ApiError
|
|
120
121
|
*/
|
|
121
|
-
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
122
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
122
123
|
/**
|
|
123
124
|
* Either mainnet or a testnet.
|
|
124
125
|
*/
|
|
@@ -135,6 +136,12 @@ declare class PrimaryNetworkService {
|
|
|
135
136
|
* A comma separated list of node ids to filter by.
|
|
136
137
|
*/
|
|
137
138
|
nodeIds?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
141
|
+
*
|
|
142
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
143
|
+
*/
|
|
144
|
+
sortBy?: SortByOption;
|
|
138
145
|
/**
|
|
139
146
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
140
147
|
*/
|
|
@@ -160,13 +167,21 @@ declare class PrimaryNetworkService {
|
|
|
160
167
|
*/
|
|
161
168
|
maxTimeRemaining?: number;
|
|
162
169
|
/**
|
|
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.
|
|
170
|
+
* 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.0, as per the Avalanche spec.
|
|
164
171
|
*/
|
|
165
172
|
minFeePercentage?: number;
|
|
166
173
|
/**
|
|
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.
|
|
174
|
+
* 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.0.
|
|
168
175
|
*/
|
|
169
176
|
maxFeePercentage?: number;
|
|
177
|
+
/**
|
|
178
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
179
|
+
*/
|
|
180
|
+
minUptimePerformance?: number;
|
|
181
|
+
/**
|
|
182
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
183
|
+
*/
|
|
184
|
+
maxUptimePerformance?: number;
|
|
170
185
|
/**
|
|
171
186
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
172
187
|
*/
|
|
@@ -178,7 +193,7 @@ declare class PrimaryNetworkService {
|
|
|
178
193
|
* @returns ListValidatorDetailsResponse
|
|
179
194
|
* @throws ApiError
|
|
180
195
|
*/
|
|
181
|
-
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize,
|
|
196
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
182
197
|
/**
|
|
183
198
|
* Either mainnet or a testnet.
|
|
184
199
|
*/
|
|
@@ -195,14 +210,14 @@ declare class PrimaryNetworkService {
|
|
|
195
210
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
196
211
|
*/
|
|
197
212
|
pageSize?: number;
|
|
198
|
-
/**
|
|
199
|
-
* 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.
|
|
200
|
-
*/
|
|
201
|
-
sortOrder?: SortOrder;
|
|
202
213
|
/**
|
|
203
214
|
* Validation status of the node.
|
|
204
215
|
*/
|
|
205
216
|
validationStatus?: ValidationStatusType;
|
|
217
|
+
/**
|
|
218
|
+
* 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.
|
|
219
|
+
*/
|
|
220
|
+
sortOrder?: SortOrder;
|
|
206
221
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
207
222
|
/**
|
|
208
223
|
* List delegators
|