@m0-foundation/ntt-sdk-route 0.0.21 → 0.0.23
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.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -3
- package/dist/index.mjs +8 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ type Contracts = Ntt.Contracts & {
|
|
|
20
20
|
};
|
|
21
21
|
declare class M0AutomaticRoute<N extends Network> extends routes.AutomaticRoute<N, Op, Vp, R> implements routes.StaticRouteMethods<typeof M0AutomaticRoute> {
|
|
22
22
|
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean;
|
|
23
|
+
static EVM_USDZ_TOKEN: string;
|
|
23
24
|
static EVM_WRAPPED_M_TOKEN: string;
|
|
24
25
|
static EXECUTOR_ENTRYPOINT: string;
|
|
25
26
|
static EVM_CONTRACTS: Contracts;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ type Contracts = Ntt.Contracts & {
|
|
|
20
20
|
};
|
|
21
21
|
declare class M0AutomaticRoute<N extends Network> extends routes.AutomaticRoute<N, Op, Vp, R> implements routes.StaticRouteMethods<typeof M0AutomaticRoute> {
|
|
22
22
|
static NATIVE_GAS_DROPOFF_SUPPORTED: boolean;
|
|
23
|
+
static EVM_USDZ_TOKEN: string;
|
|
23
24
|
static EVM_WRAPPED_M_TOKEN: string;
|
|
24
25
|
static EXECUTOR_ENTRYPOINT: string;
|
|
25
26
|
static EVM_CONTRACTS: Contracts;
|
package/dist/index.js
CHANGED
|
@@ -669,7 +669,7 @@ function pk(address) {
|
|
|
669
669
|
function getExecutorConfig(network = "Mainnet") {
|
|
670
670
|
const svmContracts = SolanaRoutes.getSolanaContracts(network, "Solana");
|
|
671
671
|
const svmChains = ["Solana", "Fogo"];
|
|
672
|
-
const evmChains = network === "Mainnet" ? ["Ethereum", "Optimism", "Arbitrum"] : ["Sepolia", "ArbitrumSepolia", "OptimismSepolia"];
|
|
672
|
+
const evmChains = network === "Mainnet" ? ["Ethereum", "Optimism", "Arbitrum", "Base"] : ["Sepolia", "ArbitrumSepolia", "OptimismSepolia", "BaseSepolia"];
|
|
673
673
|
return {
|
|
674
674
|
ntt: {
|
|
675
675
|
tokens: {
|
|
@@ -732,12 +732,13 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
|
|
|
732
732
|
static supportedChains(network) {
|
|
733
733
|
switch (network) {
|
|
734
734
|
case "Mainnet":
|
|
735
|
-
return ["Ethereum", "Arbitrum", "Optimism", "Solana", "Fogo"];
|
|
735
|
+
return ["Ethereum", "Arbitrum", "Optimism", "Base", "Solana", "Fogo"];
|
|
736
736
|
case "Testnet":
|
|
737
737
|
return [
|
|
738
738
|
"Sepolia",
|
|
739
739
|
"ArbitrumSepolia",
|
|
740
740
|
"OptimismSepolia",
|
|
741
|
+
"BaseSepolia",
|
|
741
742
|
"Solana",
|
|
742
743
|
"Fogo"
|
|
743
744
|
];
|
|
@@ -750,9 +751,11 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
|
|
|
750
751
|
case "Ethereum":
|
|
751
752
|
case "Optimism":
|
|
752
753
|
case "Arbitrum":
|
|
754
|
+
case "Base":
|
|
753
755
|
case "Sepolia":
|
|
754
756
|
case "OptimismSepolia":
|
|
755
757
|
case "ArbitrumSepolia":
|
|
758
|
+
case "BaseSepolia":
|
|
756
759
|
return this.EVM_CONTRACTS;
|
|
757
760
|
case "Solana":
|
|
758
761
|
case "Fogo":
|
|
@@ -1165,6 +1168,8 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends sdkConnect.routes.Automa
|
|
|
1165
1168
|
};
|
|
1166
1169
|
// ntt does not support gas drop-off currently
|
|
1167
1170
|
_M0AutomaticRoute.NATIVE_GAS_DROPOFF_SUPPORTED = false;
|
|
1171
|
+
// USDZ token address is the same across Ethereum and Arbitrum
|
|
1172
|
+
_M0AutomaticRoute.EVM_USDZ_TOKEN = "0xA4B6DF229AEe22b4252dc578FEB2720E8A2C4A56";
|
|
1168
1173
|
// Wrapped M token address is the same on EVM chains
|
|
1169
1174
|
_M0AutomaticRoute.EVM_WRAPPED_M_TOKEN = "0x437cc33344a0B27A429f795ff6B469C72698B291";
|
|
1170
1175
|
_M0AutomaticRoute.EXECUTOR_ENTRYPOINT = "0x22f04a6cd935bfa3b4d000a4e3d4079adb148198";
|
|
@@ -1173,7 +1178,7 @@ _M0AutomaticRoute.EVM_CONTRACTS = {
|
|
|
1173
1178
|
// M token address is the same on EVM chains
|
|
1174
1179
|
token: "0x866A2BF4E572CbcF37D5071A7a58503Bfb36be1b",
|
|
1175
1180
|
// Wrapped $M and Extension Tokens that can bridged by unwrapping to $M
|
|
1176
|
-
mLikeTokens: [_M0AutomaticRoute.EVM_WRAPPED_M_TOKEN],
|
|
1181
|
+
mLikeTokens: [_M0AutomaticRoute.EVM_WRAPPED_M_TOKEN, _M0AutomaticRoute.EVM_USDZ_TOKEN],
|
|
1177
1182
|
// M0 Portal address is the same on EVM chains
|
|
1178
1183
|
manager: "0xD925C84b55E4e44a53749fF5F2a5A13F63D128fd",
|
|
1179
1184
|
// Wormhole transceiver address is the same on EVM chains
|
package/dist/index.mjs
CHANGED
|
@@ -663,7 +663,7 @@ function pk(address) {
|
|
|
663
663
|
function getExecutorConfig(network = "Mainnet") {
|
|
664
664
|
const svmContracts = SolanaRoutes.getSolanaContracts(network, "Solana");
|
|
665
665
|
const svmChains = ["Solana", "Fogo"];
|
|
666
|
-
const evmChains = network === "Mainnet" ? ["Ethereum", "Optimism", "Arbitrum"] : ["Sepolia", "ArbitrumSepolia", "OptimismSepolia"];
|
|
666
|
+
const evmChains = network === "Mainnet" ? ["Ethereum", "Optimism", "Arbitrum", "Base"] : ["Sepolia", "ArbitrumSepolia", "OptimismSepolia", "BaseSepolia"];
|
|
667
667
|
return {
|
|
668
668
|
ntt: {
|
|
669
669
|
tokens: {
|
|
@@ -726,12 +726,13 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
|
|
|
726
726
|
static supportedChains(network) {
|
|
727
727
|
switch (network) {
|
|
728
728
|
case "Mainnet":
|
|
729
|
-
return ["Ethereum", "Arbitrum", "Optimism", "Solana", "Fogo"];
|
|
729
|
+
return ["Ethereum", "Arbitrum", "Optimism", "Base", "Solana", "Fogo"];
|
|
730
730
|
case "Testnet":
|
|
731
731
|
return [
|
|
732
732
|
"Sepolia",
|
|
733
733
|
"ArbitrumSepolia",
|
|
734
734
|
"OptimismSepolia",
|
|
735
|
+
"BaseSepolia",
|
|
735
736
|
"Solana",
|
|
736
737
|
"Fogo"
|
|
737
738
|
];
|
|
@@ -744,9 +745,11 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
|
|
|
744
745
|
case "Ethereum":
|
|
745
746
|
case "Optimism":
|
|
746
747
|
case "Arbitrum":
|
|
748
|
+
case "Base":
|
|
747
749
|
case "Sepolia":
|
|
748
750
|
case "OptimismSepolia":
|
|
749
751
|
case "ArbitrumSepolia":
|
|
752
|
+
case "BaseSepolia":
|
|
750
753
|
return this.EVM_CONTRACTS;
|
|
751
754
|
case "Solana":
|
|
752
755
|
case "Fogo":
|
|
@@ -1159,6 +1162,8 @@ var _M0AutomaticRoute = class _M0AutomaticRoute extends routes.AutomaticRoute {
|
|
|
1159
1162
|
};
|
|
1160
1163
|
// ntt does not support gas drop-off currently
|
|
1161
1164
|
_M0AutomaticRoute.NATIVE_GAS_DROPOFF_SUPPORTED = false;
|
|
1165
|
+
// USDZ token address is the same across Ethereum and Arbitrum
|
|
1166
|
+
_M0AutomaticRoute.EVM_USDZ_TOKEN = "0xA4B6DF229AEe22b4252dc578FEB2720E8A2C4A56";
|
|
1162
1167
|
// Wrapped M token address is the same on EVM chains
|
|
1163
1168
|
_M0AutomaticRoute.EVM_WRAPPED_M_TOKEN = "0x437cc33344a0B27A429f795ff6B469C72698B291";
|
|
1164
1169
|
_M0AutomaticRoute.EXECUTOR_ENTRYPOINT = "0x22f04a6cd935bfa3b4d000a4e3d4079adb148198";
|
|
@@ -1167,7 +1172,7 @@ _M0AutomaticRoute.EVM_CONTRACTS = {
|
|
|
1167
1172
|
// M token address is the same on EVM chains
|
|
1168
1173
|
token: "0x866A2BF4E572CbcF37D5071A7a58503Bfb36be1b",
|
|
1169
1174
|
// Wrapped $M and Extension Tokens that can bridged by unwrapping to $M
|
|
1170
|
-
mLikeTokens: [_M0AutomaticRoute.EVM_WRAPPED_M_TOKEN],
|
|
1175
|
+
mLikeTokens: [_M0AutomaticRoute.EVM_WRAPPED_M_TOKEN, _M0AutomaticRoute.EVM_USDZ_TOKEN],
|
|
1171
1176
|
// M0 Portal address is the same on EVM chains
|
|
1172
1177
|
manager: "0xD925C84b55E4e44a53749fF5F2a5A13F63D128fd",
|
|
1173
1178
|
// Wormhole transceiver address is the same on EVM chains
|