@myx-trade/sdk 0.1.206 → 0.1.207
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 +2 -7
- package/dist/index.mjs +2 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1807,7 +1807,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1807
1807
|
// package.json
|
|
1808
1808
|
var package_default = {
|
|
1809
1809
|
name: "@myx-trade/sdk",
|
|
1810
|
-
version: "0.1.
|
|
1810
|
+
version: "0.1.207",
|
|
1811
1811
|
private: false,
|
|
1812
1812
|
publishConfig: {
|
|
1813
1813
|
access: "public"
|
|
@@ -21296,11 +21296,6 @@ var Account = class {
|
|
|
21296
21296
|
const config = this.configManager.getConfig();
|
|
21297
21297
|
const contractAddress = getContractAddressByChainId(chainId);
|
|
21298
21298
|
const provider = await getJSONProvider(chainId);
|
|
21299
|
-
const dataProviderContract = new import_ethers26.ethers.Contract(
|
|
21300
|
-
contractAddress.DATA_PROVIDER,
|
|
21301
|
-
DataProvider_default,
|
|
21302
|
-
provider
|
|
21303
|
-
);
|
|
21304
21299
|
const brokerContract = new import_ethers26.ethers.Contract(
|
|
21305
21300
|
config.brokerAddress,
|
|
21306
21301
|
Broker_default,
|
|
@@ -21309,7 +21304,7 @@ var Account = class {
|
|
|
21309
21304
|
const latestBlock = await provider.getBlock("latest");
|
|
21310
21305
|
const deadline = (latestBlock?.timestamp ?? (0, import_dayjs3.default)().unix()) + 60 * 5;
|
|
21311
21306
|
try {
|
|
21312
|
-
const accountVipInfo = await
|
|
21307
|
+
const accountVipInfo = await brokerContract.userFeeData(address);
|
|
21313
21308
|
const nonce = await brokerContract.userNonces(address);
|
|
21314
21309
|
return {
|
|
21315
21310
|
code: 0,
|
package/dist/index.mjs
CHANGED
|
@@ -1731,7 +1731,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1731
1731
|
// package.json
|
|
1732
1732
|
var package_default = {
|
|
1733
1733
|
name: "@myx-trade/sdk",
|
|
1734
|
-
version: "0.1.
|
|
1734
|
+
version: "0.1.207",
|
|
1735
1735
|
private: false,
|
|
1736
1736
|
publishConfig: {
|
|
1737
1737
|
access: "public"
|
|
@@ -21220,11 +21220,6 @@ var Account = class {
|
|
|
21220
21220
|
const config = this.configManager.getConfig();
|
|
21221
21221
|
const contractAddress = getContractAddressByChainId(chainId);
|
|
21222
21222
|
const provider = await getJSONProvider(chainId);
|
|
21223
|
-
const dataProviderContract = new ethers8.Contract(
|
|
21224
|
-
contractAddress.DATA_PROVIDER,
|
|
21225
|
-
DataProvider_default,
|
|
21226
|
-
provider
|
|
21227
|
-
);
|
|
21228
21223
|
const brokerContract = new ethers8.Contract(
|
|
21229
21224
|
config.brokerAddress,
|
|
21230
21225
|
Broker_default,
|
|
@@ -21233,7 +21228,7 @@ var Account = class {
|
|
|
21233
21228
|
const latestBlock = await provider.getBlock("latest");
|
|
21234
21229
|
const deadline = (latestBlock?.timestamp ?? dayjs3().unix()) + 60 * 5;
|
|
21235
21230
|
try {
|
|
21236
|
-
const accountVipInfo = await
|
|
21231
|
+
const accountVipInfo = await brokerContract.userFeeData(address);
|
|
21237
21232
|
const nonce = await brokerContract.userNonces(address);
|
|
21238
21233
|
return {
|
|
21239
21234
|
code: 0,
|