ERC20 interface and example giftable token contract
Go to file
2022-01-30 10:38:22 +00:00
python Upgrade chainlib 2022-01-30 10:38:22 +00:00
solidity Add ERC-173 to giftable token 2021-12-09 06:23:21 +01:00
.gitignore feat: add slither and unit test run 2021-11-24 21:03:14 +00:00
.gitlab-ci.yml feat: seperate solc container for resuse, add caching, run tests 2022-01-25 15:36:22 +00:00
CONTRIBUTING.md Add CONTRIBUTING 2021-11-24 21:12:25 +00:00
LICENSE Add LICENSE 2021-11-24 21:05:28 +00:00
README.md feat: seperate solc container for resuse, add caching, run tests 2022-01-25 15:36:22 +00:00

ETH-ERC20 Solidity Contract

solidity

To generate bytecode and tests install solc 8.x.x and run the solc bits below or execute the following:

docker run -v `pwd`:/src registry.gitlab.com/grassrootseconomics/cic-base-images/ci-solc-python:latest solc --evm-version=byzantium solidity/GiftableToken.sol --abi
docker run -v `pwd`:/src registry.gitlab.com/grassrootseconomics/cic-base-images/ci-solc-python:latest solc GiftableToken.sol --bin | awk 'NR>3' > GiftableToken.bin 

python unit tests

pip install --extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple \
--extra-index-url https://pip.grassrootseconomics.net \
-r requirements.txt -r test_requirements.txt

bash python/run_tests.sh