Compass(maintainer,messenger)

Compass - the introduction of model and arch

maintainer

messenger

config of Compass

the compass config

main-config

chain
type

ethereum、map

ethereum

bsc

bsc

goerli、eth

eth2

polygon

matic

near

near

klaytn

klaytn

platon

platon

conflux

conflux

Opts

Other

Compass env and deploy

env

need install Go 1.16+,gcc、make, if you need near chain,please install npm,login in to generate your account credentials,The machine requires more than 2C4G。

linux deploy

  1. git clone https://github.com/mapprotocol/compass

  2. cd compass && make build

  3. use compass accounts import --privateKey {yourKey} command import your account

  4. if you want to run model of maintainer, you can use compass maintainer --blockstore ./blockStore --config ./config.json command to run (blockStore stores the historical progress for this time. The next time it runs, the historical progress will be read locally and start from this progress)

  5. if you want to run model of messenger, you can use compass messenger --blockstore ./blockStore --config ./config.json command to run

Docker deploy

  1. make for Dockerfile,use docker build -t compass:1.0.0 . command

  2. make after,user docker images command to check image

  3. Use docker run --name maintainer -d -e KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD -v ${your config dir}:/root/config -v ${your account dir}:/root/keys -v ${your near account dir}:/root/.near-credentials compass:1.0.0 maintainer --config /root/config/config.json --blockstore /root/config/all/maintainer (It is recommended that the blockStore directory and the configuration directory be placed together.) command to run images

Compass secondary development - Define your own routing service based on compass

Now compass only generate proof,For more follow-up please pay attention to the official community

Please check for details (https://github.com/mapprotocol/compass-sdk)

Last updated