From 6b2a9286b249cb9a5337e28d90ecfe54c60c32bc Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 11 Dec 2020 12:51:37 +0100 Subject: [PATCH] Replace deprecated method in bancor registry --- Registry.sol | 9 +++++++-- util/mergeabis.py | 13 +++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 util/mergeabis.py diff --git a/Registry.sol b/Registry.sol index 9d6a9e1..ccc1bb6 100644 --- a/Registry.sol +++ b/Registry.sol @@ -5,6 +5,11 @@ pragma solidity >=0.6.12; // File-version: 1 -interface RegistryClient { - function addressOf(address) external view returns (address); +interface Registry { + 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); } diff --git a/util/mergeabis.py b/util/mergeabis.py new file mode 100644 index 0000000..d7608ad --- /dev/null +++ b/util/mergeabis.py @@ -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))