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.

1008 B
Raw Blame
const { internalTask } = require('hardhat/config');
const { TASK_TEST_GET_TEST_FILES } = require('hardhat/builtin-tasks/task-names');

// Modifies `hardhat test` to skip the proxy tests after proxies are removed by the transpiler for upgradeability.

internalTask(TASK_TEST_GET_TEST_FILES).setAction(async (args, hre, runSuper) => {
  const path = require('path');
  const { promises: fs } = require('fs');

  const hasProxies = await fs
    .access(path.join(hre.config.paths.sources, 'proxy/Proxy.sol'))
    .then(() => true)
    .catch(() => false);

  const ignoredIfProxy = [
    'proxy/beacon/BeaconProxy.test.js',
    'proxy/beacon/UpgradeableBeacon.test.js',
    'proxy/ERC1967/ERC1967Proxy.test.js',
    'proxy/transparent/ProxyAdmin.test.js',
    'proxy/transparent/TransparentUpgradeableProxy.test.js',
    'proxy/utils/UUPSUpgradeable.test.js',
  ].map(p => path.join(hre.config.paths.tests, p));

  return (await runSuper(args)).filter(file => hasProxies || !ignoredIfProxy.includes(file));
});