This is a repository for myself but I welcome anyone interested in playing around with the current state of development of the IOTA Smart Contract Protocol (ISCP). Feel free to contact me on IOTA Foundation's discord server under Th3B0Y#8380.
- Go - Why Go?
- Gcc (or equivalent for Windows (TDM-GCC)) - Why Gcc?
- Rust
- Wasm-pack
- Visual Studio Code (VSCode)
- Go Extension
- Rust Analyzer
- Better TOML *Optional nice to have
- Use this template repository to create your own.
- Open VSCode and a terminal in it (In the menu : Terminal > New Terminal)
- In the terminal, clone your git repository:
git clone https://github.com/brunoamancio/IOTA-SC-TIP200.git && cd IOTA-SC-TIP200
- In the terminal, initialize the wasp submodule with:
git submodule update --init --recursive -- smartcontract/rust/wasp
- In the terminal, open your git repository on VSCode
code -r .
- For Windows only, open file ".vscode/settings.json" and uncomment the setting "go.testFlags" entry "-buildmode=exe":
Done! Now you can write your smart contract in smartcontract/rust
, compile it, run and debug unit tests in tests/smartcontract/my_iota_smart_contract_test.go
!