From d66b95dd1a51932f078db4768bcd79c17f928283 Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 11 Dec 2020 16:11:27 +0100 Subject: [PATCH] Add missing dockerfile, registry client sol --- Dockerfile | 24 +++++++++++++++++++ RegistryClient.sol | 10 ++++++++ ...countsIndex.abi => AccountsIndex.abi.json} | 0 abis/{Converter.abi => Converter.abi.json} | 0 ...egistry.abi => ConverterRegistry.abi.json} | 0 abis/{ERC20.abi => ERC20.abi.json} | 0 abis/{Faucet.abi => Faucet.abi.json} | 0 abis/{Network.abi => Network.abi.json} | 0 abis/Registry.abi.json | 1 + .../{Registry.abi => RegistryClient.abi.json} | 2 +- ...Approval.abi => TransferApproval.abi.json} | 0 11 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 RegistryClient.sol rename abis/{AccountsIndex.abi => AccountsIndex.abi.json} (100%) rename abis/{Converter.abi => Converter.abi.json} (100%) rename abis/{ConverterRegistry.abi => ConverterRegistry.abi.json} (100%) rename abis/{ERC20.abi => ERC20.abi.json} (100%) rename abis/{Faucet.abi => Faucet.abi.json} (100%) rename abis/{Network.abi => Network.abi.json} (100%) create mode 100644 abis/Registry.abi.json rename abis/{Registry.abi => RegistryClient.abi.json} (67%) rename abis/{TransferApproval.abi => TransferApproval.abi.json} (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3deaadb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ethereum/solc:0.6.12 + +# The solc image messes up the alpine environment, so we have to go all over again +FROM alpine +COPY --from=0 /usr/bin/solc /usr/bin/solc + +RUN apk update && \ + apk add make + +WORKDIR /usr/src + +COPY ./Makefile ./cic-contracts/Makefile +COPY ./*.sol ./cic-contracts/ + +RUN cd cic-contracts && \ + make -B && make install -B + +#RUN mkdir -vp /usr/local/share/cic/solidity && \ +# cp -rv cic-contracts/abis + +LABEL authors="Louis Holbrook 0826EDA1702D1E87C6E2875121D2E7BB88C2A746" +LABEL spdx-license-identifier="GPL-3.0-or-later" +LABEL description="Ethereum smart contract interfaces used by the CIC component suite" +LABEL version="1" diff --git a/RegistryClient.sol b/RegistryClient.sol new file mode 100644 index 0000000..a5c4e5d --- /dev/null +++ b/RegistryClient.sol @@ -0,0 +1,10 @@ +pragma solidity >=0.6.12; + +// Author: Louis Holbrook 0826EDA1702D1E87C6E2875121D2E7BB88C2A746 +// SPDX-License-Identifier: GPL-3.0-or-later +// File-version: 1 + + +interface RegistryClient { + function addressOf(bytes32) external view returns (address); +} diff --git a/abis/AccountsIndex.abi b/abis/AccountsIndex.abi.json similarity index 100% rename from abis/AccountsIndex.abi rename to abis/AccountsIndex.abi.json diff --git a/abis/Converter.abi b/abis/Converter.abi.json similarity index 100% rename from abis/Converter.abi rename to abis/Converter.abi.json diff --git a/abis/ConverterRegistry.abi b/abis/ConverterRegistry.abi.json similarity index 100% rename from abis/ConverterRegistry.abi rename to abis/ConverterRegistry.abi.json diff --git a/abis/ERC20.abi b/abis/ERC20.abi.json similarity index 100% rename from abis/ERC20.abi rename to abis/ERC20.abi.json diff --git a/abis/Faucet.abi b/abis/Faucet.abi.json similarity index 100% rename from abis/Faucet.abi rename to abis/Faucet.abi.json diff --git a/abis/Network.abi b/abis/Network.abi.json similarity index 100% rename from abis/Network.abi rename to abis/Network.abi.json diff --git a/abis/Registry.abi.json b/abis/Registry.abi.json new file mode 100644 index 0000000..aa05877 --- /dev/null +++ b/abis/Registry.abi.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"bytes32","name":"_identifier","type":"bytes32"}],"name":"chainOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_chain","type":"bytes32"}],"name":"configSumOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"identifiers","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_identifier","type":"bytes32"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32","name":"_chainDescriptor","type":"bytes32"},{"internalType":"bytes32","name":"_chainConfig","type":"bytes32"}],"name":"set","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}] diff --git a/abis/Registry.abi b/abis/RegistryClient.abi.json similarity index 67% rename from abis/Registry.abi rename to abis/RegistryClient.abi.json index 1ff5f61..2b3baa8 100644 --- a/abis/Registry.abi +++ b/abis/RegistryClient.abi.json @@ -1 +1 @@ -[{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] +[{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"addressOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/abis/TransferApproval.abi b/abis/TransferApproval.abi.json similarity index 100% rename from abis/TransferApproval.abi rename to abis/TransferApproval.abi.json