Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1.2 KB
Raw Blame
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.24;

import {Script, console} from "forge-std/Script.sol";
import {IdentityRegistry} from "../src/IdentityRegistry.sol";
import {ReputationRegistry} from "../src/ReputationRegistry.sol";
import {ValidationRegistry} from "../src/ValidationRegistry.sol";

/// @notice Deploys the three ERC-8004 registries. Run with:
///   forge script script/Deploy.s.sol:Deploy \
///     --rpc-url $BASE_SEPOLIA_RPC_URL \
///     --private-key $DEPLOYER_PK \
///     --broadcast --verify
contract Deploy is Script {
    function run()
        external
        returns (IdentityRegistry identity, ReputationRegistry reputation, ValidationRegistry validation)
    {
        address deployer = msg.sender;

        vm.startBroadcast();

        identity = new IdentityRegistry();
        reputation = new ReputationRegistry(address(identity));
        validation = new ValidationRegistry(address(identity), deployer);

        vm.stopBroadcast();

        console.log("IdentityRegistry:  ", address(identity));
        console.log("ReputationRegistry:", address(reputation));
        console.log("ValidationRegistry:", address(validation));
        console.log("Owner (ValidationRegistry):", deployer);
    }
}