@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
|
@@ -4,11 +4,36 @@
|
|
|
4
4
|
{
|
|
5
5
|
"anonymous": false,
|
|
6
6
|
"inputs": [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
{
|
|
8
|
+
"indexed": true,
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "dest",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"indexed": false,
|
|
15
|
+
"internalType": "uint256",
|
|
16
|
+
"name": "value",
|
|
17
|
+
"type": "uint256"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"indexed": false,
|
|
21
|
+
"internalType": "bytes",
|
|
22
|
+
"name": "executeData",
|
|
23
|
+
"type": "bytes"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"indexed": false,
|
|
27
|
+
"internalType": "address",
|
|
28
|
+
"name": "token",
|
|
29
|
+
"type": "address"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"indexed": false,
|
|
33
|
+
"internalType": "bytes",
|
|
34
|
+
"name": "approveData",
|
|
35
|
+
"type": "bytes"
|
|
36
|
+
}
|
|
12
37
|
],
|
|
13
38
|
"name": "ApproveAndExecute",
|
|
14
39
|
"type": "event"
|
|
@@ -41,9 +66,13 @@
|
|
|
41
66
|
"type": "function"
|
|
42
67
|
},
|
|
43
68
|
{
|
|
44
|
-
"inputs": [
|
|
69
|
+
"inputs": [
|
|
70
|
+
{ "internalType": "bytes32", "name": "key", "type": "bytes32" }
|
|
71
|
+
],
|
|
45
72
|
"name": "getState",
|
|
46
|
-
"outputs": [
|
|
73
|
+
"outputs": [
|
|
74
|
+
{ "internalType": "bytes", "name": "state", "type": "bytes" }
|
|
75
|
+
],
|
|
47
76
|
"stateMutability": "view",
|
|
48
77
|
"type": "function"
|
|
49
78
|
},
|
|
@@ -54,7 +83,13 @@
|
|
|
54
83
|
"stateMutability": "view",
|
|
55
84
|
"type": "function"
|
|
56
85
|
},
|
|
57
|
-
{
|
|
86
|
+
{
|
|
87
|
+
"inputs": [],
|
|
88
|
+
"name": "payFee",
|
|
89
|
+
"outputs": [],
|
|
90
|
+
"stateMutability": "nonpayable",
|
|
91
|
+
"type": "function"
|
|
92
|
+
}
|
|
58
93
|
],
|
|
59
94
|
"addresses": {
|
|
60
95
|
"1": "0xD953Eda57EAB69F2EB0103bffA9acc66eA98e0aB",
|
|
@@ -65,6 +100,7 @@
|
|
|
65
100
|
"36865": "0xD953Eda57EAB69F2EB0103bffA9acc66eA98e0aB",
|
|
66
101
|
"42161": "0xD953Eda57EAB69F2EB0103bffA9acc66eA98e0aB",
|
|
67
102
|
"421614": "0x587f2f3B109Ed85059AEC26a68E694e678C2F917",
|
|
68
|
-
"5000": "0x1d8538726daE26eE163ebB7606c1f145395F838c"
|
|
103
|
+
"5000": "0x1d8538726daE26eE163ebB7606c1f145395F838c",
|
|
104
|
+
"534352": "0xC5f3e88055304cBdE593a6659797EF92C2613653"
|
|
69
105
|
}
|
|
70
106
|
}
|
|
@@ -1 +1,141 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "ApproveAndSwap",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{ "internalType": "address", "name": "_wethAddr", "type": "address" },
|
|
7
|
+
{ "internalType": "address", "name": "_router", "type": "address" }
|
|
8
|
+
],
|
|
9
|
+
"stateMutability": "nonpayable",
|
|
10
|
+
"type": "constructor"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"anonymous": false,
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"indexed": true,
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "tokenAddr",
|
|
19
|
+
"type": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"indexed": false,
|
|
23
|
+
"internalType": "uint256",
|
|
24
|
+
"name": "amount",
|
|
25
|
+
"type": "uint256"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"name": "SwapERC20Executed",
|
|
29
|
+
"type": "event"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"anonymous": false,
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"indexed": false,
|
|
36
|
+
"internalType": "uint256",
|
|
37
|
+
"name": "amount",
|
|
38
|
+
"type": "uint256"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"name": "SwapETHExecuted",
|
|
42
|
+
"type": "event"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"inputs": [],
|
|
46
|
+
"name": "EMPTY_STATE",
|
|
47
|
+
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
|
|
48
|
+
"stateMutability": "view",
|
|
49
|
+
"type": "function"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"inputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
|
|
53
|
+
"name": "execute",
|
|
54
|
+
"outputs": [],
|
|
55
|
+
"stateMutability": "nonpayable",
|
|
56
|
+
"type": "function"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [
|
|
60
|
+
{ "internalType": "address", "name": "tokenAddr", "type": "address" },
|
|
61
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
62
|
+
{ "internalType": "bytes", "name": "routerCallData", "type": "bytes" }
|
|
63
|
+
],
|
|
64
|
+
"name": "executeSwapERC20",
|
|
65
|
+
"outputs": [],
|
|
66
|
+
"stateMutability": "nonpayable",
|
|
67
|
+
"type": "function"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputs": [
|
|
71
|
+
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
|
|
72
|
+
{ "internalType": "bytes", "name": "routerCallData", "type": "bytes" }
|
|
73
|
+
],
|
|
74
|
+
"name": "executeSwapETH",
|
|
75
|
+
"outputs": [],
|
|
76
|
+
"stateMutability": "nonpayable",
|
|
77
|
+
"type": "function"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"inputs": [
|
|
81
|
+
{ "internalType": "bytes32", "name": "key", "type": "bytes32" }
|
|
82
|
+
],
|
|
83
|
+
"name": "getState",
|
|
84
|
+
"outputs": [
|
|
85
|
+
{ "internalType": "bytes", "name": "state", "type": "bytes" }
|
|
86
|
+
],
|
|
87
|
+
"stateMutability": "view",
|
|
88
|
+
"type": "function"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [],
|
|
92
|
+
"name": "getWeth",
|
|
93
|
+
"outputs": [
|
|
94
|
+
{ "internalType": "contractIWETH9", "name": "", "type": "address" }
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view",
|
|
97
|
+
"type": "function"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [],
|
|
101
|
+
"name": "moduleId",
|
|
102
|
+
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
|
|
103
|
+
"stateMutability": "view",
|
|
104
|
+
"type": "function"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "payFee",
|
|
109
|
+
"outputs": [],
|
|
110
|
+
"stateMutability": "nonpayable",
|
|
111
|
+
"type": "function"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"inputs": [],
|
|
115
|
+
"name": "router",
|
|
116
|
+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
117
|
+
"stateMutability": "view",
|
|
118
|
+
"type": "function"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"inputs": [],
|
|
122
|
+
"name": "weth",
|
|
123
|
+
"outputs": [
|
|
124
|
+
{ "internalType": "contractIWETH9", "name": "", "type": "address" }
|
|
125
|
+
],
|
|
126
|
+
"stateMutability": "view",
|
|
127
|
+
"type": "function"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"numDeployments": 1,
|
|
131
|
+
"addresses": {
|
|
132
|
+
"1": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
133
|
+
"5": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
134
|
+
"10": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
135
|
+
"137": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
136
|
+
"8453": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
137
|
+
"36865": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
138
|
+
"42161": "0xe65d63A9B4842c0dc0916aE5368356Ca0212f2CB",
|
|
139
|
+
"421614": "0xd0d92c17C4123F0e8b571b0Dd0997d4a5E88Bb52"
|
|
140
|
+
}
|
|
141
|
+
}
|