@orderly.network/core 2.8.8 → 2.8.9-alpha.0

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
@@ -965,6 +965,7 @@ declare class Assets {
965
965
  allowCrossChainWithdraw: boolean;
966
966
  /** orderly withdraw decimals */
967
967
  decimals: number;
968
+ receiver?: string;
968
969
  }): Promise<any>;
969
970
  private getWithdrawalNonce;
970
971
  getNativeBalance(options?: {
package/dist/index.d.ts CHANGED
@@ -965,6 +965,7 @@ declare class Assets {
965
965
  allowCrossChainWithdraw: boolean;
966
966
  /** orderly withdraw decimals */
967
967
  decimals: number;
968
+ receiver?: string;
968
969
  }): Promise<any>;
969
970
  private getWithdrawalNonce;
970
971
  getNativeBalance(options?: {
package/dist/index.js CHANGED
@@ -5595,7 +5595,7 @@ var Assets = class {
5595
5595
  if (!this.account.stateValue.address) {
5596
5596
  throw new Error("account address is required");
5597
5597
  }
5598
- const { chainId, token, allowCrossChainWithdraw, decimals } = inputs;
5598
+ const { chainId, token, allowCrossChainWithdraw, decimals, receiver } = inputs;
5599
5599
  let { amount } = inputs;
5600
5600
  if (typeof amount === "number") {
5601
5601
  amount = amount.toString();
@@ -5607,7 +5607,7 @@ var Assets = class {
5607
5607
  const nonce = await this.getWithdrawalNonce();
5608
5608
  const timestamp = getTimestamp();
5609
5609
  const messageData = {
5610
- receiver: this.account.stateValue.address,
5610
+ receiver: receiver || this.account.stateValue.address,
5611
5611
  token,
5612
5612
  brokerId: this.configStore.get("brokerId"),
5613
5613
  amount: this.account.walletAdapter.parseUnits(amount, decimals),