Presented by ASU Blockchain and ASU West Campus Coders
Register
·
View Projects
·
Prizes
To enter, make sure you have registered for the hackathon on our devpost page. There are no restrictions on group size.
We will be awarding $5000 in prizes total, given out in cash. For a project to be eligible for a prize, it must have some involvement with the Sui blockchain, although it is not required that you write any smart contracts or run any transactions on the chain. You can find the list of prizes here.
Hackathon prizes will be awarded based on the rankings of our judges:
- Dragan Boscovic, head of ASU Blockchain Research Lab
- Swathi Punathumkandi, Professor at SCAI, PhD in Blockchain
We will be answering questions about the event + developer support in the discord:
Don't have any ideas for a project? We have two guides that you can follow to have a skeleton that you can expand upon.
We strongly recommend that you use either Linux or Mac to develop your project. If you are using Windows, please consider using either Windows Subsystem for Linux or Virtualbox to install Ubuntu and continue using the Linux instructions. Development on Windows is generally not recommended.
We are going to use Homebrew to install the package both on Mac and Windows. If you are only used to using homebrew on Mac and not Linux, thats OK, it works the same on both platforms.
-
Run the install command from the Homebrew website
-
Run the commands in the resulting "Next Steps" text from the brew install to ensure you have proper dependencies. They may be different on each computer, but on my machine it looks like this:
Specifically, the command to add homebrew to PATH is important.
-
Run
brew install sui
-
The first time you run Sui client, you will be prompted for a first time setup. Enter "y" to connect to a full node server, just press enter again to default to devnet, and finally enter 0 to use the Ed25519 key scheme.
After running the sui binary, there exists a public private keypair in ~/.sui
that the CLI will use whenever you want to interact with the blockchain. We want to create a browser wallet and share the keypair between them. This will make it easier to interact with your DApp later.
-
Install a Sui wallet. We recommend Ethos Wallet
-
Go through the install instructions to create a new wallet, then copy your "mnemonic" or "recovery phrase" from the extension. In Ethos wallet this can be done via the settings icon in the top right, then "security" and "view recovery phrase"
-
Import the mnemonic into your sui CLI with the following command:
sui keytool import "<recovery phrase here>" ed25519
-
Check that the import worked with
sui client addresses
, and note the alias associated with the wallet address of your browser. -
Then change to the new wallet with
sui client switch --address <new alias>
IMPORTANT! Your 16 word "mnemonic" is equivalent to your Private key. If you share either your mnemonic or your private key with anyone, they will be able to control your wallet and take their money. This is not so important in this hackathon because we are not dealing with real money, but if you ever decide to put any real value onto a blockchain wallet, you need to be extremely careful with your private key and mnemonic.
We recommend that you watch the following video to learn how the CLI works: Sui CLI Walkthrough
If you are running into issues such as npm: command not found
, you will need to download javascript.
-
Download Nodejs
-
Download Node Version Manager (nvm) for Ubuntu/MacOS:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
-
Run the following command:
export NVM_DIR="$HOME/.nvm"
# This loads nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# This loads nvm bash_completion
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
- Check nvm has been downloaded correctly:
nvm --version
nvm install 16
nvm use 16
-
Install a Code Editor (VS Code Highly recommended): https://code.visualstudio.com/download
-
Install Move Analyzer from VS Code Extensions: https://marketplace.visualstudio.com/items?itemName=move.move-analyzer
-
Install the following for Syntax Highlighting:
cargo install --git https://github.com/move-language/move move-analyzer --branch sui-move --features "address32"
-
More information can be found here: https://docs.sui.io/guides/developer/getting-started/sui-environment
-
- Create a new folder in VSCode
-
- Run the following command:
npm create @mysten/dapp
- Run the following command:
-
- Select
react-e2e-counter
- Select