@myx-trade/sdk 0.1.58 → 0.1.59

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 CHANGED
@@ -1671,7 +1671,7 @@ declare class Seamless {
1671
1671
  authorizeSeamlessAccount({ approve, seamlessAddress }: {
1672
1672
  approve: boolean;
1673
1673
  seamlessAddress: string;
1674
- }): Promise<ApiResponse<any>>;
1674
+ }): Promise<void>;
1675
1675
  unLockSeamlessWallet({ masterAddress, password, apiKey }: {
1676
1676
  masterAddress: string;
1677
1677
  password: string;
package/dist/index.d.ts CHANGED
@@ -1671,7 +1671,7 @@ declare class Seamless {
1671
1671
  authorizeSeamlessAccount({ approve, seamlessAddress }: {
1672
1672
  approve: boolean;
1673
1673
  seamlessAddress: string;
1674
- }): Promise<ApiResponse<any>>;
1674
+ }): Promise<void>;
1675
1675
  unLockSeamlessWallet({ masterAddress, password, apiKey }: {
1676
1676
  masterAddress: string;
1677
1677
  password: string;
package/dist/index.js CHANGED
@@ -1841,7 +1841,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1841
1841
  // package.json
1842
1842
  var package_default = {
1843
1843
  name: "@myx-trade/sdk",
1844
- version: "0.1.58",
1844
+ version: "0.1.59",
1845
1845
  private: false,
1846
1846
  publishConfig: {
1847
1847
  access: "public"
@@ -20671,11 +20671,17 @@ var Seamless = class {
20671
20671
  const getRs = await fetchForwarderGetApi({
20672
20672
  requestId: txRs.data?.requestId
20673
20673
  });
20674
- console.log("getRs-->", getRs);
20674
+ this.logger.info("authorizeSeamlessAccount result-->", getRs);
20675
20675
  if (getRs.data?.status === 9 /* EXECUTED */) {
20676
20676
  if (getRs.data?.txHash) {
20677
20677
  txRs.data.txHash = getRs.data.txHash;
20678
- return;
20678
+ return {
20679
+ code: 0,
20680
+ data: {
20681
+ seamlessAccount: seamlessAddress,
20682
+ authorized: approve2
20683
+ }
20684
+ };
20679
20685
  } else {
20680
20686
  throw new MyxSDKError("OPERATION_FAILED" /* OperationFailed */, "Operation failed, please try again later");
20681
20687
  }
@@ -20694,7 +20700,6 @@ var Seamless = class {
20694
20700
  }
20695
20701
  }
20696
20702
  }
20697
- return txRs;
20698
20703
  }
20699
20704
  async unLockSeamlessWallet({ masterAddress, password, apiKey }) {
20700
20705
  const key = import_crypto_js.default.enc.Utf8.parse(charFill(password));
package/dist/index.mjs CHANGED
@@ -1752,7 +1752,7 @@ var RotationProvider = class extends BaseProvider {
1752
1752
  // package.json
1753
1753
  var package_default = {
1754
1754
  name: "@myx-trade/sdk",
1755
- version: "0.1.58",
1755
+ version: "0.1.59",
1756
1756
  private: false,
1757
1757
  publishConfig: {
1758
1758
  access: "public"
@@ -20582,11 +20582,17 @@ var Seamless = class {
20582
20582
  const getRs = await fetchForwarderGetApi({
20583
20583
  requestId: txRs.data?.requestId
20584
20584
  });
20585
- console.log("getRs-->", getRs);
20585
+ this.logger.info("authorizeSeamlessAccount result-->", getRs);
20586
20586
  if (getRs.data?.status === 9 /* EXECUTED */) {
20587
20587
  if (getRs.data?.txHash) {
20588
20588
  txRs.data.txHash = getRs.data.txHash;
20589
- return;
20589
+ return {
20590
+ code: 0,
20591
+ data: {
20592
+ seamlessAccount: seamlessAddress,
20593
+ authorized: approve2
20594
+ }
20595
+ };
20590
20596
  } else {
20591
20597
  throw new MyxSDKError("OPERATION_FAILED" /* OperationFailed */, "Operation failed, please try again later");
20592
20598
  }
@@ -20605,7 +20611,6 @@ var Seamless = class {
20605
20611
  }
20606
20612
  }
20607
20613
  }
20608
- return txRs;
20609
20614
  }
20610
20615
  async unLockSeamlessWallet({ masterAddress, password, apiKey }) {
20611
20616
  const key = CryptoJS.enc.Utf8.parse(charFill(password));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.58",
3
+ "version": "0.1.59",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"