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
git clone https://github.com/mapprotocol/compass
cd compass && make build
use
compass accounts import --privateKey {yourKey}
command import your accountif 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)if you want to run model of messenger, you can use
compass messenger --blockstore ./blockStore --config ./config.json
command to run
Docker deploy
make for Dockerfile,use
docker build -t compass:1.0.0 .
commandmake after,user
docker images
command to check imageUse
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