@optimex-xyz/market-maker-sdk 0.10.1 → 0.10.6
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6337,8 +6337,8 @@ declare enum OptimexEvmNetwork {
|
|
|
6337
6337
|
BSC = "bsc"
|
|
6338
6338
|
}
|
|
6339
6339
|
declare enum OptimexL2Network {
|
|
6340
|
-
Testnet = "
|
|
6341
|
-
Mainnet = "
|
|
6340
|
+
Testnet = "base_sepolia",
|
|
6341
|
+
Mainnet = "base"
|
|
6342
6342
|
}
|
|
6343
6343
|
declare enum OptimexBtcNetwork {
|
|
6344
6344
|
BitcoinTestnet = "bitcoin_testnet",
|
package/dist/index.d.ts
CHANGED
|
@@ -6337,8 +6337,8 @@ declare enum OptimexEvmNetwork {
|
|
|
6337
6337
|
BSC = "bsc"
|
|
6338
6338
|
}
|
|
6339
6339
|
declare enum OptimexL2Network {
|
|
6340
|
-
Testnet = "
|
|
6341
|
-
Mainnet = "
|
|
6340
|
+
Testnet = "base_sepolia",
|
|
6341
|
+
Mainnet = "base"
|
|
6342
6342
|
}
|
|
6343
6343
|
declare enum OptimexBtcNetwork {
|
|
6344
6344
|
BitcoinTestnet = "bitcoin_testnet",
|
package/dist/index.js
CHANGED
|
@@ -4828,8 +4828,8 @@ var OptimexEvmNetwork = /* @__PURE__ */ ((OptimexEvmNetwork3) => {
|
|
|
4828
4828
|
return OptimexEvmNetwork3;
|
|
4829
4829
|
})(OptimexEvmNetwork || {});
|
|
4830
4830
|
var OptimexL2Network = /* @__PURE__ */ ((OptimexL2Network2) => {
|
|
4831
|
-
OptimexL2Network2["Testnet"] = "
|
|
4832
|
-
OptimexL2Network2["Mainnet"] = "
|
|
4831
|
+
OptimexL2Network2["Testnet"] = "base_sepolia";
|
|
4832
|
+
OptimexL2Network2["Mainnet"] = "base";
|
|
4833
4833
|
return OptimexL2Network2;
|
|
4834
4834
|
})(OptimexL2Network || {});
|
|
4835
4835
|
var OptimexBtcNetwork = /* @__PURE__ */ ((OptimexBtcNetwork2) => {
|
|
@@ -4881,7 +4881,7 @@ var ProtocolService = class {
|
|
|
4881
4881
|
constructor() {
|
|
4882
4882
|
this.provider = new import_ethers7.JsonRpcProvider(config.getRpcUrl());
|
|
4883
4883
|
this.contract = ProtocolFetcherProxy__factory.connect(config.getProtocolFetcherAddress(), this.provider);
|
|
4884
|
-
this.l2Network = config.isTestnet() ? "
|
|
4884
|
+
this.l2Network = config.isTestnet() ? "base_sepolia" /* Testnet */ : "base" /* Mainnet */;
|
|
4885
4885
|
config.registerObserver(this);
|
|
4886
4886
|
}
|
|
4887
4887
|
/**
|
|
@@ -4891,7 +4891,7 @@ var ProtocolService = class {
|
|
|
4891
4891
|
onConfigUpdate(newConfig) {
|
|
4892
4892
|
this.provider = new import_ethers7.JsonRpcProvider(newConfig.rpcUrl);
|
|
4893
4893
|
this.contract = ProtocolFetcherProxy__factory.connect(newConfig.protocolFetcherProxyAddress, this.provider);
|
|
4894
|
-
this.l2Network = newConfig.isTestnet ? "
|
|
4894
|
+
this.l2Network = newConfig.isTestnet ? "base_sepolia" /* Testnet */ : "base" /* Mainnet */;
|
|
4895
4895
|
}
|
|
4896
4896
|
async getCurrentPubkey(network) {
|
|
4897
4897
|
return this.contract.getLatestMPCInfo(import_ethers7.ethers.toUtf8Bytes(network));
|
package/dist/index.mjs
CHANGED
|
@@ -4740,8 +4740,8 @@ var OptimexEvmNetwork = /* @__PURE__ */ ((OptimexEvmNetwork3) => {
|
|
|
4740
4740
|
return OptimexEvmNetwork3;
|
|
4741
4741
|
})(OptimexEvmNetwork || {});
|
|
4742
4742
|
var OptimexL2Network = /* @__PURE__ */ ((OptimexL2Network2) => {
|
|
4743
|
-
OptimexL2Network2["Testnet"] = "
|
|
4744
|
-
OptimexL2Network2["Mainnet"] = "
|
|
4743
|
+
OptimexL2Network2["Testnet"] = "base_sepolia";
|
|
4744
|
+
OptimexL2Network2["Mainnet"] = "base";
|
|
4745
4745
|
return OptimexL2Network2;
|
|
4746
4746
|
})(OptimexL2Network || {});
|
|
4747
4747
|
var OptimexBtcNetwork = /* @__PURE__ */ ((OptimexBtcNetwork2) => {
|
|
@@ -4793,7 +4793,7 @@ var ProtocolService = class {
|
|
|
4793
4793
|
constructor() {
|
|
4794
4794
|
this.provider = new JsonRpcProvider(config.getRpcUrl());
|
|
4795
4795
|
this.contract = ProtocolFetcherProxy__factory.connect(config.getProtocolFetcherAddress(), this.provider);
|
|
4796
|
-
this.l2Network = config.isTestnet() ? "
|
|
4796
|
+
this.l2Network = config.isTestnet() ? "base_sepolia" /* Testnet */ : "base" /* Mainnet */;
|
|
4797
4797
|
config.registerObserver(this);
|
|
4798
4798
|
}
|
|
4799
4799
|
/**
|
|
@@ -4803,7 +4803,7 @@ var ProtocolService = class {
|
|
|
4803
4803
|
onConfigUpdate(newConfig) {
|
|
4804
4804
|
this.provider = new JsonRpcProvider(newConfig.rpcUrl);
|
|
4805
4805
|
this.contract = ProtocolFetcherProxy__factory.connect(newConfig.protocolFetcherProxyAddress, this.provider);
|
|
4806
|
-
this.l2Network = newConfig.isTestnet ? "
|
|
4806
|
+
this.l2Network = newConfig.isTestnet ? "base_sepolia" /* Testnet */ : "base" /* Mainnet */;
|
|
4807
4807
|
}
|
|
4808
4808
|
async getCurrentPubkey(network) {
|
|
4809
4809
|
return this.contract.getLatestMPCInfo(ethers.toUtf8Bytes(network));
|