# README
Yoda
Prepare environment
- Install PostgresSQL
brew install postgresql
- Install Golang
- Install Rust
- Install Docker
- run
cd owasm/chaintests/bitcoin_block_count/
- run
wasm-pack build .
make install
in chain directory- Open 3 tabs on cmd
- run
docker pull bandprotocol/runtime:1.0.2
How to install and run Yoda
- Open first cmd tab for running the BandChain
- Open second cmd tab for running the Yoda
- Open third cmd tab for running the BandChain CLI
How to run BandChain on development mode
- Go to chain directory
- Setup your PostgresSQL user, port and database name on
start_bandd.sh
- run
chmod +x scripts/start_bandd.sh
to change the access permission of start_bandd.script - run
./scripts/start_bandd.sh
to start BandChain - If fail, try owasm pack build then run script again.
cd ../owasm/chaintests/bitcoin_block_count/
wasm-pack build .
cd ../../../chain
How to run Yoda
- Go to chain directory
- run
chmod +x scripts/start_yoda.sh
to change the access permission of start_yoda.script - run
./scripts/start_yoda.sh validator [number of reporter]
to start Yoda
Try to request data BandChain
After we have BandChain
and Yoda
running, now we can request data on BandChain.
Example of requesting data on BandChain
bandcli tx oracle request 1 -c 0000000342544300000000000003e8 1 1 --from requester --chain-id bandchain --gas 3000000 --keyring-backend test --from requester
# Packages
No description provided by the author
# Functions
GetDataSourceHash fetches data source hash by id.
GetEventValue checks and returns the exact value in the given log with the given type and key.
GetEventValues returns the list of all values in the given log with the given type and key.
GetExecutable fetches data source executable using the provided client.
GetRawRequests returns the list of all raw data requests in the given log.
GetRequest fetches request by id.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
EventChannelCapacity is a buffer size of channel between node and this program.
TODO: We can subscribe only for txs that contain request messages.
# Structs
Config data structure for yoda daemon.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author