Skip to content

worldwide-asset-exchange/deposit-screen

Repository files navigation

deposit-screen Project

Contract to dictate a minimum transfer amount to an account.

  • setmin(const asset &min); will allow admin to config the minimum value.

Deployment

  1. Following build instruction below to build the project.
  2. Deploy the contract to a protected account.
  3. Run init function to set initial configuration.
  4. 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

Development

Build

make build-local

Unit test

  • Require node version > v16.13.0
# intall dependencies
yarn

# build (optional)
yarn build

# test
yarn test

About

Deposit screening contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published