@avalabs/glacier-sdk 2.8.0-alpha.171 → 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 +315 -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/{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 +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 +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
|
@@ -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 {
|
|
@@ -2545,11 +2570,17 @@ declare enum ValidationStatusType {
|
|
|
2545
2570
|
REMOVED = "removed"
|
|
2546
2571
|
}
|
|
2547
2572
|
|
|
2573
|
+
/**
|
|
2574
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2575
|
+
*/
|
|
2548
2576
|
declare enum PrimaryNetworkAssetCap {
|
|
2549
2577
|
FIXED = "fixed",
|
|
2550
2578
|
VARIABLE = "variable"
|
|
2551
2579
|
}
|
|
2552
2580
|
|
|
2581
|
+
/**
|
|
2582
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2583
|
+
*/
|
|
2553
2584
|
declare enum PrimaryNetworkAssetType {
|
|
2554
2585
|
SECP256K1 = "secp256k1",
|
|
2555
2586
|
NFT = "nft"
|
|
@@ -2572,17 +2603,11 @@ type XChainAssetDetails = {
|
|
|
2572
2603
|
* Denomination of this asset to represent fungibility.
|
|
2573
2604
|
*/
|
|
2574
2605
|
denomination: number;
|
|
2575
|
-
/**
|
|
2576
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2577
|
-
*/
|
|
2578
2606
|
type: PrimaryNetworkAssetType;
|
|
2579
2607
|
/**
|
|
2580
2608
|
* Timestamp in seconds this asset was created on.
|
|
2581
2609
|
*/
|
|
2582
2610
|
createdAtTimestamp: number;
|
|
2583
|
-
/**
|
|
2584
|
-
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2585
|
-
*/
|
|
2586
2611
|
cap: PrimaryNetworkAssetCap;
|
|
2587
2612
|
};
|
|
2588
2613
|
|
|
@@ -2849,9 +2874,6 @@ type CChainSharedAssetBalance = {
|
|
|
2849
2874
|
* Denomination of this asset to represent fungibility.
|
|
2850
2875
|
*/
|
|
2851
2876
|
denomination: number;
|
|
2852
|
-
/**
|
|
2853
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2854
|
-
*/
|
|
2855
2877
|
type: PrimaryNetworkAssetType;
|
|
2856
2878
|
/**
|
|
2857
2879
|
* Amount of the asset.
|
|
@@ -2887,7 +2909,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2887
2909
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2888
2910
|
};
|
|
2889
2911
|
|
|
2890
|
-
type
|
|
2912
|
+
type AggregatedAssetAmount = {
|
|
2891
2913
|
/**
|
|
2892
2914
|
* Unique ID for an asset.
|
|
2893
2915
|
*/
|
|
@@ -2904,14 +2926,12 @@ type Asset = {
|
|
|
2904
2926
|
* Denomination of this asset to represent fungibility.
|
|
2905
2927
|
*/
|
|
2906
2928
|
denomination: number;
|
|
2907
|
-
/**
|
|
2908
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2909
|
-
*/
|
|
2910
2929
|
type: PrimaryNetworkAssetType;
|
|
2911
2930
|
/**
|
|
2912
2931
|
* Amount of the asset.
|
|
2913
2932
|
*/
|
|
2914
2933
|
amount: string;
|
|
2934
|
+
utxoCount: number;
|
|
2915
2935
|
};
|
|
2916
2936
|
|
|
2917
2937
|
type PChainSharedAsset = {
|
|
@@ -2931,49 +2951,47 @@ type PChainSharedAsset = {
|
|
|
2931
2951
|
* Denomination of this asset to represent fungibility.
|
|
2932
2952
|
*/
|
|
2933
2953
|
denomination: number;
|
|
2934
|
-
/**
|
|
2935
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2936
|
-
*/
|
|
2937
2954
|
type: PrimaryNetworkAssetType;
|
|
2938
2955
|
/**
|
|
2939
2956
|
* Amount of the asset.
|
|
2940
2957
|
*/
|
|
2941
2958
|
amount: string;
|
|
2959
|
+
utxoCount: number;
|
|
2942
2960
|
sharedWithChainId: string;
|
|
2943
2961
|
status: string;
|
|
2944
2962
|
};
|
|
2945
2963
|
|
|
2946
2964
|
type PChainBalance = {
|
|
2947
2965
|
/**
|
|
2948
|
-
* 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.
|
|
2949
2967
|
*/
|
|
2950
|
-
unlockedUnstaked: Array<
|
|
2968
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2951
2969
|
/**
|
|
2952
|
-
* 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.
|
|
2953
2971
|
*/
|
|
2954
|
-
unlockedStaked: Array<
|
|
2972
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2955
2973
|
/**
|
|
2956
|
-
* 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.
|
|
2957
2975
|
*/
|
|
2958
|
-
lockedPlatform: Array<
|
|
2976
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2959
2977
|
/**
|
|
2960
|
-
* 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.
|
|
2961
2979
|
*/
|
|
2962
|
-
lockedStakeable: Array<
|
|
2980
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2963
2981
|
/**
|
|
2964
|
-
* 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.
|
|
2965
2983
|
*/
|
|
2966
|
-
lockedStaked: Array<
|
|
2984
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2967
2985
|
/**
|
|
2968
|
-
* 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.
|
|
2969
2987
|
*/
|
|
2970
|
-
pendingStaked: Array<
|
|
2988
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2971
2989
|
/**
|
|
2972
|
-
* 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.
|
|
2973
2991
|
*/
|
|
2974
2992
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2975
2993
|
/**
|
|
2976
|
-
* 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.
|
|
2977
2995
|
*/
|
|
2978
2996
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2979
2997
|
};
|
|
@@ -2983,34 +3001,6 @@ type ListPChainBalancesResponse = {
|
|
|
2983
3001
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2984
3002
|
};
|
|
2985
3003
|
|
|
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
3004
|
type XChainSharedAssetBalance = {
|
|
3015
3005
|
/**
|
|
3016
3006
|
* Unique ID for an asset.
|
|
@@ -3028,9 +3018,6 @@ type XChainSharedAssetBalance = {
|
|
|
3028
3018
|
* Denomination of this asset to represent fungibility.
|
|
3029
3019
|
*/
|
|
3030
3020
|
denomination: number;
|
|
3031
|
-
/**
|
|
3032
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3033
|
-
*/
|
|
3034
3021
|
type: PrimaryNetworkAssetType;
|
|
3035
3022
|
/**
|
|
3036
3023
|
* Amount of the asset.
|
|
@@ -3044,11 +3031,11 @@ type XChainBalances = {
|
|
|
3044
3031
|
/**
|
|
3045
3032
|
* A list of objects containing X-chain Asset balance information.
|
|
3046
3033
|
*/
|
|
3047
|
-
locked: Array<
|
|
3034
|
+
locked: Array<AggregatedAssetAmount>;
|
|
3048
3035
|
/**
|
|
3049
3036
|
* A list of objects containing X-chain Asset balance information.
|
|
3050
3037
|
*/
|
|
3051
|
-
unlocked: Array<
|
|
3038
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3052
3039
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3053
3040
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3054
3041
|
};
|
|
@@ -3226,9 +3213,6 @@ type AssetWithPriceInfo = {
|
|
|
3226
3213
|
* Denomination of this asset to represent fungibility.
|
|
3227
3214
|
*/
|
|
3228
3215
|
denomination: number;
|
|
3229
|
-
/**
|
|
3230
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3231
|
-
*/
|
|
3232
3216
|
type: PrimaryNetworkAssetType;
|
|
3233
3217
|
/**
|
|
3234
3218
|
* Amount of the asset.
|
|
@@ -3271,6 +3255,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3271
3255
|
historicalRewards: Array<HistoricalReward>;
|
|
3272
3256
|
};
|
|
3273
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
|
+
|
|
3274
3282
|
type PendingReward = {
|
|
3275
3283
|
/**
|
|
3276
3284
|
* An array of P-Chain wallet addresses.
|
|
@@ -3284,9 +3292,9 @@ type PendingReward = {
|
|
|
3284
3292
|
rewardType: RewardType;
|
|
3285
3293
|
progress: number;
|
|
3286
3294
|
/**
|
|
3287
|
-
* An object containing P-chain Asset
|
|
3295
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3288
3296
|
*/
|
|
3289
|
-
estimatedReward:
|
|
3297
|
+
estimatedReward: AssetAmount;
|
|
3290
3298
|
};
|
|
3291
3299
|
|
|
3292
3300
|
type ListPendingRewardsResponse = {
|
|
@@ -3387,9 +3395,9 @@ type EVMInput = {
|
|
|
3387
3395
|
*/
|
|
3388
3396
|
fromAddress: string;
|
|
3389
3397
|
/**
|
|
3390
|
-
*
|
|
3398
|
+
* AssetAmount details for the asset being transferred.
|
|
3391
3399
|
*/
|
|
3392
|
-
asset:
|
|
3400
|
+
asset: AssetAmount;
|
|
3393
3401
|
/**
|
|
3394
3402
|
* Credentials that signed this transaction.
|
|
3395
3403
|
*/
|
|
@@ -3401,7 +3409,7 @@ type Utxo = {
|
|
|
3401
3409
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3402
3410
|
*/
|
|
3403
3411
|
addresses: Array<string>;
|
|
3404
|
-
asset:
|
|
3412
|
+
asset: AssetAmount;
|
|
3405
3413
|
/**
|
|
3406
3414
|
* Blockchain ID on which this output is consumed on.
|
|
3407
3415
|
*/
|
|
@@ -3484,11 +3492,11 @@ type CChainExportTransaction = {
|
|
|
3484
3492
|
/**
|
|
3485
3493
|
* Assets unlocked by inputs of this transaction.
|
|
3486
3494
|
*/
|
|
3487
|
-
amountUnlocked: Array<
|
|
3495
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3488
3496
|
/**
|
|
3489
3497
|
* Assets created by outputs of this transaction.
|
|
3490
3498
|
*/
|
|
3491
|
-
amountCreated: Array<
|
|
3499
|
+
amountCreated: Array<AssetAmount>;
|
|
3492
3500
|
/**
|
|
3493
3501
|
* Source chain for an atomic transaction.
|
|
3494
3502
|
*/
|
|
@@ -3519,9 +3527,9 @@ type EVMOutput = {
|
|
|
3519
3527
|
*/
|
|
3520
3528
|
toAddress: string;
|
|
3521
3529
|
/**
|
|
3522
|
-
*
|
|
3530
|
+
* AssetAmount details for the asset being transferred.
|
|
3523
3531
|
*/
|
|
3524
|
-
asset:
|
|
3532
|
+
asset: AssetAmount;
|
|
3525
3533
|
};
|
|
3526
3534
|
|
|
3527
3535
|
type CChainImportTransaction = {
|
|
@@ -3548,11 +3556,11 @@ type CChainImportTransaction = {
|
|
|
3548
3556
|
/**
|
|
3549
3557
|
* Assets unlocked by inputs of this transaction.
|
|
3550
3558
|
*/
|
|
3551
|
-
amountUnlocked: Array<
|
|
3559
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3552
3560
|
/**
|
|
3553
3561
|
* Assets created by outputs of this transaction.
|
|
3554
3562
|
*/
|
|
3555
|
-
amountCreated: Array<
|
|
3563
|
+
amountCreated: Array<AssetAmount>;
|
|
3556
3564
|
/**
|
|
3557
3565
|
* Source chain for an atomic transaction.
|
|
3558
3566
|
*/
|
|
@@ -3615,7 +3623,7 @@ type PChainUtxo = {
|
|
|
3615
3623
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3616
3624
|
*/
|
|
3617
3625
|
addresses: Array<string>;
|
|
3618
|
-
asset:
|
|
3626
|
+
asset: AssetAmount;
|
|
3619
3627
|
/**
|
|
3620
3628
|
* Blockchain ID on which this output is consumed on.
|
|
3621
3629
|
*/
|
|
@@ -3679,17 +3687,17 @@ type PChainTransaction = {
|
|
|
3679
3687
|
*/
|
|
3680
3688
|
destinationChain?: string;
|
|
3681
3689
|
/**
|
|
3682
|
-
* 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.
|
|
3683
3691
|
*/
|
|
3684
|
-
value: Array<
|
|
3692
|
+
value: Array<AssetAmount>;
|
|
3685
3693
|
/**
|
|
3686
|
-
* 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.
|
|
3687
3695
|
*/
|
|
3688
|
-
amountBurned: Array<
|
|
3696
|
+
amountBurned: Array<AssetAmount>;
|
|
3689
3697
|
/**
|
|
3690
|
-
* 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
|
|
3691
3699
|
*/
|
|
3692
|
-
amountStaked: Array<
|
|
3700
|
+
amountStaked: Array<AssetAmount>;
|
|
3693
3701
|
/**
|
|
3694
3702
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3695
3703
|
*/
|
|
@@ -3736,6 +3744,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3736
3744
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3737
3745
|
};
|
|
3738
3746
|
|
|
3747
|
+
/**
|
|
3748
|
+
* Type of transaction.
|
|
3749
|
+
*/
|
|
3739
3750
|
declare enum XChainTransactionType {
|
|
3740
3751
|
BASE_TX = "BaseTx",
|
|
3741
3752
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3758,9 +3769,6 @@ type XChainLinearTransaction = {
|
|
|
3758
3769
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3759
3770
|
*/
|
|
3760
3771
|
timestamp: number;
|
|
3761
|
-
/**
|
|
3762
|
-
* Type of transaction.
|
|
3763
|
-
*/
|
|
3764
3772
|
txType: XChainTransactionType;
|
|
3765
3773
|
/**
|
|
3766
3774
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3771,11 +3779,11 @@ type XChainLinearTransaction = {
|
|
|
3771
3779
|
/**
|
|
3772
3780
|
* Assets unlocked by inputs of this transaction.
|
|
3773
3781
|
*/
|
|
3774
|
-
amountUnlocked: Array<
|
|
3782
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3775
3783
|
/**
|
|
3776
3784
|
* Assets created by outputs of this transaction.
|
|
3777
3785
|
*/
|
|
3778
|
-
amountCreated: Array<
|
|
3786
|
+
amountCreated: Array<AssetAmount>;
|
|
3779
3787
|
/**
|
|
3780
3788
|
* Source chain for an atomic transaction.
|
|
3781
3789
|
*/
|
|
@@ -3785,7 +3793,7 @@ type XChainLinearTransaction = {
|
|
|
3785
3793
|
*/
|
|
3786
3794
|
destinationChain?: string;
|
|
3787
3795
|
/**
|
|
3788
|
-
*
|
|
3796
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3789
3797
|
*/
|
|
3790
3798
|
assetCreated?: XChainAssetDetails;
|
|
3791
3799
|
/**
|
|
@@ -3835,9 +3843,6 @@ type XChainNonLinearTransaction = {
|
|
|
3835
3843
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3836
3844
|
*/
|
|
3837
3845
|
timestamp: number;
|
|
3838
|
-
/**
|
|
3839
|
-
* Type of transaction.
|
|
3840
|
-
*/
|
|
3841
3846
|
txType: XChainTransactionType;
|
|
3842
3847
|
/**
|
|
3843
3848
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3848,11 +3853,11 @@ type XChainNonLinearTransaction = {
|
|
|
3848
3853
|
/**
|
|
3849
3854
|
* Assets unlocked by inputs of this transaction.
|
|
3850
3855
|
*/
|
|
3851
|
-
amountUnlocked: Array<
|
|
3856
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3852
3857
|
/**
|
|
3853
3858
|
* Assets created by outputs of this transaction.
|
|
3854
3859
|
*/
|
|
3855
|
-
amountCreated: Array<
|
|
3860
|
+
amountCreated: Array<AssetAmount>;
|
|
3856
3861
|
/**
|
|
3857
3862
|
* Source chain for an atomic transaction.
|
|
3858
3863
|
*/
|
|
@@ -3862,7 +3867,7 @@ type XChainNonLinearTransaction = {
|
|
|
3862
3867
|
*/
|
|
3863
3868
|
destinationChain?: string;
|
|
3864
3869
|
/**
|
|
3865
|
-
*
|
|
3870
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3866
3871
|
*/
|
|
3867
3872
|
assetCreated?: XChainAssetDetails;
|
|
3868
3873
|
/**
|
|
@@ -4236,6 +4241,182 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4236
4241
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4237
4242
|
}
|
|
4238
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
|
+
|
|
4239
4420
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
4240
4421
|
declare class Glacier {
|
|
4241
4422
|
readonly default: DefaultService;
|
|
@@ -4254,6 +4435,7 @@ declare class Glacier {
|
|
|
4254
4435
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4255
4436
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4256
4437
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4438
|
+
readonly teleporter: TeleporterService;
|
|
4257
4439
|
readonly request: BaseHttpRequest;
|
|
4258
4440
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4259
4441
|
}
|
|
@@ -4275,4 +4457,4 @@ declare class ApiError extends Error {
|
|
|
4275
4457
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4276
4458
|
}
|
|
4277
4459
|
|
|
4278
|
-
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 };
|