Skip to content

ODIN-PROTOCOL/odin-developer-edition

Repository files navigation

# To start
docker-compose up -d
# To see the status
docker-compose logs -f

Notes

  • 1 Odin token equals 10^6 loki

Example create data source:

odind tx oracle create-data-source --name "some name" --description "some description" --script path/to/script/script.py --owner [owner-acc-address] --from [key-name] --chain-id odin --keyring-backend test 

Example create oracle script:

odind tx oracle create-oracle-script --name "some name" --description "some description" --script path/to/script/script.wasm --owner [owner-acc-address] --from [key-name] --chain-id odin --gas auto --keyring-backend test

Example become Oracle validator:

odind tx oracle activate --from [key-name] --chain-id odin --keyring-backend test

Example become system validator:

odind tx staking create-validator --amount 100000000loki --commission-max-change-rate 0.010000000000000000 --commission-max-rate 0.200000000000000000 --commission-rate 0.100000000000000000 --chain-id odin --from [key-name] --moniker "some moniker" --pubkey [validator-cons-pub-key] --min-self-delegation 1 --keyring-backend test

Example request create:

odind tx oracle request [oracle-script-id:uint] [min-reports:uint] [max-reports:uint] -c [obi-encoded-calldata] --chain-id odin --from [key-name] --gas auto --keyring-backend test

OBI Encoded calldata example:

{"symbol": "BTC", "multiplier": 1000000000} -> 00000003425443000000003b9aca00

Example configuring reporters:

# !!!deprecated!!! (use for loop with bank send)
odind tx multi-send 1000000loki $(yoda keys list -a) --from [key-name] --keyring-backend test --chain-id odin
odind tx oracle add-reporters $(yoda keys list -a) --from [key-name] --keyring-backend test --chain-id odin

Example edit data source:

odind tx oracle edit-data-source [data-source-id:uint] --script /path/to/script.py --owner [owner-acc-address] --from [key-name] --chain-id odin --keyring-backend test

Example query report:

odind query oracle request [request-id:uint] --chain-id odin --output json --indent

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published