Contract 0x7e31b336f9e8ba52ba3c4ac861b033ba90900bb3 7

 
Txn Hash Method
Block
From
To
Value
0xf3683f412d428a285a83edc685838f1a53a933bf94333c8c78493b276f7bc508Transfer Ownersh...45595972023-09-28 13:42:2162 days 13 hrs ago0x5ac840fb4738c36467ac673e87aafa26c9397dcd IN  0x7e31b336f9e8ba52ba3c4ac861b033ba90900bb30 ETH0.0000197985570.003244761
0x0668cf92bec76c5c182205946c94f925b6f91c63660ec5868ba6a49aadf74724Add Augustus45595472023-09-28 13:40:4162 days 13 hrs ago0x5ac840fb4738c36467ac673e87aafa26c9397dcd IN  0x7e31b336f9e8ba52ba3c4ac861b033ba90900bb30 ETH0.0000251884870.004042349
0x460c973dddbbd3ee1a78e910447142cc87a9ca0886cb875634faf579b1e074490x6080604045593762023-09-28 13:34:5962 days 14 hrs ago0x5ac840fb4738c36467ac673e87aafa26c9397dcd IN  Create: AugustusRegistry0 ETH0.0006450071490.113305745
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AugustusRegistry

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 2 of 4 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 3 of 4 : AugustusRegistry.sol
// SPDX-License-Identifier: ISC

pragma solidity 0.7.5;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./IAugustusRegistry.sol";

contract AugustusRegistry is IAugustusRegistry, Ownable {
    mapping(bytes32 => address) private versionVsAugustus;

    mapping(address => bool) private augustusVsValid;

    //mapping of banned Augustus
    mapping(address => bool) private banned;

    string private latestVersion;

    uint256 private count;

    event AugustusAdded(string version, address indexed augustus, bool isLatest);
    event AugustusBanned(address indexed augustus);

    function addAugustus(
        string calldata version,
        address augustus,
        bool isLatest
    ) external override onlyOwner {
        bytes32 keccakedVersion = keccak256(abi.encodePacked(version));
        require(augustus != address(0), "Invalid augustus address");
        require(versionVsAugustus[keccakedVersion] == address(0), "Version already exists");
        require(!augustusVsValid[augustus], "Augustus already exists");

        versionVsAugustus[keccakedVersion] = augustus;
        augustusVsValid[augustus] = true;
        count = count + 1;

        if (isLatest) {
            latestVersion = version;
        }

        emit AugustusAdded(version, augustus, isLatest);
    }

    function banAugustus(address augustus) external override onlyOwner {
        banned[augustus] = true;
        emit AugustusBanned(augustus);
    }

    function isValidAugustus(address augustus) external view override returns (bool) {
        if (augustusVsValid[augustus] && !banned[augustus]) {
            return true;
        } else {
            return false;
        }
    }

    function getAugustusCount() external view override returns (uint256) {
        return count;
    }

    function getLatestVersion() external view override returns (string memory) {
        return latestVersion;
    }

    function getLatestAugustus() external view override returns (address) {
        return versionVsAugustus[keccak256(abi.encodePacked(latestVersion))];
    }

    function getAugustusByVersion(string calldata version) external view override returns (address) {
        return versionVsAugustus[keccak256(abi.encodePacked(version))];
    }
}

File 4 of 4 : IAugustusRegistry.sol
// SPDX-License-Identifier: ISC

pragma solidity 0.7.5;

interface IAugustusRegistry {
    function addAugustus(
        string calldata version,
        address augustus,
        bool isLatest
    ) external;

    function banAugustus(address augustus) external;

    function isValidAugustus(address augustus) external view returns (bool);

    function getAugustusCount() external view returns (uint256);

    function getLatestVersion() external view returns (string memory);

    function getLatestAugustus() external view returns (address);

