@myx-trade/sdk 1.0.8-beta.0 → 1.0.8-beta.2

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
@@ -2157,21 +2157,27 @@ declare class Seamless {
2157
2157
  masterAddress: any;
2158
2158
  };
2159
2159
  }>;
2160
- formatForwarderTxParams({ address, chainId, forwardFeeToken, functionName, data, seamlessAddress }: {
2160
+ /**
2161
+ * Build ForwardRequest fields for a Broker contract call executed via the Forwarder.
2162
+ * `data` must be the ABI args array for `functionName` (same order as the contract), with no undefined addresses.
2163
+ */
2164
+ formatForwarderTxParams({ address, chainId, forwardFeeToken, functionName, data, seamlessAddress, }: {
2161
2165
  address: string;
2162
2166
  chainId: number;
2163
2167
  forwardFeeToken: string;
2164
2168
  functionName: string;
2165
- data: any;
2169
+ /** ABI args tuple for `functionName`, e.g. `[user, poolId, ...]` */
2170
+ data: readonly unknown[] | unknown[];
2166
2171
  seamlessAddress: string;
2167
2172
  }): Promise<{
2168
- from: string;
2169
- to: string;
2173
+ from: `0x${string}`;
2174
+ to: `0x${string}`;
2170
2175
  value: string;
2171
2176
  gas: string;
2172
2177
  deadline: number;
2173
2178
  data: `0x${string}`;
2174
2179
  nonce: any;
2180
+ forwardFeeToken: `0x${string}`;
2175
2181
  }>;
2176
2182
  }
2177
2183
 
package/dist/index.d.ts CHANGED
@@ -2157,21 +2157,27 @@ declare class Seamless {
2157
2157
  masterAddress: any;
2158
2158
  };
2159
2159
  }>;
2160
- formatForwarderTxParams({ address, chainId, forwardFeeToken, functionName, data, seamlessAddress }: {
2160
+ /**
2161
+ * Build ForwardRequest fields for a Broker contract call executed via the Forwarder.
2162
+ * `data` must be the ABI args array for `functionName` (same order as the contract), with no undefined addresses.
2163
+ */
2164
+ formatForwarderTxParams({ address, chainId, forwardFeeToken, functionName, data, seamlessAddress, }: {
2161
2165
  address: string;
2162
2166
  chainId: number;
2163
2167
  forwardFeeToken: string;
2164
2168
  functionName: string;
2165
- data: any;
2169
+ /** ABI args tuple for `functionName`, e.g. `[user, poolId, ...]` */
2170
+ data: readonly unknown[] | unknown[];
2166
2171
  seamlessAddress: string;
2167
2172
  }): Promise<{
2168
- from: string;
2169
- to: string;
2173
+ from: `0x${string}`;
2174
+ to: `0x${string}`;
2170
2175
  value: string;
2171
2176
  gas: string;
2172
2177
  deadline: number;
2173
2178
  data: `0x${string}`;
2174
2179
  nonce: any;
2180
+ forwardFeeToken: `0x${string}`;
2175
2181
  }>;
2176
2182
  }
2177
2183