Categorygithub.com/Sotatek-huytran2/oracle-relayer
repositorypackage
1.0.0
Repository: https://github.com/sotatek-huytran2/oracle-relayer.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

# README

Oracle Relayer

Oracle Relayer is responsible for relaying events of asc to axim chain.

Build

Build binary:

$ make build

Build docker image:

$ make build_docker

Config

There is a config template in config directory, you should create your own config to run your relayer correctly. You can refer to config doc for more details.

Recommendations

If you are going to deploy your oracle relayer in production, AWS Secret Manager is recommended. You can use AWS Secret Manager to host your mnemonic.

For AFC and ASC providers, you should use trusted nodes and TLS connection is recommended.

Run

Run locally:

$ ./build/relayer --afc-network [0 for testnet, 1 for mainnet] --config-type [local or aws] --config-path config_file_path --aws-region [aws region or omit] --aws-secret-key [aws secret key for config or omit]

Run docker:

$ docker run -it -v /your/data/path:/relayer -e AFC_NETWORK={0 or 1} -e CONFIG_TYPE="local" -e CONFIG_FILE_PATH=/your/config/file/path/in/container -d oracle_relayer

License

Distributed under the GNU Lesser General Public License v3.0. See LICENSE for more information.