@myx-trade/sdk 0.1.106 → 0.1.107
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 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1213,7 +1213,7 @@ declare class ConfigManager {
|
|
|
1213
1213
|
private accessTokenExpiry?;
|
|
1214
1214
|
constructor(config: MyxClientConfig);
|
|
1215
1215
|
clear(): void;
|
|
1216
|
-
startSeamlessMode(open: boolean):
|
|
1216
|
+
startSeamlessMode(open: boolean): MyxClientConfig;
|
|
1217
1217
|
updateSeamlessWallet({ wallet, authorized, masterAddress }: {
|
|
1218
1218
|
wallet?: ethers$1.Wallet;
|
|
1219
1219
|
authorized?: boolean;
|
|
@@ -1606,6 +1606,7 @@ declare class Seamless {
|
|
|
1606
1606
|
code: number;
|
|
1607
1607
|
data: {
|
|
1608
1608
|
open: boolean;
|
|
1609
|
+
config: MyxClientConfig;
|
|
1609
1610
|
};
|
|
1610
1611
|
}>;
|
|
1611
1612
|
createSeamless({ password, chainId }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1213,7 +1213,7 @@ declare class ConfigManager {
|
|
|
1213
1213
|
private accessTokenExpiry?;
|
|
1214
1214
|
constructor(config: MyxClientConfig);
|
|
1215
1215
|
clear(): void;
|
|
1216
|
-
startSeamlessMode(open: boolean):
|
|
1216
|
+
startSeamlessMode(open: boolean): MyxClientConfig;
|
|
1217
1217
|
updateSeamlessWallet({ wallet, authorized, masterAddress }: {
|
|
1218
1218
|
wallet?: ethers$1.Wallet;
|
|
1219
1219
|
authorized?: boolean;
|
|
@@ -1606,6 +1606,7 @@ declare class Seamless {
|
|
|
1606
1606
|
code: number;
|
|
1607
1607
|
data: {
|
|
1608
1608
|
open: boolean;
|
|
1609
|
+
config: MyxClientConfig;
|
|
1609
1610
|
};
|
|
1610
1611
|
}>;
|
|
1611
1612
|
createSeamless({ password, chainId }: {
|
package/dist/index.js
CHANGED
|
@@ -1822,7 +1822,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1822
1822
|
// package.json
|
|
1823
1823
|
var package_default = {
|
|
1824
1824
|
name: "@myx-trade/sdk",
|
|
1825
|
-
version: "0.1.
|
|
1825
|
+
version: "0.1.107",
|
|
1826
1826
|
private: false,
|
|
1827
1827
|
publishConfig: {
|
|
1828
1828
|
access: "public"
|
|
@@ -13740,12 +13740,11 @@ var ConfigManager = class {
|
|
|
13740
13740
|
};
|
|
13741
13741
|
}
|
|
13742
13742
|
startSeamlessMode(open) {
|
|
13743
|
-
console.log("startSeamlessMode-->", this.config, open);
|
|
13744
13743
|
this.config = {
|
|
13745
13744
|
...this.config,
|
|
13746
13745
|
seamlessMode: open
|
|
13747
13746
|
};
|
|
13748
|
-
|
|
13747
|
+
return this.config;
|
|
13749
13748
|
}
|
|
13750
13749
|
updateSeamlessWallet({ wallet, authorized, masterAddress }) {
|
|
13751
13750
|
this.config = {
|
|
@@ -21364,11 +21363,14 @@ var Seamless = class {
|
|
|
21364
21363
|
};
|
|
21365
21364
|
}
|
|
21366
21365
|
async startSeamlessMode({ open }) {
|
|
21367
|
-
this.
|
|
21366
|
+
this.logger.info("startSeamlessMode-->", open);
|
|
21367
|
+
const config = this.configManager.startSeamlessMode(open);
|
|
21368
|
+
this.logger.info("startSeamlessMode config-->", config);
|
|
21368
21369
|
return {
|
|
21369
21370
|
code: 0,
|
|
21370
21371
|
data: {
|
|
21371
|
-
open
|
|
21372
|
+
open,
|
|
21373
|
+
config
|
|
21372
21374
|
}
|
|
21373
21375
|
};
|
|
21374
21376
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1732,7 +1732,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1732
1732
|
// package.json
|
|
1733
1733
|
var package_default = {
|
|
1734
1734
|
name: "@myx-trade/sdk",
|
|
1735
|
-
version: "0.1.
|
|
1735
|
+
version: "0.1.107",
|
|
1736
1736
|
private: false,
|
|
1737
1737
|
publishConfig: {
|
|
1738
1738
|
access: "public"
|
|
@@ -13650,12 +13650,11 @@ var ConfigManager = class {
|
|
|
13650
13650
|
};
|
|
13651
13651
|
}
|
|
13652
13652
|
startSeamlessMode(open) {
|
|
13653
|
-
console.log("startSeamlessMode-->", this.config, open);
|
|
13654
13653
|
this.config = {
|
|
13655
13654
|
...this.config,
|
|
13656
13655
|
seamlessMode: open
|
|
13657
13656
|
};
|
|
13658
|
-
|
|
13657
|
+
return this.config;
|
|
13659
13658
|
}
|
|
13660
13659
|
updateSeamlessWallet({ wallet, authorized, masterAddress }) {
|
|
13661
13660
|
this.config = {
|
|
@@ -21274,11 +21273,14 @@ var Seamless = class {
|
|
|
21274
21273
|
};
|
|
21275
21274
|
}
|
|
21276
21275
|
async startSeamlessMode({ open }) {
|
|
21277
|
-
this.
|
|
21276
|
+
this.logger.info("startSeamlessMode-->", open);
|
|
21277
|
+
const config = this.configManager.startSeamlessMode(open);
|
|
21278
|
+
this.logger.info("startSeamlessMode config-->", config);
|
|
21278
21279
|
return {
|
|
21279
21280
|
code: 0,
|
|
21280
21281
|
data: {
|
|
21281
|
-
open
|
|
21282
|
+
open,
|
|
21283
|
+
config
|
|
21282
21284
|
}
|
|
21283
21285
|
};
|
|
21284
21286
|
}
|