Oracle service for DAOBet validators.
in conf.json
file Configure next fields:
accountName
: paste your account nameKeyProvider
: paste your account private keyethNet
: paste your infura id project
For getting the infura
project id
you have to register on infura.io and create a project
using docker:
docker pull daocasino/oracle
docker run -d -v PATH_TO_CONFIG_IN_HOST_MACHINE:/app/conf.json daocasino/oracle
using nodejs:
npm install
npm run prod
node build/oracle.js
- User call
convert(...)
on smart contract in ethereum mainnet - Smart contract in ethereum while transfering BET tokens from users, and emit event Swap
- Oracle reads events from ethereum smart contract and proposes to
eosio.msig
transfer BET tokens fromeosio.bridge
to account from events. if this proposal already exists, oracle approves this proposal. - When proposal has been approved by 2/3 + 1 validators
eosio.bridge
sends tokens to user.