You probably do NOT need to dploy the protocol. This is only necessary
if the rules engine is not already deployed on the network your application is
on or you are developing locally and need or want to test out the rules in
that environment.
Most projects can simply connect to an existing deployment of the rules engine. Check the networks page for a list of networks the protocol is live.
- Open a new terminal
- Set environmental variables and source the .env file (
source .env
) and then feel free - In the same terminal as above, ensure that the Foundry installation is current (see troubleshooting section)
- In the same terminal as above, navigate to the cloned repo directory and run the build script.
- The deployment script will add the output RuleProcessorDiamond address to your .env file. Source it for the future interactions with the protocol:
- Set the version of the protocol:
<PROTOCOL_VERSION>
with the proper value. i.e: “1.1.0”.
-
(Optional) If a multi-sig wallet is to hold the protocol’s ownership, then:
- Export the multi-sig address to zsh:
- Transfer the ownership to multi-sig wallet.
- Check that the owner is the multi-sig wallet:
If the response is the same address as MULTISIG_WALLET, the ownership transfer was successful. If not, repeat the process.