presign-guard-wallet 0.24.0 → 0.25.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
@@ -85,7 +85,7 @@ Every other method (`getAddresses`, `extend`, `sendRawTransaction` for a transac
85
85
  | `onSpend` | | `(entry) => void` after each signed spend, e.g. for a log |
86
86
  | `store` | in memory | Where spending is kept; `fileStore(path)` from `presign-guard-wallet/file-store`, or your own |
87
87
 
88
- Chains: Ethereum (1), Optimism (10), BNB Chain (56), Polygon (137), Base (8453), Arbitrum (42161).
88
+ Chains: Ethereum (1), Optimism (10), BNB Chain (56), Polygon (137), Base (8453), Arbitrum (42161), Robinhood Chain (4663).
89
89
 
90
90
  **Tempo** (4217, and the Moderato testnet 42431) is not covered by presign-guard. There the wallet signs exactly one thing, checked locally: a TIP-20 `transfer` or `transferWithMemo` of USDC.e (pathUSD on the testnet), with no value attached, counted toward your `USDC` limits. Anything else on Tempo is refused (`unsupported_chain`). Guard a Tempo wallet client next to your main one with `guarded.wrap(tempoWalletClient)`: both share the same limits, pause and purchase records.
91
91
 
package/index.js CHANGED
@@ -75,7 +75,7 @@ export { memoryStore };
75
75
 
76
76
  export const PRESIGN_URL = "https://presign-guard.fizzl.eu";
77
77
  export const PRESIGN_SIGNERS = ["0xf084Ea47Ca4D99BB4De3ECB0332b316bE6521EaE"];
78
- export const SUPPORTED_CHAINS = [1, 10, 56, 137, 8453, 42161];
78
+ export const SUPPORTED_CHAINS = [1, 10, 56, 137, 8453, 42161, 4663];
79
79
  // Tempo: the stablecoins the wallet may send there (the ones the USDC limit covers).
80
80
  export const TEMPO_TOKENS = {
81
81
  4217: ["0x20c000000000000000000000b9537d11c60e8b50"],
package/limits.js CHANGED
@@ -40,11 +40,14 @@ const USDC = {
40
40
  137: [["0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", 6], ["0x2791bca1f2de4661ed88a30c99a7a9449aa84174", 6]],
41
41
  8453: [["0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", 6]],
42
42
  42161: [["0xaf88d065e77c8cc2239327c5edb3a432268e5831", 6], ["0xff970a61a04b1ca14834a43f5de4533ebddb5cc8", 6]],
43
+ // Robinhood Chain has no Circle USDC: its dollar is Paxos' USDG (Global Dollar), counted like RLUSD (a dollar is a
44
+ // dollar). A token there called "USDC" (0x11d0…991e, 18 decimals) is a copy and stays outside the budget.
45
+ 4663: [["0x5fc5360d0400a0fd4f2af552add042d716f1d168", 6]],
43
46
  // Tempo: USDC.e (bridged USDC, what MPP charges in), and pathUSD on the Moderato testnet.
44
47
  4217: [["0x20c000000000000000000000b9537d11c60e8b50", 6]],
45
48
  42431: [["0x20c0000000000000000000000000000000000000", 6]],
46
49
  };
47
- const NATIVE_SYMBOL = { 1: "ETH", 10: "ETH", 8453: "ETH", 42161: "ETH", 56: "BNB", 137: "POL", "xrpl:0": "XRP", "xrpl:1": "XRP", ...Object.fromEntries(Object.keys(SOLANA_USDC).map((n) => [n, "SOL"])), ...Object.fromEntries(Object.keys(ALGORAND_USDC).map((n) => [n, "ALGO"])) };
50
+ const NATIVE_SYMBOL = { 1: "ETH", 10: "ETH", 8453: "ETH", 42161: "ETH", 4663: "ETH", 56: "BNB", 137: "POL", "xrpl:0": "XRP", "xrpl:1": "XRP", ...Object.fromEntries(Object.keys(SOLANA_USDC).map((n) => [n, "SOL"])), ...Object.fromEntries(Object.keys(ALGORAND_USDC).map((n) => [n, "ALGO"])) };
48
51
  export const KNOWN_TOKENS = ["USDC", "ETH", "BNB", "POL", "XRP", "SOL", "ALGO"];
49
52
 
50
53
  // XRP Ledger networks and the RLUSD issuer on each (Ripple's).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presign-guard-wallet",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "A wallet for AI agents (viem on EVM chains, Solana and Algorand) that asks presign-guard ($0.01 over x402) before every transaction, contract write and signature, refuses to sign red, and keeps to per-token spending limits, with approval from your phone over the limit (Telegram, or signed in your own wallet over AC2).",
5
5
  "type": "module",
6
6
  "exports": {