ETH Price: $2,297.47 (-2.10%)

Contract

0x68ef21a0168bcf753871E9fc26C86Dd482CDd035
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Add161941762022-12-16 2:08:47642 days ago1671156527IN
0x68ef21a0...482CDd035
0 ETH0.0011705512.19332045
Add161910952022-12-15 15:49:35643 days ago1671119375IN
0x68ef21a0...482CDd035
0 ETH0.0016696917.39265976
Add133897042021-10-10 7:55:111074 days ago1633852511IN
0x68ef21a0...482CDd035
0 ETH0.0053848356.09198784
Add119061992021-02-22 10:10:311304 days ago1613988631IN
0x68ef21a0...482CDd035
0 ETH0.01294488180
Add119061932021-02-22 10:09:181304 days ago1613988558IN
0x68ef21a0...482CDd035
0 ETH0.00530694180
Remove119061932021-02-22 10:09:181304 days ago1613988558IN
0x68ef21a0...482CDd035
0 ETH0.00691506180
Add119021522021-02-21 19:17:081304 days ago1613935028IN
0x68ef21a0...482CDd035
0 ETH0.01247014136.28571428
Add119020182021-02-21 18:48:191304 days ago1613933299IN
0x68ef21a0...482CDd035
0 ETH0.01281140
Add117462512021-01-28 19:40:391328 days ago1611862839IN
0x68ef21a0...482CDd035
0 ETH0.007618383.6
Add117462332021-01-28 19:36:081328 days ago1611862568IN
0x68ef21a0...482CDd035
0 ETH0.006625676.23
0x60806040117461932021-01-28 19:27:321328 days ago1611862052IN
 Create: Settings
0 ETH0.0354355976.23

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Settings

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 2: Settings.sol
pragma solidity ^0.6.2;

import './Ownable.sol';

