Frenrug is an on-chain AI agent that lives in a friend.tech chatroom managing a portfolio of keys. Behind the scenes, Frenrug is powered by Ritual.
These smart contracts implement the Infernet SDK to power the on-chain components of Frenrug.
Important
You can find the complete documentation of these smart contracts in the Frenrug docs.
Warning
The Frenrug smart contracts have not been audited, and while we won’t rug you, you may rug yourself. We recommend proceeding with caution.
First, ensure you have Foundry installed locally. A simple way to install is to run to the following command:
# Install foundryup, follow instructions
curl -L https://foundry.paradigm.xyz | bash
To build, run, or execute other commands, you can reference the Makefile.
The default target (make
) will:
- Clean existing build outputs
- Install all dependencies
- Format code
- Build code and copy compiled artifacts
- Run test suite
There are also two scripts provided for convenience (./scripts/Deploy.sol and ./scripts/UpdateVerifier.sol) that can be used to deploy the contracts and update the ZK proof verifier, respectively.
The live, deployed contracts can be found as follows:
- Infernet Coordinator contract (deployed by the Ritual team): 0x8D871Ef2826ac9001fB2e33fDD6379b6aaBF449c
- Frenrug contract: 0x5bfe1Ed1741c690eC3e42795cf06a4c38Ed3BC0c
- Data Attestation contract: 0xe768F5cf207c4A9919e2259c36Ad289bf26C1439
- ZK Proof Verification contract: 0xc4C748261cE010CcB482640e1Ab9a6869af1766F
You can see MessageResponse
events emitted by the Frenrug contract via BaseScan.
Warning
Users cannot interface with these contracts directly (as they are called by Infernet nodes processing friend.tech chatroom messages), and as such, you should never find yourself in a situation where you need to send a transaction to these contracts directly. Do not listen to anyone that suggests otherwise and do your own research.