eth 0.5.8 → 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 +2 -1
- data/CHANGELOG.md +32 -0
- data/CODE_OF_CONDUCT.md +122 -0
- data/CONTRIBUTING.md +61 -0
- data/LICENSE.txt +1 -1
- data/README.md +6 -2
- data/SECURITY.md +24 -0
- data/abi/ens_registry.json +436 -0
- data/abi/ens_resolver.json +885 -0
- data/lib/eth/abi/event.rb +1 -1
- data/lib/eth/abi/type.rb +46 -12
- data/lib/eth/abi.rb +72 -14
- data/lib/eth/address.rb +2 -2
- data/lib/eth/api.rb +1 -1
- data/lib/eth/chain.rb +19 -7
- data/lib/eth/client/http.rb +1 -1
- data/lib/eth/client/http_auth.rb +1 -1
- data/lib/eth/client/ipc.rb +1 -1
- data/lib/eth/client.rb +118 -16
- data/lib/eth/constant.rb +1 -1
- data/lib/eth/contract/event.rb +1 -1
- data/lib/eth/contract/function.rb +2 -2
- data/lib/eth/contract/function_input.rb +7 -2
- data/lib/eth/contract/function_output.rb +1 -1
- data/lib/eth/contract/initializer.rb +1 -1
- data/lib/eth/contract.rb +1 -1
- data/lib/eth/eip712.rb +2 -2
- data/lib/eth/ens/coin_type.rb +50 -0
- data/lib/eth/ens/resolver.rb +68 -24
- data/lib/eth/ens.rb +28 -0
- data/lib/eth/key/decrypter.rb +1 -1
- data/lib/eth/key/encrypter.rb +1 -1
- data/lib/eth/key.rb +5 -5
- data/lib/eth/rlp/decoder.rb +2 -2
- data/lib/eth/rlp/encoder.rb +3 -3
- data/lib/eth/rlp/sedes/big_endian_int.rb +1 -1
- data/lib/eth/rlp/sedes/binary.rb +2 -2
- data/lib/eth/rlp/sedes/list.rb +5 -5
- data/lib/eth/rlp/sedes.rb +4 -4
- data/lib/eth/rlp.rb +1 -1
- data/lib/eth/signature.rb +4 -4
- data/lib/eth/solidity.rb +5 -3
- data/lib/eth/tx/eip1559.rb +3 -3
- data/lib/eth/tx/eip2930.rb +3 -3
- data/lib/eth/tx/legacy.rb +3 -3
- data/lib/eth/tx.rb +5 -5
- data/lib/eth/unit.rb +1 -1
- data/lib/eth/util.rb +14 -14
- data/lib/eth/version.rb +2 -2
- data/lib/eth.rb +2 -2
- metadata +9 -3
- data/abis/ens.json +0 -422
@@ -0,0 +1,885 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs":[
|
4
|
+
{
|
5
|
+
"internalType":"contract ENS",
|
6
|
+
"name":"_ens",
|
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":"bytes32",
|
20
|
+
"name":"node",
|
21
|
+
"type":"bytes32"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"indexed":true,
|
25
|
+
"internalType":"uint256",
|
26
|
+
"name":"contentType",
|
27
|
+
"type":"uint256"
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"name":"ABIChanged",
|
31
|
+
"type":"event"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"anonymous":false,
|
35
|
+
"inputs":[
|
36
|
+
{
|
37
|
+
"indexed":true,
|
38
|
+
"internalType":"bytes32",
|
39
|
+
"name":"node",
|
40
|
+
"type":"bytes32"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"indexed":false,
|
44
|
+
"internalType":"address",
|
45
|
+
"name":"a",
|
46
|
+
"type":"address"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"name":"AddrChanged",
|
50
|
+
"type":"event"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"anonymous":false,
|
54
|
+
"inputs":[
|
55
|
+
{
|
56
|
+
"indexed":true,
|
57
|
+
"internalType":"bytes32",
|
58
|
+
"name":"node",
|
59
|
+
"type":"bytes32"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"indexed":false,
|
63
|
+
"internalType":"uint256",
|
64
|
+
"name":"coinType",
|
65
|
+
"type":"uint256"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"indexed":false,
|
69
|
+
"internalType":"bytes",
|
70
|
+
"name":"newAddress",
|
71
|
+
"type":"bytes"
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"name":"AddressChanged",
|
75
|
+
"type":"event"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"anonymous":false,
|
79
|
+
"inputs":[
|
80
|
+
{
|
81
|
+
"indexed":true,
|
82
|
+
"internalType":"bytes32",
|
83
|
+
"name":"node",
|
84
|
+
"type":"bytes32"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"indexed":true,
|
88
|
+
"internalType":"address",
|
89
|
+
"name":"owner",
|
90
|
+
"type":"address"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"indexed":true,
|
94
|
+
"internalType":"address",
|
95
|
+
"name":"target",
|
96
|
+
"type":"address"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"indexed":false,
|
100
|
+
"internalType":"bool",
|
101
|
+
"name":"isAuthorised",
|
102
|
+
"type":"bool"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"name":"AuthorisationChanged",
|
106
|
+
"type":"event"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"anonymous":false,
|
110
|
+
"inputs":[
|
111
|
+
{
|
112
|
+
"indexed":true,
|
113
|
+
"internalType":"bytes32",
|
114
|
+
"name":"node",
|
115
|
+
"type":"bytes32"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"indexed":false,
|
119
|
+
"internalType":"bytes",
|
120
|
+
"name":"hash",
|
121
|
+
"type":"bytes"
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"name":"ContenthashChanged",
|
125
|
+
"type":"event"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"anonymous":false,
|
129
|
+
"inputs":[
|
130
|
+
{
|
131
|
+
"indexed":true,
|
132
|
+
"internalType":"bytes32",
|
133
|
+
"name":"node",
|
134
|
+
"type":"bytes32"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"indexed":false,
|
138
|
+
"internalType":"bytes",
|
139
|
+
"name":"name",
|
140
|
+
"type":"bytes"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"indexed":false,
|
144
|
+
"internalType":"uint16",
|
145
|
+
"name":"resource",
|
146
|
+
"type":"uint16"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"indexed":false,
|
150
|
+
"internalType":"bytes",
|
151
|
+
"name":"record",
|
152
|
+
"type":"bytes"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"name":"DNSRecordChanged",
|
156
|
+
"type":"event"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"anonymous":false,
|
160
|
+
"inputs":[
|
161
|
+
{
|
162
|
+
"indexed":true,
|
163
|
+
"internalType":"bytes32",
|
164
|
+
"name":"node",
|
165
|
+
"type":"bytes32"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"indexed":false,
|
169
|
+
"internalType":"bytes",
|
170
|
+
"name":"name",
|
171
|
+
"type":"bytes"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"indexed":false,
|
175
|
+
"internalType":"uint16",
|
176
|
+
"name":"resource",
|
177
|
+
"type":"uint16"
|
178
|
+
}
|
179
|
+
],
|
180
|
+
"name":"DNSRecordDeleted",
|
181
|
+
"type":"event"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"anonymous":false,
|
185
|
+
"inputs":[
|
186
|
+
{
|
187
|
+
"indexed":true,
|
188
|
+
"internalType":"bytes32",
|
189
|
+
"name":"node",
|
190
|
+
"type":"bytes32"
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"name":"DNSZoneCleared",
|
194
|
+
"type":"event"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"anonymous":false,
|
198
|
+
"inputs":[
|
199
|
+
{
|
200
|
+
"indexed":true,
|
201
|
+
"internalType":"bytes32",
|
202
|
+
"name":"node",
|
203
|
+
"type":"bytes32"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"indexed":true,
|
207
|
+
"internalType":"bytes4",
|
208
|
+
"name":"interfaceID",
|
209
|
+
"type":"bytes4"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"indexed":false,
|
213
|
+
"internalType":"address",
|
214
|
+
"name":"implementer",
|
215
|
+
"type":"address"
|
216
|
+
}
|
217
|
+
],
|
218
|
+
"name":"InterfaceChanged",
|
219
|
+
"type":"event"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"anonymous":false,
|
223
|
+
"inputs":[
|
224
|
+
{
|
225
|
+
"indexed":true,
|
226
|
+
"internalType":"bytes32",
|
227
|
+
"name":"node",
|
228
|
+
"type":"bytes32"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"indexed":false,
|
232
|
+
"internalType":"string",
|
233
|
+
"name":"name",
|
234
|
+
"type":"string"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"name":"NameChanged",
|
238
|
+
"type":"event"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"anonymous":false,
|
242
|
+
"inputs":[
|
243
|
+
{
|
244
|
+
"indexed":true,
|
245
|
+
"internalType":"bytes32",
|
246
|
+
"name":"node",
|
247
|
+
"type":"bytes32"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"indexed":false,
|
251
|
+
"internalType":"bytes32",
|
252
|
+
"name":"x",
|
253
|
+
"type":"bytes32"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"indexed":false,
|
257
|
+
"internalType":"bytes32",
|
258
|
+
"name":"y",
|
259
|
+
"type":"bytes32"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"name":"PubkeyChanged",
|
263
|
+
"type":"event"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"anonymous":false,
|
267
|
+
"inputs":[
|
268
|
+
{
|
269
|
+
"indexed":true,
|
270
|
+
"internalType":"bytes32",
|
271
|
+
"name":"node",
|
272
|
+
"type":"bytes32"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"indexed":true,
|
276
|
+
"internalType":"string",
|
277
|
+
"name":"indexedKey",
|
278
|
+
"type":"string"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"indexed":false,
|
282
|
+
"internalType":"string",
|
283
|
+
"name":"key",
|
284
|
+
"type":"string"
|
285
|
+
}
|
286
|
+
],
|
287
|
+
"name":"TextChanged",
|
288
|
+
"type":"event"
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"constant":true,
|
292
|
+
"inputs":[
|
293
|
+
{
|
294
|
+
"internalType":"bytes32",
|
295
|
+
"name":"node",
|
296
|
+
"type":"bytes32"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"internalType":"uint256",
|
300
|
+
"name":"contentTypes",
|
301
|
+
"type":"uint256"
|
302
|
+
}
|
303
|
+
],
|
304
|
+
"name":"ABI",
|
305
|
+
"outputs":[
|
306
|
+
{
|
307
|
+
"internalType":"uint256",
|
308
|
+
"name":"",
|
309
|
+
"type":"uint256"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"internalType":"bytes",
|
313
|
+
"name":"",
|
314
|
+
"type":"bytes"
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"payable":false,
|
318
|
+
"stateMutability":"view",
|
319
|
+
"type":"function"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"constant":true,
|
323
|
+
"inputs":[
|
324
|
+
{
|
325
|
+
"internalType":"bytes32",
|
326
|
+
"name":"node",
|
327
|
+
"type":"bytes32"
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"name":"addr",
|
331
|
+
"outputs":[
|
332
|
+
{
|
333
|
+
"internalType":"address payable",
|
334
|
+
"name":"",
|
335
|
+
"type":"address"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"payable":false,
|
339
|
+
"stateMutability":"view",
|
340
|
+
"type":"function"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"constant":true,
|
344
|
+
"inputs":[
|
345
|
+
{
|
346
|
+
"internalType":"bytes32",
|
347
|
+
"name":"node",
|
348
|
+
"type":"bytes32"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"internalType":"uint256",
|
352
|
+
"name":"coinType",
|
353
|
+
"type":"uint256"
|
354
|
+
}
|
355
|
+
],
|
356
|
+
"name":"addr",
|
357
|
+
"outputs":[
|
358
|
+
{
|
359
|
+
"internalType":"bytes",
|
360
|
+
"name":"",
|
361
|
+
"type":"bytes"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"payable":false,
|
365
|
+
"stateMutability":"view",
|
366
|
+
"type":"function"
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"constant":true,
|
370
|
+
"inputs":[
|
371
|
+
{
|
372
|
+
"internalType":"bytes32",
|
373
|
+
"name":"",
|
374
|
+
"type":"bytes32"
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"internalType":"address",
|
378
|
+
"name":"",
|
379
|
+
"type":"address"
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"internalType":"address",
|
383
|
+
"name":"",
|
384
|
+
"type":"address"
|
385
|
+
}
|
386
|
+
],
|
387
|
+
"name":"authorisations",
|
388
|
+
"outputs":[
|
389
|
+
{
|
390
|
+
"internalType":"bool",
|
391
|
+
"name":"",
|
392
|
+
"type":"bool"
|
393
|
+
}
|
394
|
+
],
|
395
|
+
"payable":false,
|
396
|
+
"stateMutability":"view",
|
397
|
+
"type":"function"
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"constant":false,
|
401
|
+
"inputs":[
|
402
|
+
{
|
403
|
+
"internalType":"bytes32",
|
404
|
+
"name":"node",
|
405
|
+
"type":"bytes32"
|
406
|
+
}
|
407
|
+
],
|
408
|
+
"name":"clearDNSZone",
|
409
|
+
"outputs":[
|
410
|
+
|
411
|
+
],
|
412
|
+
"payable":false,
|
413
|
+
"stateMutability":"nonpayable",
|
414
|
+
"type":"function"
|
415
|
+
},
|
416
|
+
{
|
417
|
+
"constant":true,
|
418
|
+
"inputs":[
|
419
|
+
{
|
420
|
+
"internalType":"bytes32",
|
421
|
+
"name":"node",
|
422
|
+
"type":"bytes32"
|
423
|
+
}
|
424
|
+
],
|
425
|
+
"name":"contenthash",
|
426
|
+
"outputs":[
|
427
|
+
{
|
428
|
+
"internalType":"bytes",
|
429
|
+
"name":"",
|
430
|
+
"type":"bytes"
|
431
|
+
}
|
432
|
+
],
|
433
|
+
"payable":false,
|
434
|
+
"stateMutability":"view",
|
435
|
+
"type":"function"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"constant":true,
|
439
|
+
"inputs":[
|
440
|
+
{
|
441
|
+
"internalType":"bytes32",
|
442
|
+
"name":"node",
|
443
|
+
"type":"bytes32"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"internalType":"bytes32",
|
447
|
+
"name":"name",
|
448
|
+
"type":"bytes32"
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"internalType":"uint16",
|
452
|
+
"name":"resource",
|
453
|
+
"type":"uint16"
|
454
|
+
}
|
455
|
+
],
|
456
|
+
"name":"dnsRecord",
|
457
|
+
"outputs":[
|
458
|
+
{
|
459
|
+
"internalType":"bytes",
|
460
|
+
"name":"",
|
461
|
+
"type":"bytes"
|
462
|
+
}
|
463
|
+
],
|
464
|
+
"payable":false,
|
465
|
+
"stateMutability":"view",
|
466
|
+
"type":"function"
|
467
|
+
},
|
468
|
+
{
|
469
|
+
"constant":true,
|
470
|
+
"inputs":[
|
471
|
+
{
|
472
|
+
"internalType":"bytes32",
|
473
|
+
"name":"node",
|
474
|
+
"type":"bytes32"
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"internalType":"bytes32",
|
478
|
+
"name":"name",
|
479
|
+
"type":"bytes32"
|
480
|
+
}
|
481
|
+
],
|
482
|
+
"name":"hasDNSRecords",
|
483
|
+
"outputs":[
|
484
|
+
{
|
485
|
+
"internalType":"bool",
|
486
|
+
"name":"",
|
487
|
+
"type":"bool"
|
488
|
+
}
|
489
|
+
],
|
490
|
+
"payable":false,
|
491
|
+
"stateMutability":"view",
|
492
|
+
"type":"function"
|
493
|
+
},
|
494
|
+
{
|
495
|
+
"constant":true,
|
496
|
+
"inputs":[
|
497
|
+
{
|
498
|
+
"internalType":"bytes32",
|
499
|
+
"name":"node",
|
500
|
+
"type":"bytes32"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
"internalType":"bytes4",
|
504
|
+
"name":"interfaceID",
|
505
|
+
"type":"bytes4"
|
506
|
+
}
|
507
|
+
],
|
508
|
+
"name":"interfaceImplementer",
|
509
|
+
"outputs":[
|
510
|
+
{
|
511
|
+
"internalType":"address",
|
512
|
+
"name":"",
|
513
|
+
"type":"address"
|
514
|
+
}
|
515
|
+
],
|
516
|
+
"payable":false,
|
517
|
+
"stateMutability":"view",
|
518
|
+
"type":"function"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"constant":false,
|
522
|
+
"inputs":[
|
523
|
+
{
|
524
|
+
"internalType":"bytes[]",
|
525
|
+
"name":"data",
|
526
|
+
"type":"bytes[]"
|
527
|
+
}
|
528
|
+
],
|
529
|
+
"name":"multicall",
|
530
|
+
"outputs":[
|
531
|
+
{
|
532
|
+
"internalType":"bytes[]",
|
533
|
+
"name":"results",
|
534
|
+
"type":"bytes[]"
|
535
|
+
}
|
536
|
+
],
|
537
|
+
"payable":false,
|
538
|
+
"stateMutability":"nonpayable",
|
539
|
+
"type":"function"
|
540
|
+
},
|
541
|
+
{
|
542
|
+
"constant":true,
|
543
|
+
"inputs":[
|
544
|
+
{
|
545
|
+
"internalType":"bytes32",
|
546
|
+
"name":"node",
|
547
|
+
"type":"bytes32"
|
548
|
+
}
|
549
|
+
],
|
550
|
+
"name":"name",
|
551
|
+
"outputs":[
|
552
|
+
{
|
553
|
+
"internalType":"string",
|
554
|
+
"name":"",
|
555
|
+
"type":"string"
|
556
|
+
}
|
557
|
+
],
|
558
|
+
"payable":false,
|
559
|
+
"stateMutability":"view",
|
560
|
+
"type":"function"
|
561
|
+
},
|
562
|
+
{
|
563
|
+
"constant":true,
|
564
|
+
"inputs":[
|
565
|
+
{
|
566
|
+
"internalType":"bytes32",
|
567
|
+
"name":"node",
|
568
|
+
"type":"bytes32"
|
569
|
+
}
|
570
|
+
],
|
571
|
+
"name":"pubkey",
|
572
|
+
"outputs":[
|
573
|
+
{
|
574
|
+
"internalType":"bytes32",
|
575
|
+
"name":"x",
|
576
|
+
"type":"bytes32"
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"internalType":"bytes32",
|
580
|
+
"name":"y",
|
581
|
+
"type":"bytes32"
|
582
|
+
}
|
583
|
+
],
|
584
|
+
"payable":false,
|
585
|
+
"stateMutability":"view",
|
586
|
+
"type":"function"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"constant":false,
|
590
|
+
"inputs":[
|
591
|
+
{
|
592
|
+
"internalType":"bytes32",
|
593
|
+
"name":"node",
|
594
|
+
"type":"bytes32"
|
595
|
+
},
|
596
|
+
{
|
597
|
+
"internalType":"uint256",
|
598
|
+
"name":"contentType",
|
599
|
+
"type":"uint256"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"internalType":"bytes",
|
603
|
+
"name":"data",
|
604
|
+
"type":"bytes"
|
605
|
+
}
|
606
|
+
],
|
607
|
+
"name":"setABI",
|
608
|
+
"outputs":[
|
609
|
+
|
610
|
+
],
|
611
|
+
"payable":false,
|
612
|
+
"stateMutability":"nonpayable",
|
613
|
+
"type":"function"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"constant":false,
|
617
|
+
"inputs":[
|
618
|
+
{
|
619
|
+
"internalType":"bytes32",
|
620
|
+
"name":"node",
|
621
|
+
"type":"bytes32"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"internalType":"uint256",
|
625
|
+
"name":"coinType",
|
626
|
+
"type":"uint256"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType":"bytes",
|
630
|
+
"name":"a",
|
631
|
+
"type":"bytes"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"name":"setAddr",
|
635
|
+
"outputs":[
|
636
|
+
|
637
|
+
],
|
638
|
+
"payable":false,
|
639
|
+
"stateMutability":"nonpayable",
|
640
|
+
"type":"function"
|
641
|
+
},
|
642
|
+
{
|
643
|
+
"constant":false,
|
644
|
+
"inputs":[
|
645
|
+
{
|
646
|
+
"internalType":"bytes32",
|
647
|
+
"name":"node",
|
648
|
+
"type":"bytes32"
|
649
|
+
},
|
650
|
+
{
|
651
|
+
"internalType":"address",
|
652
|
+
"name":"a",
|
653
|
+
"type":"address"
|
654
|
+
}
|
655
|
+
],
|
656
|
+
"name":"setAddr",
|
657
|
+
"outputs":[
|
658
|
+
|
659
|
+
],
|
660
|
+
"payable":false,
|
661
|
+
"stateMutability":"nonpayable",
|
662
|
+
"type":"function"
|
663
|
+
},
|
664
|
+
{
|
665
|
+
"constant":false,
|
666
|
+
"inputs":[
|
667
|
+
{
|
668
|
+
"internalType":"bytes32",
|
669
|
+
"name":"node",
|
670
|
+
"type":"bytes32"
|
671
|
+
},
|
672
|
+
{
|
673
|
+
"internalType":"address",
|
674
|
+
"name":"target",
|
675
|
+
"type":"address"
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"internalType":"bool",
|
679
|
+
"name":"isAuthorised",
|
680
|
+
"type":"bool"
|
681
|
+
}
|
682
|
+
],
|
683
|
+
"name":"setAuthorisation",
|
684
|
+
"outputs":[
|
685
|
+
|
686
|
+
],
|
687
|
+
"payable":false,
|
688
|
+
"stateMutability":"nonpayable",
|
689
|
+
"type":"function"
|
690
|
+
},
|
691
|
+
{
|
692
|
+
"constant":false,
|
693
|
+
"inputs":[
|
694
|
+
{
|
695
|
+
"internalType":"bytes32",
|
696
|
+
"name":"node",
|
697
|
+
"type":"bytes32"
|
698
|
+
},
|
699
|
+
{
|
700
|
+
"internalType":"bytes",
|
701
|
+
"name":"hash",
|
702
|
+
"type":"bytes"
|
703
|
+
}
|
704
|
+
],
|
705
|
+
"name":"setContenthash",
|
706
|
+
"outputs":[
|
707
|
+
|
708
|
+
],
|
709
|
+
"payable":false,
|
710
|
+
"stateMutability":"nonpayable",
|
711
|
+
"type":"function"
|
712
|
+
},
|
713
|
+
{
|
714
|
+
"constant":false,
|
715
|
+
"inputs":[
|
716
|
+
{
|
717
|
+
"internalType":"bytes32",
|
718
|
+
"name":"node",
|
719
|
+
"type":"bytes32"
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"internalType":"bytes",
|
723
|
+
"name":"data",
|
724
|
+
"type":"bytes"
|
725
|
+
}
|
726
|
+
],
|
727
|
+
"name":"setDNSRecords",
|
728
|
+
"outputs":[
|
729
|
+
|
730
|
+
],
|
731
|
+
"payable":false,
|
732
|
+
"stateMutability":"nonpayable",
|
733
|
+
"type":"function"
|
734
|
+
},
|
735
|
+
{
|
736
|
+
"constant":false,
|
737
|
+
"inputs":[
|
738
|
+
{
|
739
|
+
"internalType":"bytes32",
|
740
|
+
"name":"node",
|
741
|
+
"type":"bytes32"
|
742
|
+
},
|
743
|
+
{
|
744
|
+
"internalType":"bytes4",
|
745
|
+
"name":"interfaceID",
|
746
|
+
"type":"bytes4"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"internalType":"address",
|
750
|
+
"name":"implementer",
|
751
|
+
"type":"address"
|
752
|
+
}
|
753
|
+
],
|
754
|
+
"name":"setInterface",
|
755
|
+
"outputs":[
|
756
|
+
|
757
|
+
],
|
758
|
+
"payable":false,
|
759
|
+
"stateMutability":"nonpayable",
|
760
|
+
"type":"function"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"constant":false,
|
764
|
+
"inputs":[
|
765
|
+
{
|
766
|
+
"internalType":"bytes32",
|
767
|
+
"name":"node",
|
768
|
+
"type":"bytes32"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"internalType":"string",
|
772
|
+
"name":"name",
|
773
|
+
"type":"string"
|
774
|
+
}
|
775
|
+
],
|
776
|
+
"name":"setName",
|
777
|
+
"outputs":[
|
778
|
+
|
779
|
+
],
|
780
|
+
"payable":false,
|
781
|
+
"stateMutability":"nonpayable",
|
782
|
+
"type":"function"
|
783
|
+
},
|
784
|
+
{
|
785
|
+
"constant":false,
|
786
|
+
"inputs":[
|
787
|
+
{
|
788
|
+
"internalType":"bytes32",
|
789
|
+
"name":"node",
|
790
|
+
"type":"bytes32"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
"internalType":"bytes32",
|
794
|
+
"name":"x",
|
795
|
+
"type":"bytes32"
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"internalType":"bytes32",
|
799
|
+
"name":"y",
|
800
|
+
"type":"bytes32"
|
801
|
+
}
|
802
|
+
],
|
803
|
+
"name":"setPubkey",
|
804
|
+
"outputs":[
|
805
|
+
|
806
|
+
],
|
807
|
+
"payable":false,
|
808
|
+
"stateMutability":"nonpayable",
|
809
|
+
"type":"function"
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"constant":false,
|
813
|
+
"inputs":[
|
814
|
+
{
|
815
|
+
"internalType":"bytes32",
|
816
|
+
"name":"node",
|
817
|
+
"type":"bytes32"
|
818
|
+
},
|
819
|
+
{
|
820
|
+
"internalType":"string",
|
821
|
+
"name":"key",
|
822
|
+
"type":"string"
|
823
|
+
},
|
824
|
+
{
|
825
|
+
"internalType":"string",
|
826
|
+
"name":"value",
|
827
|
+
"type":"string"
|
828
|
+
}
|
829
|
+
],
|
830
|
+
"name":"setText",
|
831
|
+
"outputs":[
|
832
|
+
|
833
|
+
],
|
834
|
+
"payable":false,
|
835
|
+
"stateMutability":"nonpayable",
|
836
|
+
"type":"function"
|
837
|
+
},
|
838
|
+
{
|
839
|
+
"constant":true,
|
840
|
+
"inputs":[
|
841
|
+
{
|
842
|
+
"internalType":"bytes4",
|
843
|
+
"name":"interfaceID",
|
844
|
+
"type":"bytes4"
|
845
|
+
}
|
846
|
+
],
|
847
|
+
"name":"supportsInterface",
|
848
|
+
"outputs":[
|
849
|
+
{
|
850
|
+
"internalType":"bool",
|
851
|
+
"name":"",
|
852
|
+
"type":"bool"
|
853
|
+
}
|
854
|
+
],
|
855
|
+
"payable":false,
|
856
|
+
"stateMutability":"pure",
|
857
|
+
"type":"function"
|
858
|
+
},
|
859
|
+
{
|
860
|
+
"constant":true,
|
861
|
+
"inputs":[
|
862
|
+
{
|
863
|
+
"internalType":"bytes32",
|
864
|
+
"name":"node",
|
865
|
+
"type":"bytes32"
|
866
|
+
},
|
867
|
+
{
|
868
|
+
"internalType":"string",
|
869
|
+
"name":"key",
|
870
|
+
"type":"string"
|
871
|
+
}
|
872
|
+
],
|
873
|
+
"name":"text",
|
874
|
+
"outputs":[
|
875
|
+
{
|
876
|
+
"internalType":"string",
|
877
|
+
"name":"",
|
878
|
+
"type":"string"
|
879
|
+
}
|
880
|
+
],
|
881
|
+
"payable":false,
|
882
|
+
"stateMutability":"view",
|
883
|
+
"type":"function"
|
884
|
+
}
|
885
|
+
]
|