Contract 0x874b232fb2ceed25b51c893903c7f7dde11f22c2 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1ca79033dd20db5fd5a1ec0d58d87dfb9ddd7571ef667c0daea09dfecf2fb6ea0x60e06040203346712022-08-15 17:42:1545 days 22 hrs ago0x88532f5e88f6a1ccd9e64681acc63416594000f4 IN  Create: DefaultVotes0 ETH0.003483164108 ETH
[ Download CSV Export 
Latest 16 internal transactions
Parent Txn Hash Block From To Value
0xe5c53b00433fd20a1d62eebfd68b8f99d209f626fc493d52b37a107786b1cbf7203393192022-08-15 19:09:4145 days 21 hrs ago 0x874b232fb2ceed25b51c893903c7f7dde11f22c2 0xa2d346fe55133884bc6f58093ae5ab6b94df608a0 ETH
0xe5c53b00433fd20a1d62eebfd68b8f99d209f626fc493d52b37a107786b1cbf7203393192022-08-15 19:09:4145 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xe5c53b00433fd20a1d62eebfd68b8f99d209f626fc493d52b37a107786b1cbf7203393192022-08-15 19:09:4145 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xe5c53b00433fd20a1d62eebfd68b8f99d209f626fc493d52b37a107786b1cbf7203393192022-08-15 19:09:4145 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xa655b8bb173e9eaa7182e061b9da54b15d09d53a62c709cc2506c46741bf3aff203380682022-08-15 18:43:1245 days 21 hrs ago 0x874b232fb2ceed25b51c893903c7f7dde11f22c2 0xa2d346fe55133884bc6f58093ae5ab6b94df608a0 ETH
0xa655b8bb173e9eaa7182e061b9da54b15d09d53a62c709cc2506c46741bf3aff203380682022-08-15 18:43:1245 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xa655b8bb173e9eaa7182e061b9da54b15d09d53a62c709cc2506c46741bf3aff203380682022-08-15 18:43:1245 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xf2e4346daf4b59b06fee4ebbb97891023b9eaf9639432735108f7486ff69c414203380622022-08-15 18:43:1245 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0x19b264e4a514cd6c682501b6695d7ed1ae58ebf7bbec882611b69108194755bc203380562022-08-15 18:43:1245 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xf4c5f35d6cde3d0f75c0a42d2297674f8f0288f6725cd6136119aacf6b76644c203380442022-08-15 18:42:4145 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xf4c5f35d6cde3d0f75c0a42d2297674f8f0288f6725cd6136119aacf6b76644c203380442022-08-15 18:42:4145 days 21 hrs ago 0x240590cfd54f63df05c9e2fe7264786a73373ab4 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0xf910f8516d5175936eb56fab6bad3ce9d1801214105a12e343cdad9100576272203352142022-08-15 17:53:3145 days 22 hrs ago 0x874b232fb2ceed25b51c893903c7f7dde11f22c2 0xa2d346fe55133884bc6f58093ae5ab6b94df608a0 ETH
0xf910f8516d5175936eb56fab6bad3ce9d1801214105a12e343cdad9100576272203352142022-08-15 17:53:3145 days 22 hrs ago 0x5d784645e2ffa877668c1685441f340e0e77c7d0 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0x9f05adfe87360f3f972295b1a32f98c6115e66a45c42f7f2dad3147521c08352203347202022-08-15 17:43:1245 days 22 hrs ago 0xa2d346fe55133884bc6f58093ae5ab6b94df608a 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0x9f05adfe87360f3f972295b1a32f98c6115e66a45c42f7f2dad3147521c08352203347202022-08-15 17:43:1245 days 22 hrs ago 0xa2d346fe55133884bc6f58093ae5ab6b94df608a 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
0x9f05adfe87360f3f972295b1a32f98c6115e66a45c42f7f2dad3147521c08352203347202022-08-15 17:43:1245 days 22 hrs ago 0xa2d346fe55133884bc6f58093ae5ab6b94df608a 0x874b232fb2ceed25b51c893903c7f7dde11f22c20 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DefaultVotes

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan on 2022-08-15
*/

// SPDX-License-Identifier: AGPL-3.0-only

// [VOTES] The Votes Module is the ERC20 token that represents voting power in the network.

pragma solidity ^0.8.15;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*///////////////////////////////////////////////////////////////
                                  EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*///////////////////////////////////////////////////////////////
                             METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*///////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*///////////////////////////////////////////////////////////////
                             EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    bytes32 public constant PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*///////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*///////////////////////////////////////////////////////////////
                              ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*///////////////////////////////////////////////////////////////
                              EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            bytes32 digest = keccak256(
                abi.encodePacked(
                    "\x19\x01",
                    DOMAIN_SEPARATOR(),
                    keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
                )
            );

            address recoveredAddress = ecrecover(digest, v, r, s);

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

error TargetNotAContract(address target_);
error InvalidKeycode(Keycode keycode_);
error InvalidRole(Role role_);

function toKeycode(bytes5 keycode_) pure returns (Keycode) {
    return Keycode.wrap(keycode_);
}

function fromKeycode(Keycode keycode_) pure returns (bytes5) {
    return Keycode.unwrap(keycode_);
}

function toRole(bytes32 role_) pure returns (Role) {
    return Role.wrap(role_);
}

function fromRole(Role role_) pure returns (bytes32) {
    return Role.unwrap(role_);
}

function ensureContract(address target_) view {
    uint256 size;
    assembly("memory-safe") {
        size := extcodesize(target_)
    }
    if (size == 0) revert TargetNotAContract(target_);
}

function ensureValidKeycode(Keycode keycode_) pure {
    bytes5 unwrapped = Keycode.unwrap(keycode_);

    for (uint256 i = 0; i < 5; ) {
        bytes1 char = unwrapped[i];

        if (char < 0x41 || char > 0x5A) revert InvalidKeycode(keycode_); // A-Z only

        unchecked {
            i++;
        }
    }
}

function ensureValidRole(Role role_) pure {
    bytes32 unwrapped = Role.unwrap(role_);

    for (uint256 i = 0; i < 32; ) {
        bytes1 char = unwrapped[i];
        if ((char < 0x61 || char > 0x7A) && char != 0x00) {
            revert InvalidRole(role_); // a-z only
        }
        unchecked {
            i++;
        }
    }
}

// ######################## ~ ERRORS ~ ########################

// KERNEL ADAPTER

error KernelAdapter_OnlyKernel(address caller_);

// MODULE

error Module_PolicyNotAuthorized(address policy_);

// POLICY

error Policy_OnlyRole(Role role_);
error Policy_ModuleDoesNotExist(Keycode keycode_);

// KERNEL

error Kernel_OnlyExecutor(address caller_);
error Kernel_OnlyAdmin(address caller_);
error Kernel_ModuleAlreadyInstalled(Keycode module_);
error Kernel_InvalidModuleUpgrade(Keycode module_);
error Kernel_PolicyAlreadyApproved(address policy_);
error Kernel_PolicyNotApproved(address policy_);
error Kernel_AddressAlreadyHasRole(address addr_, Role role_);
error Kernel_AddressDoesNotHaveRole(address addr_, Role role_);
error Kernel_RoleDoesNotExist(Role role_);

// ######################## ~ GLOBAL TYPES ~ ########################

enum Actions {
    InstallModule,
    UpgradeModule,
    ActivatePolicy,
    DeactivatePolicy,
    ChangeExecutor,
    ChangeAdmin,
    MigrateKernel
}

struct Instruction {
    Actions action;
    address target;
}

struct Permissions {
    Keycode keycode;
    bytes4 funcSelector;
}

type Keycode is bytes5;
type Role is bytes32;

// ######################## ~ MODULE ABSTRACT ~ ########################

abstract contract KernelAdapter {
    Kernel public kernel;

    constructor(Kernel kernel_) {
        kernel = kernel_;
    }

    modifier onlyKernel() {
        if (msg.sender != address(kernel)) revert KernelAdapter_OnlyKernel(msg.sender);
        _;
    }

    function changeKernel(Kernel newKernel_) external onlyKernel {
        kernel = newKernel_;
    }
}

abstract contract Module is KernelAdapter {
    event PermissionSet(bytes4 funcSelector_, address policy_, bool permission_);

    constructor(Kernel kernel_) KernelAdapter(kernel_) {}

    modifier permissioned() {
        if (!kernel.modulePermissions(KEYCODE(), Policy(msg.sender), msg.sig))
            revert Module_PolicyNotAuthorized(msg.sender);
        _;
    }

    function KEYCODE() public pure virtual returns (Keycode);

    /// @notice Specify which version of a module is being implemented.
    /// @dev Minor version change retains interface. Major version upgrade indicates
    /// @dev breaking change to the interface.
    function VERSION() external pure virtual returns (uint8 major, uint8 minor) {}

    /// @notice Initialization function for the module.
    /// @dev This function is called when the module is installed or upgraded by the kernel.
    /// @dev Used to encompass any upgrade logic. Must be gated by onlyKernel.
    function INIT() external virtual onlyKernel {}
}

abstract contract Policy is KernelAdapter  {

    bool public isActive;

    constructor(Kernel kernel_) KernelAdapter(kernel_) {}

    modifier onlyRole(bytes32 role_) {
        Role role = toRole(role_);
        if(!kernel.hasRole(msg.sender, role))
            revert Policy_OnlyRole(role);
        _;
    }

    function configureDependencies() external virtual onlyKernel returns (Keycode[] memory dependencies) {}

    function requestPermissions() external view virtual onlyKernel returns (Permissions[] memory requests) {}

    function getModuleAddress(Keycode keycode_) internal view returns (address) {
        address moduleForKeycode = address(kernel.getModuleForKeycode(keycode_));
        if (moduleForKeycode == address(0)) revert Policy_ModuleDoesNotExist(keycode_);
        return moduleForKeycode;
    }

    /// @notice Function to let kernel grant or revoke active status
    function setActiveStatus(bool activate_) external onlyKernel {
        isActive = activate_;
    }
}

contract Kernel {
    // ######################## ~ VARS ~ ########################
    address public executor;
    address public admin;

    // ######################## ~ DEPENDENCY MANAGEMENT ~ ########################

    // Module Management
    Keycode[] public allKeycodes;
    mapping(Keycode => Module) public getModuleForKeycode; // get contract for module keycode
    mapping(Module => Keycode) public getKeycodeForModule; // get module keycode for contract
    
    // Module dependents data. Manages module dependencies for policies
    mapping(Keycode => Policy[]) public moduleDependents;
    mapping(Keycode => mapping(Policy => uint256)) public getDependentIndex;

    // Module <> Policy Permissions. Policy -> Keycode -> Function Selector -> Permission
    mapping(Keycode => mapping(Policy => mapping(bytes4 => bool))) public modulePermissions; // for policy addr, check if they have permission to call the function int he module

    // List of all active policies
    Policy[] public activePolicies;
    mapping(Policy => uint256) public getPolicyIndex;

    // Policy roles data
    mapping(address => mapping(Role => bool)) public hasRole;
    mapping(Role => bool) public isRole;

    // ######################## ~ EVENTS ~ ########################

    event PermissionsUpdated(
        Keycode indexed keycode_,
        Policy indexed policy_,
        bytes4 funcSelector_,
        bool granted_
    );
    event RoleGranted(Role indexed role_, address indexed addr_);
    event RoleRevoked(Role indexed role_, address indexed addr_);
    event ActionExecuted(Actions indexed action_, address indexed target_);

    // ######################## ~ BODY ~ ########################

    constructor() {
        executor = msg.sender;
        admin = msg.sender;
    }

    // ######################## ~ MODIFIERS ~ ########################

    // Role reserved for governor or any executing address
    modifier onlyExecutor() {
        if (msg.sender != executor) revert Kernel_OnlyExecutor(msg.sender);
        _;
    }

    // Role for managing policy roles
    modifier onlyAdmin() {
        if (msg.sender != admin) revert Kernel_OnlyAdmin(msg.sender);
        _;
    }

    // ######################## ~ KERNEL INTERFACE ~ ########################

    function executeAction(Actions action_, address target_) external onlyExecutor {
        if (action_ == Actions.InstallModule) {
            ensureContract(target_);
            ensureValidKeycode(Module(target_).KEYCODE());
            _installModule(Module(target_));
        } else if (action_ == Actions.UpgradeModule) {
            ensureContract(target_);
            ensureValidKeycode(Module(target_).KEYCODE());
            _upgradeModule(Module(target_));
        } else if (action_ == Actions.ActivatePolicy) {
            ensureContract(target_);
            _activatePolicy(Policy(target_));
        } else if (action_ == Actions.DeactivatePolicy) {
            ensureContract(target_);
            _deactivatePolicy(Policy(target_));
        } else if (action_ == Actions.MigrateKernel) {
            ensureContract(target_);
            _migrateKernel(Kernel(target_));
        } else if (action_ == Actions.ChangeExecutor) {
            executor = target_;
        } else if (action_ == Actions.ChangeAdmin) {
            admin = target_;
        }

        emit ActionExecuted(action_, target_);
    }

    // ######################## ~ KERNEL INTERNAL ~ ########################

    function _installModule(Module newModule_) internal {
        Keycode keycode = newModule_.KEYCODE();

        if (address(getModuleForKeycode[keycode]) != address(0))
            revert Kernel_ModuleAlreadyInstalled(keycode);

        getModuleForKeycode[keycode] = newModule_;
        getKeycodeForModule[newModule_] = keycode;
        allKeycodes.push(keycode);

        newModule_.INIT();
    }

    function _upgradeModule(Module newModule_) internal {
        Keycode keycode = newModule_.KEYCODE();
        Module oldModule = getModuleForKeycode[keycode];

        if (address(oldModule) == address(0) || oldModule == newModule_)
            revert Kernel_InvalidModuleUpgrade(keycode);

        getKeycodeForModule[oldModule] = Keycode.wrap(bytes5(0));
        getKeycodeForModule[newModule_] = keycode;
        getModuleForKeycode[keycode] = newModule_;

        newModule_.INIT();

        _reconfigurePolicies(keycode);
    }

    function _activatePolicy(Policy policy_) internal {
        if (policy_.isActive()) revert Kernel_PolicyAlreadyApproved(address(policy_));

        // Grant permissions for policy to access restricted module functions
        Permissions[] memory requests = policy_.requestPermissions();
        _setPolicyPermissions(policy_, requests, true);

        // Add policy to list of active policies
        activePolicies.push(policy_);
        getPolicyIndex[policy_] = activePolicies.length - 1;

        // Record module dependencies
        Keycode[] memory dependencies = policy_.configureDependencies();
        uint256 depLength = dependencies.length;

        for (uint256 i; i < depLength; ) {
            Keycode keycode = dependencies[i];

            moduleDependents[keycode].push(policy_);
            getDependentIndex[keycode][policy_] = moduleDependents[keycode].length - 1;

            unchecked {
                ++i;
            }
        }

        // Set policy status to active
        policy_.setActiveStatus(true);
    }

    function _deactivatePolicy(Policy policy_) internal {
        if (!policy_.isActive()) revert Kernel_PolicyNotApproved(address(policy_));

        // Revoke permissions
        Permissions[] memory requests = policy_.requestPermissions();
        _setPolicyPermissions(policy_, requests, false);

        // Remove policy from all policy data structures
        uint256 idx = getPolicyIndex[policy_];
        Policy lastPolicy = activePolicies[activePolicies.length - 1];

        activePolicies[idx] = lastPolicy;
        activePolicies.pop();
        getPolicyIndex[lastPolicy] = idx;
        delete getPolicyIndex[policy_];

        // Remove policy from module dependents
        _pruneFromDependents(policy_);

        // Set policy status to inactive
        policy_.setActiveStatus(false);
    }

    // WARNING: ACTION WILL BRICK THIS KERNEL. All functionality will move to the new kernel
    // New kernel must add in all of the modules and policies via executeAction
    // NOTE: Data does not get cleared from this kernel
    function _migrateKernel(Kernel newKernel_) internal {
        uint256 keycodeLen = allKeycodes.length;
        for (uint256 i; i < keycodeLen; ) {
            Module module = Module(getModuleForKeycode[allKeycodes[i]]);
            module.changeKernel(newKernel_);
            unchecked {
                ++i;
            }
        }

        uint256 policiesLen = activePolicies.length;
        for (uint256 j; j < policiesLen; ) {
            Policy policy = activePolicies[j];

            // Deactivate before changing kernel
            policy.setActiveStatus(false);
            policy.changeKernel(newKernel_);
            unchecked {
                ++j;
            }
        }
    }

    function _reconfigurePolicies(Keycode keycode_) internal {
        Policy[] memory dependents = moduleDependents[keycode_];
        uint256 depLength = dependents.length;

        for (uint256 i; i < depLength; ) {
            dependents[i].configureDependencies();

            unchecked {
                ++i;
            }
        }
    }

    function _setPolicyPermissions(
        Policy policy_,
        Permissions[] memory requests_,
        bool grant_
    ) internal {
        uint256 reqLength = requests_.length;
        for (uint256 i = 0; i < reqLength; ) {
            Permissions memory request = requests_[i];
            modulePermissions[request.keycode][policy_][request.funcSelector] = grant_;

            emit PermissionsUpdated(request.keycode, policy_, request.funcSelector, grant_);

            unchecked {
                ++i;
            }
        }
    }

    function _pruneFromDependents(Policy policy_) internal {
        Keycode[] memory dependencies = policy_.configureDependencies();
        uint256 depcLength = dependencies.length;

        for (uint256 i; i < depcLength; ) {
            Keycode keycode = dependencies[i];
            Policy[] storage dependents = moduleDependents[keycode];

            uint256 origIndex = getDependentIndex[keycode][policy_];
            Policy lastPolicy = dependents[dependents.length - 1];

            // Swap with last and pop
            dependents[origIndex] = lastPolicy;
            dependents.pop();

            // Record new index and delete terminated policy index
            getDependentIndex[keycode][lastPolicy] = origIndex;
            delete getDependentIndex[keycode][policy_];

            unchecked {
                ++i;
            }
        }
    }

    function grantRole(Role role_, address addr_) public onlyAdmin {
        if (hasRole[addr_][role_]) revert Kernel_AddressAlreadyHasRole(addr_, role_);

        ensureValidRole(role_);
        if (!isRole[role_]) isRole[role_] = true;

        hasRole[addr_][role_] = true;

        emit RoleGranted(role_, addr_);
    }

    function revokeRole(Role role_, address addr_) public onlyAdmin {
        if (!isRole[role_]) revert Kernel_RoleDoesNotExist(role_);
        if (!hasRole[addr_][role_]) revert Kernel_AddressDoesNotHaveRole(addr_, role_);

        hasRole[addr_][role_] = false;

        emit RoleRevoked(role_, addr_);
    }
}

error VOTES_TransferDisabled();

contract DefaultVotes is Module, ERC20 {
    constructor(Kernel kernel_) Module(kernel_) ERC20("Voting Tokens", "VOTES", 3) {}

    function KEYCODE() public pure override returns (Keycode) {
        return Keycode.wrap("VOTES");
    }

    // Policy Interface

    function mintTo(address wallet_, uint256 amount_) external permissioned {
        _mint(wallet_, amount_);
    }

    function burnFrom(address wallet_, uint256 amount_) external permissioned {
        _burn(wallet_, amount_);
    }

    function transfer(address, uint256) public override returns (bool) {
        revert VOTES_TransferDisabled();
        return true;
    }

    function transferFrom(
        address from_,
        address to_,
        uint256 amount_
    ) public override permissioned returns (bool) {
        // skip the approve function because callers must be pre-approved via governance

        balanceOf[from_] -= amount_;
        unchecked {
            balanceOf[to_] += amount_;
        }

        emit Transfer(from_, to_, amount_);
        return true;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract Kernel","name":"kernel_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"caller_","type":"address"}],"name":"KernelAdapter_OnlyKernel","type":"error"},{"inputs":[{"internalType":"address","name":"policy_","type":"address"}],"name":"Module_PolicyNotAuthorized","type":"error"},{"inputs":[],"name":"VOTES_TransferDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes4","name":"funcSelector_","type":"bytes4"},{"indexed":false,"internalType":"address","name":"policy_","type":"address"},{"indexed":false,"internalType":"bool","name":"permission_","type":"bool"}],"name":"PermissionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INIT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"KEYCODE","outputs":[{"internalType":"Keycode","name":"","type":"bytes5"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"major","type":"uint8"},{"internalType":"uint8","name":"minor","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract Kernel","name":"newKernel_","type":"address"}],"name":"changeKernel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kernel","outputs":[{"internalType":"contract Kernel","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b50604051620016b4380380620016b483398101604081905262000034916200016f565b604080518082018252600d81526c566f74696e6720546f6b656e7360981b60208083019190915282518084019093526005835264564f54455360d81b90830152600080546001600160a01b0319166001600160a01b0385161790559060036001620000a0848262000246565b506002620000af838262000246565b5060ff81166080524660a052620000c5620000d3565b60c052506200039092505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f600160405162000107919062000312565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6000602082840312156200018257600080fd5b81516001600160a01b03811681146200019a57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001cc57607f821691505b602082108103620001ed57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200024157600081815260208120601f850160051c810160208610156200021c5750805b601f850160051c820191505b818110156200023d5782815560010162000228565b5050505b505050565b81516001600160401b03811115620002625762000262620001a1565b6200027a81620002738454620001b7565b84620001f3565b602080601f831160018114620002b25760008415620002995750858301515b600019600386901b1c1916600185901b1785556200023d565b600085815260208120601f198616915b82811015620002e357888601518255948401946001909101908401620002c2565b5085821015620003025787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008083546200032281620001b7565b600182811680156200033d5760018114620003535762000384565b60ff198416875282151583028701945062000384565b8760005260208060002060005b858110156200037b5781548a82015290840190820162000360565b50505082870194505b50929695505050505050565b60805160a05160c0516112f4620003c060003960006106bf0152600061068a0152600061023601526112f46000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c806370a08231116100cd578063d4aae0c411610081578063dd62ed3e11610066578063dd62ed3e14610360578063ea6439141461038b578063ffa1ad741461039357600080fd5b8063d4aae0c414610308578063d505accf1461034d57600080fd5b80637ecebe00116100b25780637ecebe00146102cd57806395d89b41146102ed578063a9059cbb146102f557600080fd5b806370a082311461029a57806379cc6790146102ba57600080fd5b806330adf81f116101245780633644e515116101095780633644e5151461026a578063449a52f8146102725780634657b36c1461028757600080fd5b806330adf81f1461020a578063313ce5671461023157600080fd5b806318160ddd1161015557806318160ddd146101b25780631ae7ec2e146101c957806323b872dd146101f757600080fd5b806306fdde0314610171578063095ea7b31461018f575b600080fd5b6101796103a7565b6040516101869190610f3c565b60405180910390f35b6101a261019d366004610fd4565b610435565b6040519015158152602001610186565b6101bb60035481565b604051908152602001610186565b6040517f564f5445530000000000000000000000000000000000000000000000000000008152602001610186565b6101a2610205366004611000565b6104ae565b6101bb7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6102587f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610186565b6101bb610686565b610285610280366004610fd4565b6106e1565b005b610285610295366004611041565b610812565b6101bb6102a8366004611041565b60046020526000908152604090205481565b6102856102c8366004610fd4565b6108ac565b6101bb6102db366004611041565b60066020526000908152604090205481565b6101796109d9565b6101a2610303366004610fd4565b6109e6565b6000546103289073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610186565b61028561035b366004611065565b610a1a565b6101bb61036e3660046110dc565b600560209081526000928352604080842090915290825290205481565b610285610d46565b604080516000808252602082015201610186565b600180546103b490611115565b80601f01602080910402602001604051908101604052809291908181526020018280546103e090611115565b801561042d5780601f106104025761010080835404028352916020019161042d565b820191906000526020600020905b81548152906001019060200180831161041057829003601f168201915b505050505081565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061049d9086815260200190565b60405180910390a350600192915050565b6000805473ffffffffffffffffffffffffffffffffffffffff1663f166d9eb7f564f5445530000000000000000000000000000000000000000000000000000006040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b811682527fffffffffff0000000000000000000000000000000000000000000000000000009290921660048201523360248201526000359091166044820152606401602060405180830381865afa158015610576573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059a9190611168565b6105d7576040517f02ad7db00000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152600460205260408120805484929061060c9084906111b9565b909155505073ffffffffffffffffffffffffffffffffffffffff808416600081815260046020526040908190208054860190555190918616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906106749086815260200190565b60405180910390a35060019392505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146106bc576106b7610d9b565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b60005473ffffffffffffffffffffffffffffffffffffffff1663f166d9eb7f564f5445530000000000000000000000000000000000000000000000000000006040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b811682527fffffffffff0000000000000000000000000000000000000000000000000000009290921660048201523360248201526000359091166044820152606401602060405180830381865afa1580156107a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cc9190611168565b610804576040517f02ad7db00000000000000000000000000000000000000000000000000000000081523360048201526024016105ce565b61080e8282610e35565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610865576040517f14fa403c0000000000000000000000000000000000000000000000000000000081523360048201526024016105ce565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1663f166d9eb7f564f5445530000000000000000000000000000000000000000000000000000006040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b811682527fffffffffff0000000000000000000000000000000000000000000000000000009290921660048201523360248201526000359091166044820152606401602060405180830381865afa158015610973573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109979190611168565b6109cf576040517f02ad7db00000000000000000000000000000000000000000000000000000000081523360048201526024016105ce565b61080e8282610eae565b600280546103b490611115565b60006040517fe4f21d4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42841015610a84576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016105ce565b6000610a8e610686565b73ffffffffffffffffffffffffffffffffffffffff89811660008181526006602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938c166060840152608083018b905260a083019390935260c08083018a90528151808403909101815260e0830190915280519201919091207f190100000000000000000000000000000000000000000000000000000000000061010083015261010282019290925261012281019190915261014201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015610bed573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610c6857508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610cce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016105ce565b73ffffffffffffffffffffffffffffffffffffffff90811660009081526005602090815260408083208b8516808552908352928190208a905551898152919350918a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d99576040517f14fa403c0000000000000000000000000000000000000000000000000000000081523360048201526024016105ce565b565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6001604051610dcd91906111d0565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060036000828254610e4791906112a6565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600460209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081208054839290610ee39084906111b9565b909155505060038054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ea2565b600060208083528351808285015260005b81811015610f6957858101830151858201604001528201610f4d565b81811115610f7b576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610fd157600080fd5b50565b60008060408385031215610fe757600080fd5b8235610ff281610faf565b946020939093013593505050565b60008060006060848603121561101557600080fd5b833561102081610faf565b9250602084013561103081610faf565b929592945050506040919091013590565b60006020828403121561105357600080fd5b813561105e81610faf565b9392505050565b600080600080600080600060e0888a03121561108057600080fd5b873561108b81610faf565b9650602088013561109b81610faf565b95506040880135945060608801359350608088013560ff811681146110bf57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156110ef57600080fd5b82356110fa81610faf565b9150602083013561110a81610faf565b809150509250929050565b600181811c9082168061112957607f821691505b602082108103611162577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60006020828403121561117a57600080fd5b8151801515811461105e57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156111cb576111cb61118a565b500390565b600080835481600182811c9150808316806111ec57607f831692505b60208084108203611224577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015611238576001811461126b57611298565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952841515850289019650611298565b60008a81526020902060005b868110156112905781548b820152908501908301611277565b505084890196505b509498975050505050505050565b600082198211156112b9576112b961118a565b50019056fea26469706673582212208469c7d7bfcaad3ac8b8b9a3a54e989d24728a8c06c6ae8b051f0909f5d6340464736f6c634300080f0033000000000000000000000000a2d346fe55133884bc6f58093ae5ab6b94df608a

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a2d346fe55133884bc6f58093ae5ab6b94df608a

