## Get Started With Casper #### TASK 1. Create and deploy a simple, smart contract with cargo casper and cargo ``` cargo casper new-project rustup target add wasm32-unknown-unknown cd contract && cargo build --release --target wasm32-unknown-unknown ``` ![](https://i.imgur.com/rFwbd0q.png) ![](https://i.imgur.com/flzKvg4.png) ``` wasm-strip contract/target/wasm32-unknown-unknown/release/contract.wasm 2>/dev/null | true mkdir -p tests/wasm cp contract/target/wasm32-unknown-unknown/release/contract.wasm tests/wasm cd tests && cargo test ``` ![](https://i.imgur.com/aCL0JWe.png) --- #### TASK 2. Complete one of the existing tutorials for writing smart contracts ``` git clone https://github.com/casper-ecosystem/keys-manager rustup target add wasm32-unknown-unknown cd contract && cargo build --release -p keys-manager --target wasm32-unknown-unknown ``` ![](https://i.imgur.com/nCEpuEa.png) ![](https://i.imgur.com/xLQlySo.png) ``` nctl-start ``` ![](https://i.imgur.com/oL22236.png) ``` nctl-view-faucet-account ``` ![](https://i.imgur.com/n2Qsv53.png) ``` npm install ``` ![](https://i.imgur.com/nBR2zvy.png) ``` npm run start:atomic ``` ![](https://i.imgur.com/S9aDtqu.png) --- #### TASK 3. Demonstrate key management concepts by modifying the client in the Multi-Sig tutorial to address one of the additional scenarios ###### Scenario 3: signing transactions with multiple keys ###### Modified scenario: scenario-test.js ![](https://i.imgur.com/mqSYF6T.png) ``` npm run start:test ``` ![](https://i.imgur.com/4ZRooNC.png) --- #### TASK 4. Learn to transfer tokens to an account on the Casper Testnet ###### Get state-root-hash ![](https://i.imgur.com/yqJR4mV.png) ###### Get purse-uref for target account ![](https://i.imgur.com/VqbsSCl.png) ###### Get balance of target account (625.49998 CSPR) ![](https://i.imgur.com/7DI73Vu.png) ###### Transfer 100 CSPR to target account ![](https://i.imgur.com/JOQqkpz.png) ###### Get state root hash ![](https://i.imgur.com/vU68Xjr.png) ###### Get purse-uref for target account ![](https://i.imgur.com/cXwZbUY.png) ###### Get balance of target account (725.49998 CSPR -> increased by 100 CSPR) ![](https://i.imgur.com/RB6SwSP.png) --- #### TASK 5. Learn to Delegate and Undelegate on the Casper Testnet ![](https://i.imgur.com/9xehesq.png) ![](https://i.imgur.com/VOiAtoK.png) ![](https://i.imgur.com/msGyM5P.png) ![](https://i.imgur.com/qWJSL8M.png) ---