Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 14 from a total of 14 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Character De... | 10729377 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729377 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
Set Character De... | 10729375 | 1466 days ago | IN | 0 ETH | 0.00499462 | ||||
0x60806040 | 10729334 | 1466 days ago | IN | 0 ETH | 0.03376546 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
EthFighterCharacterDefinitionRegistry
Compiler Version
v0.6.11+commit.5ef660b1
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-08-25 */ // File: @openzeppelin/contracts/utils/EnumerableSet.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/GSN/Context.sol 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/AccessControl.sol pragma solidity ^0.6.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * 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: * * ``` * 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}: * * ``` * 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. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @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. * * _Available since v3.1._ */ 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 {_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) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @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 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. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _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. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } } // File: contracts/EthFighterAccessControls.sol pragma solidity ^0.6.0; contract EthFighterAccessControls is AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor() public { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } /////////////// // Accessors // /////////////// function hasAdminRole(address _address) public view returns (bool) { return hasRole(DEFAULT_ADMIN_ROLE, _address); } function hasMinterRole(address _address) public view returns (bool) { return hasRole(MINTER_ROLE, _address); } /////////////// // Modifiers // /////////////// function grantAdminRole(address _address) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "AccessControl: sender must be an admin to grant role"); _setupRole(DEFAULT_ADMIN_ROLE, _address); } function revokeAdminRole(address _address) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "AccessControl: sender must be an admin to revoke role"); revokeRole(DEFAULT_ADMIN_ROLE, _address); } function grantMinterRole(address _address) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "AccessControl: sender must be an admin to grant role"); _setupRole(MINTER_ROLE, _address); } function revokeMinterRole(address _address) public { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "AccessControl: sender must be an admin to revoke role"); revokeRole(MINTER_ROLE, _address); } } // File: contracts/EthFighterCharacterDefinitionRegistry.sol pragma solidity 0.6.11; contract EthFighterCharacterDefinitionRegistry { event CharacterDefinitionSet( uint256 characterTypeId ); struct CharacterDefinition { uint8 skin; uint8 power; uint8 health; uint8 mobility; uint8 techniques; uint8 range; uint8 speed; uint8 extras; } mapping(uint256 => CharacterDefinition) public characterDefinitions; EthFighterAccessControls public accessControls; constructor(EthFighterAccessControls _accessControls) public { accessControls = _accessControls; } function setCharacterDefinition( uint256 _characterTypeId, uint8 _skin, uint8 _power, uint8 _health, uint8 _mobility, uint8 _techniques, uint8 _range, uint8 _speed, uint8 _extras ) external { require(accessControls.hasAdminRole(msg.sender), "EthFighterCharacterDefinitionRegistry.setCharacterDefinition: Sender is not admin"); characterDefinitions[_characterTypeId] = CharacterDefinition({ skin : _skin, power : _power, health : _health, mobility : _mobility, techniques : _techniques, range : _range, speed : _speed, extras : _extras }); emit CharacterDefinitionSet(_characterTypeId); } function getCharacterDefinition(uint256 _characterTypeId) external view returns ( uint8 _skin, uint8 _power, uint8 _health, uint8 _mobility, uint8 _techniques, uint8 _range, uint8 _speed, uint8 _extras ) { CharacterDefinition memory characterDefinition = characterDefinitions[_characterTypeId]; return ( characterDefinition.skin, characterDefinition.power, characterDefinition.health, characterDefinition.mobility, characterDefinition.techniques, characterDefinition.range, characterDefinition.speed, characterDefinition.extras ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract EthFighterAccessControls","name":"_accessControls","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"characterTypeId","type":"uint256"}],"name":"CharacterDefinitionSet","type":"event"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract EthFighterAccessControls","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"characterDefinitions","outputs":[{"internalType":"uint8","name":"skin","type":"uint8"},{"internalType":"uint8","name":"power","type":"uint8"},{"internalType":"uint8","name":"health","type":"uint8"},{"internalType":"uint8","name":"mobility","type":"uint8"},{"internalType":"uint8","name":"techniques","type":"uint8"},{"internalType":"uint8","name":"range","type":"uint8"},{"internalType":"uint8","name":"speed","type":"uint8"},{"internalType":"uint8","name":"extras","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_characterTypeId","type":"uint256"}],"name":"getCharacterDefinition","outputs":[{"internalType":"uint8","name":"_skin","type":"uint8"},{"internalType":"uint8","name":"_power","type":"uint8"},{"internalType":"uint8","name":"_health","type":"uint8"},{"internalType":"uint8","name":"_mobility","type":"uint8"},{"internalType":"uint8","name":"_techniques","type":"uint8"},{"internalType":"uint8","name":"_range","type":"uint8"},{"internalType":"uint8","name":"_speed","type":"uint8"},{"internalType":"uint8","name":"_extras","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_characterTypeId","type":"uint256"},{"internalType":"uint8","name":"_skin","type":"uint8"},{"internalType":"uint8","name":"_power","type":"uint8"},{"internalType":"uint8","name":"_health","type":"uint8"},{"internalType":"uint8","name":"_mobility","type":"uint8"},{"internalType":"uint8","name":"_techniques","type":"uint8"},{"internalType":"uint8","name":"_range","type":"uint8"},{"internalType":"uint8","name":"_speed","type":"uint8"},{"internalType":"uint8","name":"_extras","type":"uint8"}],"name":"setCharacterDefinition","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161067e38038061067e8339818101604052602081101561003357600080fd5b5051600180546001600160a01b0319166001600160a01b0390921691909117905561061b806100636000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063020f3b3114610051578063748365ef146100b357806382a52b96146100e4578063a6f7c9f01461014e575b600080fd5b6100b1600480360361012081101561006857600080fd5b5080359060ff602082013581169160408101358216916060820135811691608081013582169160a082013581169160c081013582169160e082013581169161010001351661016b565b005b6100bb61040e565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610101600480360360208110156100fa57600080fd5b503561042a565b6040805160ff998a16815297891660208901529588168787015293871660608701529186166080860152851660a0850152841660c084015290921660e08201529051908190036101000190f35b6101016004803603602081101561016457600080fd5b50356104ed565b600154604080517fc395fcb3000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff9092169163c395fcb391602480820192602092909190829003018186803b1580156101dc57600080fd5b505afa1580156101f0573d6000803e3d6000fd5b505050506040513d602081101561020657600080fd5b505161025d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260518152602001806105956051913960600191505060405180910390fd5b6040518061010001604052808960ff1681526020018860ff1681526020018760ff1681526020018660ff1681526020018560ff1681526020018460ff1681526020018360ff1681526020018260ff168152506000808b815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055509050507fd67080bb2abd3ebacddd8db2312a63707d926a8bdb3198b85a9a8513fb9c2de3896040518082815260200191505060405180910390a1505050505050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60008060008060008060008061043e610550565b5050506000968752505050602084815260409485902085516101008082018852915460ff80821680845293820481169483018590526201000082048116988301899052630100000082048116606084018190526401000000008304821660808501819052650100000000008404831660a0860181905266010000000000008504841660c0870181905267010000000000000090950490931660e0909501859052949a9599985096509294509192565b60006020819052908152604090205460ff8082169161010081048216916201000082048116916301000000810482169164010000000082048116916501000000000081048216916601000000000000820481169167010000000000000090041688565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101919091529056fe45746846696768746572436861726163746572446566696e6974696f6e52656769737472792e736574436861726163746572446566696e6974696f6e3a2053656e646572206973206e6f742061646d696ea2646970667358221220bf010fdbc9017e7f3d2728e660f7224462a38de11987ffb0cfa3e948f800aab364736f6c634300060b0033000000000000000000000000e7d34dddfb94025426255a54027d329a03dbcf2e
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063020f3b3114610051578063748365ef146100b357806382a52b96146100e4578063a6f7c9f01461014e575b600080fd5b6100b1600480360361012081101561006857600080fd5b5080359060ff602082013581169160408101358216916060820135811691608081013582169160a082013581169160c081013582169160e082013581169161010001351661016b565b005b6100bb61040e565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610101600480360360208110156100fa57600080fd5b503561042a565b6040805160ff998a16815297891660208901529588168787015293871660608701529186166080860152851660a0850152841660c084015290921660e08201529051908190036101000190f35b6101016004803603602081101561016457600080fd5b50356104ed565b600154604080517fc395fcb3000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff9092169163c395fcb391602480820192602092909190829003018186803b1580156101dc57600080fd5b505afa1580156101f0573d6000803e3d6000fd5b505050506040513d602081101561020657600080fd5b505161025d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260518152602001806105956051913960600191505060405180910390fd5b6040518061010001604052808960ff1681526020018860ff1681526020018760ff1681526020018660ff1681526020018560ff1681526020018460ff1681526020018360ff1681526020018260ff168152506000808b815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055509050507fd67080bb2abd3ebacddd8db2312a63707d926a8bdb3198b85a9a8513fb9c2de3896040518082815260200191505060405180910390a1505050505050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60008060008060008060008061043e610550565b5050506000968752505050602084815260409485902085516101008082018852915460ff80821680845293820481169483018590526201000082048116988301899052630100000082048116606084018190526401000000008304821660808501819052650100000000008404831660a0860181905266010000000000008504841660c0870181905267010000000000000090950490931660e0909501859052949a9599985096509294509192565b60006020819052908152604090205460ff8082169161010081048216916201000082048116916301000000810482169164010000000082048116916501000000000081048216916601000000000000820481169167010000000000000090041688565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101919091529056fe45746846696768746572436861726163746572446566696e6974696f6e52656769737472792e736574436861726163746572446566696e6974696f6e3a2053656e646572206973206e6f742061646d696ea2646970667358221220bf010fdbc9017e7f3d2728e660f7224462a38de11987ffb0cfa3e948f800aab364736f6c634300060b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e7d34dddfb94025426255a54027d329a03dbcf2e
-----Decoded View---------------
Arg [0] : _accessControls (address): 0xE7d34DDdFb94025426255A54027D329A03dbcf2E
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e7d34dddfb94025426255a54027d329a03dbcf2e
Deployed Bytecode Sourcemap
24580:2187:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25193:818;;;;;;;;;;;;;;;;-1:-1:-1;25193:818:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25018:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26019:745;;;;;;;;;;;;;;;;-1:-1:-1;26019:745:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24942:67;;;;;;;;;;;;;;;;-1:-1:-1;24942:67:0;;:::i;25193:818::-;25488:14;;:39;;;;;;25516:10;25488:39;;;;;;:14;;;;;:27;;:39;;;;;;;;;;;;;;;:14;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25488:39:0;25480:133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25665:282;;;;;;;;25707:5;25665:282;;;;;;25735:6;25665:282;;;;;;25765:7;25665:282;;;;;;25798:9;25665:282;;;;;;25835:11;25665:282;;;;;;25869:6;25665:282;;;;;;25898:6;25665:282;;;;;;25928:7;25665:282;;;;;25624:20;:38;25645:16;25624:38;;;;;;;;;;;:323;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25963:40;25986:16;25963:40;;;;;;;;;;;;;;;;;;25193:818;;;;;;;;;:::o;25018:46::-;;;;;;:::o;26019:745::-;26110:11;26132:12;26155:13;26179:15;26205:17;26233:12;26256;26279:13;26311:46;;:::i;:::-;-1:-1:-1;;;26360:20:0;:38;;;-1:-1:-1;;;26360:38:0;;;;;;;;;26311:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26311:87:0;-1:-1:-1;26311:87:0;;-1:-1:-1;26311:87:0;;26019:745::o;24942:67::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://bf010fdbc9017e7f3d2728e660f7224462a38de11987ffb0cfa3e948f800aab3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.