Contract
0x2274Fb44b7eBbB49E764B28B0A31F5ed2Ef1833b
4
Contract Overview
Balance:
0 GLMR
GLMR Value:
$0.00
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Contract Name:
Deployments
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Deployments { struct Deployment { address addr; uint256 bytecodeHash; } address public owner = msg.sender; mapping(string => Deployment) public deployments; modifier onlyOwner() { require(msg.sender == owner, "onlyOwner"); _; } function setDeployment( string calldata _name, address _addr, uint256 _bytecodeHash ) public onlyOwner { deployments[_name] = Deployment({addr: _addr, bytecodeHash: _bytecodeHash}); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"deployments","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"bytecodeHash","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_bytecodeHash","type":"uint256"}],"name":"setDeployment","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600080546001600160a01b0319163317905534801561002257600080fd5b50610341806100326000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80635ad3d872146100465780638da5cb5b146100aa578063a944162b146100d5575b600080fd5b6100866100543660046101b5565b80516020818301810180516001808352938301929094019190912092905281549101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152015b60405180910390f35b6000546100bd906001600160a01b031681565b6040516001600160a01b0390911681526020016100a1565b6100e86100e3366004610266565b6100ea565b005b6000546001600160a01b031633146101345760405162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015260640160405180910390fd5b6040518060400160405280836001600160a01b0316815260200182815250600185856040516101649291906102fb565b90815260405160209181900382019020825181546001600160a01b0319166001600160a01b0390911617815591015160019091015550505050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156101c757600080fd5b813567ffffffffffffffff808211156101df57600080fd5b818401915084601f8301126101f357600080fd5b8135818111156102055761020561019f565b604051601f8201601f19908116603f0116810190838211818310171561022d5761022d61019f565b8160405282815287602084870101111561024657600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806000806060858703121561027c57600080fd5b843567ffffffffffffffff8082111561029457600080fd5b818701915087601f8301126102a857600080fd5b8135818111156102b757600080fd5b8860208285010111156102c957600080fd5b602092830196509450508501356001600160a01b03811681146102eb57600080fd5b9396929550929360400135925050565b818382376000910190815291905056fea26469706673582212203f635bb8147bf66190996f4ea8be0454f3081e96d7c870f054b201e285d3015964736f6c634300080d0033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.