superstack-wallet-sdk 0.4.10 → 0.4.11

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.ts CHANGED
@@ -141,12 +141,14 @@ interface TransferRequest {
141
141
  to: string;
142
142
  amount: string;
143
143
  decimals: number;
144
- token: string;
144
+ token?: string;
145
145
  network: Network;
146
146
  chain_id: number;
147
+ need_send_tx: boolean;
147
148
  }
148
149
  interface TransferResponse {
149
150
  tx_hash: string;
151
+ bs58_raw_tx: string;
150
152
  }
151
153
 
152
154
  interface PhantomWalletAdapterConfig {
@@ -341,29 +343,18 @@ declare class WalletClient {
341
343
  /**
342
344
  * Transfer tokens using the server-side transfer API
343
345
  * @param params Transfer parameters
344
- * @returns Transaction hash
346
+ * @returns Transfer response (tx hash and raw tx)
345
347
  */
346
348
  transfer(params: {
347
349
  from: string;
348
350
  to: string;
349
351
  amount: string;
350
352
  decimals: number;
351
- token: string;
353
+ token?: string;
352
354
  network: Network;
353
355
  chain_id: number;
354
- }): Promise<string>;
355
- /**
356
- * Transfer Ethereum tokens (ERC-20 or native ETH)
357
- * @param params Transfer parameters
358
- * @returns Transaction hash
359
- */
360
- transferEthereum(params: {
361
- to: string;
362
- amount: string;
363
- decimals: number;
364
- token: string;
365
- chain_id: number;
366
- }): Promise<string>;
356
+ need_send_tx: boolean;
357
+ }): Promise<TransferResponse>;
367
358
  }
368
359
  type SignTransactionReturnType<serializer extends viem.SerializeTransactionFn<viem.TransactionSerializable> = viem.SerializeTransactionFn<viem.TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]> = viem.TransactionSerialized<viem.GetTransactionType<transaction>>;
369
360
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superstack-wallet-sdk",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "A wallet SDK for superstack",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",