Sourced Local Dev Setup
Want to use sourced locally for development, or to work with smart contracts? You're in the right place. To get started with smart contract development, we recommend running on a laptop until you are ready to deploy to a public testnet.
Local Source Chain set up with Ignite CLI
Install Pre-requisites
Install Go
Follow the instructions here to install Go.
For an Ubuntu LTS, you can probably use:
ver="1.19" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go versionPlease install Go v1.19 or later.
Install Ignite Cli
Follow the instructions here to install Ignite CLI. (Ignite CLI can also be used in an online Gitpod container here)
sudo curl https://get.ignite.com/cli! | sudo bashClone Source Chain Repo
git clone https://github.com/Source-Protocol-Cosmos/source.gitCompile sourced binary and start the local chain
cd ~/source
git fetch
git checkout v3.0.0
ignite chain serveYour local chain should now be running in development mode with two funded genesis accounts and a single validator for testing purposes.
Last updated
