eth 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/spec.yml +1 -0
- data/CHANGELOG.md +18 -0
- data/CODE_OF_CONDUCT.md +122 -0
- data/CONTRIBUTING.md +61 -0
- data/README.md +5 -1
- data/SECURITY.md +24 -0
- data/abi/ens_registry.json +436 -0
- data/abi/ens_resolver.json +885 -0
- data/lib/eth/client.rb +79 -6
- data/lib/eth/ens/coin_type.rb +50 -0
- data/lib/eth/ens/resolver.rb +67 -23
- data/lib/eth/ens.rb +28 -0
- data/lib/eth/version.rb +1 -1
- data/lib/eth.rb +1 -1
- metadata +10 -4
- data/abis/ens.json +0 -422
data/abis/ens.json
DELETED
@@ -1,422 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"inputs": [
|
4
|
-
{
|
5
|
-
"internalType": "contract ENS",
|
6
|
-
"name": "_old",
|
7
|
-
"type": "address"
|
8
|
-
}
|
9
|
-
],
|
10
|
-
"payable": false,
|
11
|
-
"stateMutability": "nonpayable",
|
12
|
-
"type": "constructor"
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"anonymous": false,
|
16
|
-
"inputs": [
|
17
|
-
{
|
18
|
-
"indexed": true,
|
19
|
-
"internalType": "address",
|
20
|
-
"name": "owner",
|
21
|
-
"type": "address"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"indexed": true,
|
25
|
-
"internalType": "address",
|
26
|
-
"name": "operator",
|
27
|
-
"type": "address"
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"indexed": false,
|
31
|
-
"internalType": "bool",
|
32
|
-
"name": "approved",
|
33
|
-
"type": "bool"
|
34
|
-
}
|
35
|
-
],
|
36
|
-
"name": "ApprovalForAll",
|
37
|
-
"type": "event"
|
38
|
-
},
|
39
|
-
{
|
40
|
-
"anonymous": false,
|
41
|
-
"inputs": [
|
42
|
-
{
|
43
|
-
"indexed": true,
|
44
|
-
"internalType": "bytes32",
|
45
|
-
"name": "node",
|
46
|
-
"type": "bytes32"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"indexed": true,
|
50
|
-
"internalType": "bytes32",
|
51
|
-
"name": "label",
|
52
|
-
"type": "bytes32"
|
53
|
-
},
|
54
|
-
{
|
55
|
-
"indexed": false,
|
56
|
-
"internalType": "address",
|
57
|
-
"name": "owner",
|
58
|
-
"type": "address"
|
59
|
-
}
|
60
|
-
],
|
61
|
-
"name": "NewOwner",
|
62
|
-
"type": "event"
|
63
|
-
},
|
64
|
-
{
|
65
|
-
"anonymous": false,
|
66
|
-
"inputs": [
|
67
|
-
{
|
68
|
-
"indexed": true,
|
69
|
-
"internalType": "bytes32",
|
70
|
-
"name": "node",
|
71
|
-
"type": "bytes32"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"indexed": false,
|
75
|
-
"internalType": "address",
|
76
|
-
"name": "resolver",
|
77
|
-
"type": "address"
|
78
|
-
}
|
79
|
-
],
|
80
|
-
"name": "NewResolver",
|
81
|
-
"type": "event"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"anonymous": false,
|
85
|
-
"inputs": [
|
86
|
-
{
|
87
|
-
"indexed": true,
|
88
|
-
"internalType": "bytes32",
|
89
|
-
"name": "node",
|
90
|
-
"type": "bytes32"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"indexed": false,
|
94
|
-
"internalType": "uint64",
|
95
|
-
"name": "ttl",
|
96
|
-
"type": "uint64"
|
97
|
-
}
|
98
|
-
],
|
99
|
-
"name": "NewTTL",
|
100
|
-
"type": "event"
|
101
|
-
},
|
102
|
-
{
|
103
|
-
"anonymous": false,
|
104
|
-
"inputs": [
|
105
|
-
{
|
106
|
-
"indexed": true,
|
107
|
-
"internalType": "bytes32",
|
108
|
-
"name": "node",
|
109
|
-
"type": "bytes32"
|
110
|
-
},
|
111
|
-
{
|
112
|
-
"indexed": false,
|
113
|
-
"internalType": "address",
|
114
|
-
"name": "owner",
|
115
|
-
"type": "address"
|
116
|
-
}
|
117
|
-
],
|
118
|
-
"name": "Transfer",
|
119
|
-
"type": "event"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"constant": true,
|
123
|
-
"inputs": [
|
124
|
-
{
|
125
|
-
"internalType": "address",
|
126
|
-
"name": "owner",
|
127
|
-
"type": "address"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
"internalType": "address",
|
131
|
-
"name": "operator",
|
132
|
-
"type": "address"
|
133
|
-
}
|
134
|
-
],
|
135
|
-
"name": "isApprovedForAll",
|
136
|
-
"outputs": [
|
137
|
-
{
|
138
|
-
"internalType": "bool",
|
139
|
-
"name": "",
|
140
|
-
"type": "bool"
|
141
|
-
}
|
142
|
-
],
|
143
|
-
"payable": false,
|
144
|
-
"stateMutability": "view",
|
145
|
-
"type": "function"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
"constant": true,
|
149
|
-
"inputs": [],
|
150
|
-
"name": "old",
|
151
|
-
"outputs": [
|
152
|
-
{
|
153
|
-
"internalType": "contract ENS",
|
154
|
-
"name": "",
|
155
|
-
"type": "address"
|
156
|
-
}
|
157
|
-
],
|
158
|
-
"payable": false,
|
159
|
-
"stateMutability": "view",
|
160
|
-
"type": "function"
|
161
|
-
},
|
162
|
-
{
|
163
|
-
"constant": true,
|
164
|
-
"inputs": [
|
165
|
-
{
|
166
|
-
"internalType": "bytes32",
|
167
|
-
"name": "node",
|
168
|
-
"type": "bytes32"
|
169
|
-
}
|
170
|
-
],
|
171
|
-
"name": "owner",
|
172
|
-
"outputs": [
|
173
|
-
{
|
174
|
-
"internalType": "address",
|
175
|
-
"name": "",
|
176
|
-
"type": "address"
|
177
|
-
}
|
178
|
-
],
|
179
|
-
"payable": false,
|
180
|
-
"stateMutability": "view",
|
181
|
-
"type": "function"
|
182
|
-
},
|
183
|
-
{
|
184
|
-
"constant": true,
|
185
|
-
"inputs": [
|
186
|
-
{
|
187
|
-
"internalType": "bytes32",
|
188
|
-
"name": "node",
|
189
|
-
"type": "bytes32"
|
190
|
-
}
|
191
|
-
],
|
192
|
-
"name": "recordExists",
|
193
|
-
"outputs": [
|
194
|
-
{
|
195
|
-
"internalType": "bool",
|
196
|
-
"name": "",
|
197
|
-
"type": "bool"
|
198
|
-
}
|
199
|
-
],
|
200
|
-
"payable": false,
|
201
|
-
"stateMutability": "view",
|
202
|
-
"type": "function"
|
203
|
-
},
|
204
|
-
{
|
205
|
-
"constant": true,
|
206
|
-
"inputs": [
|
207
|
-
{
|
208
|
-
"internalType": "bytes32",
|
209
|
-
"name": "node",
|
210
|
-
"type": "bytes32"
|
211
|
-
}
|
212
|
-
],
|
213
|
-
"name": "resolver",
|
214
|
-
"outputs": [
|
215
|
-
{
|
216
|
-
"internalType": "address",
|
217
|
-
"name": "",
|
218
|
-
"type": "address"
|
219
|
-
}
|
220
|
-
],
|
221
|
-
"payable": false,
|
222
|
-
"stateMutability": "view",
|
223
|
-
"type": "function"
|
224
|
-
},
|
225
|
-
{
|
226
|
-
"constant": false,
|
227
|
-
"inputs": [
|
228
|
-
{
|
229
|
-
"internalType": "address",
|
230
|
-
"name": "operator",
|
231
|
-
"type": "address"
|
232
|
-
},
|
233
|
-
{
|
234
|
-
"internalType": "bool",
|
235
|
-
"name": "approved",
|
236
|
-
"type": "bool"
|
237
|
-
}
|
238
|
-
],
|
239
|
-
"name": "setApprovalForAll",
|
240
|
-
"outputs": [],
|
241
|
-
"payable": false,
|
242
|
-
"stateMutability": "nonpayable",
|
243
|
-
"type": "function"
|
244
|
-
},
|
245
|
-
{
|
246
|
-
"constant": false,
|
247
|
-
"inputs": [
|
248
|
-
{
|
249
|
-
"internalType": "bytes32",
|
250
|
-
"name": "node",
|
251
|
-
"type": "bytes32"
|
252
|
-
},
|
253
|
-
{
|
254
|
-
"internalType": "address",
|
255
|
-
"name": "owner",
|
256
|
-
"type": "address"
|
257
|
-
}
|
258
|
-
],
|
259
|
-
"name": "setOwner",
|
260
|
-
"outputs": [],
|
261
|
-
"payable": false,
|
262
|
-
"stateMutability": "nonpayable",
|
263
|
-
"type": "function"
|
264
|
-
},
|
265
|
-
{
|
266
|
-
"constant": false,
|
267
|
-
"inputs": [
|
268
|
-
{
|
269
|
-
"internalType": "bytes32",
|
270
|
-
"name": "node",
|
271
|
-
"type": "bytes32"
|
272
|
-
},
|
273
|
-
{
|
274
|
-
"internalType": "address",
|
275
|
-
"name": "owner",
|
276
|
-
"type": "address"
|
277
|
-
},
|
278
|
-
{
|
279
|
-
"internalType": "address",
|
280
|
-
"name": "resolver",
|
281
|
-
"type": "address"
|
282
|
-
},
|
283
|
-
{
|
284
|
-
"internalType": "uint64",
|
285
|
-
"name": "ttl",
|
286
|
-
"type": "uint64"
|
287
|
-
}
|
288
|
-
],
|
289
|
-
"name": "setRecord",
|
290
|
-
"outputs": [],
|
291
|
-
"payable": false,
|
292
|
-
"stateMutability": "nonpayable",
|
293
|
-
"type": "function"
|
294
|
-
},
|
295
|
-
{
|
296
|
-
"constant": false,
|
297
|
-
"inputs": [
|
298
|
-
{
|
299
|
-
"internalType": "bytes32",
|
300
|
-
"name": "node",
|
301
|
-
"type": "bytes32"
|
302
|
-
},
|
303
|
-
{
|
304
|
-
"internalType": "address",
|
305
|
-
"name": "resolver",
|
306
|
-
"type": "address"
|
307
|
-
}
|
308
|
-
],
|
309
|
-
"name": "setResolver",
|
310
|
-
"outputs": [],
|
311
|
-
"payable": false,
|
312
|
-
"stateMutability": "nonpayable",
|
313
|
-
"type": "function"
|
314
|
-
},
|
315
|
-
{
|
316
|
-
"constant": false,
|
317
|
-
"inputs": [
|
318
|
-
{
|
319
|
-
"internalType": "bytes32",
|
320
|
-
"name": "node",
|
321
|
-
"type": "bytes32"
|
322
|
-
},
|
323
|
-
{
|
324
|
-
"internalType": "bytes32",
|
325
|
-
"name": "label",
|
326
|
-
"type": "bytes32"
|
327
|
-
},
|
328
|
-
{
|
329
|
-
"internalType": "address",
|
330
|
-
"name": "owner",
|
331
|
-
"type": "address"
|
332
|
-
}
|
333
|
-
],
|
334
|
-
"name": "setSubnodeOwner",
|
335
|
-
"outputs": [
|
336
|
-
{
|
337
|
-
"internalType": "bytes32",
|
338
|
-
"name": "",
|
339
|
-
"type": "bytes32"
|
340
|
-
}
|
341
|
-
],
|
342
|
-
"payable": false,
|
343
|
-
"stateMutability": "nonpayable",
|
344
|
-
"type": "function"
|
345
|
-
},
|
346
|
-
{
|
347
|
-
"constant": false,
|
348
|
-
"inputs": [
|
349
|
-
{
|
350
|
-
"internalType": "bytes32",
|
351
|
-
"name": "node",
|
352
|
-
"type": "bytes32"
|
353
|
-
},
|
354
|
-
{
|
355
|
-
"internalType": "bytes32",
|
356
|
-
"name": "label",
|
357
|
-
"type": "bytes32"
|
358
|
-
},
|
359
|
-
{
|
360
|
-
"internalType": "address",
|
361
|
-
"name": "owner",
|
362
|
-
"type": "address"
|
363
|
-
},
|
364
|
-
{
|
365
|
-
"internalType": "address",
|
366
|
-
"name": "resolver",
|
367
|
-
"type": "address"
|
368
|
-
},
|
369
|
-
{
|
370
|
-
"internalType": "uint64",
|
371
|
-
"name": "ttl",
|
372
|
-
"type": "uint64"
|
373
|
-
}
|
374
|
-
],
|
375
|
-
"name": "setSubnodeRecord",
|
376
|
-
"outputs": [],
|
377
|
-
"payable": false,
|
378
|
-
"stateMutability": "nonpayable",
|
379
|
-
"type": "function"
|
380
|
-
},
|
381
|
-
{
|
382
|
-
"constant": false,
|
383
|
-
"inputs": [
|
384
|
-
{
|
385
|
-
"internalType": "bytes32",
|
386
|
-
"name": "node",
|
387
|
-
"type": "bytes32"
|
388
|
-
},
|
389
|
-
{
|
390
|
-
"internalType": "uint64",
|
391
|
-
"name": "ttl",
|
392
|
-
"type": "uint64"
|
393
|
-
}
|
394
|
-
],
|
395
|
-
"name": "setTTL",
|
396
|
-
"outputs": [],
|
397
|
-
"payable": false,
|
398
|
-
"stateMutability": "nonpayable",
|
399
|
-
"type": "function"
|
400
|
-
},
|
401
|
-
{
|
402
|
-
"constant": true,
|
403
|
-
"inputs": [
|
404
|
-
{
|
405
|
-
"internalType": "bytes32",
|
406
|
-
"name": "node",
|
407
|
-
"type": "bytes32"
|
408
|
-
}
|
409
|
-
],
|
410
|
-
"name": "ttl",
|
411
|
-
"outputs": [
|
412
|
-
{
|
413
|
-
"internalType": "uint64",
|
414
|
-
"name": "",
|
415
|
-
"type": "uint64"
|
416
|
-
}
|
417
|
-
],
|
418
|
-
"payable": false,
|
419
|
-
"stateMutability": "view",
|
420
|
-
"type": "function"
|
421
|
-
}
|
422
|
-
]
|