Inheriting TL Contracts
Inheriting TL contracts into your project is straightforward and simple.
Using Foundry
If you are using Foundry, it is really simple to integrate TL contracts into your project. You just simply have to run the following, depending on which repo you want to integrate.
Using Hardhat
If your project is using Hardhat, you can use the Hardhat-Foundry plugin to integrate our contracts. This still requires Foundry to be installed though.
The one caveat is that we typically have some custom remappings that you may need. They are shown below. These can be added to the remappings.txt
file as applicable and may need modification depending on your use case.
Using Brownie
Unfortunately Brownie does not allow solidity files to be defined outside of a contracts
folder for packages and thus our repositories can't be used in Brownie projects. Hopefully ApeWorx fixes this, as Brownie is sunsetting soon.
Last updated