Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

misc: clean up default oracle scripts and data sources #1920

Merged
merged 4 commits into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Chain

- (impv) [\#1920](https://github.com/bandprotocol/bandchain/pull/1920) Cleaned up default data sources and oracle scripts info
- (feat) [\#1917](https://github.com/bandprotocol/bandchain/pull/1917) Add memo to tx table in cacher.
- (impv/chore) [\#1893](https://github.com/bandprotocol/bandchain/pull/1893) Cleanup and Add genesis command to add data sources / oracle scripts.
- (feat) [\#1910](https://github.com/bandprotocol/bandchain/pull/1910) Implement request-search REST and CLI endpoint.
Expand Down
108 changes: 54 additions & 54 deletions chain/scripts/start_bandd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,163 +30,163 @@ bandd add-genesis-account requester 10000000000000uband --keyring-backend test

# add data sources to genesis
bandd add-data-source \
"Coingecko script" \
"The script that queries crypto price from https://coingecko.com" \
"CoinGecko Cryptocurrency Price" \
"Retrieves current price of a cryptocurrency from https://www.coingecko.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/coingecko_price.py
bandd add-data-source \
"Crypto compare script" \
"The script that queries crypto price from https://cryptocompare.com" \
"CryptoCompare Cryptocurrency Price" \
"Retrieves current price of a cryptocurrency from https://www.cryptocompare.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/crypto_compare_price.sh
bandd add-data-source \
"Binance price" \
"The script that queries crypto price from https://www.binance.com/en" \
"Binance Cryptocurrency Price" \
"Retrieves current price of a cryptocurrency from https://www.binance.com/en" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/binance_price.sh
bandd add-data-source \
"Open weather map" \
"The script that queries weather information from https://api.openweathermap.org" \
"Open Weather Map Weather Data" \
"Retrieves current weather information from https://www.openweathermap.org" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/open_weather_map.sh
bandd add-data-source \
"Gold price" \
"The script that queries current gold price" \
"FreeForexAPI Gold Price" \
"Retrives current gold price from https://www.freeforexapi.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/gold_price.sh
bandd add-data-source \
"Alphavantage" \
"The script that queries stock price from Alphavantage" \
"Alpha Vantage Stock Price" \
"Retrives current price of a stock from https://www.alphavaage.co" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/alphavantage.sh
bandd add-data-source \
"Bitcoin block count" \
"The script that queries latest block height of Bitcoin" \
"Blockchain.info Bitcoin Block Count" \
"Retrives latest Bitcoin block height from https://www.blockchain.info" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/bitcoin_count.sh
bandd add-data-source \
"Bitcoin block hash" \
"The script that queries block hash of Bitcoin" \
"BlockCypher Bitcoin Block Hash" \
"Retrives Bitcoin block hash at a given block height from https://blockcypher.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/bitcoin_hash.sh
bandd add-data-source \
"Coingecko volume script" \
"The script that queries crypto volume from Coingecko" \
"CoinGecko Cryptocurrency Trading Volume" \
"Retrieves current trading volume of a cryptocurrency from https://www.coingecko.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/coingecko_volume.sh
bandd add-data-source \
"Crypto compare volume script" \
"The script that queries crypto volume from Crypto compare" \
"CryptoCompare Cryptocurrency Trading Volume" \
"Retrieves current trading volume of a cryptocurrency from https://www.cryptocompare.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/crypto_compare_volume.sh
bandd add-data-source \
"ETH gas station" \
"The script that queries current Ethereum gas price https://ethgasstation.info" \
"ETH Gas Station Current Ethereum Gas Price" \
"Retrieves current Ethereum gas price from https://ethgasstation.info" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/ethgasstation.sh
bandd add-data-source \
"Open sky network" \
"The script that queries flight information from https://opensky-network.org" \
"Open Sky Network Flight Data" \
"Retrieves flight information from https://opensky-network.org" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/open_sky_network.sh
bandd add-data-source \
"Quantum random numbers" \
"The script that queries array of random number from https://qrng.anu.edu.au" \
"Quantum Random Number Generator" \
"Retrieves array of random number from https://qrng.anu.edu.au" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/qrng_anu.sh
bandd add-data-source \
"Yahoo finance" \
"The script that queries stock price from https://finance.yahoo.com" \
"Yahoo Finance Stock Price" \
"Retrieves current price of a stock from https://finance.yahoo.com" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./datasources/yahoo_finance.py

bandd add-oracle-script \
"Crypto price script" \
"Oracle script for getting the current an average cryptocurrency price from various sources." \
"Cryptocurrency Price in USD" \
"Oracle script that queries the average cryptocurrency price using current price data from CoinGecko, CryptoCompare, and Binance" \
"{symbol:string,multiplier:u64}/{px:u64}" \
"https://ipfs.io/ipfs/QmUbdfoRR9ge6P39EoqDjBhQoDeaT6gJu76Ce9kKsz938N" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/crypto_price.wasm
bandd add-oracle-script \
"Gold price script" \
"Oracle script for getting the current average gold price in ATOMs" \
"Gold Price in ATOMs" \
"Oracle script that queries current average gold price in ATOMs using gold price data from FreeForexAPI and ATOM price from Binance" \
"{multiplier:u64}/{px:u64}" \
"https://ipfs.io/ipfs/Qmbcdr3UZXMrJeoRtHzTtHHepnzjyX1gWNhewWe6BXgmPm" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/gold_price.wasm
bandd add-oracle-script \
"Alpha Vantage stock price script" \
"Oracle script for getting the current price of a stock from Alpha Vantage" \
"Stock Price (Alpha Vantage)" \
"Oracle script that queries the current price of a stock from Alpha Vantage" \
"{symbol:string,api_key:string,multiplier:u64}/{px:u64}" \
"https://ipfs.io/ipfs/QmPsSmJ9gEdBoeQqwtk6bJykyFtqSpztCeGb9J1VFW65av" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/alphavantage.wasm
bandd add-oracle-script \
"Bitcoin block count" \
"Oracle script for getting the latest Bitcoin block height" \
"Latest Bitcoin Block Count" \
"Oracle script that queries the latest Bitcoin block height from Blockchain.info" \
"{_unused:u8}/{block_count:u64}" \
"https://ipfs.io/ipfs/QmUkpTCvdKMEFxwgeTpjP9hszZ11e5ioXZAS7XLpQLbV2k" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/bitcoin_block_count.wasm
bandd add-oracle-script \
"Bitcoin block hash" \
"Oracle script for getting the Bitcoin block hash at the given block height" \
"Bitcoin Block Hash" \
"Oracle script for getting the Bitcoin block hash at the given block height""Oracle script that queries the Bitcoin block hash at the given block height from BlockCypher"\
"{block_height:u64}/{block_hash:string}" \
"https://ipfs.io/ipfs/QmXu5NyUrtbcdPxut4WhVsRT4KjsPjy2NwJzEts7rjuEDf" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/bitcoin_block_hash.wasm
bandd add-oracle-script \
"CoinGecko crypto volume" \
"Oracle script for getting a cryptocurrency's average trading volume for the past day from Coingecko" \
"CoinGecko Cryptocurrency Volume" \
"Oracle script that queries a cryptocurrency's average trading volume for the past day from Coingecko" \
"{symbol:string,multiplier:u64}/{volume:u64}" \
"https://ipfs.io/ipfs/QmVuYP5cSujNSv33ZNMiFbcSMoRtBa7WMzG2q55j21Vhxj" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/coingecko_volume.wasm
bandd add-oracle-script \
"CryptoCompare crypto volume" \
"Oracle script for getting a cryptocurrency's average trading volume for the past day from CryptoCompare" \
"CryptoCompare Cryptocurrency Volume" \
"Oracle script that queries a cryptocurrency's average trading volume for the past day from CryptoCompare" \
"{symbol:string,multiplier:u64}/{volume:u64}" \
"https://ipfs.io/ipfs/Qmf2e5VF3uscGzBMwfQRZbaYLWxAZPWAgwv3m3iSv6BoGE" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/crypto_compare_volume.wasm
bandd add-oracle-script \
"Ethereum gas price" \
"Oracle script for getting the current Ethereum gas price from ETH gas station" \
"Ethereum Gas Price" \
"Oracle script that queries the current Ethereum gas price from ETH gas station" \
"{gas_option:string}/{gweix10:u64}" \
"https://ipfs.io/ipfs/QmP1i61XdPnfKSewh7vyh3xLgjxT42Gqpiv7CYLFK6V3Mg" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/eth_gas_station.wasm
bandd add-oracle-script \
"Open sky network" \
"Oracle script for checking whether a given flight number exists during the given time period" \
"Open Sky Network" \
"Oracle script for checking whether a given flight number exists during the given time period from OpenSky Network" \
"{flight_op:string,icao24:string,begin:string,end:string}/{flight_existence:u8}" \
"https://ipfs.io/ipfs/QmST4us1xAXmfXZFqBRZqjsDpNhTMY1CRsgjNccwmB4FTX" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/open_sky_network.wasm
bandd add-oracle-script \
"Open weather map" \
"Oracle script for getting the current weather data of a location" \
"Open Weather Map" \
"Oracle script that queries the current weather data of a location from OpenWeatherMap" \
"{country:string,main_field:string,sub_field:string,multiplier:u64}/{value:u64}" \
"https://ipfs.io/ipfs/QmNWvYfqZztrMNKjKyKLTATvnVPVUMPCdLJFkV5HfHBQoo" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/open_weather_map.wasm
bandd add-oracle-script \
"Quantum random number generator" \
"Oracle script for getting a big random number from quantum computer" \
"Quantum Random Number Generator" \
"Oracle script that queries a large random number from Australia's National University Quantum Random API." \
"{size:u64}/{random_bytes:string}" \
"https://ipfs.io/ipfs/QmZ62dxgAmCtDnt5XcAs2zP4UjGzozDzdKiHoR1Wo9MVeV" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/qrng.wasm
bandd add-oracle-script \
"Yahoo stock price" \
"Oracle script for getting the current price of a stock from Yahoo Finance" \
"Yahoo Stock Price" \
"Oracle script that queries the current price of a stock from Yahoo Finance" \
"{symbol:string,multiplier:u64}/{px:u64}" \
"https://ipfs.io/ipfs/QmfEUKFoX9PY3LHnT7Deixwb8qRrgWvdf5v8MzTinTYXLu" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
./pkg/owasm/res/yahoo_price.wasm
bandd add-oracle-script \
"Fair price from 3 sources" \
"Oracle script that query prices from many markets and then aggregate them together" \
"Fair Cryptocurrency Market Price" \
"Oracle script that queries the current price of a cryptocurrency from CoinGecko, CryptoCompare, and Binance and aggregates them using the user-selected method in the selected base currency" \
"{base_symbol:string,quote_symbol:string,aggregation_method:string,multiplier:u64}/{px:u64}" \
"https://ipfs.io/ipfs/QmbnRei1WG8gdstsVuU7Qqq4PwqED9LuHFvjDgS5asShoM" \
band1m5lq9u533qaya4q3nfyl6ulzqkpkhge9q8tpzs \
Expand Down