@myx-trade/sdk 0.1.45 → 0.1.46
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.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1813,7 +1813,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1813
1813
|
// package.json
|
|
1814
1814
|
var package_default = {
|
|
1815
1815
|
name: "@myx-trade/sdk",
|
|
1816
|
-
version: "0.1.
|
|
1816
|
+
version: "0.1.46",
|
|
1817
1817
|
private: false,
|
|
1818
1818
|
publishConfig: {
|
|
1819
1819
|
access: "public"
|
|
@@ -13328,7 +13328,7 @@ var Order = class {
|
|
|
13328
13328
|
if (!params.positionId) {
|
|
13329
13329
|
const positionId = 1;
|
|
13330
13330
|
this.logger.info("createDecreaseOrder salt position params--->", { ...data, positionId });
|
|
13331
|
-
const gasLimit = await brokerContract.
|
|
13331
|
+
const gasLimit = await brokerContract.placeOrderWithSalt.estimateGas(positionId.toString(), {
|
|
13332
13332
|
user: params.address,
|
|
13333
13333
|
poolId: params.poolId,
|
|
13334
13334
|
orderType: params.orderType,
|
|
@@ -13349,7 +13349,7 @@ var Order = class {
|
|
|
13349
13349
|
slPrice: 0,
|
|
13350
13350
|
useAccountBalance: false
|
|
13351
13351
|
});
|
|
13352
|
-
transaction = await brokerContract.
|
|
13352
|
+
transaction = await brokerContract.placeOrderWithSalt(
|
|
13353
13353
|
params.positionId.toString(),
|
|
13354
13354
|
{
|
|
13355
13355
|
user: params.address,
|
package/dist/index.mjs
CHANGED
|
@@ -1728,7 +1728,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1728
1728
|
// package.json
|
|
1729
1729
|
var package_default = {
|
|
1730
1730
|
name: "@myx-trade/sdk",
|
|
1731
|
-
version: "0.1.
|
|
1731
|
+
version: "0.1.46",
|
|
1732
1732
|
private: false,
|
|
1733
1733
|
publishConfig: {
|
|
1734
1734
|
access: "public"
|
|
@@ -13243,7 +13243,7 @@ var Order = class {
|
|
|
13243
13243
|
if (!params.positionId) {
|
|
13244
13244
|
const positionId = 1;
|
|
13245
13245
|
this.logger.info("createDecreaseOrder salt position params--->", { ...data, positionId });
|
|
13246
|
-
const gasLimit = await brokerContract.
|
|
13246
|
+
const gasLimit = await brokerContract.placeOrderWithSalt.estimateGas(positionId.toString(), {
|
|
13247
13247
|
user: params.address,
|
|
13248
13248
|
poolId: params.poolId,
|
|
13249
13249
|
orderType: params.orderType,
|
|
@@ -13264,7 +13264,7 @@ var Order = class {
|
|
|
13264
13264
|
slPrice: 0,
|
|
13265
13265
|
useAccountBalance: false
|
|
13266
13266
|
});
|
|
13267
|
-
transaction = await brokerContract.
|
|
13267
|
+
transaction = await brokerContract.placeOrderWithSalt(
|
|
13268
13268
|
params.positionId.toString(),
|
|
13269
13269
|
{
|
|
13270
13270
|
user: params.address,
|