@toon-protocol/client 4.1.0 → 4.1.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/cli/main.js CHANGED
@@ -588,7 +588,7 @@ function buildClientConfig(settings, keys) {
588
588
  };
589
589
  }
590
590
  async function defaultCreateClient(config) {
591
- const module = await import("../client-GAU5TOT4.js");
591
+ const module = await import("../client-66Z6WVBV.js");
592
592
  const factory = module.ToonClient;
593
593
  if (factory === void 0) {
594
594
  throw new Error(
@@ -32,7 +32,7 @@ import {
32
32
  resolveConfig,
33
33
  send,
34
34
  toEnvelopeRequest
35
- } from "./chunk-4WH4G747.js";
35
+ } from "./chunk-2FCRHYFJ.js";
36
36
  import "./chunk-WJKJ6Y4N.js";
37
37
  import "./chunk-32MD3CXE.js";
38
38
  export {
@@ -70,4 +70,4 @@ export {
70
70
  send,
71
71
  toEnvelopeRequest
72
72
  };
73
- //# sourceMappingURL=client-GAU5TOT4.js.map
73
+ //# sourceMappingURL=client-66Z6WVBV.js.map
package/dist/index.d.ts CHANGED
@@ -1767,8 +1767,19 @@ declare function signErc20ApprovalGasSponsoring(params: {
1767
1767
  token: string;
1768
1768
  chainId: number;
1769
1769
  }): Promise<DepositExtensions>;
1770
- /** Send `approve(Permit2, max)` from the payer's own wallet, and wait for it. */
1771
- declare function approvePermit2(wallet: EvmWalletAccess, token: string): Promise<Hex>;
1770
+ /**
1771
+ * Approve Permit2 for `token`, for the maximum, from the payer's own ETH.
1772
+ *
1773
+ * With `seen`, it also waits until the RPC shows the allowance: a public RPC is
1774
+ * load-balanced, and a receipt from one backend says nothing about the next.
1775
+ * On Base Sepolia, a deposit estimated straight after the receipt reverted
1776
+ * `TRANSFER_FROM_FAILED` (#695).
1777
+ */
1778
+ declare function approvePermit2(wallet: EvmWalletAccess, token: string, seen?: {
1779
+ reader: ContractReader;
1780
+ owner: string;
1781
+ atLeast: bigint;
1782
+ }): Promise<Hex>;
1772
1783
  /** `collectorData` for the ERC-3009 deposit collector. */
1773
1784
  declare function erc3009CollectorData(payload: Eip3009DepositPayload): Hex;
1774
1785
  /**
package/dist/index.js CHANGED
@@ -223,7 +223,7 @@ import {
223
223
  trimTrailingSlashes,
224
224
  withRetry,
225
225
  withdrawSvmBatchChannel
226
- } from "./chunk-4WH4G747.js";
226
+ } from "./chunk-2FCRHYFJ.js";
227
227
  import {
228
228
  DEVNET,
229
229
  HS_HOSTNAME_MAX_LENGTH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toon-protocol/client",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "TOON client: pay for HTTP requests per request over ILP, with EVM and Solana payment channels",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Green",