@avalabs/glacier-sdk 2.8.0-alpha.170 → 2.8.0-alpha.172
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 +354 -134
- package/dist/index.js +115 -16
- 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 +26 -0
- package/esm/generated/services/DefaultService.js +25 -0
- 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.
|
|
@@ -184,6 +213,9 @@ declare class DefaultService {
|
|
|
184
213
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
185
214
|
}
|
|
186
215
|
|
|
216
|
+
/**
|
|
217
|
+
* ISO 4217 currency code.
|
|
218
|
+
*/
|
|
187
219
|
declare enum CurrencyCode {
|
|
188
220
|
USD = "usd",
|
|
189
221
|
EUR = "eur",
|
|
@@ -202,9 +234,6 @@ declare enum CurrencyCode {
|
|
|
202
234
|
}
|
|
203
235
|
|
|
204
236
|
type Money = {
|
|
205
|
-
/**
|
|
206
|
-
* ISO 4217 currency code.
|
|
207
|
-
*/
|
|
208
237
|
currencyCode: CurrencyCode;
|
|
209
238
|
/**
|
|
210
239
|
* Monetary value in base 10 decimals.
|
|
@@ -254,6 +283,9 @@ type GetNativeBalanceResponse = {
|
|
|
254
283
|
nativeTokenBalance: NativeTokenBalance;
|
|
255
284
|
};
|
|
256
285
|
|
|
286
|
+
/**
|
|
287
|
+
* The metadata indexing status of the nft.
|
|
288
|
+
*/
|
|
257
289
|
declare enum NftTokenMetadataStatus {
|
|
258
290
|
UNKNOWN = "UNKNOWN",
|
|
259
291
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -269,9 +301,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
269
301
|
}
|
|
270
302
|
|
|
271
303
|
type Erc1155TokenMetadata = {
|
|
272
|
-
/**
|
|
273
|
-
* The metadata indexing status of the nft.
|
|
274
|
-
*/
|
|
275
304
|
indexStatus: NftTokenMetadataStatus;
|
|
276
305
|
metadataLastUpdatedTimestamp?: number;
|
|
277
306
|
name?: string;
|
|
@@ -310,9 +339,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
310
339
|
}
|
|
311
340
|
|
|
312
341
|
type Erc721TokenMetadata = {
|
|
313
|
-
/**
|
|
314
|
-
* The metadata indexing status of the nft.
|
|
315
|
-
*/
|
|
316
342
|
indexStatus: NftTokenMetadataStatus;
|
|
317
343
|
metadataLastUpdatedTimestamp?: number;
|
|
318
344
|
name?: string;
|
|
@@ -750,6 +776,9 @@ declare class EvmBlocksService {
|
|
|
750
776
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
751
777
|
}
|
|
752
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
|
+
*/
|
|
753
782
|
declare enum ChainStatus {
|
|
754
783
|
OK = "OK",
|
|
755
784
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -787,9 +816,6 @@ declare enum VmName {
|
|
|
787
816
|
|
|
788
817
|
type GetChainResponse = {
|
|
789
818
|
chainId: string;
|
|
790
|
-
/**
|
|
791
|
-
* 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.
|
|
792
|
-
*/
|
|
793
819
|
status: ChainStatus;
|
|
794
820
|
chainName: string;
|
|
795
821
|
description: string;
|
|
@@ -809,9 +835,6 @@ type GetChainResponse = {
|
|
|
809
835
|
|
|
810
836
|
type ChainInfo = {
|
|
811
837
|
chainId: string;
|
|
812
|
-
/**
|
|
813
|
-
* 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.
|
|
814
|
-
*/
|
|
815
838
|
status: ChainStatus;
|
|
816
839
|
chainName: string;
|
|
817
840
|
description: string;
|
|
@@ -1306,6 +1329,9 @@ type Erc721TransferDetails = {
|
|
|
1306
1329
|
erc721Token: Erc721Token;
|
|
1307
1330
|
};
|
|
1308
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
|
+
*/
|
|
1309
1335
|
declare enum TransactionMethodType {
|
|
1310
1336
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1311
1337
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1313,9 +1339,6 @@ declare enum TransactionMethodType {
|
|
|
1313
1339
|
}
|
|
1314
1340
|
|
|
1315
1341
|
type Method = {
|
|
1316
|
-
/**
|
|
1317
|
-
* 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.
|
|
1318
|
-
*/
|
|
1319
1342
|
callType: TransactionMethodType;
|
|
1320
1343
|
/**
|
|
1321
1344
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1676,7 +1699,7 @@ type ListTransfersResponse = {
|
|
|
1676
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.
|
|
1677
1700
|
*/
|
|
1678
1701
|
nextPageToken?: string;
|
|
1679
|
-
transfers:
|
|
1702
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1680
1703
|
};
|
|
1681
1704
|
|
|
1682
1705
|
declare enum SortOrder {
|
|
@@ -2047,7 +2070,7 @@ type ListNftTokens = {
|
|
|
2047
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.
|
|
2048
2071
|
*/
|
|
2049
2072
|
nextPageToken?: string;
|
|
2050
|
-
tokens:
|
|
2073
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2051
2074
|
};
|
|
2052
2075
|
|
|
2053
2076
|
declare class NfTsService {
|
|
@@ -2124,8 +2147,12 @@ type EvmNetworkOptions = {
|
|
|
2124
2147
|
includeChains: Array<string>;
|
|
2125
2148
|
};
|
|
2126
2149
|
|
|
2150
|
+
declare enum EVMOperationType {
|
|
2151
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2127
2154
|
type CreateEvmTransactionExportRequest = {
|
|
2128
|
-
type:
|
|
2155
|
+
type: EVMOperationType;
|
|
2129
2156
|
firstDate: string;
|
|
2130
2157
|
lastDate: string;
|
|
2131
2158
|
/**
|
|
@@ -2138,10 +2165,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2138
2165
|
endDate: string;
|
|
2139
2166
|
options: EvmNetworkOptions;
|
|
2140
2167
|
};
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
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"
|
|
2145
2173
|
}
|
|
2146
2174
|
|
|
2147
2175
|
type PrimaryNetworkOptions = {
|
|
@@ -2151,7 +2179,7 @@ type PrimaryNetworkOptions = {
|
|
|
2151
2179
|
};
|
|
2152
2180
|
|
|
2153
2181
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2154
|
-
type:
|
|
2182
|
+
type: PrimaryNetworkOperationType;
|
|
2155
2183
|
firstDate: string;
|
|
2156
2184
|
lastDate: string;
|
|
2157
2185
|
/**
|
|
@@ -2164,11 +2192,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2164
2192
|
endDate: string;
|
|
2165
2193
|
options: PrimaryNetworkOptions;
|
|
2166
2194
|
};
|
|
2167
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2168
|
-
enum type {
|
|
2169
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
2195
|
|
|
2173
2196
|
declare enum OperationStatus {
|
|
2174
2197
|
RUNNING = "RUNNING",
|
|
@@ -2178,8 +2201,10 @@ declare enum OperationStatus {
|
|
|
2178
2201
|
}
|
|
2179
2202
|
|
|
2180
2203
|
declare enum OperationType {
|
|
2181
|
-
|
|
2182
|
-
|
|
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"
|
|
2183
2208
|
}
|
|
2184
2209
|
|
|
2185
2210
|
declare enum OperationStatusCode {
|
|
@@ -2371,13 +2396,44 @@ type BlockchainInfo = {
|
|
|
2371
2396
|
blockchainId: string;
|
|
2372
2397
|
};
|
|
2373
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
|
+
|
|
2374
2414
|
type Subnet = {
|
|
2375
2415
|
createBlockTimestamp: number;
|
|
2376
2416
|
createBlockIndex: string;
|
|
2377
2417
|
subnetId: string;
|
|
2418
|
+
/**
|
|
2419
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2420
|
+
* @deprecated
|
|
2421
|
+
*/
|
|
2378
2422
|
ownerAddresses: Array<string>;
|
|
2423
|
+
/**
|
|
2424
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2425
|
+
* @deprecated
|
|
2426
|
+
*/
|
|
2379
2427
|
threshold: number;
|
|
2428
|
+
/**
|
|
2429
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2430
|
+
* @deprecated
|
|
2431
|
+
*/
|
|
2380
2432
|
locktime: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* Latest subnet owner details for this Subnet.
|
|
2435
|
+
*/
|
|
2436
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2381
2437
|
blockchains: Array<BlockchainInfo>;
|
|
2382
2438
|
};
|
|
2383
2439
|
|
|
@@ -2514,11 +2570,17 @@ declare enum ValidationStatusType {
|
|
|
2514
2570
|
REMOVED = "removed"
|
|
2515
2571
|
}
|
|
2516
2572
|
|
|
2573
|
+
/**
|
|
2574
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2575
|
+
*/
|
|
2517
2576
|
declare enum PrimaryNetworkAssetCap {
|
|
2518
2577
|
FIXED = "fixed",
|
|
2519
2578
|
VARIABLE = "variable"
|
|
2520
2579
|
}
|
|
2521
2580
|
|
|
2581
|
+
/**
|
|
2582
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2583
|
+
*/
|
|
2522
2584
|
declare enum PrimaryNetworkAssetType {
|
|
2523
2585
|
SECP256K1 = "secp256k1",
|
|
2524
2586
|
NFT = "nft"
|
|
@@ -2541,17 +2603,11 @@ type XChainAssetDetails = {
|
|
|
2541
2603
|
* Denomination of this asset to represent fungibility.
|
|
2542
2604
|
*/
|
|
2543
2605
|
denomination: number;
|
|
2544
|
-
/**
|
|
2545
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2546
|
-
*/
|
|
2547
2606
|
type: PrimaryNetworkAssetType;
|
|
2548
2607
|
/**
|
|
2549
2608
|
* Timestamp in seconds this asset was created on.
|
|
2550
2609
|
*/
|
|
2551
2610
|
createdAtTimestamp: number;
|
|
2552
|
-
/**
|
|
2553
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2554
|
-
*/
|
|
2555
2611
|
cap: PrimaryNetworkAssetCap;
|
|
2556
2612
|
};
|
|
2557
2613
|
|
|
@@ -2818,9 +2874,6 @@ type CChainSharedAssetBalance = {
|
|
|
2818
2874
|
* Denomination of this asset to represent fungibility.
|
|
2819
2875
|
*/
|
|
2820
2876
|
denomination: number;
|
|
2821
|
-
/**
|
|
2822
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2823
|
-
*/
|
|
2824
2877
|
type: PrimaryNetworkAssetType;
|
|
2825
2878
|
/**
|
|
2826
2879
|
* Amount of the asset.
|
|
@@ -2856,7 +2909,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2856
2909
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2857
2910
|
};
|
|
2858
2911
|
|
|
2859
|
-
type
|
|
2912
|
+
type AggregatedAssetAmount = {
|
|
2860
2913
|
/**
|
|
2861
2914
|
* Unique ID for an asset.
|
|
2862
2915
|
*/
|
|
@@ -2873,14 +2926,12 @@ type Asset = {
|
|
|
2873
2926
|
* Denomination of this asset to represent fungibility.
|
|
2874
2927
|
*/
|
|
2875
2928
|
denomination: number;
|
|
2876
|
-
/**
|
|
2877
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2878
|
-
*/
|
|
2879
2929
|
type: PrimaryNetworkAssetType;
|
|
2880
2930
|
/**
|
|
2881
2931
|
* Amount of the asset.
|
|
2882
2932
|
*/
|
|
2883
2933
|
amount: string;
|
|
2934
|
+
utxoCount: number;
|
|
2884
2935
|
};
|
|
2885
2936
|
|
|
2886
2937
|
type PChainSharedAsset = {
|
|
@@ -2900,49 +2951,47 @@ type PChainSharedAsset = {
|
|
|
2900
2951
|
* Denomination of this asset to represent fungibility.
|
|
2901
2952
|
*/
|
|
2902
2953
|
denomination: number;
|
|
2903
|
-
/**
|
|
2904
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2905
|
-
*/
|
|
2906
2954
|
type: PrimaryNetworkAssetType;
|
|
2907
2955
|
/**
|
|
2908
2956
|
* Amount of the asset.
|
|
2909
2957
|
*/
|
|
2910
2958
|
amount: string;
|
|
2959
|
+
utxoCount: number;
|
|
2911
2960
|
sharedWithChainId: string;
|
|
2912
2961
|
status: string;
|
|
2913
2962
|
};
|
|
2914
2963
|
|
|
2915
2964
|
type PChainBalance = {
|
|
2916
2965
|
/**
|
|
2917
|
-
* 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.
|
|
2918
2967
|
*/
|
|
2919
|
-
unlockedUnstaked: Array<
|
|
2968
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2920
2969
|
/**
|
|
2921
|
-
* 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.
|
|
2922
2971
|
*/
|
|
2923
|
-
unlockedStaked: Array<
|
|
2972
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2924
2973
|
/**
|
|
2925
|
-
* 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.
|
|
2926
2975
|
*/
|
|
2927
|
-
lockedPlatform: Array<
|
|
2976
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2928
2977
|
/**
|
|
2929
|
-
* 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.
|
|
2930
2979
|
*/
|
|
2931
|
-
lockedStakeable: Array<
|
|
2980
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2932
2981
|
/**
|
|
2933
|
-
* 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.
|
|
2934
2983
|
*/
|
|
2935
|
-
lockedStaked: Array<
|
|
2984
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2936
2985
|
/**
|
|
2937
|
-
* 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.
|
|
2938
2987
|
*/
|
|
2939
|
-
pendingStaked: Array<
|
|
2988
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2940
2989
|
/**
|
|
2941
|
-
* 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.
|
|
2942
2991
|
*/
|
|
2943
2992
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2944
2993
|
/**
|
|
2945
|
-
* 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.
|
|
2946
2995
|
*/
|
|
2947
2996
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2948
2997
|
};
|
|
@@ -2952,34 +3001,6 @@ type ListPChainBalancesResponse = {
|
|
|
2952
3001
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2953
3002
|
};
|
|
2954
3003
|
|
|
2955
|
-
type XChainAssetBalance = {
|
|
2956
|
-
/**
|
|
2957
|
-
* Unique ID for an asset.
|
|
2958
|
-
*/
|
|
2959
|
-
assetId: string;
|
|
2960
|
-
/**
|
|
2961
|
-
* Name of this asset.
|
|
2962
|
-
*/
|
|
2963
|
-
name: string;
|
|
2964
|
-
/**
|
|
2965
|
-
* Symbol for this asset (max 4 characters).
|
|
2966
|
-
*/
|
|
2967
|
-
symbol: string;
|
|
2968
|
-
/**
|
|
2969
|
-
* Denomination of this asset to represent fungibility.
|
|
2970
|
-
*/
|
|
2971
|
-
denomination: number;
|
|
2972
|
-
/**
|
|
2973
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2974
|
-
*/
|
|
2975
|
-
type: PrimaryNetworkAssetType;
|
|
2976
|
-
/**
|
|
2977
|
-
* Amount of the asset.
|
|
2978
|
-
*/
|
|
2979
|
-
amount: string;
|
|
2980
|
-
utxoCount: number;
|
|
2981
|
-
};
|
|
2982
|
-
|
|
2983
3004
|
type XChainSharedAssetBalance = {
|
|
2984
3005
|
/**
|
|
2985
3006
|
* Unique ID for an asset.
|
|
@@ -2997,9 +3018,6 @@ type XChainSharedAssetBalance = {
|
|
|
2997
3018
|
* Denomination of this asset to represent fungibility.
|
|
2998
3019
|
*/
|
|
2999
3020
|
denomination: number;
|
|
3000
|
-
/**
|
|
3001
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3002
|
-
*/
|
|
3003
3021
|
type: PrimaryNetworkAssetType;
|
|
3004
3022
|
/**
|
|
3005
3023
|
* Amount of the asset.
|
|
@@ -3013,11 +3031,11 @@ type XChainBalances = {
|
|
|
3013
3031
|
/**
|
|
3014
3032
|
* A list of objects containing X-chain Asset balance information.
|
|
3015
3033
|
*/
|
|
3016
|
-
locked: Array<
|
|
3034
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3017
3035
|
/**
|
|
3018
3036
|
* A list of objects containing X-chain Asset balance information.
|
|
3019
3037
|
*/
|
|
3020
|
-
unlocked: Array<
|
|
3038
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3021
3039
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3022
3040
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3023
3041
|
};
|
|
@@ -3195,9 +3213,6 @@ type AssetWithPriceInfo = {
|
|
|
3195
3213
|
* Denomination of this asset to represent fungibility.
|
|
3196
3214
|
*/
|
|
3197
3215
|
denomination: number;
|
|
3198
|
-
/**
|
|
3199
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3200
|
-
*/
|
|
3201
3216
|
type: PrimaryNetworkAssetType;
|
|
3202
3217
|
/**
|
|
3203
3218
|
* Amount of the asset.
|
|
@@ -3240,6 +3255,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3240
3255
|
historicalRewards: Array<HistoricalReward>;
|
|
3241
3256
|
};
|
|
3242
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
|
+
|
|
3243
3282
|
type PendingReward = {
|
|
3244
3283
|
/**
|
|
3245
3284
|
* An array of P-Chain wallet addresses.
|
|
@@ -3253,9 +3292,9 @@ type PendingReward = {
|
|
|
3253
3292
|
rewardType: RewardType;
|
|
3254
3293
|
progress: number;
|
|
3255
3294
|
/**
|
|
3256
|
-
* An object containing P-chain Asset
|
|
3295
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3257
3296
|
*/
|
|
3258
|
-
estimatedReward:
|
|
3297
|
+
estimatedReward: AssetAmount;
|
|
3259
3298
|
};
|
|
3260
3299
|
|
|
3261
3300
|
type ListPendingRewardsResponse = {
|
|
@@ -3356,9 +3395,9 @@ type EVMInput = {
|
|
|
3356
3395
|
*/
|
|
3357
3396
|
fromAddress: string;
|
|
3358
3397
|
/**
|
|
3359
|
-
*
|
|
3398
|
+
* AssetAmount details for the asset being transferred.
|
|
3360
3399
|
*/
|
|
3361
|
-
asset:
|
|
3400
|
+
asset: AssetAmount;
|
|
3362
3401
|
/**
|
|
3363
3402
|
* Credentials that signed this transaction.
|
|
3364
3403
|
*/
|
|
@@ -3370,7 +3409,7 @@ type Utxo = {
|
|
|
3370
3409
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3371
3410
|
*/
|
|
3372
3411
|
addresses: Array<string>;
|
|
3373
|
-
asset:
|
|
3412
|
+
asset: AssetAmount;
|
|
3374
3413
|
/**
|
|
3375
3414
|
* Blockchain ID on which this output is consumed on.
|
|
3376
3415
|
*/
|
|
@@ -3453,11 +3492,11 @@ type CChainExportTransaction = {
|
|
|
3453
3492
|
/**
|
|
3454
3493
|
* Assets unlocked by inputs of this transaction.
|
|
3455
3494
|
*/
|
|
3456
|
-
amountUnlocked: Array<
|
|
3495
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3457
3496
|
/**
|
|
3458
3497
|
* Assets created by outputs of this transaction.
|
|
3459
3498
|
*/
|
|
3460
|
-
amountCreated: Array<
|
|
3499
|
+
amountCreated: Array<AssetAmount>;
|
|
3461
3500
|
/**
|
|
3462
3501
|
* Source chain for an atomic transaction.
|
|
3463
3502
|
*/
|
|
@@ -3488,9 +3527,9 @@ type EVMOutput = {
|
|
|
3488
3527
|
*/
|
|
3489
3528
|
toAddress: string;
|
|
3490
3529
|
/**
|
|
3491
|
-
*
|
|
3530
|
+
* AssetAmount details for the asset being transferred.
|
|
3492
3531
|
*/
|
|
3493
|
-
asset:
|
|
3532
|
+
asset: AssetAmount;
|
|
3494
3533
|
};
|
|
3495
3534
|
|
|
3496
3535
|
type CChainImportTransaction = {
|
|
@@ -3517,11 +3556,11 @@ type CChainImportTransaction = {
|
|
|
3517
3556
|
/**
|
|
3518
3557
|
* Assets unlocked by inputs of this transaction.
|
|
3519
3558
|
*/
|
|
3520
|
-
amountUnlocked: Array<
|
|
3559
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3521
3560
|
/**
|
|
3522
3561
|
* Assets created by outputs of this transaction.
|
|
3523
3562
|
*/
|
|
3524
|
-
amountCreated: Array<
|
|
3563
|
+
amountCreated: Array<AssetAmount>;
|
|
3525
3564
|
/**
|
|
3526
3565
|
* Source chain for an atomic transaction.
|
|
3527
3566
|
*/
|
|
@@ -3569,6 +3608,8 @@ declare enum PChainTransactionType {
|
|
|
3569
3608
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3570
3609
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3571
3610
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3611
|
+
BASE_TX = "BaseTx",
|
|
3612
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3572
3613
|
UNKNOWN = "UNKNOWN"
|
|
3573
3614
|
}
|
|
3574
3615
|
|
|
@@ -3582,7 +3623,7 @@ type PChainUtxo = {
|
|
|
3582
3623
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3583
3624
|
*/
|
|
3584
3625
|
addresses: Array<string>;
|
|
3585
|
-
asset:
|
|
3626
|
+
asset: AssetAmount;
|
|
3586
3627
|
/**
|
|
3587
3628
|
* Blockchain ID on which this output is consumed on.
|
|
3588
3629
|
*/
|
|
@@ -3646,17 +3687,17 @@ type PChainTransaction = {
|
|
|
3646
3687
|
*/
|
|
3647
3688
|
destinationChain?: string;
|
|
3648
3689
|
/**
|
|
3649
|
-
* 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.
|
|
3650
3691
|
*/
|
|
3651
|
-
value: Array<
|
|
3692
|
+
value: Array<AssetAmount>;
|
|
3652
3693
|
/**
|
|
3653
|
-
* 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.
|
|
3654
3695
|
*/
|
|
3655
|
-
amountBurned: Array<
|
|
3696
|
+
amountBurned: Array<AssetAmount>;
|
|
3656
3697
|
/**
|
|
3657
|
-
* 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
|
|
3658
3699
|
*/
|
|
3659
|
-
amountStaked: Array<
|
|
3700
|
+
amountStaked: Array<AssetAmount>;
|
|
3660
3701
|
/**
|
|
3661
3702
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3662
3703
|
*/
|
|
@@ -3688,6 +3729,10 @@ type PChainTransaction = {
|
|
|
3688
3729
|
* Present for RewardValidatorTx
|
|
3689
3730
|
*/
|
|
3690
3731
|
stakingTxHash?: string;
|
|
3732
|
+
/**
|
|
3733
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3734
|
+
*/
|
|
3735
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3691
3736
|
};
|
|
3692
3737
|
|
|
3693
3738
|
type ListPChainTransactionsResponse = {
|
|
@@ -3699,6 +3744,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3699
3744
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3700
3745
|
};
|
|
3701
3746
|
|
|
3747
|
+
/**
|
|
3748
|
+
* Type of transaction.
|
|
3749
|
+
*/
|
|
3702
3750
|
declare enum XChainTransactionType {
|
|
3703
3751
|
BASE_TX = "BaseTx",
|
|
3704
3752
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3721,9 +3769,6 @@ type XChainLinearTransaction = {
|
|
|
3721
3769
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3722
3770
|
*/
|
|
3723
3771
|
timestamp: number;
|
|
3724
|
-
/**
|
|
3725
|
-
* Type of transaction.
|
|
3726
|
-
*/
|
|
3727
3772
|
txType: XChainTransactionType;
|
|
3728
3773
|
/**
|
|
3729
3774
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3734,11 +3779,11 @@ type XChainLinearTransaction = {
|
|
|
3734
3779
|
/**
|
|
3735
3780
|
* Assets unlocked by inputs of this transaction.
|
|
3736
3781
|
*/
|
|
3737
|
-
amountUnlocked: Array<
|
|
3782
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3738
3783
|
/**
|
|
3739
3784
|
* Assets created by outputs of this transaction.
|
|
3740
3785
|
*/
|
|
3741
|
-
amountCreated: Array<
|
|
3786
|
+
amountCreated: Array<AssetAmount>;
|
|
3742
3787
|
/**
|
|
3743
3788
|
* Source chain for an atomic transaction.
|
|
3744
3789
|
*/
|
|
@@ -3748,7 +3793,7 @@ type XChainLinearTransaction = {
|
|
|
3748
3793
|
*/
|
|
3749
3794
|
destinationChain?: string;
|
|
3750
3795
|
/**
|
|
3751
|
-
*
|
|
3796
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3752
3797
|
*/
|
|
3753
3798
|
assetCreated?: XChainAssetDetails;
|
|
3754
3799
|
/**
|
|
@@ -3798,9 +3843,6 @@ type XChainNonLinearTransaction = {
|
|
|
3798
3843
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3799
3844
|
*/
|
|
3800
3845
|
timestamp: number;
|
|
3801
|
-
/**
|
|
3802
|
-
* Type of transaction.
|
|
3803
|
-
*/
|
|
3804
3846
|
txType: XChainTransactionType;
|
|
3805
3847
|
/**
|
|
3806
3848
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3811,11 +3853,11 @@ type XChainNonLinearTransaction = {
|
|
|
3811
3853
|
/**
|
|
3812
3854
|
* Assets unlocked by inputs of this transaction.
|
|
3813
3855
|
*/
|
|
3814
|
-
amountUnlocked: Array<
|
|
3856
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3815
3857
|
/**
|
|
3816
3858
|
* Assets created by outputs of this transaction.
|
|
3817
3859
|
*/
|
|
3818
|
-
amountCreated: Array<
|
|
3860
|
+
amountCreated: Array<AssetAmount>;
|
|
3819
3861
|
/**
|
|
3820
3862
|
* Source chain for an atomic transaction.
|
|
3821
3863
|
*/
|
|
@@ -3825,7 +3867,7 @@ type XChainNonLinearTransaction = {
|
|
|
3825
3867
|
*/
|
|
3826
3868
|
destinationChain?: string;
|
|
3827
3869
|
/**
|
|
3828
|
-
*
|
|
3870
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3829
3871
|
*/
|
|
3830
3872
|
assetCreated?: XChainAssetDetails;
|
|
3831
3873
|
/**
|
|
@@ -3871,8 +3913,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3871
3913
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3872
3914
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3873
3915
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3874
|
-
UNKNOWN = "UNKNOWN",
|
|
3875
3916
|
BASE_TX = "BaseTx",
|
|
3917
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3918
|
+
UNKNOWN = "UNKNOWN",
|
|
3876
3919
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3877
3920
|
OPERATION_TX = "OperationTx"
|
|
3878
3921
|
}
|
|
@@ -4198,6 +4241,182 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4198
4241
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4199
4242
|
}
|
|
4200
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
|
+
|
|
4201
4420
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4202
4421
|
declare class Glacier {
|
|
4203
4422
|
readonly default: DefaultService;
|
|
@@ -4216,6 +4435,7 @@ declare class Glacier {
|
|
|
4216
4435
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4217
4436
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4218
4437
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4438
|
+
readonly teleporter: TeleporterService;
|
|
4219
4439
|
readonly request: BaseHttpRequest;
|
|
4220
4440
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4221
4441
|
}
|
|
@@ -4237,4 +4457,4 @@ declare class ApiError extends Error {
|
|
|
4237
4457
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4238
4458
|
}
|
|
4239
4459
|
|
|
4240
|
-
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 };
|