Skip to content

Latest commit

 

History

History
 
 

defund-private-2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Defund Private Testnet: defund-private-2

Quick Links

Genesis: TBA

Git tag: v0.1.0

Block explorer: coming soon

Seeds: TBA

Hardware Requirements

Here are the minimal hardware configs required for running a validator/sentry node

  • 16GB RAM
  • 4vCPUs
  • 200GB Disk space

Software Requirements

Installation Steps

Install Prerequisites

The following are necessary to build defund from source.

1. Basic Packages
# update the local package list and install any available upgrades 
sudo apt-get update && sudo apt upgrade -y 
# install toolchain and ensure accurate time synchronization 
sudo apt-get install make build-essential gcc git jq chrony -y
2. Install Go

Follow the instructions here to install Go.

Alternatively, for Ubuntu LTS, you can do:

wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz

Unless you want to configure in a non standard way, then set these in the .profile in the user's home (i.e. ~/) folder.

cat <<EOF >> ~/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source ~/.profile
go version

Output should be: go version go1.19.1 linux/amd64

Install Defund from source

1. Clone repository
git clone https://github.com/defund-labs/defund
cd defund
git checkout v0.1.0-alpha
make install

2. Init chain

defundd init <moniker> --chain-id defund-private-2

3. Add/recover keys

To create new keypair - make sure you save the mnemonics!
defundd keys add <key-name> 

Instructions for Genesis Validators

Create Gentx

1. Add genesis account:
defundd add-genesis-account <key-name> 100000000ufetf
2. Create Gentx
defundd gentx <key-name> 90000000ufetf \
--chain-id defund-private-2 \
--moniker="<moniker>" \
--commission-max-change-rate=0.01 \
--commission-max-rate=0.20 \
--commission-rate=0.05 \
--details="XXXXXXXX" \
--security-contact="XXXXXXXX" \
--website="XXXXXXXX"

Submit PR with Gentx and peer id

  1. Copy the contents of ${HOME}/.defundd/config/gentx/gentx-XXXXXXXX.json.
  2. Fork https://github.com/defund-labs/testnet
  3. Create a file gentx-{{VALIDATOR_NAME}}.json under the defund-private-2/gentx/ folder in the forked repo, paste the copied text into the file.
  4. Create a Pull Request to the main branch of the repository

Await further instruction!