@myx-trade/sdk 0.1.56 → 0.1.57
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 +23 -1
- package/dist/index.mjs +23 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1836,7 +1836,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1836
1836
|
// package.json
|
|
1837
1837
|
var package_default = {
|
|
1838
1838
|
name: "@myx-trade/sdk",
|
|
1839
|
-
version: "0.1.
|
|
1839
|
+
version: "0.1.57",
|
|
1840
1840
|
private: false,
|
|
1841
1841
|
publishConfig: {
|
|
1842
1842
|
access: "public"
|
|
@@ -13203,6 +13203,28 @@ var Order = class {
|
|
|
13203
13203
|
useAccountBalance: false
|
|
13204
13204
|
};
|
|
13205
13205
|
});
|
|
13206
|
+
const gasLimittest = await brokerContract.placeOrdersWithPosition.estimateGas(["0x8d11a77fc9225f16955c717b40ea826befc1703a4b6810b30093af4860085b8f"], [{
|
|
13207
|
+
user: "0x0F5A0a5F807A76244897A93aa8FE9121E7df15cf",
|
|
13208
|
+
poolId: "0x0f3a23ce1f81d792bb74b7e748d7ee0c0c459db3c5fd06e1c792935f9a90fce0",
|
|
13209
|
+
orderType: 0,
|
|
13210
|
+
triggerType: 0,
|
|
13211
|
+
operation: 1,
|
|
13212
|
+
direction: 0,
|
|
13213
|
+
collateralAmount: 1000000n,
|
|
13214
|
+
size: "1000000000000000000",
|
|
13215
|
+
price: "87711469284207055000000000000000000",
|
|
13216
|
+
timeInForce: TIME_IN_FORCE,
|
|
13217
|
+
postOnly: false,
|
|
13218
|
+
slippagePct: 1e3,
|
|
13219
|
+
executionFeeToken: "0x7e248ec1721639413a280d9e82e2862cae2e6e28",
|
|
13220
|
+
leverage: 10,
|
|
13221
|
+
tpSize: 0,
|
|
13222
|
+
tpPrice: 0,
|
|
13223
|
+
slSize: 0,
|
|
13224
|
+
slPrice: 0,
|
|
13225
|
+
useAccountBalance: false
|
|
13226
|
+
}]);
|
|
13227
|
+
console.log("gasLimittest--->", gasLimittest);
|
|
13206
13228
|
this.logger.info("closeAllPositions positionIds--->", positionIds);
|
|
13207
13229
|
this.logger.info("closeAllPositions dataMap--->", dataMap);
|
|
13208
13230
|
const gasLimit = await brokerContract.placeOrdersWithPosition.estimateGas(positionIds, dataMap);
|
package/dist/index.mjs
CHANGED
|
@@ -1751,7 +1751,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1751
1751
|
// package.json
|
|
1752
1752
|
var package_default = {
|
|
1753
1753
|
name: "@myx-trade/sdk",
|
|
1754
|
-
version: "0.1.
|
|
1754
|
+
version: "0.1.57",
|
|
1755
1755
|
private: false,
|
|
1756
1756
|
publishConfig: {
|
|
1757
1757
|
access: "public"
|
|
@@ -13118,6 +13118,28 @@ var Order = class {
|
|
|
13118
13118
|
useAccountBalance: false
|
|
13119
13119
|
};
|
|
13120
13120
|
});
|
|
13121
|
+
const gasLimittest = await brokerContract.placeOrdersWithPosition.estimateGas(["0x8d11a77fc9225f16955c717b40ea826befc1703a4b6810b30093af4860085b8f"], [{
|
|
13122
|
+
user: "0x0F5A0a5F807A76244897A93aa8FE9121E7df15cf",
|
|
13123
|
+
poolId: "0x0f3a23ce1f81d792bb74b7e748d7ee0c0c459db3c5fd06e1c792935f9a90fce0",
|
|
13124
|
+
orderType: 0,
|
|
13125
|
+
triggerType: 0,
|
|
13126
|
+
operation: 1,
|
|
13127
|
+
direction: 0,
|
|
13128
|
+
collateralAmount: 1000000n,
|
|
13129
|
+
size: "1000000000000000000",
|
|
13130
|
+
price: "87711469284207055000000000000000000",
|
|
13131
|
+
timeInForce: TIME_IN_FORCE,
|
|
13132
|
+
postOnly: false,
|
|
13133
|
+
slippagePct: 1e3,
|
|
13134
|
+
executionFeeToken: "0x7e248ec1721639413a280d9e82e2862cae2e6e28",
|
|
13135
|
+
leverage: 10,
|
|
13136
|
+
tpSize: 0,
|
|
13137
|
+
tpPrice: 0,
|
|
13138
|
+
slSize: 0,
|
|
13139
|
+
slPrice: 0,
|
|
13140
|
+
useAccountBalance: false
|
|
13141
|
+
}]);
|
|
13142
|
+
console.log("gasLimittest--->", gasLimittest);
|
|
13121
13143
|
this.logger.info("closeAllPositions positionIds--->", positionIds);
|
|
13122
13144
|
this.logger.info("closeAllPositions dataMap--->", dataMap);
|
|
13123
13145
|
const gasLimit = await brokerContract.placeOrdersWithPosition.estimateGas(positionIds, dataMap);
|