Setting up development environment
Must have
docker
anddocker-compose
installedBuilding the source
docker-compose build
Create razor.yaml at $HOME/.razor/
vi $HOME/.razor/razor.yaml
Add in razor.yaml and use :wq to exit form editor
buffer: 20
gaslimit: 2
gasmultiplier: 1
gasprice: 0
provider: <rpc-url>
wait: 30Create account , and note address.
docker-compose run razor-go /usr
/local/bin/razor createImport account
docker-compose run razor-go /usr/local/bin/razor import
Get some RAZOR and MATIC token (or Token of respective RPC) to this address
Start Staking
#Provide password through CLI
docker-compose run razor-go /usr/local/bin/razor addStake --address <address> --value 50000
#Provide password through File
#Create file and put password string
vi ~/.razor/pass
#Start Staking
docker-compose run razor-go /usr/local/bin/razor addStake --address <address> --value 50000 --password /root/.razor/passTo Start Voting,
- Provide password through CLI
# Run process in foreground and provide password through cli
docker-compose run razor-go /usr/local/bin/razor vote --address <address>
# Run process in background and provide password through file
docker-compose run -d razor-go /usr/local/bin/razor vote --address <address> --password /root/.razor/pass- Provide password through File and run in background with compose up
- replace
<address>
in docker-compose.yml with your address and create file pass and add your password in file
- replace
docker-compose up -d