commit 29494b4366f0275952253b6b2ce682b7ac52a5d4 parent 0985321014004de868b07dae56dc0e9197fd675a Author: lash <dev@holbrook.no> Date: Fri, 17 Mar 2023 22:10:56 +0000 Remove solidity compile warnings Diffstat:
M | python/eth_contract_registry/data/Registry.bin | | | 4 | ++-- |
M | python/setup.cfg | | | 2 | +- |
M | solidity/Registry.sol | | | 3 | ++- |
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/python/eth_contract_registry/data/Registry.bin b/python/eth_contract_registry/data/Registry.bin @@ -1 +1 @@ -60806040523480156200001157600080fd5b5060405162000e5738038062000e578339818101604052810190620000379190620001ad565b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b8151811015620000e05760018282815181106200009c576200009b6200031d565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150558080620000d790620002a0565b9150506200007a565b5050620003ba565b6000620000ff620000f98462000227565b620001fe565b9050808382526020820190508285602086028201111562000125576200012462000380565b5b60005b858110156200015957816200013e888262000196565b84526020840193506020830192505060018101905062000128565b5050509392505050565b600082601f8301126200017b576200017a6200037b565b5b81516200018d848260208601620000e8565b91505092915050565b600081519050620001a781620003a0565b92915050565b600060208284031215620001c657620001c56200038a565b5b600082015167ffffffffffffffff811115620001e757620001e662000385565b5b620001f58482850162000163565b91505092915050565b60006200020a6200021d565b90506200021882826200026a565b919050565b6000604051905090565b600067ffffffffffffffff8211156200024557620002446200034c565b5b602082029050602081019050919050565b6000819050919050565b6000819050919050565b62000275826200038f565b810181811067ffffffffffffffff821117156200029757620002966200034c565b5b80604052505050565b6000620002ad8262000260565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620002e357620002e2620002ee565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620003ab8162000256565b8114620003b757600080fd5b50565b610a8d80620003ca6000396000f3fe608060405234801561001057600080fd5b506004361061009a576000357c0100000000000000000000000000000000000000000000000000000000900480638da5cb5b116100785780638da5cb5b1461012f578063ba44593c1461014d578063bb34534c1461017d578063f2fde38b146101ad5761009a565b806301ffc9a71461009f57806328f2d4da146100cf5780636d5de9f0146100ff575b600080fd5b6100b960048036038101906100b491906107f9565b6101dd565b6040516100c6919061089b565b60405180910390f35b6100e960048036038101906100e49190610826565b6102e2565b6040516100f691906108b6565b60405180910390f35b610119600480360381019061011491906107b9565b610306565b604051610126919061089b565b60405180910390f35b61013761040e565b6040516101449190610880565b60405180910390f35b61016760048036038101906101629190610779565b610432565b604051610174919061089b565b60405180910390f35b6101976004803603810190610192919061074c565b6105ea565b6040516101a49190610880565b60405180910390f35b6101c760048036038101906101c2919061071f565b610627565b6040516101d4919061089b565b60405180910390f35b600063bb34534c7c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561023257600190506102dd565b6301ffc9a77c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561028557600190506102dd565b639493f8b27c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156102d857600190506102dd565b600090505b919050565b600181815481106102f257600080fd5b906000526020600020016000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461036157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156103ce57600080fd5b6003600084815260200190815260200160002082908060018154018082558091505060019003906000526020600020016000909190919091505592915050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461048d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146104f957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561053357600080fd5b6000805b600180549050811015610582578460018281548110610559576105586109c7565b5b9060005260206000200154141561056f57600191505b808061057a9061094f565b915050610537565b508061058d57600080fd5b826002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600191505092915050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461068257600080fd5b816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050919050565b6000813590506106da816109fb565b92915050565b6000813590506106ef81610a12565b92915050565b60008135905061070481610a29565b92915050565b60008135905061071981610a40565b92915050565b600060208284031215610735576107346109f6565b5b6000610743848285016106cb565b91505092915050565b600060208284031215610762576107616109f6565b5b6000610770848285016106e0565b91505092915050565b600080604083850312156107905761078f6109f6565b5b600061079e858286016106e0565b92505060206107af858286016106cb565b9150509250929050565b600080604083850312156107d0576107cf6109f6565b5b60006107de858286016106e0565b92505060206107ef858286016106e0565b9150509250929050565b60006020828403121561080f5761080e6109f6565b5b600061081d848285016106f5565b91505092915050565b60006020828403121561083c5761083b6109f6565b5b600061084a8482850161070a565b91505092915050565b61085c816108d1565b82525050565b61086b816108e3565b82525050565b61087a816108ef565b82525050565b60006020820190506108956000830184610853565b92915050565b60006020820190506108b06000830184610862565b92915050565b60006020820190506108cb6000830184610871565b92915050565b60006108dc82610925565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061095a82610945565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561098d5761098c610998565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b610a04816108d1565b8114610a0f57600080fd5b50565b610a1b816108ef565b8114610a2657600080fd5b50565b610a32816108f9565b8114610a3d57600080fd5b50565b610a4981610945565b8114610a5457600080fd5b5056fea2646970667358221220edeee9a0ce45f26bfa94076b7732f30406a68307309040a0afe5bcb2f0097e2064736f6c63430008070033 -\ No newline at end of file +60806040523480156200001157600080fd5b5060405162000e9e38038062000e9e8339818101604052810190620000379190620002ac565b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b8151811015620000e05760018282815181106200009c576200009b620002fd565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150558080620000d79062000365565b9150506200007a565b5050620003b2565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200014c8262000101565b810181811067ffffffffffffffff821117156200016e576200016d62000112565b5b80604052505050565b600062000183620000e8565b905062000191828262000141565b919050565b600067ffffffffffffffff821115620001b457620001b362000112565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b620001df81620001ca565b8114620001eb57600080fd5b50565b600081519050620001ff81620001d4565b92915050565b60006200021c620002168462000196565b62000177565b90508083825260208201905060208402830185811115620002425762000241620001c5565b5b835b818110156200026f57806200025a8882620001ee565b84526020840193505060208101905062000244565b5050509392505050565b600082601f830112620002915762000290620000fc565b5b8151620002a384826020860162000205565b91505092915050565b600060208284031215620002c557620002c4620000f2565b5b600082015167ffffffffffffffff811115620002e657620002e5620000f7565b5b620002f48482850162000279565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600062000372826200035b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620003a757620003a66200032c565b5b600182019050919050565b610adc80620003c26000396000f3fe608060405234801561001057600080fd5b506004361061009a576000357c0100000000000000000000000000000000000000000000000000000000900480638da5cb5b116100785780638da5cb5b1461012f578063ba44593c1461014d578063bb34534c1461017d578063f2fde38b146101ad5761009a565b806301ffc9a71461009f57806328f2d4da146100cf5780636d5de9f0146100ff575b600080fd5b6100b960048036038101906100b49190610778565b6101dd565b6040516100c691906107c0565b60405180910390f35b6100e960048036038101906100e49190610811565b610331565b6040516100f69190610857565b60405180910390f35b6101196004803603810190610114919061089e565b610355565b60405161012691906107c0565b60405180910390f35b610137610460565b604051610144919061091f565b60405180910390f35b61016760048036038101906101629190610966565b610484565b60405161017491906107c0565b60405180910390f35b610197600480360381019061019291906109a6565b61063a565b6040516101a4919061091f565b60405180910390f35b6101c760048036038101906101c291906109d3565b610677565b6040516101d491906107c0565b60405180910390f35b600063ffeb64167c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191603610231576001905061032c565b63bb34534c7c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191603610283576001905061032c565b6301ffc9a77c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916036102d5576001905061032c565b639493f8b27c010000000000000000000000000000000000000000000000000000000002827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191603610327576001905061032c565b600090505b919050565b6001818154811061034157600080fd5b906000526020600020016000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361041c57600080fd5b600360008481526020019081526020016000208290806001815401808255809150506001900390600052602060002001600090919091909150556001905092915050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104df57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461054b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361058457600080fd5b6000805b6001805490508110156105d25784600182815481106105aa576105a9610a00565b5b9060005260206000200154036105bf57600191505b80806105ca90610a5e565b915050610588565b50806105dd57600080fd5b826002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600191505092915050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106d257600080fd5b816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019050919050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61075581610720565b811461076057600080fd5b50565b6000813590506107728161074c565b92915050565b60006020828403121561078e5761078d61071b565b5b600061079c84828501610763565b91505092915050565b60008115159050919050565b6107ba816107a5565b82525050565b60006020820190506107d560008301846107b1565b92915050565b6000819050919050565b6107ee816107db565b81146107f957600080fd5b50565b60008135905061080b816107e5565b92915050565b6000602082840312156108275761082661071b565b5b6000610835848285016107fc565b91505092915050565b6000819050919050565b6108518161083e565b82525050565b600060208201905061086c6000830184610848565b92915050565b61087b8161083e565b811461088657600080fd5b50565b60008135905061089881610872565b92915050565b600080604083850312156108b5576108b461071b565b5b60006108c385828601610889565b92505060206108d485828601610889565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610909826108de565b9050919050565b610919816108fe565b82525050565b60006020820190506109346000830184610910565b92915050565b610943816108fe565b811461094e57600080fd5b50565b6000813590506109608161093a565b92915050565b6000806040838503121561097d5761097c61071b565b5b600061098b85828601610889565b925050602061099c85828601610951565b9150509250929050565b6000602082840312156109bc576109bb61071b565b5b60006109ca84828501610889565b91505092915050565b6000602082840312156109e9576109e861071b565b5b60006109f784828501610951565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610a69826107db565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610a9b57610a9a610a2f565b5b60018201905091905056fea26469706673582212204c6e355c046dc11d1a24752df06c164b0ea2ab3ce11233f422b81a383a26462664736f6c63430008120033 +\ No newline at end of file diff --git a/python/setup.cfg b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-contract-registry -version = 0.9.1 +version = 0.9.2 description = Ethereum Smart Contract key-value registry author = Louis Holbrook author_email = dev@holbrook.no diff --git a/solidity/Registry.sol b/solidity/Registry.sol @@ -14,7 +14,7 @@ contract CICRegistry { mapping (bytes32 => address) entries; // contractidentifier -> address mapping (bytes32 => bytes32[]) entryBindings; // contractidentifier -> chainidentifier - constructor(bytes32[] memory _identifiers) public { + constructor(bytes32[] memory _identifiers) { owner = msg.sender; for (uint i = 0; i < _identifiers.length; i++) { identifiers.push(_identifiers[i]); @@ -43,6 +43,7 @@ contract CICRegistry { require(entries[_identifier] != address(0)); entryBindings[_identifier].push(_reference); + return true; } // Implements EIP 173