This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf ~/.yoda # clear old config if exist | |
yoda config chain-id band-guanyu-testnet2 | |
yoda config node http://localhost:26657 | |
yoda config validator $(bandcli keys show YOUR_WALLET -a --bech val) | |
yoda config broadcast-timeout "5m" | |
yoda config rpc-poll-interval "1s" | |
yoda config max-try 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Yoda Daemon | |
After=network-online.target | |
[Service] | |
User=ubuntu | |
ExecStart=/home/ubuntu/go/bin/yoda r | |
Restart=always | |
RestartSec=3 | |
LimitNOFILE=4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl enable yoda | |
sudo systemctl start yoda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
def main(data): | |
return data | |
if __name__ == "__main__": | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod +x echo.py | |
docker run --rm -v $(pwd):/scratch:ro bandprotocol/runtime:1.0.1 /scratch/echo.py "Hello lambda" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/bandprotocol/bandchain | |
cd bandchain/chain | |
git checkout v1.2.6 | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yoda keys add REPORTER_1 | |
yoda keys add REPORTER_2 | |
yoda keys add REPORTER_3 | |
yoda keys add REPORTER_4 | |
yoda keys add REPORTER_5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bandd init --chain-id band-guanyu-testnet3 YOUR_MONIKER | |
wget https://raw.githubusercontent.com/bandprotocol/launch/master/band-guanyu-testnet3/genesis.json | |
mv genesis.json ~/.bandd/config | |
sed -E -i \ | |
's/persistent_peers = \".*\"/persistent_peers = \"ceb2fe644d03a33b3c1ba4a384384433e7bb5b6b@guanyu-testnet3-alice.node.bandchain.org:26656,dd8397061f31a0b99c5742049e2ffc8e3956f9c7@guanyu-testnet3-bob.node.bandchain.org:26656\"/' \ | |
$HOME/.bandd/config/config.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bandcli keys add YOUR_WALLET | |
curl --location --request POST 'https://guanyu-testnet3x.bandchain.org/faucet/request' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"address": "YOUR_ADDRESS" | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bandcli tx staking create-validator \ | |
--amount 3000000uband \ | |
--commission-max-change-rate 0.01 \ | |
--commission-max-rate 0.2 \ | |
--commission-rate 0.1 \ | |
--from YOUR_WALLET \ | |
--min-self-delegation 1 \ | |
--moniker YOUR_MONIKER \ | |
--pubkey $(bandd tendermint show-validator) \ | |
--chain-id band-guanyu-testnet3 |