- Contract name:
- DomainWalletContractResolver
- Optimization enabled
- false
- Compiler version
- v0.8.17+commit.8df45f5f
- Verified at
- 2023-07-13T19:33:53.921093Z
Constructor Arguments
0000000000000000000000000000000000000000000000000000000000000001
Arg [0] (uint8) : 1
contracts/domain-wallets/DomainWalletContractResolver.sol
// SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.0;import "@openzeppelin/contracts/access/AccessControl.sol";import "hardhat/console.sol";contract DomainWalletContractResolver is AccessControl {bytes32 public constant ADMIN_ROLE = keccak256("ADMIN"); // 0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42bytes32 public constant DOMAIN_WALLET_ORACLE =keccak256("DOMAIN_WALLET_ORACLE"); // 0xc293b28944ab4199ad0f77d42d49e33b15d60cc12ed2a0b94a0db1d0b719f561bytes32 public constant DOMAIN_WALLET_REGISTRY =keccak256("DOMAIN_WALLET_REGISTRY"); // 0x4c41ae454beb6bbbe9be50accc957a3b1536e48b835a86919af981b5244db755bytes32 public constant PKP_NFT = keccak256("PKP_NFT"); // 0xb7b4fde9944d3c13e9a78835431c33a5084d90a7f0c73def76d7886315fe87b0bytes32 public constant PKP_NFT_PERMISSION =keccak256("PKP_NFT_PERMISSIONS"); // 0xb430b9d3b47c909ca5dca1667ae14dff40a1d1dbe85ac6381d1cbf4d6dc43e28enum Env {Dev, // 0Staging, // 1Test, // 2Prod // 3}/* ========== ERRORS ========== *//// The ADMIN role is required to use this functionerror AdminRoleRequired();/* ========== EVENTS ========== */event AllowedEnvAdded(Env env);event AllowedEnvRemoved(Env env);event SetContract(bytes32 typ, Env env, address addr);/* ========== STATE VARIABLES ========== */mapping(Env => bool) allowedEnvs;mapping(bytes32 => mapping(Env => address)) public typeAddresses;
@openzeppelin/contracts/utils/Context.sol
// 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;}}
@openzeppelin/contracts/access/AccessControl.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)pragma solidity ^0.8.0;import "./IAccessControl.sol";import "../utils/Context.sol";import "../utils/Strings.sol";import "../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:** ```* 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
@openzeppelin/contracts/access/IAccessControl.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)pragma solidity ^0.8.0;/*** @dev External interface of AccessControl declared to support ERC165 detection.*/interface IAccessControl {/*** @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 {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);
@openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)pragma solidity ^0.8.0;import "./math/Math.sol";/*** @dev String operations.*/library Strings {bytes16 private constant _SYMBOLS = "0123456789abcdef";uint8 private constant _ADDRESS_LENGTH = 20;/*** @dev Converts a `uint256` to its ASCII `string` decimal representation.*/function toString(uint256 value) internal pure returns (string memory) {unchecked {uint256 length = Math.log10(value) + 1;string memory buffer = new string(length);uint256 ptr;/// @solidity memory-safe-assemblyassembly {ptr := add(buffer, add(32, length))}while (true) {ptr--;/// @solidity memory-safe-assemblyassembly {mstore8(ptr, byte(mod(value, 10), _SYMBOLS))}value /= 10;if (value == 0) break;}return buffer;}}/*** @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
@openzeppelin/contracts/utils/introspection/ERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)pragma solidity ^0.8.0;import "./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);* }* ```** Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.*/abstract contract ERC165 is IERC165 {/*** @dev See {IERC165-supportsInterface}.*/function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {return interfaceId == type(IERC165).interfaceId;}}
@openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)pragma solidity ^0.8.0;/*** @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);}
@openzeppelin/contracts/utils/math/Math.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)pragma solidity ^0.8.0;/*** @dev Standard math utilities missing in the Solidity language.*/library Math {enum Rounding {Down, // Toward negative infinityUp, // Toward infinityZero // Toward zero}/*** @dev Returns the largest of two numbers.*/function max(uint256 a, uint256 b) internal pure returns (uint256) {return a > b ? a : b;}/*** @dev Returns the smallest of two numbers.*/function min(uint256 a, uint256 b) internal pure returns (uint256) {return a < b ? a : b;}/*** @dev Returns the average of two numbers. The result is rounded towards* zero.*/function average(uint256 a, uint256 b) internal pure returns (uint256) {// (a + b) / 2 can overflow.return (a & b) + (a ^ b) / 2;}/*** @dev Returns the ceiling of the division of two numbers.*
hardhat/console.sol
// SPDX-License-Identifier: MITpragma solidity >= 0.4.22 <0.9.0;library console {address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);function _sendLogPayload(bytes memory payload) private view {uint256 payloadLength = payload.length;address consoleAddress = CONSOLE_ADDRESS;assembly {let payloadStart := add(payload, 32)let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)}}function log() internal view {_sendLogPayload(abi.encodeWithSignature("log()"));}function logInt(int256 p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(int256)", p0));}function logUint(uint256 p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));}function logString(string memory p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(string)", p0));}function logBool(bool p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));}function logAddress(address p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(address)", p0));}function logBytes(bytes memory p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env"}]},{"type":"error","name":"AdminRoleRequired","inputs":[]},{"type":"event","name":"AllowedEnvAdded","inputs":[{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env","indexed":false}],"anonymous":false},{"type":"event","name":"AllowedEnvRemoved","inputs":[{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetContract","inputs":[{"type":"bytes32","name":"typ","internalType":"bytes32","indexed":false},{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env","indexed":false},{"type":"address","name":"addr","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_WALLET_ORACLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_WALLET_REGISTRY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PKP_NFT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PKP_NFT_PERMISSION","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addAllowedEnv","inputs":[{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getContract","inputs":[{"type":"bytes32","name":"typ","internalType":"bytes32"},{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeAllowedEnv","inputs":[{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAdmin","inputs":[{"type":"address","name":"newAdmin","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setContract","inputs":[{"type":"bytes32","name":"typ","internalType":"bytes32"},{"type":"uint8","name":"env","internalType":"enum DomainWalletContractResolver.Env"},{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"typeAddresses","inputs":[{"type":"bytes32","name":"","internalType":"bytes32"},{"type":"uint8","name":"","internalType":"enum DomainWalletContractResolver.Env"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b5060405162001f3838038062001f38833981810160405281019062000037919062000490565b620000697fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42336200019c60201b60201c565b6200009b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4280620001b260201b60201c565b6001806000836003811115620000b657620000b5620004c2565b5b6003811115620000cb57620000ca620004c2565b5b815260200190815260200160002060006101000a81548160ff0219169083151502179055507f839ad2743d4062df579edf3818f642b71ee0688a35d6bc4438ef5314cece80158160405162000121919062000542565b60405180910390a16200015f7fb7b4fde9944d3c13e9a78835431c33a5084d90a7f0c73def76d7886315fe87b06200021560201b62000aee1760201c565b620001957fb430b9d3b47c909ca5dca1667ae14dff40a1d1dbe85ac6381d1cbf4d6dc43e286200021560201b62000aee1760201c565b5062000597565b620001ae8282620002b860201b60201c565b5050565b6000620001c583620003a960201b60201c565b905081600080858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b620002b5816040516024016200022c91906200057a565b6040516020818303038152906040527f27b7cf85000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050620003c860201b60201c565b50565b620002ca8282620003f160201b60201c565b620003a557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200034a6200045b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000806000838152602001908152602001600020600101549050919050565b60008151905060006a636f6e736f6c652e6c6f679050602083016000808483855afa5050505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b600481106200047657600080fd5b50565b6000815190506200048a8162000468565b92915050565b600060208284031215620004a957620004a862000463565b5b6000620004b98482850162000479565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110620005055762000504620004c2565b5b50565b60008190506200051882620004f1565b919050565b60006200052a8262000508565b9050919050565b6200053c816200051d565b82525050565b600060208201905062000559600083018462000531565b92915050565b6000819050919050565b62000574816200055f565b82525050565b600060208201905062000591600083018462000569565b92915050565b61199180620005a76000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806372823fa7116100a25780638e8dfd16116100715780638e8dfd16146102cb57806391d14854146102fb578063a217fddf1461032b578063bef762fc14610349578063d547741f1461036757610116565b806372823fa71461025757806374bc81391461027557806375b238fc146102915780638deb3893146102af57610116565b806336568abe116100e957806336568abe146101b55780633ebf7985146101d15780634216e73a1461020157806351ad0a801461021f578063704b6c021461023b57610116565b8063013f428d1461011b57806301ffc9a714610139578063248a9ca3146101695780632f2ff15d14610199575b600080fd5b610123610383565b60405161013091906110fe565b60405180910390f35b610153600480360381019061014e9190611176565b6103a7565b60405161016091906111be565b60405180910390f35b610183600480360381019061017e9190611205565b610421565b60405161019091906110fe565b60405180910390f35b6101b360048036038101906101ae9190611290565b610440565b005b6101cf60048036038101906101ca9190611290565b610461565b005b6101eb60048036038101906101e691906112f5565b6104e4565b6040516101f89190611344565b60405180910390f35b610209610526565b60405161021691906110fe565b60405180910390f35b6102396004803603810190610234919061135f565b61054a565b005b610255600480360381019061025091906113b2565b6106fc565b005b61025f6107b3565b60405161026c91906110fe565b60405180910390f35b61028f600480360381019061028a91906113df565b6107d7565b005b6102996108c0565b6040516102a691906110fe565b60405180910390f35b6102c960048036038101906102c491906113df565b6108e4565b005b6102e560048036038101906102e091906112f5565b6109c5565b6040516102f29190611344565b60405180910390f35b61031560048036038101906103109190611290565b610a38565b60405161032291906111be565b60405180910390f35b610333610aa2565b60405161034091906110fe565b60405180910390f35b610351610aa9565b60405161035e91906110fe565b60405180910390f35b610381600480360381019061037c9190611290565b610acd565b005b7fb7b4fde9944d3c13e9a78835431c33a5084d90a7f0c73def76d7886315fe87b081565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061041a575061041982610b87565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b61044982610421565b61045281610bf1565b61045c8383610c05565b505050565b610469610ce5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146104d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cd9061148f565b60405180910390fd5b6104e08282610ced565b5050565b60026020528160005260406000206020528060005260406000206000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f4c41ae454beb6bbbe9be50accc957a3b1536e48b835a86919af981b5244db75581565b6105747fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b6105aa576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60011515600160008460038111156105c5576105c46114af565b5b60038111156105d7576105d66114af565b5b815260200190815260200160002060009054906101000a900460ff16151514610635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062c90611550565b60405180910390fd5b8060026000858152602001908152602001600020600084600381111561065e5761065d6114af565b5b60038111156106705761066f6114af565b5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f33f014890f109229bbcf8dd47204c153a2c0ff1c572a61de220d10336530f53d8383836040516106ef939291906115b8565b60405180910390a1505050565b6107267fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b61075c576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107867fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610c05565b6107b07fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610ced565b50565b7fc293b28944ab4199ad0f77d42d49e33b15d60cc12ed2a0b94a0db1d0b719f56181565b6108017fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b610837576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180600083600381111561084f5761084e6114af565b5b6003811115610861576108606114af565b5b815260200190815260200160002060006101000a81548160ff0219169083151502179055507f839ad2743d4062df579edf3818f642b71ee0688a35d6bc4438ef5314cece8015816040516108b591906115ef565b60405180910390a150565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b61090e7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b610944576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600082600381111561095b5761095a6114af565b5b600381111561096d5761096c6114af565b5b815260200190815260200160002060006101000a81549060ff02191690557f3f178f17dae6caf8ca09c4857502baf7744e8597de42d6596476fe9e06b8ad47816040516109ba91906115ef565b60405180910390a150565b60006002600084815260200190815260200160002060008360038111156109ef576109ee6114af565b5b6003811115610a0157610a006114af565b5b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b7fb430b9d3b47c909ca5dca1667ae14dff40a1d1dbe85ac6381d1cbf4d6dc43e2881565b610ad682610421565b610adf81610bf1565b610ae98383610ced565b505050565b610b8481604051602401610b0291906110fe565b6040516020818303038152906040527f27b7cf85000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610dce565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610c0281610bfd610ce5565b610df7565b50565b610c0f8282610a38565b610ce157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c86610ce5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610cf78282610a38565b15610dca57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d6f610ce5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008151905060006a636f6e736f6c652e6c6f679050602083016000808483855afa5050505050565b610e018282610a38565b610e7857610e0e81610e7c565b610e1c8360001c6020610ea9565b604051602001610e2d929190611713565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f9190611797565b60405180910390fd5b5050565b6060610ea28273ffffffffffffffffffffffffffffffffffffffff16601460ff16610ea9565b9050919050565b606060006002836002610ebc91906117f2565b610ec69190611834565b67ffffffffffffffff811115610edf57610ede611868565b5b6040519080825280601f01601f191660200182016040528015610f115781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610f4957610f48611897565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610fad57610fac611897565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610fed91906117f2565b610ff79190611834565b90505b6001811115611097577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061103957611038611897565b5b1a60f81b8282815181106110505761104f611897565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611090906118c6565b9050610ffa565b50600084146110db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d29061193b565b60405180910390fd5b8091505092915050565b6000819050919050565b6110f8816110e5565b82525050565b600060208201905061111360008301846110ef565b92915050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111538161111e565b811461115e57600080fd5b50565b6000813590506111708161114a565b92915050565b60006020828403121561118c5761118b611119565b5b600061119a84828501611161565b91505092915050565b60008115159050919050565b6111b8816111a3565b82525050565b60006020820190506111d360008301846111af565b92915050565b6111e2816110e5565b81146111ed57600080fd5b50565b6000813590506111ff816111d9565b92915050565b60006020828403121561121b5761121a611119565b5b6000611229848285016111f0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061125d82611232565b9050919050565b61126d81611252565b811461127857600080fd5b50565b60008135905061128a81611264565b92915050565b600080604083850312156112a7576112a6611119565b5b60006112b5858286016111f0565b92505060206112c68582860161127b565b9150509250929050565b600481106112dd57600080fd5b50565b6000813590506112ef816112d0565b92915050565b6000806040838503121561130c5761130b611119565b5b600061131a858286016111f0565b925050602061132b858286016112e0565b9150509250929050565b61133e81611252565b82525050565b60006020820190506113596000830184611335565b92915050565b60008060006060848603121561137857611377611119565b5b6000611386868287016111f0565b9350506020611397868287016112e0565b92505060406113a88682870161127b565b9150509250925092565b6000602082840312156113c8576113c7611119565b5b60006113d68482850161127b565b91505092915050565b6000602082840312156113f5576113f4611119565b5b6000611403848285016112e0565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611479602f8361140c565b91506114848261141d565b604082019050919050565b600060208201905081810360008301526114a88161146c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f5468652070726f766964656420456e76206973206e6f742076616c696420666f60008201527f72207468697320636f6e74726163740000000000000000000000000000000000602082015250565b600061153a602f8361140c565b9150611545826114de565b604082019050919050565b600060208201905081810360008301526115698161152d565b9050919050565b60048110611581576115806114af565b5b50565b600081905061159282611570565b919050565b60006115a282611584565b9050919050565b6115b281611597565b82525050565b60006060820190506115cd60008301866110ef565b6115da60208301856115a9565b6115e76040830184611335565b949350505050565b600060208201905061160460008301846115a9565b92915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600061164b60178361160a565b915061165682611615565b601782019050919050565b600081519050919050565b60005b8381101561168a57808201518184015260208101905061166f565b60008484015250505050565b60006116a182611661565b6116ab818561160a565b93506116bb81856020860161166c565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006116fd60118361160a565b9150611708826116c7565b601182019050919050565b600061171e8261163e565b915061172a8285611696565b9150611735826116f0565b91506117418284611696565b91508190509392505050565b6000601f19601f8301169050919050565b600061176982611661565b611773818561140c565b935061178381856020860161166c565b61178c8161174d565b840191505092915050565b600060208201905081810360008301526117b1818461175e565b905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117fd826117b9565b9150611808836117b9565b9250828202611816816117b9565b9150828204841483151761182d5761182c6117c3565b5b5092915050565b600061183f826117b9565b915061184a836117b9565b9250828201905080821115611862576118616117c3565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006118d1826117b9565b9150600082036118e4576118e36117c3565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061192560208361140c565b9150611930826118ef565b602082019050919050565b6000602082019050818103600083015261195481611918565b905091905056fea2646970667358221220351909596cb228bcf3640c7606bf2bdfb428d9e70be1ab7ea5b08366749cace264736f6c634300081100330000000000000000000000000000000000000000000000000000000000000001
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c806372823fa7116100a25780638e8dfd16116100715780638e8dfd16146102cb57806391d14854146102fb578063a217fddf1461032b578063bef762fc14610349578063d547741f1461036757610116565b806372823fa71461025757806374bc81391461027557806375b238fc146102915780638deb3893146102af57610116565b806336568abe116100e957806336568abe146101b55780633ebf7985146101d15780634216e73a1461020157806351ad0a801461021f578063704b6c021461023b57610116565b8063013f428d1461011b57806301ffc9a714610139578063248a9ca3146101695780632f2ff15d14610199575b600080fd5b610123610383565b60405161013091906110fe565b60405180910390f35b610153600480360381019061014e9190611176565b6103a7565b60405161016091906111be565b60405180910390f35b610183600480360381019061017e9190611205565b610421565b60405161019091906110fe565b60405180910390f35b6101b360048036038101906101ae9190611290565b610440565b005b6101cf60048036038101906101ca9190611290565b610461565b005b6101eb60048036038101906101e691906112f5565b6104e4565b6040516101f89190611344565b60405180910390f35b610209610526565b60405161021691906110fe565b60405180910390f35b6102396004803603810190610234919061135f565b61054a565b005b610255600480360381019061025091906113b2565b6106fc565b005b61025f6107b3565b60405161026c91906110fe565b60405180910390f35b61028f600480360381019061028a91906113df565b6107d7565b005b6102996108c0565b6040516102a691906110fe565b60405180910390f35b6102c960048036038101906102c491906113df565b6108e4565b005b6102e560048036038101906102e091906112f5565b6109c5565b6040516102f29190611344565b60405180910390f35b61031560048036038101906103109190611290565b610a38565b60405161032291906111be565b60405180910390f35b610333610aa2565b60405161034091906110fe565b60405180910390f35b610351610aa9565b60405161035e91906110fe565b60405180910390f35b610381600480360381019061037c9190611290565b610acd565b005b7fb7b4fde9944d3c13e9a78835431c33a5084d90a7f0c73def76d7886315fe87b081565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061041a575061041982610b87565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b61044982610421565b61045281610bf1565b61045c8383610c05565b505050565b610469610ce5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146104d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cd9061148f565b60405180910390fd5b6104e08282610ced565b5050565b60026020528160005260406000206020528060005260406000206000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f4c41ae454beb6bbbe9be50accc957a3b1536e48b835a86919af981b5244db75581565b6105747fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b6105aa576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60011515600160008460038111156105c5576105c46114af565b5b60038111156105d7576105d66114af565b5b815260200190815260200160002060009054906101000a900460ff16151514610635576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062c90611550565b60405180910390fd5b8060026000858152602001908152602001600020600084600381111561065e5761065d6114af565b5b60038111156106705761066f6114af565b5b815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f33f014890f109229bbcf8dd47204c153a2c0ff1c572a61de220d10336530f53d8383836040516106ef939291906115b8565b60405180910390a1505050565b6107267fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b61075c576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107867fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610c05565b6107b07fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610ced565b50565b7fc293b28944ab4199ad0f77d42d49e33b15d60cc12ed2a0b94a0db1d0b719f56181565b6108017fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b610837576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180600083600381111561084f5761084e6114af565b5b6003811115610861576108606114af565b5b815260200190815260200160002060006101000a81548160ff0219169083151502179055507f839ad2743d4062df579edf3818f642b71ee0688a35d6bc4438ef5314cece8015816040516108b591906115ef565b60405180910390a150565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b61090e7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610a38565b610944576040517fc890f84a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600082600381111561095b5761095a6114af565b5b600381111561096d5761096c6114af565b5b815260200190815260200160002060006101000a81549060ff02191690557f3f178f17dae6caf8ca09c4857502baf7744e8597de42d6596476fe9e06b8ad47816040516109ba91906115ef565b60405180910390a150565b60006002600084815260200190815260200160002060008360038111156109ef576109ee6114af565b5b6003811115610a0157610a006114af565b5b815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b7fb430b9d3b47c909ca5dca1667ae14dff40a1d1dbe85ac6381d1cbf4d6dc43e2881565b610ad682610421565b610adf81610bf1565b610ae98383610ced565b505050565b610b8481604051602401610b0291906110fe565b6040516020818303038152906040527f27b7cf85000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610dce565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610c0281610bfd610ce5565b610df7565b50565b610c0f8282610a38565b610ce157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c86610ce5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610cf78282610a38565b15610dca57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610d6f610ce5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008151905060006a636f6e736f6c652e6c6f679050602083016000808483855afa5050505050565b610e018282610a38565b610e7857610e0e81610e7c565b610e1c8360001c6020610ea9565b604051602001610e2d929190611713565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f9190611797565b60405180910390fd5b5050565b6060610ea28273ffffffffffffffffffffffffffffffffffffffff16601460ff16610ea9565b9050919050565b606060006002836002610ebc91906117f2565b610ec69190611834565b67ffffffffffffffff811115610edf57610ede611868565b5b6040519080825280601f01601f191660200182016040528015610f115781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610f4957610f48611897565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610fad57610fac611897565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610fed91906117f2565b610ff79190611834565b90505b6001811115611097577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061103957611038611897565b5b1a60f81b8282815181106110505761104f611897565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611090906118c6565b9050610ffa565b50600084146110db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d29061193b565b60405180910390fd5b8091505092915050565b6000819050919050565b6110f8816110e5565b82525050565b600060208201905061111360008301846110ef565b92915050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111538161111e565b811461115e57600080fd5b50565b6000813590506111708161114a565b92915050565b60006020828403121561118c5761118b611119565b5b600061119a84828501611161565b91505092915050565b60008115159050919050565b6111b8816111a3565b82525050565b60006020820190506111d360008301846111af565b92915050565b6111e2816110e5565b81146111ed57600080fd5b50565b6000813590506111ff816111d9565b92915050565b60006020828403121561121b5761121a611119565b5b6000611229848285016111f0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061125d82611232565b9050919050565b61126d81611252565b811461127857600080fd5b50565b60008135905061128a81611264565b92915050565b600080604083850312156112a7576112a6611119565b5b60006112b5858286016111f0565b92505060206112c68582860161127b565b9150509250929050565b600481106112dd57600080fd5b50565b6000813590506112ef816112d0565b92915050565b6000806040838503121561130c5761130b611119565b5b600061131a858286016111f0565b925050602061132b858286016112e0565b9150509250929050565b61133e81611252565b82525050565b60006020820190506113596000830184611335565b92915050565b60008060006060848603121561137857611377611119565b5b6000611386868287016111f0565b9350506020611397868287016112e0565b92505060406113a88682870161127b565b9150509250925092565b6000602082840312156113c8576113c7611119565b5b60006113d68482850161127b565b91505092915050565b6000602082840312156113f5576113f4611119565b5b6000611403848285016112e0565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000611479602f8361140c565b91506114848261141d565b604082019050919050565b600060208201905081810360008301526114a88161146c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f5468652070726f766964656420456e76206973206e6f742076616c696420666f60008201527f72207468697320636f6e74726163740000000000000000000000000000000000602082015250565b600061153a602f8361140c565b9150611545826114de565b604082019050919050565b600060208201905081810360008301526115698161152d565b9050919050565b60048110611581576115806114af565b5b50565b600081905061159282611570565b919050565b60006115a282611584565b9050919050565b6115b281611597565b82525050565b60006060820190506115cd60008301866110ef565b6115da60208301856115a9565b6115e76040830184611335565b949350505050565b600060208201905061160460008301846115a9565b92915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600061164b60178361160a565b915061165682611615565b601782019050919050565b600081519050919050565b60005b8381101561168a57808201518184015260208101905061166f565b60008484015250505050565b60006116a182611661565b6116ab818561160a565b93506116bb81856020860161166c565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006116fd60118361160a565b9150611708826116c7565b601182019050919050565b600061171e8261163e565b915061172a8285611696565b9150611735826116f0565b91506117418284611696565b91508190509392505050565b6000601f19601f8301169050919050565b600061176982611661565b611773818561140c565b935061178381856020860161166c565b61178c8161174d565b840191505092915050565b600060208201905081810360008301526117b1818461175e565b905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117fd826117b9565b9150611808836117b9565b9250828202611816816117b9565b9150828204841483151761182d5761182c6117c3565b5b5092915050565b600061183f826117b9565b915061184a836117b9565b9250828201905080821115611862576118616117c3565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006118d1826117b9565b9150600082036118e4576118e36117c3565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061192560208361140c565b9150611930826118ef565b602082019050919050565b6000602082019050818103600083015261195481611918565b905091905056fea2646970667358221220351909596cb228bcf3640c7606bf2bdfb428d9e70be1ab7ea5b08366749cace264736f6c63430008110033