Source Code
Latest 25 from a total of 962 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Renounce Role | 20429867 | 482 days ago | IN | 0 ETH | 0.00010917 | ||||
| Renounce Role | 20429860 | 482 days ago | IN | 0 ETH | 0.00010569 | ||||
| Renounce Role | 20429854 | 482 days ago | IN | 0 ETH | 0.00010246 | ||||
| Purchase | 20236887 | 509 days ago | IN | 0.0015 ETH | 0.00104718 | ||||
| Purchase | 18963910 | 687 days ago | IN | 0 ETH | 0.00233417 | ||||
| Purchase | 17727207 | 860 days ago | IN | 0.0075 ETH | 0.00274988 | ||||
| Purchase | 17727206 | 860 days ago | IN | 0.005 ETH | 0.00282542 | ||||
| Purchase | 17723501 | 861 days ago | IN | 0.0015 ETH | 0.00220339 | ||||
| Purchase | 17709602 | 863 days ago | IN | 0.0045 ETH | 0.00142099 | ||||
| Purchase | 17709172 | 863 days ago | IN | 0.0015 ETH | 0.0016741 | ||||
| Purchase | 17696032 | 865 days ago | IN | 0.0015 ETH | 0.00153519 | ||||
| Purchase | 17695993 | 865 days ago | IN | 0.003 ETH | 0.00160684 | ||||
| Create Sale | 17660500 | 870 days ago | IN | 0 ETH | 0.00393709 | ||||
| Create Sale | 17660494 | 870 days ago | IN | 0 ETH | 0.00399047 | ||||
| Purchase | 17524750 | 889 days ago | IN | 0.003 ETH | 0.0017269 | ||||
| Purchase | 17379184 | 909 days ago | IN | 0.01 ETH | 0.00484282 | ||||
| Purchase | 17273588 | 924 days ago | IN | 0.05 ETH | 0.00894907 | ||||
| Purchase | 17133393 | 944 days ago | IN | 0.001 ETH | 0.00425528 | ||||
| Create Sale | 17108627 | 947 days ago | IN | 0 ETH | 0.01281496 | ||||
| Create Sale | 17108625 | 947 days ago | IN | 0 ETH | 0.01169002 | ||||
| Create Sale | 17108238 | 947 days ago | IN | 0 ETH | 0.0110009 | ||||
| Create Sale | 17108234 | 947 days ago | IN | 0 ETH | 0.00991287 | ||||
| Grant Role | 17108141 | 947 days ago | IN | 0 ETH | 0.00201679 | ||||
| Purchase | 17077594 | 952 days ago | IN | 0.0025 ETH | 0.00500076 | ||||
| Purchase | 16922218 | 974 days ago | IN | 0.01 ETH | 0.00490602 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 20236887 | 509 days ago | 0.00135 ETH | ||||
| Transfer | 20236887 | 509 days ago | 0.00015 ETH | ||||
| Transfer | 17727207 | 860 days ago | 0.00675 ETH | ||||
| Transfer | 17727207 | 860 days ago | 0.00075 ETH | ||||
| Transfer | 17727206 | 860 days ago | 0.0045 ETH | ||||
| Transfer | 17727206 | 860 days ago | 0.0005 ETH | ||||
| Transfer | 17723501 | 861 days ago | 0.00135 ETH | ||||
| Transfer | 17723501 | 861 days ago | 0.00015 ETH | ||||
| Transfer | 17709602 | 863 days ago | 0.00405 ETH | ||||
| Transfer | 17709602 | 863 days ago | 0.00045 ETH | ||||
| Transfer | 17709172 | 863 days ago | 0.00135 ETH | ||||
| Transfer | 17709172 | 863 days ago | 0.00015 ETH | ||||
| Transfer | 17696032 | 865 days ago | 0.00135 ETH | ||||
| Transfer | 17696032 | 865 days ago | 0.00015 ETH | ||||
| Transfer | 17695993 | 865 days ago | 0.0027 ETH | ||||
| Transfer | 17695993 | 865 days ago | 0.0003 ETH | ||||
| Transfer | 17524750 | 889 days ago | 0.0027 ETH | ||||
| Transfer | 17524750 | 889 days ago | 0.0003 ETH | ||||
| Transfer | 17379184 | 909 days ago | 0.009 ETH | ||||
| Transfer | 17379184 | 909 days ago | 0.001 ETH | ||||
| Transfer | 17273588 | 924 days ago | 0.045 ETH | ||||
| Transfer | 17273588 | 924 days ago | 0.005 ETH | ||||
| Transfer | 17133393 | 944 days ago | 0.0009 ETH | ||||
| Transfer | 17133393 | 944 days ago | 0.0001 ETH | ||||
| Transfer | 17077594 | 952 days ago | 0.00225 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Marketplace
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IMarketplace.sol";
import "./WithTreasury.sol";
contract Marketplace is IMarketplace, WithTreasury, ERC1155Holder, AccessControl, ReentrancyGuard {
bytes32 public constant SELLABLE_ROLE = keccak256("SELLABLE_ROLE");
bytes32 public constant SELLER_ROLE = keccak256("SELLER_ROLE");
/// @dev seller => Sales
mapping(address => Sale[]) private _sales;
constructor(address payable modaTreasury_, uint256 treasuryFee_) WithTreasury(modaTreasury_, treasuryFee_) {
require(treasuryFee_ > 0, "Treasury fee cannot be 0");
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(SELLER_ROLE, msg.sender);
}
function createSale(
address tokenHolder,
address payable beneficiary,
address token,
uint256 tokenId,
uint256 tokenAmount,
uint256 pricePerToken,
uint256 startAt,
uint256 endAt,
uint256 maxCountPerWallet
) external override onlyRole(SELLER_ROLE) {
require(hasRole(SELLABLE_ROLE, token), "Unsupported token");
require(address(0) != beneficiary, "Beneficiary cannot be 0x0");
require(tokenAmount > 0, "Token amount cannot be 0");
require(startAt < endAt, "Start must be before end");
require(startAt >= block.timestamp, "Must start in the future");
require(maxCountPerWallet > 0, "Max wallet count must be gt 0");
IERC1155(token).safeTransferFrom(tokenHolder, address(this), tokenId, tokenAmount, "");
_sales[msg.sender].push(
Sale({
tokenHolder: tokenHolder,
beneficiary: beneficiary,
token: token,
tokenId: tokenId,
tokenAmount: tokenAmount,
pricePerToken: pricePerToken,
startAt: startAt,
endAt: endAt,
maxCountPerWallet: maxCountPerWallet
})
);
emit SaleCreated(msg.sender, _sales[msg.sender].length - 1);
}
function purchase(
address seller,
uint256 saleId,
uint256 tokenAmount
) external payable override nonReentrant {
require(tokenAmount > 0, "Cannot mint 0 tokens");
Sale storage sale = _sales[seller][saleId];
require(tokenAmount <= sale.tokenAmount, "Insufficient supply");
if (seller == _msgSender()) {
sale.tokenAmount -= tokenAmount;
IERC1155(sale.token).safeTransferFrom(address(this), _msgSender(), sale.tokenId, tokenAmount, "");
emit Purchase(sale.token, sale.tokenId, _msgSender(), seller, saleId, tokenAmount, block.timestamp);
return;
}
require(sale.startAt <= block.timestamp, "Sale has not started yet");
require(sale.endAt > block.timestamp, "Sale has ended");
require(msg.value == sale.pricePerToken * tokenAmount, "Wrong payment amount");
require(
(IERC1155(sale.token).balanceOf(msg.sender, sale.tokenId) + tokenAmount) <= sale.maxCountPerWallet,
"Cannot exceed max count per wallet"
);
uint256 totalPrice = sale.pricePerToken * tokenAmount;
uint256 fee = (treasuryFee * totalPrice) / 10_000;
modaTreasury.transfer(fee);
sale.beneficiary.transfer(totalPrice - fee);
sale.tokenAmount -= tokenAmount;
IERC1155(sale.token).safeTransferFrom(address(this), _msgSender(), sale.tokenId, tokenAmount, "");
emit Purchase(sale.token, sale.tokenId, _msgSender(), seller, saleId, tokenAmount, block.timestamp);
}
function saleAt(address seller, uint256 index) external view override returns (Sale memory) {
return _sales[seller][index];
}
function saleCount(address seller) external view override returns (uint256) {
return _sales[seller].length;
}
function setTreasuryFee(uint256 newFee_) external onlyRole(DEFAULT_ADMIN_ROLE) {
_setTreasuryFee(newFee_);
}
function setTreasury(address payable newTreasury) external onlyRole(DEFAULT_ADMIN_ROLE) {
_setTreasury(newTreasury);
}
/// @inheritdoc ERC165
function supportsInterface(bytes4 interfaceId) public view override(AccessControl, ERC1155Receiver) returns (bool) {
return super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// 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 (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)
pragma solidity ^0.8.0;
import "./ERC1155Receiver.sol";
/**
* Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.
*
* IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
* stuck.
*
* @dev _Available since v3.1._
*/
contract ERC1155Holder is ERC1155Receiver {
function onERC1155Received(
address,
address,
uint256,
uint256,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address,
address,
uint256[] memory,
uint256[] memory,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155BatchReceived.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}/// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
/// @title IMarketplace
/// @dev Interface for the Marketplace
interface IMarketplace {
struct Sale {
address tokenHolder;
address payable beneficiary;
address token;
uint256 tokenId;
uint256 tokenAmount;
uint256 pricePerToken;
uint256 startAt;
uint256 endAt;
uint256 maxCountPerWallet;
}
event SaleCreated(address indexed seller, uint256 indexed saleId);
event Purchase(
address indexed token,
uint256 indexed tokenId,
address indexed buyer,
address seller,
uint256 saleId,
uint256 tokenAmount,
uint256 timestamp
);
function createSale(
address tokenHolder,
address payable beneficiary,
address token,
uint256 tokenId,
uint256 tokenAmount,
uint256 pricePerToken,
uint256 startAt,
uint256 endAt,
uint256 maxCountPerWallet
) external;
function purchase(
address seller,
uint256 saleIndex,
uint256 tokenAmount
) external payable;
function saleAt(address seller, uint256 index) external view returns (Sale memory);
function saleCount(address seller) external view returns (uint256);
}/// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
contract WithTreasury {
/// @dev modaTreasury will receive a percentage of all final sales to support the ecosystem
address payable public modaTreasury;
/// @dev treasuryFee is based on a denominator of 10,000 (e.g. 1000 is 10.0%). Max of 10%
uint256 public treasuryFee;
event TreasuryFeeSet(uint256 oldFee, uint256 newFee);
event Treasury(address indexed oldTreasury, address indexed newTreasury);
constructor(address payable modaTreasury_, uint256 treasuryFee_) {
require(address(0) != modaTreasury_, "Treasury cannot be 0x0");
_setTreasury(modaTreasury_);
_setTreasuryFee(treasuryFee_);
}
function _setTreasury(address payable newTreasury) internal {
address old = modaTreasury;
modaTreasury = newTreasury;
emit Treasury(old, newTreasury);
}
function _setTreasuryFee(uint256 newFee_) internal {
require(newFee_ <= 1000, "Cannot be greater than 1000 (10%)");
uint256 oldFee = treasuryFee;
treasuryFee = newFee_;
emit TreasuryFeeSet(oldFee, newFee_);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}// 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/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";
/**
* @dev _Available since v3.1._
*/
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev _Available since v3.1._
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address payable","name":"modaTreasury_","type":"address"},{"internalType":"uint256","name":"treasuryFee_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"SaleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":true,"internalType":"address","name":"newTreasury","type":"address"}],"name":"Treasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"TreasuryFeeSet","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SELLABLE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SELLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenHolder","type":"address"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint256","name":"startAt","type":"uint256"},{"internalType":"uint256","name":"endAt","type":"uint256"},{"internalType":"uint256","name":"maxCountPerWallet","type":"uint256"}],"name":"createSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"modaTreasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"saleAt","outputs":[{"components":[{"internalType":"address","name":"tokenHolder","type":"address"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"uint256","name":"startAt","type":"uint256"},{"internalType":"uint256","name":"endAt","type":"uint256"},{"internalType":"uint256","name":"maxCountPerWallet","type":"uint256"}],"internalType":"struct IMarketplace.Sale","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"seller","type":"address"}],"name":"saleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee_","type":"uint256"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50604051620039d5380380620039d58339818101604052810190620000379190620004d0565b81818173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415620000ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a39062000578565b60405180910390fd5b620000bd826200016d60201b60201c565b620000ce816200023160201b60201c565b50506001600381905550600081116200011e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011590620005ea565b60405180910390fd5b620001336000801b33620002c660201b60201c565b620001657f43f25613eb2f15fb17222a5d424ca2655743e71265d98e4b93c05e5fb589ecde33620002c660201b60201c565b5050620006e2565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fe87443f38b782cb8c32816e372ef2a839e8faf0f14dc0f0a62d1c1a23302141260405160405180910390a35050565b6103e881111562000279576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002709062000682565b60405180910390fd5b60006001549050816001819055507f5e9056c3a7709d3e2daed4fda8d885dd5383f623740d63f66a77fd0ef9bc99558183604051620002ba929190620006b5565b60405180910390a15050565b620002d88282620003b860201b60201c565b620003b45760016002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003596200042360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200045d8262000430565b9050919050565b6200046f8162000450565b81146200047b57600080fd5b50565b6000815190506200048f8162000464565b92915050565b6000819050919050565b620004aa8162000495565b8114620004b657600080fd5b50565b600081519050620004ca816200049f565b92915050565b60008060408385031215620004ea57620004e96200042b565b5b6000620004fa858286016200047e565b92505060206200050d85828601620004b9565b9150509250929050565b600082825260208201905092915050565b7f54726561737572792063616e6e6f742062652030783000000000000000000000600082015250565b60006200056060168362000517565b91506200056d8262000528565b602082019050919050565b60006020820190508181036000830152620005938162000551565b9050919050565b7f5472656173757279206665652063616e6e6f7420626520300000000000000000600082015250565b6000620005d260188362000517565b9150620005df826200059a565b602082019050919050565b600060208201905081810360008301526200060581620005c3565b9050919050565b7f43616e6e6f742062652067726561746572207468616e2031303030202831302560008201527f2900000000000000000000000000000000000000000000000000000000000000602082015250565b60006200066a60218362000517565b915062000677826200060c565b604082019050919050565b600060208201905081810360008301526200069d816200065b565b9050919050565b620006af8162000495565b82525050565b6000604082019050620006cc6000830185620006a4565b620006db6020830184620006a4565b9392505050565b6132e380620006f26000396000f3fe6080604052600436106101145760003560e01c8063a217fddf116100a0578063dbe4613d11610064578063dbe4613d146103b4578063e3e699bb146103df578063f0f442601461041c578063f23a6e6114610445578063fad5753b1461048257610114565b8063a217fddf146102bb578063ad489152146102e6578063bc197c8114610323578063cc32d17614610360578063d547741f1461038b57610114565b806336568abe116100e757806336568abe146101e75780635aa6f4061461021057806377e741c71461023957806391d148541461026257806398968f151461029f57610114565b806301ffc9a714610119578063248a9ca3146101565780632f2ff15d146101935780632fb08980146101bc575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190611da8565b6104ad565b60405161014d9190611df0565b60405180910390f35b34801561016257600080fd5b5061017d60048036038101906101789190611e41565b6104bf565b60405161018a9190611e7d565b60405180910390f35b34801561019f57600080fd5b506101ba60048036038101906101b59190611ef6565b6104df565b005b3480156101c857600080fd5b506101d1610508565b6040516101de9190611e7d565b60405180910390f35b3480156101f357600080fd5b5061020e60048036038101906102099190611ef6565b61052c565b005b34801561021c57600080fd5b5061023760048036038101906102329190611faa565b6105af565b005b34801561024557600080fd5b50610260600480360381019061025b9190612074565b610ad2565b005b34801561026e57600080fd5b5061028960048036038101906102849190611ef6565b610af4565b6040516102969190611df0565b60405180910390f35b6102b960048036038101906102b491906120a1565b610b5f565b005b3480156102c757600080fd5b506102d0611289565b6040516102dd9190611e7d565b60405180910390f35b3480156102f257600080fd5b5061030d600480360381019061030891906120f4565b611290565b60405161031a9190612218565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190612442565b611449565b6040516103579190612520565b60405180910390f35b34801561036c57600080fd5b5061037561145e565b604051610382919061254a565b60405180910390f35b34801561039757600080fd5b506103b260048036038101906103ad9190611ef6565b611464565b005b3480156103c057600080fd5b506103c961148d565b6040516103d69190611e7d565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190612565565b6114b1565b604051610413919061254a565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190612592565b6114fd565b005b34801561045157600080fd5b5061046c600480360381019061046791906125bf565b61151f565b6040516104799190612520565b60405180910390f35b34801561048e57600080fd5b50610497611534565b6040516104a49190612665565b60405180910390f35b60006104b882611558565b9050919050565b600060026000838152602001908152602001600020600101549050919050565b6104e8826104bf565b6104f9816104f46115d2565b6115da565b6105038383611677565b505050565b7fa4684ec515d3bc43d8049242d0b767469597225cd219cf7a6158bed1f95d2ab481565b6105346115d2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059890612703565b60405180910390fd5b6105ab8282611758565b5050565b7f43f25613eb2f15fb17222a5d424ca2655743e71265d98e4b93c05e5fb589ecde6105e1816105dc6115d2565b6115da565b61060b7fa4684ec515d3bc43d8049242d0b767469597225cd219cf7a6158bed1f95d2ab489610af4565b61064a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106419061276f565b60405180910390fd5b8873ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156106ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b1906127db565b60405180910390fd5b600086116106fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f490612847565b60405180910390fd5b82841061073f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610736906128b3565b60405180910390fd5b42841015610782576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107799061291f565b60405180910390fd5b600082116107c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bc9061298b565b60405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff1663f242432a8b308a8a6040518563ffffffff1660e01b815260040161080494939291906129f1565b600060405180830381600087803b15801561081e57600080fd5b505af1158015610832573d6000803e3d6000fd5b50505050600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518061012001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff16815260200189815260200188815260200187815260200186815260200185815260200184815250908060018154018082558091505060019003906000526020600020906009020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155610100820151816008015550506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050610a839190612a78565b3373ffffffffffffffffffffffffffffffffffffffff167f371910e598072529180b28c60f34fc7445d99bd870936559016ce9e1282df51560405160405180910390a350505050505050505050565b6000801b610ae781610ae26115d2565b6115da565b610af08261183a565b5050565b60006002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026003541415610ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9c90612af8565b60405180910390fd5b600260038190555060008111610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790612b64565b60405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110610c4357610c42612b84565b5b906000526020600020906009020190508060040154821115610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9190612bff565b60405180910390fd5b610ca26115d2565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610e315781816004016000828254610ce99190612a78565b925050819055508060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a30610d396115d2565b8460030154866040518563ffffffff1660e01b8152600401610d5e94939291906129f1565b600060405180830381600087803b158015610d7857600080fd5b505af1158015610d8c573d6000803e3d6000fd5b50505050610d986115d2565b73ffffffffffffffffffffffffffffffffffffffff1681600301548260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2df2754eec407455df56fe3aa179144926c406990c03b3dec8bba30a5296849a87878742604051610e239493929190612c1f565b60405180910390a45061127c565b4281600601541115610e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f90612cb0565b60405180910390fd5b42816007015411610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590612d1c565b60405180910390fd5b818160050154610ece9190612d3c565b3414610f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0690612de2565b60405180910390fd5b8060080154828260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e3385600301546040518363ffffffff1660e01b8152600401610f77929190612e02565b60206040518083038186803b158015610f8f57600080fd5b505afa158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190612e40565b610fd19190612e6d565b1115611012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100990612f35565b60405180910390fd5b60008282600501546110249190612d3c565b90506000612710826001546110399190612d3c565b6110439190612f84565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110ab573d6000803e3d6000fd5b508260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc82846110f69190612a78565b9081150290604051600060405180830381858888f19350505050158015611121573d6000803e3d6000fd5b50838360040160008282546111369190612a78565b925050819055508260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a306111866115d2565b8660030154886040518563ffffffff1660e01b81526004016111ab94939291906129f1565b600060405180830381600087803b1580156111c557600080fd5b505af11580156111d9573d6000803e3d6000fd5b505050506111e56115d2565b73ffffffffffffffffffffffffffffffffffffffff1683600301548460020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2df2754eec407455df56fe3aa179144926c406990c03b3dec8bba30a5296849a898989426040516112709493929190612c1f565b60405180910390a45050505b6001600381905550505050565b6000801b81565b611298611cae565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106112e9576112e8612b84565b5b9060005260206000209060090201604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481525050905092915050565b600063bc197c8160e01b905095945050505050565b60015481565b61146d826104bf565b61147e816114796115d2565b6115da565b6114888383611758565b505050565b7f43f25613eb2f15fb17222a5d424ca2655743e71265d98e4b93c05e5fb589ecde81565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b6000801b6115128161150d6115d2565b6115da565b61151b826118ca565b5050565b600063f23a6e6160e01b905095945050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115cb57506115ca8261198e565b5b9050919050565b600033905090565b6115e48282610af4565b611673576116098173ffffffffffffffffffffffffffffffffffffffff166014611a08565b6116178360001c6020611a08565b6040516020016116289291906130c7565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166a919061313a565b60405180910390fd5b5050565b6116818282610af4565b6117545760016002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506116f96115d2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6117628282610af4565b156118365760006002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117db6115d2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6103e881111561187f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611876906131ce565b60405180910390fd5b60006001549050816001819055507f5e9056c3a7709d3e2daed4fda8d885dd5383f623740d63f66a77fd0ef9bc995581836040516118be9291906131ee565b60405180910390a15050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fe87443f38b782cb8c32816e372ef2a839e8faf0f14dc0f0a62d1c1a23302141260405160405180910390a35050565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a015750611a0082611c44565b5b9050919050565b606060006002836002611a1b9190612d3c565b611a259190612e6d565b67ffffffffffffffff811115611a3e57611a3d61224a565b5b6040519080825280601f01601f191660200182016040528015611a705781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611aa857611aa7612b84565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b0c57611b0b612b84565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b4c9190612d3c565b611b569190612e6d565b90505b6001811115611bf6577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611b9857611b97612b84565b5b1a60f81b828281518110611baf57611bae612b84565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611bef90613217565b9050611b59565b5060008414611c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c319061328d565b60405180910390fd5b8091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b604051806101200160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611d8581611d50565b8114611d9057600080fd5b50565b600081359050611da281611d7c565b92915050565b600060208284031215611dbe57611dbd611d46565b5b6000611dcc84828501611d93565b91505092915050565b60008115159050919050565b611dea81611dd5565b82525050565b6000602082019050611e056000830184611de1565b92915050565b6000819050919050565b611e1e81611e0b565b8114611e2957600080fd5b50565b600081359050611e3b81611e15565b92915050565b600060208284031215611e5757611e56611d46565b5b6000611e6584828501611e2c565b91505092915050565b611e7781611e0b565b82525050565b6000602082019050611e926000830184611e6e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ec382611e98565b9050919050565b611ed381611eb8565b8114611ede57600080fd5b50565b600081359050611ef081611eca565b92915050565b60008060408385031215611f0d57611f0c611d46565b5b6000611f1b85828601611e2c565b9250506020611f2c85828601611ee1565b9150509250929050565b6000611f4182611e98565b9050919050565b611f5181611f36565b8114611f5c57600080fd5b50565b600081359050611f6e81611f48565b92915050565b6000819050919050565b611f8781611f74565b8114611f9257600080fd5b50565b600081359050611fa481611f7e565b92915050565b60008060008060008060008060006101208a8c031215611fcd57611fcc611d46565b5b6000611fdb8c828d01611ee1565b9950506020611fec8c828d01611f5f565b9850506040611ffd8c828d01611ee1565b975050606061200e8c828d01611f95565b965050608061201f8c828d01611f95565b95505060a06120308c828d01611f95565b94505060c06120418c828d01611f95565b93505060e06120528c828d01611f95565b9250506101006120648c828d01611f95565b9150509295985092959850929598565b60006020828403121561208a57612089611d46565b5b600061209884828501611f95565b91505092915050565b6000806000606084860312156120ba576120b9611d46565b5b60006120c886828701611ee1565b93505060206120d986828701611f95565b92505060406120ea86828701611f95565b9150509250925092565b6000806040838503121561210b5761210a611d46565b5b600061211985828601611ee1565b925050602061212a85828601611f95565b9150509250929050565b61213d81611eb8565b82525050565b61214c81611f36565b82525050565b61215b81611f74565b82525050565b610120820160008201516121786000850182612134565b50602082015161218b6020850182612143565b50604082015161219e6040850182612134565b5060608201516121b16060850182612152565b5060808201516121c46080850182612152565b5060a08201516121d760a0850182612152565b5060c08201516121ea60c0850182612152565b5060e08201516121fd60e0850182612152565b50610100820151612212610100850182612152565b50505050565b60006101208201905061222e6000830184612161565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61228282612239565b810181811067ffffffffffffffff821117156122a1576122a061224a565b5b80604052505050565b60006122b4611d3c565b90506122c08282612279565b919050565b600067ffffffffffffffff8211156122e0576122df61224a565b5b602082029050602081019050919050565b600080fd5b6000612309612304846122c5565b6122aa565b9050808382526020820190506020840283018581111561232c5761232b6122f1565b5b835b8181101561235557806123418882611f95565b84526020840193505060208101905061232e565b5050509392505050565b600082601f83011261237457612373612234565b5b81356123848482602086016122f6565b91505092915050565b600080fd5b600067ffffffffffffffff8211156123ad576123ac61224a565b5b6123b682612239565b9050602081019050919050565b82818337600083830152505050565b60006123e56123e084612392565b6122aa565b9050828152602081018484840111156124015761240061238d565b5b61240c8482856123c3565b509392505050565b600082601f83011261242957612428612234565b5b81356124398482602086016123d2565b91505092915050565b600080600080600060a0868803121561245e5761245d611d46565b5b600061246c88828901611ee1565b955050602061247d88828901611ee1565b945050604086013567ffffffffffffffff81111561249e5761249d611d4b565b5b6124aa8882890161235f565b935050606086013567ffffffffffffffff8111156124cb576124ca611d4b565b5b6124d78882890161235f565b925050608086013567ffffffffffffffff8111156124f8576124f7611d4b565b5b61250488828901612414565b9150509295509295909350565b61251a81611d50565b82525050565b60006020820190506125356000830184612511565b92915050565b61254481611f74565b82525050565b600060208201905061255f600083018461253b565b92915050565b60006020828403121561257b5761257a611d46565b5b600061258984828501611ee1565b91505092915050565b6000602082840312156125a8576125a7611d46565b5b60006125b684828501611f5f565b91505092915050565b600080600080600060a086880312156125db576125da611d46565b5b60006125e988828901611ee1565b95505060206125fa88828901611ee1565b945050604061260b88828901611f95565b935050606061261c88828901611f95565b925050608086013567ffffffffffffffff81111561263d5761263c611d4b565b5b61264988828901612414565b9150509295509295909350565b61265f81611f36565b82525050565b600060208201905061267a6000830184612656565b92915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006126ed602f83612680565b91506126f882612691565b604082019050919050565b6000602082019050818103600083015261271c816126e0565b9050919050565b7f556e737570706f7274656420746f6b656e000000000000000000000000000000600082015250565b6000612759601183612680565b915061276482612723565b602082019050919050565b600060208201905081810360008301526127888161274c565b9050919050565b7f42656e65666963696172792063616e6e6f742062652030783000000000000000600082015250565b60006127c5601983612680565b91506127d08261278f565b602082019050919050565b600060208201905081810360008301526127f4816127b8565b9050919050565b7f546f6b656e20616d6f756e742063616e6e6f7420626520300000000000000000600082015250565b6000612831601883612680565b915061283c826127fb565b602082019050919050565b6000602082019050818103600083015261286081612824565b9050919050565b7f5374617274206d757374206265206265666f726520656e640000000000000000600082015250565b600061289d601883612680565b91506128a882612867565b602082019050919050565b600060208201905081810360008301526128cc81612890565b9050919050565b7f4d75737420737461727420696e20746865206675747572650000000000000000600082015250565b6000612909601883612680565b9150612914826128d3565b602082019050919050565b60006020820190508181036000830152612938816128fc565b9050919050565b7f4d61782077616c6c657420636f756e74206d7573742062652067742030000000600082015250565b6000612975601d83612680565b91506129808261293f565b602082019050919050565b600060208201905081810360008301526129a481612968565b9050919050565b6129b481611eb8565b82525050565b600082825260208201905092915050565b50565b60006129db6000836129ba565b91506129e6826129cb565b600082019050919050565b600060a082019050612a0660008301876129ab565b612a1360208301866129ab565b612a20604083018561253b565b612a2d606083018461253b565b8181036080830152612a3e816129ce565b905095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a8382611f74565b9150612a8e83611f74565b925082821015612aa157612aa0612a49565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612ae2601f83612680565b9150612aed82612aac565b602082019050919050565b60006020820190508181036000830152612b1181612ad5565b9050919050565b7f43616e6e6f74206d696e74203020746f6b656e73000000000000000000000000600082015250565b6000612b4e601483612680565b9150612b5982612b18565b602082019050919050565b60006020820190508181036000830152612b7d81612b41565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f496e73756666696369656e7420737570706c7900000000000000000000000000600082015250565b6000612be9601383612680565b9150612bf482612bb3565b602082019050919050565b60006020820190508181036000830152612c1881612bdc565b9050919050565b6000608082019050612c3460008301876129ab565b612c41602083018661253b565b612c4e604083018561253b565b612c5b606083018461253b565b95945050505050565b7f53616c6520686173206e6f742073746172746564207965740000000000000000600082015250565b6000612c9a601883612680565b9150612ca582612c64565b602082019050919050565b60006020820190508181036000830152612cc981612c8d565b9050919050565b7f53616c652068617320656e646564000000000000000000000000000000000000600082015250565b6000612d06600e83612680565b9150612d1182612cd0565b602082019050919050565b60006020820190508181036000830152612d3581612cf9565b9050919050565b6000612d4782611f74565b9150612d5283611f74565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d8b57612d8a612a49565b5b828202905092915050565b7f57726f6e67207061796d656e7420616d6f756e74000000000000000000000000600082015250565b6000612dcc601483612680565b9150612dd782612d96565b602082019050919050565b60006020820190508181036000830152612dfb81612dbf565b9050919050565b6000604082019050612e1760008301856129ab565b612e24602083018461253b565b9392505050565b600081519050612e3a81611f7e565b92915050565b600060208284031215612e5657612e55611d46565b5b6000612e6484828501612e2b565b91505092915050565b6000612e7882611f74565b9150612e8383611f74565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612eb857612eb7612a49565b5b828201905092915050565b7f43616e6e6f7420657863656564206d617820636f756e74207065722077616c6c60008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b6000612f1f602283612680565b9150612f2a82612ec3565b604082019050919050565b60006020820190508181036000830152612f4e81612f12565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612f8f82611f74565b9150612f9a83611f74565b925082612faa57612fa9612f55565b5b828204905092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612ff6601783612fb5565b915061300182612fc0565b601782019050919050565b600081519050919050565b60005b8381101561303557808201518184015260208101905061301a565b83811115613044576000848401525b50505050565b60006130558261300c565b61305f8185612fb5565b935061306f818560208601613017565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006130b1601183612fb5565b91506130bc8261307b565b601182019050919050565b60006130d282612fe9565b91506130de828561304a565b91506130e9826130a4565b91506130f5828461304a565b91508190509392505050565b600061310c8261300c565b6131168185612680565b9350613126818560208601613017565b61312f81612239565b840191505092915050565b600060208201905081810360008301526131548184613101565b905092915050565b7f43616e6e6f742062652067726561746572207468616e2031303030202831302560008201527f2900000000000000000000000000000000000000000000000000000000000000602082015250565b60006131b8602183612680565b91506131c38261315c565b604082019050919050565b600060208201905081810360008301526131e7816131ab565b9050919050565b6000604082019050613203600083018561253b565b613210602083018461253b565b9392505050565b600061322282611f74565b9150600082141561323657613235612a49565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613277602083612680565b915061328282613241565b602082019050919050565b600060208201905081810360008301526132a68161326a565b905091905056fea264697066735822122022317ed84fc1cc2416da00c474bb8f96ce07144536cc70f753e4be6db7c8bbc564736f6c63430008090033000000000000000000000000e81ff8eec96d3fcdae991e72e723fb3b4c9d222500000000000000000000000000000000000000000000000000000000000003e8
Deployed Bytecode
0x6080604052600436106101145760003560e01c8063a217fddf116100a0578063dbe4613d11610064578063dbe4613d146103b4578063e3e699bb146103df578063f0f442601461041c578063f23a6e6114610445578063fad5753b1461048257610114565b8063a217fddf146102bb578063ad489152146102e6578063bc197c8114610323578063cc32d17614610360578063d547741f1461038b57610114565b806336568abe116100e757806336568abe146101e75780635aa6f4061461021057806377e741c71461023957806391d148541461026257806398968f151461029f57610114565b806301ffc9a714610119578063248a9ca3146101565780632f2ff15d146101935780632fb08980146101bc575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190611da8565b6104ad565b60405161014d9190611df0565b60405180910390f35b34801561016257600080fd5b5061017d60048036038101906101789190611e41565b6104bf565b60405161018a9190611e7d565b60405180910390f35b34801561019f57600080fd5b506101ba60048036038101906101b59190611ef6565b6104df565b005b3480156101c857600080fd5b506101d1610508565b6040516101de9190611e7d565b60405180910390f35b3480156101f357600080fd5b5061020e60048036038101906102099190611ef6565b61052c565b005b34801561021c57600080fd5b5061023760048036038101906102329190611faa565b6105af565b005b34801561024557600080fd5b50610260600480360381019061025b9190612074565b610ad2565b005b34801561026e57600080fd5b5061028960048036038101906102849190611ef6565b610af4565b6040516102969190611df0565b60405180910390f35b6102b960048036038101906102b491906120a1565b610b5f565b005b3480156102c757600080fd5b506102d0611289565b6040516102dd9190611e7d565b60405180910390f35b3480156102f257600080fd5b5061030d600480360381019061030891906120f4565b611290565b60405161031a9190612218565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190612442565b611449565b6040516103579190612520565b60405180910390f35b34801561036c57600080fd5b5061037561145e565b604051610382919061254a565b60405180910390f35b34801561039757600080fd5b506103b260048036038101906103ad9190611ef6565b611464565b005b3480156103c057600080fd5b506103c961148d565b6040516103d69190611e7d565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190612565565b6114b1565b604051610413919061254a565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190612592565b6114fd565b005b34801561045157600080fd5b5061046c600480360381019061046791906125bf565b61151f565b6040516104799190612520565b60405180910390f35b34801561048e57600080fd5b50610497611534565b6040516104a49190612665565b60405180910390f35b60006104b882611558565b9050919050565b600060026000838152602001908152602001600020600101549050919050565b6104e8826104bf565b6104f9816104f46115d2565b6115da565b6105038383611677565b505050565b7fa4684ec515d3bc43d8049242d0b767469597225cd219cf7a6158bed1f95d2ab481565b6105346115d2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059890612703565b60405180910390fd5b6105ab8282611758565b5050565b7f43f25613eb2f15fb17222a5d424ca2655743e71265d98e4b93c05e5fb589ecde6105e1816105dc6115d2565b6115da565b61060b7fa4684ec515d3bc43d8049242d0b767469597225cd219cf7a6158bed1f95d2ab489610af4565b61064a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106419061276f565b60405180910390fd5b8873ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156106ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b1906127db565b60405180910390fd5b600086116106fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f490612847565b60405180910390fd5b82841061073f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610736906128b3565b60405180910390fd5b42841015610782576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107799061291f565b60405180910390fd5b600082116107c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bc9061298b565b60405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff1663f242432a8b308a8a6040518563ffffffff1660e01b815260040161080494939291906129f1565b600060405180830381600087803b15801561081e57600080fd5b505af1158015610832573d6000803e3d6000fd5b50505050600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518061012001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a73ffffffffffffffffffffffffffffffffffffffff16815260200189815260200188815260200187815260200186815260200185815260200184815250908060018154018082558091505060019003906000526020600020906009020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155610100820151816008015550506001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050610a839190612a78565b3373ffffffffffffffffffffffffffffffffffffffff167f371910e598072529180b28c60f34fc7445d99bd870936559016ce9e1282df51560405160405180910390a350505050505050505050565b6000801b610ae781610ae26115d2565b6115da565b610af08261183a565b5050565b60006002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026003541415610ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9c90612af8565b60405180910390fd5b600260038190555060008111610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790612b64565b60405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208381548110610c4357610c42612b84565b5b906000526020600020906009020190508060040154821115610c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9190612bff565b60405180910390fd5b610ca26115d2565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610e315781816004016000828254610ce99190612a78565b925050819055508060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a30610d396115d2565b8460030154866040518563ffffffff1660e01b8152600401610d5e94939291906129f1565b600060405180830381600087803b158015610d7857600080fd5b505af1158015610d8c573d6000803e3d6000fd5b50505050610d986115d2565b73ffffffffffffffffffffffffffffffffffffffff1681600301548260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2df2754eec407455df56fe3aa179144926c406990c03b3dec8bba30a5296849a87878742604051610e239493929190612c1f565b60405180910390a45061127c565b4281600601541115610e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f90612cb0565b60405180910390fd5b42816007015411610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590612d1c565b60405180910390fd5b818160050154610ece9190612d3c565b3414610f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0690612de2565b60405180910390fd5b8060080154828260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e3385600301546040518363ffffffff1660e01b8152600401610f77929190612e02565b60206040518083038186803b158015610f8f57600080fd5b505afa158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc79190612e40565b610fd19190612e6d565b1115611012576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100990612f35565b60405180910390fd5b60008282600501546110249190612d3c565b90506000612710826001546110399190612d3c565b6110439190612f84565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110ab573d6000803e3d6000fd5b508260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc82846110f69190612a78565b9081150290604051600060405180830381858888f19350505050158015611121573d6000803e3d6000fd5b50838360040160008282546111369190612a78565b925050819055508260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a306111866115d2565b8660030154886040518563ffffffff1660e01b81526004016111ab94939291906129f1565b600060405180830381600087803b1580156111c557600080fd5b505af11580156111d9573d6000803e3d6000fd5b505050506111e56115d2565b73ffffffffffffffffffffffffffffffffffffffff1683600301548460020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2df2754eec407455df56fe3aa179144926c406990c03b3dec8bba30a5296849a898989426040516112709493929190612c1f565b60405180910390a45050505b6001600381905550505050565b6000801b81565b611298611cae565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106112e9576112e8612b84565b5b9060005260206000209060090201604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481525050905092915050565b600063bc197c8160e01b905095945050505050565b60015481565b61146d826104bf565b61147e816114796115d2565b6115da565b6114888383611758565b505050565b7f43f25613eb2f15fb17222a5d424ca2655743e71265d98e4b93c05e5fb589ecde81565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b6000801b6115128161150d6115d2565b6115da565b61151b826118ca565b5050565b600063f23a6e6160e01b905095945050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115cb57506115ca8261198e565b5b9050919050565b600033905090565b6115e48282610af4565b611673576116098173ffffffffffffffffffffffffffffffffffffffff166014611a08565b6116178360001c6020611a08565b6040516020016116289291906130c7565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166a919061313a565b60405180910390fd5b5050565b6116818282610af4565b6117545760016002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506116f96115d2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6117628282610af4565b156118365760006002600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117db6115d2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6103e881111561187f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611876906131ce565b60405180910390fd5b60006001549050816001819055507f5e9056c3a7709d3e2daed4fda8d885dd5383f623740d63f66a77fd0ef9bc995581836040516118be9291906131ee565b60405180910390a15050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fe87443f38b782cb8c32816e372ef2a839e8faf0f14dc0f0a62d1c1a23302141260405160405180910390a35050565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a015750611a0082611c44565b5b9050919050565b606060006002836002611a1b9190612d3c565b611a259190612e6d565b67ffffffffffffffff811115611a3e57611a3d61224a565b5b6040519080825280601f01601f191660200182016040528015611a705781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611aa857611aa7612b84565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b0c57611b0b612b84565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b4c9190612d3c565b611b569190612e6d565b90505b6001811115611bf6577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611b9857611b97612b84565b5b1a60f81b828281518110611baf57611bae612b84565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611bef90613217565b9050611b59565b5060008414611c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c319061328d565b60405180910390fd5b8091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b604051806101200160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611d8581611d50565b8114611d9057600080fd5b50565b600081359050611da281611d7c565b92915050565b600060208284031215611dbe57611dbd611d46565b5b6000611dcc84828501611d93565b91505092915050565b60008115159050919050565b611dea81611dd5565b82525050565b6000602082019050611e056000830184611de1565b92915050565b6000819050919050565b611e1e81611e0b565b8114611e2957600080fd5b50565b600081359050611e3b81611e15565b92915050565b600060208284031215611e5757611e56611d46565b5b6000611e6584828501611e2c565b91505092915050565b611e7781611e0b565b82525050565b6000602082019050611e926000830184611e6e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611ec382611e98565b9050919050565b611ed381611eb8565b8114611ede57600080fd5b50565b600081359050611ef081611eca565b92915050565b60008060408385031215611f0d57611f0c611d46565b5b6000611f1b85828601611e2c565b9250506020611f2c85828601611ee1565b9150509250929050565b6000611f4182611e98565b9050919050565b611f5181611f36565b8114611f5c57600080fd5b50565b600081359050611f6e81611f48565b92915050565b6000819050919050565b611f8781611f74565b8114611f9257600080fd5b50565b600081359050611fa481611f7e565b92915050565b60008060008060008060008060006101208a8c031215611fcd57611fcc611d46565b5b6000611fdb8c828d01611ee1565b9950506020611fec8c828d01611f5f565b9850506040611ffd8c828d01611ee1565b975050606061200e8c828d01611f95565b965050608061201f8c828d01611f95565b95505060a06120308c828d01611f95565b94505060c06120418c828d01611f95565b93505060e06120528c828d01611f95565b9250506101006120648c828d01611f95565b9150509295985092959850929598565b60006020828403121561208a57612089611d46565b5b600061209884828501611f95565b91505092915050565b6000806000606084860312156120ba576120b9611d46565b5b60006120c886828701611ee1565b93505060206120d986828701611f95565b92505060406120ea86828701611f95565b9150509250925092565b6000806040838503121561210b5761210a611d46565b5b600061211985828601611ee1565b925050602061212a85828601611f95565b9150509250929050565b61213d81611eb8565b82525050565b61214c81611f36565b82525050565b61215b81611f74565b82525050565b610120820160008201516121786000850182612134565b50602082015161218b6020850182612143565b50604082015161219e6040850182612134565b5060608201516121b16060850182612152565b5060808201516121c46080850182612152565b5060a08201516121d760a0850182612152565b5060c08201516121ea60c0850182612152565b5060e08201516121fd60e0850182612152565b50610100820151612212610100850182612152565b50505050565b60006101208201905061222e6000830184612161565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61228282612239565b810181811067ffffffffffffffff821117156122a1576122a061224a565b5b80604052505050565b60006122b4611d3c565b90506122c08282612279565b919050565b600067ffffffffffffffff8211156122e0576122df61224a565b5b602082029050602081019050919050565b600080fd5b6000612309612304846122c5565b6122aa565b9050808382526020820190506020840283018581111561232c5761232b6122f1565b5b835b8181101561235557806123418882611f95565b84526020840193505060208101905061232e565b5050509392505050565b600082601f83011261237457612373612234565b5b81356123848482602086016122f6565b91505092915050565b600080fd5b600067ffffffffffffffff8211156123ad576123ac61224a565b5b6123b682612239565b9050602081019050919050565b82818337600083830152505050565b60006123e56123e084612392565b6122aa565b9050828152602081018484840111156124015761240061238d565b5b61240c8482856123c3565b509392505050565b600082601f83011261242957612428612234565b5b81356124398482602086016123d2565b91505092915050565b600080600080600060a0868803121561245e5761245d611d46565b5b600061246c88828901611ee1565b955050602061247d88828901611ee1565b945050604086013567ffffffffffffffff81111561249e5761249d611d4b565b5b6124aa8882890161235f565b935050606086013567ffffffffffffffff8111156124cb576124ca611d4b565b5b6124d78882890161235f565b925050608086013567ffffffffffffffff8111156124f8576124f7611d4b565b5b61250488828901612414565b9150509295509295909350565b61251a81611d50565b82525050565b60006020820190506125356000830184612511565b92915050565b61254481611f74565b82525050565b600060208201905061255f600083018461253b565b92915050565b60006020828403121561257b5761257a611d46565b5b600061258984828501611ee1565b91505092915050565b6000602082840312156125a8576125a7611d46565b5b60006125b684828501611f5f565b91505092915050565b600080600080600060a086880312156125db576125da611d46565b5b60006125e988828901611ee1565b95505060206125fa88828901611ee1565b945050604061260b88828901611f95565b935050606061261c88828901611f95565b925050608086013567ffffffffffffffff81111561263d5761263c611d4b565b5b61264988828901612414565b9150509295509295909350565b61265f81611f36565b82525050565b600060208201905061267a6000830184612656565b92915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006126ed602f83612680565b91506126f882612691565b604082019050919050565b6000602082019050818103600083015261271c816126e0565b9050919050565b7f556e737570706f7274656420746f6b656e000000000000000000000000000000600082015250565b6000612759601183612680565b915061276482612723565b602082019050919050565b600060208201905081810360008301526127888161274c565b9050919050565b7f42656e65666963696172792063616e6e6f742062652030783000000000000000600082015250565b60006127c5601983612680565b91506127d08261278f565b602082019050919050565b600060208201905081810360008301526127f4816127b8565b9050919050565b7f546f6b656e20616d6f756e742063616e6e6f7420626520300000000000000000600082015250565b6000612831601883612680565b915061283c826127fb565b602082019050919050565b6000602082019050818103600083015261286081612824565b9050919050565b7f5374617274206d757374206265206265666f726520656e640000000000000000600082015250565b600061289d601883612680565b91506128a882612867565b602082019050919050565b600060208201905081810360008301526128cc81612890565b9050919050565b7f4d75737420737461727420696e20746865206675747572650000000000000000600082015250565b6000612909601883612680565b9150612914826128d3565b602082019050919050565b60006020820190508181036000830152612938816128fc565b9050919050565b7f4d61782077616c6c657420636f756e74206d7573742062652067742030000000600082015250565b6000612975601d83612680565b91506129808261293f565b602082019050919050565b600060208201905081810360008301526129a481612968565b9050919050565b6129b481611eb8565b82525050565b600082825260208201905092915050565b50565b60006129db6000836129ba565b91506129e6826129cb565b600082019050919050565b600060a082019050612a0660008301876129ab565b612a1360208301866129ab565b612a20604083018561253b565b612a2d606083018461253b565b8181036080830152612a3e816129ce565b905095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a8382611f74565b9150612a8e83611f74565b925082821015612aa157612aa0612a49565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612ae2601f83612680565b9150612aed82612aac565b602082019050919050565b60006020820190508181036000830152612b1181612ad5565b9050919050565b7f43616e6e6f74206d696e74203020746f6b656e73000000000000000000000000600082015250565b6000612b4e601483612680565b9150612b5982612b18565b602082019050919050565b60006020820190508181036000830152612b7d81612b41565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f496e73756666696369656e7420737570706c7900000000000000000000000000600082015250565b6000612be9601383612680565b9150612bf482612bb3565b602082019050919050565b60006020820190508181036000830152612c1881612bdc565b9050919050565b6000608082019050612c3460008301876129ab565b612c41602083018661253b565b612c4e604083018561253b565b612c5b606083018461253b565b95945050505050565b7f53616c6520686173206e6f742073746172746564207965740000000000000000600082015250565b6000612c9a601883612680565b9150612ca582612c64565b602082019050919050565b60006020820190508181036000830152612cc981612c8d565b9050919050565b7f53616c652068617320656e646564000000000000000000000000000000000000600082015250565b6000612d06600e83612680565b9150612d1182612cd0565b602082019050919050565b60006020820190508181036000830152612d3581612cf9565b9050919050565b6000612d4782611f74565b9150612d5283611f74565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d8b57612d8a612a49565b5b828202905092915050565b7f57726f6e67207061796d656e7420616d6f756e74000000000000000000000000600082015250565b6000612dcc601483612680565b9150612dd782612d96565b602082019050919050565b60006020820190508181036000830152612dfb81612dbf565b9050919050565b6000604082019050612e1760008301856129ab565b612e24602083018461253b565b9392505050565b600081519050612e3a81611f7e565b92915050565b600060208284031215612e5657612e55611d46565b5b6000612e6484828501612e2b565b91505092915050565b6000612e7882611f74565b9150612e8383611f74565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612eb857612eb7612a49565b5b828201905092915050565b7f43616e6e6f7420657863656564206d617820636f756e74207065722077616c6c60008201527f6574000000000000000000000000000000000000000000000000000000000000602082015250565b6000612f1f602283612680565b9150612f2a82612ec3565b604082019050919050565b60006020820190508181036000830152612f4e81612f12565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612f8f82611f74565b9150612f9a83611f74565b925082612faa57612fa9612f55565b5b828204905092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612ff6601783612fb5565b915061300182612fc0565b601782019050919050565b600081519050919050565b60005b8381101561303557808201518184015260208101905061301a565b83811115613044576000848401525b50505050565b60006130558261300c565b61305f8185612fb5565b935061306f818560208601613017565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006130b1601183612fb5565b91506130bc8261307b565b601182019050919050565b60006130d282612fe9565b91506130de828561304a565b91506130e9826130a4565b91506130f5828461304a565b91508190509392505050565b600061310c8261300c565b6131168185612680565b9350613126818560208601613017565b61312f81612239565b840191505092915050565b600060208201905081810360008301526131548184613101565b905092915050565b7f43616e6e6f742062652067726561746572207468616e2031303030202831302560008201527f2900000000000000000000000000000000000000000000000000000000000000602082015250565b60006131b8602183612680565b91506131c38261315c565b604082019050919050565b600060208201905081810360008301526131e7816131ab565b9050919050565b6000604082019050613203600083018561253b565b613210602083018461253b565b9392505050565b600061322282611f74565b9150600082141561323657613235612a49565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000613277602083612680565b915061328282613241565b602082019050919050565b600060208201905081810360008301526132a68161326a565b905091905056fea264697066735822122022317ed84fc1cc2416da00c474bb8f96ce07144536cc70f753e4be6db7c8bbc564736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e81ff8eec96d3fcdae991e72e723fb3b4c9d222500000000000000000000000000000000000000000000000000000000000003e8
-----Decoded View---------------
Arg [0] : modaTreasury_ (address): 0xe81ff8EEC96D3FCDae991E72E723fb3B4C9D2225
Arg [1] : treasuryFee_ (uint256): 1000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e81ff8eec96d3fcdae991e72e723fb3b4c9d2225
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.