Add metadata

This commit is contained in:
lash 2023-03-21 16:32:37 +00:00
parent eadcdf1434
commit 5cad3e0942
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1 @@
{"compiler":{"version":"0.8.18+commit.87f61d96"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"bytes32[]","name":"_identifiers","type":"bytes32[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"_newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"bytes32","name":"_identifier","type":"bytes32"}],"name":"addressOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_identifier","type":"bytes32"},{"internalType":"bytes32","name":"_reference","type":"bytes32"}],"name":"bind","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"bytes32","name":"_identifier","type":"bytes32"},{"internalType":"address","name":"_address","type":"address"}],"name":"set","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_sum","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"Registry.sol":"CICRegistry"},"evmVersion":"byzantium","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":false,"runs":200},"remappings":[]},"sources":{"Registry.sol":{"keccak256":"0x68d1247a7776b5e3099c175b8108cc5b82950d5372888fdf38a76715d02eaa57","license":"GPL-3.0-or-later","urls":["bzz-raw://4f4dab8d265dc89ba26c3f9b90eedeb190af46575361dd9bc24fc44a80eded36","dweb:/ipfs/QmQe2NfXMfqDMacnenJaoW29iaM5nqdzYsiZVZgqMy64zb"]}},"version":1}

View File

@ -1,10 +1,10 @@
[metadata] [metadata]
name = eth-contract-registry name = eth-contract-registry
version = 0.9.2 version = 0.9.3
description = Ethereum Smart Contract key-value registry description = Ethereum Smart Contract key-value registry
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no
url = https://gitlab.com/cicnet/cic-registry url = https://holbrook.no/src/eth-contract-registry/log.html
keywords = keywords =
cryptocurrency cryptocurrency
ethereum ethereum
@ -25,7 +25,7 @@ licence_files =
[options] [options]
include_package_data = True include_package_data = True
python_requires = >= 3.6 python_requires = >= 3.7
packages = packages =
eth_contract_registry eth_contract_registry
eth_contract_registry.pytest eth_contract_registry.pytest

View File

@ -2,9 +2,11 @@ SOLC = /usr/bin/solc
all: all:
$(SOLC) --bin Registry.sol --evm-version byzantium | awk 'NR>3' > Registry.bin $(SOLC) --bin Registry.sol --evm-version byzantium | awk 'NR>3' > Registry.bin
truncate -s -1 Registry.bin
$(SOLC) --abi Registry.sol --evm-version byzantium | awk 'NR>3' > Registry.json $(SOLC) --abi Registry.sol --evm-version byzantium | awk 'NR>3' > Registry.json
$(SOLC) Registry.sol --metadata --evm-version byzantium | awk 'NR==4' > Registry.metadata.json
truncate -s -1 Registry.bin
install: all install: all
cp -v *{json,bin} ../python/eth_contract_registry/data/ cp -v *.json ../python/eth_contract_registry/data/
cp -v *.bin ../python/eth_contract_registry/data/