Replace deprecated method in bancor registry

This commit is contained in:
nolash 2020-12-11 12:51:37 +01:00
parent e031fdeaf2
commit 6b2a9286b2
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 20 additions and 2 deletions

View File

@ -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
View 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))