Depending on what web3 library you're using, you may need to get hold of the contract ABIs (Application Binary Interfaces). There are two ways to obtain them.
We provide a node package called @hifi/protocol that contains the ABIs for the contracts deployed on mainnet:
$ git clone [email protected]:hifi-finance/hifi-protocol.git$ cd ./hifi-protocol$ git checkout v1.0.0$ yarn install$ yarn compile
You should find the artifacts in the newly created