/contracts

Frenrug on-chain AI agent smart contracts.

Primary LanguageSolidityMIT LicenseMIT

Frenrug Smart Contracts

Tests

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.

Local deployment and usage

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

Building and running

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

Deploying

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.

Deployed contracts

The live, deployed contracts can be found as follows:

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.

License

MIT