@lifi/composer-sdk 0.9.0 → 0.10.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/README.md CHANGED
@@ -109,7 +109,7 @@ if (result.status === 'success') {
109
109
 
110
110
  **Runtime inputs (materialisers)**: a materialiser tells the backend how to fund a flow input when the transaction executes.
111
111
 
112
- - `directDeposit({ amount })` pulls exactly `amount`.
112
+ - `directDeposit({ amount })` pulls exactly `amount`. For a token the compose token registry flags non-exact (stETH, Aave aTokens), a transfer credits a wei or two off, so the deposit instead pulls up to `amount` and asserts it received at least `amount` less 4 wei.
113
113
  - `directDeposit({ amount, allowNonExact: true })` permits a capped ERC-20 deposit of up to `amount`; `directDeposit({ allowNonExact: true })` deposits with no on-chain cap (ERC-20 only).
114
114
  - `balanceOf({ owner })` reads a current balance.
115
115
  - `call({ target, calldata })` measures the balance delta after an arbitrary contract call.
package/dist/client.cjs CHANGED
@@ -3,7 +3,7 @@ const require_responseSchemas = require("./responseSchemas.cjs");
3
3
  const require_errors = require("./errors.cjs");
4
4
  let _lifi_compose_spec = require("@lifi/compose-spec");
5
5
  //#region src/client.ts
6
- const SDK_VERSION = "0.9.0";
6
+ const SDK_VERSION = "0.10.0";
7
7
  const SDK_VERSION_TRIPLE = (0, _lifi_compose_spec.parseVersion)(SDK_VERSION);
8
8
  /**
9
9
  * `JSON.stringify` replacer that renders `bigint` amounts as decimal strings.
package/dist/client.js CHANGED
@@ -2,7 +2,7 @@ import { parseCompilePartialEnvelope, parseSimulateResult } from "./responseSche
2
2
  import { ComposeError, errorFromHttpResponse } from "./errors.js";
3
3
  import { COMPOSER_SDK_VERSION_HEADER, COMPOSE_VERSION_HEADER, checkCompatibility, parseVersion } from "@lifi/compose-spec";
4
4
  //#region src/client.ts
5
- const SDK_VERSION = "0.9.0";
5
+ const SDK_VERSION = "0.10.0";
6
6
  const SDK_VERSION_TRIPLE = parseVersion(SDK_VERSION);
7
7
  /**
8
8
  * `JSON.stringify` replacer that renders `bigint` amounts as decimal strings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/composer-sdk",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Public Composer SDK for building and submitting flows",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -47,12 +47,12 @@
47
47
  "example:staged": "tsx src/examples/run.ts --staged"
48
48
  },
49
49
  "peerDependencies": {
50
- "@lifi/compose-spec": "0.9.0"
50
+ "@lifi/compose-spec": "0.10.0"
51
51
  },
52
52
  "dependencies": {
53
53
  "abitype": "^1.2.3",
54
54
  "effect": "^3.21.0",
55
- "zod": "^4.6.5"
55
+ "zod": "^4.6.6"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@eslint/compat": "^1.4.0",