    function getAugustusByVersion(string calldata version) external view returns (address);
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"version","type":"string"},{"indexed":true,"internalType":"address","name":"augustus","type":"address"},{"indexed":false,"internalType":"bool","name":"isLatest","type":"bool"}],"name":"AugustusAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"augustus","type":"address"}],"name":"AugustusBanned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"version","type":"string"},{"internalType":"address","name":"augustus","type":"address"},{"internalType":"bool","name":"isLatest","type":"bool"}],"name":"addAugustus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"augustus","type":"address"}],"name":"banAugustus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"version","type":"string"}],"name":"getAugustusByVersion","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAugustusCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestAugustus","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"augustus","type":"address"}],"name":"isValidAugustus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b610e898061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063ae851d8511610076578063e2b401181161005b578063e2b401181461025e578063f2fde38b146102ce578063fb04e17b14610301576100be565b8063ae851d85146101c8578063b552d88e146101d0576100be565b8063715018a6116100a7578063715018a61461015a57806382709a71146101645780638da5cb5b14610197576100be565b80630e6d1de9146100c357806361172b7114610140575b600080fd5b6100cb610348565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101055781810151838201526020016100ed565b50505050905090810190601f1680156101325780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101486103fc565b60408051918252519081900360200190f35b610162610402565b005b6101626004803603602081101561017a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610519565b61019f610638565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61019f610654565b610162600480360360608110156101e657600080fd5b81019060208101813564010000000081111561020157600080fd5b82018360208201111561021357600080fd5b8035906020019184600183028401116401000000008311171561023557600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135151561071d565b61019f6004803603602081101561027457600080fd5b81019060208101813564010000000081111561028f57600080fd5b8201836020820111156102a157600080fd5b803590602001918460018302840111640100000000831117156102c357600080fd5b509092509050610b02565b610162600480360360208110156102e457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b81565b6103346004803603602081101561031757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d22565b604080519115158252519081900360200190f35b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103f25780601f106103c7576101008083540402835291602001916103f2565b820191906000526020600020905b8154815290600101906020018083116103d557829003601f168201915b5050505050905090565b60055490565b61040a610d93565b73ffffffffffffffffffffffffffffffffffffffff16610428610638565b73ffffffffffffffffffffffffffffffffffffffff16146104aa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610521610d93565b73ffffffffffffffffffffffffffffffffffffffff1661053f610638565b73ffffffffffffffffffffffffffffffffffffffff16146105c157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660008181526003602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fed8b9c2c576175f834741400825ca64adc692999942c395114be5bc2453715379190a250565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600060016000600460405160200180828054600181600116156101000203166002900480156106ba5780601f106106985761010080835404028352918201916106ba565b820191906000526020600020905b8154815290600101906020018083116106a6575b5050604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301208552908401949094525050016000205473ffffffffffffffffffffffffffffffffffffffff16905090565b610725610d93565b73ffffffffffffffffffffffffffffffffffffffff16610743610638565b73ffffffffffffffffffffffffffffffffffffffff16146107c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60008484604051602001808383808284378083019250505092505050604051602081830303815290604052805190602001209050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561089557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c696420617567757374757320616464726573730000000000000000604482015290519081900360640190fd5b60008181526001602052604090205473ffffffffffffffffffffffffffffffffffffffff161561092657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f56657273696f6e20616c72656164792065786973747300000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602052604090205460ff16156109bb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f417567757374757320616c726561647920657869737473000000000000000000604482015290519081900360640190fd5b600081815260016020818152604080842080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff89169081179091558452600290915290912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016821790556005805490910190558115610a5c57610a5a60048686610d97565b505b8273ffffffffffffffffffffffffffffffffffffffff167f414535115e1fd5d06a11bee9671826fb290e8497d924d629e7a479b890a97a9a868685604051808060200183151581526020018281038252858582818152602001925080828437600083820152604051601f9091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909201829003965090945050505050a25050505050565b60006001600084846040516020018083838082843760408051919093018181037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0018252835280516020918201208752860196909652939093016000205473ffffffffffffffffffffffffffffffffffffffff16979650505050505050565b610b89610d93565b73ffffffffffffffffffffffffffffffffffffffff16610ba7610638565b73ffffffffffffffffffffffffffffffffffffffff1614610c2957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610e576026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604081205460ff168015610d7d575073ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604090205460ff16155b15610d8a57506001610d8e565b5060005b919050565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282610dcd5760008555610e31565b82601f10610e04578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555610e31565b82800160010185558215610e31579182015b82811115610e31578235825591602001919060010190610e16565b50610e3d929150610e41565b5090565b5b80821115610e3d5760008155600101610e4256fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a164736f6c6343000705000a

Block Transaction Difficulty Gas Used Reward
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.