chronicleprotocol / oracle-suite

A set of tools that can be used to run Oracles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oracle Suite

Run Tests Release Assets

A set of tools that can be used to run Oracles.

Gofer

A tool to fetch and calculate reliable asset prices.

see: Gofer CLI Readme

Spire

A peer-to-peer node & client for broadcast signed asset prices.

see: Spire CLI Readme

Ghost

A tool used by feeds for broadcast signed prices.

see: Ghost CLI Readme

Spectre

A tool used by relays to update Oracle contracts.

see: Spectre CLI Readme

Setup pre-commit hooks

Install pre-commit

Using homebrew:

$ brew install pre-commit

Using pip:

$ pip install pre-commit

Check pre-commit version

$ pre-commit --version
pre-commit 3.3.3

Configure .pre-commit-config.yaml

  • You can create a file named .pre-commit-config.yaml
  • You can generate a very basic configuration using pre-commit sample-config
  • Or you can directly use .pre-commit-config.yaml file in the repository

Example:

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.2.0
    hooks:
    -   id: trailing-whitespace
    -   id: end-of-file-fixer
    -   id: check-yaml
    -   id: check-added-large-files

Install git hook scripts

Run pre-commit install to set up the git hooks scripts

$ pre-commit install
pre-commit installed at .git/hooks/pre-commit

Now you're ready to git commit!

Run all the files (optional)

pre-commit run --all-files

About

A set of tools that can be used to run Oracles.

License:GNU Affero General Public License v3.0


Languages

Language:Go 89.4%Language:HCL 10.6%Language:Makefile 0.0%