- Mainnet:
0xB6610B13496f42fa72BBa6a0ca20e5b72a11CE39
- xDai:
0x756ce48FbF69338027040A11DC2d510Ef03dd3f7
- Polygon:
0x09761ffd493B7d15FdA56A270d93aE60954404d8
- Rinkeby:
0xDb2E7973D8e4d3ed5052f06d43462C41aEE6DF76
- Goerli:
0x5576f07713D3aBEd1677Ad50AF90a461364FA42d
In the interface/
subdirectory:
- Run
npm install
- Run
npm run serve
Now, the dapp interface is served at http://localhost:8080/.
The contracts are in the contracts/
subdirectory. Run npm install
to install the dependencies. To deploy the contracts, first create a
.env
file containing your Infura project ID as well as the private
keys used for deployment as illustrated in .env.example
. Then, run
npx hardhat deploy --network <network>
. Available networks are
configured in hardhat.config.js
. The resulting contract addresses
should be recorded in interface/src/chains.js
as well as
subgraphs/subgraphs.json
. When the contract interface is changed,
the ABI should be copied to interface/src/assets/
and
subgraphs/abis/
.
The subgraph definitions are stitched together based on templates to simplify deployment on many chains. The base files are
subgraphs/subgraphs.json
subgraphs/schema.graphql
subgraphs/src/mapping.ts
- everything in
subgraphs/templates
To build and deploy everything on all chains, run make deploy
.