txflow-sdk 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/client.js +3 -3
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -155,7 +155,7 @@ export class TxFlowClient {
155
155
  }
156
156
  async withdraw(userWallet, params) {
157
157
  const nonce = Date.now();
158
- const signatureChainId = params.signatureChainId ?? "0x66eee";
158
+ const signatureChainId = params.signatureChainId ?? "66eee";
159
159
  const message = {
160
160
  ofinChain: "ofin",
161
161
  destination: params.destination,
@@ -193,7 +193,7 @@ export class TxFlowClient {
193
193
  const signature = await signUserAction(userWallet, USER_ACTION_DOMAIN, TRANSFER_TOKEN_TYPES, message);
194
194
  return this.postExchange({
195
195
  action: {
196
- type: "transferToken",
196
+ type: "tokenSend",
197
197
  ofinChain: "ofin",
198
198
  amount: params.amount,
199
199
  fromAccountType: params.fromAccountType,
@@ -220,7 +220,7 @@ export class TxFlowClient {
220
220
  const signature = await signUserAction(userWallet, USER_ACTION_DOMAIN, SEND_TOKEN_TYPES, message);
221
221
  return this.postExchange({
222
222
  action: {
223
- type: "sendToken",
223
+ type: "tokenSend",
224
224
  ofinChain: "ofin",
225
225
  toAddress: params.toAddress,
226
226
  amount: params.amount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "txflow-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript SDK for TxFlow perpetual DEX with EIP-712 signing and MCP server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",