XRPL hook for Evernode.
-
Use
sudo apt-get install gcc-multilibto install 32 bit gcc header files which is needed to compile hook as a 32 bit binary. -
Run
./dev-setup.shto install prerequisites. -
Create hook account configuration file named
hook.jsonin the evernode-hook directory with following format and populate the accounts and network field.{ "governor": { "address": "", "secret": "" }, "registry": { "address": "", "secret": "" }, "heartbeat": { "address": "", "secret": "" }, "network": "" }- NOTE: If you intend to build and upload a specific hook instead of all three hooks, you can define the
hook.jsonfile within the directory of that specific hook. In this case, you can omit the account data related to the other two hooks from the file.
- NOTE: If you intend to build and upload a specific hook instead of all three hooks, you can define the
-
XRPL.js npm library will not support the server definitions on
hooks-testnet-v3, So you need to replace the server definitions inxrpl-binary-codec.
- Run
make buildto build the hook binaries. - Run
make uploadto upload hook to the account. - Run
make grantgrant the governance state access. - Run
make cleanto clear the build directories. - Running
makewill execute build upload and grant steps.