Base Sepolia Testnet

Contract

0x8aF3001ED75F86f4Dd910577ECa9C5dB7CEa765c
Source Code Source Code

Overview

ETH Balance

0 ETH

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount

There are no matching entries

Please try again later

Parent Transaction Hash Block From To Amount
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TeamGovernanceFactory

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 0 runs

Other Settings:
cancun EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : TeamGovernanceFactory.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.24;

import { IGovernanceFactory } from "src/interfaces/IGovernanceFactory.sol";

/**
 * @title TeamGovernanceFactory
 * @notice A governance factory that returns a multisig instead of deploying actual governance contracts
 * @dev This is used for tokens that do not require on-chain governance, but want to sweep unused funds
 */
contract TeamGovernanceFactory is IGovernanceFactory {
    /// @notice The dummy address returned for governance
    /// @dev Using 0xdead as it's a well-known burn address
    address public constant DEAD_ADDRESS = address(0xdead);

    /**
     * @notice Creates team governance by returning provided team address for the timelock
     * @dev Provide a wallet address to sweep funds into
     * @return governance The dummy governance address (0xdead)
     * @return timelockController The wallet which excess dust will be swept to
     */
    function create(
        address, // asset (unused)
        bytes calldata data
    ) external pure returns (address governance, address timelockController) {
        (address teamWallet) = abi.decode(data, (address));

        return (DEAD_ADDRESS, teamWallet);
    }
}

File 2 of 2 : IGovernanceFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

interface IGovernanceFactory {
    function create(
        address asset,
        bytes calldata governanceData
    ) external returns (address governance, address timelockController);
}

Settings
{
  "remappings": [
    "ds-test/=lib/v4-core/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-gas-snapshot/=lib/v4-core/lib/forge-gas-snapshot/src/",
    "forge-std/=lib/forge-std/src/",
    "hardhat/=lib/v4-core/node_modules/hardhat/",
    "permit2/=lib/v4-periphery/lib/permit2/",
    "@solmate/=lib/v4-core/lib/solmate/src/",
    "@solady/=lib/solady/src/",
    "src:@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/contracts/",
    "test:@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/contracts/",
    "@v4-periphery/=lib/v4-periphery/src/",
    "@v4-periphery-test/=lib/v4-periphery/test/",
    "@v4-core-test/=lib/v4-periphery/lib/v4-core/test/",
    "@v4-core/=lib/v4-periphery/lib/v4-core/src/",
    "@v3-periphery/=lib/v3-periphery/contracts/",
    "@v3-core/=lib/v3-core/contracts/",
    "@uniswap/v3-core/=lib/v3-core/",
    "@universal-router/=lib/universal-router/contracts/",
    "@uniswap/v2-core/contracts/interfaces/=src/interfaces/",
    "@ensdomains/=lib/v4-core/node_modules/@ensdomains/",
    "@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/",
    "@uniswap/v3-periphery/=lib/universal-router/lib/v3-periphery/",
    "@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/",
    "@uniswap/v4-periphery/=lib/universal-router/lib/v4-periphery/",
    "openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/",
    "solady/=lib/solady/src/",
    "solmate/=lib/universal-router/lib/solmate/",
    "universal-router/=lib/universal-router/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/",
    "v4-core/=lib/v4-core/src/",
    "v4-periphery/=lib/v4-periphery/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 0
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": true,
  "libraries": {}
}

Contract ABI

API
[{"inputs":[],"name":"DEAD_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"create","outputs":[{"internalType":"address","name":"governance","type":"address"},{"internalType":"address","name":"timelockController","type":"address"}],"stateMutability":"pure","type":"function"}]

6080806040523460135760de908160188239f35b5f80fdfe60808060405260043610156011575f80fd5b5f3560e01c9081634e6fd6c41460b9575063a3f697ba14602f575f80fd5b3460b557604036600319011260b5576004356001600160a01b0381160360b5576024356001600160401b03811160b5573660238201121560b55760048101356001600160401b03811160b557810136602482011160b5576020908290031260b5576024013560018060a01b03811680910360b55760409081519061dead82526020820152f35b5f80fd5b3460b5575f36600319011260b5578061dead60209252f3fea164736f6c634300081a000a

Deployed Bytecode

0x60808060405260043610156011575f80fd5b5f3560e01c9081634e6fd6c41460b9575063a3f697ba14602f575f80fd5b3460b557604036600319011260b5576004356001600160a01b0381160360b5576024356001600160401b03811160b5573660238201121560b55760048101356001600160401b03811160b557810136602482011160b5576020908290031260b5576024013560018060a01b03811680910360b55760409081519061dead82526020820152f35b5f80fd5b3460b5575f36600319011260b5578061dead60209252f3fea164736f6c634300081a000a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0x8aF3001ED75F86f4Dd910577ECa9C5dB7CEa765c
Loading...
Loading
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.