Skip to content

dogethereum/dogethereum-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dogethereum Agents

A set of agents:

If you are new to the Dogecoin <-> Ethereum bridge, please check the docs repository first.

Development

Requirements

  • IntelliJ IDEA 2017.2 or superior
  • JDK 1.11 or superior
  • Dogecoin
  • Ganache

Run ganache

ganache -l GAS_LIMIT -p 8545

Run dogecoin

  • Start the dogecoin node in regtest mode

dogecoind -rpcport=22220 -regtest -rpcuser=RPCUSER -rpcpassword=RPCPASS -datadir=DATADIR

  • Mine 1 doge block to "wake up" the dogecoin node in regtest mode
  • To verify it is working

dogecoind -rpcport=22220 -regtest -rpcuser=RPCUSER -rpcpassword=RPCPASS -datadir=DATADIR getinfo

Java project setup

  • Clone this repository
  • Open IntelliJ IDEA
  • Import project as Maven
  • Configuration file
    • Create a custom configuration file by making a copy of the sample configuration file dogethereum-agents/src/main/resources/dogethereum-agents.sample.conf and place it anywhere you want, e.g. /home/yourUser/dogethereum-agents.conf
    • Edit these entries to point to your computer paths
      • deployment.path
      • data.directory
      • operator.private.key.file.path
    • Note: On windows paths have to be between "" and with a double backslash \\ as separator. E.g. data.directory = "D:\\dogethereum-agents\\storage\\data"
  • Create Run configuration
    • In Run/Edit Configurations... add a new "Application" configuration
    • Set parameters like this
      • Name: Main local
      • Main class: org.dogethereum.agents.Main
      • VM options: -Ddogethereum.agents.conf.file=path_to_configuration_file_copy
    • Note: On windows paths have to use the double backslash as separator.

Run the agents

  • Delete agent data dir (data.directory config variable) before each restart just to make sure you are on the safe side.
  • On IntelliJ IDEA go to Run/Run...
  • Select "Main local" run configuration

License

MIT License
Copyright (c) 2021 Coinfabrik & Oscar Guindzberg
License

About

External agents for the Dogecoin <-> Ethereum bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published