@avalabs/glacier-sdk 2.8.0-canary.5546d4f.0 → 2.8.0-canary.5601e64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +361 -134
- package/dist/index.js +122 -17
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
- package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/ChainInfo.d.ts +0 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/GetChainResponse.d.ts +0 -3
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
- package/esm/generated/models/PChainTransaction.d.ts +12 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +2 -0
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
- package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/services/DefaultService.d.ts +33 -0
- package/esm/generated/services/DefaultService.js +32 -1
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/index.d.ts +15 -2
- package/esm/index.js +7 -2
- package/package.json +2 -2
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.js
CHANGED
|
@@ -380,6 +380,17 @@ class DefaultService {
|
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
+
getWebhook({
|
|
384
|
+
id
|
|
385
|
+
}) {
|
|
386
|
+
return this.httpRequest.request({
|
|
387
|
+
method: "GET",
|
|
388
|
+
url: "/v1/webhooks/{id}",
|
|
389
|
+
path: {
|
|
390
|
+
"id": id
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
383
394
|
deactivateWebhook({
|
|
384
395
|
id
|
|
385
396
|
}) {
|
|
@@ -391,10 +402,30 @@ class DefaultService {
|
|
|
391
402
|
}
|
|
392
403
|
});
|
|
393
404
|
}
|
|
405
|
+
updateWebhook({
|
|
406
|
+
id,
|
|
407
|
+
requestBody
|
|
408
|
+
}) {
|
|
409
|
+
return this.httpRequest.request({
|
|
410
|
+
method: "PATCH",
|
|
411
|
+
url: "/v1/webhooks/{id}",
|
|
412
|
+
path: {
|
|
413
|
+
"id": id
|
|
414
|
+
},
|
|
415
|
+
body: requestBody,
|
|
416
|
+
mediaType: "application/json"
|
|
417
|
+
});
|
|
418
|
+
}
|
|
394
419
|
generateSharedSecret() {
|
|
395
420
|
return this.httpRequest.request({
|
|
396
421
|
method: "POST",
|
|
397
|
-
url: "/v1/webhooks:
|
|
422
|
+
url: "/v1/webhooks:generateOrRotateSharedSecret"
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
getSharedSecret() {
|
|
426
|
+
return this.httpRequest.request({
|
|
427
|
+
method: "GET",
|
|
428
|
+
url: "/v1/webhooks:getSharedSecret"
|
|
398
429
|
});
|
|
399
430
|
}
|
|
400
431
|
}
|
|
@@ -1472,6 +1503,44 @@ class PrimaryNetworkVerticesService {
|
|
|
1472
1503
|
}
|
|
1473
1504
|
}
|
|
1474
1505
|
|
|
1506
|
+
class TeleporterService {
|
|
1507
|
+
constructor(httpRequest) {
|
|
1508
|
+
this.httpRequest = httpRequest;
|
|
1509
|
+
}
|
|
1510
|
+
getTeleporterMessage({
|
|
1511
|
+
messageId
|
|
1512
|
+
}) {
|
|
1513
|
+
return this.httpRequest.request({
|
|
1514
|
+
method: "GET",
|
|
1515
|
+
url: "/v1/teleporter/messages/{messageId}",
|
|
1516
|
+
path: {
|
|
1517
|
+
"messageId": messageId
|
|
1518
|
+
}
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
listTeleporterMessages({
|
|
1522
|
+
pageToken,
|
|
1523
|
+
pageSize = 10,
|
|
1524
|
+
sourceBlockchainId,
|
|
1525
|
+
destinationBlockchainId,
|
|
1526
|
+
to,
|
|
1527
|
+
from
|
|
1528
|
+
}) {
|
|
1529
|
+
return this.httpRequest.request({
|
|
1530
|
+
method: "GET",
|
|
1531
|
+
url: "/v1/teleporter/messages",
|
|
1532
|
+
query: {
|
|
1533
|
+
"pageToken": pageToken,
|
|
1534
|
+
"pageSize": pageSize,
|
|
1535
|
+
"sourceBlockchainId": sourceBlockchainId,
|
|
1536
|
+
"destinationBlockchainId": destinationBlockchainId,
|
|
1537
|
+
"to": to,
|
|
1538
|
+
"from": from
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1475
1544
|
class Glacier {
|
|
1476
1545
|
default;
|
|
1477
1546
|
evmBalances;
|
|
@@ -1489,6 +1558,7 @@ class Glacier {
|
|
|
1489
1558
|
primaryNetworkTransactions;
|
|
1490
1559
|
primaryNetworkUtxOs;
|
|
1491
1560
|
primaryNetworkVertices;
|
|
1561
|
+
teleporter;
|
|
1492
1562
|
request;
|
|
1493
1563
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
1494
1564
|
this.request = new HttpRequest({
|
|
@@ -1518,6 +1588,7 @@ class Glacier {
|
|
|
1518
1588
|
this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
|
|
1519
1589
|
this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
|
|
1520
1590
|
this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
|
|
1591
|
+
this.teleporter = new TeleporterService(this.request);
|
|
1521
1592
|
}
|
|
1522
1593
|
}
|
|
1523
1594
|
|
|
@@ -1630,20 +1701,6 @@ exports.ContractSubmissionUnknown = void 0;
|
|
|
1630
1701
|
})(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
|
|
1631
1702
|
})(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
|
|
1632
1703
|
|
|
1633
|
-
exports.CreateEvmTransactionExportRequest = void 0;
|
|
1634
|
-
((CreateEvmTransactionExportRequest2) => {
|
|
1635
|
-
((type2) => {
|
|
1636
|
-
type2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
|
|
1637
|
-
})(CreateEvmTransactionExportRequest2.type || (CreateEvmTransactionExportRequest2.type = {}));
|
|
1638
|
-
})(exports.CreateEvmTransactionExportRequest || (exports.CreateEvmTransactionExportRequest = {}));
|
|
1639
|
-
|
|
1640
|
-
exports.CreatePrimaryNetworkTransactionExportRequest = void 0;
|
|
1641
|
-
((CreatePrimaryNetworkTransactionExportRequest2) => {
|
|
1642
|
-
((type2) => {
|
|
1643
|
-
type2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
|
|
1644
|
-
})(CreatePrimaryNetworkTransactionExportRequest2.type || (CreatePrimaryNetworkTransactionExportRequest2.type = {}));
|
|
1645
|
-
})(exports.CreatePrimaryNetworkTransactionExportRequest || (exports.CreatePrimaryNetworkTransactionExportRequest = {}));
|
|
1646
|
-
|
|
1647
1704
|
var CurrencyCode = /* @__PURE__ */ ((CurrencyCode2) => {
|
|
1648
1705
|
CurrencyCode2["USD"] = "usd";
|
|
1649
1706
|
CurrencyCode2["EUR"] = "eur";
|
|
@@ -1669,6 +1726,20 @@ var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
|
|
|
1669
1726
|
return DelegationStatusType2;
|
|
1670
1727
|
})(DelegationStatusType || {});
|
|
1671
1728
|
|
|
1729
|
+
exports.DeliveredSourceNotIndexedTeleporterMessage = void 0;
|
|
1730
|
+
((DeliveredSourceNotIndexedTeleporterMessage2) => {
|
|
1731
|
+
((status2) => {
|
|
1732
|
+
status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
|
|
1733
|
+
})(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
|
|
1734
|
+
})(exports.DeliveredSourceNotIndexedTeleporterMessage || (exports.DeliveredSourceNotIndexedTeleporterMessage = {}));
|
|
1735
|
+
|
|
1736
|
+
exports.DeliveredTeleporterMessage = void 0;
|
|
1737
|
+
((DeliveredTeleporterMessage2) => {
|
|
1738
|
+
((status2) => {
|
|
1739
|
+
status2["DELIVERED"] = "delivered";
|
|
1740
|
+
})(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
|
|
1741
|
+
})(exports.DeliveredTeleporterMessage || (exports.DeliveredTeleporterMessage = {}));
|
|
1742
|
+
|
|
1672
1743
|
exports.Erc1155Contract = void 0;
|
|
1673
1744
|
((Erc1155Contract2) => {
|
|
1674
1745
|
((ercType2) => {
|
|
@@ -1737,6 +1808,11 @@ var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
|
1737
1808
|
return EventType2;
|
|
1738
1809
|
})(EventType || {});
|
|
1739
1810
|
|
|
1811
|
+
var EVMOperationType = /* @__PURE__ */ ((EVMOperationType2) => {
|
|
1812
|
+
EVMOperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
|
|
1813
|
+
return EVMOperationType2;
|
|
1814
|
+
})(EVMOperationType || {});
|
|
1815
|
+
|
|
1740
1816
|
var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
|
|
1741
1817
|
InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
|
|
1742
1818
|
InternalTransactionOpCall2["CALL"] = "CALL";
|
|
@@ -1791,8 +1867,10 @@ var OperationStatusCode = /* @__PURE__ */ ((OperationStatusCode2) => {
|
|
|
1791
1867
|
})(OperationStatusCode || {});
|
|
1792
1868
|
|
|
1793
1869
|
var OperationType = /* @__PURE__ */ ((OperationType2) => {
|
|
1794
|
-
OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
|
|
1795
1870
|
OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
|
|
1871
|
+
OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
|
|
1872
|
+
OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
|
|
1873
|
+
OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
|
|
1796
1874
|
return OperationType2;
|
|
1797
1875
|
})(OperationType || {});
|
|
1798
1876
|
|
|
@@ -1816,6 +1894,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1816
1894
|
PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
1817
1895
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1818
1896
|
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1897
|
+
PChainTransactionType2["BASE_TX"] = "BaseTx";
|
|
1898
|
+
PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
|
|
1819
1899
|
PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
|
|
1820
1900
|
return PChainTransactionType2;
|
|
1821
1901
|
})(PChainTransactionType || {});
|
|
@@ -1827,6 +1907,13 @@ exports.PendingDelegatorDetails = void 0;
|
|
|
1827
1907
|
})(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
|
|
1828
1908
|
})(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
|
|
1829
1909
|
|
|
1910
|
+
exports.PendingTeleporterMessage = void 0;
|
|
1911
|
+
((PendingTeleporterMessage2) => {
|
|
1912
|
+
((status2) => {
|
|
1913
|
+
status2["PENDING"] = "pending";
|
|
1914
|
+
})(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
|
|
1915
|
+
})(exports.PendingTeleporterMessage || (exports.PendingTeleporterMessage = {}));
|
|
1916
|
+
|
|
1830
1917
|
exports.PendingValidatorDetails = void 0;
|
|
1831
1918
|
((PendingValidatorDetails2) => {
|
|
1832
1919
|
((validationStatus2) => {
|
|
@@ -1859,6 +1946,13 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
|
|
|
1859
1946
|
return PrimaryNetworkChainName2;
|
|
1860
1947
|
})(PrimaryNetworkChainName || {});
|
|
1861
1948
|
|
|
1949
|
+
var PrimaryNetworkOperationType = /* @__PURE__ */ ((PrimaryNetworkOperationType2) => {
|
|
1950
|
+
PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
|
|
1951
|
+
PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
|
|
1952
|
+
PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
|
|
1953
|
+
return PrimaryNetworkOperationType2;
|
|
1954
|
+
})(PrimaryNetworkOperationType || {});
|
|
1955
|
+
|
|
1862
1956
|
var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
1863
1957
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1864
1958
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
@@ -1873,8 +1967,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1873
1967
|
PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
|
|
1874
1968
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1875
1969
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1876
|
-
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
1877
1970
|
PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
|
|
1971
|
+
PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
|
|
1972
|
+
PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
|
|
1878
1973
|
PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
|
|
1879
1974
|
PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
|
|
1880
1975
|
return PrimaryNetworkTxType2;
|
|
@@ -1922,6 +2017,13 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1922
2017
|
return SortOrder2;
|
|
1923
2018
|
})(SortOrder || {});
|
|
1924
2019
|
|
|
2020
|
+
exports.TeleporterRewardDetails = void 0;
|
|
2021
|
+
((TeleporterRewardDetails2) => {
|
|
2022
|
+
((ercType2) => {
|
|
2023
|
+
ercType2["ERC_20"] = "ERC-20";
|
|
2024
|
+
})(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
|
|
2025
|
+
})(exports.TeleporterRewardDetails || (exports.TeleporterRewardDetails = {}));
|
|
2026
|
+
|
|
1925
2027
|
var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
|
|
1926
2028
|
TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
|
|
1927
2029
|
TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
|
|
@@ -2018,6 +2120,7 @@ exports.ChainStatus = ChainStatus;
|
|
|
2018
2120
|
exports.CurrencyCode = CurrencyCode;
|
|
2019
2121
|
exports.DefaultService = DefaultService;
|
|
2020
2122
|
exports.DelegationStatusType = DelegationStatusType;
|
|
2123
|
+
exports.EVMOperationType = EVMOperationType;
|
|
2021
2124
|
exports.EventType = EventType;
|
|
2022
2125
|
exports.EvmBalancesService = EvmBalancesService;
|
|
2023
2126
|
exports.EvmBlocksService = EvmBlocksService;
|
|
@@ -2044,6 +2147,7 @@ exports.PrimaryNetworkAssetType = PrimaryNetworkAssetType;
|
|
|
2044
2147
|
exports.PrimaryNetworkBalancesService = PrimaryNetworkBalancesService;
|
|
2045
2148
|
exports.PrimaryNetworkBlocksService = PrimaryNetworkBlocksService;
|
|
2046
2149
|
exports.PrimaryNetworkChainName = PrimaryNetworkChainName;
|
|
2150
|
+
exports.PrimaryNetworkOperationType = PrimaryNetworkOperationType;
|
|
2047
2151
|
exports.PrimaryNetworkRewardsService = PrimaryNetworkRewardsService;
|
|
2048
2152
|
exports.PrimaryNetworkService = PrimaryNetworkService;
|
|
2049
2153
|
exports.PrimaryNetworkTransactionsService = PrimaryNetworkTransactionsService;
|
|
@@ -2053,6 +2157,7 @@ exports.PrimaryNetworkVerticesService = PrimaryNetworkVerticesService;
|
|
|
2053
2157
|
exports.ResourceLinkType = ResourceLinkType;
|
|
2054
2158
|
exports.RewardType = RewardType;
|
|
2055
2159
|
exports.SortOrder = SortOrder;
|
|
2160
|
+
exports.TeleporterService = TeleporterService;
|
|
2056
2161
|
exports.TransactionMethodType = TransactionMethodType;
|
|
2057
2162
|
exports.TransactionStatus = TransactionStatus;
|
|
2058
2163
|
exports.UtxoType = UtxoType;
|
|
@@ -16,6 +16,7 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
|
|
|
16
16
|
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
17
17
|
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
18
18
|
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
19
|
+
import { TeleporterService } from './services/TeleporterService.js';
|
|
19
20
|
|
|
20
21
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
21
22
|
declare class Glacier {
|
|
@@ -35,6 +36,7 @@ declare class Glacier {
|
|
|
35
36
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
36
37
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
37
38
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
39
|
+
readonly teleporter: TeleporterService;
|
|
38
40
|
readonly request: BaseHttpRequest;
|
|
39
41
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
40
42
|
}
|
package/esm/generated/Glacier.js
CHANGED
|
@@ -15,6 +15,7 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
|
|
|
15
15
|
import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
|
|
16
16
|
import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
|
|
17
17
|
import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
|
|
18
|
+
import { TeleporterService } from './services/TeleporterService.js';
|
|
18
19
|
|
|
19
20
|
class Glacier {
|
|
20
21
|
default;
|
|
@@ -33,6 +34,7 @@ class Glacier {
|
|
|
33
34
|
primaryNetworkTransactions;
|
|
34
35
|
primaryNetworkUtxOs;
|
|
35
36
|
primaryNetworkVertices;
|
|
37
|
+
teleporter;
|
|
36
38
|
request;
|
|
37
39
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
38
40
|
this.request = new HttpRequest({
|
|
@@ -62,6 +64,7 @@ class Glacier {
|
|
|
62
64
|
this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
|
|
63
65
|
this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
|
|
64
66
|
this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
|
|
67
|
+
this.teleporter = new TeleporterService(this.request);
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type AggregatedAssetAmount = {
|
|
4
4
|
/**
|
|
5
5
|
* Unique ID for an asset.
|
|
6
6
|
*/
|
|
@@ -17,14 +17,12 @@ type Asset = {
|
|
|
17
17
|
* Denomination of this asset to represent fungibility.
|
|
18
18
|
*/
|
|
19
19
|
denomination: number;
|
|
20
|
-
/**
|
|
21
|
-
* Type of asset like SECP256K1 or NFT.
|
|
22
|
-
*/
|
|
23
20
|
type: PrimaryNetworkAssetType;
|
|
24
21
|
/**
|
|
25
22
|
* Amount of the asset.
|
|
26
23
|
*/
|
|
27
24
|
amount: string;
|
|
25
|
+
utxoCount: number;
|
|
28
26
|
};
|
|
29
27
|
|
|
30
|
-
export {
|
|
28
|
+
export { AggregatedAssetAmount };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type AssetAmount = {
|
|
4
4
|
/**
|
|
5
5
|
* Unique ID for an asset.
|
|
6
6
|
*/
|
|
@@ -17,15 +17,11 @@ type XChainAssetBalance = {
|
|
|
17
17
|
* Denomination of this asset to represent fungibility.
|
|
18
18
|
*/
|
|
19
19
|
denomination: number;
|
|
20
|
-
/**
|
|
21
|
-
* Type of asset like SECP256K1 or NFT.
|
|
22
|
-
*/
|
|
23
20
|
type: PrimaryNetworkAssetType;
|
|
24
21
|
/**
|
|
25
22
|
* Amount of the asset.
|
|
26
23
|
*/
|
|
27
24
|
amount: string;
|
|
28
|
-
utxoCount: number;
|
|
29
25
|
};
|
|
30
26
|
|
|
31
|
-
export {
|
|
27
|
+
export { AssetAmount };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { EVMInput } from './EVMInput.js';
|
|
3
3
|
import { Utxo } from './Utxo.js';
|
|
4
4
|
|
|
@@ -26,11 +26,11 @@ type CChainExportTransaction = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Assets unlocked by inputs of this transaction.
|
|
28
28
|
*/
|
|
29
|
-
amountUnlocked: Array<
|
|
29
|
+
amountUnlocked: Array<AssetAmount>;
|
|
30
30
|
/**
|
|
31
31
|
* Assets created by outputs of this transaction.
|
|
32
32
|
*/
|
|
33
|
-
amountCreated: Array<
|
|
33
|
+
amountCreated: Array<AssetAmount>;
|
|
34
34
|
/**
|
|
35
35
|
* Source chain for an atomic transaction.
|
|
36
36
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { EVMOutput } from './EVMOutput.js';
|
|
3
3
|
import { Utxo } from './Utxo.js';
|
|
4
4
|
|
|
@@ -26,11 +26,11 @@ type CChainImportTransaction = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Assets unlocked by inputs of this transaction.
|
|
28
28
|
*/
|
|
29
|
-
amountUnlocked: Array<
|
|
29
|
+
amountUnlocked: Array<AssetAmount>;
|
|
30
30
|
/**
|
|
31
31
|
* Assets created by outputs of this transaction.
|
|
32
32
|
*/
|
|
33
|
-
amountCreated: Array<
|
|
33
|
+
amountCreated: Array<AssetAmount>;
|
|
34
34
|
/**
|
|
35
35
|
* Source chain for an atomic transaction.
|
|
36
36
|
*/
|
|
@@ -5,9 +5,6 @@ import { VmName } from './VmName.js';
|
|
|
5
5
|
|
|
6
6
|
type ChainInfo = {
|
|
7
7
|
chainId: string;
|
|
8
|
-
/**
|
|
9
|
-
* 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.
|
|
10
|
-
*/
|
|
11
8
|
status: ChainStatus;
|
|
12
9
|
chainName: string;
|
|
13
10
|
description: string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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.
|
|
3
|
+
*/
|
|
1
4
|
declare enum ChainStatus {
|
|
2
5
|
OK = "OK",
|
|
3
6
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EvmNetworkOptions } from './EvmNetworkOptions.js';
|
|
2
|
+
import { EVMOperationType } from './EVMOperationType.js';
|
|
2
3
|
|
|
3
4
|
type CreateEvmTransactionExportRequest = {
|
|
4
|
-
type:
|
|
5
|
+
type: EVMOperationType;
|
|
5
6
|
firstDate: string;
|
|
6
7
|
lastDate: string;
|
|
7
8
|
/**
|
|
@@ -14,10 +15,5 @@ type CreateEvmTransactionExportRequest = {
|
|
|
14
15
|
endDate: string;
|
|
15
16
|
options: EvmNetworkOptions;
|
|
16
17
|
};
|
|
17
|
-
declare namespace CreateEvmTransactionExportRequest {
|
|
18
|
-
enum type {
|
|
19
|
-
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
18
|
|
|
23
19
|
export { CreateEvmTransactionExportRequest };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PrimaryNetworkOperationType } from './PrimaryNetworkOperationType.js';
|
|
1
2
|
import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
|
|
2
3
|
|
|
3
4
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
4
|
-
type:
|
|
5
|
+
type: PrimaryNetworkOperationType;
|
|
5
6
|
firstDate: string;
|
|
6
7
|
lastDate: string;
|
|
7
8
|
/**
|
|
@@ -14,10 +15,5 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
14
15
|
endDate: string;
|
|
15
16
|
options: PrimaryNetworkOptions;
|
|
16
17
|
};
|
|
17
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
18
|
-
enum type {
|
|
19
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
18
|
|
|
23
19
|
export { CreatePrimaryNetworkTransactionExportRequest };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
|
|
2
|
+
import { TeleporterReceipt } from './TeleporterReceipt.js';
|
|
3
|
+
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
4
|
+
|
|
5
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
6
|
+
messageId: string;
|
|
7
|
+
teleporterContractAddress: string;
|
|
8
|
+
sourceBlockchainId: string;
|
|
9
|
+
destinationBlockchainId: string;
|
|
10
|
+
messageNonce: string;
|
|
11
|
+
from: string;
|
|
12
|
+
to: string;
|
|
13
|
+
data?: string;
|
|
14
|
+
messageExecuted: boolean;
|
|
15
|
+
receipts: Array<TeleporterReceipt>;
|
|
16
|
+
receiptDelivered: boolean;
|
|
17
|
+
rewardDetails: TeleporterRewardDetails;
|
|
18
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
19
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
20
|
+
};
|
|
21
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
22
|
+
enum status {
|
|
23
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { DeliveredSourceNotIndexedTeleporterMessage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var DeliveredSourceNotIndexedTeleporterMessage;
|
|
2
|
+
((DeliveredSourceNotIndexedTeleporterMessage2) => {
|
|
3
|
+
((status2) => {
|
|
4
|
+
status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
|
|
5
|
+
})(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
|
|
6
|
+
})(DeliveredSourceNotIndexedTeleporterMessage || (DeliveredSourceNotIndexedTeleporterMessage = {}));
|
|
7
|
+
|
|
8
|
+
export { DeliveredSourceNotIndexedTeleporterMessage };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
|
|
2
|
+
import { TeleporterReceipt } from './TeleporterReceipt.js';
|
|
3
|
+
import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
|
|
4
|
+
import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
|
|
5
|
+
|
|
6
|
+
type DeliveredTeleporterMessage = {
|
|
7
|
+
messageId: string;
|
|
8
|
+
teleporterContractAddress: string;
|
|
9
|
+
sourceBlockchainId: string;
|
|
10
|
+
destinationBlockchainId: string;
|
|
11
|
+
messageNonce: string;
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
data?: string;
|
|
15
|
+
messageExecuted: boolean;
|
|
16
|
+
receipts: Array<TeleporterReceipt>;
|
|
17
|
+
receiptDelivered: boolean;
|
|
18
|
+
rewardDetails: TeleporterRewardDetails;
|
|
19
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
20
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
21
|
+
status: DeliveredTeleporterMessage.status;
|
|
22
|
+
};
|
|
23
|
+
declare namespace DeliveredTeleporterMessage {
|
|
24
|
+
enum status {
|
|
25
|
+
DELIVERED = "delivered"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { DeliveredTeleporterMessage };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var DeliveredTeleporterMessage;
|
|
2
|
+
((DeliveredTeleporterMessage2) => {
|
|
3
|
+
((status2) => {
|
|
4
|
+
status2["DELIVERED"] = "delivered";
|
|
5
|
+
})(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
|
|
6
|
+
})(DeliveredTeleporterMessage || (DeliveredTeleporterMessage = {}));
|
|
7
|
+
|
|
8
|
+
export { DeliveredTeleporterMessage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { UtxoCredential } from './UtxoCredential.js';
|
|
3
3
|
|
|
4
4
|
type EVMInput = {
|
|
@@ -7,9 +7,9 @@ type EVMInput = {
|
|
|
7
7
|
*/
|
|
8
8
|
fromAddress: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* AssetAmount details for the asset being transferred.
|
|
11
11
|
*/
|
|
12
|
-
asset:
|
|
12
|
+
asset: AssetAmount;
|
|
13
13
|
/**
|
|
14
14
|
* Credentials that signed this transaction.
|
|
15
15
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
|
|
3
3
|
type EVMOutput = {
|
|
4
4
|
/**
|
|
@@ -6,9 +6,9 @@ type EVMOutput = {
|
|
|
6
6
|
*/
|
|
7
7
|
toAddress: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* AssetAmount details for the asset being transferred.
|
|
10
10
|
*/
|
|
11
|
-
asset:
|
|
11
|
+
asset: AssetAmount;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { EVMOutput };
|
|
@@ -5,9 +5,6 @@ import { VmName } from './VmName.js';
|
|
|
5
5
|
|
|
6
6
|
type GetChainResponse = {
|
|
7
7
|
chainId: string;
|
|
8
|
-
/**
|
|
9
|
-
* 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.
|
|
10
|
-
*/
|
|
11
8
|
status: ChainStatus;
|
|
12
9
|
chainName: string;
|
|
13
10
|
description: string;
|
|
@@ -6,7 +6,7 @@ type ListNftTokens = {
|
|
|
6
6
|
* 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.
|
|
7
7
|
*/
|
|
8
8
|
nextPageToken?: string;
|
|
9
|
-
tokens:
|
|
9
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { ListNftTokens };
|
|
@@ -7,7 +7,7 @@ type ListTransfersResponse = {
|
|
|
7
7
|
* 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.
|
|
8
8
|
*/
|
|
9
9
|
nextPageToken?: string;
|
|
10
|
-
transfers:
|
|
10
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { ListTransfersResponse };
|