@myx-trade/sdk 0.1.109 → 0.1.110
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1518,7 +1518,7 @@ declare class Account {
|
|
|
1518
1518
|
message: string;
|
|
1519
1519
|
data?: undefined;
|
|
1520
1520
|
}>;
|
|
1521
|
-
deposit({
|
|
1521
|
+
deposit({ amount, tokenAddress, chainId }: {
|
|
1522
1522
|
poolId: string;
|
|
1523
1523
|
amount: string;
|
|
1524
1524
|
tokenAddress: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1518,7 +1518,7 @@ declare class Account {
|
|
|
1518
1518
|
message: string;
|
|
1519
1519
|
data?: undefined;
|
|
1520
1520
|
}>;
|
|
1521
|
-
deposit({
|
|
1521
|
+
deposit({ amount, tokenAddress, chainId }: {
|
|
1522
1522
|
poolId: string;
|
|
1523
1523
|
amount: string;
|
|
1524
1524
|
tokenAddress: string;
|
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.110",
|
|
1826
1826
|
private: false,
|
|
1827
1827
|
publishConfig: {
|
|
1828
1828
|
access: "public"
|
|
@@ -21154,10 +21154,9 @@ var Account = class {
|
|
|
21154
21154
|
};
|
|
21155
21155
|
}
|
|
21156
21156
|
}
|
|
21157
|
-
async deposit({
|
|
21157
|
+
async deposit({ amount, tokenAddress, chainId }) {
|
|
21158
21158
|
const config = this.configManager.getConfig();
|
|
21159
21159
|
const account = await config.signer?.getAddress() ?? "";
|
|
21160
|
-
console.log("deposit", account, poolId, amount);
|
|
21161
21160
|
const contractAddress = getContractAddressByChainId(config.chainId);
|
|
21162
21161
|
const accountContract = new import_ethers26.ethers.Contract(
|
|
21163
21162
|
contractAddress.Account,
|
|
@@ -21182,7 +21181,7 @@ var Account = class {
|
|
|
21182
21181
|
throw new Error(approvalResult.message);
|
|
21183
21182
|
}
|
|
21184
21183
|
}
|
|
21185
|
-
const rs = await accountContract.deposit(account,
|
|
21184
|
+
const rs = await accountContract.deposit(account, tokenAddress, amount);
|
|
21186
21185
|
const receipt = await rs?.wait(1);
|
|
21187
21186
|
return {
|
|
21188
21187
|
code: 0,
|
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.110",
|
|
1736
1736
|
private: false,
|
|
1737
1737
|
publishConfig: {
|
|
1738
1738
|
access: "public"
|
|
@@ -21064,10 +21064,9 @@ var Account = class {
|
|
|
21064
21064
|
};
|
|
21065
21065
|
}
|
|
21066
21066
|
}
|
|
21067
|
-
async deposit({
|
|
21067
|
+
async deposit({ amount, tokenAddress, chainId }) {
|
|
21068
21068
|
const config = this.configManager.getConfig();
|
|
21069
21069
|
const account = await config.signer?.getAddress() ?? "";
|
|
21070
|
-
console.log("deposit", account, poolId, amount);
|
|
21071
21070
|
const contractAddress = getContractAddressByChainId(config.chainId);
|
|
21072
21071
|
const accountContract = new ethers8.Contract(
|
|
21073
21072
|
contractAddress.Account,
|
|
@@ -21092,7 +21091,7 @@ var Account = class {
|
|
|
21092
21091
|
throw new Error(approvalResult.message);
|
|
21093
21092
|
}
|
|
21094
21093
|
}
|
|
21095
|
-
const rs = await accountContract.deposit(account,
|
|
21094
|
+
const rs = await accountContract.deposit(account, tokenAddress, amount);
|
|
21096
21095
|
const receipt = await rs?.wait(1);
|
|
21097
21096
|
return {
|
|
21098
21097
|
code: 0,
|