WalletSweeper

Getting Started

make migrate

Running tests

make test

Debug using Remix IDE: https://remix.ethereum.org/#optimize=false&evmVersion=null&version=soljson-v0.5.12+commit.7709ece9.js

Linting and analyzing

npm install -g ethlint
solium -d contracts

docker run -v $(pwd):/tmp mythril/myth analyze /tmp/contracts/WalletSweeper.sol --solv 0.5.12

Compilation

  1. Create ABI
    docker run --rm -v $(pwd):/root ethereum/solc:0.5.12 --abi /root/contracts/WalletSweeper.sol -o /root/build
    
  2. Compile
    docker run --rm -v $(pwd):/root ethereum/solc:0.5.12 --bin /root/contracts/WalletSweeper.sol -o /root/build
    
  3. Combine into adapter file
    abigen --bin=./build/WalletSweeper.bin --abi=./build/WalletSweeper.abi --pkg=walletsweeper --out=/build/walletsweeper.go
    

Learn more