---
# System prepended metadata

title: '1. Create and deploy a simple, smart contract with cargo casper and cargo test'

---

# 1. Create and deploy a simple, smart contract with cargo casper and cargo test

Following the procedure at https://docs.casperlabs.io/en/latest/dapp-dev-guide/setup-of-rust-contract-sdk.html...

<details>
  <summary>Click to expand full prior screenshot history ...</summary>
  
  ![](https://i.imgur.com/FmmAM2x.png)
  ![](https://i.imgur.com/yHCPL2L.png)
  ![](https://i.imgur.com/0lCoFOx.png)

</details>

![](https://i.imgur.com/3qKpuMh.png)

# 2. Complete one of the existing tutorials for writing smart contracts

Following the ERC20 tutorial at https://docs.casperlabs.io/en/latest/dapp-dev-guide/tutorials/erc20/index.html...

Reviewed source at https://github.com/casper-ecosystem/erc20

<details>
  <summary>Click to expand full prior screenshot history ...</summary>

  ![](https://i.imgur.com/Z7TIjCr.png)
  ![](https://i.imgur.com/wMjxK9O.png)

</details>

![](https://i.imgur.com/wLCHTy7.png)


# 3. Demonstrate key management concepts by modifying the client in the Multi-Sig tutorial to address one of the additional scenarios


Launching node and client as per https://docs.casperlabs.io/en/latest/dapp-dev-guide/tutorials/multi-sig/client.html...

<details>
  <summary>Click to expand full prior screenshot history ...</summary>

  ![](https://i.imgur.com/yCnr9mY.png)
  ![](https://i.imgur.com/XDIJle3.png)
  ...
  ![](https://i.imgur.com/RB3kJrZ.png)
  ...
  ![](https://i.imgur.com/AUyU5gT.png)
  ![](https://i.imgur.com/i82H5L5.png)
  ![](https://i.imgur.com/ABKevRS.png)
  ...
  ![](https://i.imgur.com/gytqkYS.png)

</details>

![](https://i.imgur.com/AUJW80d.png)

Create new scenario:
![](https://i.imgur.com/zceHDeQ.png)

Implement scenario 4 (managing lost & stolen keys), as described in https://docs.casperlabs.io/en/latest/dapp-dev-guide/tutorials/multi-sig/examples.html...
![](https://i.imgur.com/jmsF3wR.png)


Run scenario...
<details>
  <summary>Click to expand full prior screenshot history ...</summary>

  ![](https://i.imgur.com/PlzpoO2.png)
  ![](https://i.imgur.com/3QzcEBg.png)
</details>

![](https://i.imgur.com/gycFdku.png)


# 4. Learn to transfer tokens to an account on the Casper Testnet.

Testnet transfer:

<details>
  <summary>Click to expand full prior screenshot history ...</summary>

  ![](https://i.imgur.com/iCb2jMS.png)
  ![](https://i.imgur.com/KVGRWZW.png)
</details>

![](https://i.imgur.com/dYOqZnc.png)

# 5. Learn to Delegate and Undelegate on the Casper Testnet.

Delegation carried out using https://testnet.cspr.live/...
<details>
  <summary>Click to expand full prior screenshot history ...</summary>

  ![](https://i.imgur.com/AkacsWL.png)
  ![](https://i.imgur.com/Rizvn06.png)
  ![](https://i.imgur.com/TzSP0Rm.png)

</details>

![](https://i.imgur.com/5d0kD7e.png)

Undelegation:

<details>
  <summary>Click to expand full prior screenshot history ...</summary>

  ![](https://i.imgur.com/Oc7mFzS.png)
  ![](https://i.imgur.com/WAUQu88.png)
  ![](https://i.imgur.com/Vb7Rbss.png)
  ![](https://i.imgur.com/8ERP7MM.png)
  
</details>

![](https://i.imgur.com/I1C3GPc.png)
