@agenticprimitives/contracts 1.0.0-alpha.25 → 1.0.0-alpha.26
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/AUDIT.md +5 -0
- package/README.md +2 -0
- package/deployments-faithchain.json +2 -1
- package/dist/abi/AgentAccount.json +45 -0
- package/dist/abi/AgentAccountFactory.json +18 -0
- package/dist/abi/ApprovedHashRegistry.json +47 -2
- package/dist/abi/CustodyPolicy.json +11 -0
- package/dist/abi/DigestBindingEnforcer.json +125 -3
- package/dist/abi/ICustodyPolicyAccountModuleView.json +31 -0
- package/dist/abi/{ContentCorpusRegistry.json → ReceiptAnchorRegistry.json} +61 -82
- package/dist/abi/index.d.ts +2 -0
- package/dist/abi/index.js +2 -0
- package/dist/deployments/faithchain.d.ts +1 -0
- package/dist/deployments/faithchain.js +1 -0
- package/package.json +16 -5
- package/src/AgentAccount.sol +67 -6
- package/src/AgentAccountFactory.sol +17 -10
- package/src/ApprovedHashRegistry.sol +41 -6
- package/src/custody/CustodyPolicy.sol +20 -0
- package/src/enforcers/DigestBindingEnforcer.sol +45 -10
- package/src/provenance/ReceiptAnchorRegistry.sol +55 -0
- package/deployments-anvil.json +0 -1
- package/dist/abi/AgentSkillClaimRegistry.json +0 -735
- package/dist/abi/IERC1271.json +0 -26
- package/dist/abi/ValidationAttestationRegistry.json +0 -205
package/dist/abi/IERC1271.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "function",
|
|
4
|
-
"name": "isValidSignature",
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"name": "hash",
|
|
8
|
-
"type": "bytes32",
|
|
9
|
-
"internalType": "bytes32"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "signature",
|
|
13
|
-
"type": "bytes",
|
|
14
|
-
"internalType": "bytes"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"outputs": [
|
|
18
|
-
{
|
|
19
|
-
"name": "",
|
|
20
|
-
"type": "bytes4",
|
|
21
|
-
"internalType": "bytes4"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"stateMutability": "view"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "function",
|
|
4
|
-
"name": "anchor",
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"name": "attestationHash",
|
|
8
|
-
"type": "bytes32",
|
|
9
|
-
"internalType": "bytes32"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "validator",
|
|
13
|
-
"type": "address",
|
|
14
|
-
"internalType": "address"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "subjectAgent",
|
|
18
|
-
"type": "bytes32",
|
|
19
|
-
"internalType": "bytes32"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "profileId",
|
|
23
|
-
"type": "bytes32",
|
|
24
|
-
"internalType": "bytes32"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "outcome",
|
|
28
|
-
"type": "uint8",
|
|
29
|
-
"internalType": "uint8"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "expiresAt",
|
|
33
|
-
"type": "uint64",
|
|
34
|
-
"internalType": "uint64"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "signature",
|
|
38
|
-
"type": "bytes",
|
|
39
|
-
"internalType": "bytes"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"outputs": [],
|
|
43
|
-
"stateMutability": "nonpayable"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "function",
|
|
47
|
-
"name": "anchorDigest",
|
|
48
|
-
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
"name": "attestationHash",
|
|
51
|
-
"type": "bytes32",
|
|
52
|
-
"internalType": "bytes32"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "validator",
|
|
56
|
-
"type": "address",
|
|
57
|
-
"internalType": "address"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "subjectAgent",
|
|
61
|
-
"type": "bytes32",
|
|
62
|
-
"internalType": "bytes32"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "profileId",
|
|
66
|
-
"type": "bytes32",
|
|
67
|
-
"internalType": "bytes32"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "outcome",
|
|
71
|
-
"type": "uint8",
|
|
72
|
-
"internalType": "uint8"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "expiresAt",
|
|
76
|
-
"type": "uint64",
|
|
77
|
-
"internalType": "uint64"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"outputs": [
|
|
81
|
-
{
|
|
82
|
-
"name": "",
|
|
83
|
-
"type": "bytes32",
|
|
84
|
-
"internalType": "bytes32"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"stateMutability": "view"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"type": "function",
|
|
91
|
-
"name": "getAttestation",
|
|
92
|
-
"inputs": [
|
|
93
|
-
{
|
|
94
|
-
"name": "attestationHash",
|
|
95
|
-
"type": "bytes32",
|
|
96
|
-
"internalType": "bytes32"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"outputs": [
|
|
100
|
-
{
|
|
101
|
-
"name": "validator",
|
|
102
|
-
"type": "address",
|
|
103
|
-
"internalType": "address"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "subjectAgent",
|
|
107
|
-
"type": "bytes32",
|
|
108
|
-
"internalType": "bytes32"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "profileId",
|
|
112
|
-
"type": "bytes32",
|
|
113
|
-
"internalType": "bytes32"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "outcome",
|
|
117
|
-
"type": "uint8",
|
|
118
|
-
"internalType": "uint8"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "anchoredAt",
|
|
122
|
-
"type": "uint64",
|
|
123
|
-
"internalType": "uint64"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"name": "expiresAt",
|
|
127
|
-
"type": "uint64",
|
|
128
|
-
"internalType": "uint64"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"stateMutability": "view"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "function",
|
|
135
|
-
"name": "isValid",
|
|
136
|
-
"inputs": [
|
|
137
|
-
{
|
|
138
|
-
"name": "attestationHash",
|
|
139
|
-
"type": "bytes32",
|
|
140
|
-
"internalType": "bytes32"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"outputs": [
|
|
144
|
-
{
|
|
145
|
-
"name": "",
|
|
146
|
-
"type": "bool",
|
|
147
|
-
"internalType": "bool"
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
"stateMutability": "view"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"type": "event",
|
|
154
|
-
"name": "AttestationAnchored",
|
|
155
|
-
"inputs": [
|
|
156
|
-
{
|
|
157
|
-
"name": "attestationHash",
|
|
158
|
-
"type": "bytes32",
|
|
159
|
-
"indexed": true,
|
|
160
|
-
"internalType": "bytes32"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"name": "validator",
|
|
164
|
-
"type": "address",
|
|
165
|
-
"indexed": true,
|
|
166
|
-
"internalType": "address"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "subjectAgent",
|
|
170
|
-
"type": "bytes32",
|
|
171
|
-
"indexed": true,
|
|
172
|
-
"internalType": "bytes32"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "profileId",
|
|
176
|
-
"type": "bytes32",
|
|
177
|
-
"indexed": false,
|
|
178
|
-
"internalType": "bytes32"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"name": "outcome",
|
|
182
|
-
"type": "uint8",
|
|
183
|
-
"indexed": false,
|
|
184
|
-
"internalType": "uint8"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"name": "expiresAt",
|
|
188
|
-
"type": "uint64",
|
|
189
|
-
"indexed": false,
|
|
190
|
-
"internalType": "uint64"
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
"anonymous": false
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"type": "error",
|
|
197
|
-
"name": "AlreadyAnchored",
|
|
198
|
-
"inputs": []
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"type": "error",
|
|
202
|
-
"name": "InvalidValidatorSignature",
|
|
203
|
-
"inputs": []
|
|
204
|
-
}
|
|
205
|
-
]
|