Categorygithub.com/NodeDAO/oracle-go
repositorypackage
0.2.1
Repository: https://github.com/nodedao/oracle-go.git
Documentation: pkg.go.dev

# Packages

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
No description provided by the author
No description provided by the author
No description provided by the author

# README

oracle-go

Golang NodeDAO Oracle daemon

Made by: HashKing

HashKing

Oracle daemon for NodeDAO decentralized staking service. Collects and reports Beacon Chain states to the NodeDAO contract running on Ethereum execution layer.

For oracle contracts, see: NodeDAO/NodeDAO-Protocol

Config File

See the complete configuration file:conf/config-default.yaml

You are advised to modify the configuration:

log:
  level:
    server: info
  # console or json
  format: console

eth:
  network: mainnet
  # ETH execution layer connection address
  elAddr:
  # ETH consensus layer connection address
  clAddr:
  # Oracle member's private key(Make enough ETH to support the GAS of transactions; without ‘0x’ prefix)
  privateKey:

Configuration details

AttributeRequiredDefaultDescription
log.level.serverfalseinfolog level
log.formatfalseconsolelog format: console or json
eth.networkfalsemainnetnetwork
eth.clAddrtrueETH consensus layer connection address
eth.elAddrtrueETH execution layer connection address
eth.privateKeytrueOracle member's private key(Make enough ETH to support the GAS of transactions; without ‘0x’ prefix)

Note:

  • Ensure connectivity between the ETH execution layer and the ETH consensus layer nodes for which the elAddr and clAddr parameters are set.
  • Ensure that privateKey's private key is authorized by Oracle member(privateKey without ‘0x’ prefix).

Setup

Quick Commands

./cli-init.sh
./oracle-go oracle withdraw --config <YOUR_CONFIG_FILE>

Docker

NodeDAO oracle-go docker images

docker pull nodedao/oracle-go:latest
docker run --name nodedao-oracle -v `pwd`/config-dev.yaml:/config/config-dev.yaml -d --restart=always nodedao/oracle-go:latest --config /config/config-dev.yaml

License

2022 kinghash

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.