@latticexyz/paymaster 2.2.15-entrykit-d928bffbd5581fdc643915df1e5faad2eaafa210 → 2.2.15-f9de085862ac62ce15fe3b7743916cfd631592ea

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 ADDED
@@ -0,0 +1,3 @@
1
+ # Paymaster contracts
2
+
3
+ > :warning: **Important note: these contracts have not been audited yet, so any production use is discouraged for now.**
@@ -0,0 +1,280 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "_entryPoint",
7
+ "type": "address",
8
+ "internalType": "contract IEntryPoint"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "addStake",
16
+ "inputs": [
17
+ {
18
+ "name": "unstakeDelaySec",
19
+ "type": "uint32",
20
+ "internalType": "uint32"
21
+ }
22
+ ],
23
+ "outputs": [],
24
+ "stateMutability": "payable"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "deposit",
29
+ "inputs": [],
30
+ "outputs": [],
31
+ "stateMutability": "payable"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "entryPoint",
36
+ "inputs": [],
37
+ "outputs": [
38
+ {
39
+ "name": "",
40
+ "type": "address",
41
+ "internalType": "contract IEntryPoint"
42
+ }
43
+ ],
44
+ "stateMutability": "view"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "getDeposit",
49
+ "inputs": [],
50
+ "outputs": [
51
+ {
52
+ "name": "",
53
+ "type": "uint256",
54
+ "internalType": "uint256"
55
+ }
56
+ ],
57
+ "stateMutability": "view"
58
+ },
59
+ {
60
+ "type": "function",
61
+ "name": "owner",
62
+ "inputs": [],
63
+ "outputs": [
64
+ {
65
+ "name": "",
66
+ "type": "address",
67
+ "internalType": "address"
68
+ }
69
+ ],
70
+ "stateMutability": "view"
71
+ },
72
+ {
73
+ "type": "function",
74
+ "name": "postOp",
75
+ "inputs": [
76
+ {
77
+ "name": "mode",
78
+ "type": "uint8",
79
+ "internalType": "enum IPaymaster.PostOpMode"
80
+ },
81
+ {
82
+ "name": "context",
83
+ "type": "bytes",
84
+ "internalType": "bytes"
85
+ },
86
+ {
87
+ "name": "actualGasCost",
88
+ "type": "uint256",
89
+ "internalType": "uint256"
90
+ },
91
+ {
92
+ "name": "actualUserOpFeePerGas",
93
+ "type": "uint256",
94
+ "internalType": "uint256"
95
+ }
96
+ ],
97
+ "outputs": [],
98
+ "stateMutability": "nonpayable"
99
+ },
100
+ {
101
+ "type": "function",
102
+ "name": "renounceOwnership",
103
+ "inputs": [],
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "transferOwnership",
110
+ "inputs": [
111
+ {
112
+ "name": "newOwner",
113
+ "type": "address",
114
+ "internalType": "address"
115
+ }
116
+ ],
117
+ "outputs": [],
118
+ "stateMutability": "nonpayable"
119
+ },
120
+ {
121
+ "type": "function",
122
+ "name": "unlockStake",
123
+ "inputs": [],
124
+ "outputs": [],
125
+ "stateMutability": "nonpayable"
126
+ },
127
+ {
128
+ "type": "function",
129
+ "name": "validatePaymasterUserOp",
130
+ "inputs": [
131
+ {
132
+ "name": "userOp",
133
+ "type": "tuple",
134
+ "internalType": "struct PackedUserOperation",
135
+ "components": [
136
+ {
137
+ "name": "sender",
138
+ "type": "address",
139
+ "internalType": "address"
140
+ },
141
+ {
142
+ "name": "nonce",
143
+ "type": "uint256",
144
+ "internalType": "uint256"
145
+ },
146
+ {
147
+ "name": "initCode",
148
+ "type": "bytes",
149
+ "internalType": "bytes"
150
+ },
151
+ {
152
+ "name": "callData",
153
+ "type": "bytes",
154
+ "internalType": "bytes"
155
+ },
156
+ {
157
+ "name": "accountGasLimits",
158
+ "type": "bytes32",
159
+ "internalType": "bytes32"
160
+ },
161
+ {
162
+ "name": "preVerificationGas",
163
+ "type": "uint256",
164
+ "internalType": "uint256"
165
+ },
166
+ {
167
+ "name": "gasFees",
168
+ "type": "bytes32",
169
+ "internalType": "bytes32"
170
+ },
171
+ {
172
+ "name": "paymasterAndData",
173
+ "type": "bytes",
174
+ "internalType": "bytes"
175
+ },
176
+ {
177
+ "name": "signature",
178
+ "type": "bytes",
179
+ "internalType": "bytes"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "name": "userOpHash",
185
+ "type": "bytes32",
186
+ "internalType": "bytes32"
187
+ },
188
+ {
189
+ "name": "maxCost",
190
+ "type": "uint256",
191
+ "internalType": "uint256"
192
+ }
193
+ ],
194
+ "outputs": [
195
+ {
196
+ "name": "context",
197
+ "type": "bytes",
198
+ "internalType": "bytes"
199
+ },
200
+ {
201
+ "name": "validationData",
202
+ "type": "uint256",
203
+ "internalType": "uint256"
204
+ }
205
+ ],
206
+ "stateMutability": "nonpayable"
207
+ },
208
+ {
209
+ "type": "function",
210
+ "name": "withdrawStake",
211
+ "inputs": [
212
+ {
213
+ "name": "withdrawAddress",
214
+ "type": "address",
215
+ "internalType": "address payable"
216
+ }
217
+ ],
218
+ "outputs": [],
219
+ "stateMutability": "nonpayable"
220
+ },
221
+ {
222
+ "type": "function",
223
+ "name": "withdrawTo",
224
+ "inputs": [
225
+ {
226
+ "name": "withdrawAddress",
227
+ "type": "address",
228
+ "internalType": "address payable"
229
+ },
230
+ {
231
+ "name": "amount",
232
+ "type": "uint256",
233
+ "internalType": "uint256"
234
+ }
235
+ ],
236
+ "outputs": [],
237
+ "stateMutability": "nonpayable"
238
+ },
239
+ {
240
+ "type": "event",
241
+ "name": "OwnershipTransferred",
242
+ "inputs": [
243
+ {
244
+ "name": "previousOwner",
245
+ "type": "address",
246
+ "indexed": true,
247
+ "internalType": "address"
248
+ },
249
+ {
250
+ "name": "newOwner",
251
+ "type": "address",
252
+ "indexed": true,
253
+ "internalType": "address"
254
+ }
255
+ ],
256
+ "anonymous": false
257
+ },
258
+ {
259
+ "type": "error",
260
+ "name": "OwnableInvalidOwner",
261
+ "inputs": [
262
+ {
263
+ "name": "owner",
264
+ "type": "address",
265
+ "internalType": "address"
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "type": "error",
271
+ "name": "OwnableUnauthorizedAccount",
272
+ "inputs": [
273
+ {
274
+ "name": "account",
275
+ "type": "address",
276
+ "internalType": "address"
277
+ }
278
+ ]
279
+ }
280
+ ]
@@ -0,0 +1,282 @@
1
+ declare const abi: [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "_entryPoint",
7
+ "type": "address",
8
+ "internalType": "contract IEntryPoint"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "addStake",
16
+ "inputs": [
17
+ {
18
+ "name": "unstakeDelaySec",
19
+ "type": "uint32",
20
+ "internalType": "uint32"
21
+ }
22
+ ],
23
+ "outputs": [],
24
+ "stateMutability": "payable"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "deposit",
29
+ "inputs": [],
30
+ "outputs": [],
31
+ "stateMutability": "payable"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "entryPoint",
36
+ "inputs": [],
37
+ "outputs": [
38
+ {
39
+ "name": "",
40
+ "type": "address",
41
+ "internalType": "contract IEntryPoint"
42
+ }
43
+ ],
44
+ "stateMutability": "view"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "getDeposit",
49
+ "inputs": [],
50
+ "outputs": [
51
+ {
52
+ "name": "",
53
+ "type": "uint256",
54
+ "internalType": "uint256"
55
+ }
56
+ ],
57
+ "stateMutability": "view"
58
+ },
59
+ {
60
+ "type": "function",
61
+ "name": "owner",
62
+ "inputs": [],
63
+ "outputs": [
64
+ {
65
+ "name": "",
66
+ "type": "address",
67
+ "internalType": "address"
68
+ }
69
+ ],
70
+ "stateMutability": "view"
71
+ },
72
+ {
73
+ "type": "function",
74
+ "name": "postOp",
75
+ "inputs": [
76
+ {
77
+ "name": "mode",
78
+ "type": "uint8",
79
+ "internalType": "enum IPaymaster.PostOpMode"
80
+ },
81
+ {
82
+ "name": "context",
83
+ "type": "bytes",
84
+ "internalType": "bytes"
85
+ },
86
+ {
87
+ "name": "actualGasCost",
88
+ "type": "uint256",
89
+ "internalType": "uint256"
90
+ },
91
+ {
92
+ "name": "actualUserOpFeePerGas",
93
+ "type": "uint256",
94
+ "internalType": "uint256"
95
+ }
96
+ ],
97
+ "outputs": [],
98
+ "stateMutability": "nonpayable"
99
+ },
100
+ {
101
+ "type": "function",
102
+ "name": "renounceOwnership",
103
+ "inputs": [],
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "transferOwnership",
110
+ "inputs": [
111
+ {
112
+ "name": "newOwner",
113
+ "type": "address",
114
+ "internalType": "address"
115
+ }
116
+ ],
117
+ "outputs": [],
118
+ "stateMutability": "nonpayable"
119
+ },
120
+ {
121
+ "type": "function",
122
+ "name": "unlockStake",
123
+ "inputs": [],
124
+ "outputs": [],
125
+ "stateMutability": "nonpayable"
126
+ },
127
+ {
128
+ "type": "function",
129
+ "name": "validatePaymasterUserOp",
130
+ "inputs": [
131
+ {
132
+ "name": "userOp",
133
+ "type": "tuple",
134
+ "internalType": "struct PackedUserOperation",
135
+ "components": [
136
+ {
137
+ "name": "sender",
138
+ "type": "address",
139
+ "internalType": "address"
140
+ },
141
+ {
142
+ "name": "nonce",
143
+ "type": "uint256",
144
+ "internalType": "uint256"
145
+ },
146
+ {
147
+ "name": "initCode",
148
+ "type": "bytes",
149
+ "internalType": "bytes"
150
+ },
151
+ {
152
+ "name": "callData",
153
+ "type": "bytes",
154
+ "internalType": "bytes"
155
+ },
156
+ {
157
+ "name": "accountGasLimits",
158
+ "type": "bytes32",
159
+ "internalType": "bytes32"
160
+ },
161
+ {
162
+ "name": "preVerificationGas",
163
+ "type": "uint256",
164
+ "internalType": "uint256"
165
+ },
166
+ {
167
+ "name": "gasFees",
168
+ "type": "bytes32",
169
+ "internalType": "bytes32"
170
+ },
171
+ {
172
+ "name": "paymasterAndData",
173
+ "type": "bytes",
174
+ "internalType": "bytes"
175
+ },
176
+ {
177
+ "name": "signature",
178
+ "type": "bytes",
179
+ "internalType": "bytes"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "name": "userOpHash",
185
+ "type": "bytes32",
186
+ "internalType": "bytes32"
187
+ },
188
+ {
189
+ "name": "maxCost",
190
+ "type": "uint256",
191
+ "internalType": "uint256"
192
+ }
193
+ ],
194
+ "outputs": [
195
+ {
196
+ "name": "context",
197
+ "type": "bytes",
198
+ "internalType": "bytes"
199
+ },
200
+ {
201
+ "name": "validationData",
202
+ "type": "uint256",
203
+ "internalType": "uint256"
204
+ }
205
+ ],
206
+ "stateMutability": "nonpayable"
207
+ },
208
+ {
209
+ "type": "function",
210
+ "name": "withdrawStake",
211
+ "inputs": [
212
+ {
213
+ "name": "withdrawAddress",
214
+ "type": "address",
215
+ "internalType": "address payable"
216
+ }
217
+ ],
218
+ "outputs": [],
219
+ "stateMutability": "nonpayable"
220
+ },
221
+ {
222
+ "type": "function",
223
+ "name": "withdrawTo",
224
+ "inputs": [
225
+ {
226
+ "name": "withdrawAddress",
227
+ "type": "address",
228
+ "internalType": "address payable"
229
+ },
230
+ {
231
+ "name": "amount",
232
+ "type": "uint256",
233
+ "internalType": "uint256"
234
+ }
235
+ ],
236
+ "outputs": [],
237
+ "stateMutability": "nonpayable"
238
+ },
239
+ {
240
+ "type": "event",
241
+ "name": "OwnershipTransferred",
242
+ "inputs": [
243
+ {
244
+ "name": "previousOwner",
245
+ "type": "address",
246
+ "indexed": true,
247
+ "internalType": "address"
248
+ },
249
+ {
250
+ "name": "newOwner",
251
+ "type": "address",
252
+ "indexed": true,
253
+ "internalType": "address"
254
+ }
255
+ ],
256
+ "anonymous": false
257
+ },
258
+ {
259
+ "type": "error",
260
+ "name": "OwnableInvalidOwner",
261
+ "inputs": [
262
+ {
263
+ "name": "owner",
264
+ "type": "address",
265
+ "internalType": "address"
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "type": "error",
271
+ "name": "OwnableUnauthorizedAccount",
272
+ "inputs": [
273
+ {
274
+ "name": "account",
275
+ "type": "address",
276
+ "internalType": "address"
277
+ }
278
+ ]
279
+ }
280
+ ];
281
+
282
+ export default abi;