Fantom-foundation / Artion-Server

Artion API Server

Home Page:https://artion.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server Config Questions

benjaminmbrown opened this issue · comments

What are the TRACKER's use case? Are they required? How do we set these up or connect to trackers?

ADMIN_ADDRESS - FTM address of administrator?
ROYALTY_PK - is this address for platform royalties to get sent to?

@benjaminmbrown

First I want to mention I'm not part of the team, I happen to have forked the Artion project like you. But I could learn a bit by reading code as the READMEs are not truly helpful.

What are the TRACKER's use case ?
The trackers look like independant processes which sole purpose is to feed the database according to contracts events.

Are they required ?
According to the architecture, yes they are required.

How to set these up ?
I also had / have a hard time setting everything up and had to guess the values by reading the codes. But you can make these work by setting up their .env files in each tracker repository. Here's an example for the marketplace-tracker :

NETWORK_RPC=<INFURA_RPC_URL>
NETWORK_CHAINID=<CHAIN_ID>
DB_URL=<YOUR_MONGODB_URL>
API_ENDPOINT="http://localhost:3001/marketplace/"
CONTRACTADDRESS=<MARKETPLACE_CONTRACT_ADRESS>

Then on the server's .env, you need to add a kind of whitelist for the trackers IP. If you're on localhost it shall look like this :

TRACKER_IP1="::ffff:127.0.0.1"
TRACKER_IP2="::ffff:127.0.0.1"
TRACKER_IP3="::ffff:127.0.0.1"
TRACKER_IP4="::ffff:127.0.0.1"

For the other 2 questions, I am still finding out.