The service is charge of slashing, penalty and rewarding and relayers registration functionality of cross-chain swap.
There is only relayer registeration functionality in current version.
I recommend to compare this project with relayer-smart-contrats.
- Update
config.jsonwith your configuration. - Update file
./service/unregister-relayer.goby analogy with the file./service/register-relayer.go. - Update all files with !!! TODO !!!:
./service/relayer.go./service/workers/eth-compatible/worker.gomethod Unregister() also check if Unregister() contains in worker interface./service/workers/worker.go- add in storage new types of events. Go to
./service/storage/types.goand do the same as withREGISTER. - update
./service/storage/tx.gomethod ConfirmTx()