@layerzerolabs/lz-definitions 3.0.19-ton.0 → 3.0.19
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/CHANGELOG.md +2 -2
- package/dist/index.cjs +45 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -12
- package/dist/index.d.ts +47 -12
- package/dist/index.mjs +45 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -190,6 +190,11 @@ var EvmChain = /* @__PURE__ */ ((EvmChain2) => {
|
|
|
190
190
|
EvmChain2["ISLANDER"] = "islander";
|
|
191
191
|
EvmChain2["BL3"] = "bl3";
|
|
192
192
|
EvmChain2["MP1"] = "mp1";
|
|
193
|
+
EvmChain2["SONIC"] = "sonic";
|
|
194
|
+
EvmChain2["ROOTSTOCK"] = "rootstock";
|
|
195
|
+
EvmChain2["FLOW"] = "flow";
|
|
196
|
+
EvmChain2["NIBIRU"] = "nibiru";
|
|
197
|
+
EvmChain2["SWELL"] = "swell";
|
|
193
198
|
return EvmChain2;
|
|
194
199
|
})(EvmChain || {});
|
|
195
200
|
|
|
@@ -474,12 +479,10 @@ var TestnetEndpointId = /* @__PURE__ */ ((TestnetEndpointId2) => {
|
|
|
474
479
|
TestnetEndpointId2[TestnetEndpointId2["IOTA_TESTNET"] = 10307] = "IOTA_TESTNET";
|
|
475
480
|
TestnetEndpointId2[TestnetEndpointId2["LYRA_TESTNET"] = 10308] = "LYRA_TESTNET";
|
|
476
481
|
TestnetEndpointId2[TestnetEndpointId2["LIGHTLINK_TESTNET"] = 10309] = "LIGHTLINK_TESTNET";
|
|
477
|
-
TestnetEndpointId2[TestnetEndpointId2["BAHAMUT_TESTNET"] = 10310] = "BAHAMUT_TESTNET";
|
|
478
482
|
TestnetEndpointId2[TestnetEndpointId2["CODEX_TESTNET"] = 10311] = "CODEX_TESTNET";
|
|
479
483
|
TestnetEndpointId2[TestnetEndpointId2["OTHERWORLD_TESTNET"] = 10337] = "OTHERWORLD_TESTNET";
|
|
480
484
|
TestnetEndpointId2[TestnetEndpointId2["ABSTRACT_TESTNET"] = 10313] = "ABSTRACT_TESTNET";
|
|
481
485
|
TestnetEndpointId2[TestnetEndpointId2["STORY_TESTNET"] = 10315] = "STORY_TESTNET";
|
|
482
|
-
TestnetEndpointId2[TestnetEndpointId2["TREASURE_TESTNET"] = 10316] = "TREASURE_TESTNET";
|
|
483
486
|
TestnetEndpointId2[TestnetEndpointId2["ROOT_TESTNET"] = 10318] = "ROOT_TESTNET";
|
|
484
487
|
TestnetEndpointId2[TestnetEndpointId2["REYA_TESTNET"] = 10319] = "REYA_TESTNET";
|
|
485
488
|
TestnetEndpointId2[TestnetEndpointId2["BITLAYER_TESTNET"] = 10320] = "BITLAYER_TESTNET";
|
|
@@ -505,6 +508,13 @@ var TestnetEndpointId = /* @__PURE__ */ ((TestnetEndpointId2) => {
|
|
|
505
508
|
TestnetEndpointId2[TestnetEndpointId2["CITREA_TESTNET"] = 10344] = "CITREA_TESTNET";
|
|
506
509
|
TestnetEndpointId2[TestnetEndpointId2["MP1_TESTNET"] = 10345] = "MP1_TESTNET";
|
|
507
510
|
TestnetEndpointId2[TestnetEndpointId2["BL3_TESTNET"] = 10346] = "BL3_TESTNET";
|
|
511
|
+
TestnetEndpointId2[TestnetEndpointId2["BAHAMUT_TESTNET"] = 10347] = "BAHAMUT_TESTNET";
|
|
512
|
+
TestnetEndpointId2[TestnetEndpointId2["TREASURE_TESTNET"] = 10348] = "TREASURE_TESTNET";
|
|
513
|
+
TestnetEndpointId2[TestnetEndpointId2["SONIC_TESTNET"] = 10349] = "SONIC_TESTNET";
|
|
514
|
+
TestnetEndpointId2[TestnetEndpointId2["ROOTSTOCK_TESTNET"] = 10350] = "ROOTSTOCK_TESTNET";
|
|
515
|
+
TestnetEndpointId2[TestnetEndpointId2["FLOW_TESTNET"] = 10351] = "FLOW_TESTNET";
|
|
516
|
+
TestnetEndpointId2[TestnetEndpointId2["NIBIRU_TESTNET"] = 10352] = "NIBIRU_TESTNET";
|
|
517
|
+
TestnetEndpointId2[TestnetEndpointId2["SWELL_TESTNET"] = 10353] = "SWELL_TESTNET";
|
|
508
518
|
return TestnetEndpointId2;
|
|
509
519
|
})(TestnetEndpointId || {});
|
|
510
520
|
var SandboxEndpointId = /* @__PURE__ */ ((SandboxEndpointId2) => {
|
|
@@ -762,12 +772,10 @@ var TestnetV2EndpointId = /* @__PURE__ */ ((TestnetV2EndpointId2) => {
|
|
|
762
772
|
TestnetV2EndpointId2[TestnetV2EndpointId2["IOTA_V2_TESTNET"] = 40307] = "IOTA_V2_TESTNET";
|
|
763
773
|
TestnetV2EndpointId2[TestnetV2EndpointId2["LYRA_V2_TESTNET"] = 40308] = "LYRA_V2_TESTNET";
|
|
764
774
|
TestnetV2EndpointId2[TestnetV2EndpointId2["LIGHTLINK_V2_TESTNET"] = 40309] = "LIGHTLINK_V2_TESTNET";
|
|
765
|
-
TestnetV2EndpointId2[TestnetV2EndpointId2["BAHAMUT_V2_TESTNET"] = 40310] = "BAHAMUT_V2_TESTNET";
|
|
766
775
|
TestnetV2EndpointId2[TestnetV2EndpointId2["CODEX_V2_TESTNET"] = 40311] = "CODEX_V2_TESTNET";
|
|
767
776
|
TestnetV2EndpointId2[TestnetV2EndpointId2["OTHERWORLD_V2_TESTNET"] = 40337] = "OTHERWORLD_V2_TESTNET";
|
|
768
777
|
TestnetV2EndpointId2[TestnetV2EndpointId2["ABSTRACT_V2_TESTNET"] = 40313] = "ABSTRACT_V2_TESTNET";
|
|
769
778
|
TestnetV2EndpointId2[TestnetV2EndpointId2["STORY_V2_TESTNET"] = 40315] = "STORY_V2_TESTNET";
|
|
770
|
-
TestnetV2EndpointId2[TestnetV2EndpointId2["TREASURE_V2_TESTNET"] = 40316] = "TREASURE_V2_TESTNET";
|
|
771
779
|
TestnetV2EndpointId2[TestnetV2EndpointId2["APTOS_V2_TESTNET"] = 40108] = "APTOS_V2_TESTNET";
|
|
772
780
|
TestnetV2EndpointId2[TestnetV2EndpointId2["ROOT_V2_TESTNET"] = 40318] = "ROOT_V2_TESTNET";
|
|
773
781
|
TestnetV2EndpointId2[TestnetV2EndpointId2["REYA_V2_TESTNET"] = 40319] = "REYA_V2_TESTNET";
|
|
@@ -797,6 +805,13 @@ var TestnetV2EndpointId = /* @__PURE__ */ ((TestnetV2EndpointId2) => {
|
|
|
797
805
|
TestnetV2EndpointId2[TestnetV2EndpointId2["CITREA_V2_TESTNET"] = 40344] = "CITREA_V2_TESTNET";
|
|
798
806
|
TestnetV2EndpointId2[TestnetV2EndpointId2["MP1_V2_TESTNET"] = 40345] = "MP1_V2_TESTNET";
|
|
799
807
|
TestnetV2EndpointId2[TestnetV2EndpointId2["BL3_V2_TESTNET"] = 40346] = "BL3_V2_TESTNET";
|
|
808
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["BAHAMUT_V2_TESTNET"] = 40347] = "BAHAMUT_V2_TESTNET";
|
|
809
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["TREASURE_V2_TESTNET"] = 40348] = "TREASURE_V2_TESTNET";
|
|
810
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["SONIC_V2_TESTNET"] = 40349] = "SONIC_V2_TESTNET";
|
|
811
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["ROOTSTOCK_V2_TESTNET"] = 40350] = "ROOTSTOCK_V2_TESTNET";
|
|
812
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["FLOW_V2_TESTNET"] = 40351] = "FLOW_V2_TESTNET";
|
|
813
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["NIBIRU_V2_TESTNET"] = 40352] = "NIBIRU_V2_TESTNET";
|
|
814
|
+
TestnetV2EndpointId2[TestnetV2EndpointId2["SWELL_V2_TESTNET"] = 40353] = "SWELL_V2_TESTNET";
|
|
800
815
|
return TestnetV2EndpointId2;
|
|
801
816
|
})(TestnetV2EndpointId || {});
|
|
802
817
|
var SandboxV2EndpointId = /* @__PURE__ */ ((SandboxV2EndpointId2) => {
|
|
@@ -1154,6 +1169,11 @@ var ChainKey = /* @__PURE__ */ ((ChainKey3) => {
|
|
|
1154
1169
|
ChainKey3["BL3_TESTNET"] = "bl3-testnet";
|
|
1155
1170
|
ChainKey3["MP1_TESTNET"] = "mp1-testnet";
|
|
1156
1171
|
ChainKey3["MP1"] = "mp1";
|
|
1172
|
+
ChainKey3["SONIC_TESTNET"] = "sonic-testnet";
|
|
1173
|
+
ChainKey3["ROOTSTOCK_TESTNET"] = "rootstock-testnet";
|
|
1174
|
+
ChainKey3["FLOW_TESTNET"] = "flow-testnet";
|
|
1175
|
+
ChainKey3["NIBIRU_TESTNET"] = "nibiru-testnet";
|
|
1176
|
+
ChainKey3["SWELL_TESTNET"] = "swell-testnet";
|
|
1157
1177
|
return ChainKey3;
|
|
1158
1178
|
})(ChainKey || {});
|
|
1159
1179
|
|
|
@@ -1555,6 +1575,11 @@ var CHAIN_KEY = {
|
|
|
1555
1575
|
[EndpointId.CITREA_TESTNET]: "citrea-testnet" /* CITREA_TESTNET */,
|
|
1556
1576
|
[EndpointId.BL3_TESTNET]: "bl3-testnet" /* BL3_TESTNET */,
|
|
1557
1577
|
[EndpointId.MP1_TESTNET]: "mp1-testnet" /* MP1_TESTNET */,
|
|
1578
|
+
[EndpointId.SONIC_TESTNET]: "sonic-testnet" /* SONIC_TESTNET */,
|
|
1579
|
+
[EndpointId.ROOTSTOCK_TESTNET]: "rootstock-testnet" /* ROOTSTOCK_TESTNET */,
|
|
1580
|
+
[EndpointId.FLOW_TESTNET]: "flow-testnet" /* FLOW_TESTNET */,
|
|
1581
|
+
[EndpointId.NIBIRU_TESTNET]: "nibiru-testnet" /* NIBIRU_TESTNET */,
|
|
1582
|
+
[EndpointId.SWELL_TESTNET]: "swell-testnet" /* SWELL_TESTNET */,
|
|
1558
1583
|
// v2 testnet
|
|
1559
1584
|
[EndpointId.ETHEREUM_V2_TESTNET]: "sepolia" /* SEPOLIA */,
|
|
1560
1585
|
[EndpointId.POLYGON_V2_TESTNET]: "mumbai" /* MUMBAI */,
|
|
@@ -1717,6 +1742,11 @@ var CHAIN_KEY = {
|
|
|
1717
1742
|
[EndpointId.CITREA_V2_TESTNET]: "citrea-testnet" /* CITREA_TESTNET */,
|
|
1718
1743
|
[EndpointId.BL3_V2_TESTNET]: "bl3-testnet" /* BL3_TESTNET */,
|
|
1719
1744
|
[EndpointId.MP1_V2_TESTNET]: "mp1-testnet" /* MP1_TESTNET */,
|
|
1745
|
+
[EndpointId.SONIC_V2_TESTNET]: "sonic-testnet" /* SONIC_TESTNET */,
|
|
1746
|
+
[EndpointId.ROOTSTOCK_V2_TESTNET]: "rootstock-testnet" /* ROOTSTOCK_TESTNET */,
|
|
1747
|
+
[EndpointId.FLOW_V2_TESTNET]: "flow-testnet" /* FLOW_TESTNET */,
|
|
1748
|
+
[EndpointId.NIBIRU_V2_TESTNET]: "nibiru-testnet" /* NIBIRU_TESTNET */,
|
|
1749
|
+
[EndpointId.SWELL_V2_TESTNET]: "swell-testnet" /* SWELL_TESTNET */,
|
|
1720
1750
|
// sandbox
|
|
1721
1751
|
[EndpointId.ETHEREUM_SANDBOX]: "ethereum-sandbox" /* ETHEREUM_SANDBOX */,
|
|
1722
1752
|
[EndpointId.BSC_SANDBOX]: "bsc-sandbox" /* BSC_SANDBOX */,
|
|
@@ -2129,6 +2159,11 @@ var ENVIRONMENT = {
|
|
|
2129
2159
|
[EndpointId.CITREA_TESTNET]: "testnet" /* TESTNET */,
|
|
2130
2160
|
[EndpointId.BL3_TESTNET]: "testnet" /* TESTNET */,
|
|
2131
2161
|
[EndpointId.MP1_TESTNET]: "testnet" /* TESTNET */,
|
|
2162
|
+
[EndpointId.SONIC_TESTNET]: "testnet" /* TESTNET */,
|
|
2163
|
+
[EndpointId.ROOTSTOCK_TESTNET]: "testnet" /* TESTNET */,
|
|
2164
|
+
[EndpointId.FLOW_TESTNET]: "testnet" /* TESTNET */,
|
|
2165
|
+
[EndpointId.NIBIRU_TESTNET]: "testnet" /* TESTNET */,
|
|
2166
|
+
[EndpointId.SWELL_TESTNET]: "testnet" /* TESTNET */,
|
|
2132
2167
|
// v2 testnet
|
|
2133
2168
|
[EndpointId.ETHEREUM_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2134
2169
|
[EndpointId.POLYGON_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
@@ -2291,6 +2326,11 @@ var ENVIRONMENT = {
|
|
|
2291
2326
|
[EndpointId.CITREA_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2292
2327
|
[EndpointId.BL3_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2293
2328
|
[EndpointId.MP1_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2329
|
+
[EndpointId.SONIC_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2330
|
+
[EndpointId.ROOTSTOCK_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2331
|
+
[EndpointId.FLOW_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2332
|
+
[EndpointId.NIBIRU_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2333
|
+
[EndpointId.SWELL_V2_TESTNET]: "testnet" /* TESTNET */,
|
|
2294
2334
|
// sandbox
|
|
2295
2335
|
[EndpointId.ETHEREUM_SANDBOX]: "testnet" /* TESTNET */,
|
|
2296
2336
|
[EndpointId.BSC_SANDBOX]: "testnet" /* TESTNET */,
|
|
@@ -2550,7 +2590,7 @@ function isNetworkEndpointIdSupported(network, endpointVersion) {
|
|
|
2550
2590
|
}
|
|
2551
2591
|
}
|
|
2552
2592
|
function isZKSyncBasedChain(chain) {
|
|
2553
|
-
return chain === Chain.ZKSYNC || chain === Chain.ZKSYNCSEP || chain === Chain.ZKLINK || chain === Chain.ABSTRACT || chain === Chain.SOPHON;
|
|
2593
|
+
return chain === Chain.ZKSYNC || chain === Chain.ZKSYNCSEP || chain === Chain.ZKLINK || chain === Chain.ABSTRACT || chain === Chain.SOPHON || chain === Chain.TREASURE;
|
|
2554
2594
|
}
|
|
2555
2595
|
function isTronChain(chain) {
|
|
2556
2596
|
return chain === Chain.TRON || chain === Chain.TRONDEV;
|