Skip to main content
The workshop runs two parallel projects side-by-side: a Guided track (simple-token — you copy-paste along) and an Exercise track (my-token — you build it yourself). Let’s get both onto your machine.
How tracks work
  • Guided Track — A hands-on walkthrough of simple-token, a simplified version of the GEN token standard. Follow the steps, copy the code.
  • Exercise Track — Implement the same functionality in my-token on your own. Tests verify it; solutions are revealable inline on each page.

Clone my-token

git clone --branch 0.14.0 https://github.com/gen-bc/workshop.git my-contracts-repo
cd my-contracts-repo
git checkout v0.0.2

Initialize simple-token

gen genie init-contract \
  --name simple-token \
  --components 1 \
  --gen-framework-path https://github.com/gen-bc/gen-framework-preview#v0.14.0

Expected directory structure

You should now have:
my-contracts-repo/
├── simple-token/                # Guided — generated by `gen init-contract`
│   ├── simple-token/            # contract code
│   │   └── src/
│   │       ├── simple_token_contracts.rs
│   │       └── simple_token_errors.rs
│   └── simple-token-tests/      # test code
│       └── src/lib.rs
└── my-token/                    # Exercise — cloned from GitHub
    ├── my-token/                # contract code
    │   └── src/
    │       ├── my_token_contracts.rs
    │       └── my_token_errors.rs
    └── my-token-tests/          # test code
        └── src/lib.rs
Checkpoint — both folders exist with the structure above. You’re ready to build and run your first test.