Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 7b4d629

Browse files
authored
Add presets for Barz.sol accounts (#107)
1 parent ef1a5fc commit 7b4d629

30 files changed

+3649
-14
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist
88
LICENSE
99
yarn.lock
1010
patches
11+
src/typechain

abi/BarzAccountFacet.json

Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
{
2+
"abi": [
3+
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
4+
{
5+
"inputs": [],
6+
"name": "AccountFacet__CallNotSuccessful",
7+
"type": "error"
8+
},
9+
{
10+
"inputs": [],
11+
"name": "AccountFacet__InitializationFailure",
12+
"type": "error"
13+
},
14+
{
15+
"inputs": [],
16+
"name": "AccountFacet__NonExistentVerificationFacet",
17+
"type": "error"
18+
},
19+
{
20+
"inputs": [],
21+
"name": "AccountFacet__RestrictionsFailure",
22+
"type": "error"
23+
},
24+
{
25+
"inputs": [
26+
{
27+
"internalType": "address",
28+
"name": "_initializationContractAddress",
29+
"type": "address"
30+
},
31+
{ "internalType": "bytes", "name": "_calldata", "type": "bytes" }
32+
],
33+
"name": "InitializationFunctionReverted",
34+
"type": "error"
35+
},
36+
{
37+
"inputs": [],
38+
"name": "LibAppStorage__AccountMustBeUninitialized",
39+
"type": "error"
40+
},
41+
{
42+
"anonymous": false,
43+
"inputs": [
44+
{
45+
"indexed": true,
46+
"internalType": "contract IEntryPoint",
47+
"name": "entryPoint",
48+
"type": "address"
49+
},
50+
{
51+
"indexed": true,
52+
"internalType": "bytes",
53+
"name": "ownerPublicKey",
54+
"type": "bytes"
55+
}
56+
],
57+
"name": "AccountInitialized",
58+
"type": "event"
59+
},
60+
{
61+
"anonymous": false,
62+
"inputs": [
63+
{
64+
"components": [
65+
{
66+
"internalType": "address",
67+
"name": "facetAddress",
68+
"type": "address"
69+
},
70+
{
71+
"internalType": "enum IDiamondCut.FacetCutAction",
72+
"name": "action",
73+
"type": "uint8"
74+
},
75+
{
76+
"internalType": "bytes4[]",
77+
"name": "functionSelectors",
78+
"type": "bytes4[]"
79+
}
80+
],
81+
"indexed": false,
82+
"internalType": "struct IDiamondCut.FacetCut[]",
83+
"name": "_diamondCut",
84+
"type": "tuple[]"
85+
},
86+
{
87+
"indexed": false,
88+
"internalType": "address",
89+
"name": "_init",
90+
"type": "address"
91+
},
92+
{
93+
"indexed": false,
94+
"internalType": "bytes",
95+
"name": "_calldata",
96+
"type": "bytes"
97+
}
98+
],
99+
"name": "DiamondCut",
100+
"type": "event"
101+
},
102+
{
103+
"anonymous": false,
104+
"inputs": [
105+
{
106+
"indexed": false,
107+
"internalType": "bytes32",
108+
"name": "",
109+
"type": "bytes32"
110+
}
111+
],
112+
"name": "VerificationFailure",
113+
"type": "event"
114+
},
115+
{
116+
"anonymous": false,
117+
"inputs": [
118+
{
119+
"indexed": false,
120+
"internalType": "bytes32",
121+
"name": "",
122+
"type": "bytes32"
123+
}
124+
],
125+
"name": "VerificationSuccess",
126+
"type": "event"
127+
},
128+
{
129+
"inputs": [],
130+
"name": "entryPoint",
131+
"outputs": [
132+
{
133+
"internalType": "contract IEntryPoint",
134+
"name": "",
135+
"type": "address"
136+
}
137+
],
138+
"stateMutability": "view",
139+
"type": "function"
140+
},
141+
{
142+
"inputs": [
143+
{ "internalType": "address", "name": "_dest", "type": "address" },
144+
{ "internalType": "uint256", "name": "_value", "type": "uint256" },
145+
{ "internalType": "bytes", "name": "_func", "type": "bytes" }
146+
],
147+
"name": "execute",
148+
"outputs": [],
149+
"stateMutability": "nonpayable",
150+
"type": "function"
151+
},
152+
{
153+
"inputs": [
154+
{ "internalType": "address[]", "name": "_dest", "type": "address[]" },
155+
{ "internalType": "uint256[]", "name": "_value", "type": "uint256[]" },
156+
{ "internalType": "bytes[]", "name": "_func", "type": "bytes[]" }
157+
],
158+
"name": "executeBatch",
159+
"outputs": [],
160+
"stateMutability": "nonpayable",
161+
"type": "function"
162+
},
163+
{
164+
"inputs": [],
165+
"name": "getNonce",
166+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
167+
"stateMutability": "view",
168+
"type": "function"
169+
},
170+
{
171+
"inputs": [
172+
{
173+
"internalType": "address",
174+
"name": "_verificationFacet",
175+
"type": "address"
176+
},
177+
{
178+
"internalType": "address",
179+
"name": "_anEntryPoint",
180+
"type": "address"
181+
},
182+
{
183+
"internalType": "address",
184+
"name": "_facetRegistry",
185+
"type": "address"
186+
},
187+
{
188+
"internalType": "address",
189+
"name": "_defaultFallBackHandler",
190+
"type": "address"
191+
},
192+
{ "internalType": "bytes", "name": "_ownerPublicKey", "type": "bytes" }
193+
],
194+
"name": "initialize",
195+
"outputs": [
196+
{ "internalType": "uint256", "name": "initSuccess", "type": "uint256" }
197+
],
198+
"stateMutability": "nonpayable",
199+
"type": "function"
200+
},
201+
{
202+
"inputs": [
203+
{
204+
"components": [
205+
{ "internalType": "address", "name": "sender", "type": "address" },
206+
{ "internalType": "uint256", "name": "nonce", "type": "uint256" },
207+
{ "internalType": "bytes", "name": "initCode", "type": "bytes" },
208+
{ "internalType": "bytes", "name": "callData", "type": "bytes" },
209+
{
210+
"internalType": "uint256",
211+
"name": "callGasLimit",
212+
"type": "uint256"
213+
},
214+
{
215+
"internalType": "uint256",
216+
"name": "verificationGasLimit",
217+
"type": "uint256"
218+
},
219+
{
220+
"internalType": "uint256",
221+
"name": "preVerificationGas",
222+
"type": "uint256"
223+
},
224+
{
225+
"internalType": "uint256",
226+
"name": "maxFeePerGas",
227+
"type": "uint256"
228+
},
229+
{
230+
"internalType": "uint256",
231+
"name": "maxPriorityFeePerGas",
232+
"type": "uint256"
233+
},
234+
{
235+
"internalType": "bytes",
236+
"name": "paymasterAndData",
237+
"type": "bytes"
238+
},
239+
{ "internalType": "bytes", "name": "signature", "type": "bytes" }
240+
],
241+
"internalType": "struct UserOperation",
242+
"name": "userOp",
243+
"type": "tuple"
244+
},
245+
{ "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" },
246+
{
247+
"internalType": "uint256",
248+
"name": "missingAccountFunds",
249+
"type": "uint256"
250+
}
251+
],
252+
"name": "validateUserOp",
253+
"outputs": [
254+
{
255+
"internalType": "uint256",
256+
"name": "validationData",
257+
"type": "uint256"
258+
}
259+
],
260+
"stateMutability": "nonpayable",
261+
"type": "function"
262+
}
263+
]
264+
}

0 commit comments

Comments
 (0)