@funkit/core 2.1.0 → 2.1.2-next.0
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/dist/src/abis/ApproveAndExec.json +45 -9
- package/dist/src/abis/ApproveAndSwap.json +141 -1
- package/dist/src/abis/CheckoutPaymaster.json +3358 -1
- package/dist/src/abis/EntryPoint.json +590 -113
- package/dist/src/abis/EstimationPaymaster.json +134 -24
- package/dist/src/abis/FeePercentOracle.json +94 -18
- package/dist/src/abis/FunWallet.json +280 -56
- package/dist/src/abis/FunWalletFactory.json +112 -21
- package/dist/src/abis/GaslessPaymaster.json +279 -50
- package/dist/src/abis/RoleBasedAccessControl.json +2 -1
- package/dist/src/abis/TestNFT.json +71 -15
- package/dist/src/abis/TokenPriceOracle.json +17 -4
- package/dist/src/abis/UserAuthentication.json +147 -32
- package/dist/src/auth/Auth.js +10 -4
- package/dist/src/auth/Auth.js.map +1 -1
- package/dist/src/common/constants.d.ts +164 -0
- package/dist/src/common/constants.js +56 -1
- package/dist/src/common/constants.js.map +1 -1
- package/dist/src/viem/Converter.d.ts +16 -16
- package/dist/src/wallet/FunWallet.d.ts +1 -1
- package/package.json +2 -1
|
@@ -2,15 +2,31 @@
|
|
|
2
2
|
"name": "EstimationPaymaster",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
|
-
"inputs": [
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "contract IEntryPoint",
|
|
8
|
+
"name": "_entryPoint",
|
|
9
|
+
"type": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
6
12
|
"stateMutability": "nonpayable",
|
|
7
13
|
"type": "constructor"
|
|
8
14
|
},
|
|
9
15
|
{
|
|
10
16
|
"anonymous": false,
|
|
11
17
|
"inputs": [
|
|
12
|
-
{
|
|
13
|
-
|
|
18
|
+
{
|
|
19
|
+
"indexed": true,
|
|
20
|
+
"internalType": "address",
|
|
21
|
+
"name": "previousOwner",
|
|
22
|
+
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"indexed": true,
|
|
26
|
+
"internalType": "address",
|
|
27
|
+
"name": "newOwner",
|
|
28
|
+
"type": "address"
|
|
29
|
+
}
|
|
14
30
|
],
|
|
15
31
|
"name": "OwnershipTransferStarted",
|
|
16
32
|
"type": "event"
|
|
@@ -18,28 +34,59 @@
|
|
|
18
34
|
{
|
|
19
35
|
"anonymous": false,
|
|
20
36
|
"inputs": [
|
|
21
|
-
{
|
|
22
|
-
|
|
37
|
+
{
|
|
38
|
+
"indexed": true,
|
|
39
|
+
"internalType": "address",
|
|
40
|
+
"name": "previousOwner",
|
|
41
|
+
"type": "address"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"indexed": true,
|
|
45
|
+
"internalType": "address",
|
|
46
|
+
"name": "newOwner",
|
|
47
|
+
"type": "address"
|
|
48
|
+
}
|
|
23
49
|
],
|
|
24
50
|
"name": "OwnershipTransferred",
|
|
25
51
|
"type": "event"
|
|
26
52
|
},
|
|
27
53
|
{
|
|
28
54
|
"anonymous": false,
|
|
29
|
-
"inputs": [
|
|
55
|
+
"inputs": [
|
|
56
|
+
{
|
|
57
|
+
"indexed": false,
|
|
58
|
+
"internalType": "contract IEntryPoint",
|
|
59
|
+
"name": "entryPoint",
|
|
60
|
+
"type": "address"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
30
63
|
"name": "PaymasterCreated",
|
|
31
64
|
"type": "event"
|
|
32
65
|
},
|
|
33
|
-
{ "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
|
|
34
66
|
{
|
|
35
|
-
"inputs": [
|
|
67
|
+
"inputs": [],
|
|
68
|
+
"name": "acceptOwnership",
|
|
69
|
+
"outputs": [],
|
|
70
|
+
"stateMutability": "nonpayable",
|
|
71
|
+
"type": "function"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputs": [
|
|
75
|
+
{ "internalType": "address", "name": "sponsor", "type": "address" }
|
|
76
|
+
],
|
|
36
77
|
"name": "addDepositTo",
|
|
37
78
|
"outputs": [],
|
|
38
79
|
"stateMutability": "payable",
|
|
39
80
|
"type": "function"
|
|
40
81
|
},
|
|
41
82
|
{
|
|
42
|
-
"inputs": [
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "uint32",
|
|
86
|
+
"name": "unstakeDelaySec",
|
|
87
|
+
"type": "uint32"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
43
90
|
"name": "addStakeToEntryPoint",
|
|
44
91
|
"outputs": [],
|
|
45
92
|
"stateMutability": "payable",
|
|
@@ -55,7 +102,13 @@
|
|
|
55
102
|
{
|
|
56
103
|
"inputs": [],
|
|
57
104
|
"name": "entryPoint",
|
|
58
|
-
"outputs": [
|
|
105
|
+
"outputs": [
|
|
106
|
+
{
|
|
107
|
+
"internalType": "contract IEntryPoint",
|
|
108
|
+
"name": "",
|
|
109
|
+
"type": "address"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
59
112
|
"stateMutability": "view",
|
|
60
113
|
"type": "function"
|
|
61
114
|
},
|
|
@@ -75,24 +128,46 @@
|
|
|
75
128
|
},
|
|
76
129
|
{
|
|
77
130
|
"inputs": [
|
|
78
|
-
{
|
|
131
|
+
{
|
|
132
|
+
"internalType": "enum IPaymaster.PostOpMode",
|
|
133
|
+
"name": "mode",
|
|
134
|
+
"type": "uint8"
|
|
135
|
+
},
|
|
79
136
|
{ "internalType": "bytes", "name": "context", "type": "bytes" },
|
|
80
|
-
{
|
|
137
|
+
{
|
|
138
|
+
"internalType": "uint256",
|
|
139
|
+
"name": "actualGasCost",
|
|
140
|
+
"type": "uint256"
|
|
141
|
+
}
|
|
81
142
|
],
|
|
82
143
|
"name": "postOp",
|
|
83
144
|
"outputs": [],
|
|
84
145
|
"stateMutability": "nonpayable",
|
|
85
146
|
"type": "function"
|
|
86
147
|
},
|
|
87
|
-
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
|
|
88
148
|
{
|
|
89
|
-
"inputs": [
|
|
149
|
+
"inputs": [],
|
|
150
|
+
"name": "renounceOwnership",
|
|
151
|
+
"outputs": [],
|
|
152
|
+
"stateMutability": "nonpayable",
|
|
153
|
+
"type": "function"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"inputs": [
|
|
157
|
+
{ "internalType": "address", "name": "newOwner", "type": "address" }
|
|
158
|
+
],
|
|
90
159
|
"name": "transferOwnership",
|
|
91
160
|
"outputs": [],
|
|
92
161
|
"stateMutability": "nonpayable",
|
|
93
162
|
"type": "function"
|
|
94
163
|
},
|
|
95
|
-
{
|
|
164
|
+
{
|
|
165
|
+
"inputs": [],
|
|
166
|
+
"name": "unlockStakeFromEntryPoint",
|
|
167
|
+
"outputs": [],
|
|
168
|
+
"stateMutability": "nonpayable",
|
|
169
|
+
"type": "function"
|
|
170
|
+
},
|
|
96
171
|
{
|
|
97
172
|
"inputs": [
|
|
98
173
|
{
|
|
@@ -101,12 +176,36 @@
|
|
|
101
176
|
{ "internalType": "uint256", "name": "nonce", "type": "uint256" },
|
|
102
177
|
{ "internalType": "bytes", "name": "initCode", "type": "bytes" },
|
|
103
178
|
{ "internalType": "bytes", "name": "callData", "type": "bytes" },
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
{
|
|
179
|
+
{
|
|
180
|
+
"internalType": "uint256",
|
|
181
|
+
"name": "callGasLimit",
|
|
182
|
+
"type": "uint256"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"internalType": "uint256",
|
|
186
|
+
"name": "verificationGasLimit",
|
|
187
|
+
"type": "uint256"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"internalType": "uint256",
|
|
191
|
+
"name": "preVerificationGas",
|
|
192
|
+
"type": "uint256"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"internalType": "uint256",
|
|
196
|
+
"name": "maxFeePerGas",
|
|
197
|
+
"type": "uint256"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"internalType": "uint256",
|
|
201
|
+
"name": "maxPriorityFeePerGas",
|
|
202
|
+
"type": "uint256"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"internalType": "bytes",
|
|
206
|
+
"name": "paymasterAndData",
|
|
207
|
+
"type": "bytes"
|
|
208
|
+
},
|
|
110
209
|
{ "internalType": "bytes", "name": "signature", "type": "bytes" }
|
|
111
210
|
],
|
|
112
211
|
"internalType": "struct UserOperation",
|
|
@@ -127,7 +226,11 @@
|
|
|
127
226
|
{
|
|
128
227
|
"inputs": [
|
|
129
228
|
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
130
|
-
{
|
|
229
|
+
{
|
|
230
|
+
"internalType": "address payable",
|
|
231
|
+
"name": "target",
|
|
232
|
+
"type": "address"
|
|
233
|
+
}
|
|
131
234
|
],
|
|
132
235
|
"name": "withdrawDepositTo",
|
|
133
236
|
"outputs": [],
|
|
@@ -135,7 +238,13 @@
|
|
|
135
238
|
"type": "function"
|
|
136
239
|
},
|
|
137
240
|
{
|
|
138
|
-
"inputs": [
|
|
241
|
+
"inputs": [
|
|
242
|
+
{
|
|
243
|
+
"internalType": "address payable",
|
|
244
|
+
"name": "withdrawAddress",
|
|
245
|
+
"type": "address"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
139
248
|
"name": "withdrawStakeFromEntryPoint",
|
|
140
249
|
"outputs": [],
|
|
141
250
|
"stateMutability": "nonpayable",
|
|
@@ -151,6 +260,7 @@
|
|
|
151
260
|
"36865": "0xe1B7B9d686948745a6425DF97a6480f5Bf75e508",
|
|
152
261
|
"42161": "0x5ceb145d53841d2f6255fE668e5eBbd286B2C862",
|
|
153
262
|
"421614": "0xaB9893703641d1B871B0F47f597CcAD7f922503E",
|
|
154
|
-
"5000": "0x091a5301c118A8832B4574e8B88c94A14343eb52"
|
|
263
|
+
"5000": "0x091a5301c118A8832B4574e8B88c94A14343eb52",
|
|
264
|
+
"534352": "0x5ceb145d53841d2f6255fE668e5eBbd286B2C862"
|
|
155
265
|
}
|
|
156
266
|
}
|
|
@@ -2,16 +2,33 @@
|
|
|
2
2
|
"name": "FeePercentOracle",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
|
-
"inputs": [
|
|
5
|
+
"inputs": [
|
|
6
|
+
{ "internalType": "address", "name": "owner", "type": "address" }
|
|
7
|
+
],
|
|
6
8
|
"stateMutability": "nonpayable",
|
|
7
9
|
"type": "constructor"
|
|
8
10
|
},
|
|
9
11
|
{
|
|
10
12
|
"anonymous": false,
|
|
11
13
|
"inputs": [
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
{
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "address",
|
|
17
|
+
"name": "token",
|
|
18
|
+
"type": "address"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"indexed": true,
|
|
22
|
+
"internalType": "address",
|
|
23
|
+
"name": "to",
|
|
24
|
+
"type": "address"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"indexed": true,
|
|
28
|
+
"internalType": "uint256",
|
|
29
|
+
"name": "amount",
|
|
30
|
+
"type": "uint256"
|
|
31
|
+
}
|
|
15
32
|
],
|
|
16
33
|
"name": "Erc20Withdrawn",
|
|
17
34
|
"type": "event"
|
|
@@ -19,8 +36,18 @@
|
|
|
19
36
|
{
|
|
20
37
|
"anonymous": false,
|
|
21
38
|
"inputs": [
|
|
22
|
-
{
|
|
23
|
-
|
|
39
|
+
{
|
|
40
|
+
"indexed": true,
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "amount",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"indexed": true,
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "to",
|
|
49
|
+
"type": "address"
|
|
50
|
+
}
|
|
24
51
|
],
|
|
25
52
|
"name": "EthWithdrawn",
|
|
26
53
|
"type": "event"
|
|
@@ -28,8 +55,18 @@
|
|
|
28
55
|
{
|
|
29
56
|
"anonymous": false,
|
|
30
57
|
"inputs": [
|
|
31
|
-
{
|
|
32
|
-
|
|
58
|
+
{
|
|
59
|
+
"indexed": true,
|
|
60
|
+
"internalType": "uint120",
|
|
61
|
+
"name": "feepercent",
|
|
62
|
+
"type": "uint120"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"indexed": true,
|
|
66
|
+
"internalType": "uint8",
|
|
67
|
+
"name": "decimals",
|
|
68
|
+
"type": "uint8"
|
|
69
|
+
}
|
|
33
70
|
],
|
|
34
71
|
"name": "FeePercentSet",
|
|
35
72
|
"type": "event"
|
|
@@ -37,8 +74,18 @@
|
|
|
37
74
|
{
|
|
38
75
|
"anonymous": false,
|
|
39
76
|
"inputs": [
|
|
40
|
-
{
|
|
41
|
-
|
|
77
|
+
{
|
|
78
|
+
"indexed": true,
|
|
79
|
+
"internalType": "address",
|
|
80
|
+
"name": "previousOwner",
|
|
81
|
+
"type": "address"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"indexed": true,
|
|
85
|
+
"internalType": "address",
|
|
86
|
+
"name": "newOwner",
|
|
87
|
+
"type": "address"
|
|
88
|
+
}
|
|
42
89
|
],
|
|
43
90
|
"name": "OwnershipTransferStarted",
|
|
44
91
|
"type": "event"
|
|
@@ -46,13 +93,29 @@
|
|
|
46
93
|
{
|
|
47
94
|
"anonymous": false,
|
|
48
95
|
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
|
|
96
|
+
{
|
|
97
|
+
"indexed": true,
|
|
98
|
+
"internalType": "address",
|
|
99
|
+
"name": "previousOwner",
|
|
100
|
+
"type": "address"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"indexed": true,
|
|
104
|
+
"internalType": "address",
|
|
105
|
+
"name": "newOwner",
|
|
106
|
+
"type": "address"
|
|
107
|
+
}
|
|
51
108
|
],
|
|
52
109
|
"name": "OwnershipTransferred",
|
|
53
110
|
"type": "event"
|
|
54
111
|
},
|
|
55
|
-
{
|
|
112
|
+
{
|
|
113
|
+
"inputs": [],
|
|
114
|
+
"name": "acceptOwnership",
|
|
115
|
+
"outputs": [],
|
|
116
|
+
"stateMutability": "nonpayable",
|
|
117
|
+
"type": "function"
|
|
118
|
+
},
|
|
56
119
|
{
|
|
57
120
|
"inputs": [],
|
|
58
121
|
"name": "decimals",
|
|
@@ -68,7 +131,9 @@
|
|
|
68
131
|
"type": "function"
|
|
69
132
|
},
|
|
70
133
|
{
|
|
71
|
-
"inputs": [
|
|
134
|
+
"inputs": [
|
|
135
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
136
|
+
],
|
|
72
137
|
"name": "getFee",
|
|
73
138
|
"outputs": [
|
|
74
139
|
{ "internalType": "uint256", "name": "funCut", "type": "uint256" },
|
|
@@ -91,7 +156,13 @@
|
|
|
91
156
|
"stateMutability": "view",
|
|
92
157
|
"type": "function"
|
|
93
158
|
},
|
|
94
|
-
{
|
|
159
|
+
{
|
|
160
|
+
"inputs": [],
|
|
161
|
+
"name": "renounceOwnership",
|
|
162
|
+
"outputs": [],
|
|
163
|
+
"stateMutability": "nonpayable",
|
|
164
|
+
"type": "function"
|
|
165
|
+
},
|
|
95
166
|
{
|
|
96
167
|
"inputs": [
|
|
97
168
|
{ "internalType": "uint120", "name": "_feepercent", "type": "uint120" },
|
|
@@ -103,7 +174,9 @@
|
|
|
103
174
|
"type": "function"
|
|
104
175
|
},
|
|
105
176
|
{
|
|
106
|
-
"inputs": [
|
|
177
|
+
"inputs": [
|
|
178
|
+
{ "internalType": "address", "name": "newOwner", "type": "address" }
|
|
179
|
+
],
|
|
107
180
|
"name": "transferOwnership",
|
|
108
181
|
"outputs": [],
|
|
109
182
|
"stateMutability": "nonpayable",
|
|
@@ -120,7 +193,9 @@
|
|
|
120
193
|
"type": "function"
|
|
121
194
|
},
|
|
122
195
|
{
|
|
123
|
-
"inputs": [
|
|
196
|
+
"inputs": [
|
|
197
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
|
|
198
|
+
],
|
|
124
199
|
"name": "withdrawEth",
|
|
125
200
|
"outputs": [],
|
|
126
201
|
"stateMutability": "nonpayable",
|
|
@@ -137,6 +212,7 @@
|
|
|
137
212
|
"36865": "0x118c66c1D05F80784E164541b1556045c9018261",
|
|
138
213
|
"42161": "0xDDcD7DF0558536472eD448846C6608bace86f7aC",
|
|
139
214
|
"421614": "0x327f55ECAAa8A38BA71a1594EEFDc96F8f1b7f28",
|
|
140
|
-
"5000": "0x00422527E4b6A898F3CDA4f43Dd456daD7633c4D"
|
|
215
|
+
"5000": "0x00422527E4b6A898F3CDA4f43Dd456daD7633c4D",
|
|
216
|
+
"534352": "0x1CaD2167bd7C42aF6ED8E2079558D43A8fC72f0b"
|
|
141
217
|
}
|
|
142
218
|
}
|