Contract 0x0F548d7AD1A0CB30D1872b8C18894484d76e1569

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xad0765a6f1663787cdb0e5f0ab2bde4443aa5c13b5c2e12dcfac191bada7f9f0Add170896632023-01-07 18:32:4625 days 3 hrs ago0x5a6eade27773eab2e4038ec7cf388781eca02f63 IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000834097
0xce26c99b5813df8ed69d2f7c39fe071b9e554399474d03e0749816fce1e11a19Remove170895902023-01-07 18:26:4125 days 3 hrs ago0x5a6eade27773eab2e4038ec7cf388781eca02f63 IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.000030965
0x9b21c0f1886448914b5167dcf760c013bc2fe13188744bd6a7dd32edda624c01Add170816412023-01-07 7:24:1625 days 14 hrs ago0x5a6eade27773eab2e4038ec7cf388781eca02f63 IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000833965
0xadd101c0dd1fd201847e2d9180a872d2e8b5affdbb58ececff6c02c076e9fbd0Add170813582023-01-07 7:00:4125 days 14 hrs ago0x5a6eade27773eab2e4038ec7cf388781eca02f63 IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000834097
0x846675993f0eefd196d7bf3cf91bcce072012f24b6f5ffc59e82218f614452aaAdd Many168149892022-12-22 21:03:0941 days 39 mins ago0x5a6eade27773eab2e4038ec7cf388781eca02f63 IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0003791722
0xd08d551b91c35ebe707d29a162e5da3a4c23c8632724256f8ee37bec7a21c6b2Transfer Ownersh...168118142022-12-22 16:38:3441 days 5 hrs ago0xade38bd2e8d5a52e60047affe6e595bb5e61923a IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000295889
0xc81dd7f3a1414f74b6070c0c749ade518c1bd1997afbf0d8ef717f29270d7fbcAdd165895372022-12-09 19:55:1754 days 1 hr ago0xade38bd2e8d5a52e60047affe6e595bb5e61923a IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000834097
0x0ca6c100e064c7b3ce97bb686c762f50ccc5d1fad9bd2ae5a32725a2a98c81c9Add142387102022-07-26 18:49:23190 days 2 hrs ago0xade38bd2e8d5a52e60047affe6e595bb5e61923a IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000379135
0x15e5ad25128c7858b16e15af0f869441d106815cdd5d22ac37ad74e381993317Add Many142203662022-07-25 17:20:40191 days 4 hrs ago0xade38bd2e8d5a52e60047affe6e595bb5e61923a IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0001054165
0xac4e808abd0d34c461f1957c04b982efa821fd8eccb9034b2f38f512097acdd3Add141505592022-07-21 16:23:23195 days 5 hrs ago0xade38bd2e8d5a52e60047affe6e595bb5e61923a IN  0x0f548d7ad1a0cb30d1872b8c18894484d76e15690 CELO0.0000537135
0x202e1ff1df826f98a86b6a99beb36dee59c3ca13c7c75acd84c23bf1a57a990a0x60806040140325482022-07-13 19:54:44203 days 1 hr ago0xade38bd2e8d5a52e60047affe6e595bb5e61923a IN  Create: HypeRegistry0 CELO0.000259164
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HypeRegistry

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Registry.sol
/**
 *Submitted for verification at Etherscan.io on 2021-11-21
*/

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.0 <0.8.0;

