@recta/client 0.1.11 → 0.1.12

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
@@ -76,7 +76,7 @@ import { executeRoute } from "@lifi/sdk";
76
76
  import { withPreflight, lifiTransfer } from "@recta/client";
77
77
 
78
78
  const execute = withPreflight(executeRoute, (route) => lifiTransfer(route), {
79
- onPreflight: ({ answer }) => console.log(answer?.outcome, answer?.saving_usdc),
79
+ onPreflight: ({ answer }) => console.log(answer?.outcome, answer?.via_recta?.saving_usdc),
80
80
  // stopOnSaving: true, // throw RectaSavingFoundError before bridging when Recta proves a saving
81
81
  });
82
82
  await execute(route);
@@ -7,9 +7,9 @@
7
7
  */
8
8
  export declare const RECTA_ORIGIN = "https://api.recta.build";
9
9
  /** This package's version (equal to package.json, checked in CI). */
10
- export declare const CLIENT_VERSION = "0.1.11";
10
+ export declare const CLIENT_VERSION = "0.1.12";
11
11
  /** Sent on every request so Recta can count real use of this package apart from other clients (no address, no key). */
12
- export declare const USER_AGENT = "recta-client/0.1.11";
12
+ export declare const USER_AGENT = "recta-client/0.1.12";
13
13
  /** The fee: x402 `upto` on Base, a Permit2 `permitWitnessTransferFrom`. All lowercase. */
14
14
  export declare const FEE_CHAIN_ID = 8453;
15
15
  export declare const PERMIT2 = "0x000000000022d473030f116ddee9f6b43ac78ba3";
package/dist/constants.js CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export const RECTA_ORIGIN = "https://api.recta.build";
9
9
  /** This package's version (equal to package.json, checked in CI). */
10
- export const CLIENT_VERSION = "0.1.11";
10
+ export const CLIENT_VERSION = "0.1.12";
11
11
  /** Sent on every request so Recta can count real use of this package apart from other clients (no address, no key). */
12
12
  export const USER_AGENT = `recta-client/${CLIENT_VERSION}`;
13
13
  /** The fee: x402 `upto` on Base, a Permit2 `permitWitnessTransferFrom`. All lowercase. */
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export declare const PREFLIGHT_PATH = "/v1/preflight";
8
8
  /** Sent on every preflight this package makes, so Recta can count use of the wrapper apart from other clients. */
9
- export declare const PREFLIGHT_USER_AGENT = "recta-client/0.1.11 (preflight)";
9
+ export declare const PREFLIGHT_USER_AGENT = "recta-client/0.1.12 (preflight)";
10
10
  export interface PreflightTransfer {
11
11
  /** Network keys as Recta names them: base, arbitrum, ethereum, optimism, polygon… */
12
12
  readonly source_network: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recta/client",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Client for Recta (api.recta.build): evaluate a cross-chain stablecoin transfer, authorize Recta's 5 %-of-verified-saving fee, execute the committed route and report it, with local checks before every signature.",
5
5
  "license": "MIT",
6
6
  "author": "Recta (https://recta.build)",