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.

902 B
Raw Blame
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

import {Currency, CurrencyLibrary} from "../types/Currency.sol";

contract CurrencyTest {
    function transfer(Currency currency, address to, uint256 amount) external {
        currency.transfer(to, amount);
    }

    function balanceOfSelf(Currency currency) external view returns (uint256) {
        return currency.balanceOfSelf();
    }

    function balanceOf(Currency currency, address owner) external view returns (uint256) {
        return currency.balanceOf(owner);
    }

    function isAddressZero(Currency currency) external pure returns (bool) {
        return currency.isAddressZero();
    }

    function toId(Currency currency) external pure returns (uint256) {
        return currency.toId();
    }

    function fromId(uint256 id) external pure returns (Currency) {
        return CurrencyLibrary.fromId(id);
    }
}