Address Contract Partially Verified
Address
0x412a5d5eC35fF185D6BfF32a367a985e1FB7c296
Balance
0 ETH
Nonce
1
Code Size
1815 bytes
Creator
0x52194685...64A9 at tx 0xcba0bdad...a94b5f
Indexed Transactions
0 (1 on-chain, 0% indexed)
Contract Bytecode
1815 bytes
0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063b30906d41161005b578063b30906d414610139578063e4ec552b14610156578063e64b4f2314610190578063f2fde38b146101ad57610088565b806317be85c31461008d578063715018a6146100e55780638da5cb5b146100ef578063a92f971914610113575b600080fd5b6100956101d3565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156100d15781810151838201526020016100b9565b505050509050019250505060405180910390f35b6100ed610235565b005b6100f76102d7565b604080516001600160a01b039092168252519081900360200190f35b6100ed6004803603602081101561012957600080fd5b50356001600160a01b03166102e6565b6100f76004803603602081101561014f57600080fd5b50356103fd565b61017c6004803603602081101561016c57600080fd5b50356001600160a01b0316610424565b604080519115158252519081900360200190f35b6100ed600480360360208110156101a657600080fd5b5035610439565b6100ed600480360360208110156101c357600080fd5b50356001600160a01b0316610567565b6060600280548060200260200160405190810160405280929190818152602001828054801561022b57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161020d575b5050505050905090565b61023d61065f565b6000546001600160a01b0390811691161461028d576040805162461bcd60e51b815260206004820181905260248201526000805160206106c2833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6102ee61065f565b6000546001600160a01b0390811691161461033e576040805162461bcd60e51b815260206004820181905260248201526000805160206106c2833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff16156103965760405162461bcd60e51b815260040180806020018281038252603881526020018061068a6038913960400191505060405180910390fd5b6002805460018181019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b039093166001600160a01b031990931683179055600091825260208190526040909120805460ff19169091179055565b6002818154811061040a57fe5b6000918252602090912001546001600160a01b0316905081565b60016020526000908152604090205460ff1681565b61044161065f565b6000546001600160a01b03908116911614610491576040805162461bcd60e51b815260206004820181905260248201526000805160206106c2833981519152604482015290519081900360640190fd5b6000600282815481106104a057fe5b60009182526020808320909101546001600160a01b031680835260019091526040909120805460ff19169055600280549192509060001981019081106104e257fe5b600091825260209091200154600280546001600160a01b03909216918490811061050857fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600280548061054157fe5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b61056f61065f565b6000546001600160a01b039081169116146105bf576040805162461bcd60e51b815260206004820181905260248201526000805160206106c2833981519152604482015290519081900360640190fd5b6001600160a01b0381166106045760405162461bcd60e51b81526004018080602001828103825260268152602001806106646026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536d617274506f6f6c52656769737472792e616464536d617274506f6f6c3a20504f4f4c5f414c52454144595f494e5f52454749535452594f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207b6f92ba36106456c707ad465d5b7f86c36599243488cad928d4084c3c0b39de64736f6c63430006040033
Verified Source Code Partial Match
Compiler: v0.6.4+commit.1dca32f3
EVM: istanbul
Optimization: Yes (200 runs)
SmartPoolRegistry.sol 138 lines
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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: @openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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.
*/
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 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: localhost/contracts/IRegistry.sol
pragma solidity 0.6.4;
interface IRegistry {
function inRegistry(address _pool) external view returns(bool);
function entries(uint256 _index) external view returns(address);
function addSmartPool(address _smartPool) external;
function removeSmartPool(uint256 _index) external;
}
// File: localhost/contracts/Registry.sol
pragma solidity 0.6.4;
contract SmartPoolRegistry is IRegistry, Ownable {
mapping(address => bool) public override inRegistry;
address[] public override entries;
function addSmartPool(address _smartPool) external override onlyOwner {
require(!inRegistry[_smartPool], "SmartPoolRegistry.addSmartPool: POOL_ALREADY_IN_REGISTRY");
entries.push(_smartPool);
inRegistry[_smartPool] = true;
}
function removeSmartPool(uint256 _index) external override onlyOwner {
address registryAddress = entries[_index];
inRegistry[registryAddress] = false;
// Move last to index location
entries[_index] = entries[entries.length - 1];
// Pop last one off
entries.pop();
}
function getEntries() external view returns(address[] memory) {
return entries;
}
}
Read Contract
entries 0xb30906d4 → address
getEntries 0x17be85c3 → address[]
inRegistry 0xe4ec552b → bool
owner 0x8da5cb5b → address
Write Contract 4 functions
These functions modify contract state and require a wallet transaction to execute.
addSmartPool 0xa92f9719
address _smartPool
removeSmartPool 0xe64b4f23
uint256 _index
renounceOwnership 0x715018a6
No parameters
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 0% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →