@recta/client 0.1.4 → 0.1.5

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
@@ -50,7 +50,8 @@ const result = await recta.run(request);
50
50
  your signer's address. Each step is also available alone: `evaluate`, `authorizeFee`, `check`, `execute`, `report`,
51
51
  `ledger`, `payDebt`, `feeFunds`, `feeApproval`.
52
52
 
53
- Your account must be an EOA: Recta's signed requests are EIP-191 signatures recovered to the sender's address.
53
+ This package signs with an EOA: its signed requests are EIP-191 signatures recovered to the sender's address. A smart
54
+ account can use Recta's API directly (see Limits below).
54
55
 
55
56
  ## Referral for integrators
56
57
 
@@ -177,8 +178,12 @@ Every request this package sends carries the User-Agent `recta-client/<version>`
177
178
  ## Limits of this version
178
179
 
179
180
  - EVM sources and EVM recipients only. Solana, Tron and Bitcoin routes, Relay and deBridge are refused.
180
- - A corridor or contract Recta adds after this release is refused until a new release pins it.
181
- - Smart accounts (EIP-1271) cannot sign Recta's requests.
181
+ - This package signs with an EOA key only. Recta's API also accepts smart accounts for transfers whose source is Base (ERC-1271; ERC-6492 before deployment for
182
+ requests only: paying a fee needs the account deployed on Base), but this package cannot sign for one yet: a smart account
183
+ calls the API directly (see `https://api.recta.build/llms.txt`).
184
+ - Only the corridors and contracts pinned in the release, as a safety measure: the package refuses to sign against a
185
+ contract it does not know. A corridor or contract Recta adds later is served by the API at once, but refused by
186
+ this package until a new release pins it.
182
187
 
183
188
  ## Provenance
184
189
 
@@ -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.4";
10
+ export declare const CLIENT_VERSION = "0.1.5";
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.4";
12
+ export declare const USER_AGENT = "recta-client/0.1.5";
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";
@@ -56,7 +56,7 @@ export declare const FEE_PERMIT_TYPES: {
56
56
  readonly type: "uint256";
57
57
  }];
58
58
  };
59
- /** Signed requests (EIP-191 `personal_sign` by the sender's EOA). */
59
+ /** Signed requests from this package (EIP-191 `personal_sign` by the sender's EOA; smart accounts sign v2 via the API). */
60
60
  export declare const SIGNED_REQUEST_PREFIX = "Recta signed request v1";
61
61
  export declare const SIGNER_HEADER = "x-recta-signer";
62
62
  export declare const ISSUED_AT_HEADER = "x-recta-issued-at";
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.4";
10
+ export const CLIENT_VERSION = "0.1.5";
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. */
@@ -39,7 +39,7 @@ export const FEE_PERMIT_TYPES = {
39
39
  { name: "validAfter", type: "uint256" },
40
40
  ],
41
41
  };
42
- /** Signed requests (EIP-191 `personal_sign` by the sender's EOA). */
42
+ /** Signed requests from this package (EIP-191 `personal_sign` by the sender's EOA; smart accounts sign v2 via the API). */
43
43
  export const SIGNED_REQUEST_PREFIX = "Recta signed request v1";
44
44
  export const SIGNER_HEADER = "x-recta-signer";
45
45
  export const ISSUED_AT_HEADER = "x-recta-issued-at";
package/dist/signer.d.ts CHANGED
@@ -25,8 +25,8 @@ export interface RectaTypedData {
25
25
  readonly message: Record<string, unknown>;
26
26
  }
27
27
  /**
28
- * What this package needs from a wallet, and nothing more. It never receives or stores a key. The account must be an
29
- * EOA: Recta's signed requests are EIP-191 signatures recovered to the sender's address (smart accounts cannot).
28
+ * What this package needs from a wallet, and nothing more. It never receives or stores a key. This package signs as
29
+ * an EOA: its requests are EIP-191 signatures recovered to the sender's address (a smart account uses the API directly).
30
30
  */
31
31
  export interface RectaSigner {
32
32
  readonly address: Hex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recta/client",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
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)",