contract Settings is Ownable {

  constructor() public {
  }
  
  
    struct Entry{
        uint index; // index start 1 to keyList.length
        address value;
    }
    
    mapping(bytes32 => Entry) internal map;
    bytes32[] internal keyList;

    function add(bytes32 _key, address _value) onlyOwner public {
        Entry storage entry = map[_key];
        entry.value = _value;
        if(entry.index > 0){ // entry exists
            // do nothing
            return;
        }else { // new entry
            keyList.push(_key);
            uint keyListIndex = keyList.length - 1;
            entry.index = keyListIndex + 1;
        }
    }

    function remove(bytes32 _key) onlyOwner public {
        Entry storage entry = map[_key];
        require(entry.index != 0); // entry not exist
        require(entry.index <= keyList.length); // invalid index value
        
        // Move an last element of array into the vacated key slot.
        uint keyListIndex = entry.index - 1;
        uint keyListLastIndex = keyList.length - 1;
        map[keyList[keyListLastIndex]].index = keyListIndex + 1;
        keyList[keyListIndex] = keyList[keyListLastIndex];
        keyList.pop();
        delete map[_key];
    }
    
    function size() public view returns (uint) {
        return uint(keyList.length);
    }
    
    function contains(bytes32 _key) public view returns (bool) {
        return map[_key].index > 0;
    }
    
    function getByKey(bytes32 _key) public view returns (address) {
        return map[_key].value;
    }
    
    function getByIndex(uint _index) public view returns (address) {
        require(_index >= 0);
        require(_index < keyList.length);
        return map[keyList[_index]].value;
    }

    function getKeys() public view returns ( bytes32[] memory) {
        return keyList;
    }

}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 {
    address private _owner;

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == msg.sender, "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;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"bytes32","name":"_key","type":"bytes32"},{"internalType":"address","name":"_value","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"contains","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getByIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getByKey","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKeys","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"size","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36107068061005f6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a6146101b05780638da5cb5b146101b8578063949d225d146101c057806395bc2673146101da578063f2fde38b146101f75761009e565b80631d1a696d146100a35780632150c518146100d45780632d883a731461012c5780634a91da901461016557806361641bdc14610182575b600080fd5b6100c0600480360360208110156100b957600080fd5b503561021d565b604080519115158252519081900360200190f35b6100dc610231565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610118578181015183820152602001610100565b505050509050019250505060405180910390f35b6101496004803603602081101561014257600080fd5b5035610289565b604080516001600160a01b039092168252519081900360200190f35b6101496004803603602081101561017b57600080fd5b50356102d9565b6101ae6004803603604081101561019857600080fd5b50803590602001356001600160a01b03166102f8565b005b6101ae6103bb565b610149610452565b6101c8610461565b60408051918252519081900360200190f35b6101ae600480360360208110156101f057600080fd5b5035610467565b6101ae6004803603602081101561020d57600080fd5b50356001600160a01b031661059d565b600090815260016020526040902054151590565b6060600280548060200260200160405190810160405280929190818152602001828054801561027f57602002820191906000526020600020905b81548152602001906001019080831161026b575b5050505050905090565b6000600254821061029957600080fd5b60016000600284815481106102aa57fe5b600091825260208083209091015483528201929092526040019020600101546001600160a01b03169050919050565b600090815260016020819052604090912001546001600160a01b031690565b6000546001600160a01b03163314610345576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b600082815260016020819052604090912090810180546001600160a01b0319166001600160a01b03841617905580541561037f57506103b7565b6002805460018101825560008290527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace018490555490555b5050565b6000546001600160a01b03163314610408576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60025490565b6000546001600160a01b031633146104b4576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b600081815260016020526040902080546104cd57600080fd5b600254815411156104dd57600080fd5b805460028054600019808401939082019290916001916000918590811061050057fe5b90600052602060002001548152602001908152602001600020600001819055506002818154811061052d57fe5b90600052602060002001546002838154811061054557fe5b600091825260209091200155600280548061055c57fe5b6000828152602080822083016000199081018390559092019092559481526001948590526040812090815590930180546001600160a01b0319169055505050565b6000546001600160a01b031633146105ea576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b6001600160a01b03811661062f5760405162461bcd60e51b815260040180806020018281038252602681526020018061068b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202e5e48f636dcb2c11fbcf98c26bc7bb1c7b4bea86d7f534057824e8f2e103bfc64736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a6146101b05780638da5cb5b146101b8578063949d225d146101c057806395bc2673146101da578063f2fde38b146101f75761009e565b80631d1a696d146100a35780632150c518146100d45780632d883a731461012c5780634a91da901461016557806361641bdc14610182575b600080fd5b6100c0600480360360208110156100b957600080fd5b503561021d565b604080519115158252519081900360200190f35b6100dc610231565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610118578181015183820152602001610100565b505050509050019250505060405180910390f35b6101496004803603602081101561014257600080fd5b5035610289565b604080516001600160a01b039092168252519081900360200190f35b6101496004803603602081101561017b57600080fd5b50356102d9565b6101ae6004803603604081101561019857600080fd5b50803590602001356001600160a01b03166102f8565b005b6101ae6103bb565b610149610452565b6101c8610461565b60408051918252519081900360200190f35b6101ae600480360360208110156101f057600080fd5b5035610467565b6101ae6004803603602081101561020d57600080fd5b50356001600160a01b031661059d565b600090815260016020526040902054151590565b6060600280548060200260200160405190810160405280929190818152602001828054801561027f57602002820191906000526020600020905b81548152602001906001019080831161026b575b5050505050905090565b6000600254821061029957600080fd5b60016000600284815481106102aa57fe5b600091825260208083209091015483528201929092526040019020600101546001600160a01b03169050919050565b600090815260016020819052604090912001546001600160a01b031690565b6000546001600160a01b03163314610345576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b600082815260016020819052604090912090810180546001600160a01b0319166001600160a01b03841617905580541561037f57506103b7565b6002805460018101825560008290527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace018490555490555b5050565b6000546001600160a01b03163314610408576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60025490565b6000546001600160a01b031633146104b4576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b600081815260016020526040902080546104cd57600080fd5b600254815411156104dd57600080fd5b805460028054600019808401939082019290916001916000918590811061050057fe5b90600052602060002001548152602001908152602001600020600001819055506002818154811061052d57fe5b90600052602060002001546002838154811061054557fe5b600091825260209091200155600280548061055c57fe5b6000828152602080822083016000199081018390559092019092559481526001948590526040812090815590930180546001600160a01b0319169055505050565b6000546001600160a01b031633146105ea576040805162461bcd60e51b815260206004820181905260248201526000805160206106b1833981519152604482015290519081900360640190fd5b6001600160a01b03811661062f5760405162461bcd60e51b815260040180806020018281038252602681526020018061068b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202e5e48f636dcb2c11fbcf98c26bc7bb1c7b4bea86d7f534057824e8f2e103bfc64736f6c634300060c0033

Deployed Bytecode Sourcemap

50:1838:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1381:102;;;;;;;;;;;;;;;;-1:-1:-1;1381:102:1;;:::i;:::-;;;;;;;;;;;;;;;;;;1795:90;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1604:185;;;;;;;;;;;;;;;;-1:-1:-1;1604:185:1;;:::i;:::-;;;;-1:-1:-1;;;;;1604:185:1;;;;;;;;;;;;;;1493:101;;;;;;;;;;;;;;;;-1:-1:-1;1493:101:1;;:::i;305:396::-;;;;;;;;;;;;;;;;-1:-1:-1;305:396:1;;;;;;-1:-1:-1;;;;;305:396:1;;:::i;:::-;;1624:145:0;;;:::i;1003:77::-;;;:::i;1284:87:1:-;;;:::i;:::-;;;;;;;;;;;;;;;;707:567;;;;;;;;;;;;;;;;-1:-1:-1;707:567:1;;:::i;1918:240:0:-;;;;;;;;;;;;;;;;-1:-1:-1;1918:240:0;-1:-1:-1;;;;;1918:240:0;;:::i;1381:102:1:-;1434:4;1457:9;;;:3;:9;;;;;:15;:19;;;1381:102::o;1795:90::-;1836:16;1871:7;1864:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1795:90;:::o;1604:185::-;1658:7;1724;:14;1715:23;;1707:32;;;;;;1756:3;:20;1760:7;1768:6;1760:15;;;;;;;;;;;;;;;;;;;;1756:20;;;;;;;;;;;;:26;;;-1:-1:-1;;;;;1756:26:1;;-1:-1:-1;1604:185:1;;;:::o;1493:101::-;1546:7;1572:9;;;:3;:9;;;;;;;;:15;;-1:-1:-1;;;;;1572:15:1;;1493:101::o;305:396::-;1207:6:0;;-1:-1:-1;;;;;1207:6:0;1217:10;1207:20;1199:65;;;;;-1:-1:-1;;;1199:65:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1199:65:0;;;;;;;;;;;;;;;375:19:1::1;397:9:::0;;;:3:::1;:9;::::0;;;;;;;416:11;;::::1;:20:::0;;-1:-1:-1;;;;;;416:20:1::1;-1:-1:-1::0;;;;;416:20:1;::::1;;::::0;;449:11;;:15;446:249:::1;;521:7;;;446:249;570:7;:18:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;570:18:1;;;;::::1;::::0;;;622:14;654:30;;1274:1:0::1;305:396:1::0;;:::o;1624:145:0:-;1207:6;;-1:-1:-1;;;;;1207:6:0;1217:10;1207:20;1199:65;;;;;-1:-1:-1;;;1199:65:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1199:65:0;;;;;;;;;;;;;;;1730:1:::1;1714:6:::0;;1693:40:::1;::::0;-1:-1:-1;;;;;1714:6:0;;::::1;::::0;1693:40:::1;::::0;1730:1;;1693:40:::1;1760:1;1743:19:::0;;-1:-1:-1;;;;;;1743:19:0::1;::::0;;1624:145::o;1003:77::-;1041:7;1067:6;-1:-1:-1;;;;;1067:6:0;1003:77;:::o;1284:87:1:-;1349:7;:14;1284:87;:::o;707:567::-;1207:6:0;;-1:-1:-1;;;;;1207:6:0;1217:10;1207:20;1199:65;;;;;-1:-1:-1;;;1199:65:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1199:65:0;;;;;;;;;;;;;;;764:19:1::1;786:9:::0;;;:3:::1;:9;::::0;;;;813:11;;805:25:::1;;;::::0;::::1;;882:7;:14:::0;867:11;;:29:::1;;859:38;;;::::0;::::1;;1027:11:::0;;1076:7:::1;:14:::0;;-1:-1:-1;;1027:15:1;;;;1076:18;;;;1027:11;;1041:1:::1;::::0;1007:17:::1;::::0;1076:18;;1108:25;::::1;;;;;;;;;;;;;1104:30;;;;;;;;;;;:36;;:55;;;;1193:7;1201:16;1193:25;;;;;;;;;;;;;;;;1169:7;1177:12;1169:21;;;;;;;;;::::0;;;::::1;::::0;;;::::1;:49:::0;1228:7:::1;:13:::0;;;::::1;;;;;::::0;;;::::1;::::0;;;;;-1:-1:-1;;1228:13:1;;;;;;;;;;;;1258:9;;;1228:13:::1;1258:9:::0;;;;;;;1251:16;;;;;::::1;::::0;;-1:-1:-1;;;;;;1251:16:1::1;::::0;;-1:-1:-1;;;707:567:1:o;1918:240:0:-;1207:6;;-1:-1:-1;;;;;1207:6:0;1217:10;1207:20;1199:65;;;;;-1:-1:-1;;;1199:65:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1199:65:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;2006:22:0;::::1;1998:73;;;;-1:-1:-1::0;;;1998:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2107:6;::::0;;2086:38:::1;::::0;-1:-1:-1;;;;;2086:38:0;;::::1;::::0;2107:6;::::1;::::0;2086:38:::1;::::0;::::1;2134:6;:17:::0;;-1:-1:-1;;;;;;2134:17:0::1;-1:-1:-1::0;;;;;2134:17:0;;;::::1;::::0;;;::::1;::::0;;1918:240::o

Swarm Source

ipfs://2e5e48f636dcb2c11fbcf98c26bc7bb1c7b4bea86d7f534057824e8f2e103bfc

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
Loading...
Loading
[ Download: CSV Export  ]

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.