contract HypeRegistry {
    
    address public owner;
    address[] public registry;
    mapping(address=>uint256) public registryMap;
    int256 public counter;
    
    event HypeAdded(address hype, uint256 index);
    event HypeRemoved(address hype, uint256 index);
    
    constructor() {
        owner = msg.sender;    
    }
    
    function add(address hype) external {
        require(msg.sender == owner,"only owner");
        require(registryMap[hype]==0, "exists");
        registry.push(hype);
        registryMap[hype] = registry.length;
        counter++;
        emit HypeAdded(hype, registry.length-1);
    }
    
    function addMany(address[] memory hypes) external {
        require(msg.sender == owner,"only owner");
        for(uint256 i=0; i<hypes.length; i++) {
            if(registryMap[hypes[i]]!=0) continue;
            registry.push(hypes[i]);
            registryMap[hypes[i]] = registry.length;
            counter++;
            emit HypeAdded(hypes[i], registry.length-1);
        }
    }

    function remove(address hype) external {
        require(msg.sender == owner,"only owner");
        require(registryMap[hype]!=0, "not exists");
        emit HypeRemoved(hype, registryMap[hype]-1);
        registryMap[hype] = 0;
        counter--;
    }
    
    function hypeByIndex(uint256 index) external view returns (address, uint256){
        return (registry[index], registryMap[registry[index]]);
    }
    
    function transferOwnership(address newOwner) external {
        require(msg.sender == owner, "only owner");
        owner = newOwner;
    }

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"hype","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"HypeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"hype","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"HypeRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"hype","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"hypes","type":"address[]"}],"name":"addMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"hypeByIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"registry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"registryMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"hype","type":"address"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b0319163317905561080b806100326000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c80638da5cb5b11610076578063b37d97b51161005b578063b37d97b514610191578063f1b4063714610234578063f2fde38b1461025a576100a3565b80638da5cb5b14610149578063ab0cd78a14610151576100a3565b80630a3b0a4f146100a857806329092d0e146100d05780635893253c146100f657806361bc221a1461012f575b600080fd5b6100ce600480360360208110156100be57600080fd5b50356001600160a01b0316610280565b005b6100ce600480360360208110156100e657600080fd5b50356001600160a01b03166103ee565b6101136004803603602081101561010c57600080fd5b503561051e565b604080516001600160a01b039092168252519081900360200190f35b610137610548565b60408051918252519081900360200190f35b61011361054e565b61016e6004803603602081101561016757600080fd5b503561055d565b604080516001600160a01b03909316835260208301919091528051918290030190f35b6100ce600480360360208110156101a757600080fd5b8101906020810181356401000000008111156101c257600080fd5b8201836020820111156101d457600080fd5b803590602001918460208302840111640100000000831117156101f657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506105cb945050505050565b6101376004803603602081101561024a57600080fd5b50356001600160a01b0316610771565b6100ce6004803603602081101561027057600080fd5b50356001600160a01b0316610783565b6000546001600160a01b031633146102cc576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9037bbb732b960b11b604482015290519081900360640190fd5b6001600160a01b03811660009081526002602052604090205415610337576040805162461bcd60e51b815260206004820152600660248201527f6578697374730000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001805480820182557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581546000828152600260209081526040918290208390556003805490950190945580519283526000199091019282019290925281517ffd73610dd51217377ee8fbb2a8afed164757d1aefb01f51caaf9d0b9be54613c929181900390910190a150565b6000546001600160a01b0316331461043a576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9037bbb732b960b11b604482015290519081900360640190fd5b6001600160a01b0381166000908152600260205260409020546104a4576040805162461bcd60e51b815260206004820152600a60248201527f6e6f742065786973747300000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116600081815260026020908152604091829020548251938452600019019083015280517fc12dfa67fe859719af9494510072bf7178d159a6ca10a9441c2f4f8f7bbd8a719281900390910190a16001600160a01b031660009081526002602052604081205560038054600019019055565b6001818154811061052e57600080fd5b6000918252602090912001546001600160a01b0316905081565b60035481565b6000546001600160a01b031681565b6000806001838154811061056d57fe5b9060005260206000200160009054906101000a90046001600160a01b0316600260006001868154811061059c57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020549092509050915091565b6000546001600160a01b03163314610617576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9037bbb732b960b11b604482015290519081900360640190fd5b60005b815181101561076d576002600083838151811061063357fe5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205460001461066857610765565b600182828151811061067657fe5b602090810291909101810151825460018082018555600094855292842001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117905554835190916002918590859081106106d257fe5b6020908102919091018101516001600160a01b031682528101919091526040016000205560038054600101905581517ffd73610dd51217377ee8fbb2a8afed164757d1aefb01f51caaf9d0b9be54613c9083908390811061072f57fe5b6020026020010151600180805490500360405180836001600160a01b031681526020018281526020019250505060405180910390a15b60010161061a565b5050565b60026020526000908152604090205481565b6000546001600160a01b031633146107cf576040805162461bcd60e51b815260206004820152600a60248201526937b7363c9037bbb732b960b11b604482015290519081900360640190fd5b6000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905556fea164736f6c6343000706000a

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.