Contract to dictate a minimum transfer amount to an account.
setmin(const asset &min);
will allow admin to config the minimum value.
- Following build instruction below to build the project.
- Deploy the contract to a protected account.
- Run
init
function to set initial configuration. - Push action
setmin
to change the default value (default minimum transfer is 0).
make build-local
# NOTE: change the admin to the target account
export CONTRACT_ACCOUNT=admin
export EOSIO_ENDPOINT=http://localhost:8888
make deploy
make init
# NOTE: change the minimum value as expected
export MININMUM_TRANSFER="1.00000000 WAX"
make setmin
- eiosio.cdt https://developers.eos.io/manuals/eosio.cdt/latest/installation/index
- make (tested with GNU Make 4.1)
make build-local
- Require node version >
v16.13.0
# intall dependencies
yarn
# build (optional)
yarn build
# test
yarn test