Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Update Pod Admin | 16785183 | 723 days ago | IN | 0 ETH | 0.00230294 | ||||
Update Pod Admin | 15943041 | 840 days ago | IN | 0 ETH | 0.00057373 | ||||
Update Pod Admin | 15790293 | 862 days ago | IN | 0 ETH | 0.00116205 | ||||
Transfer Ownersh... | 15218582 | 948 days ago | IN | 0 ETH | 0.0021453 | ||||
Update Pod Ens R... | 15122679 | 963 days ago | IN | 0 ETH | 0.00232664 | ||||
Create Pod | 15057459 | 973 days ago | IN | 0 ETH | 0.12241977 | ||||
Create Pod | 15057416 | 973 days ago | IN | 0 ETH | 0.08958792 | ||||
Create Pod | 15057399 | 973 days ago | IN | 0 ETH | 0.08313519 | ||||
Update Pod Admin | 14933376 | 995 days ago | IN | 0 ETH | 0.00251377 | ||||
Create Pod | 14933348 | 995 days ago | IN | 0 ETH | 0.05624805 | ||||
Create Pod | 14921659 | 997 days ago | IN | 0 ETH | 0.06659933 | ||||
Create Pod | 14899084 | 1000 days ago | IN | 0 ETH | 0.06445472 | ||||
Create Pod | 14898911 | 1000 days ago | IN | 0 ETH | 0.06488265 | ||||
Create Pod | 14896663 | 1001 days ago | IN | 0 ETH | 0.053708 | ||||
Create Pod | 14764018 | 1022 days ago | IN | 0 ETH | 0.11884544 | ||||
Update Pod Admin | 14749026 | 1025 days ago | IN | 0 ETH | 0.00210531 | ||||
Create Pod | 14705518 | 1032 days ago | IN | 0 ETH | 0.0521684 | ||||
Create Pod | 14681326 | 1035 days ago | IN | 0 ETH | 0.05283884 | ||||
Create Pod | 14520264 | 1061 days ago | IN | 0 ETH | 0.10391464 | ||||
Create Pod | 14515807 | 1061 days ago | IN | 0 ETH | 0.04683145 | ||||
Create Pod | 14508911 | 1062 days ago | IN | 0 ETH | 0.04883339 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ControllerV1
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.7; /* solhint-disable indent */ import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interfaces/IControllerV1.sol"; import "./interfaces/IMemberToken.sol"; import "./interfaces/IControllerRegistry.sol"; import "./SafeTeller.sol"; import "./ens/IPodEnsRegistrar.sol"; contract ControllerV1 is IControllerV1, SafeTeller, Ownable { event CreatePod(uint256 podId, address safe, address admin, string ensName); event UpdatePodAdmin(uint256 podId, address admin); IMemberToken public immutable memberToken; IControllerRegistry public immutable controllerRegistry; IPodEnsRegistrar public podEnsRegistrar; string public constant VERSION = "1.2.0"; mapping(address => uint256) public safeToPodId; mapping(uint256 => address) public podIdToSafe; mapping(uint256 => address) public podAdmin; mapping(uint256 => bool) public isTransferLocked; uint8 internal constant CREATE_EVENT = 0x01; /** * @dev Will instantiate safe teller with gnosis master and proxy addresses * @param _memberToken The address of the MemberToken contract * @param _controllerRegistry The address of the ControllerRegistry contract * @param _proxyFactoryAddress The proxy factory address * @param _gnosisMasterAddress The gnosis master address */ constructor( address _memberToken, address _controllerRegistry, address _proxyFactoryAddress, address _gnosisMasterAddress, address _podEnsRegistrar, address _fallbackHandlerAddress ) SafeTeller( _proxyFactoryAddress, _gnosisMasterAddress, _fallbackHandlerAddress ) { require(_memberToken != address(0), "Invalid address"); require(_controllerRegistry != address(0), "Invalid address"); require(_proxyFactoryAddress != address(0), "Invalid address"); require(_gnosisMasterAddress != address(0), "Invalid address"); require(_podEnsRegistrar != address(0), "Invalid address"); require(_fallbackHandlerAddress != address(0), "Invalid address"); memberToken = IMemberToken(_memberToken); controllerRegistry = IControllerRegistry(_controllerRegistry); podEnsRegistrar = IPodEnsRegistrar(_podEnsRegistrar); } function updatePodEnsRegistrar(address _podEnsRegistrar) external override onlyOwner { require(_podEnsRegistrar != address(0), "Invalid address"); podEnsRegistrar = IPodEnsRegistrar(_podEnsRegistrar); } /** * @param _members The addresses of the members of the pod * @param threshold The number of members that are required to sign a transaction * @param _admin The address of the pod admin * @param _label label hash of pod name (i.e labelhash('mypod')) * @param _ensString string of pod ens name (i.e.'mypod.pod.xyz') */ function createPod( address[] memory _members, uint256 threshold, address _admin, bytes32 _label, string memory _ensString, uint256 expectedPodId, string memory _imageUrl ) external override { address safe = createSafe(_members, threshold); _createPod( _members, safe, _admin, _label, _ensString, expectedPodId, _imageUrl ); } /** * @dev Used to create a pod with an existing safe * @dev Will automatically distribute membership NFTs to current safe members * @param _admin The address of the pod admin * @param _safe The address of existing safe * @param _label label hash of pod name (i.e labelhash('mypod')) * @param _ensString string of pod ens name (i.e.'mypod.pod.xyz') */ function createPodWithSafe( address _admin, address _safe, bytes32 _label, string memory _ensString, uint256 expectedPodId, string memory _imageUrl ) external override { require(_safe != address(0), "invalid safe address"); require(safeToPodId[_safe] == 0, "safe already in use"); require(isSafeModuleEnabled(_safe), "safe module must be enabled"); require( isSafeMember(_safe, msg.sender) || msg.sender == _safe, "caller must be safe or member" ); address[] memory members = getSafeMembers(_safe); _createPod( members, _safe, _admin, _label, _ensString, expectedPodId, _imageUrl ); } /** * @param _members The addresses of the members of the pod * @param _admin The address of the pod admin * @param _safe The address of existing safe * @param _label label hash of pod name (i.e labelhash('mypod')) * @param _ensString string of pod ens name (i.e.'mypod.pod.xyz') */ function _createPod( address[] memory _members, address _safe, address _admin, bytes32 _label, string memory _ensString, uint256 expectedPodId, string memory _imageUrl ) private { // add create event flag to token data bytes memory data = new bytes(1); data[0] = bytes1(uint8(CREATE_EVENT)); uint256 podId = memberToken.createPod(_members, data); // The imageUrl has an expected pod ID, but we need to make sure it aligns with the actual pod ID require(podId == expectedPodId, "pod id didn't match, try again"); emit CreatePod(podId, _safe, _admin, _ensString); emit UpdatePodAdmin(podId, _admin); if (_admin != address(0)) { // will lock safe modules if admin exists setModuleLock(_safe, true); podAdmin[podId] = _admin; } podIdToSafe[podId] = _safe; safeToPodId[_safe] = podId; // setup pod ENS address reverseRegistrar = podEnsRegistrar.registerPod( _label, _safe, msg.sender ); setupSafeReverseResolver(_safe, reverseRegistrar, _ensString); // Node is how ENS identifies names, we need that to setText bytes32 node = podEnsRegistrar.getEnsNode(_label); podEnsRegistrar.setText(node, "avatar", _imageUrl); podEnsRegistrar.setText(node, "podId", Strings.toString(podId)); } /** * @dev Allows admin to unlock the safe modules and allow them to be edited by members * @param _podId The id number of the pod * @param _isLocked true - pod modules cannot be added/removed */ function setPodModuleLock(uint256 _podId, bool _isLocked) external override { require( msg.sender == podAdmin[_podId], "Must be admin to set module lock" ); setModuleLock(podIdToSafe[_podId], _isLocked); } /** * @param _podId The id number of the pod * @param _newAdmin The address of the new pod admin */ function updatePodAdmin(uint256 _podId, address _newAdmin) external override { address admin = podAdmin[_podId]; address safe = podIdToSafe[_podId]; require(safe != address(0), "Pod doesn't exist"); // if there is no admin it can only be added by safe if (admin == address(0)) { require(msg.sender == safe, "Only safe can add new admin"); } else { require(msg.sender == admin, "Only admin can update admin"); } // set module lock to true for non zero _newAdmin setModuleLock(safe, _newAdmin != address(0)); podAdmin[_podId] = _newAdmin; emit UpdatePodAdmin(_podId, _newAdmin); } /** * @param _podId The id number of the pod * @param _isTransferLocked The address of the new pod admin */ function setPodTransferLock(uint256 _podId, bool _isTransferLocked) external override { address admin = podAdmin[_podId]; address safe = podIdToSafe[_podId]; // if no pod admin it can only be set by safe if (admin == address(0)) { require(msg.sender == safe, "Only safe can set transfer lock"); } else { // if admin then it can be set by admin or safe require( msg.sender == admin || msg.sender == safe, "Only admin or safe can set transfer lock" ); } // set podid to transfer lock bool isTransferLocked[_podId] = _isTransferLocked; } /** * @dev This will nullify all pod state on this controller * @dev Update state on _newController * @dev Update controller to _newController in Safe and MemberToken * @param _podId The id number of the pod * @param _newController The address of the new pod controller * @param _prevModule The module that points to the orca module in the safe's ModuleManager linked list */ function migratePodController( uint256 _podId, address _newController, address _prevModule ) external override { require(_newController != address(0), "Invalid address"); require( controllerRegistry.isRegistered(_newController), "Controller not registered" ); address admin = podAdmin[_podId]; address safe = podIdToSafe[_podId]; require( msg.sender == admin || msg.sender == safe, "User not authorized" ); IControllerBase newController = IControllerBase(_newController); // nullify current pod state podAdmin[_podId] = address(0); podIdToSafe[_podId] = address(0); safeToPodId[safe] = 0; // update controller in MemberToken memberToken.migrateMemberController(_podId, _newController); // update safe module to _newController migrateSafeTeller(safe, _newController, _prevModule); // update pod state in _newController newController.updatePodState(_podId, admin, safe); } /** * @dev This is called by another version of controller to migrate a pod to this version * @dev Will only accept calls from registered controllers * @dev Can only be called once. * @param _podId The id number of the pod * @param _podAdmin The address of the pod admin * @param _safeAddress The address of the safe */ function updatePodState( uint256 _podId, address _podAdmin, address _safeAddress ) external override { require(_safeAddress != address(0), "Invalid address"); require( controllerRegistry.isRegistered(msg.sender), "Controller not registered" ); require( podAdmin[_podId] == address(0) && podIdToSafe[_podId] == address(0) && safeToPodId[_safeAddress] == 0, "Pod already exists" ); // if there is a pod admin, set state and lock modules if (_podAdmin != address(0)) { podAdmin[_podId] = _podAdmin; setModuleLock(_safeAddress, true); } podIdToSafe[_podId] = _safeAddress; safeToPodId[_safeAddress] = _podId; setSafeTellerAsGuard(_safeAddress); emit UpdatePodAdmin(_podId, _podAdmin); } /** * @param operator The address that initiated the action * @param from The address sending the membership token * @param to The address recieveing the membership token * @param ids An array of membership token ids to be transfered * @param data Passes a flag for an initial creation event */ function beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory, bytes memory data ) external override { require(msg.sender == address(memberToken), "Not Authorized"); // if create event than side effects have been pre-handled // only recognise data flags from this controller if (operator == address(this) && uint8(data[0]) == CREATE_EVENT) return; for (uint256 i = 0; i < ids.length; i += 1) { uint256 podId = ids[i]; address safe = podIdToSafe[podId]; address admin = podAdmin[podId]; if (from == address(0)) { // mint event // there are no rules operator must be admin, safe or controller require( operator == safe || operator == admin || operator == address(this), "No Rules Set" ); onMint(to, safe); } else if (to == address(0)) { // burn event // there are no rules operator must be admin, safe or controller require( operator == safe || operator == admin || operator == address(this), "No Rules Set" ); onBurn(from, safe); } else { // pod cannot be locked require( isTransferLocked[podId] == false, "Pod Is Transfer Locked" ); // transfer event onTransfer(from, to, safe); } } } }
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; /// @title Enum - Collection of enums /// @author Richard Meissner - <[email protected]> contract Enum { enum Operation {Call, DelegateCall} }
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; import "@gnosis.pm/safe-contracts/contracts/common/Enum.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "../interfaces/IGuard.sol"; abstract contract BaseGuard is IERC165 { function supportsInterface(bytes4 interfaceId) external pure override returns (bool) { return interfaceId == type(IGuard).interfaceId || // 0xe6d7a83a interfaceId == type(IERC165).interfaceId; // 0x01ffc9a7 } /// Module transactions only use the first four parameters: to, value, data, and operation. /// Module.sol hardcodes the remaining parameters as 0 since they are not used for module transactions. /// This interface is used to maintain compatibilty with Gnosis Safe transaction guards. function checkTransaction( address to, uint256 value, bytes memory data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address payable refundReceiver, bytes memory signatures, address msgSender ) external virtual; function checkAfterExecution(bytes32 txHash, bool success) external virtual; }
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; import "@gnosis.pm/safe-contracts/contracts/common/Enum.sol"; interface IGuard { function checkTransaction( address to, uint256 value, bytes memory data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address payable refundReceiver, bytes memory signatures, address msgSender ) external; function checkAfterExecution(bytes32 txHash, bool success) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @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"); (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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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); }
pragma solidity 0.8.7; import "@openzeppelin/contracts/utils/Address.sol"; import "./interfaces/IGnosisSafe.sol"; import "./interfaces/IGnosisSafeProxyFactory.sol"; import "@gnosis.pm/zodiac/contracts/guard/BaseGuard.sol"; contract SafeTeller is BaseGuard { using Address for address; // mainnet: 0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B; address public immutable proxyFactoryAddress; // mainnet: 0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F; address public immutable gnosisMasterAddress; address public immutable fallbackHandlerAddress; string public constant FUNCTION_SIG_SETUP = "setup(address[],uint256,address,bytes,address,address,uint256,address)"; string public constant FUNCTION_SIG_EXEC = "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)"; string public constant FUNCTION_SIG_ENABLE = "delegateSetup(address)"; bytes4 public constant ENCODED_SIG_ENABLE_MOD = bytes4(keccak256("enableModule(address)")); bytes4 public constant ENCODED_SIG_DISABLE_MOD = bytes4(keccak256("disableModule(address,address)")); bytes4 public constant ENCODED_SIG_SET_GUARD = bytes4(keccak256("setGuard(address)")); address internal constant SENTINEL = address(0x1); // pods with admin have modules locked by default mapping(address => bool) public areModulesLocked; /** * @param _proxyFactoryAddress The proxy factory address * @param _gnosisMasterAddress The gnosis master address */ constructor( address _proxyFactoryAddress, address _gnosisMasterAddress, address _fallbackHanderAddress ) { proxyFactoryAddress = _proxyFactoryAddress; gnosisMasterAddress = _gnosisMasterAddress; fallbackHandlerAddress = _fallbackHanderAddress; } /** * @param _safe The address of the safe * @param _newSafeTeller The address of the new safe teller contract */ function migrateSafeTeller( address _safe, address _newSafeTeller, address _prevModule ) internal { // add new safeTeller bytes memory enableData = abi.encodeWithSignature( "enableModule(address)", _newSafeTeller ); bool enableSuccess = IGnosisSafe(_safe).execTransactionFromModule( _safe, 0, enableData, IGnosisSafe.Operation.Call ); require(enableSuccess, "Migration failed on enable"); // validate prevModule of current safe teller (address[] memory moduleBuffer, ) = IGnosisSafe(_safe) .getModulesPaginated(_prevModule, 1); require(moduleBuffer[0] == address(this), "incorrect prevModule"); // disable current safeTeller bytes memory disableData = abi.encodeWithSignature( "disableModule(address,address)", _prevModule, address(this) ); bool disableSuccess = IGnosisSafe(_safe).execTransactionFromModule( _safe, 0, disableData, IGnosisSafe.Operation.Call ); require(disableSuccess, "Migration failed on disable"); } /** * @dev sets the safeteller as safe guard, called after migration * @param _safe The address of the safe */ function setSafeTellerAsGuard(address _safe) internal { bytes memory transferData = abi.encodeWithSignature( "setGuard(address)", address(this) ); bool guardSuccess = IGnosisSafe(_safe).execTransactionFromModule( _safe, 0, transferData, IGnosisSafe.Operation.Call ); require(guardSuccess, "Could not enable guard"); } function getSafeMembers(address safe) public view returns (address[] memory) { return IGnosisSafe(safe).getOwners(); } function isSafeModuleEnabled(address safe) public view returns (bool) { return IGnosisSafe(safe).isModuleEnabled(address(this)); } function isSafeMember(address safe, address member) public view returns (bool) { return IGnosisSafe(safe).isOwner(member); } /** * @param _owners The addresses to be owners of the safe * @param _threshold The number of owners that are required to sign a transaciton * @return safeAddress The address of the new safe */ function createSafe(address[] memory _owners, uint256 _threshold) internal returns (address safeAddress) { bytes memory data = abi.encodeWithSignature( FUNCTION_SIG_ENABLE, address(this) ); // encode the setup call that will be called on the new proxy safe // from the proxy factory bytes memory setupData = abi.encodeWithSignature( FUNCTION_SIG_SETUP, _owners, _threshold, this, data, fallbackHandlerAddress, address(0), uint256(0), address(0) ); try IGnosisSafeProxyFactory(proxyFactoryAddress).createProxy( gnosisMasterAddress, setupData ) returns (address newSafeAddress) { // add safe teller as guard setSafeTellerAsGuard(newSafeAddress); return newSafeAddress; } catch (bytes memory) { revert("Create Proxy With Data Failed"); } } /** * @param to The account address to add as an owner * @param safe The address of the safe */ function onMint(address to, address safe) internal { uint256 threshold = IGnosisSafe(safe).getThreshold(); bytes memory data = abi.encodeWithSignature( "addOwnerWithThreshold(address,uint256)", to, threshold ); bool success = IGnosisSafe(safe).execTransactionFromModule( safe, 0, data, IGnosisSafe.Operation.Call ); require(success, "Module Transaction Failed"); } /** * @param from The address to be removed as an owner * @param safe The address of the safe */ function onBurn(address from, address safe) internal { uint256 threshold = IGnosisSafe(safe).getThreshold(); address[] memory owners = IGnosisSafe(safe).getOwners(); //look for the address pointing to address from address prevFrom = address(0); for (uint256 i = 0; i < owners.length; i++) { if (owners[i] == from) { if (i == 0) { prevFrom = SENTINEL; } else { prevFrom = owners[i - 1]; } } } if (owners.length - 1 < threshold) threshold -= 1; bytes memory data = abi.encodeWithSignature( "removeOwner(address,address,uint256)", prevFrom, from, threshold ); bool success = IGnosisSafe(safe).execTransactionFromModule( safe, 0, data, IGnosisSafe.Operation.Call ); require(success, "Module Transaction Failed"); } /** * @param from The address being removed as an owner * @param to The address being added as an owner * @param safe The address of the safe */ function onTransfer( address from, address to, address safe ) internal { address[] memory owners = IGnosisSafe(safe).getOwners(); //look for the address pointing to address from address prevFrom; for (uint256 i = 0; i < owners.length; i++) { if (owners[i] == from) { if (i == 0) { prevFrom = SENTINEL; } else { prevFrom = owners[i - 1]; } } } bytes memory data = abi.encodeWithSignature( "swapOwner(address,address,address)", prevFrom, from, to ); bool success = IGnosisSafe(safe).execTransactionFromModule( safe, 0, data, IGnosisSafe.Operation.Call ); require(success, "Module Transaction Failed"); } /** * @dev This will execute a tx from the safe that will update the safe's ENS in the reverse resolver * @param safe safe address * @param reverseRegistrar The ENS default reverseRegistar * @param _ensString string of pod ens name (i.e.'mypod.pod.xyz') */ function setupSafeReverseResolver( address safe, address reverseRegistrar, string memory _ensString ) internal { bytes memory data = abi.encodeWithSignature( "setName(string)", _ensString ); bool success = IGnosisSafe(safe).execTransactionFromModule( reverseRegistrar, 0, data, IGnosisSafe.Operation.Call ); require(success, "Module Transaction Failed"); } /** * @dev This will be called by the safe at tx time and prevent module disable on pods with admins * @param safe safe address * @param isLocked safe address */ function setModuleLock(address safe, bool isLocked) internal { areModulesLocked[safe] = isLocked; } /** * @dev This will be called by the safe at execution time time * @param to Destination address of Safe transaction. * @param value Ether value of Safe transaction. * @param data Data payload of Safe transaction. * @param operation Operation type of Safe transaction. * @param safeTxGas Gas that should be used for the Safe transaction. * @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund) * @param gasPrice Gas price that should be used for the payment calculation. * @param gasToken Token address (or 0 if ETH) that is used for the payment. * @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin). * @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v}) * @param msgSender Account executing safe transaction */ function checkTransaction( address to, uint256 value, bytes memory data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address payable refundReceiver, bytes memory signatures, address msgSender ) external view override { address safe = msg.sender; // if safe isn't locked return if (!areModulesLocked[safe]) return; if (data.length >= 4) { require( bytes4(data) != ENCODED_SIG_ENABLE_MOD, "Cannot Enable Modules" ); require( bytes4(data) != ENCODED_SIG_DISABLE_MOD, "Cannot Disable Modules" ); require( bytes4(data) != ENCODED_SIG_SET_GUARD, "Cannot Change Guard" ); } } function checkAfterExecution(bytes32, bool) external view override {} // TODO: move to library // Used in a delegate call to enable module add on setup function enableModule(address module) external { require(module == address(0)); } function delegateSetup(address _context) external { this.enableModule(_context); } }
pragma solidity 0.8.7; interface IPodEnsRegistrar { function getRootNode() external view returns (bytes32); function registerPod( bytes32 label, address podSafe, address podCreator ) external returns (address); function register(bytes32 label, address owner) external; function setText( bytes32 node, string calldata key, string calldata value ) external; function addressToNode(address input) external returns (bytes32); function getEnsNode(bytes32 label) external view returns (bytes32); }
pragma solidity 0.8.7; interface IControllerBase { /** * @param operator The account address that initiated the action * @param from The account address sending the membership token * @param to The account address recieving the membership token * @param ids An array of membership token ids to be transfered * @param amounts The amount of each membership token type to transfer * @param data Arbitrary data */ function beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) external; function updatePodState( uint256 _podId, address _podAdmin, address _safeAddress ) external; }
pragma solidity 0.8.7; interface IControllerRegistry{ /** * @param _controller Address to check if registered as a controller * @return Boolean representing if the address is a registered as a controller */ function isRegistered(address _controller) external view returns (bool); }
pragma solidity 0.8.7; import "./IControllerBase.sol"; interface IControllerV1 is IControllerBase { function updatePodEnsRegistrar(address _podEnsRegistrar) external; /** * @param _members The addresses of the members of the pod * @param threshold The number of members that are required to sign a transaction * @param _admin The address of the pod admin * @param _label label hash of pod name (i.e labelhash('mypod')) * @param _ensString string of pod ens name (i.e.'mypod.pod.xyz') */ function createPod( address[] memory _members, uint256 threshold, address _admin, bytes32 _label, string memory _ensString, uint256 expectedPodId, string memory _imageUrl ) external; /** * @dev Used to create a pod with an existing safe * @dev Will automatically distribute membership NFTs to current safe members * @param _admin The address of the pod admin * @param _safe The address of existing safe * @param _label label hash of pod name (i.e labelhash('mypod')) * @param _ensString string of pod ens name (i.e.'mypod.pod.xyz') */ function createPodWithSafe( address _admin, address _safe, bytes32 _label, string memory _ensString, uint256 expectedPodId, string memory _imageUrl ) external; /** * @dev Allows admin to unlock the safe modules and allow them to be edited by members * @param _podId The id number of the pod * @param _isLocked true - pod modules cannot be added/removed */ function setPodModuleLock(uint256 _podId, bool _isLocked) external; /** * @param _podId The id number of the pod * @param _isTransferLocked The address of the new pod admin */ function setPodTransferLock(uint256 _podId, bool _isTransferLocked) external; /** * @param _podId The id number of the pod * @param _newAdmin The address of the new pod admin */ function updatePodAdmin(uint256 _podId, address _newAdmin) external; /** * @dev This will nullify all pod state on this controller * @dev Update state on _newController * @dev Update controller to _newController in Safe and MemberToken * @param _podId The id number of the pod * @param _newController The address of the new pod controller * @param _prevModule The module that points to the orca module in the safe's ModuleManager linked list */ function migratePodController( uint256 _podId, address _newController, address _prevModule ) external; }
pragma solidity 0.8.7; interface IGnosisSafe { enum Operation {Call, DelegateCall} /// @dev Allows a Module to execute a Safe transaction without any further confirmations. /// @param to Destination address of module transaction. /// @param value Ether value of module transaction. /// @param data Data payload of module transaction. /// @param operation Operation type of module transaction. function execTransactionFromModule( address to, uint256 value, bytes calldata data, Operation operation ) external returns (bool success); /// @dev Returns array of owners. /// @return Array of Safe owners. function getOwners() external view returns (address[] memory); function isOwner(address owner) external view returns (bool); function getThreshold() external returns (uint256); /// @dev Returns array of modules. /// @param start Start of the page. /// @param pageSize Maximum number of modules that should be returned. /// @return array Array of modules. /// @return next Start of the next page. function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next); /// @dev Returns if an module is enabled /// @return True if the module is enabled function isModuleEnabled(address module) external view returns (bool); /// @dev Set a guard that checks transactions before execution /// @param guard The address of the guard to be used or the 0 address to disable the guard function setGuard(address guard) external; }
pragma solidity 0.8.7; interface IGnosisSafeProxyFactory { /// @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction. /// @param singleton Address of singleton contract. /// @param data Payload for message call sent to new proxy contract. function createProxy(address singleton, bytes memory data) external returns (address); }
pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; interface IMemberToken is IERC1155 { /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) external view returns (uint256); /** * @dev Indicates weither any token exist with a given id, or not. */ function exists(uint256 id) external view returns (bool); function getNextAvailablePodId() external view returns (uint256); /** * @param _podId The pod id number * @param _newController The address of the new controller */ function migrateMemberController(uint256 _podId, address _newController) external; /** * @param _account The account address to transfer the membership token to * @param _id The membership token id to mint * @param data Arbitrary data */ function mint( address _account, uint256 _id, bytes memory data ) external; /** * @param _accounts The account addresses to transfer the membership tokens to * @param _id The membership token id to mint * @param data Arbitrary data */ function mintSingleBatch( address[] memory _accounts, uint256 _id, bytes memory data ) external; function createPod(address[] memory _accounts, bytes memory data) external returns (uint256); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_memberToken","type":"address"},{"internalType":"address","name":"_controllerRegistry","type":"address"},{"internalType":"address","name":"_proxyFactoryAddress","type":"address"},{"internalType":"address","name":"_gnosisMasterAddress","type":"address"},{"internalType":"address","name":"_podEnsRegistrar","type":"address"},{"internalType":"address","name":"_fallbackHandlerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"podId","type":"uint256"},{"indexed":false,"internalType":"address","name":"safe","type":"address"},{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"string","name":"ensName","type":"string"}],"name":"CreatePod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"podId","type":"uint256"},{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"UpdatePodAdmin","type":"event"},{"inputs":[],"name":"ENCODED_SIG_DISABLE_MOD","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ENCODED_SIG_ENABLE_MOD","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ENCODED_SIG_SET_GUARD","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNCTION_SIG_ENABLE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNCTION_SIG_EXEC","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FUNCTION_SIG_SETUP","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"areModulesLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeTokenTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"bool","name":"","type":"bool"}],"name":"checkAfterExecution","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address payable","name":"refundReceiver","type":"address"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"internalType":"address","name":"msgSender","type":"address"}],"name":"checkTransaction","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controllerRegistry","outputs":[{"internalType":"contract IControllerRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_members","type":"address[]"},{"internalType":"uint256","name":"threshold","type":"uint256"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bytes32","name":"_label","type":"bytes32"},{"internalType":"string","name":"_ensString","type":"string"},{"internalType":"uint256","name":"expectedPodId","type":"uint256"},{"internalType":"string","name":"_imageUrl","type":"string"}],"name":"createPod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_safe","type":"address"},{"internalType":"bytes32","name":"_label","type":"bytes32"},{"internalType":"string","name":"_ensString","type":"string"},{"internalType":"uint256","name":"expectedPodId","type":"uint256"},{"internalType":"string","name":"_imageUrl","type":"string"}],"name":"createPodWithSafe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_context","type":"address"}],"name":"delegateSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"module","type":"address"}],"name":"enableModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fallbackHandlerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"}],"name":"getSafeMembers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gnosisMasterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"},{"internalType":"address","name":"member","type":"address"}],"name":"isSafeMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"safe","type":"address"}],"name":"isSafeModuleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTransferLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"memberToken","outputs":[{"internalType":"contract IMemberToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_podId","type":"uint256"},{"internalType":"address","name":"_newController","type":"address"},{"internalType":"address","name":"_prevModule","type":"address"}],"name":"migratePodController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"podAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"podEnsRegistrar","outputs":[{"internalType":"contract IPodEnsRegistrar","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"podIdToSafe","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyFactoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"safeToPodId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_podId","type":"uint256"},{"internalType":"bool","name":"_isLocked","type":"bool"}],"name":"setPodModuleLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_podId","type":"uint256"},{"internalType":"bool","name":"_isTransferLocked","type":"bool"}],"name":"setPodTransferLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_podId","type":"uint256"},{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"updatePodAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_podEnsRegistrar","type":"address"}],"name":"updatePodEnsRegistrar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_podId","type":"uint256"},{"internalType":"address","name":"_podAdmin","type":"address"},{"internalType":"address","name":"_safeAddress","type":"address"}],"name":"updatePodState","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b5060405162003edc38038062003edc8339810160408190526200003591620002df565b6001600160601b0319606085811b821660805284811b821660a05282901b1660c05262000069620000633390565b62000270565b6001600160a01b038616620000b75760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b6001600160a01b038516620001015760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000ae565b6001600160a01b0384166200014b5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000ae565b6001600160a01b038316620001955760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000ae565b6001600160a01b038216620001df5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000ae565b6001600160a01b038116620002295760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401620000ae565b50606094851b6001600160601b031990811660e0529390941b909216610100525050600280546001600160a01b0319166001600160a01b0390921691909117905562000360565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620002da57600080fd5b919050565b60008060008060008060c08789031215620002f957600080fd5b6200030487620002c2565b95506200031460208801620002c2565b94506200032460408801620002c2565b93506200033460608801620002c2565b92506200034460808801620002c2565b91506200035460a08801620002c2565b90509295509295509295565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c613af0620003ec6000396000818161053e01528181610ca401526114390152600081816103bf0152818161160a015281816117090152611bd60152600081816105e5015261220a01526000818161051701526122ea01526000818161056501526122bd0152613af06000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c80639327136811610160578063dd9f4e63116100d8578063e86646541161008c578063f2fde38b11610071578063f2fde38b1461069e578063fe258da7146106b1578063ffa1ad74146106c457600080fd5b8063e866465414610664578063f0f39f5d1461068b57600080fd5b8063e1fc2cc1116100bd578063e1fc2cc114610607578063e365490f1461061a578063e40225641461063d57600080fd5b8063dd9f4e63146105cd578063e1004045146105e057600080fd5b8063bbc4541b1161012f578063c7e2a4fc11610114578063c7e2a4fc14610587578063cf00cec91461059a578063d5a84491146105ba57600080fd5b8063bbc4541b14610539578063be5405d21461056057600080fd5b806393271368146104ca5780639913627f146104dc578063afe5c8ff146104ff578063b06a41201461051257600080fd5b8063610b59251161020e5780637d49f1db116101c25780638d092f5d116101a75780638d092f5d146104505780638da5cb5b1461047957806392c5961a1461048a57600080fd5b80637d49f1db14610435578063827be3cc1461044857600080fd5b8063715018a6116101f3578063715018a61461040757806374d4f6d01461040f57806375f0bb521461042257600080fd5b8063610b5925146103e157806362067cd1146103f457600080fd5b806337c591fa11610265578063436f8d031161024a578063436f8d03146103715780634a9b5db7146103b25780635cb54384146103ba57600080fd5b806337c591fa146103305780633ef3a75c1461035e57600080fd5b806301ffc9a714610297578063146c4361146102bf57806326a13d30146102d4578063346e5c481461031d575b600080fd5b6102aa6102a536600461352e565b610700565b60405190151581526020015b60405180910390f35b6102d26102cd366004613509565b610769565b005b6103106040518060400160405280601681526020017f64656c656761746553657475702861646472657373290000000000000000000081525081565b6040516102b69190613821565b6102d261032b366004613571565b6108ab565b61035061033e3660046130a3565b60036020526000908152604090205481565b6040519081526020016102b6565b6102d261036c3660046131d5565b610a75565b61039a61037f366004613558565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016102b6565b610310610c14565b61039a7f000000000000000000000000000000000000000000000000000000000000000081565b6102d26103ef3660046130a3565b610c30565b6102d2610402366004613596565b610c47565b6102d2610ef6565b6102d261041d3660046130a3565b610f5c565b6102d2610430366004613256565b610fb8565b6102d26104433660046133b7565b611128565b61031061114f565b61039a61045e366004613558565b6004602052600090815260409020546001600160a01b031681565b6001546001600160a01b031661039a565b6104b17fe009cfde76304ae4f68fc946b1f438cd7befba1599b95737584c332ee622b62981565b6040516001600160e01b031990911681526020016102b6565b6102d26104d8366004613509565b5050565b6102aa6104ea366004613558565b60066020526000908152604090205460ff1681565b60025461039a906001600160a01b031681565b61039a7f000000000000000000000000000000000000000000000000000000000000000081565b61039a7f000000000000000000000000000000000000000000000000000000000000000081565b61039a7f000000000000000000000000000000000000000000000000000000000000000081565b6102aa6105953660046130a3565b61116b565b6105ad6105a83660046130a3565b6111fe565b6040516102b691906136dd565b6102d26105c83660046130a3565b611275565b6102d26105db366004613509565b611339565b61039a7f000000000000000000000000000000000000000000000000000000000000000081565b6102d2610615366004613596565b6113d2565b6102aa6106283660046130a3565b60006020819052908152604090205460ff1681565b6104b17fe19a9dd9915bcd0262210387ba8f90d343aab4a5989aaae0ed7f2b6edddaff1a81565b6104b17f610b5925afff994a89367f36d1195efacee9e03780fb400aacb2ff998042ec3581565b6102d2610699366004613116565b6116fe565b6102d26106ac3660046130a3565b6119bf565b6102aa6106bf3660046130dd565b611a9e565b6103106040518060400160405280600581526020017f312e322e3000000000000000000000000000000000000000000000000000000081525081565b60006001600160e01b031982167fe6d7a83a00000000000000000000000000000000000000000000000000000000148061076357506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b6000828152600560209081526040808320546004909252909120546001600160a01b039182169116816107f857336001600160a01b038216146107f35760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920736166652063616e20736574207472616e73666572206c6f636b0060448201526064015b60405180910390fd5b610889565b336001600160a01b03831614806108175750336001600160a01b038216145b6108895760405162461bcd60e51b815260206004820152602860248201527f4f6e6c792061646d696e206f7220736166652063616e20736574207472616e7360448201527f666572206c6f636b00000000000000000000000000000000000000000000000060648201526084016107ea565b5050600091825260066020526040909120805460ff1916911515919091179055565b6000828152600560209081526040808320546004909252909120546001600160a01b039182169116806109205760405162461bcd60e51b815260206004820152601160248201527f506f6420646f65736e277420657869737400000000000000000000000000000060448201526064016107ea565b6001600160a01b03821661098b57336001600160a01b038216146109865760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920736166652063616e20616464206e65772061646d696e000000000060448201526064016107ea565b6109e3565b336001600160a01b038316146109e35760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c792061646d696e2063616e207570646174652061646d696e000000000060448201526064016107ea565b6001600160a01b038082166000908152602081905260409020805460ff1916918516151591909117905560008481526005602090815260409182902080546001600160a01b0319166001600160a01b0387169081179091558251878152918201527ffef38cfc44da305e6203142455e0a2b129109e8fd7b40914acff6874f170e3df910160405180910390a150505050565b6001600160a01b038516610acb5760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642073616665206164647265737300000000000000000000000060448201526064016107ea565b6001600160a01b03851660009081526003602052604090205415610b315760405162461bcd60e51b815260206004820152601360248201527f7361666520616c726561647920696e207573650000000000000000000000000060448201526064016107ea565b610b3a8561116b565b610b865760405162461bcd60e51b815260206004820152601b60248201527f73616665206d6f64756c65206d75737420626520656e61626c6564000000000060448201526064016107ea565b610b908533611a9e565b80610ba35750336001600160a01b038616145b610bef5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206d7573742062652073616665206f72206d656d62657200000060448201526064016107ea565b6000610bfa866111fe565b9050610c0b81878988888888611b3b565b50505050505050565b6040518060800160405280605a8152602001613a1b605a913981565b6001600160a01b03811615610c4457600080fd5b50565b6001600160a01b038116610c8f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107ea565b60405163c3c5a54760e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063c3c5a5479060240160206040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2691906134d3565b610d725760405162461bcd60e51b815260206004820152601960248201527f436f6e74726f6c6c6572206e6f7420726567697374657265640000000000000060448201526064016107ea565b6000838152600560205260409020546001600160a01b0316158015610dac57506000838152600460205260409020546001600160a01b0316155b8015610dce57506001600160a01b038116600090815260036020526040902054155b610e1a5760405162461bcd60e51b815260206004820152601260248201527f506f6420616c726561647920657869737473000000000000000000000000000060448201526064016107ea565b6001600160a01b03821615610e6e57600083815260056020908152604080832080546001600160a01b0319166001600160a01b038781169190911790915584168352908290529020805460ff191660011790555b600083815260046020908152604080832080546001600160a01b0319166001600160a01b038616908117909155835260039091529020839055610eb081611ff7565b604080518481526001600160a01b03841660208201527ffef38cfc44da305e6203142455e0a2b129109e8fd7b40914acff6874f170e3df910160405180910390a1505050565b6001546001600160a01b03163314610f505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ea565b610f5a600061210c565b565b60405163610b592560e01b81526001600160a01b0382166004820152309063610b592590602401600060405180830381600087803b158015610f9d57600080fd5b505af1158015610fb1573d6000803e3d6000fd5b5050505050565b3360008181526020819052604090205460ff16610fd5575061111b565b60048a51106111195763610b592560e01b610fef8b613908565b6001600160e01b03191614156110475760405162461bcd60e51b815260206004820152601560248201527f43616e6e6f7420456e61626c65204d6f64756c6573000000000000000000000060448201526064016107ea565b637004e7ef60e11b6110588b613908565b6001600160e01b03191614156110b05760405162461bcd60e51b815260206004820152601660248201527f43616e6e6f742044697361626c65204d6f64756c65730000000000000000000060448201526064016107ea565b63e19a9dd960e01b6110c18b613908565b6001600160e01b03191614156111195760405162461bcd60e51b815260206004820152601360248201527f43616e6e6f74204368616e67652047756172640000000000000000000000000060448201526064016107ea565b505b5050505050505050505050565b6000611134888861215e565b905061114588828888888888611b3b565b5050505050505050565b604051806080016040528060468152602001613a756046913981565b6040517f2d9ad53d0000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b03831690632d9ad53d9060240160206040518083038186803b1580156111c657600080fd5b505afa1580156111da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906134d3565b6060816001600160a01b031663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b15801561123957600080fd5b505afa15801561124d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610763919081019061333b565b6001546001600160a01b031633146112cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ea565b6001600160a01b0381166113175760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107ea565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600560205260409020546001600160a01b0316331461139f5760405162461bcd60e51b815260206004820181905260248201527f4d7573742062652061646d696e20746f20736574206d6f64756c65206c6f636b60448201526064016107ea565b6000828152600460209081526040808320546001600160a01b03168352908290529020805460ff19168215151790555050565b6001600160a01b03821661141a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107ea565b60405163c3c5a54760e01b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063c3c5a5479060240160206040518083038186803b15801561147b57600080fd5b505afa15801561148f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b391906134d3565b6114ff5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726f6c6c6572206e6f7420726567697374657265640000000000000060448201526064016107ea565b6000838152600560209081526040808320546004909252909120546001600160a01b0391821691163382148061153d5750336001600160a01b038216145b6115895760405162461bcd60e51b815260206004820152601360248201527f55736572206e6f7420617574686f72697a65640000000000000000000000000060448201526064016107ea565b600085815260056020908152604080832080546001600160a01b0319908116909155600480845282852080549092169091556001600160a01b038581168552600390935281842093909355517f82786654000000000000000000000000000000000000000000000000000000008152918201879052858116602483015285917f000000000000000000000000000000000000000000000000000000000000000090911690638278665490604401600060405180830381600087803b15801561165057600080fd5b505af1158015611664573d6000803e3d6000fd5b505050506116738286866123ed565b6040517f62067cd1000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b03848116602483015283811660448301528216906362067cd190606401600060405180830381600087803b1580156116de57600080fd5b505af11580156116f2573d6000803e3d6000fd5b50505050505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146117765760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420417574686f72697a656400000000000000000000000000000000000060448201526064016107ea565b6001600160a01b038616301480156117ab5750600160ff16816000815181106117a1576117a16139cb565b016020015160f81c145b156117b5576119b7565b60005b8351811015610c0b5760008482815181106117d5576117d56139cb565b60209081029190910181015160008181526004835260408082205460059094529020549092506001600160a01b039182169190811690891661189f57816001600160a01b03168a6001600160a01b031614806118425750806001600160a01b03168a6001600160a01b0316145b8061185557506001600160a01b038a1630145b6118905760405162461bcd60e51b815260206004820152600c60248201526b139bc8149d5b195cc814d95d60a21b60448201526064016107ea565b61189a8883612744565b6119a0565b6001600160a01b03881661193657816001600160a01b03168a6001600160a01b031614806118de5750806001600160a01b03168a6001600160a01b0316145b806118f157506001600160a01b038a1630145b61192c5760405162461bcd60e51b815260206004820152600c60248201526b139bc8149d5b195cc814d95d60a21b60448201526064016107ea565b61189a89836128f5565b60008381526006602052604090205460ff16156119955760405162461bcd60e51b815260206004820152601660248201527f506f64204973205472616e73666572204c6f636b65640000000000000000000060448201526064016107ea565b6119a0898984612bd1565b5050506001816119b091906138c5565b90506117b8565b505050505050565b6001546001600160a01b03163314611a195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ea565b6001600160a01b038116611a955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107ea565b610c448161210c565b6040517f2f54bf6e0000000000000000000000000000000000000000000000000000000081526001600160a01b03828116600483015260009190841690632f54bf6e9060240160206040518083038186803b158015611afc57600080fd5b505afa158015611b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3491906134d3565b9392505050565b604080516001808252818301909252600091602082018180368337019050509050600160f81b81600081518110611b7457611b746139cb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506040517f9aa0055e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639aa0055e90611c0d908c9086906004016136f0565b602060405180830381600087803b158015611c2757600080fd5b505af1158015611c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5f91906134f0565b9050838114611cb05760405162461bcd60e51b815260206004820152601e60248201527f706f64206964206469646e2774206d617463682c2074727920616761696e000060448201526064016107ea565b7fb298a97e1ae845f4ac62f176cde255ccfe5ac42197eae12459c99761bad66a4881898988604051611ce59493929190613834565b60405180910390a1604080518281526001600160a01b03891660208201527ffef38cfc44da305e6203142455e0a2b129109e8fd7b40914acff6874f170e3df910160405180910390a16001600160a01b03871615611d88576001600160a01b0388166000908152602081905260409020805460ff19166001179055600081815260056020526040902080546001600160a01b0319166001600160a01b0389161790555b600081815260046020818152604080842080546001600160a01b0319166001600160a01b038e8116918217909255808652600390935281852086905560025491517f98eed3e90000000000000000000000000000000000000000000000000000000081529384018b9052602484019290925233604484015216906398eed3e990606401602060405180830381600087803b158015611e2557600080fd5b505af1158015611e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5d91906130c0565b9050611e6a898288612d73565b6002546040517fcfeac6a5000000000000000000000000000000000000000000000000000000008152600481018990526000916001600160a01b03169063cfeac6a59060240160206040518083038186803b158015611ec857600080fd5b505afa158015611edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0091906134f0565b6002546040517f10f13a8c0000000000000000000000000000000000000000000000000000000081529192506001600160a01b0316906310f13a8c90611f4c9084908990600401613787565b600060405180830381600087803b158015611f6657600080fd5b505af1158015611f7a573d6000803e3d6000fd5b50506002546001600160a01b031691506310f13a8c905082611f9b86612dff565b6040518363ffffffff1660e01b8152600401611fb89291906137d4565b600060405180830381600087803b158015611fd257600080fd5b505af1158015611fe6573d6000803e3d6000fd5b505050505050505050505050505050565b60405130602482015260009060440160408051601f198184030181529181526020820180516001600160e01b031663e19a9dd960e01b1790525163468721a760e01b81529091506000906001600160a01b0384169063468721a790612066908690859087908290600401613686565b602060405180830381600087803b15801561208057600080fd5b505af1158015612094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b891906134d3565b9050806121075760405162461bcd60e51b815260206004820152601660248201527f436f756c64206e6f7420656e61626c652067756172640000000000000000000060448201526064016107ea565b505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080518082018252601681527f64656c656761746553657475702861646472657373290000000000000000000060208201529051306024820152600091829160440160408051601f1981840301815290829052916121bc91613648565b60405180910390206001600160e01b0319166020820180516001600160e01b03838183161783525050505090506000604051806080016040528060468152602001613a7560469139858530857f0000000000000000000000000000000000000000000000000000000000000000600080600060405160240161224598979695949392919061371e565b60408051601f19818403018152908290529161226091613648565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052517f61b69abd0000000000000000000000000000000000000000000000000000000081529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906361b69abd90612314907f0000000000000000000000000000000000000000000000000000000000000000908590600401613664565b602060405180830381600087803b15801561232e57600080fd5b505af192505050801561235e575060408051601f3d908101601f1916820190925261235b918101906130c0565b60015b6123da573d80801561238c576040519150601f19603f3d011682016040523d82523d6000602084013e612391565b606091505b5060405162461bcd60e51b815260206004820152601d60248201527f4372656174652050726f787920576974682044617461204661696c656400000060448201526064016107ea565b6123e381611ff7565b9250610763915050565b6040516001600160a01b038316602482015260009060440160408051601f198184030181529181526020820180516001600160e01b031663610b592560e01b1790525163468721a760e01b81529091506000906001600160a01b0386169063468721a790612465908890859087908290600401613686565b602060405180830381600087803b15801561247f57600080fd5b505af1158015612493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b791906134d3565b9050806125065760405162461bcd60e51b815260206004820152601a60248201527f4d6967726174696f6e206661696c6564206f6e20656e61626c6500000000000060448201526064016107ea565b6040517fcc2f84520000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600160248301526000919087169063cc2f84529060440160006040518083038186803b15801561256b57600080fd5b505afa15801561257f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125a79190810190613370565b509050306001600160a01b0316816000815181106125c7576125c76139cb565b60200260200101516001600160a01b0316146126255760405162461bcd60e51b815260206004820152601460248201527f696e636f727265637420707265764d6f64756c6500000000000000000000000060448201526064016107ea565b6040516001600160a01b038516602482015230604482015260009060640160408051601f198184030181529181526020820180516001600160e01b0316637004e7ef60e11b1790525163468721a760e01b81529091506000906001600160a01b0389169063468721a7906126a3908b90859087908290600401613686565b602060405180830381600087803b1580156126bd57600080fd5b505af11580156126d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f591906134d3565b9050806111455760405162461bcd60e51b815260206004820152601b60248201527f4d6967726174696f6e206661696c6564206f6e2064697361626c65000000000060448201526064016107ea565b6000816001600160a01b031663e75235b86040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561278157600080fd5b505af1158015612795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127b991906134f0565b6040516001600160a01b03851660248201526044810182905290915060009060640160408051601f198184030181529181526020820180516001600160e01b03167f0d582f13000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0385169063468721a790612854908790859087908290600401613686565b602060405180830381600087803b15801561286e57600080fd5b505af1158015612882573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a691906134d3565b905080610fb15760405162461bcd60e51b815260206004820152601960248201527f4d6f64756c65205472616e73616374696f6e204661696c65640000000000000060448201526064016107ea565b6000816001600160a01b031663e75235b86040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561293257600080fd5b505af1158015612946573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061296a91906134f0565b90506000826001600160a01b031663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b1580156129a757600080fd5b505afa1580156129bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129e3919081019061333b565b90506000805b8251811015612a6c57856001600160a01b0316838281518110612a0e57612a0e6139cb565b60200260200101516001600160a01b03161415612a5a5780612a335760019150612a5a565b82612a3f6001836138f1565b81518110612a4f57612a4f6139cb565b602002602001015191505b80612a6481613970565b9150506129e9565b508260018351612a7c91906138f1565b1015612a9057612a8d6001846138f1565b92505b6040516001600160a01b038083166024830152861660448201526064810184905260009060840160408051601f198184030181529181526020820180516001600160e01b03167ff8dc5dd9000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0387169063468721a790612b30908990859087908290600401613686565b602060405180830381600087803b158015612b4a57600080fd5b505af1158015612b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b8291906134d3565b905080610c0b5760405162461bcd60e51b815260206004820152601960248201527f4d6f64756c65205472616e73616374696f6e204661696c65640000000000000060448201526064016107ea565b6000816001600160a01b031663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b158015612c0c57600080fd5b505afa158015612c20573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c48919081019061333b565b90506000805b8251811015612cd157856001600160a01b0316838281518110612c7357612c736139cb565b60200260200101516001600160a01b03161415612cbf5780612c985760019150612cbf565b82612ca46001836138f1565b81518110612cb457612cb46139cb565b602002602001015191505b80612cc981613970565b915050612c4e565b506040516001600160a01b03808316602483015280871660448301528516606482015260009060840160408051601f198184030181529181526020820180516001600160e01b03167fe318b52b000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0386169063468721a790612b30908890859087908290600401613686565b600081604051602401612d869190613821565b60408051601f198184030181529181526020820180516001600160e01b03167fc47f0027000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0386169063468721a790612854908790859087908290600401613686565b606081612e3f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e695780612e5381613970565b9150612e629050600a836138dd565b9150612e43565b60008167ffffffffffffffff811115612e8457612e846139e1565b6040519080825280601f01601f191660200182016040528015612eae576020820181803683370190505b5090505b8415612f3157612ec36001836138f1565b9150612ed0600a8661398b565b612edb9060306138c5565b60f81b818381518110612ef057612ef06139cb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612f2a600a866138dd565b9450612eb2565b949350505050565b8035612f44816139f7565b919050565b600082601f830112612f5a57600080fd5b81516020612f6f612f6a836138a1565b613870565b80838252828201915082860187848660051b8901011115612f8f57600080fd5b60005b85811015612fb7578151612fa5816139f7565b84529284019290840190600101612f92565b5090979650505050505050565b600082601f830112612fd557600080fd5b81356020612fe5612f6a836138a1565b80838252828201915082860187848660051b890101111561300557600080fd5b60005b85811015612fb757813584529284019290840190600101613008565b600082601f83011261303557600080fd5b813567ffffffffffffffff81111561304f5761304f6139e1565b613062601f8201601f1916602001613870565b81815284602083860101111561307757600080fd5b816020850160208301376000918101602001919091529392505050565b803560028110612f4457600080fd5b6000602082840312156130b557600080fd5b8135611b34816139f7565b6000602082840312156130d257600080fd5b8151611b34816139f7565b600080604083850312156130f057600080fd5b82356130fb816139f7565b9150602083013561310b816139f7565b809150509250929050565b60008060008060008060c0878903121561312f57600080fd5b863561313a816139f7565b9550602087013561314a816139f7565b9450604087013561315a816139f7565b9350606087013567ffffffffffffffff8082111561317757600080fd5b6131838a838b01612fc4565b9450608089013591508082111561319957600080fd5b6131a58a838b01612fc4565b935060a08901359150808211156131bb57600080fd5b506131c889828a01613024565b9150509295509295509295565b60008060008060008060c087890312156131ee57600080fd5b86356131f9816139f7565b95506020870135613209816139f7565b945060408701359350606087013567ffffffffffffffff8082111561322d57600080fd5b6132398a838b01613024565b94506080890135935060a08901359150808211156131bb57600080fd5b60008060008060008060008060008060006101608c8e03121561327857600080fd5b6132818c612f39565b9a5060208c0135995067ffffffffffffffff8060408e013511156132a457600080fd5b6132b48e60408f01358f01613024565b99506132c260608e01613094565b985060808d0135975060a08d0135965060c08d013595506132e560e08e01612f39565b94506132f46101008e01612f39565b9350806101208e0135111561330857600080fd5b5061331a8d6101208e01358e01613024565b91506133296101408d01612f39565b90509295989b509295989b9093969950565b60006020828403121561334d57600080fd5b815167ffffffffffffffff81111561336457600080fd5b612f3184828501612f49565b6000806040838503121561338357600080fd5b825167ffffffffffffffff81111561339a57600080fd5b6133a685828601612f49565b925050602083015161310b816139f7565b600080600080600080600060e0888a0312156133d257600080fd5b873567ffffffffffffffff808211156133ea57600080fd5b818a0191508a601f8301126133fe57600080fd5b8135602061340e612f6a836138a1565b8083825282820191508286018f848660051b890101111561342e57600080fd5b600096505b8487101561345a578035613446816139f7565b835260019690960195918301918301613433565b509b50508b01359850613471905060408b01612f39565b965060608a0135955060808a013591508082111561348e57600080fd5b61349a8b838c01613024565b945060a08a0135935060c08a01359150808211156134b757600080fd5b506134c48a828b01613024565b91505092959891949750929550565b6000602082840312156134e557600080fd5b8151611b3481613a0c565b60006020828403121561350257600080fd5b5051919050565b6000806040838503121561351c57600080fd5b82359150602083013561310b81613a0c565b60006020828403121561354057600080fd5b81356001600160e01b031981168114611b3457600080fd5b60006020828403121561356a57600080fd5b5035919050565b6000806040838503121561358457600080fd5b82359150602083013561310b816139f7565b6000806000606084860312156135ab57600080fd5b8335925060208401356135bd816139f7565b915060408401356135cd816139f7565b809150509250925092565b600081518084526020808501945080840160005b838110156136115781516001600160a01b0316875295820195908201906001016135ec565b509495945050505050565b60008151808452613634816020860160208601613940565b601f01601f19169290920160200192915050565b6000825161365a818460208701613940565b9190910192915050565b6001600160a01b0383168152604060208201526000612f31604083018461361c565b6001600160a01b03851681528360208201526080604082015260006136ae608083018561361c565b9050600283106136ce57634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b602081526000611b3460208301846135d8565b60408152600061370360408301856135d8565b8281036020840152613715818561361c565b95945050505050565b60006101008083526137328184018c6135d8565b90508960208401526001600160a01b03808a166040850152838203606085015261375c828a61361c565b978116608085015295861660a0840152505060c081019290925290911660e090910152949350505050565b82815260606020820152600660608201527f6176617461720000000000000000000000000000000000000000000000000000608082015260a060408201526000612f3160a083018461361c565b82815260606020820152600560608201527f706f644964000000000000000000000000000000000000000000000000000000608082015260a060408201526000612f3160a083018461361c565b602081526000611b34602083018461361c565b84815260006001600160a01b03808616602084015280851660408401525060806060830152613866608083018461361c565b9695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715613899576138996139e1565b604052919050565b600067ffffffffffffffff8211156138bb576138bb6139e1565b5060051b60200190565b600082198211156138d8576138d861399f565b500190565b6000826138ec576138ec6139b5565b500490565b6000828210156139035761390361399f565b500390565b6000815160208301516001600160e01b0319808216935060048310156139385780818460040360031b1b83161693505b505050919050565b60005b8381101561395b578181015183820152602001613943565b8381111561396a576000848401525b50505050565b60006000198214156139845761398461399f565b5060010190565b60008261399a5761399a6139b5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c4457600080fd5b8015158114610c4457600080fdfe657865635472616e73616374696f6e28616464726573732c75696e743235362c62797465732c75696e74382c75696e743235362c75696e743235362c75696e743235362c616464726573732c616464726573732c627974657329736574757028616464726573735b5d2c75696e743235362c616464726573732c62797465732c616464726573732c616464726573732c75696e743235362c6164647265737329a26469706673582212208422d4f6cf703d561f42ad2e0b546ee6c95bf43253456bc561bb8445a199a9db64736f6c634300080700330000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae30000000000000000000000000d97643ee1051b523e4e3b66df3640bba6c0f79f000000000000000000000000a6b71e26c5e0845f74c812102ca7114b6a896ab2000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee70955200000000000000000000000055b5a8c7df8cff8c8c77bd4448cccb82e1533686000000000000000000000000d5d82b6addc9027b22dca772aa68d5d74cdbdf44
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102925760003560e01c80639327136811610160578063dd9f4e63116100d8578063e86646541161008c578063f2fde38b11610071578063f2fde38b1461069e578063fe258da7146106b1578063ffa1ad74146106c457600080fd5b8063e866465414610664578063f0f39f5d1461068b57600080fd5b8063e1fc2cc1116100bd578063e1fc2cc114610607578063e365490f1461061a578063e40225641461063d57600080fd5b8063dd9f4e63146105cd578063e1004045146105e057600080fd5b8063bbc4541b1161012f578063c7e2a4fc11610114578063c7e2a4fc14610587578063cf00cec91461059a578063d5a84491146105ba57600080fd5b8063bbc4541b14610539578063be5405d21461056057600080fd5b806393271368146104ca5780639913627f146104dc578063afe5c8ff146104ff578063b06a41201461051257600080fd5b8063610b59251161020e5780637d49f1db116101c25780638d092f5d116101a75780638d092f5d146104505780638da5cb5b1461047957806392c5961a1461048a57600080fd5b80637d49f1db14610435578063827be3cc1461044857600080fd5b8063715018a6116101f3578063715018a61461040757806374d4f6d01461040f57806375f0bb521461042257600080fd5b8063610b5925146103e157806362067cd1146103f457600080fd5b806337c591fa11610265578063436f8d031161024a578063436f8d03146103715780634a9b5db7146103b25780635cb54384146103ba57600080fd5b806337c591fa146103305780633ef3a75c1461035e57600080fd5b806301ffc9a714610297578063146c4361146102bf57806326a13d30146102d4578063346e5c481461031d575b600080fd5b6102aa6102a536600461352e565b610700565b60405190151581526020015b60405180910390f35b6102d26102cd366004613509565b610769565b005b6103106040518060400160405280601681526020017f64656c656761746553657475702861646472657373290000000000000000000081525081565b6040516102b69190613821565b6102d261032b366004613571565b6108ab565b61035061033e3660046130a3565b60036020526000908152604090205481565b6040519081526020016102b6565b6102d261036c3660046131d5565b610a75565b61039a61037f366004613558565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016102b6565b610310610c14565b61039a7f0000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae381565b6102d26103ef3660046130a3565b610c30565b6102d2610402366004613596565b610c47565b6102d2610ef6565b6102d261041d3660046130a3565b610f5c565b6102d2610430366004613256565b610fb8565b6102d26104433660046133b7565b611128565b61031061114f565b61039a61045e366004613558565b6004602052600090815260409020546001600160a01b031681565b6001546001600160a01b031661039a565b6104b17fe009cfde76304ae4f68fc946b1f438cd7befba1599b95737584c332ee622b62981565b6040516001600160e01b031990911681526020016102b6565b6102d26104d8366004613509565b5050565b6102aa6104ea366004613558565b60066020526000908152604090205460ff1681565b60025461039a906001600160a01b031681565b61039a7f000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee70955281565b61039a7f0000000000000000000000000d97643ee1051b523e4e3b66df3640bba6c0f79f81565b61039a7f000000000000000000000000a6b71e26c5e0845f74c812102ca7114b6a896ab281565b6102aa6105953660046130a3565b61116b565b6105ad6105a83660046130a3565b6111fe565b6040516102b691906136dd565b6102d26105c83660046130a3565b611275565b6102d26105db366004613509565b611339565b61039a7f000000000000000000000000d5d82b6addc9027b22dca772aa68d5d74cdbdf4481565b6102d2610615366004613596565b6113d2565b6102aa6106283660046130a3565b60006020819052908152604090205460ff1681565b6104b17fe19a9dd9915bcd0262210387ba8f90d343aab4a5989aaae0ed7f2b6edddaff1a81565b6104b17f610b5925afff994a89367f36d1195efacee9e03780fb400aacb2ff998042ec3581565b6102d2610699366004613116565b6116fe565b6102d26106ac3660046130a3565b6119bf565b6102aa6106bf3660046130dd565b611a9e565b6103106040518060400160405280600581526020017f312e322e3000000000000000000000000000000000000000000000000000000081525081565b60006001600160e01b031982167fe6d7a83a00000000000000000000000000000000000000000000000000000000148061076357506001600160e01b031982167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b6000828152600560209081526040808320546004909252909120546001600160a01b039182169116816107f857336001600160a01b038216146107f35760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920736166652063616e20736574207472616e73666572206c6f636b0060448201526064015b60405180910390fd5b610889565b336001600160a01b03831614806108175750336001600160a01b038216145b6108895760405162461bcd60e51b815260206004820152602860248201527f4f6e6c792061646d696e206f7220736166652063616e20736574207472616e7360448201527f666572206c6f636b00000000000000000000000000000000000000000000000060648201526084016107ea565b5050600091825260066020526040909120805460ff1916911515919091179055565b6000828152600560209081526040808320546004909252909120546001600160a01b039182169116806109205760405162461bcd60e51b815260206004820152601160248201527f506f6420646f65736e277420657869737400000000000000000000000000000060448201526064016107ea565b6001600160a01b03821661098b57336001600160a01b038216146109865760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920736166652063616e20616464206e65772061646d696e000000000060448201526064016107ea565b6109e3565b336001600160a01b038316146109e35760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c792061646d696e2063616e207570646174652061646d696e000000000060448201526064016107ea565b6001600160a01b038082166000908152602081905260409020805460ff1916918516151591909117905560008481526005602090815260409182902080546001600160a01b0319166001600160a01b0387169081179091558251878152918201527ffef38cfc44da305e6203142455e0a2b129109e8fd7b40914acff6874f170e3df910160405180910390a150505050565b6001600160a01b038516610acb5760405162461bcd60e51b815260206004820152601460248201527f696e76616c69642073616665206164647265737300000000000000000000000060448201526064016107ea565b6001600160a01b03851660009081526003602052604090205415610b315760405162461bcd60e51b815260206004820152601360248201527f7361666520616c726561647920696e207573650000000000000000000000000060448201526064016107ea565b610b3a8561116b565b610b865760405162461bcd60e51b815260206004820152601b60248201527f73616665206d6f64756c65206d75737420626520656e61626c6564000000000060448201526064016107ea565b610b908533611a9e565b80610ba35750336001600160a01b038616145b610bef5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206d7573742062652073616665206f72206d656d62657200000060448201526064016107ea565b6000610bfa866111fe565b9050610c0b81878988888888611b3b565b50505050505050565b6040518060800160405280605a8152602001613a1b605a913981565b6001600160a01b03811615610c4457600080fd5b50565b6001600160a01b038116610c8f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107ea565b60405163c3c5a54760e01b81523360048201527f0000000000000000000000000d97643ee1051b523e4e3b66df3640bba6c0f79f6001600160a01b03169063c3c5a5479060240160206040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2691906134d3565b610d725760405162461bcd60e51b815260206004820152601960248201527f436f6e74726f6c6c6572206e6f7420726567697374657265640000000000000060448201526064016107ea565b6000838152600560205260409020546001600160a01b0316158015610dac57506000838152600460205260409020546001600160a01b0316155b8015610dce57506001600160a01b038116600090815260036020526040902054155b610e1a5760405162461bcd60e51b815260206004820152601260248201527f506f6420616c726561647920657869737473000000000000000000000000000060448201526064016107ea565b6001600160a01b03821615610e6e57600083815260056020908152604080832080546001600160a01b0319166001600160a01b038781169190911790915584168352908290529020805460ff191660011790555b600083815260046020908152604080832080546001600160a01b0319166001600160a01b038616908117909155835260039091529020839055610eb081611ff7565b604080518481526001600160a01b03841660208201527ffef38cfc44da305e6203142455e0a2b129109e8fd7b40914acff6874f170e3df910160405180910390a1505050565b6001546001600160a01b03163314610f505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ea565b610f5a600061210c565b565b60405163610b592560e01b81526001600160a01b0382166004820152309063610b592590602401600060405180830381600087803b158015610f9d57600080fd5b505af1158015610fb1573d6000803e3d6000fd5b5050505050565b3360008181526020819052604090205460ff16610fd5575061111b565b60048a51106111195763610b592560e01b610fef8b613908565b6001600160e01b03191614156110475760405162461bcd60e51b815260206004820152601560248201527f43616e6e6f7420456e61626c65204d6f64756c6573000000000000000000000060448201526064016107ea565b637004e7ef60e11b6110588b613908565b6001600160e01b03191614156110b05760405162461bcd60e51b815260206004820152601660248201527f43616e6e6f742044697361626c65204d6f64756c65730000000000000000000060448201526064016107ea565b63e19a9dd960e01b6110c18b613908565b6001600160e01b03191614156111195760405162461bcd60e51b815260206004820152601360248201527f43616e6e6f74204368616e67652047756172640000000000000000000000000060448201526064016107ea565b505b5050505050505050505050565b6000611134888861215e565b905061114588828888888888611b3b565b5050505050505050565b604051806080016040528060468152602001613a756046913981565b6040517f2d9ad53d0000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b03831690632d9ad53d9060240160206040518083038186803b1580156111c657600080fd5b505afa1580156111da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906134d3565b6060816001600160a01b031663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b15801561123957600080fd5b505afa15801561124d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610763919081019061333b565b6001546001600160a01b031633146112cf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ea565b6001600160a01b0381166113175760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107ea565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600560205260409020546001600160a01b0316331461139f5760405162461bcd60e51b815260206004820181905260248201527f4d7573742062652061646d696e20746f20736574206d6f64756c65206c6f636b60448201526064016107ea565b6000828152600460209081526040808320546001600160a01b03168352908290529020805460ff19168215151790555050565b6001600160a01b03821661141a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107ea565b60405163c3c5a54760e01b81526001600160a01b0383811660048301527f0000000000000000000000000d97643ee1051b523e4e3b66df3640bba6c0f79f169063c3c5a5479060240160206040518083038186803b15801561147b57600080fd5b505afa15801561148f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b391906134d3565b6114ff5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726f6c6c6572206e6f7420726567697374657265640000000000000060448201526064016107ea565b6000838152600560209081526040808320546004909252909120546001600160a01b0391821691163382148061153d5750336001600160a01b038216145b6115895760405162461bcd60e51b815260206004820152601360248201527f55736572206e6f7420617574686f72697a65640000000000000000000000000060448201526064016107ea565b600085815260056020908152604080832080546001600160a01b0319908116909155600480845282852080549092169091556001600160a01b038581168552600390935281842093909355517f82786654000000000000000000000000000000000000000000000000000000008152918201879052858116602483015285917f0000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae390911690638278665490604401600060405180830381600087803b15801561165057600080fd5b505af1158015611664573d6000803e3d6000fd5b505050506116738286866123ed565b6040517f62067cd1000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b03848116602483015283811660448301528216906362067cd190606401600060405180830381600087803b1580156116de57600080fd5b505af11580156116f2573d6000803e3d6000fd5b50505050505050505050565b336001600160a01b037f0000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae316146117765760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420417574686f72697a656400000000000000000000000000000000000060448201526064016107ea565b6001600160a01b038616301480156117ab5750600160ff16816000815181106117a1576117a16139cb565b016020015160f81c145b156117b5576119b7565b60005b8351811015610c0b5760008482815181106117d5576117d56139cb565b60209081029190910181015160008181526004835260408082205460059094529020549092506001600160a01b039182169190811690891661189f57816001600160a01b03168a6001600160a01b031614806118425750806001600160a01b03168a6001600160a01b0316145b8061185557506001600160a01b038a1630145b6118905760405162461bcd60e51b815260206004820152600c60248201526b139bc8149d5b195cc814d95d60a21b60448201526064016107ea565b61189a8883612744565b6119a0565b6001600160a01b03881661193657816001600160a01b03168a6001600160a01b031614806118de5750806001600160a01b03168a6001600160a01b0316145b806118f157506001600160a01b038a1630145b61192c5760405162461bcd60e51b815260206004820152600c60248201526b139bc8149d5b195cc814d95d60a21b60448201526064016107ea565b61189a89836128f5565b60008381526006602052604090205460ff16156119955760405162461bcd60e51b815260206004820152601660248201527f506f64204973205472616e73666572204c6f636b65640000000000000000000060448201526064016107ea565b6119a0898984612bd1565b5050506001816119b091906138c5565b90506117b8565b505050505050565b6001546001600160a01b03163314611a195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ea565b6001600160a01b038116611a955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107ea565b610c448161210c565b6040517f2f54bf6e0000000000000000000000000000000000000000000000000000000081526001600160a01b03828116600483015260009190841690632f54bf6e9060240160206040518083038186803b158015611afc57600080fd5b505afa158015611b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3491906134d3565b9392505050565b604080516001808252818301909252600091602082018180368337019050509050600160f81b81600081518110611b7457611b746139cb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506040517f9aa0055e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae31690639aa0055e90611c0d908c9086906004016136f0565b602060405180830381600087803b158015611c2757600080fd5b505af1158015611c3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5f91906134f0565b9050838114611cb05760405162461bcd60e51b815260206004820152601e60248201527f706f64206964206469646e2774206d617463682c2074727920616761696e000060448201526064016107ea565b7fb298a97e1ae845f4ac62f176cde255ccfe5ac42197eae12459c99761bad66a4881898988604051611ce59493929190613834565b60405180910390a1604080518281526001600160a01b03891660208201527ffef38cfc44da305e6203142455e0a2b129109e8fd7b40914acff6874f170e3df910160405180910390a16001600160a01b03871615611d88576001600160a01b0388166000908152602081905260409020805460ff19166001179055600081815260056020526040902080546001600160a01b0319166001600160a01b0389161790555b600081815260046020818152604080842080546001600160a01b0319166001600160a01b038e8116918217909255808652600390935281852086905560025491517f98eed3e90000000000000000000000000000000000000000000000000000000081529384018b9052602484019290925233604484015216906398eed3e990606401602060405180830381600087803b158015611e2557600080fd5b505af1158015611e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5d91906130c0565b9050611e6a898288612d73565b6002546040517fcfeac6a5000000000000000000000000000000000000000000000000000000008152600481018990526000916001600160a01b03169063cfeac6a59060240160206040518083038186803b158015611ec857600080fd5b505afa158015611edc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0091906134f0565b6002546040517f10f13a8c0000000000000000000000000000000000000000000000000000000081529192506001600160a01b0316906310f13a8c90611f4c9084908990600401613787565b600060405180830381600087803b158015611f6657600080fd5b505af1158015611f7a573d6000803e3d6000fd5b50506002546001600160a01b031691506310f13a8c905082611f9b86612dff565b6040518363ffffffff1660e01b8152600401611fb89291906137d4565b600060405180830381600087803b158015611fd257600080fd5b505af1158015611fe6573d6000803e3d6000fd5b505050505050505050505050505050565b60405130602482015260009060440160408051601f198184030181529181526020820180516001600160e01b031663e19a9dd960e01b1790525163468721a760e01b81529091506000906001600160a01b0384169063468721a790612066908690859087908290600401613686565b602060405180830381600087803b15801561208057600080fd5b505af1158015612094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b891906134d3565b9050806121075760405162461bcd60e51b815260206004820152601660248201527f436f756c64206e6f7420656e61626c652067756172640000000000000000000060448201526064016107ea565b505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080518082018252601681527f64656c656761746553657475702861646472657373290000000000000000000060208201529051306024820152600091829160440160408051601f1981840301815290829052916121bc91613648565b60405180910390206001600160e01b0319166020820180516001600160e01b03838183161783525050505090506000604051806080016040528060468152602001613a7560469139858530857f000000000000000000000000d5d82b6addc9027b22dca772aa68d5d74cdbdf44600080600060405160240161224598979695949392919061371e565b60408051601f19818403018152908290529161226091613648565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052517f61b69abd0000000000000000000000000000000000000000000000000000000081529091506001600160a01b037f000000000000000000000000a6b71e26c5e0845f74c812102ca7114b6a896ab216906361b69abd90612314907f000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552908590600401613664565b602060405180830381600087803b15801561232e57600080fd5b505af192505050801561235e575060408051601f3d908101601f1916820190925261235b918101906130c0565b60015b6123da573d80801561238c576040519150601f19603f3d011682016040523d82523d6000602084013e612391565b606091505b5060405162461bcd60e51b815260206004820152601d60248201527f4372656174652050726f787920576974682044617461204661696c656400000060448201526064016107ea565b6123e381611ff7565b9250610763915050565b6040516001600160a01b038316602482015260009060440160408051601f198184030181529181526020820180516001600160e01b031663610b592560e01b1790525163468721a760e01b81529091506000906001600160a01b0386169063468721a790612465908890859087908290600401613686565b602060405180830381600087803b15801561247f57600080fd5b505af1158015612493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b791906134d3565b9050806125065760405162461bcd60e51b815260206004820152601a60248201527f4d6967726174696f6e206661696c6564206f6e20656e61626c6500000000000060448201526064016107ea565b6040517fcc2f84520000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152600160248301526000919087169063cc2f84529060440160006040518083038186803b15801561256b57600080fd5b505afa15801561257f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125a79190810190613370565b509050306001600160a01b0316816000815181106125c7576125c76139cb565b60200260200101516001600160a01b0316146126255760405162461bcd60e51b815260206004820152601460248201527f696e636f727265637420707265764d6f64756c6500000000000000000000000060448201526064016107ea565b6040516001600160a01b038516602482015230604482015260009060640160408051601f198184030181529181526020820180516001600160e01b0316637004e7ef60e11b1790525163468721a760e01b81529091506000906001600160a01b0389169063468721a7906126a3908b90859087908290600401613686565b602060405180830381600087803b1580156126bd57600080fd5b505af11580156126d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126f591906134d3565b9050806111455760405162461bcd60e51b815260206004820152601b60248201527f4d6967726174696f6e206661696c6564206f6e2064697361626c65000000000060448201526064016107ea565b6000816001600160a01b031663e75235b86040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561278157600080fd5b505af1158015612795573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127b991906134f0565b6040516001600160a01b03851660248201526044810182905290915060009060640160408051601f198184030181529181526020820180516001600160e01b03167f0d582f13000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0385169063468721a790612854908790859087908290600401613686565b602060405180830381600087803b15801561286e57600080fd5b505af1158015612882573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a691906134d3565b905080610fb15760405162461bcd60e51b815260206004820152601960248201527f4d6f64756c65205472616e73616374696f6e204661696c65640000000000000060448201526064016107ea565b6000816001600160a01b031663e75235b86040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561293257600080fd5b505af1158015612946573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061296a91906134f0565b90506000826001600160a01b031663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b1580156129a757600080fd5b505afa1580156129bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129e3919081019061333b565b90506000805b8251811015612a6c57856001600160a01b0316838281518110612a0e57612a0e6139cb565b60200260200101516001600160a01b03161415612a5a5780612a335760019150612a5a565b82612a3f6001836138f1565b81518110612a4f57612a4f6139cb565b602002602001015191505b80612a6481613970565b9150506129e9565b508260018351612a7c91906138f1565b1015612a9057612a8d6001846138f1565b92505b6040516001600160a01b038083166024830152861660448201526064810184905260009060840160408051601f198184030181529181526020820180516001600160e01b03167ff8dc5dd9000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0387169063468721a790612b30908990859087908290600401613686565b602060405180830381600087803b158015612b4a57600080fd5b505af1158015612b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b8291906134d3565b905080610c0b5760405162461bcd60e51b815260206004820152601960248201527f4d6f64756c65205472616e73616374696f6e204661696c65640000000000000060448201526064016107ea565b6000816001600160a01b031663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b158015612c0c57600080fd5b505afa158015612c20573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c48919081019061333b565b90506000805b8251811015612cd157856001600160a01b0316838281518110612c7357612c736139cb565b60200260200101516001600160a01b03161415612cbf5780612c985760019150612cbf565b82612ca46001836138f1565b81518110612cb457612cb46139cb565b602002602001015191505b80612cc981613970565b915050612c4e565b506040516001600160a01b03808316602483015280871660448301528516606482015260009060840160408051601f198184030181529181526020820180516001600160e01b03167fe318b52b000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0386169063468721a790612b30908890859087908290600401613686565b600081604051602401612d869190613821565b60408051601f198184030181529181526020820180516001600160e01b03167fc47f0027000000000000000000000000000000000000000000000000000000001790525163468721a760e01b81529091506000906001600160a01b0386169063468721a790612854908790859087908290600401613686565b606081612e3f57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e695780612e5381613970565b9150612e629050600a836138dd565b9150612e43565b60008167ffffffffffffffff811115612e8457612e846139e1565b6040519080825280601f01601f191660200182016040528015612eae576020820181803683370190505b5090505b8415612f3157612ec36001836138f1565b9150612ed0600a8661398b565b612edb9060306138c5565b60f81b818381518110612ef057612ef06139cb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612f2a600a866138dd565b9450612eb2565b949350505050565b8035612f44816139f7565b919050565b600082601f830112612f5a57600080fd5b81516020612f6f612f6a836138a1565b613870565b80838252828201915082860187848660051b8901011115612f8f57600080fd5b60005b85811015612fb7578151612fa5816139f7565b84529284019290840190600101612f92565b5090979650505050505050565b600082601f830112612fd557600080fd5b81356020612fe5612f6a836138a1565b80838252828201915082860187848660051b890101111561300557600080fd5b60005b85811015612fb757813584529284019290840190600101613008565b600082601f83011261303557600080fd5b813567ffffffffffffffff81111561304f5761304f6139e1565b613062601f8201601f1916602001613870565b81815284602083860101111561307757600080fd5b816020850160208301376000918101602001919091529392505050565b803560028110612f4457600080fd5b6000602082840312156130b557600080fd5b8135611b34816139f7565b6000602082840312156130d257600080fd5b8151611b34816139f7565b600080604083850312156130f057600080fd5b82356130fb816139f7565b9150602083013561310b816139f7565b809150509250929050565b60008060008060008060c0878903121561312f57600080fd5b863561313a816139f7565b9550602087013561314a816139f7565b9450604087013561315a816139f7565b9350606087013567ffffffffffffffff8082111561317757600080fd5b6131838a838b01612fc4565b9450608089013591508082111561319957600080fd5b6131a58a838b01612fc4565b935060a08901359150808211156131bb57600080fd5b506131c889828a01613024565b9150509295509295509295565b60008060008060008060c087890312156131ee57600080fd5b86356131f9816139f7565b95506020870135613209816139f7565b945060408701359350606087013567ffffffffffffffff8082111561322d57600080fd5b6132398a838b01613024565b94506080890135935060a08901359150808211156131bb57600080fd5b60008060008060008060008060008060006101608c8e03121561327857600080fd5b6132818c612f39565b9a5060208c0135995067ffffffffffffffff8060408e013511156132a457600080fd5b6132b48e60408f01358f01613024565b99506132c260608e01613094565b985060808d0135975060a08d0135965060c08d013595506132e560e08e01612f39565b94506132f46101008e01612f39565b9350806101208e0135111561330857600080fd5b5061331a8d6101208e01358e01613024565b91506133296101408d01612f39565b90509295989b509295989b9093969950565b60006020828403121561334d57600080fd5b815167ffffffffffffffff81111561336457600080fd5b612f3184828501612f49565b6000806040838503121561338357600080fd5b825167ffffffffffffffff81111561339a57600080fd5b6133a685828601612f49565b925050602083015161310b816139f7565b600080600080600080600060e0888a0312156133d257600080fd5b873567ffffffffffffffff808211156133ea57600080fd5b818a0191508a601f8301126133fe57600080fd5b8135602061340e612f6a836138a1565b8083825282820191508286018f848660051b890101111561342e57600080fd5b600096505b8487101561345a578035613446816139f7565b835260019690960195918301918301613433565b509b50508b01359850613471905060408b01612f39565b965060608a0135955060808a013591508082111561348e57600080fd5b61349a8b838c01613024565b945060a08a0135935060c08a01359150808211156134b757600080fd5b506134c48a828b01613024565b91505092959891949750929550565b6000602082840312156134e557600080fd5b8151611b3481613a0c565b60006020828403121561350257600080fd5b5051919050565b6000806040838503121561351c57600080fd5b82359150602083013561310b81613a0c565b60006020828403121561354057600080fd5b81356001600160e01b031981168114611b3457600080fd5b60006020828403121561356a57600080fd5b5035919050565b6000806040838503121561358457600080fd5b82359150602083013561310b816139f7565b6000806000606084860312156135ab57600080fd5b8335925060208401356135bd816139f7565b915060408401356135cd816139f7565b809150509250925092565b600081518084526020808501945080840160005b838110156136115781516001600160a01b0316875295820195908201906001016135ec565b509495945050505050565b60008151808452613634816020860160208601613940565b601f01601f19169290920160200192915050565b6000825161365a818460208701613940565b9190910192915050565b6001600160a01b0383168152604060208201526000612f31604083018461361c565b6001600160a01b03851681528360208201526080604082015260006136ae608083018561361c565b9050600283106136ce57634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b602081526000611b3460208301846135d8565b60408152600061370360408301856135d8565b8281036020840152613715818561361c565b95945050505050565b60006101008083526137328184018c6135d8565b90508960208401526001600160a01b03808a166040850152838203606085015261375c828a61361c565b978116608085015295861660a0840152505060c081019290925290911660e090910152949350505050565b82815260606020820152600660608201527f6176617461720000000000000000000000000000000000000000000000000000608082015260a060408201526000612f3160a083018461361c565b82815260606020820152600560608201527f706f644964000000000000000000000000000000000000000000000000000000608082015260a060408201526000612f3160a083018461361c565b602081526000611b34602083018461361c565b84815260006001600160a01b03808616602084015280851660408401525060806060830152613866608083018461361c565b9695505050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715613899576138996139e1565b604052919050565b600067ffffffffffffffff8211156138bb576138bb6139e1565b5060051b60200190565b600082198211156138d8576138d861399f565b500190565b6000826138ec576138ec6139b5565b500490565b6000828210156139035761390361399f565b500390565b6000815160208301516001600160e01b0319808216935060048310156139385780818460040360031b1b83161693505b505050919050565b60005b8381101561395b578181015183820152602001613943565b8381111561396a576000848401525b50505050565b60006000198214156139845761398461399f565b5060010190565b60008261399a5761399a6139b5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c4457600080fd5b8015158114610c4457600080fdfe657865635472616e73616374696f6e28616464726573732c75696e743235362c62797465732c75696e74382c75696e743235362c75696e743235362c75696e743235362c616464726573732c616464726573732c627974657329736574757028616464726573735b5d2c75696e743235362c616464726573732c62797465732c616464726573732c616464726573732c75696e743235362c6164647265737329a26469706673582212208422d4f6cf703d561f42ad2e0b546ee6c95bf43253456bc561bb8445a199a9db64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae30000000000000000000000000d97643ee1051b523e4e3b66df3640bba6c0f79f000000000000000000000000a6b71e26c5e0845f74c812102ca7114b6a896ab2000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee70955200000000000000000000000055b5a8c7df8cff8c8c77bd4448cccb82e1533686000000000000000000000000d5d82b6addc9027b22dca772aa68d5d74cdbdf44
-----Decoded View---------------
Arg [0] : _memberToken (address): 0x0762aA185b6ed2dCA77945Ebe92De705e0C37AE3
Arg [1] : _controllerRegistry (address): 0x0d97643EE1051B523E4e3b66Df3640bBA6C0F79f
Arg [2] : _proxyFactoryAddress (address): 0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2
Arg [3] : _gnosisMasterAddress (address): 0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552
Arg [4] : _podEnsRegistrar (address): 0x55b5a8C7Df8cff8c8C77bD4448CCcb82e1533686
Arg [5] : _fallbackHandlerAddress (address): 0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000762aa185b6ed2dca77945ebe92de705e0c37ae3
Arg [1] : 0000000000000000000000000d97643ee1051b523e4e3b66df3640bba6c0f79f
Arg [2] : 000000000000000000000000a6b71e26c5e0845f74c812102ca7114b6a896ab2
Arg [3] : 000000000000000000000000d9db270c1b5e3bd161e8c8503c55ceabee709552
Arg [4] : 00000000000000000000000055b5a8c7df8cff8c8c77bd4448cccb82e1533686
Arg [5] : 000000000000000000000000d5d82b6addc9027b22dca772aa68d5d74cdbdf44
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.