This repository contains the project presented at the Firechat of Front in Floripa 2024, where we demonstrated how to create a Smart Contract in Sway using the entire Fuel Ecosystem.
- packages/sway: Contains the smart contracts written in Sway
- packages/app: Contains the React project that interacts with the smart contract
- packages/chain: Contains the configurations to run the local chain
-
Install Fuel Wallet
-
Clone the repository
git clone https://github.com/infinitybase/fuel-frontin-floripa.git
-
Install the Fuel Toolchain
curl https://install.fuel.network | sh fuelup self update
-
Run the local node
fuel-core run \ --db-path ./packages/chain/mnt/db \ --utxo-validation \ --vm-backtrace \ --poa-interval-period 1sec \ --debug \ --snapshot ./packages/chain
-
Setup the wallet to connect to the local node
-
Build and deploy the smart contract.
-
Run the Application