-
There should be a ‘deposit’, and ‘withdraw’ function that any user can use to deposit and withdraw their own Coins, but no other user's coins
-
There should also be two additional functions that only admins can call. ‘Pause’ and ‘Unpause’ that prevent/enable new deposits or withdrawals from occurring.
-
The module should contain testing for functions as well.
-
The module can accept any ‘Coin’ of any type from any number of users
Install the Aptos CLI following the Installing Aptos CLI guide.
Create an account and fund it following the Aptos Developer Tutorials guide.
Compile the contract
aptos move compile --named-addresses simple_vault=default
Run unit tests
aptos move test --named-addresses simple_vault=default