@1stdex/first-sdk 1.0.70 → 1.0.72
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/cjs/calls/batch/prepare-withdraw.js +33 -11
- package/dist/cjs/calls/batch/prepare-withdraw.js.map +1 -1
- package/dist/esm/calls/batch/prepare-withdraw.js +36 -14
- package/dist/esm/calls/batch/prepare-withdraw.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/calls/batch/prepare-withdraw.d.ts +3 -3
- package/dist/types/calls/batch/prepare-withdraw.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ export declare class NotEnoughFundsError extends Error {
|
|
|
19
19
|
* @param userAddress The user address (wallet and vault owner).
|
|
20
20
|
* @param toAddress The recipient address.
|
|
21
21
|
* @param currency The currency/token address.
|
|
22
|
-
* @param amount The amount to send (
|
|
22
|
+
* @param amount The amount to send (decimal-adjusted string, e.g., '100.5' for 100.5 tokens).
|
|
23
23
|
* @param options Optional parameters.
|
|
24
24
|
* @returns Promise resolving to array of batch calls.
|
|
25
25
|
* @example
|
|
@@ -31,7 +31,7 @@ export declare class NotEnoughFundsError extends Error {
|
|
|
31
31
|
* userAddress: '0xF8c1869Ecd4df136693C45EcE1b67f85B6bDaE69',
|
|
32
32
|
* toAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
|
|
33
33
|
* currency: '0x00bfd44e79fb7f6dd5887a9426c8ef85a0cd23e0',
|
|
34
|
-
* amount:
|
|
34
|
+
* amount: '100.5' // 100.5 tokens
|
|
35
35
|
* })
|
|
36
36
|
*
|
|
37
37
|
* // Send all calls in one batched transaction
|
|
@@ -43,7 +43,7 @@ export declare const prepareWithdraw: ({ chainId, userAddress, toAddress, curren
|
|
|
43
43
|
userAddress: `0x${string}`;
|
|
44
44
|
toAddress: `0x${string}`;
|
|
45
45
|
currency: `0x${string}`;
|
|
46
|
-
amount:
|
|
46
|
+
amount: string;
|
|
47
47
|
options?: DefaultWriteContractOptions;
|
|
48
48
|
}) => Promise<BatchCall[]>;
|
|
49
49
|
//# sourceMappingURL=prepare-withdraw.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-withdraw.d.ts","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-withdraw.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-withdraw.d.ts","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-withdraw.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAK3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;aAG1B,QAAQ,EAAE,MAAM;aAChB,SAAS,EAAE,MAAM;gBAFjC,OAAO,EAAE,MAAM,EACC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM;CAMpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,oEAOzB;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC,KAAG,QAAQ,SAAS,EAAE,CA4ItB,CAAC"}
|