Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 619 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 16485799 | 674 days ago | IN | 0.11111111 ETH | 0.001861 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00173056 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00175593 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.0017813 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.0017813 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.0017813 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00179145 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00180667 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00183204 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00193352 | ||||
Mint | 16485798 | 674 days ago | IN | 0.11111111 ETH | 0.00210303 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16485799 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH | ||||
16485798 | 674 days ago | 0.11111111 ETH |
Loading...
Loading
Contract Name:
Controller
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; interface iCable { function mint(address recipient) external; } /// @title CABLE Controller /// @notice https://cable.folia.app /// @author @okwme / okw.me, artwork by @joanheemskerk / https://w3b4.net/cable-/ /// @dev managing the mint and payments contract Controller is Ownable { bool public paused; address public cable; address public splitter; uint256 public price = 0.111111111111111111 ether; event EthMoved(address indexed to, bool indexed success, bytes returnData); constructor(address payable splitter_) { splitter = splitter_; } // @dev Throws if called before the cable address is set. modifier initialized() { require(cable != address(0), "NO CABLE"); require(splitter != address(0), "NO SPLIT"); _; } /// @dev mints cables function mint() public payable initialized { require(!paused, "PAUSED"); require(msg.value == price, "WRONG PRICE"); (bool sent, bytes memory data) = splitter.call{value: msg.value}(""); emit EthMoved(msg.sender, sent, data); iCable(cable).mint(msg.sender); } /// @dev only the owner can set the splitter address function setSplitter(address splitter_) public onlyOwner { splitter = splitter_; } /// @dev only the owner can set the cable address function setCable(address cable_) public onlyOwner { cable = cable_; } /// @dev only the owner can set the contract paused function setPause(bool paused_) public onlyOwner { paused = paused_; } function setPrice(uint256 price_) public onlyOwner { price = price_; } /// @dev only the owner can mint without paying function adminMint(address recipient) public initialized onlyOwner { iCable(cable).mint(recipient); } /// @dev if mint fails to send eth to splitter, admin can recover // This should not be necessary but Berlin hardfork broke split before so this // is extra precaution. Also allows recovery if users accidentally send eth // straight to the contract. function recoverUnsuccessfulMintPayment(address payable _to) public onlyOwner { (bool sent, bytes memory data) = _to.call{value: address(this).balance}(""); emit EthMoved(_to, sent, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "viaIR": false, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"splitter_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"bytes","name":"returnData","type":"bytes"}],"name":"EthMoved","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":"address","name":"recipient","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cable","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"recoverUnsuccessfulMintPayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"cable_","type":"address"}],"name":"setCable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused_","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"splitter_","type":"address"}],"name":"setSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405267018abef7846071c760035534801561001c57600080fd5b50604051610a0c380380610a0c83398101604081905261003b916100b9565b61004433610069565b600280546001600160a01b0319166001600160a01b03929092169190911790556100e9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100cb57600080fd5b81516001600160a01b03811681146100e257600080fd5b9392505050565b610914806100f86000396000f3fe6080604052600436106100dd5760003560e01c80639769dc0e1161007f578063bedb86fb11610059578063bedb86fb14610231578063c09fd8ef14610251578063c93fc83d14610271578063f2fde38b1461029157600080fd5b80639769dc0e146101cd578063a035b1fe146101ed578063a39f51321461021157600080fd5b80635c975abb116100bb5780635c975abb14610149578063715018a61461017a5780638da5cb5b1461018f57806391b7f5ed146101ad57600080fd5b80631249c58b146100e25780633cd8045e146100ec5780635864c5d514610129575b600080fd5b6100ea6102b1565b005b3480156100f857600080fd5b5060025461010c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013557600080fd5b5060015461010c906001600160a01b031681565b34801561015557600080fd5b5060005461016a90600160a01b900460ff1681565b6040519015158152602001610120565b34801561018657600080fd5b506100ea6104be565b34801561019b57600080fd5b506000546001600160a01b031661010c565b3480156101b957600080fd5b506100ea6101c8366004610815565b6104d2565b3480156101d957600080fd5b506100ea6101e8366004610843565b6104df565b3480156101f957600080fd5b5061020360035481565b604051908152602001610120565b34801561021d57600080fd5b506100ea61022c366004610843565b6105cf565b34801561023d57600080fd5b506100ea61024c366004610867565b6105f9565b34801561025d57600080fd5b506100ea61026c366004610843565b61061f565b34801561027d57600080fd5b506100ea61028c366004610843565b6106c8565b34801561029d57600080fd5b506100ea6102ac366004610843565b6106f2565b6001546001600160a01b03166102f95760405162461bcd60e51b81526020600482015260086024820152674e4f204341424c4560c01b60448201526064015b60405180910390fd5b6002546001600160a01b031661033c5760405162461bcd60e51b81526020600482015260086024820152671393c814d413125560c21b60448201526064016102f0565b600054600160a01b900460ff161561037f5760405162461bcd60e51b815260206004820152600660248201526514105554d15160d21b60448201526064016102f0565b60035434146103be5760405162461bcd60e51b815260206004820152600b60248201526a57524f4e4720505249434560a81b60448201526064016102f0565b60025460405160009182916001600160a01b039091169034908381818185875af1925050503d806000811461040f576040519150601f19603f3d011682016040523d82523d6000602084013e610414565b606091505b5091509150811515336001600160a01b03167f8fa81ca82bf8d774a609bd7ab5b0f33bce37ca34e0e6e9cde69b6c7b7b6df04f836040516104559190610889565b60405180910390a36001546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b1580156104a257600080fd5b505af11580156104b6573d6000803e3d6000fd5b505050505050565b6104c661076b565b6104d060006107c5565b565b6104da61076b565b600355565b6001546001600160a01b03166105225760405162461bcd60e51b81526020600482015260086024820152674e4f204341424c4560c01b60448201526064016102f0565b6002546001600160a01b03166105655760405162461bcd60e51b81526020600482015260086024820152671393c814d413125560c21b60448201526064016102f0565b61056d61076b565b6001546040516335313c2160e11b81526001600160a01b03838116600483015290911690636a62784290602401600060405180830381600087803b1580156105b457600080fd5b505af11580156105c8573d6000803e3d6000fd5b5050505050565b6105d761076b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61060161076b565b60008054911515600160a01b0260ff60a01b19909216919091179055565b61062761076b565b600080826001600160a01b03164760405160006040518083038185875af1925050503d8060008114610675576040519150601f19603f3d011682016040523d82523d6000602084013e61067a565b606091505b5091509150811515836001600160a01b03167f8fa81ca82bf8d774a609bd7ab5b0f33bce37ca34e0e6e9cde69b6c7b7b6df04f836040516106bb9190610889565b60405180910390a3505050565b6106d061076b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106fa61076b565b6001600160a01b03811661075f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f0565b610768816107c5565b50565b6000546001600160a01b031633146104d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561082757600080fd5b5035919050565b6001600160a01b038116811461076857600080fd5b60006020828403121561085557600080fd5b81356108608161082e565b9392505050565b60006020828403121561087957600080fd5b8135801515811461086057600080fd5b600060208083528351808285015260005b818110156108b65785810183015185820160400152820161089a565b818111156108c8576000604083870101525b50601f01601f191692909201604001939250505056fea2646970667358221220d2b5b980a347b538cb41db4a277f186c6c5398e33654fb2ee128c6e675efb7b064736f6c634300080f00330000000000000000000000002f5866d7215416fa60bedf532856736cd9a76acf
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c80639769dc0e1161007f578063bedb86fb11610059578063bedb86fb14610231578063c09fd8ef14610251578063c93fc83d14610271578063f2fde38b1461029157600080fd5b80639769dc0e146101cd578063a035b1fe146101ed578063a39f51321461021157600080fd5b80635c975abb116100bb5780635c975abb14610149578063715018a61461017a5780638da5cb5b1461018f57806391b7f5ed146101ad57600080fd5b80631249c58b146100e25780633cd8045e146100ec5780635864c5d514610129575b600080fd5b6100ea6102b1565b005b3480156100f857600080fd5b5060025461010c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013557600080fd5b5060015461010c906001600160a01b031681565b34801561015557600080fd5b5060005461016a90600160a01b900460ff1681565b6040519015158152602001610120565b34801561018657600080fd5b506100ea6104be565b34801561019b57600080fd5b506000546001600160a01b031661010c565b3480156101b957600080fd5b506100ea6101c8366004610815565b6104d2565b3480156101d957600080fd5b506100ea6101e8366004610843565b6104df565b3480156101f957600080fd5b5061020360035481565b604051908152602001610120565b34801561021d57600080fd5b506100ea61022c366004610843565b6105cf565b34801561023d57600080fd5b506100ea61024c366004610867565b6105f9565b34801561025d57600080fd5b506100ea61026c366004610843565b61061f565b34801561027d57600080fd5b506100ea61028c366004610843565b6106c8565b34801561029d57600080fd5b506100ea6102ac366004610843565b6106f2565b6001546001600160a01b03166102f95760405162461bcd60e51b81526020600482015260086024820152674e4f204341424c4560c01b60448201526064015b60405180910390fd5b6002546001600160a01b031661033c5760405162461bcd60e51b81526020600482015260086024820152671393c814d413125560c21b60448201526064016102f0565b600054600160a01b900460ff161561037f5760405162461bcd60e51b815260206004820152600660248201526514105554d15160d21b60448201526064016102f0565b60035434146103be5760405162461bcd60e51b815260206004820152600b60248201526a57524f4e4720505249434560a81b60448201526064016102f0565b60025460405160009182916001600160a01b039091169034908381818185875af1925050503d806000811461040f576040519150601f19603f3d011682016040523d82523d6000602084013e610414565b606091505b5091509150811515336001600160a01b03167f8fa81ca82bf8d774a609bd7ab5b0f33bce37ca34e0e6e9cde69b6c7b7b6df04f836040516104559190610889565b60405180910390a36001546040516335313c2160e11b81523360048201526001600160a01b0390911690636a62784290602401600060405180830381600087803b1580156104a257600080fd5b505af11580156104b6573d6000803e3d6000fd5b505050505050565b6104c661076b565b6104d060006107c5565b565b6104da61076b565b600355565b6001546001600160a01b03166105225760405162461bcd60e51b81526020600482015260086024820152674e4f204341424c4560c01b60448201526064016102f0565b6002546001600160a01b03166105655760405162461bcd60e51b81526020600482015260086024820152671393c814d413125560c21b60448201526064016102f0565b61056d61076b565b6001546040516335313c2160e11b81526001600160a01b03838116600483015290911690636a62784290602401600060405180830381600087803b1580156105b457600080fd5b505af11580156105c8573d6000803e3d6000fd5b5050505050565b6105d761076b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61060161076b565b60008054911515600160a01b0260ff60a01b19909216919091179055565b61062761076b565b600080826001600160a01b03164760405160006040518083038185875af1925050503d8060008114610675576040519150601f19603f3d011682016040523d82523d6000602084013e61067a565b606091505b5091509150811515836001600160a01b03167f8fa81ca82bf8d774a609bd7ab5b0f33bce37ca34e0e6e9cde69b6c7b7b6df04f836040516106bb9190610889565b60405180910390a3505050565b6106d061076b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6106fa61076b565b6001600160a01b03811661075f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102f0565b610768816107c5565b50565b6000546001600160a01b031633146104d05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102f0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561082757600080fd5b5035919050565b6001600160a01b038116811461076857600080fd5b60006020828403121561085557600080fd5b81356108608161082e565b9392505050565b60006020828403121561087957600080fd5b8135801515811461086057600080fd5b600060208083528351808285015260005b818110156108b65785810183015185820160400152820161089a565b818111156108c8576000604083870101525b50601f01601f191692909201604001939250505056fea2646970667358221220d2b5b980a347b538cb41db4a277f186c6c5398e33654fb2ee128c6e675efb7b064736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002f5866d7215416fa60bedf532856736cd9a76acf
-----Decoded View---------------
Arg [0] : splitter_ (address): 0x2F5866D7215416Fa60beDF532856736Cd9a76acf
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f5866d7215416fa60bedf532856736cd9a76acf
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.