-----Decoded View---------------
Arg [0] : kernel_ (address): 0xa2d346fe55133884bc6f58093ae5ab6b94df608a

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a2d346fe55133884bc6f58093ae5ab6b94df608a


Deployed ByteCode Sourcemap

21831:1095:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1149:18;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2785:217;;;;;;:::i;:::-;;:::i;:::-;;;1319:14:1;;1312:22;1294:41;;1282:2;1267:18;2785:217:0;1154:187:1;1433:26:0;;;;;;;;;1492:25:1;;;1480:2;1465:18;1433:26:0;1346:177:1;21966:105:0;;;22042:21;1700:98:1;;1688:2;1673:18;21966:105:0;1528:276:1;22499:424:0;;;;;;:::i;:::-;;:::i;1784:146::-;;1835:95;1784:146;;1205:31;;;;;;;;2624:4:1;2612:17;;;2594:36;;2582:2;2567:18;1205:31:0;2452:184:1;5243:179:0;;;:::i;22106:114::-;;;;;;:::i;:::-;;:::i;:::-;;9755:99;;;;;;:::i;:::-;;:::i;1468:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;22228:116;;;;;;:::i;:::-;;:::i;2051:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;1176:20;;;:::i;22352:139::-;;;;;;:::i;:::-;;:::i;9516:20::-;;;;;;;;;;;;3351:42:1;3339:55;;;3321:74;;3309:2;3294:18;9516:20:0;3160:241:1;4212:1023:0;;;;;;:::i;:::-;;:::i;1521:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;10837:46;;;:::i;10520:78::-;;;;10570:11;4799:36:1;;;4866:2;4851:18;;4844:45;4772:18;10520:78:0;4633:262:1;1149:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2785:217::-;2886:10;2859:4;2876:21;;;:9;:21;;;;;;;;;:30;;;;;;;;;;:39;;;2933:37;2859:4;;2876:30;;2933:37;;;;2909:6;1492:25:1;;1480:2;1465:18;;1346:177;2933:37:0;;;;;;;;-1:-1:-1;2990:4:0;2785:217;;;;:::o;22499:424::-;22638:4;10096:6;;;;:24;22042:21;10096:64;;10152:7;10096:64;;;;;;;;5612:66:1;5600:79;;;;10096:64:0;;;5582:98:1;10139:10:0;5696:18:1;;;5689:83;-1:-1:-1;10152:7:0;;;;5788:18:1;;;5781:107;5555:18;;10096:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10091:129;;10182:38;;;;;10209:10;10182:38;;;3321:74:1;3294:18;;10182:38:0;;;;;;;;10091:129;22747:16:::1;::::0;::::1;;::::0;;;:9:::1;:16;::::0;;;;:27;;22767:7;;22747:16;:27:::1;::::0;22767:7;;22747:27:::1;:::i;:::-;::::0;;;-1:-1:-1;;22810:14:0::1;::::0;;::::1;;::::0;;;:9:::1;:14;::::0;;;;;;:25;;;::::1;::::0;;22864:29;22810:14;;22864:29;::::1;::::0;::::1;::::0;::::1;::::0;22828:7;1492:25:1;;1480:2;1465:18;;1346:177;22864:29:0::1;;;;;;;;-1:-1:-1::0;22911:4:0::1;22499:424:::0;;;;;:::o;5243:179::-;5300:7;5344:16;5327:13;:33;:87;;5390:24;:22;:24::i;:::-;5320:94;;5243:179;:::o;5327:87::-;-1:-1:-1;5363:24:0;;5243:179::o;22106:114::-;10096:6;;;;:24;22042:21;10096:64;;10152:7;10096:64;;;;;;;;5612:66:1;5600:79;;;;10096:64:0;;;5582:98:1;10139:10:0;5696:18:1;;;5689:83;-1:-1:-1;10152:7:0;;;;5788:18:1;;;5781:107;5555:18;;10096:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10091:129;;10182:38;;;;;10209:10;10182:38;;;3321:74:1;3294:18;;10182:38:0;3160:241:1;10091:129:0;22189:23:::1;22195:7;22204;22189:5;:23::i;:::-;22106:114:::0;;:::o;9755:99::-;9675:6;;;;9653:10;:29;9649:78;;9691:36;;;;;9716:10;9691:36;;;3321:74:1;3294:18;;9691:36:0;3160:241:1;9649:78:0;9827:6:::1;:19:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;9755:99::o;22228:116::-;10096:6;;;;:24;22042:21;10096:64;;10152:7;10096:64;;;;;;;;5612:66:1;5600:79;;;;10096:64:0;;;5582:98:1;10139:10:0;5696:18:1;;;5689:83;-1:-1:-1;10152:7:0;;;;5788:18:1;;;5781:107;5555:18;;10096:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10091:129;;10182:38;;;;;10209:10;10182:38;;;3321:74:1;3294:18;;10182:38:0;3160:241:1;10091:129:0;22313:23:::1;22319:7;22328;22313:5;:23::i;1176:20::-:0;;;;;;;:::i;22352:139::-;22413:4;22437:24;;;;;;;;;;;;;;4212:1023;4440:15;4428:8;:27;;4420:63;;;;;;;6933:2:1;4420:63:0;;;6915:21:1;6972:2;6952:18;;;6945:30;7011:25;6991:18;;;6984:53;7054:18;;4420:63:0;6731:347:1;4420:63:0;4653:14;4770:18;:16;:18::i;:::-;4872:13;;;;;;;;:6;:13;;;;;;;;;:15;;;;;;;;4821:77;;1835:95;4821:77;;;7370:25:1;7472:18;;;7465:43;;;;7544:15;;;7524:18;;;7517:43;7576:18;;;7569:34;;;7619:19;;;7612:35;;;;7663:19;;;;7656:35;;;4821:77:0;;;;;;;;;;7342:19:1;;;4821:77:0;;;4811:88;;;;;;;;7972:66:1;4698:220:0;;;7960:79:1;8055:11;;;8048:27;;;;8091:12;;;8084:28;;;;8128:12;;4698:220:0;;;;;;;;;;;;;4670:263;;4698:220;4670:263;;;;4950:24;4977:26;;;;;;;;;8378:25:1;;;8451:4;8439:17;;8419:18;;;8412:45;;;;8473:18;;;8466:34;;;8516:18;;;8509:34;;;4670:263:0;;-1:-1:-1;4950:24:0;4977:26;;8350:19:1;;4977:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4977:26:0;;;;;;-1:-1:-1;;5028:30:0;;;;;;;:59;;;5082:5;5062:25;;:16;:25;;;5028:59;5020:86;;;;;;;8756:2:1;5020:86:0;;;8738:21:1;8795:2;8775:18;;;8768:30;8834:16;8814:18;;;8807:44;8868:18;;5020:86:0;8554:338:1;5020:86:0;5123:27;;;;;;;;:9;:27;;;;;;;;:36;;;;;;;;;;;;;:44;;;5196:31;1492:25:1;;;5123:36:0;;-1:-1:-1;5196:31:0;;;;;;1465:18:1;5196:31:0;;;;;;;4212:1023;;;;;;;:::o;10837:46::-;9675:6;;;;9653:10;:29;9649:78;;9691:36;;;;;9716:10;9691:36;;;3321:74:1;3294:18;;9691:36:0;3160:241:1;9649:78:0;10837:46::o;5430:457::-;5495:7;5596:95;5730:4;5714:22;;;;;;:::i;:::-;;;;;;;;;;5563:301;;;10538:25:1;;;;10579:18;;10572:34;;;;5759:14:0;10622:18:1;;;10615:34;5796:13:0;10665:18:1;;;10658:34;5840:4:0;10708:19:1;;;10701:84;10510:19;;5563:301:0;;;;;;;;;;;;5535:344;;;;;;5515:364;;5430:457;:::o;6087:335::-;6173:6;6158:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;6330:13:0;;;;;;;:9;:13;;;;;;;;:23;;;;;;6382:32;1492:25:1;;;6382:32:0;;1465:18:1;6382:32:0;;;;;;;;6087:335;;:::o;6430:338::-;6503:15;;;;;;;:9;:15;;;;;:25;;6522:6;;6503:15;:25;;6522:6;;6503:25;:::i;:::-;;;;-1:-1:-1;;6676:11:0;:21;;;;;;;6726:34;;1492:25:1;;;-1:-1:-1;;6726:34:0;;;;;;1480:2:1;1465:18;6726:34:0;1346:177:1;14:656;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;452:6;449:1;446:13;443:91;;;522:1;517:2;508:6;497:9;493:22;489:31;482:42;443:91;-1:-1:-1;586:2:1;574:15;591:66;570:88;555:104;;;;661:2;551:113;;14:656;-1:-1:-1;;;14:656:1:o;675:154::-;761:42;754:5;750:54;743:5;740:65;730:93;;819:1;816;809:12;730:93;675:154;:::o;834:315::-;902:6;910;963:2;951:9;942:7;938:23;934:32;931:52;;;979:1;976;969:12;931:52;1018:9;1005:23;1037:31;1062:5;1037:31;:::i;:::-;1087:5;1139:2;1124:18;;;;1111:32;;-1:-1:-1;;;834:315:1:o;1809:456::-;1886:6;1894;1902;1955:2;1943:9;1934:7;1930:23;1926:32;1923:52;;;1971:1;1968;1961:12;1923:52;2010:9;1997:23;2029:31;2054:5;2029:31;:::i;:::-;2079:5;-1:-1:-1;2136:2:1;2121:18;;2108:32;2149:33;2108:32;2149:33;:::i;:::-;1809:456;;2201:7;;-1:-1:-1;;;2255:2:1;2240:18;;;;2227:32;;1809:456::o;2641:262::-;2715:6;2768:2;2756:9;2747:7;2743:23;2739:32;2736:52;;;2784:1;2781;2774:12;2736:52;2823:9;2810:23;2842:31;2867:5;2842:31;:::i;:::-;2892:5;2641:262;-1:-1:-1;;;2641:262:1:o;3406:829::-;3517:6;3525;3533;3541;3549;3557;3565;3618:3;3606:9;3597:7;3593:23;3589:33;3586:53;;;3635:1;3632;3625:12;3586:53;3674:9;3661:23;3693:31;3718:5;3693:31;:::i;:::-;3743:5;-1:-1:-1;3800:2:1;3785:18;;3772:32;3813:33;3772:32;3813:33;:::i;:::-;3865:7;-1:-1:-1;3919:2:1;3904:18;;3891:32;;-1:-1:-1;3970:2:1;3955:18;;3942:32;;-1:-1:-1;4026:3:1;4011:19;;3998:33;4075:4;4062:18;;4050:31;;4040:59;;4095:1;4092;4085:12;4040:59;3406:829;;;;-1:-1:-1;3406:829:1;;;;4118:7;4172:3;4157:19;;4144:33;;-1:-1:-1;4224:3:1;4209:19;;;4196:33;;3406:829;-1:-1:-1;;3406:829:1:o;4240:388::-;4308:6;4316;4369:2;4357:9;4348:7;4344:23;4340:32;4337:52;;;4385:1;4382;4375:12;4337:52;4424:9;4411:23;4443:31;4468:5;4443:31;:::i;:::-;4493:5;-1:-1:-1;4550:2:1;4535:18;;4522:32;4563:33;4522:32;4563:33;:::i;:::-;4615:7;4605:17;;;4240:388;;;;;:::o;4900:437::-;4979:1;4975:12;;;;5022;;;5043:61;;5097:4;5089:6;5085:17;5075:27;;5043:61;5150:2;5142:6;5139:14;5119:18;5116:38;5113:218;;5187:77;5184:1;5177:88;5288:4;5285:1;5278:15;5316:4;5313:1;5306:15;5113:218;;4900:437;;;:::o;5899:277::-;5966:6;6019:2;6007:9;5998:7;5994:23;5990:32;5987:52;;;6035:1;6032;6025:12;5987:52;6067:9;6061:16;6120:5;6113:13;6106:21;6099:5;6096:32;6086:60;;6142:1;6139;6132:12;6412:184;6464:77;6461:1;6454:88;6561:4;6558:1;6551:15;6585:4;6582:1;6575:15;6601:125;6641:4;6669:1;6666;6663:8;6660:34;;;6674:18;;:::i;:::-;-1:-1:-1;6711:9:1;;6601:125::o;9026:1248::-;9156:3;9185:1;9218:6;9212:13;9248:3;9270:1;9298:9;9294:2;9290:18;9280:28;;9358:2;9347:9;9343:18;9380;9370:61;;9424:4;9416:6;9412:17;9402:27;;9370:61;9450:2;9498;9490:6;9487:14;9467:18;9464:38;9461:222;;9537:77;9532:3;9525:90;9638:4;9635:1;9628:15;9668:4;9663:3;9656:17;9461:222;9699:18;9726:191;;;;9931:1;9926:323;;;;9692:557;;9726:191;9774:66;9763:9;9759:82;9754:3;9747:95;9897:6;9890:14;9883:22;9875:6;9871:35;9866:3;9862:45;9855:52;;9726:191;;9926:323;8973:1;8966:14;;;9010:4;8997:18;;10024:1;10038:165;10052:6;10049:1;10046:13;10038:165;;;10130:14;;10117:11;;;10110:35;10173:16;;;;10067:10;;10038:165;;;10042:3;;10232:6;10227:3;10223:16;10216:23;;9692:557;-1:-1:-1;10265:3:1;;9026:1248;-1:-1:-1;;;;;;;;9026:1248:1:o;10796:128::-;10836:3;10867:1;10863:6;10860:1;10857:13;10854:39;;;10873:18;;:::i;:::-;-1:-1:-1;10909:9:1;;10796:128::o

Metadata Hash

8469c7d7bfcaad3ac8b8b9a3a54e989d24728a8c06c6ae8b051f0909f5d63404
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.