Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 9 from a total of 9 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
Amount
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Create | 8095999 | 338 days ago | IN | 0 ETH | 0.00000126 | ||||
| Create | 8083515 | 340 days ago | IN | 0 ETH | 0.00075309 | ||||
| Create | 7542215 | 417 days ago | IN | 0 ETH | 0.00152263 | ||||
| Create | 6873057 | 517 days ago | IN | 0 ETH | 0.04398779 | ||||
| Create | 6653533 | 553 days ago | IN | 0 ETH | 0.00171456 | ||||
| Create | 6157757 | 631 days ago | IN | 0 ETH | 0.00075306 | ||||
| Create | 5960618 | 661 days ago | IN | 0 ETH | 0.00382399 | ||||
| Create | 5892603 | 671 days ago | IN | 0 ETH | 0.03008182 | ||||
| Create | 5565122 | 718 days ago | IN | 0 ETH | 0.00169107 |
Latest 9 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
To
|
Amount
|
||
|---|---|---|---|---|---|---|---|
| 0x60806040 | 8095999 | 338 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 8083515 | 340 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 7542215 | 417 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 6873057 | 517 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 6653533 | 553 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 6157757 | 631 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 5960618 | 661 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 5892603 | 671 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 5565122 | 718 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Factory
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.18;
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
/// @title OCAC
/// @notice Testing contract for on-chain access control tutorial.
contract OCAC is AccessControl {
/*//////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/
/// @notice Test role identifier
bytes32 public constant RANDOM_ROLE = keccak256("RANDOM_ROLE");
/*//////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
constructor() {
// Grant the admin role to the address that requested to create contract.
_grantRole(DEFAULT_ADMIN_ROLE, tx.origin);
}
/*//////////////////////////////////////////////////////////////
FUNCTIONS
//////////////////////////////////////////////////////////////*/
/// @notice Allow anyone to grant roles
/// @param role Role to assign
/// @param account Receiver of role
function grantRole(bytes32 role, address account) public override {
_grantRole(role, account);
}
/// @notice Allow anyone to remove roles from users
/// @param role Role to remove
/// @param account Role to remove from
function revokeRole(bytes32 role, address account) public override {
_revokeRole(role, account);
}
}
/// @title OCAC Factory
/// @notice Factory that creates OCAC contracts.
contract Factory {
/*//////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/
/// @notice Storage of all contracts created by this factory.
address[] public contracts;
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event ContractCreated(address indexed OCAC);
/*//////////////////////////////////////////////////////////////
FUNCTIONS
//////////////////////////////////////////////////////////////*/
/// @notice Create a contract that implements OpenZeppelin Access Control library for tutorial.
function create() external returns (address contractAddress) {
// Create contract and store its address.
contractAddress = address(new OCAC());
contracts.push(contractAddress);
emit ContractCreated(contractAddress);
}
/// @notice Returns all the created OCAC contracts.
function all() external view returns (address[] memory) {
address[] memory c = new address[](contracts.length);
for (uint256 i = 0; i < contracts.length; i++) {
c[i] = contracts[i];
}
return c;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"OCAC","type":"address"}],"name":"ContractCreated","type":"event"},{"inputs":[],"name":"all","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"contracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"create","outputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052348015600e575f80fd5b50610e288061001c5f395ff3fe608060405234801561000f575f80fd5b506004361061003f575f3560e01c806310c4e8b014610043578063474da79a14610061578063efc81a8c14610091575b5f80fd5b61004b6100af565b60405161005891906103a8565b60405180910390f35b61007b600480360381019061007691906103ff565b6101ac565b6040516100889190610439565b60405180910390f35b6100996101e6565b6040516100a69190610439565b60405180910390f35b60605f808054905067ffffffffffffffff8111156100d0576100cf610452565b5b6040519080825280602002602001820160405280156100fe5781602001602082028036833780820191505090505b5090505f5b5f805490508110156101a4575f81815481106101225761012161047f565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682828151811061015d5761015c61047f565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080600101915050610103565b508091505090565b5f81815481106101ba575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6040516101f3906102b4565b604051809103905ff08015801561020c573d5f803e3d5ffd5b5090505f81908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca31260405160405180910390a290565b610946806104ad83390190565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610313826102ea565b9050919050565b61032381610309565b82525050565b5f610334838361031a565b60208301905092915050565b5f602082019050919050565b5f610356826102c1565b61036081856102cb565b935061036b836102db565b805f5b8381101561039b5781516103828882610329565b975061038d83610340565b92505060018101905061036e565b5085935050505092915050565b5f6020820190508181035f8301526103c0818461034c565b905092915050565b5f80fd5b5f819050919050565b6103de816103cc565b81146103e8575f80fd5b50565b5f813590506103f9816103d5565b92915050565b5f60208284031215610414576104136103c8565b5b5f610421848285016103eb565b91505092915050565b61043381610309565b82525050565b5f60208201905061044c5f83018461042a565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfe608060405234801561000f575f80fd5b506100225f801b3261002860201b60201c565b50610187565b5f610039838361011d60201b60201c565b6101135760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506100b061018060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610117565b5f90505b92915050565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f33905090565b6107b2806101945f395ff3fe608060405234801561000f575f80fd5b5060043610610086575f3560e01c80634e1c43ff116100595780634e1c43ff1461012257806391d1485414610140578063a217fddf14610170578063d547741f1461018e57610086565b806301ffc9a71461008a578063248a9ca3146100ba5780632f2ff15d146100ea57806336568abe14610106575b5f80fd5b6100a4600480360381019061009f9190610600565b6101aa565b6040516100b19190610645565b60405180910390f35b6100d460048036038101906100cf9190610691565b610223565b6040516100e191906106cb565b60405180910390f35b61010460048036038101906100ff919061073e565b61023f565b005b610120600480360381019061011b919061073e565b61024e565b005b61012a6102c9565b60405161013791906106cb565b60405180910390f35b61015a6004803603810190610155919061073e565b6102ed565b6040516101679190610645565b60405180910390f35b610178610350565b60405161018591906106cb565b60405180910390f35b6101a860048036038101906101a3919061073e565b610356565b005b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061021c575061021b82610365565b5b9050919050565b5f805f8381526020019081526020015f20600101549050919050565b61024982826103ce565b505050565b6102566104b7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146102ba576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102c482826104be565b505050565b7f1aca1516ed0211ebda8cb0db4547d2dab09c1b3a281dd40978bb2cf3801171f381565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f801b81565b61036082826104be565b505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f6103d983836102ed565b6104ad5760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061044a6104b7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506104b1565b5f90505b92915050565b5f33905090565b5f6104c983836102ed565b1561059d575f805f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061053a6104b7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506105a1565b5f90505b92915050565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6105df816105ab565b81146105e9575f80fd5b50565b5f813590506105fa816105d6565b92915050565b5f60208284031215610615576106146105a7565b5b5f610622848285016105ec565b91505092915050565b5f8115159050919050565b61063f8161062b565b82525050565b5f6020820190506106585f830184610636565b92915050565b5f819050919050565b6106708161065e565b811461067a575f80fd5b50565b5f8135905061068b81610667565b92915050565b5f602082840312156106a6576106a56105a7565b5b5f6106b38482850161067d565b91505092915050565b6106c58161065e565b82525050565b5f6020820190506106de5f8301846106bc565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61070d826106e4565b9050919050565b61071d81610703565b8114610727575f80fd5b50565b5f8135905061073881610714565b92915050565b5f8060408385031215610754576107536105a7565b5b5f6107618582860161067d565b92505060206107728582860161072a565b915050925092905056fea26469706673582212203950125fa8cdbab8f7b32f255fa7504e894aff195fb2cb205f5052020a43b1a864736f6c63430008190033a26469706673582212205158c406aa97671a48875b7d1b862395fed22e42fb05b0840c6430c6af3a6a5964736f6c63430008190033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061003f575f3560e01c806310c4e8b014610043578063474da79a14610061578063efc81a8c14610091575b5f80fd5b61004b6100af565b60405161005891906103a8565b60405180910390f35b61007b600480360381019061007691906103ff565b6101ac565b6040516100889190610439565b60405180910390f35b6100996101e6565b6040516100a69190610439565b60405180910390f35b60605f808054905067ffffffffffffffff8111156100d0576100cf610452565b5b6040519080825280602002602001820160405280156100fe5781602001602082028036833780820191505090505b5090505f5b5f805490508110156101a4575f81815481106101225761012161047f565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682828151811061015d5761015c61047f565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080600101915050610103565b508091505090565b5f81815481106101ba575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6040516101f3906102b4565b604051809103905ff08015801561020c573d5f803e3d5ffd5b5090505f81908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca31260405160405180910390a290565b610946806104ad83390190565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610313826102ea565b9050919050565b61032381610309565b82525050565b5f610334838361031a565b60208301905092915050565b5f602082019050919050565b5f610356826102c1565b61036081856102cb565b935061036b836102db565b805f5b8381101561039b5781516103828882610329565b975061038d83610340565b92505060018101905061036e565b5085935050505092915050565b5f6020820190508181035f8301526103c0818461034c565b905092915050565b5f80fd5b5f819050919050565b6103de816103cc565b81146103e8575f80fd5b50565b5f813590506103f9816103d5565b92915050565b5f60208284031215610414576104136103c8565b5b5f610421848285016103eb565b91505092915050565b61043381610309565b82525050565b5f60208201905061044c5f83018461042a565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffdfe608060405234801561000f575f80fd5b506100225f801b3261002860201b60201c565b50610187565b5f610039838361011d60201b60201c565b6101135760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506100b061018060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610117565b5f90505b92915050565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f33905090565b6107b2806101945f395ff3fe608060405234801561000f575f80fd5b5060043610610086575f3560e01c80634e1c43ff116100595780634e1c43ff1461012257806391d1485414610140578063a217fddf14610170578063d547741f1461018e57610086565b806301ffc9a71461008a578063248a9ca3146100ba5780632f2ff15d146100ea57806336568abe14610106575b5f80fd5b6100a4600480360381019061009f9190610600565b6101aa565b6040516100b19190610645565b60405180910390f35b6100d460048036038101906100cf9190610691565b610223565b6040516100e191906106cb565b60405180910390f35b61010460048036038101906100ff919061073e565b61023f565b005b610120600480360381019061011b919061073e565b61024e565b005b61012a6102c9565b60405161013791906106cb565b60405180910390f35b61015a6004803603810190610155919061073e565b6102ed565b6040516101679190610645565b60405180910390f35b610178610350565b60405161018591906106cb565b60405180910390f35b6101a860048036038101906101a3919061073e565b610356565b005b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061021c575061021b82610365565b5b9050919050565b5f805f8381526020019081526020015f20600101549050919050565b61024982826103ce565b505050565b6102566104b7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146102ba576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102c482826104be565b505050565b7f1aca1516ed0211ebda8cb0db4547d2dab09c1b3a281dd40978bb2cf3801171f381565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f801b81565b61036082826104be565b505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f6103d983836102ed565b6104ad5760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061044a6104b7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4600190506104b1565b5f90505b92915050565b5f33905090565b5f6104c983836102ed565b1561059d575f805f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061053a6104b7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a4600190506105a1565b5f90505b92915050565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6105df816105ab565b81146105e9575f80fd5b50565b5f813590506105fa816105d6565b92915050565b5f60208284031215610615576106146105a7565b5b5f610622848285016105ec565b91505092915050565b5f8115159050919050565b61063f8161062b565b82525050565b5f6020820190506106585f830184610636565b92915050565b5f819050919050565b6106708161065e565b811461067a575f80fd5b50565b5f8135905061068b81610667565b92915050565b5f602082840312156106a6576106a56105a7565b5b5f6106b38482850161067d565b91505092915050565b6106c58161065e565b82525050565b5f6020820190506106de5f8301846106bc565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61070d826106e4565b9050919050565b61071d81610703565b8114610727575f80fd5b50565b5f8135905061073881610714565b92915050565b5f8060408385031215610754576107536105a7565b5b5f6107618582860161067d565b92505060206107728582860161072a565b915050925092905056fea26469706673582212203950125fa8cdbab8f7b32f255fa7504e894aff195fb2cb205f5052020a43b1a864736f6c63430008190033a26469706673582212205158c406aa97671a48875b7d1b862395fed22e42fb05b0840c6430c6af3a6a5964736f6c63430008190033
Loading...
Loading
Loading...
Loading
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.