@avalabs/glacier-sdk 2.8.0-canary.5546d4f.0 → 2.8.0-canary.5601e64.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 +361 -134
- package/dist/index.js +122 -17
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
- package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/ChainInfo.d.ts +0 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +0 -3
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -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/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +33 -0
- package/esm/generated/services/DefaultService.js +32 -1
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/index.d.ts +15 -2
- package/esm/index.js +7 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -103,9 +103,6 @@ type ListWebhooksResponse = {
|
|
|
103
103
|
type RegisterWebhookRequest = {
|
|
104
104
|
url: string;
|
|
105
105
|
chainId: string;
|
|
106
|
-
/**
|
|
107
|
-
* The type of event for the webhook
|
|
108
|
-
*/
|
|
109
106
|
eventType: EventType;
|
|
110
107
|
metadata: AddressActivityMetadata;
|
|
111
108
|
};
|
|
@@ -114,6 +111,13 @@ type SharedSecretsResponse = {
|
|
|
114
111
|
secret: string;
|
|
115
112
|
};
|
|
116
113
|
|
|
114
|
+
type UpdateWebhookRequest = {
|
|
115
|
+
name?: string;
|
|
116
|
+
description?: string;
|
|
117
|
+
url?: string;
|
|
118
|
+
status?: WebhookStatusType;
|
|
119
|
+
};
|
|
120
|
+
|
|
117
121
|
declare enum WebhookStatus {
|
|
118
122
|
ACTIVE = "active",
|
|
119
123
|
INACTIVE = "inactive"
|
|
@@ -156,6 +160,18 @@ declare class DefaultService {
|
|
|
156
160
|
*/
|
|
157
161
|
status?: WebhookStatus;
|
|
158
162
|
}): CancelablePromise<ListWebhooksResponse>;
|
|
163
|
+
/**
|
|
164
|
+
* Get a webhook by ID
|
|
165
|
+
* Retrieves a webhook by ID.
|
|
166
|
+
* @returns WebhookResponse
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
getWebhook({ id, }: {
|
|
170
|
+
/**
|
|
171
|
+
* The webhook identifier.
|
|
172
|
+
*/
|
|
173
|
+
id: string;
|
|
174
|
+
}): CancelablePromise<WebhookResponse>;
|
|
159
175
|
/**
|
|
160
176
|
* Deactivate a webhook
|
|
161
177
|
* Deactivates a webhook by ID.
|
|
@@ -168,6 +184,19 @@ declare class DefaultService {
|
|
|
168
184
|
*/
|
|
169
185
|
id: string;
|
|
170
186
|
}): CancelablePromise<WebhookResponse>;
|
|
187
|
+
/**
|
|
188
|
+
* Update a webhook
|
|
189
|
+
* Updates an existing webhook.
|
|
190
|
+
* @returns WebhookResponse
|
|
191
|
+
* @throws ApiError
|
|
192
|
+
*/
|
|
193
|
+
updateWebhook({ id, requestBody, }: {
|
|
194
|
+
/**
|
|
195
|
+
* The webhook identifier.
|
|
196
|
+
*/
|
|
197
|
+
id: string;
|
|
198
|
+
requestBody: UpdateWebhookRequest;
|
|
199
|
+
}): CancelablePromise<WebhookResponse>;
|
|
171
200
|
/**
|
|
172
201
|
* Generate a shared secret
|
|
173
202
|
* Generates a new shared secret.
|
|
@@ -175,8 +204,18 @@ declare class DefaultService {
|
|
|
175
204
|
* @throws ApiError
|
|
176
205
|
*/
|
|
177
206
|
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* Get a shared secret
|
|
209
|
+
* Get a previously generated shared secret.
|
|
210
|
+
* @returns SharedSecretsResponse
|
|
211
|
+
* @throws ApiError
|
|
212
|
+
*/
|
|
213
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
178
214
|
}
|
|
179
215
|
|
|
216
|
+
/**
|
|
217
|
+
* ISO 4217 currency code.
|
|
218
|
+
*/
|
|
180
219
|
declare enum CurrencyCode {
|
|
181
220
|
USD = "usd",
|
|
182
221
|
EUR = "eur",
|
|
@@ -195,9 +234,6 @@ declare enum CurrencyCode {
|
|
|
195
234
|
}
|
|
196
235
|
|
|
197
236
|
type Money = {
|
|
198
|
-
/**
|
|
199
|
-
* ISO 4217 currency code.
|
|
200
|
-
*/
|
|
201
237
|
currencyCode: CurrencyCode;
|
|
202
238
|
/**
|
|
203
239
|
* Monetary value in base 10 decimals.
|
|
@@ -247,6 +283,9 @@ type GetNativeBalanceResponse = {
|
|
|
247
283
|
nativeTokenBalance: NativeTokenBalance;
|
|
248
284
|
};
|
|
249
285
|
|
|
286
|
+
/**
|
|
287
|
+
* The metadata indexing status of the nft.
|
|
288
|
+
*/
|
|
250
289
|
declare enum NftTokenMetadataStatus {
|
|
251
290
|
UNKNOWN = "UNKNOWN",
|
|
252
291
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -262,9 +301,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
262
301
|
}
|
|
263
302
|
|
|
264
303
|
type Erc1155TokenMetadata = {
|
|
265
|
-
/**
|
|
266
|
-
* The metadata indexing status of the nft.
|
|
267
|
-
*/
|
|
268
304
|
indexStatus: NftTokenMetadataStatus;
|
|
269
305
|
metadataLastUpdatedTimestamp?: number;
|
|
270
306
|
name?: string;
|
|
@@ -303,9 +339,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
303
339
|
}
|
|
304
340
|
|
|
305
341
|
type Erc721TokenMetadata = {
|
|
306
|
-
/**
|
|
307
|
-
* The metadata indexing status of the nft.
|
|
308
|
-
*/
|
|
309
342
|
indexStatus: NftTokenMetadataStatus;
|
|
310
343
|
metadataLastUpdatedTimestamp?: number;
|
|
311
344
|
name?: string;
|
|
@@ -743,6 +776,9 @@ declare class EvmBlocksService {
|
|
|
743
776
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
744
777
|
}
|
|
745
778
|
|
|
779
|
+
/**
|
|
780
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
781
|
+
*/
|
|
746
782
|
declare enum ChainStatus {
|
|
747
783
|
OK = "OK",
|
|
748
784
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -780,9 +816,6 @@ declare enum VmName {
|
|
|
780
816
|
|
|
781
817
|
type GetChainResponse = {
|
|
782
818
|
chainId: string;
|
|
783
|
-
/**
|
|
784
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
785
|
-
*/
|
|
786
819
|
status: ChainStatus;
|
|
787
820
|
chainName: string;
|
|
788
821
|
description: string;
|
|
@@ -802,9 +835,6 @@ type GetChainResponse = {
|
|
|
802
835
|
|
|
803
836
|
type ChainInfo = {
|
|
804
837
|
chainId: string;
|
|
805
|
-
/**
|
|
806
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
807
|
-
*/
|
|
808
838
|
status: ChainStatus;
|
|
809
839
|
chainName: string;
|
|
810
840
|
description: string;
|
|
@@ -1299,6 +1329,9 @@ type Erc721TransferDetails = {
|
|
|
1299
1329
|
erc721Token: Erc721Token;
|
|
1300
1330
|
};
|
|
1301
1331
|
|
|
1332
|
+
/**
|
|
1333
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1334
|
+
*/
|
|
1302
1335
|
declare enum TransactionMethodType {
|
|
1303
1336
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1304
1337
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1306,9 +1339,6 @@ declare enum TransactionMethodType {
|
|
|
1306
1339
|
}
|
|
1307
1340
|
|
|
1308
1341
|
type Method = {
|
|
1309
|
-
/**
|
|
1310
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1311
|
-
*/
|
|
1312
1342
|
callType: TransactionMethodType;
|
|
1313
1343
|
/**
|
|
1314
1344
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1669,7 +1699,7 @@ type ListTransfersResponse = {
|
|
|
1669
1699
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1670
1700
|
*/
|
|
1671
1701
|
nextPageToken?: string;
|
|
1672
|
-
transfers:
|
|
1702
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1673
1703
|
};
|
|
1674
1704
|
|
|
1675
1705
|
declare enum SortOrder {
|
|
@@ -2040,7 +2070,7 @@ type ListNftTokens = {
|
|
|
2040
2070
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2041
2071
|
*/
|
|
2042
2072
|
nextPageToken?: string;
|
|
2043
|
-
tokens:
|
|
2073
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2044
2074
|
};
|
|
2045
2075
|
|
|
2046
2076
|
declare class NfTsService {
|
|
@@ -2117,8 +2147,12 @@ type EvmNetworkOptions = {
|
|
|
2117
2147
|
includeChains: Array<string>;
|
|
2118
2148
|
};
|
|
2119
2149
|
|
|
2150
|
+
declare enum EVMOperationType {
|
|
2151
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2120
2154
|
type CreateEvmTransactionExportRequest = {
|
|
2121
|
-
type:
|
|
2155
|
+
type: EVMOperationType;
|
|
2122
2156
|
firstDate: string;
|
|
2123
2157
|
lastDate: string;
|
|
2124
2158
|
/**
|
|
@@ -2131,10 +2165,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2131
2165
|
endDate: string;
|
|
2132
2166
|
options: EvmNetworkOptions;
|
|
2133
2167
|
};
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2168
|
+
|
|
2169
|
+
declare enum PrimaryNetworkOperationType {
|
|
2170
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2171
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2172
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2138
2173
|
}
|
|
2139
2174
|
|
|
2140
2175
|
type PrimaryNetworkOptions = {
|
|
@@ -2144,7 +2179,7 @@ type PrimaryNetworkOptions = {
|
|
|
2144
2179
|
};
|
|
2145
2180
|
|
|
2146
2181
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2147
|
-
type:
|
|
2182
|
+
type: PrimaryNetworkOperationType;
|
|
2148
2183
|
firstDate: string;
|
|
2149
2184
|
lastDate: string;
|
|
2150
2185
|
/**
|
|
@@ -2157,11 +2192,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2157
2192
|
endDate: string;
|
|
2158
2193
|
options: PrimaryNetworkOptions;
|
|
2159
2194
|
};
|
|
2160
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2161
|
-
enum type {
|
|
2162
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
2195
|
|
|
2166
2196
|
declare enum OperationStatus {
|
|
2167
2197
|
RUNNING = "RUNNING",
|
|
@@ -2171,8 +2201,10 @@ declare enum OperationStatus {
|
|
|
2171
2201
|
}
|
|
2172
2202
|
|
|
2173
2203
|
declare enum OperationType {
|
|
2174
|
-
|
|
2175
|
-
|
|
2204
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2205
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2206
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2207
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2176
2208
|
}
|
|
2177
2209
|
|
|
2178
2210
|
declare enum OperationStatusCode {
|
|
@@ -2364,13 +2396,44 @@ type BlockchainInfo = {
|
|
|
2364
2396
|
blockchainId: string;
|
|
2365
2397
|
};
|
|
2366
2398
|
|
|
2399
|
+
type SubnetOwnershipInfo = {
|
|
2400
|
+
/**
|
|
2401
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2402
|
+
*/
|
|
2403
|
+
locktime: number;
|
|
2404
|
+
/**
|
|
2405
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2406
|
+
*/
|
|
2407
|
+
threshold: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2410
|
+
*/
|
|
2411
|
+
addresses: Array<string>;
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2367
2414
|
type Subnet = {
|
|
2368
2415
|
createBlockTimestamp: number;
|
|
2369
2416
|
createBlockIndex: string;
|
|
2370
2417
|
subnetId: string;
|
|
2418
|
+
/**
|
|
2419
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2420
|
+
* @deprecated
|
|
2421
|
+
*/
|
|
2371
2422
|
ownerAddresses: Array<string>;
|
|
2423
|
+
/**
|
|
2424
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2425
|
+
* @deprecated
|
|
2426
|
+
*/
|
|
2372
2427
|
threshold: number;
|
|
2428
|
+
/**
|
|
2429
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2430
|
+
* @deprecated
|
|
2431
|
+
*/
|
|
2373
2432
|
locktime: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* Latest subnet owner details for this Subnet.
|
|
2435
|
+
*/
|
|
2436
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2374
2437
|
blockchains: Array<BlockchainInfo>;
|
|
2375
2438
|
};
|
|
2376
2439
|
|
|
@@ -2507,11 +2570,17 @@ declare enum ValidationStatusType {
|
|
|
2507
2570
|
REMOVED = "removed"
|
|
2508
2571
|
}
|
|
2509
2572
|
|
|
2573
|
+
/**
|
|
2574
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2575
|
+
*/
|
|
2510
2576
|
declare enum PrimaryNetworkAssetCap {
|
|
2511
2577
|
FIXED = "fixed",
|
|
2512
2578
|
VARIABLE = "variable"
|
|
2513
2579
|
}
|
|
2514
2580
|
|
|
2581
|
+
/**
|
|
2582
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2583
|
+
*/
|
|
2515
2584
|
declare enum PrimaryNetworkAssetType {
|
|
2516
2585
|
SECP256K1 = "secp256k1",
|
|
2517
2586
|
NFT = "nft"
|
|
@@ -2534,17 +2603,11 @@ type XChainAssetDetails = {
|
|
|
2534
2603
|
* Denomination of this asset to represent fungibility.
|
|
2535
2604
|
*/
|
|
2536
2605
|
denomination: number;
|
|
2537
|
-
/**
|
|
2538
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2539
|
-
*/
|
|
2540
2606
|
type: PrimaryNetworkAssetType;
|
|
2541
2607
|
/**
|
|
2542
2608
|
* Timestamp in seconds this asset was created on.
|
|
2543
2609
|
*/
|
|
2544
2610
|
createdAtTimestamp: number;
|
|
2545
|
-
/**
|
|
2546
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2547
|
-
*/
|
|
2548
2611
|
cap: PrimaryNetworkAssetCap;
|
|
2549
2612
|
};
|
|
2550
2613
|
|
|
@@ -2811,9 +2874,6 @@ type CChainSharedAssetBalance = {
|
|
|
2811
2874
|
* Denomination of this asset to represent fungibility.
|
|
2812
2875
|
*/
|
|
2813
2876
|
denomination: number;
|
|
2814
|
-
/**
|
|
2815
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2816
|
-
*/
|
|
2817
2877
|
type: PrimaryNetworkAssetType;
|
|
2818
2878
|
/**
|
|
2819
2879
|
* Amount of the asset.
|
|
@@ -2849,7 +2909,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2849
2909
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2850
2910
|
};
|
|
2851
2911
|
|
|
2852
|
-
type
|
|
2912
|
+
type AggregatedAssetAmount = {
|
|
2853
2913
|
/**
|
|
2854
2914
|
* Unique ID for an asset.
|
|
2855
2915
|
*/
|
|
@@ -2866,14 +2926,12 @@ type Asset = {
|
|
|
2866
2926
|
* Denomination of this asset to represent fungibility.
|
|
2867
2927
|
*/
|
|
2868
2928
|
denomination: number;
|
|
2869
|
-
/**
|
|
2870
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2871
|
-
*/
|
|
2872
2929
|
type: PrimaryNetworkAssetType;
|
|
2873
2930
|
/**
|
|
2874
2931
|
* Amount of the asset.
|
|
2875
2932
|
*/
|
|
2876
2933
|
amount: string;
|
|
2934
|
+
utxoCount: number;
|
|
2877
2935
|
};
|
|
2878
2936
|
|
|
2879
2937
|
type PChainSharedAsset = {
|
|
@@ -2893,49 +2951,47 @@ type PChainSharedAsset = {
|
|
|
2893
2951
|
* Denomination of this asset to represent fungibility.
|
|
2894
2952
|
*/
|
|
2895
2953
|
denomination: number;
|
|
2896
|
-
/**
|
|
2897
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2898
|
-
*/
|
|
2899
2954
|
type: PrimaryNetworkAssetType;
|
|
2900
2955
|
/**
|
|
2901
2956
|
* Amount of the asset.
|
|
2902
2957
|
*/
|
|
2903
2958
|
amount: string;
|
|
2959
|
+
utxoCount: number;
|
|
2904
2960
|
sharedWithChainId: string;
|
|
2905
2961
|
status: string;
|
|
2906
2962
|
};
|
|
2907
2963
|
|
|
2908
2964
|
type PChainBalance = {
|
|
2909
2965
|
/**
|
|
2910
|
-
* A list of objects containing P-chain Asset
|
|
2966
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2911
2967
|
*/
|
|
2912
|
-
unlockedUnstaked: Array<
|
|
2968
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2913
2969
|
/**
|
|
2914
|
-
* A list of objects containing P-chain Asset
|
|
2970
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2915
2971
|
*/
|
|
2916
|
-
unlockedStaked: Array<
|
|
2972
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2917
2973
|
/**
|
|
2918
|
-
* A list of objects containing P-chain Asset
|
|
2974
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2919
2975
|
*/
|
|
2920
|
-
lockedPlatform: Array<
|
|
2976
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2921
2977
|
/**
|
|
2922
|
-
* A list of objects containing P-chain Asset
|
|
2978
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2923
2979
|
*/
|
|
2924
|
-
lockedStakeable: Array<
|
|
2980
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2925
2981
|
/**
|
|
2926
|
-
* A list of objects containing P-chain Asset
|
|
2982
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2927
2983
|
*/
|
|
2928
|
-
lockedStaked: Array<
|
|
2984
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2929
2985
|
/**
|
|
2930
|
-
* A list of objects containing P-chain Asset
|
|
2986
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2931
2987
|
*/
|
|
2932
|
-
pendingStaked: Array<
|
|
2988
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2933
2989
|
/**
|
|
2934
|
-
* A list of objects containing P-chain Asset
|
|
2990
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2935
2991
|
*/
|
|
2936
2992
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2937
2993
|
/**
|
|
2938
|
-
* A list of objects containing P-chain Asset
|
|
2994
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2939
2995
|
*/
|
|
2940
2996
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2941
2997
|
};
|
|
@@ -2945,34 +3001,6 @@ type ListPChainBalancesResponse = {
|
|
|
2945
3001
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2946
3002
|
};
|
|
2947
3003
|
|
|
2948
|
-
type XChainAssetBalance = {
|
|
2949
|
-
/**
|
|
2950
|
-
* Unique ID for an asset.
|
|
2951
|
-
*/
|
|
2952
|
-
assetId: string;
|
|
2953
|
-
/**
|
|
2954
|
-
* Name of this asset.
|
|
2955
|
-
*/
|
|
2956
|
-
name: string;
|
|
2957
|
-
/**
|
|
2958
|
-
* Symbol for this asset (max 4 characters).
|
|
2959
|
-
*/
|
|
2960
|
-
symbol: string;
|
|
2961
|
-
/**
|
|
2962
|
-
* Denomination of this asset to represent fungibility.
|
|
2963
|
-
*/
|
|
2964
|
-
denomination: number;
|
|
2965
|
-
/**
|
|
2966
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2967
|
-
*/
|
|
2968
|
-
type: PrimaryNetworkAssetType;
|
|
2969
|
-
/**
|
|
2970
|
-
* Amount of the asset.
|
|
2971
|
-
*/
|
|
2972
|
-
amount: string;
|
|
2973
|
-
utxoCount: number;
|
|
2974
|
-
};
|
|
2975
|
-
|
|
2976
3004
|
type XChainSharedAssetBalance = {
|
|
2977
3005
|
/**
|
|
2978
3006
|
* Unique ID for an asset.
|
|
@@ -2990,9 +3018,6 @@ type XChainSharedAssetBalance = {
|
|
|
2990
3018
|
* Denomination of this asset to represent fungibility.
|
|
2991
3019
|
*/
|
|
2992
3020
|
denomination: number;
|
|
2993
|
-
/**
|
|
2994
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2995
|
-
*/
|
|
2996
3021
|
type: PrimaryNetworkAssetType;
|
|
2997
3022
|
/**
|
|
2998
3023
|
* Amount of the asset.
|
|
@@ -3006,11 +3031,11 @@ type XChainBalances = {
|
|
|
3006
3031
|
/**
|
|
3007
3032
|
* A list of objects containing X-chain Asset balance information.
|
|
3008
3033
|
*/
|
|
3009
|
-
locked: Array<
|
|
3034
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3010
3035
|
/**
|
|
3011
3036
|
* A list of objects containing X-chain Asset balance information.
|
|
3012
3037
|
*/
|
|
3013
|
-
unlocked: Array<
|
|
3038
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3014
3039
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3015
3040
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3016
3041
|
};
|
|
@@ -3188,9 +3213,6 @@ type AssetWithPriceInfo = {
|
|
|
3188
3213
|
* Denomination of this asset to represent fungibility.
|
|
3189
3214
|
*/
|
|
3190
3215
|
denomination: number;
|
|
3191
|
-
/**
|
|
3192
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3193
|
-
*/
|
|
3194
3216
|
type: PrimaryNetworkAssetType;
|
|
3195
3217
|
/**
|
|
3196
3218
|
* Amount of the asset.
|
|
@@ -3233,6 +3255,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3233
3255
|
historicalRewards: Array<HistoricalReward>;
|
|
3234
3256
|
};
|
|
3235
3257
|
|
|
3258
|
+
type AssetAmount = {
|
|
3259
|
+
/**
|
|
3260
|
+
* Unique ID for an asset.
|
|
3261
|
+
*/
|
|
3262
|
+
assetId: string;
|
|
3263
|
+
/**
|
|
3264
|
+
* Name of this asset.
|
|
3265
|
+
*/
|
|
3266
|
+
name: string;
|
|
3267
|
+
/**
|
|
3268
|
+
* Symbol for this asset (max 4 characters).
|
|
3269
|
+
*/
|
|
3270
|
+
symbol: string;
|
|
3271
|
+
/**
|
|
3272
|
+
* Denomination of this asset to represent fungibility.
|
|
3273
|
+
*/
|
|
3274
|
+
denomination: number;
|
|
3275
|
+
type: PrimaryNetworkAssetType;
|
|
3276
|
+
/**
|
|
3277
|
+
* Amount of the asset.
|
|
3278
|
+
*/
|
|
3279
|
+
amount: string;
|
|
3280
|
+
};
|
|
3281
|
+
|
|
3236
3282
|
type PendingReward = {
|
|
3237
3283
|
/**
|
|
3238
3284
|
* An array of P-Chain wallet addresses.
|
|
@@ -3246,9 +3292,9 @@ type PendingReward = {
|
|
|
3246
3292
|
rewardType: RewardType;
|
|
3247
3293
|
progress: number;
|
|
3248
3294
|
/**
|
|
3249
|
-
* An object containing P-chain Asset
|
|
3295
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3250
3296
|
*/
|
|
3251
|
-
estimatedReward:
|
|
3297
|
+
estimatedReward: AssetAmount;
|
|
3252
3298
|
};
|
|
3253
3299
|
|
|
3254
3300
|
type ListPendingRewardsResponse = {
|
|
@@ -3349,9 +3395,9 @@ type EVMInput = {
|
|
|
3349
3395
|
*/
|
|
3350
3396
|
fromAddress: string;
|
|
3351
3397
|
/**
|
|
3352
|
-
*
|
|
3398
|
+
* AssetAmount details for the asset being transferred.
|
|
3353
3399
|
*/
|
|
3354
|
-
asset:
|
|
3400
|
+
asset: AssetAmount;
|
|
3355
3401
|
/**
|
|
3356
3402
|
* Credentials that signed this transaction.
|
|
3357
3403
|
*/
|
|
@@ -3363,7 +3409,7 @@ type Utxo = {
|
|
|
3363
3409
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3364
3410
|
*/
|
|
3365
3411
|
addresses: Array<string>;
|
|
3366
|
-
asset:
|
|
3412
|
+
asset: AssetAmount;
|
|
3367
3413
|
/**
|
|
3368
3414
|
* Blockchain ID on which this output is consumed on.
|
|
3369
3415
|
*/
|
|
@@ -3446,11 +3492,11 @@ type CChainExportTransaction = {
|
|
|
3446
3492
|
/**
|
|
3447
3493
|
* Assets unlocked by inputs of this transaction.
|
|
3448
3494
|
*/
|
|
3449
|
-
amountUnlocked: Array<
|
|
3495
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3450
3496
|
/**
|
|
3451
3497
|
* Assets created by outputs of this transaction.
|
|
3452
3498
|
*/
|
|
3453
|
-
amountCreated: Array<
|
|
3499
|
+
amountCreated: Array<AssetAmount>;
|
|
3454
3500
|
/**
|
|
3455
3501
|
* Source chain for an atomic transaction.
|
|
3456
3502
|
*/
|
|
@@ -3481,9 +3527,9 @@ type EVMOutput = {
|
|
|
3481
3527
|
*/
|
|
3482
3528
|
toAddress: string;
|
|
3483
3529
|
/**
|
|
3484
|
-
*
|
|
3530
|
+
* AssetAmount details for the asset being transferred.
|
|
3485
3531
|
*/
|
|
3486
|
-
asset:
|
|
3532
|
+
asset: AssetAmount;
|
|
3487
3533
|
};
|
|
3488
3534
|
|
|
3489
3535
|
type CChainImportTransaction = {
|
|
@@ -3510,11 +3556,11 @@ type CChainImportTransaction = {
|
|
|
3510
3556
|
/**
|
|
3511
3557
|
* Assets unlocked by inputs of this transaction.
|
|
3512
3558
|
*/
|
|
3513
|
-
amountUnlocked: Array<
|
|
3559
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3514
3560
|
/**
|
|
3515
3561
|
* Assets created by outputs of this transaction.
|
|
3516
3562
|
*/
|
|
3517
|
-
amountCreated: Array<
|
|
3563
|
+
amountCreated: Array<AssetAmount>;
|
|
3518
3564
|
/**
|
|
3519
3565
|
* Source chain for an atomic transaction.
|
|
3520
3566
|
*/
|
|
@@ -3562,6 +3608,8 @@ declare enum PChainTransactionType {
|
|
|
3562
3608
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3563
3609
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
3610
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3611
|
+
BASE_TX = "BaseTx",
|
|
3612
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3565
3613
|
UNKNOWN = "UNKNOWN"
|
|
3566
3614
|
}
|
|
3567
3615
|
|
|
@@ -3575,7 +3623,7 @@ type PChainUtxo = {
|
|
|
3575
3623
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3576
3624
|
*/
|
|
3577
3625
|
addresses: Array<string>;
|
|
3578
|
-
asset:
|
|
3626
|
+
asset: AssetAmount;
|
|
3579
3627
|
/**
|
|
3580
3628
|
* Blockchain ID on which this output is consumed on.
|
|
3581
3629
|
*/
|
|
@@ -3639,17 +3687,17 @@ type PChainTransaction = {
|
|
|
3639
3687
|
*/
|
|
3640
3688
|
destinationChain?: string;
|
|
3641
3689
|
/**
|
|
3642
|
-
* A list of objects containing P-chain Asset
|
|
3690
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3643
3691
|
*/
|
|
3644
|
-
value: Array<
|
|
3692
|
+
value: Array<AssetAmount>;
|
|
3645
3693
|
/**
|
|
3646
|
-
* A list of objects containing P-chain Asset
|
|
3694
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3647
3695
|
*/
|
|
3648
|
-
amountBurned: Array<
|
|
3696
|
+
amountBurned: Array<AssetAmount>;
|
|
3649
3697
|
/**
|
|
3650
|
-
* A list of objects containing P-chain Asset
|
|
3698
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3651
3699
|
*/
|
|
3652
|
-
amountStaked: Array<
|
|
3700
|
+
amountStaked: Array<AssetAmount>;
|
|
3653
3701
|
/**
|
|
3654
3702
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3655
3703
|
*/
|
|
@@ -3681,6 +3729,10 @@ type PChainTransaction = {
|
|
|
3681
3729
|
* Present for RewardValidatorTx
|
|
3682
3730
|
*/
|
|
3683
3731
|
stakingTxHash?: string;
|
|
3732
|
+
/**
|
|
3733
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3734
|
+
*/
|
|
3735
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3684
3736
|
};
|
|
3685
3737
|
|
|
3686
3738
|
type ListPChainTransactionsResponse = {
|
|
@@ -3692,6 +3744,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3692
3744
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3693
3745
|
};
|
|
3694
3746
|
|
|
3747
|
+
/**
|
|
3748
|
+
* Type of transaction.
|
|
3749
|
+
*/
|
|
3695
3750
|
declare enum XChainTransactionType {
|
|
3696
3751
|
BASE_TX = "BaseTx",
|
|
3697
3752
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3714,9 +3769,6 @@ type XChainLinearTransaction = {
|
|
|
3714
3769
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3715
3770
|
*/
|
|
3716
3771
|
timestamp: number;
|
|
3717
|
-
/**
|
|
3718
|
-
* Type of transaction.
|
|
3719
|
-
*/
|
|
3720
3772
|
txType: XChainTransactionType;
|
|
3721
3773
|
/**
|
|
3722
3774
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3727,11 +3779,11 @@ type XChainLinearTransaction = {
|
|
|
3727
3779
|
/**
|
|
3728
3780
|
* Assets unlocked by inputs of this transaction.
|
|
3729
3781
|
*/
|
|
3730
|
-
amountUnlocked: Array<
|
|
3782
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3731
3783
|
/**
|
|
3732
3784
|
* Assets created by outputs of this transaction.
|
|
3733
3785
|
*/
|
|
3734
|
-
amountCreated: Array<
|
|
3786
|
+
amountCreated: Array<AssetAmount>;
|
|
3735
3787
|
/**
|
|
3736
3788
|
* Source chain for an atomic transaction.
|
|
3737
3789
|
*/
|
|
@@ -3741,7 +3793,7 @@ type XChainLinearTransaction = {
|
|
|
3741
3793
|
*/
|
|
3742
3794
|
destinationChain?: string;
|
|
3743
3795
|
/**
|
|
3744
|
-
*
|
|
3796
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3745
3797
|
*/
|
|
3746
3798
|
assetCreated?: XChainAssetDetails;
|
|
3747
3799
|
/**
|
|
@@ -3791,9 +3843,6 @@ type XChainNonLinearTransaction = {
|
|
|
3791
3843
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3792
3844
|
*/
|
|
3793
3845
|
timestamp: number;
|
|
3794
|
-
/**
|
|
3795
|
-
* Type of transaction.
|
|
3796
|
-
*/
|
|
3797
3846
|
txType: XChainTransactionType;
|
|
3798
3847
|
/**
|
|
3799
3848
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3804,11 +3853,11 @@ type XChainNonLinearTransaction = {
|
|
|
3804
3853
|
/**
|
|
3805
3854
|
* Assets unlocked by inputs of this transaction.
|
|
3806
3855
|
*/
|
|
3807
|
-
amountUnlocked: Array<
|
|
3856
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3808
3857
|
/**
|
|
3809
3858
|
* Assets created by outputs of this transaction.
|
|
3810
3859
|
*/
|
|
3811
|
-
amountCreated: Array<
|
|
3860
|
+
amountCreated: Array<AssetAmount>;
|
|
3812
3861
|
/**
|
|
3813
3862
|
* Source chain for an atomic transaction.
|
|
3814
3863
|
*/
|
|
@@ -3818,7 +3867,7 @@ type XChainNonLinearTransaction = {
|
|
|
3818
3867
|
*/
|
|
3819
3868
|
destinationChain?: string;
|
|
3820
3869
|
/**
|
|
3821
|
-
*
|
|
3870
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3822
3871
|
*/
|
|
3823
3872
|
assetCreated?: XChainAssetDetails;
|
|
3824
3873
|
/**
|
|
@@ -3864,8 +3913,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3864
3913
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3865
3914
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3866
3915
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3867
|
-
UNKNOWN = "UNKNOWN",
|
|
3868
3916
|
BASE_TX = "BaseTx",
|
|
3917
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3918
|
+
UNKNOWN = "UNKNOWN",
|
|
3869
3919
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3870
3920
|
OPERATION_TX = "OperationTx"
|
|
3871
3921
|
}
|
|
@@ -4191,6 +4241,182 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4191
4241
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4192
4242
|
}
|
|
4193
4243
|
|
|
4244
|
+
type TeleporterDestinationTransaction = {
|
|
4245
|
+
txHash: string;
|
|
4246
|
+
timestamp: number;
|
|
4247
|
+
gasSpent: string;
|
|
4248
|
+
rewardRedeemer: string;
|
|
4249
|
+
delivererAddress: string;
|
|
4250
|
+
};
|
|
4251
|
+
|
|
4252
|
+
type TeleporterReceipt = {
|
|
4253
|
+
receivedMessageNonce: string;
|
|
4254
|
+
relayerRewardAddress: string;
|
|
4255
|
+
};
|
|
4256
|
+
|
|
4257
|
+
type TeleporterRewardDetails = {
|
|
4258
|
+
/**
|
|
4259
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4260
|
+
*/
|
|
4261
|
+
address: string;
|
|
4262
|
+
/**
|
|
4263
|
+
* The contract name.
|
|
4264
|
+
*/
|
|
4265
|
+
name: string;
|
|
4266
|
+
/**
|
|
4267
|
+
* The contract symbol.
|
|
4268
|
+
*/
|
|
4269
|
+
symbol: string;
|
|
4270
|
+
/**
|
|
4271
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4272
|
+
*/
|
|
4273
|
+
decimals: number;
|
|
4274
|
+
/**
|
|
4275
|
+
* The logo uri for the address.
|
|
4276
|
+
*/
|
|
4277
|
+
logoUri?: string;
|
|
4278
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4279
|
+
/**
|
|
4280
|
+
* The token price, if available.
|
|
4281
|
+
*/
|
|
4282
|
+
price?: Money;
|
|
4283
|
+
value: string;
|
|
4284
|
+
};
|
|
4285
|
+
declare namespace TeleporterRewardDetails {
|
|
4286
|
+
enum ercType {
|
|
4287
|
+
ERC_20 = "ERC-20"
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4292
|
+
messageId: string;
|
|
4293
|
+
teleporterContractAddress: string;
|
|
4294
|
+
sourceBlockchainId: string;
|
|
4295
|
+
destinationBlockchainId: string;
|
|
4296
|
+
messageNonce: string;
|
|
4297
|
+
from: string;
|
|
4298
|
+
to: string;
|
|
4299
|
+
data?: string;
|
|
4300
|
+
messageExecuted: boolean;
|
|
4301
|
+
receipts: Array<TeleporterReceipt>;
|
|
4302
|
+
receiptDelivered: boolean;
|
|
4303
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4304
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4305
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4306
|
+
};
|
|
4307
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4308
|
+
enum status {
|
|
4309
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4313
|
+
type TeleporterSourceTransaction = {
|
|
4314
|
+
txHash: string;
|
|
4315
|
+
timestamp: number;
|
|
4316
|
+
gasSpent: string;
|
|
4317
|
+
};
|
|
4318
|
+
|
|
4319
|
+
type DeliveredTeleporterMessage = {
|
|
4320
|
+
messageId: string;
|
|
4321
|
+
teleporterContractAddress: string;
|
|
4322
|
+
sourceBlockchainId: string;
|
|
4323
|
+
destinationBlockchainId: string;
|
|
4324
|
+
messageNonce: string;
|
|
4325
|
+
from: string;
|
|
4326
|
+
to: string;
|
|
4327
|
+
data?: string;
|
|
4328
|
+
messageExecuted: boolean;
|
|
4329
|
+
receipts: Array<TeleporterReceipt>;
|
|
4330
|
+
receiptDelivered: boolean;
|
|
4331
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4332
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4333
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4334
|
+
status: DeliveredTeleporterMessage.status;
|
|
4335
|
+
};
|
|
4336
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4337
|
+
enum status {
|
|
4338
|
+
DELIVERED = "delivered"
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
|
|
4342
|
+
type NextPageToken = {
|
|
4343
|
+
/**
|
|
4344
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4345
|
+
*/
|
|
4346
|
+
nextPageToken?: string;
|
|
4347
|
+
};
|
|
4348
|
+
|
|
4349
|
+
type PendingTeleporterMessage = {
|
|
4350
|
+
messageId: string;
|
|
4351
|
+
teleporterContractAddress: string;
|
|
4352
|
+
sourceBlockchainId: string;
|
|
4353
|
+
destinationBlockchainId: string;
|
|
4354
|
+
messageNonce: string;
|
|
4355
|
+
from: string;
|
|
4356
|
+
to: string;
|
|
4357
|
+
data?: string;
|
|
4358
|
+
messageExecuted: boolean;
|
|
4359
|
+
receipts: Array<TeleporterReceipt>;
|
|
4360
|
+
receiptDelivered: boolean;
|
|
4361
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4362
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4363
|
+
status: PendingTeleporterMessage.status;
|
|
4364
|
+
};
|
|
4365
|
+
declare namespace PendingTeleporterMessage {
|
|
4366
|
+
enum status {
|
|
4367
|
+
PENDING = "pending"
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
declare class TeleporterService {
|
|
4372
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4373
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4374
|
+
/**
|
|
4375
|
+
* Get a teleporter message
|
|
4376
|
+
* Gets a teleporter message by message ID.
|
|
4377
|
+
* @returns any
|
|
4378
|
+
* @throws ApiError
|
|
4379
|
+
*/
|
|
4380
|
+
getTeleporterMessage({ messageId, }: {
|
|
4381
|
+
/**
|
|
4382
|
+
* The message ID of the teleporter message.
|
|
4383
|
+
*/
|
|
4384
|
+
messageId: string;
|
|
4385
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4386
|
+
/**
|
|
4387
|
+
* List teleporter messages
|
|
4388
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4389
|
+
* @returns any
|
|
4390
|
+
* @throws ApiError
|
|
4391
|
+
*/
|
|
4392
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4393
|
+
/**
|
|
4394
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4395
|
+
*/
|
|
4396
|
+
pageToken?: string;
|
|
4397
|
+
/**
|
|
4398
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4399
|
+
*/
|
|
4400
|
+
pageSize?: number;
|
|
4401
|
+
/**
|
|
4402
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4403
|
+
*/
|
|
4404
|
+
sourceBlockchainId?: string;
|
|
4405
|
+
/**
|
|
4406
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4407
|
+
*/
|
|
4408
|
+
destinationBlockchainId?: string;
|
|
4409
|
+
/**
|
|
4410
|
+
* The address of the recipient of the teleporter message.
|
|
4411
|
+
*/
|
|
4412
|
+
to?: string;
|
|
4413
|
+
/**
|
|
4414
|
+
* The address of the sender of the teleporter message.
|
|
4415
|
+
*/
|
|
4416
|
+
from?: string;
|
|
4417
|
+
}): CancelablePromise<NextPageToken>;
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4194
4420
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4195
4421
|
declare class Glacier {
|
|
4196
4422
|
readonly default: DefaultService;
|
|
@@ -4209,6 +4435,7 @@ declare class Glacier {
|
|
|
4209
4435
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4210
4436
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4211
4437
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4438
|
+
readonly teleporter: TeleporterService;
|
|
4212
4439
|
readonly request: BaseHttpRequest;
|
|
4213
4440
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4214
4441
|
}
|
|
@@ -4230,4 +4457,4 @@ declare class ApiError extends Error {
|
|
|
4230
4457
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4231
4458
|
}
|
|
4232
4459
|
|
|
4233
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4460
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|