@avalabs/glacier-sdk 2.8.0-alpha.171 → 2.8.0-alpha.173
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 +320 -133
- package/dist/index.js +111 -15
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +4 -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 +7 -7
- 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/RegisterWebhookRequest.d.ts +0 -3
- 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 +11 -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 +14 -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
|
@@ -69,6 +69,10 @@ type AddressActivityMetadata = {
|
|
|
69
69
|
* Array of hexadecimal strings of the event signatures.
|
|
70
70
|
*/
|
|
71
71
|
eventSignatures?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Whether to include traces in the webhook payload.
|
|
74
|
+
*/
|
|
75
|
+
includeTraces?: boolean;
|
|
72
76
|
};
|
|
73
77
|
|
|
74
78
|
declare enum EventType {
|
|
@@ -103,9 +107,6 @@ type ListWebhooksResponse = {
|
|
|
103
107
|
type RegisterWebhookRequest = {
|
|
104
108
|
url: string;
|
|
105
109
|
chainId: string;
|
|
106
|
-
/**
|
|
107
|
-
* The type of event for the webhook
|
|
108
|
-
*/
|
|
109
110
|
eventType: EventType;
|
|
110
111
|
metadata: AddressActivityMetadata;
|
|
111
112
|
};
|
|
@@ -114,6 +115,14 @@ type SharedSecretsResponse = {
|
|
|
114
115
|
secret: string;
|
|
115
116
|
};
|
|
116
117
|
|
|
118
|
+
type UpdateWebhookRequest = {
|
|
119
|
+
name?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
url?: string;
|
|
122
|
+
status?: WebhookStatusType;
|
|
123
|
+
includeTraces?: boolean;
|
|
124
|
+
};
|
|
125
|
+
|
|
117
126
|
declare enum WebhookStatus {
|
|
118
127
|
ACTIVE = "active",
|
|
119
128
|
INACTIVE = "inactive"
|
|
@@ -156,6 +165,18 @@ declare class DefaultService {
|
|
|
156
165
|
*/
|
|
157
166
|
status?: WebhookStatus;
|
|
158
167
|
}): CancelablePromise<ListWebhooksResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Get a webhook by ID
|
|
170
|
+
* Retrieves a webhook by ID.
|
|
171
|
+
* @returns WebhookResponse
|
|
172
|
+
* @throws ApiError
|
|
173
|
+
*/
|
|
174
|
+
getWebhook({ id, }: {
|
|
175
|
+
/**
|
|
176
|
+
* The webhook identifier.
|
|
177
|
+
*/
|
|
178
|
+
id: string;
|
|
179
|
+
}): CancelablePromise<WebhookResponse>;
|
|
159
180
|
/**
|
|
160
181
|
* Deactivate a webhook
|
|
161
182
|
* Deactivates a webhook by ID.
|
|
@@ -168,6 +189,19 @@ declare class DefaultService {
|
|
|
168
189
|
*/
|
|
169
190
|
id: string;
|
|
170
191
|
}): CancelablePromise<WebhookResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Update a webhook
|
|
194
|
+
* Updates an existing webhook.
|
|
195
|
+
* @returns WebhookResponse
|
|
196
|
+
* @throws ApiError
|
|
197
|
+
*/
|
|
198
|
+
updateWebhook({ id, requestBody, }: {
|
|
199
|
+
/**
|
|
200
|
+
* The webhook identifier.
|
|
201
|
+
*/
|
|
202
|
+
id: string;
|
|
203
|
+
requestBody: UpdateWebhookRequest;
|
|
204
|
+
}): CancelablePromise<WebhookResponse>;
|
|
171
205
|
/**
|
|
172
206
|
* Generate a shared secret
|
|
173
207
|
* Generates a new shared secret.
|
|
@@ -184,6 +218,9 @@ declare class DefaultService {
|
|
|
184
218
|
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
185
219
|
}
|
|
186
220
|
|
|
221
|
+
/**
|
|
222
|
+
* ISO 4217 currency code.
|
|
223
|
+
*/
|
|
187
224
|
declare enum CurrencyCode {
|
|
188
225
|
USD = "usd",
|
|
189
226
|
EUR = "eur",
|
|
@@ -202,9 +239,6 @@ declare enum CurrencyCode {
|
|
|
202
239
|
}
|
|
203
240
|
|
|
204
241
|
type Money = {
|
|
205
|
-
/**
|
|
206
|
-
* ISO 4217 currency code.
|
|
207
|
-
*/
|
|
208
242
|
currencyCode: CurrencyCode;
|
|
209
243
|
/**
|
|
210
244
|
* Monetary value in base 10 decimals.
|
|
@@ -254,6 +288,9 @@ type GetNativeBalanceResponse = {
|
|
|
254
288
|
nativeTokenBalance: NativeTokenBalance;
|
|
255
289
|
};
|
|
256
290
|
|
|
291
|
+
/**
|
|
292
|
+
* The metadata indexing status of the nft.
|
|
293
|
+
*/
|
|
257
294
|
declare enum NftTokenMetadataStatus {
|
|
258
295
|
UNKNOWN = "UNKNOWN",
|
|
259
296
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -269,9 +306,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
269
306
|
}
|
|
270
307
|
|
|
271
308
|
type Erc1155TokenMetadata = {
|
|
272
|
-
/**
|
|
273
|
-
* The metadata indexing status of the nft.
|
|
274
|
-
*/
|
|
275
309
|
indexStatus: NftTokenMetadataStatus;
|
|
276
310
|
metadataLastUpdatedTimestamp?: number;
|
|
277
311
|
name?: string;
|
|
@@ -310,9 +344,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
310
344
|
}
|
|
311
345
|
|
|
312
346
|
type Erc721TokenMetadata = {
|
|
313
|
-
/**
|
|
314
|
-
* The metadata indexing status of the nft.
|
|
315
|
-
*/
|
|
316
347
|
indexStatus: NftTokenMetadataStatus;
|
|
317
348
|
metadataLastUpdatedTimestamp?: number;
|
|
318
349
|
name?: string;
|
|
@@ -750,6 +781,9 @@ declare class EvmBlocksService {
|
|
|
750
781
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
751
782
|
}
|
|
752
783
|
|
|
784
|
+
/**
|
|
785
|
+
* 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.
|
|
786
|
+
*/
|
|
753
787
|
declare enum ChainStatus {
|
|
754
788
|
OK = "OK",
|
|
755
789
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -787,9 +821,6 @@ declare enum VmName {
|
|
|
787
821
|
|
|
788
822
|
type GetChainResponse = {
|
|
789
823
|
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
824
|
status: ChainStatus;
|
|
794
825
|
chainName: string;
|
|
795
826
|
description: string;
|
|
@@ -809,9 +840,6 @@ type GetChainResponse = {
|
|
|
809
840
|
|
|
810
841
|
type ChainInfo = {
|
|
811
842
|
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
843
|
status: ChainStatus;
|
|
816
844
|
chainName: string;
|
|
817
845
|
description: string;
|
|
@@ -1306,6 +1334,9 @@ type Erc721TransferDetails = {
|
|
|
1306
1334
|
erc721Token: Erc721Token;
|
|
1307
1335
|
};
|
|
1308
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* 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.
|
|
1339
|
+
*/
|
|
1309
1340
|
declare enum TransactionMethodType {
|
|
1310
1341
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1311
1342
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1313,9 +1344,6 @@ declare enum TransactionMethodType {
|
|
|
1313
1344
|
}
|
|
1314
1345
|
|
|
1315
1346
|
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
1347
|
callType: TransactionMethodType;
|
|
1320
1348
|
/**
|
|
1321
1349
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1676,7 +1704,7 @@ type ListTransfersResponse = {
|
|
|
1676
1704
|
* 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
1705
|
*/
|
|
1678
1706
|
nextPageToken?: string;
|
|
1679
|
-
transfers:
|
|
1707
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1680
1708
|
};
|
|
1681
1709
|
|
|
1682
1710
|
declare enum SortOrder {
|
|
@@ -2047,7 +2075,7 @@ type ListNftTokens = {
|
|
|
2047
2075
|
* 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
2076
|
*/
|
|
2049
2077
|
nextPageToken?: string;
|
|
2050
|
-
tokens:
|
|
2078
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2051
2079
|
};
|
|
2052
2080
|
|
|
2053
2081
|
declare class NfTsService {
|
|
@@ -2124,8 +2152,12 @@ type EvmNetworkOptions = {
|
|
|
2124
2152
|
includeChains: Array<string>;
|
|
2125
2153
|
};
|
|
2126
2154
|
|
|
2155
|
+
declare enum EVMOperationType {
|
|
2156
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2127
2159
|
type CreateEvmTransactionExportRequest = {
|
|
2128
|
-
type:
|
|
2160
|
+
type: EVMOperationType;
|
|
2129
2161
|
firstDate: string;
|
|
2130
2162
|
lastDate: string;
|
|
2131
2163
|
/**
|
|
@@ -2138,10 +2170,11 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2138
2170
|
endDate: string;
|
|
2139
2171
|
options: EvmNetworkOptions;
|
|
2140
2172
|
};
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2173
|
+
|
|
2174
|
+
declare enum PrimaryNetworkOperationType {
|
|
2175
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2176
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2177
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2145
2178
|
}
|
|
2146
2179
|
|
|
2147
2180
|
type PrimaryNetworkOptions = {
|
|
@@ -2151,7 +2184,7 @@ type PrimaryNetworkOptions = {
|
|
|
2151
2184
|
};
|
|
2152
2185
|
|
|
2153
2186
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2154
|
-
type:
|
|
2187
|
+
type: PrimaryNetworkOperationType;
|
|
2155
2188
|
firstDate: string;
|
|
2156
2189
|
lastDate: string;
|
|
2157
2190
|
/**
|
|
@@ -2164,11 +2197,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2164
2197
|
endDate: string;
|
|
2165
2198
|
options: PrimaryNetworkOptions;
|
|
2166
2199
|
};
|
|
2167
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2168
|
-
enum type {
|
|
2169
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
2200
|
|
|
2173
2201
|
declare enum OperationStatus {
|
|
2174
2202
|
RUNNING = "RUNNING",
|
|
@@ -2178,8 +2206,10 @@ declare enum OperationStatus {
|
|
|
2178
2206
|
}
|
|
2179
2207
|
|
|
2180
2208
|
declare enum OperationType {
|
|
2181
|
-
|
|
2182
|
-
|
|
2209
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2210
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2211
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2212
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2183
2213
|
}
|
|
2184
2214
|
|
|
2185
2215
|
declare enum OperationStatusCode {
|
|
@@ -2545,11 +2575,17 @@ declare enum ValidationStatusType {
|
|
|
2545
2575
|
REMOVED = "removed"
|
|
2546
2576
|
}
|
|
2547
2577
|
|
|
2578
|
+
/**
|
|
2579
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2580
|
+
*/
|
|
2548
2581
|
declare enum PrimaryNetworkAssetCap {
|
|
2549
2582
|
FIXED = "fixed",
|
|
2550
2583
|
VARIABLE = "variable"
|
|
2551
2584
|
}
|
|
2552
2585
|
|
|
2586
|
+
/**
|
|
2587
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2588
|
+
*/
|
|
2553
2589
|
declare enum PrimaryNetworkAssetType {
|
|
2554
2590
|
SECP256K1 = "secp256k1",
|
|
2555
2591
|
NFT = "nft"
|
|
@@ -2572,17 +2608,11 @@ type XChainAssetDetails = {
|
|
|
2572
2608
|
* Denomination of this asset to represent fungibility.
|
|
2573
2609
|
*/
|
|
2574
2610
|
denomination: number;
|
|
2575
|
-
/**
|
|
2576
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2577
|
-
*/
|
|
2578
2611
|
type: PrimaryNetworkAssetType;
|
|
2579
2612
|
/**
|
|
2580
2613
|
* Timestamp in seconds this asset was created on.
|
|
2581
2614
|
*/
|
|
2582
2615
|
createdAtTimestamp: number;
|
|
2583
|
-
/**
|
|
2584
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2585
|
-
*/
|
|
2586
2616
|
cap: PrimaryNetworkAssetCap;
|
|
2587
2617
|
};
|
|
2588
2618
|
|
|
@@ -2849,9 +2879,6 @@ type CChainSharedAssetBalance = {
|
|
|
2849
2879
|
* Denomination of this asset to represent fungibility.
|
|
2850
2880
|
*/
|
|
2851
2881
|
denomination: number;
|
|
2852
|
-
/**
|
|
2853
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2854
|
-
*/
|
|
2855
2882
|
type: PrimaryNetworkAssetType;
|
|
2856
2883
|
/**
|
|
2857
2884
|
* Amount of the asset.
|
|
@@ -2887,7 +2914,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2887
2914
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2888
2915
|
};
|
|
2889
2916
|
|
|
2890
|
-
type
|
|
2917
|
+
type AggregatedAssetAmount = {
|
|
2891
2918
|
/**
|
|
2892
2919
|
* Unique ID for an asset.
|
|
2893
2920
|
*/
|
|
@@ -2904,14 +2931,12 @@ type Asset = {
|
|
|
2904
2931
|
* Denomination of this asset to represent fungibility.
|
|
2905
2932
|
*/
|
|
2906
2933
|
denomination: number;
|
|
2907
|
-
/**
|
|
2908
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2909
|
-
*/
|
|
2910
2934
|
type: PrimaryNetworkAssetType;
|
|
2911
2935
|
/**
|
|
2912
2936
|
* Amount of the asset.
|
|
2913
2937
|
*/
|
|
2914
2938
|
amount: string;
|
|
2939
|
+
utxoCount: number;
|
|
2915
2940
|
};
|
|
2916
2941
|
|
|
2917
2942
|
type PChainSharedAsset = {
|
|
@@ -2931,49 +2956,47 @@ type PChainSharedAsset = {
|
|
|
2931
2956
|
* Denomination of this asset to represent fungibility.
|
|
2932
2957
|
*/
|
|
2933
2958
|
denomination: number;
|
|
2934
|
-
/**
|
|
2935
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2936
|
-
*/
|
|
2937
2959
|
type: PrimaryNetworkAssetType;
|
|
2938
2960
|
/**
|
|
2939
2961
|
* Amount of the asset.
|
|
2940
2962
|
*/
|
|
2941
2963
|
amount: string;
|
|
2964
|
+
utxoCount: number;
|
|
2942
2965
|
sharedWithChainId: string;
|
|
2943
2966
|
status: string;
|
|
2944
2967
|
};
|
|
2945
2968
|
|
|
2946
2969
|
type PChainBalance = {
|
|
2947
2970
|
/**
|
|
2948
|
-
* A list of objects containing P-chain Asset
|
|
2971
|
+
* 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.
|
|
2949
2972
|
*/
|
|
2950
|
-
unlockedUnstaked: Array<
|
|
2973
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2951
2974
|
/**
|
|
2952
|
-
* A list of objects containing P-chain Asset
|
|
2975
|
+
* 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.
|
|
2953
2976
|
*/
|
|
2954
|
-
unlockedStaked: Array<
|
|
2977
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2955
2978
|
/**
|
|
2956
|
-
* A list of objects containing P-chain Asset
|
|
2979
|
+
* 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.
|
|
2957
2980
|
*/
|
|
2958
|
-
lockedPlatform: Array<
|
|
2981
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2959
2982
|
/**
|
|
2960
|
-
* A list of objects containing P-chain Asset
|
|
2983
|
+
* 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.
|
|
2961
2984
|
*/
|
|
2962
|
-
lockedStakeable: Array<
|
|
2985
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2963
2986
|
/**
|
|
2964
|
-
* A list of objects containing P-chain Asset
|
|
2987
|
+
* 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.
|
|
2965
2988
|
*/
|
|
2966
|
-
lockedStaked: Array<
|
|
2989
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2967
2990
|
/**
|
|
2968
|
-
* A list of objects containing P-chain Asset
|
|
2991
|
+
* 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.
|
|
2969
2992
|
*/
|
|
2970
|
-
pendingStaked: Array<
|
|
2993
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2971
2994
|
/**
|
|
2972
|
-
* A list of objects containing P-chain Asset
|
|
2995
|
+
* 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.
|
|
2973
2996
|
*/
|
|
2974
2997
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2975
2998
|
/**
|
|
2976
|
-
* A list of objects containing P-chain Asset
|
|
2999
|
+
* 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.
|
|
2977
3000
|
*/
|
|
2978
3001
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2979
3002
|
};
|
|
@@ -2983,34 +3006,6 @@ type ListPChainBalancesResponse = {
|
|
|
2983
3006
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2984
3007
|
};
|
|
2985
3008
|
|
|
2986
|
-
type XChainAssetBalance = {
|
|
2987
|
-
/**
|
|
2988
|
-
* Unique ID for an asset.
|
|
2989
|
-
*/
|
|
2990
|
-
assetId: string;
|
|
2991
|
-
/**
|
|
2992
|
-
* Name of this asset.
|
|
2993
|
-
*/
|
|
2994
|
-
name: string;
|
|
2995
|
-
/**
|
|
2996
|
-
* Symbol for this asset (max 4 characters).
|
|
2997
|
-
*/
|
|
2998
|
-
symbol: string;
|
|
2999
|
-
/**
|
|
3000
|
-
* Denomination of this asset to represent fungibility.
|
|
3001
|
-
*/
|
|
3002
|
-
denomination: number;
|
|
3003
|
-
/**
|
|
3004
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3005
|
-
*/
|
|
3006
|
-
type: PrimaryNetworkAssetType;
|
|
3007
|
-
/**
|
|
3008
|
-
* Amount of the asset.
|
|
3009
|
-
*/
|
|
3010
|
-
amount: string;
|
|
3011
|
-
utxoCount: number;
|
|
3012
|
-
};
|
|
3013
|
-
|
|
3014
3009
|
type XChainSharedAssetBalance = {
|
|
3015
3010
|
/**
|
|
3016
3011
|
* Unique ID for an asset.
|
|
@@ -3028,9 +3023,6 @@ type XChainSharedAssetBalance = {
|
|
|
3028
3023
|
* Denomination of this asset to represent fungibility.
|
|
3029
3024
|
*/
|
|
3030
3025
|
denomination: number;
|
|
3031
|
-
/**
|
|
3032
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3033
|
-
*/
|
|
3034
3026
|
type: PrimaryNetworkAssetType;
|
|
3035
3027
|
/**
|
|
3036
3028
|
* Amount of the asset.
|
|
@@ -3044,11 +3036,11 @@ type XChainBalances = {
|
|
|
3044
3036
|
/**
|
|
3045
3037
|
* A list of objects containing X-chain Asset balance information.
|
|
3046
3038
|
*/
|
|
3047
|
-
locked: Array<
|
|
3039
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3048
3040
|
/**
|
|
3049
3041
|
* A list of objects containing X-chain Asset balance information.
|
|
3050
3042
|
*/
|
|
3051
|
-
unlocked: Array<
|
|
3043
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3052
3044
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3053
3045
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3054
3046
|
};
|
|
@@ -3226,9 +3218,6 @@ type AssetWithPriceInfo = {
|
|
|
3226
3218
|
* Denomination of this asset to represent fungibility.
|
|
3227
3219
|
*/
|
|
3228
3220
|
denomination: number;
|
|
3229
|
-
/**
|
|
3230
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3231
|
-
*/
|
|
3232
3221
|
type: PrimaryNetworkAssetType;
|
|
3233
3222
|
/**
|
|
3234
3223
|
* Amount of the asset.
|
|
@@ -3271,6 +3260,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3271
3260
|
historicalRewards: Array<HistoricalReward>;
|
|
3272
3261
|
};
|
|
3273
3262
|
|
|
3263
|
+
type AssetAmount = {
|
|
3264
|
+
/**
|
|
3265
|
+
* Unique ID for an asset.
|
|
3266
|
+
*/
|
|
3267
|
+
assetId: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* Name of this asset.
|
|
3270
|
+
*/
|
|
3271
|
+
name: string;
|
|
3272
|
+
/**
|
|
3273
|
+
* Symbol for this asset (max 4 characters).
|
|
3274
|
+
*/
|
|
3275
|
+
symbol: string;
|
|
3276
|
+
/**
|
|
3277
|
+
* Denomination of this asset to represent fungibility.
|
|
3278
|
+
*/
|
|
3279
|
+
denomination: number;
|
|
3280
|
+
type: PrimaryNetworkAssetType;
|
|
3281
|
+
/**
|
|
3282
|
+
* Amount of the asset.
|
|
3283
|
+
*/
|
|
3284
|
+
amount: string;
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3274
3287
|
type PendingReward = {
|
|
3275
3288
|
/**
|
|
3276
3289
|
* An array of P-Chain wallet addresses.
|
|
@@ -3284,9 +3297,9 @@ type PendingReward = {
|
|
|
3284
3297
|
rewardType: RewardType;
|
|
3285
3298
|
progress: number;
|
|
3286
3299
|
/**
|
|
3287
|
-
* An object containing P-chain Asset
|
|
3300
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3288
3301
|
*/
|
|
3289
|
-
estimatedReward:
|
|
3302
|
+
estimatedReward: AssetAmount;
|
|
3290
3303
|
};
|
|
3291
3304
|
|
|
3292
3305
|
type ListPendingRewardsResponse = {
|
|
@@ -3387,9 +3400,9 @@ type EVMInput = {
|
|
|
3387
3400
|
*/
|
|
3388
3401
|
fromAddress: string;
|
|
3389
3402
|
/**
|
|
3390
|
-
*
|
|
3403
|
+
* AssetAmount details for the asset being transferred.
|
|
3391
3404
|
*/
|
|
3392
|
-
asset:
|
|
3405
|
+
asset: AssetAmount;
|
|
3393
3406
|
/**
|
|
3394
3407
|
* Credentials that signed this transaction.
|
|
3395
3408
|
*/
|
|
@@ -3401,7 +3414,7 @@ type Utxo = {
|
|
|
3401
3414
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3402
3415
|
*/
|
|
3403
3416
|
addresses: Array<string>;
|
|
3404
|
-
asset:
|
|
3417
|
+
asset: AssetAmount;
|
|
3405
3418
|
/**
|
|
3406
3419
|
* Blockchain ID on which this output is consumed on.
|
|
3407
3420
|
*/
|
|
@@ -3484,11 +3497,11 @@ type CChainExportTransaction = {
|
|
|
3484
3497
|
/**
|
|
3485
3498
|
* Assets unlocked by inputs of this transaction.
|
|
3486
3499
|
*/
|
|
3487
|
-
amountUnlocked: Array<
|
|
3500
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3488
3501
|
/**
|
|
3489
3502
|
* Assets created by outputs of this transaction.
|
|
3490
3503
|
*/
|
|
3491
|
-
amountCreated: Array<
|
|
3504
|
+
amountCreated: Array<AssetAmount>;
|
|
3492
3505
|
/**
|
|
3493
3506
|
* Source chain for an atomic transaction.
|
|
3494
3507
|
*/
|
|
@@ -3519,9 +3532,9 @@ type EVMOutput = {
|
|
|
3519
3532
|
*/
|
|
3520
3533
|
toAddress: string;
|
|
3521
3534
|
/**
|
|
3522
|
-
*
|
|
3535
|
+
* AssetAmount details for the asset being transferred.
|
|
3523
3536
|
*/
|
|
3524
|
-
asset:
|
|
3537
|
+
asset: AssetAmount;
|
|
3525
3538
|
};
|
|
3526
3539
|
|
|
3527
3540
|
type CChainImportTransaction = {
|
|
@@ -3548,11 +3561,11 @@ type CChainImportTransaction = {
|
|
|
3548
3561
|
/**
|
|
3549
3562
|
* Assets unlocked by inputs of this transaction.
|
|
3550
3563
|
*/
|
|
3551
|
-
amountUnlocked: Array<
|
|
3564
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3552
3565
|
/**
|
|
3553
3566
|
* Assets created by outputs of this transaction.
|
|
3554
3567
|
*/
|
|
3555
|
-
amountCreated: Array<
|
|
3568
|
+
amountCreated: Array<AssetAmount>;
|
|
3556
3569
|
/**
|
|
3557
3570
|
* Source chain for an atomic transaction.
|
|
3558
3571
|
*/
|
|
@@ -3615,7 +3628,7 @@ type PChainUtxo = {
|
|
|
3615
3628
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3616
3629
|
*/
|
|
3617
3630
|
addresses: Array<string>;
|
|
3618
|
-
asset:
|
|
3631
|
+
asset: AssetAmount;
|
|
3619
3632
|
/**
|
|
3620
3633
|
* Blockchain ID on which this output is consumed on.
|
|
3621
3634
|
*/
|
|
@@ -3679,17 +3692,17 @@ type PChainTransaction = {
|
|
|
3679
3692
|
*/
|
|
3680
3693
|
destinationChain?: string;
|
|
3681
3694
|
/**
|
|
3682
|
-
* A list of objects containing P-chain Asset
|
|
3695
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3683
3696
|
*/
|
|
3684
|
-
value: Array<
|
|
3697
|
+
value: Array<AssetAmount>;
|
|
3685
3698
|
/**
|
|
3686
|
-
* A list of objects containing P-chain Asset
|
|
3699
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3687
3700
|
*/
|
|
3688
|
-
amountBurned: Array<
|
|
3701
|
+
amountBurned: Array<AssetAmount>;
|
|
3689
3702
|
/**
|
|
3690
|
-
* A list of objects containing P-chain Asset
|
|
3703
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3691
3704
|
*/
|
|
3692
|
-
amountStaked: Array<
|
|
3705
|
+
amountStaked: Array<AssetAmount>;
|
|
3693
3706
|
/**
|
|
3694
3707
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3695
3708
|
*/
|
|
@@ -3736,6 +3749,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3736
3749
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3737
3750
|
};
|
|
3738
3751
|
|
|
3752
|
+
/**
|
|
3753
|
+
* Type of transaction.
|
|
3754
|
+
*/
|
|
3739
3755
|
declare enum XChainTransactionType {
|
|
3740
3756
|
BASE_TX = "BaseTx",
|
|
3741
3757
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3758,9 +3774,6 @@ type XChainLinearTransaction = {
|
|
|
3758
3774
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3759
3775
|
*/
|
|
3760
3776
|
timestamp: number;
|
|
3761
|
-
/**
|
|
3762
|
-
* Type of transaction.
|
|
3763
|
-
*/
|
|
3764
3777
|
txType: XChainTransactionType;
|
|
3765
3778
|
/**
|
|
3766
3779
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3771,11 +3784,11 @@ type XChainLinearTransaction = {
|
|
|
3771
3784
|
/**
|
|
3772
3785
|
* Assets unlocked by inputs of this transaction.
|
|
3773
3786
|
*/
|
|
3774
|
-
amountUnlocked: Array<
|
|
3787
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3775
3788
|
/**
|
|
3776
3789
|
* Assets created by outputs of this transaction.
|
|
3777
3790
|
*/
|
|
3778
|
-
amountCreated: Array<
|
|
3791
|
+
amountCreated: Array<AssetAmount>;
|
|
3779
3792
|
/**
|
|
3780
3793
|
* Source chain for an atomic transaction.
|
|
3781
3794
|
*/
|
|
@@ -3785,7 +3798,7 @@ type XChainLinearTransaction = {
|
|
|
3785
3798
|
*/
|
|
3786
3799
|
destinationChain?: string;
|
|
3787
3800
|
/**
|
|
3788
|
-
*
|
|
3801
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3789
3802
|
*/
|
|
3790
3803
|
assetCreated?: XChainAssetDetails;
|
|
3791
3804
|
/**
|
|
@@ -3835,9 +3848,6 @@ type XChainNonLinearTransaction = {
|
|
|
3835
3848
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3836
3849
|
*/
|
|
3837
3850
|
timestamp: number;
|
|
3838
|
-
/**
|
|
3839
|
-
* Type of transaction.
|
|
3840
|
-
*/
|
|
3841
3851
|
txType: XChainTransactionType;
|
|
3842
3852
|
/**
|
|
3843
3853
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3848,11 +3858,11 @@ type XChainNonLinearTransaction = {
|
|
|
3848
3858
|
/**
|
|
3849
3859
|
* Assets unlocked by inputs of this transaction.
|
|
3850
3860
|
*/
|
|
3851
|
-
amountUnlocked: Array<
|
|
3861
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3852
3862
|
/**
|
|
3853
3863
|
* Assets created by outputs of this transaction.
|
|
3854
3864
|
*/
|
|
3855
|
-
amountCreated: Array<
|
|
3865
|
+
amountCreated: Array<AssetAmount>;
|
|
3856
3866
|
/**
|
|
3857
3867
|
* Source chain for an atomic transaction.
|
|
3858
3868
|
*/
|
|
@@ -3862,7 +3872,7 @@ type XChainNonLinearTransaction = {
|
|
|
3862
3872
|
*/
|
|
3863
3873
|
destinationChain?: string;
|
|
3864
3874
|
/**
|
|
3865
|
-
*
|
|
3875
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3866
3876
|
*/
|
|
3867
3877
|
assetCreated?: XChainAssetDetails;
|
|
3868
3878
|
/**
|
|
@@ -4236,6 +4246,182 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4236
4246
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4237
4247
|
}
|
|
4238
4248
|
|
|
4249
|
+
type TeleporterDestinationTransaction = {
|
|
4250
|
+
txHash: string;
|
|
4251
|
+
timestamp: number;
|
|
4252
|
+
gasSpent: string;
|
|
4253
|
+
rewardRedeemer: string;
|
|
4254
|
+
delivererAddress: string;
|
|
4255
|
+
};
|
|
4256
|
+
|
|
4257
|
+
type TeleporterReceipt = {
|
|
4258
|
+
receivedMessageNonce: string;
|
|
4259
|
+
relayerRewardAddress: string;
|
|
4260
|
+
};
|
|
4261
|
+
|
|
4262
|
+
type TeleporterRewardDetails = {
|
|
4263
|
+
/**
|
|
4264
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4265
|
+
*/
|
|
4266
|
+
address: string;
|
|
4267
|
+
/**
|
|
4268
|
+
* The contract name.
|
|
4269
|
+
*/
|
|
4270
|
+
name: string;
|
|
4271
|
+
/**
|
|
4272
|
+
* The contract symbol.
|
|
4273
|
+
*/
|
|
4274
|
+
symbol: string;
|
|
4275
|
+
/**
|
|
4276
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4277
|
+
*/
|
|
4278
|
+
decimals: number;
|
|
4279
|
+
/**
|
|
4280
|
+
* The logo uri for the address.
|
|
4281
|
+
*/
|
|
4282
|
+
logoUri?: string;
|
|
4283
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4284
|
+
/**
|
|
4285
|
+
* The token price, if available.
|
|
4286
|
+
*/
|
|
4287
|
+
price?: Money;
|
|
4288
|
+
value: string;
|
|
4289
|
+
};
|
|
4290
|
+
declare namespace TeleporterRewardDetails {
|
|
4291
|
+
enum ercType {
|
|
4292
|
+
ERC_20 = "ERC-20"
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4297
|
+
messageId: string;
|
|
4298
|
+
teleporterContractAddress: string;
|
|
4299
|
+
sourceBlockchainId: string;
|
|
4300
|
+
destinationBlockchainId: string;
|
|
4301
|
+
messageNonce: string;
|
|
4302
|
+
from: string;
|
|
4303
|
+
to: string;
|
|
4304
|
+
data?: string;
|
|
4305
|
+
messageExecuted: boolean;
|
|
4306
|
+
receipts: Array<TeleporterReceipt>;
|
|
4307
|
+
receiptDelivered: boolean;
|
|
4308
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4309
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4310
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4311
|
+
};
|
|
4312
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4313
|
+
enum status {
|
|
4314
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
type TeleporterSourceTransaction = {
|
|
4319
|
+
txHash: string;
|
|
4320
|
+
timestamp: number;
|
|
4321
|
+
gasSpent: string;
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
type DeliveredTeleporterMessage = {
|
|
4325
|
+
messageId: string;
|
|
4326
|
+
teleporterContractAddress: string;
|
|
4327
|
+
sourceBlockchainId: string;
|
|
4328
|
+
destinationBlockchainId: string;
|
|
4329
|
+
messageNonce: string;
|
|
4330
|
+
from: string;
|
|
4331
|
+
to: string;
|
|
4332
|
+
data?: string;
|
|
4333
|
+
messageExecuted: boolean;
|
|
4334
|
+
receipts: Array<TeleporterReceipt>;
|
|
4335
|
+
receiptDelivered: boolean;
|
|
4336
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4337
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4338
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4339
|
+
status: DeliveredTeleporterMessage.status;
|
|
4340
|
+
};
|
|
4341
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4342
|
+
enum status {
|
|
4343
|
+
DELIVERED = "delivered"
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
type NextPageToken = {
|
|
4348
|
+
/**
|
|
4349
|
+
* 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.
|
|
4350
|
+
*/
|
|
4351
|
+
nextPageToken?: string;
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
type PendingTeleporterMessage = {
|
|
4355
|
+
messageId: string;
|
|
4356
|
+
teleporterContractAddress: string;
|
|
4357
|
+
sourceBlockchainId: string;
|
|
4358
|
+
destinationBlockchainId: string;
|
|
4359
|
+
messageNonce: string;
|
|
4360
|
+
from: string;
|
|
4361
|
+
to: string;
|
|
4362
|
+
data?: string;
|
|
4363
|
+
messageExecuted: boolean;
|
|
4364
|
+
receipts: Array<TeleporterReceipt>;
|
|
4365
|
+
receiptDelivered: boolean;
|
|
4366
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4367
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4368
|
+
status: PendingTeleporterMessage.status;
|
|
4369
|
+
};
|
|
4370
|
+
declare namespace PendingTeleporterMessage {
|
|
4371
|
+
enum status {
|
|
4372
|
+
PENDING = "pending"
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
declare class TeleporterService {
|
|
4377
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4378
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4379
|
+
/**
|
|
4380
|
+
* Get a teleporter message
|
|
4381
|
+
* Gets a teleporter message by message ID.
|
|
4382
|
+
* @returns any
|
|
4383
|
+
* @throws ApiError
|
|
4384
|
+
*/
|
|
4385
|
+
getTeleporterMessage({ messageId, }: {
|
|
4386
|
+
/**
|
|
4387
|
+
* The message ID of the teleporter message.
|
|
4388
|
+
*/
|
|
4389
|
+
messageId: string;
|
|
4390
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4391
|
+
/**
|
|
4392
|
+
* List teleporter messages
|
|
4393
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4394
|
+
* @returns any
|
|
4395
|
+
* @throws ApiError
|
|
4396
|
+
*/
|
|
4397
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4398
|
+
/**
|
|
4399
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4400
|
+
*/
|
|
4401
|
+
pageToken?: string;
|
|
4402
|
+
/**
|
|
4403
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4404
|
+
*/
|
|
4405
|
+
pageSize?: number;
|
|
4406
|
+
/**
|
|
4407
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4408
|
+
*/
|
|
4409
|
+
sourceBlockchainId?: string;
|
|
4410
|
+
/**
|
|
4411
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4412
|
+
*/
|
|
4413
|
+
destinationBlockchainId?: string;
|
|
4414
|
+
/**
|
|
4415
|
+
* The address of the recipient of the teleporter message.
|
|
4416
|
+
*/
|
|
4417
|
+
to?: string;
|
|
4418
|
+
/**
|
|
4419
|
+
* The address of the sender of the teleporter message.
|
|
4420
|
+
*/
|
|
4421
|
+
from?: string;
|
|
4422
|
+
}): CancelablePromise<NextPageToken>;
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4239
4425
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4240
4426
|
declare class Glacier {
|
|
4241
4427
|
readonly default: DefaultService;
|
|
@@ -4254,6 +4440,7 @@ declare class Glacier {
|
|
|
4254
4440
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4255
4441
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4256
4442
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4443
|
+
readonly teleporter: TeleporterService;
|
|
4257
4444
|
readonly request: BaseHttpRequest;
|
|
4258
4445
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4259
4446
|
}
|
|
@@ -4275,4 +4462,4 @@ declare class ApiError extends Error {
|
|
|
4275
4462
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4276
4463
|
}
|
|
4277
4464
|
|
|
4278
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError,
|
|
4465
|
+
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 };
|