-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanifest.json
More file actions
87 lines (87 loc) · 2.93 KB
/
Copy pathmanifest.json
File metadata and controls
87 lines (87 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"id": "io.pilot.wallet",
"app_version": "0.4.0",
"manifest_version": 2,
"binary": {
"runtime": "go",
"path": "bin/wallet",
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
},
"exposes": [
"wallet.balance",
"wallet.balances",
"wallet.address",
"wallet.request",
"wallet.pay",
"wallet.verify",
"wallet.settle",
"wallet.topup",
"wallet.history",
"wallet.spend_caps",
"wallet.evm.address",
"wallet.evm.balance",
"wallet.evm.satisfy",
"wallet.evm.verify",
"wallet.evm.chains",
"wallet.settler.identity",
"wallet.settler.balance",
"wallet.settler.history",
"wallet.settler.transfer",
"wallet.hookPreSendMessage",
"wallet.hookPostRecvMessage"
],
"grants": [
{"cap": "fs.write", "target": "$APP/data.db"},
{"cap": "fs.read", "target": "$APP/data.db"},
{"cap": "fs.read", "target": "$APP/identity.json"},
{"cap": "fs.write", "target": "$APP/identity.json"},
{"cap": "fs.read", "target": "$APP/identity-evm.json"},
{"cap": "fs.write", "target": "$APP/identity-evm.json"},
{"cap": "audit.log","target": "*"},
{"cap": "net.dial", "target": "*.pilot",
"if": {"kind": "rate", "params": {"per": "min", "limit": 100}}},
{"cap": "net.dial", "target": "*.base.org",
"if": {"kind": "rate", "params": {"per": "min", "limit": 60}}},
{"cap": "net.dial", "target": "settler:9100",
"if": {"kind": "rate", "params": {"per": "min", "limit": 120}}},
{"cap": "key.sign", "target": "x402-auth",
"if": {"kind": "cap", "params": {"asset": "USDC", "per": "day", "limit": 100}}},
{"cap": "key.sign", "target": "evm-eip3009",
"if": {"kind": "cap", "params": {"asset": "USDC", "per": "day", "limit": 100}}},
{"cap": "key.sign", "target": "settler-transfer",
"if": {"kind": "cap", "params": {"asset": "USDC", "per": "day", "limit": 100}}}
],
"protection": "guarded",
"store": {
"publisher": "ed25519:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"signature": "sig:placeholder-store-sig-replaced-at-publish-time"
},
"affiliates": [
{
"pubkey": "ed25519:BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
"role": "settlement",
"purpose": "x402 settlement notary"
}
],
"extends": [
{
"primitive": "send-message.pre",
"method": "wallet.hookPreSendMessage",
"adds_flags": [
{"name": "--paywall", "type": "string", "help": "lock payload behind a payment contract, e.g. '100 USDC'"},
{"name": "--method", "type": "string", "help": "payment method id (default: io.pilot.wallet/v1)"},
{"name": "--escrow", "type": "string", "help": "escrow id (default: io.pilot.wallet/escrow-v1)"}
]
},
{
"primitive": "recv.post",
"method": "wallet.hookPostRecvMessage"
}
],
"dynamic_extends": [
"wallet.pay.pre",
"wallet.pay.post",
"wallet.evm.satisfy.pre",
"wallet.evm.satisfy.post"
]
}