Replace deprecated method in bancor registry
This commit is contained in:
parent
e031fdeaf2
commit
6b2a9286b2
@ -5,6 +5,11 @@ pragma solidity >=0.6.12;
|
|||||||
// File-version: 1
|
// File-version: 1
|
||||||
|
|
||||||
|
|
||||||
interface RegistryClient {
|
interface Registry {
|
||||||
function addressOf(address) external view returns (address);
|
function owner() external view returns (address);
|
||||||
|
function identifiers() external view returns (bytes32[] memory);
|
||||||
|
function chainOf(bytes32 _identifier) external view returns (bytes32);
|
||||||
|
function configSumOf(bytes32 _chain) external view returns (bytes32);
|
||||||
|
function set (bytes32 _identifier, address _address, bytes32 _chainDescriptor, bytes32 _chainConfig) external returns (bool);
|
||||||
|
function seal() external returns (bool);
|
||||||
}
|
}
|
||||||
|
13
util/mergeabis.py
Normal file
13
util/mergeabis.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import json
|
||||||
|
|
||||||
|
merged = []
|
||||||
|
for a in sys.argv[1:]:
|
||||||
|
f = open(a, 'r')
|
||||||
|
j = json.load(f)
|
||||||
|
f.close()
|
||||||
|
merged += j
|
||||||
|
|
||||||
|
print(json.dumps(merged))
|
Loading…
Reference in New Issue
Block a user