Inverter is the pioneering web3 protocol for token economies, enabling conditional token issuance, dynamic utility management, and token distribution. Build, customize, and innovate with Inverter's modular logic and extensive web3 interoperability.
The Inverter Network smart contracts are developed using the foundry toolchain
- Clone the repository
cd
into the repository- Run
make install
to install contract dependencies - (Optional) Run
source dev.env
to set up environment variables
Common tasks are executed through a Makefile
. The most common commands are:
make build
to compile the project.make test
to run the test suite.- Note: Some of our tests require a working Sepolia RPC URL, as we test certain contracts via fork testing. We implemented fallbacks for these particular test cases in the code directly, so they will work even without any RPC set in the environment. In the unlikely case that the tests do not work without RPC, please set a working one via
export SEPOLIA_RPC_URL=https://rpc-url-here
.
- Note: Some of our tests require a working Sepolia RPC URL, as we test certain contracts via fork testing. We implemented fallbacks for these particular test cases in the code directly, so they will work even without any RPC set in the environment. In the unlikely case that the tests do not work without RPC, please set a working one via
make pre-commit
to ensure all of the development requirements are met, such as- the Foundry Formatter has been run.
- the scripts are all working.
- the tests all run without any issues.
Additionally, the Makefile
supports a help command, i.e. make help
.
$ make help
> build Build project
> clean Remove build artifacts
> test Run whole testsuite
> update Update dependencies
> [...]
The protocol is based on our technical specification, which outlines its architecture and is the foundation of the implementation. Our documentation can be found here.
- OpenZeppelin Contracts
- OpenZeppelin Upgradeable-Contracts
- UMAProtocol (for the KPIRewarder Staking Module)
You are considering to contribute to our protocol? Awesome - please refer to our Contribution Guidelines to find our about the processes we established to ensure highest quality within our codebase.
Our Security Policy provides details about our Security Guidelines, audits, and more. If you have discovered a potential security vulnerability within the Inverter Protocol, please report it to us by emailing security@inverter.network.
Disclaimer: This is experimental software and is provided on an "as is" and "as available" basis. We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.