presign-guard-wallet 0.17.0 → 0.17.1
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 +3 -3
- package/index.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# presign-guard-wallet
|
|
2
2
|
|
|
3
|
-
A [viem](https://viem.sh) wallet for AI agents that asks [presign-guard](https://presign-guard.fizzl.eu) before it signs.
|
|
3
|
+
A [viem](https://viem.sh) wallet for AI agents that asks [presign-guard](https://presign-guard.fizzl.eu) before it signs. Solana signers too: see [Solana](#solana-usdc).
|
|
4
4
|
|
|
5
5
|
Before every `sendTransaction`, `writeContract` and `signTypedData`, the wallet pays **$0.01** (x402, USDC on Base) for a verdict on exactly what is about to be signed, and acts on it:
|
|
6
6
|
|
|
@@ -250,7 +250,7 @@ const xrpl = guarded.xrplSigner(createXrplWalletSigner(Wallet.fromSeed(process.e
|
|
|
250
250
|
client.register("xrpl:*", new ExactXrplScheme(xrpl)); // x402 payments in RLUSD, checked and within limits
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
`network` is `"xrpl:0"` (mainnet) or `"xrpl:1"` (testnet). The check itself is
|
|
253
|
+
`network` is `"xrpl:0"` (mainnet) or `"xrpl:1"` (testnet). The check itself is paid through `pay` (Base, Solana, XRPL or Algorand, whatever your x402 client can pay) or with credits.
|
|
254
254
|
|
|
255
255
|
## Algorand (USDC)
|
|
256
256
|
|
|
@@ -281,7 +281,7 @@ const sol = guarded.solanaSigner(keypair); // mainnet; { network: "solana:EtWTRA
|
|
|
281
281
|
client.register("solana:*", new ExactSvmScheme(sol)); // x402 payments in USDC on Solana, checked and within limits
|
|
282
282
|
```
|
|
283
283
|
|
|
284
|
-
The check itself is
|
|
284
|
+
The check itself is paid through `pay`, which can pay it in USDC on Solana too (or with credits).
|
|
285
285
|
|
|
286
286
|
**Other Solana transactions.** With `{ any: true }` the signer also signs transfers, swaps and other transactions, for an agent that does more than pay x402 APIs (an AgentKit Solana wallet, for example). Each one is checked by presign-guard first: every instruction is read and the transaction is simulated, so a token account handed to someone else is red, and a hidden owner or delegate change is orange. What the simulation shows leaving the wallet counts toward your limits: SOL beyond the network fee toward a `SOL` limit, USDC toward `USDC`. Without a complete simulation the spending counts as unknown, so it goes to `onOverLimit`.
|
|
287
287
|
|
package/index.js
CHANGED
|
@@ -79,7 +79,7 @@ const ESCROW_ABI = parseAbi([
|
|
|
79
79
|
const TRANSFER_ABI = parseAbi(["function transfer(address to, uint256 amount)"]);
|
|
80
80
|
const VOUCHER_DOMAIN = "TIP20 Channel Reserve";
|
|
81
81
|
export const XRPL_NETWORKS = ["xrpl:0", "xrpl:1"];
|
|
82
|
-
export const VERSION = "0.17.
|
|
82
|
+
export const VERSION = "0.17.1";
|
|
83
83
|
export const CREDIT_HEADER = "x-credit-key";
|
|
84
84
|
const ROUTE = "POST /v1/check";
|
|
85
85
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "presign-guard-wallet",
|
|
3
|
-
"version": "0.17.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "0.17.1",
|
|
4
|
+
"description": "A wallet for AI agents (viem on EVM chains, and Solana) 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.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"agents",
|
|
62
62
|
"wallet",
|
|
63
63
|
"viem",
|
|
64
|
+
"solana",
|
|
64
65
|
"security",
|
|
65
66
|
"presign",
|
|
66
67
|
"approvals",
|