This is a simple cosmwasm smart contract that enables the owner to deposit and withdraw custom coins.
Here is a brief overview of the entrypoints
To instantiate the contract you pass in:
- owner - if this is null it will be defaulted to the transaction sender's address.
- accepted_denoms - this is an array of the addresses of the two custom coins which can be deposited and withdrawn from the contract.
There are two variants of execute messages that can be sent:
- Deposit - this allows a user to deposit the two accepted custom coins to the contract.
- Withdraw - this allows a user to withdraw two custom coins from the contract. N/B only the registered contract owner can deposit and withdraw
After cloning this repo you can run tests using the following command:
cargo test