Skip to content

Commit 9fb7acc

Browse files
committed
weth reimplement
1 parent 413a16f commit 9fb7acc

File tree

3 files changed

+164
-787
lines changed

3 files changed

+164
-787
lines changed

abi/WETH9.json

+74-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
[
2+
{
3+
"inputs": [],
4+
"stateMutability": "nonpayable",
5+
"type": "constructor"
6+
},
27
{
38
"anonymous": false,
49
"inputs": [
510
{
611
"indexed": true,
712
"internalType": "address",
8-
"name": "src",
13+
"name": "owner",
914
"type": "address"
1015
},
1116
{
1217
"indexed": true,
1318
"internalType": "address",
14-
"name": "guy",
19+
"name": "spender",
1520
"type": "address"
1621
},
1722
{
1823
"indexed": false,
1924
"internalType": "uint256",
20-
"name": "wad",
25+
"name": "value",
2126
"type": "uint256"
2227
}
2328
],
@@ -30,13 +35,13 @@
3035
{
3136
"indexed": true,
3237
"internalType": "address",
33-
"name": "dst",
38+
"name": "sender",
3439
"type": "address"
3540
},
3641
{
3742
"indexed": false,
3843
"internalType": "uint256",
39-
"name": "wad",
44+
"name": "amount",
4045
"type": "uint256"
4146
}
4247
],
@@ -49,19 +54,19 @@
4954
{
5055
"indexed": true,
5156
"internalType": "address",
52-
"name": "src",
57+
"name": "from",
5358
"type": "address"
5459
},
5560
{
5661
"indexed": true,
5762
"internalType": "address",
58-
"name": "dst",
63+
"name": "to",
5964
"type": "address"
6065
},
6166
{
6267
"indexed": false,
6368
"internalType": "uint256",
64-
"name": "wad",
69+
"name": "value",
6570
"type": "uint256"
6671
}
6772
],
@@ -74,13 +79,13 @@
7479
{
7580
"indexed": true,
7681
"internalType": "address",
77-
"name": "src",
82+
"name": "sender",
7883
"type": "address"
7984
},
8085
{
8186
"indexed": false,
8287
"internalType": "uint256",
83-
"name": "wad",
88+
"name": "amount",
8489
"type": "uint256"
8590
}
8691
],
@@ -91,12 +96,12 @@
9196
"inputs": [
9297
{
9398
"internalType": "address",
94-
"name": "",
99+
"name": "owner",
95100
"type": "address"
96101
},
97102
{
98103
"internalType": "address",
99-
"name": "",
104+
"name": "spender",
100105
"type": "address"
101106
}
102107
],
@@ -115,12 +120,12 @@
115120
"inputs": [
116121
{
117122
"internalType": "address",
118-
"name": "guy",
123+
"name": "spender",
119124
"type": "address"
120125
},
121126
{
122127
"internalType": "uint256",
123-
"name": "wad",
128+
"name": "amount",
124129
"type": "uint256"
125130
}
126131
],
@@ -139,7 +144,7 @@
139144
"inputs": [
140145
{
141146
"internalType": "address",
142-
"name": "",
147+
"name": "account",
143148
"type": "address"
144149
}
145150
],
@@ -167,13 +172,61 @@
167172
"stateMutability": "view",
168173
"type": "function"
169174
},
175+
{
176+
"inputs": [
177+
{
178+
"internalType": "address",
179+
"name": "spender",
180+
"type": "address"
181+
},
182+
{
183+
"internalType": "uint256",
184+
"name": "subtractedValue",
185+
"type": "uint256"
186+
}
187+
],
188+
"name": "decreaseAllowance",
189+
"outputs": [
190+
{
191+
"internalType": "bool",
192+
"name": "",
193+
"type": "bool"
194+
}
195+
],
196+
"stateMutability": "nonpayable",
197+
"type": "function"
198+
},
170199
{
171200
"inputs": [],
172201
"name": "deposit",
173202
"outputs": [],
174203
"stateMutability": "payable",
175204
"type": "function"
176205
},
206+
{
207+
"inputs": [
208+
{
209+
"internalType": "address",
210+
"name": "spender",
211+
"type": "address"
212+
},
213+
{
214+
"internalType": "uint256",
215+
"name": "addedValue",
216+
"type": "uint256"
217+
}
218+
],
219+
"name": "increaseAllowance",
220+
"outputs": [
221+
{
222+
"internalType": "bool",
223+
"name": "",
224+
"type": "bool"
225+
}
226+
],
227+
"stateMutability": "nonpayable",
228+
"type": "function"
229+
},
177230
{
178231
"inputs": [],
179232
"name": "name",
@@ -217,12 +270,12 @@
217270
"inputs": [
218271
{
219272
"internalType": "address",
220-
"name": "dst",
273+
"name": "recipient",
221274
"type": "address"
222275
},
223276
{
224277
"internalType": "uint256",
225-
"name": "wad",
278+
"name": "amount",
226279
"type": "uint256"
227280
}
228281
],
@@ -241,17 +294,17 @@
241294
"inputs": [
242295
{
243296
"internalType": "address",
244-
"name": "src",
297+
"name": "sender",
245298
"type": "address"
246299
},
247300
{
248301
"internalType": "address",
249-
"name": "dst",
302+
"name": "recipient",
250303
"type": "address"
251304
},
252305
{
253306
"internalType": "uint256",
254-
"name": "wad",
307+
"name": "amount",
255308
"type": "uint256"
256309
}
257310
],
@@ -270,7 +323,7 @@
270323
"inputs": [
271324
{
272325
"internalType": "uint256",
273-
"name": "wad",
326+
"name": "amount",
274327
"type": "uint256"
275328
}
276329
],

0 commit comments

Comments
 (0)