This tutorial will take you through compiling, storing and interacting with the CW1 subkeys contract in the cosmwasm-plus repo.
cosmwasm-plus contains prodction-grade contracts, whereas cosmwasm-examples, which we used in the previous tutorial, is optimised for readability and for those new to CosmWasm and/or smart contracts in general.
As before, this will take four steps. Unlike before, we have more options for executing commands once instantiated:
Write the contract (already done)
Store the contract on-chain
Instantiate the contract
Execute commands using the contract:
As the admin key (A), set an allowance for a key (B)
As the key with an allowance, send tokens to key (C)
See tokens arrive at key (C)
See allowance decrease for key (B)
There is a video available that walks through the steps in this tutorial: