Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 60 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Purchase | 17763924 | 956 days ago | IN | 0 ETH | 0.00841515 | ||||
| Purchase | 17763902 | 956 days ago | IN | 0 ETH | 0.00990198 | ||||
| Purchase | 17763334 | 956 days ago | IN | 0 ETH | 0.00481482 | ||||
| Purchase | 17762710 | 956 days ago | IN | 0 ETH | 0.00334432 | ||||
| Purchase | 17762420 | 956 days ago | IN | 0 ETH | 0.0038295 | ||||
| Purchase | 17761463 | 956 days ago | IN | 0 ETH | 0.00204675 | ||||
| Purchase | 17761449 | 956 days ago | IN | 0 ETH | 0.00225468 | ||||
| Purchase | 17760915 | 956 days ago | IN | 0 ETH | 0.00203815 | ||||
| Purchase | 17760901 | 956 days ago | IN | 0 ETH | 0.00240899 | ||||
| Purchase | 17760102 | 956 days ago | IN | 0 ETH | 0.0024405 | ||||
| Purchase | 17760100 | 956 days ago | IN | 0 ETH | 0.00263528 | ||||
| Purchase | 17760069 | 956 days ago | IN | 0 ETH | 0.00237696 | ||||
| Purchase | 17758986 | 956 days ago | IN | 0 ETH | 0.00213153 | ||||
| Purchase | 17758441 | 957 days ago | IN | 0 ETH | 0.00276824 | ||||
| Purchase | 17758427 | 957 days ago | IN | 0 ETH | 0.00285413 | ||||
| Purchase | 17758423 | 957 days ago | IN | 0 ETH | 0.00272317 | ||||
| Purchase | 17758416 | 957 days ago | IN | 0 ETH | 0.00307543 | ||||
| Purchase | 17758403 | 957 days ago | IN | 0 ETH | 0.00262341 | ||||
| Purchase | 17758395 | 957 days ago | IN | 0 ETH | 0.00249504 | ||||
| Purchase | 17758373 | 957 days ago | IN | 0 ETH | 0.00276604 | ||||
| Purchase | 17758353 | 957 days ago | IN | 0 ETH | 0.00348537 | ||||
| Purchase | 17758313 | 957 days ago | IN | 0 ETH | 0.00305936 | ||||
| Purchase | 17758307 | 957 days ago | IN | 0 ETH | 0.00302639 | ||||
| Purchase | 17758299 | 957 days ago | IN | 0 ETH | 0.00323145 | ||||
| Purchase | 17758293 | 957 days ago | IN | 0 ETH | 0.00303624 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MinterSetPriceERC20V4
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 25 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
import "../../../interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol";
import "../../../interfaces/0.8.x/IGenArt721CoreContractV3.sol";
import "../../../interfaces/0.8.x/IGenArt721CoreContractV3_Engine.sol";
import "../../../interfaces/0.8.x/IMinterFilterV0.sol";
import "../../../interfaces/0.8.x/IFilteredMinterV2.sol";
import "../MinterBase_v0_1_1.sol";
import "@openzeppelin-4.5/contracts/security/ReentrancyGuard.sol";
pragma solidity 0.8.17;
/**
* @title Filtered Minter contract that allows tokens to be minted with ETH
* or any ERC-20 token.
* This is designed to be used with GenArt721CoreContractV3 flagship or
* engine contracts.
* @author Art Blocks Inc.
* @notice Privileged Roles and Ownership:
* This contract is designed to be managed, with limited powers.
* Privileged roles and abilities are controlled by the project's artist, which
* can be modified by the core contract's Admin ACL contract. Both of these
* roles hold extensive power and can modify minter details.
* Care must be taken to ensure that the admin ACL contract and artist
* addresses are secure behind a multi-sig or other access control mechanism.
* ----------------------------------------------------------------------------
* The following functions are restricted to a project's artist:
* - updatePricePerTokenInWei
* - updateProjectCurrencyInfo
* - setProjectMaxInvocations
* - manuallyLimitProjectMaxInvocations
* ----------------------------------------------------------------------------
* Additional admin and artist privileged roles may be described on other
* contracts that this minter integrates with.
*/
contract MinterSetPriceERC20V4 is
ReentrancyGuard,
MinterBase,
IFilteredMinterV2
{
/// Core contract address this minter interacts with
address public immutable genArt721CoreAddress;
/// The core contract integrates with V3 contracts
IGenArt721CoreContractV3_Base private immutable genArtCoreContract_Base;
/// Minter filter address this minter interacts with
address public immutable minterFilterAddress;
/// Minter filter this minter may interact with.
IMinterFilterV0 private immutable minterFilter;
/// minterType for this minter
string public constant minterType = "MinterSetPriceERC20V4";
uint256 constant ONE_MILLION = 1_000_000;
struct ProjectConfig {
bool maxHasBeenInvoked;
bool priceIsConfigured;
uint24 maxInvocations;
address currencyAddress;
uint256 pricePerTokenInWei;
string currencySymbol;
}
mapping(uint256 => ProjectConfig) public projectConfig;
// /// projectId => currency symbol - supersedes any defined core value
// mapping(uint256 => string) private projectIdToCurrencySymbol;
// /// projectId => currency address - supersedes any defined core value
// mapping(uint256 => address) private projectIdToCurrencyAddress;
modifier onlyArtist(uint256 _projectId) {
require(
msg.sender ==
genArtCoreContract_Base.projectIdToArtistAddress(_projectId),
"Only Artist"
);
_;
}
/**
* @notice Initializes contract to be a Filtered Minter for
* `_minterFilter`, integrated with Art Blocks core contract
* at address `_genArt721Address`.
* @param _genArt721Address Art Blocks core contract for which this
* contract will be a minter.
* @param _minterFilter Minter filter for which
* this will a filtered minter.
*/
constructor(
address _genArt721Address,
address _minterFilter
) ReentrancyGuard() MinterBase(_genArt721Address) {
genArt721CoreAddress = _genArt721Address;
// always populate immutable engine contracts, but only use appropriate
// interface based on isEngine in the rest of the contract
genArtCoreContract_Base = IGenArt721CoreContractV3_Base(
_genArt721Address
);
minterFilterAddress = _minterFilter;
minterFilter = IMinterFilterV0(_minterFilter);
require(
minterFilter.genArt721CoreAddress() == _genArt721Address,
"Illegal contract pairing"
);
}
/**
* @notice Gets your balance of the ERC-20 token currently set
* as the payment currency for project `_projectId`.
* @param _projectId Project ID to be queried.
* @return balance Balance of ERC-20
*/
function getYourBalanceOfProjectERC20(
uint256 _projectId
) external view returns (uint256 balance) {
balance = IERC20(projectConfig[_projectId].currencyAddress).balanceOf(
msg.sender
);
return balance;
}
/**
* @notice Gets your allowance for this minter of the ERC-20
* token currently set as the payment currency for project
* `_projectId`.
* @param _projectId Project ID to be queried.
* @return remaining Remaining allowance of ERC-20
*/
function checkYourAllowanceOfProjectERC20(
uint256 _projectId
) external view returns (uint256 remaining) {
remaining = IERC20(projectConfig[_projectId].currencyAddress).allowance(
msg.sender,
address(this)
);
return remaining;
}
/**
* @notice Syncs local maximum invocations of project `_projectId` based on
* the value currently defined in the core contract.
* @param _projectId Project ID to set the maximum invocations for.
* @dev this enables gas reduction after maxInvocations have been reached -
* core contracts shall still enforce a maxInvocation check during mint.
*/
function setProjectMaxInvocations(
uint256 _projectId
) external onlyArtist(_projectId) {
uint256 maxInvocations;
uint256 invocations;
(invocations, maxInvocations, , , , ) = genArtCoreContract_Base
.projectStateData(_projectId);
// update storage with results
projectConfig[_projectId].maxInvocations = uint24(maxInvocations);
// We need to ensure maxHasBeenInvoked is correctly set after manually syncing the
// local maxInvocations value with the core contract's maxInvocations value.
// This synced value of maxInvocations from the core contract will always be greater
// than or equal to the previous value of maxInvocations stored locally.
projectConfig[_projectId].maxHasBeenInvoked =
invocations == maxInvocations;
emit ProjectMaxInvocationsLimitUpdated(_projectId, maxInvocations);
}
/**
* @notice Manually sets the local maximum invocations of project `_projectId`
* with the provided `_maxInvocations`, checking that `_maxInvocations` is less
* than or equal to the value of project `_project_id`'s maximum invocations that is
* set on the core contract.
* @dev Note that a `_maxInvocations` of 0 can only be set if the current `invocations`
* value is also 0 and this would also set `maxHasBeenInvoked` to true, correctly short-circuiting
* this minter's purchase function, avoiding extra gas costs from the core contract's maxInvocations check.
* @param _projectId Project ID to set the maximum invocations for.
* @param _maxInvocations Maximum invocations to set for the project.
*/
function manuallyLimitProjectMaxInvocations(
uint256 _projectId,
uint256 _maxInvocations
) external onlyArtist(_projectId) {
// CHECKS
// ensure that the manually set maxInvocations is not greater than what is set on the core contract
uint256 maxInvocations;
uint256 invocations;
(invocations, maxInvocations, , , , ) = genArtCoreContract_Base
.projectStateData(_projectId);
require(
_maxInvocations <= maxInvocations,
"Cannot increase project max invocations above core contract set project max invocations"
);
require(
_maxInvocations >= invocations,
"Cannot set project max invocations to less than current invocations"
);
// EFFECTS
// update storage with results
projectConfig[_projectId].maxInvocations = uint24(_maxInvocations);
// We need to ensure maxHasBeenInvoked is correctly set after manually setting the
// local maxInvocations value.
projectConfig[_projectId].maxHasBeenInvoked =
invocations == _maxInvocations;
emit ProjectMaxInvocationsLimitUpdated(_projectId, _maxInvocations);
}
/**
* @notice Warning: Disabling purchaseTo is not supported on this minter.
* This method exists purely for interface-conformance purposes.
*/
function togglePurchaseToDisabled(
uint256 _projectId
) external view onlyArtist(_projectId) {
revert("Action not supported");
}
/**
* @notice projectId => has project reached its maximum number of
* invocations? Note that this returns a local cache of the core contract's
* state, and may be out of sync with the core contract. This is
* intentional, as it only enables gas optimization of mints after a
* project's maximum invocations has been reached. A false negative will
* only result in a gas cost increase, since the core contract will still
* enforce a maxInvocation check during minting. A false positive is not
* possible because the V3 core contract only allows maximum invocations
* to be reduced, not increased. Based on this rationale, we intentionally
* do not do input validation in this method as to whether or not the input
* `_projectId` is an existing project ID.
*/
function projectMaxHasBeenInvoked(
uint256 _projectId
) external view returns (bool) {
return projectConfig[_projectId].maxHasBeenInvoked;
}
/**
* @notice projectId => project's maximum number of invocations.
* Optionally synced with core contract value, for gas optimization.
* Note that this returns a local cache of the core contract's
* state, and may be out of sync with the core contract. This is
* intentional, as it only enables gas optimization of mints after a
* project's maximum invocations has been reached.
* @dev A number greater than the core contract's project max invocations
* will only result in a gas cost increase, since the core contract will
* still enforce a maxInvocation check during minting. A number less than
* the core contract's project max invocations is only possible when the
* project's max invocations have not been synced on this minter, since the
* V3 core contract only allows maximum invocations to be reduced, not
* increased. When this happens, the minter will enable minting, allowing
* the core contract to enforce the max invocations check. Based on this
* rationale, we intentionally do not do input validation in this method as
* to whether or not the input `_projectId` is an existing project ID.
*/
function projectMaxInvocations(
uint256 _projectId
) external view returns (uint256) {
return uint256(projectConfig[_projectId].maxInvocations);
}
/**
* @notice Updates this minter's price per token of project `_projectId`
* to be '_pricePerTokenInWei`, in Wei.
* This price supersedes any legacy core contract price per token value.
*/
function updatePricePerTokenInWei(
uint256 _projectId,
uint256 _pricePerTokenInWei
) external onlyArtist(_projectId) {
require(_pricePerTokenInWei > 0, "Price may not be 0");
projectConfig[_projectId].pricePerTokenInWei = _pricePerTokenInWei;
projectConfig[_projectId].priceIsConfigured = true;
emit PricePerTokenInWeiUpdated(_projectId, _pricePerTokenInWei);
}
/**
* @notice Updates payment currency of project `_projectId` to be
* `_currencySymbol` at address `_currencyAddress`.
* @param _projectId Project ID to update.
* @param _currencySymbol Currency symbol.
* @param _currencyAddress Currency address.
*/
function updateProjectCurrencyInfo(
uint256 _projectId,
string memory _currencySymbol,
address _currencyAddress
) external onlyArtist(_projectId) {
// require null address if symbol is "ETH"
require(
(keccak256(abi.encodePacked(_currencySymbol)) ==
keccak256(abi.encodePacked("ETH"))) ==
(_currencyAddress == address(0)),
"ETH is only null address"
);
projectConfig[_projectId].currencySymbol = _currencySymbol;
projectConfig[_projectId].currencyAddress = _currencyAddress;
emit ProjectCurrencyInfoUpdated(
_projectId,
_currencyAddress,
_currencySymbol
);
}
/**
* @notice Purchases a token from project `_projectId`.
* @param _projectId Project ID to mint a token on.
* @return tokenId Token ID of minted token
*/
function purchase(
uint256 _projectId
) external payable returns (uint256 tokenId) {
tokenId = purchaseTo_do6(msg.sender, _projectId);
return tokenId;
}
/**
* @notice gas-optimized version of purchase(uint256).
*/
function purchase_H4M(
uint256 _projectId
) external payable returns (uint256 tokenId) {
tokenId = purchaseTo_do6(msg.sender, _projectId);
return tokenId;
}
/**
* @notice Purchases a token from project `_projectId` and sets
* the token's owner to `_to`.
* @param _to Address to be the new token's owner.
* @param _projectId Project ID to mint a token on.
* @return tokenId Token ID of minted token
*/
function purchaseTo(
address _to,
uint256 _projectId
) external payable returns (uint256 tokenId) {
return purchaseTo_do6(_to, _projectId);
}
/**
* @notice gas-optimized version of purchaseTo(address, uint256).
*/
function purchaseTo_do6(
address _to,
uint256 _projectId
) public payable nonReentrant returns (uint256 tokenId) {
// CHECKS
ProjectConfig storage _projectConfig = projectConfig[_projectId];
// Note that `maxHasBeenInvoked` is only checked here to reduce gas
// consumption after a project has been fully minted.
// `_projectConfig.maxHasBeenInvoked` is locally cached to reduce
// gas consumption, but if not in sync with the core contract's value,
// the core contract also enforces its own max invocation check during
// minting.
require(
!_projectConfig.maxHasBeenInvoked,
"Maximum number of invocations reached"
);
// require artist to have configured price of token on this minter
require(_projectConfig.priceIsConfigured, "Price not configured");
// EFFECTS
tokenId = minterFilter.mint(_to, _projectId, msg.sender);
// okay if this underflows because if statement will always eval false.
// this is only for gas optimization (core enforces maxInvocations).
unchecked {
if (tokenId % ONE_MILLION == _projectConfig.maxInvocations - 1) {
_projectConfig.maxHasBeenInvoked = true;
}
}
// INTERACTIONS
uint256 pricePerTokenInWei = _projectConfig.pricePerTokenInWei;
address _currencyAddress = _projectConfig.currencyAddress;
if (_currencyAddress != address(0)) {
require(
msg.value == 0,
"this project accepts a different currency and cannot accept ETH"
);
require(
IERC20(_currencyAddress).allowance(msg.sender, address(this)) >=
pricePerTokenInWei,
"Insufficient Funds Approved for TX"
);
require(
IERC20(_currencyAddress).balanceOf(msg.sender) >=
pricePerTokenInWei,
"Insufficient balance."
);
splitFundsERC20(
_projectId,
pricePerTokenInWei,
_currencyAddress,
genArt721CoreAddress
);
} else {
require(
msg.value >= pricePerTokenInWei,
"Must send minimum value to mint!"
);
splitFundsETH(_projectId, pricePerTokenInWei, genArt721CoreAddress);
}
return tokenId;
}
/**
* @notice Gets if price of token is configured, price of minting a
* token on project `_projectId`, and currency symbol and address to be
* used as payment. Supersedes any core contract price information.
* @param _projectId Project ID to get price information for.
* @return isConfigured true only if token price has been configured on
* this minter
* @return tokenPriceInWei current price of token on this minter - invalid
* if price has not yet been configured
* @return currencySymbol currency symbol for purchases of project on this
* minter. "ETH" reserved for ether.
* @return currencyAddress currency address for purchases of project on
* this minter. Null address reserved for ether.
*/
function getPriceInfo(
uint256 _projectId
)
external
view
returns (
bool isConfigured,
uint256 tokenPriceInWei,
string memory currencySymbol,
address currencyAddress
)
{
ProjectConfig storage _projectConfig = projectConfig[_projectId];
isConfigured = _projectConfig.priceIsConfigured;
tokenPriceInWei = _projectConfig.pricePerTokenInWei;
currencyAddress = _projectConfig.currencyAddress;
if (currencyAddress == address(0)) {
// defaults to ETH
currencySymbol = "ETH";
} else {
currencySymbol = _projectConfig.currencySymbol;
}
}
}// 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
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
pragma solidity ^0.8.0;
interface IAdminACLV0 {
/**
* @notice Token ID `_tokenId` minted to `_to`.
* @param previousSuperAdmin The previous superAdmin address.
* @param newSuperAdmin The new superAdmin address.
* @param genArt721CoreAddressesToUpdate Array of genArt721Core
* addresses to update to the new superAdmin, for indexing purposes only.
*/
event SuperAdminTransferred(
address indexed previousSuperAdmin,
address indexed newSuperAdmin,
address[] genArt721CoreAddressesToUpdate
);
/// Type of the Admin ACL contract, e.g. "AdminACLV0"
function AdminACLType() external view returns (string memory);
/// super admin address
function superAdmin() external view returns (address);
/**
* @notice Calls transferOwnership on other contract from this contract.
* This is useful for updating to a new AdminACL contract.
* @dev this function should be gated to only superAdmin-like addresses.
*/
function transferOwnershipOn(
address _contract,
address _newAdminACL
) external;
/**
* @notice Calls renounceOwnership on other contract from this contract.
* @dev this function should be gated to only superAdmin-like addresses.
*/
function renounceOwnershipOn(address _contract) external;
/**
* @notice Checks if sender `_sender` is allowed to call function with selector
* `_selector` on contract `_contract`.
*/
function allowed(
address _sender,
address _contract,
bytes4 _selector
) external returns (bool);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
pragma solidity ^0.8.0;
interface IFilteredMinterV0 {
/**
* @notice Price per token in wei updated for project `_projectId` to
* `_pricePerTokenInWei`.
*/
event PricePerTokenInWeiUpdated(
uint256 indexed _projectId,
uint256 indexed _pricePerTokenInWei
);
/**
* @notice Currency updated for project `_projectId` to symbol
* `_currencySymbol` and address `_currencyAddress`.
*/
event ProjectCurrencyInfoUpdated(
uint256 indexed _projectId,
address indexed _currencyAddress,
string _currencySymbol
);
/// togglePurchaseToDisabled updated
event PurchaseToDisabledUpdated(
uint256 indexed _projectId,
bool _purchaseToDisabled
);
// getter function of public variable
function minterType() external view returns (string memory);
function genArt721CoreAddress() external returns (address);
function minterFilterAddress() external returns (address);
// Triggers a purchase of a token from the desired project, to the
// TX-sending address.
function purchase(
uint256 _projectId
) external payable returns (uint256 tokenId);
// Triggers a purchase of a token from the desired project, to the specified
// receiving address.
function purchaseTo(
address _to,
uint256 _projectId
) external payable returns (uint256 tokenId);
// Toggles the ability for `purchaseTo` to be called directly with a
// specified receiving address that differs from the TX-sending address.
function togglePurchaseToDisabled(uint256 _projectId) external;
// Called to make the minter contract aware of the max invocations for a
// given project.
function setProjectMaxInvocations(uint256 _projectId) external;
// Gets if token price is configured, token price in wei, currency symbol,
// and currency address, assuming this is project's minter.
// Supersedes any defined core price.
function getPriceInfo(
uint256 _projectId
)
external
view
returns (
bool isConfigured,
uint256 tokenPriceInWei,
string memory currencySymbol,
address currencyAddress
);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
import "./IFilteredMinterV0.sol";
pragma solidity ^0.8.0;
/**
* @title This interface extends the IFilteredMinterV0 interface in order to
* add support for generic project minter configuration updates.
* @dev keys represent strings of finite length encoded in bytes32 to minimize
* gas.
* @author Art Blocks Inc.
*/
interface IFilteredMinterV1 is IFilteredMinterV0 {
/// ANY
/**
* @notice Generic project minter configuration event. Removes key `_key`
* for project `_projectId`.
*/
event ConfigKeyRemoved(uint256 indexed _projectId, bytes32 _key);
/// BOOL
/**
* @notice Generic project minter configuration event. Sets value of key
* `_key` to `_value` for project `_projectId`.
*/
event ConfigValueSet(uint256 indexed _projectId, bytes32 _key, bool _value);
/// UINT256
/**
* @notice Generic project minter configuration event. Sets value of key
* `_key` to `_value` for project `_projectId`.
*/
event ConfigValueSet(
uint256 indexed _projectId,
bytes32 _key,
uint256 _value
);
/**
* @notice Generic project minter configuration event. Adds value `_value`
* to the set of uint256 at key `_key` for project `_projectId`.
*/
event ConfigValueAddedToSet(
uint256 indexed _projectId,
bytes32 _key,
uint256 _value
);
/**
* @notice Generic project minter configuration event. Removes value
* `_value` to the set of uint256 at key `_key` for project `_projectId`.
*/
event ConfigValueRemovedFromSet(
uint256 indexed _projectId,
bytes32 _key,
uint256 _value
);
/// ADDRESS
/**
* @notice Generic project minter configuration event. Sets value of key
* `_key` to `_value` for project `_projectId`.
*/
event ConfigValueSet(
uint256 indexed _projectId,
bytes32 _key,
address _value
);
/**
* @notice Generic project minter configuration event. Adds value `_value`
* to the set of addresses at key `_key` for project `_projectId`.
*/
event ConfigValueAddedToSet(
uint256 indexed _projectId,
bytes32 _key,
address _value
);
/**
* @notice Generic project minter configuration event. Removes value
* `_value` to the set of addresses at key `_key` for project `_projectId`.
*/
event ConfigValueRemovedFromSet(
uint256 indexed _projectId,
bytes32 _key,
address _value
);
/// BYTES32
/**
* @notice Generic project minter configuration event. Sets value of key
* `_key` to `_value` for project `_projectId`.
*/
event ConfigValueSet(
uint256 indexed _projectId,
bytes32 _key,
bytes32 _value
);
/**
* @notice Generic project minter configuration event. Adds value `_value`
* to the set of bytes32 at key `_key` for project `_projectId`.
*/
event ConfigValueAddedToSet(
uint256 indexed _projectId,
bytes32 _key,
bytes32 _value
);
/**
* @notice Generic project minter configuration event. Removes value
* `_value` to the set of bytes32 at key `_key` for project `_projectId`.
*/
event ConfigValueRemovedFromSet(
uint256 indexed _projectId,
bytes32 _key,
bytes32 _value
);
/**
* @dev Strings not supported. Recommend conversion of (short) strings to
* bytes32 to remain gas-efficient.
*/
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
import "./IFilteredMinterV1.sol";
pragma solidity ^0.8.0;
/**
* @title This interface extends the IFilteredMinterV1 interface in order to
* add support for manually setting project max invocations.
* @author Art Blocks Inc.
*/
interface IFilteredMinterV2 is IFilteredMinterV1 {
/**
* @notice Local max invocations for project `_projectId`, tied to core contract `_coreContractAddress`,
* updated to `_maxInvocations`.
*/
event ProjectMaxInvocationsLimitUpdated(
uint256 indexed _projectId,
uint256 _maxInvocations
);
// Sets the local max invocations for a given project, checking that the provided max invocations is
// less than or equal to the global max invocations for the project set on the core contract.
// This does not impact the max invocations value defined on the core contract.
function manuallyLimitProjectMaxInvocations(
uint256 _projectId,
uint256 _maxInvocations
) external;
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
pragma solidity ^0.8.0;
import "./IAdminACLV0.sol";
/// use the Royalty Registry's IManifold interface for token royalties
import "./IManifold.sol";
/**
* @title This interface is intended to house interface items that are common
* across all GenArt721CoreContractV3 flagship and derivative implementations.
* This interface extends the IManifold royalty interface in order to
* add support the Royalty Registry by default.
* @author Art Blocks Inc.
*/
interface IGenArt721CoreContractV3_Base is IManifold {
/**
* @notice Token ID `_tokenId` minted to `_to`.
*/
event Mint(address indexed _to, uint256 indexed _tokenId);
/**
* @notice currentMinter updated to `_currentMinter`.
* @dev Implemented starting with V3 core
*/
event MinterUpdated(address indexed _currentMinter);
/**
* @notice Platform updated on bytes32-encoded field `_field`.
*/
event PlatformUpdated(bytes32 indexed _field);
/**
* @notice Project ID `_projectId` updated on bytes32-encoded field
* `_update`.
*/
event ProjectUpdated(uint256 indexed _projectId, bytes32 indexed _update);
event ProposedArtistAddressesAndSplits(
uint256 indexed _projectId,
address _artistAddress,
address _additionalPayeePrimarySales,
uint256 _additionalPayeePrimarySalesPercentage,
address _additionalPayeeSecondarySales,
uint256 _additionalPayeeSecondarySalesPercentage
);
event AcceptedArtistAddressesAndSplits(uint256 indexed _projectId);
// version and type of the core contract
// coreVersion is a string of the form "0.x.y"
function coreVersion() external view returns (string memory);
// coreType is a string of the form "GenArt721CoreV3"
function coreType() external view returns (string memory);
// owner (pre-V3 was named admin) of contract
// this is expected to be an Admin ACL contract for V3
function owner() external view returns (address);
// Admin ACL contract for V3, will be at the address owner()
function adminACLContract() external returns (IAdminACLV0);
// backwards-compatible (pre-V3) admin - equal to owner()
function admin() external view returns (address);
/**
* Function determining if _sender is allowed to call function with
* selector _selector on contract `_contract`. Intended to be used with
* peripheral contracts such as minters, as well as internally by the
* core contract itself.
*/
function adminACLAllowed(
address _sender,
address _contract,
bytes4 _selector
) external returns (bool);
// getter function of public variable
function nextProjectId() external view returns (uint256);
// getter function of public mapping
function tokenIdToProjectId(
uint256 tokenId
) external view returns (uint256 projectId);
// @dev this is not available in V0
function isMintWhitelisted(address minter) external view returns (bool);
function projectIdToArtistAddress(
uint256 _projectId
) external view returns (address payable);
function projectIdToAdditionalPayeePrimarySales(
uint256 _projectId
) external view returns (address payable);
function projectIdToAdditionalPayeePrimarySalesPercentage(
uint256 _projectId
) external view returns (uint256);
// @dev new function in V3
function projectStateData(
uint256 _projectId
)
external
view
returns (
uint256 invocations,
uint256 maxInvocations,
bool active,
bool paused,
uint256 completedTimestamp,
bool locked
);
// function to set a token's hash (must be guarded)
function setTokenHash_8PT(uint256 _tokenId, bytes32 _hash) external;
// @dev gas-optimized signature in V3 for `mint`
function mint_Ecf(
address _to,
uint256 _projectId,
address _by
) external returns (uint256 tokenId);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
pragma solidity ^0.8.0;
import "./IAdminACLV0.sol";
import "./IGenArt721CoreContractV3_Base.sol";
interface IGenArt721CoreContractV3_Engine is IGenArt721CoreContractV3_Base {
// @dev new function in V3
function getPrimaryRevenueSplits(
uint256 _projectId,
uint256 _price
)
external
view
returns (
uint256 renderProviderRevenue_,
address payable renderProviderAddress_,
uint256 platformProviderRevenue_,
address payable platformProviderAddress_,
uint256 artistRevenue_,
address payable artistAddress_,
uint256 additionalPayeePrimaryRevenue_,
address payable additionalPayeePrimaryAddress_
);
// @dev The render provider primary sales payment address
function renderProviderPrimarySalesAddress()
external
view
returns (address payable);
// @dev The platform provider primary sales payment address
function platformProviderPrimarySalesAddress()
external
view
returns (address payable);
// @dev Percentage of primary sales allocated to the render provider
function renderProviderPrimarySalesPercentage()
external
view
returns (uint256);
// @dev Percentage of primary sales allocated to the platform provider
function platformProviderPrimarySalesPercentage()
external
view
returns (uint256);
// @dev The render provider secondary sales royalties payment address
function renderProviderSecondarySalesAddress()
external
view
returns (address payable);
// @dev The platform provider secondary sales royalties payment address
function platformProviderSecondarySalesAddress()
external
view
returns (address payable);
// @dev Basis points of secondary sales allocated to the render provider
function renderProviderSecondarySalesBPS() external view returns (uint256);
// @dev Basis points of secondary sales allocated to the platform provider
function platformProviderSecondarySalesBPS()
external
view
returns (uint256);
// function to read the hash for a given tokenId
function tokenIdToHash(uint256 _tokenId) external view returns (bytes32);
// function to read the hash-seed for a given tokenId
function tokenIdToHashSeed(
uint256 _tokenId
) external view returns (bytes12);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
pragma solidity ^0.8.0;
import "./IAdminACLV0.sol";
import "./IGenArt721CoreContractV3_Base.sol";
/**
* @title This interface extends IGenArt721CoreContractV3_Base with functions
* that are part of the Art Blocks Flagship core contract.
* @author Art Blocks Inc.
*/
// This interface extends IGenArt721CoreContractV3_Base with functions that are
// in part of the Art Blocks Flagship core contract.
interface IGenArt721CoreContractV3 is IGenArt721CoreContractV3_Base {
// @dev new function in V3
function getPrimaryRevenueSplits(
uint256 _projectId,
uint256 _price
)
external
view
returns (
uint256 artblocksRevenue_,
address payable artblocksAddress_,
uint256 artistRevenue_,
address payable artistAddress_,
uint256 additionalPayeePrimaryRevenue_,
address payable additionalPayeePrimaryAddress_
);
// @dev Art Blocks primary sales payment address
function artblocksPrimarySalesAddress()
external
view
returns (address payable);
/**
* @notice Backwards-compatible (pre-V3) function returning Art Blocks
* primary sales payment address (now called artblocksPrimarySalesAddress).
*/
function artblocksAddress() external view returns (address payable);
// @dev Percentage of primary sales allocated to Art Blocks
function artblocksPrimarySalesPercentage() external view returns (uint256);
/**
* @notice Backwards-compatible (pre-V3) function returning Art Blocks
* primary sales percentage (now called artblocksPrimarySalesPercentage).
*/
function artblocksPercentage() external view returns (uint256);
// @dev Art Blocks secondary sales royalties payment address
function artblocksSecondarySalesAddress()
external
view
returns (address payable);
// @dev Basis points of secondary sales allocated to Art Blocks
function artblocksSecondarySalesBPS() external view returns (uint256);
/**
* @notice Backwards-compatible (pre-V3) function that gets artist +
* artist's additional payee royalty data for token ID `_tokenId`.
* WARNING: Does not include Art Blocks portion of royalties.
*/
function getRoyaltyData(
uint256 _tokenId
)
external
view
returns (
address artistAddress,
address additionalPayee,
uint256 additionalPayeePercentage,
uint256 royaltyFeeByID
);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @dev Royalty Registry interface, used to support the Royalty Registry.
/// @dev Source: https://github.com/manifoldxyz/royalty-registry-solidity/blob/main/contracts/specs/IManifold.sol
/// @author: manifold.xyz
/**
* @dev Royalty interface for creator core classes
*/
interface IManifold {
/**
* @dev Get royalites of a token. Returns list of receivers and basisPoints
*
* bytes4(keccak256('getRoyalties(uint256)')) == 0xbb3bafd6
*
* => 0xbb3bafd6 = 0xbb3bafd6
*/
function getRoyalties(
uint256 tokenId
) external view returns (address payable[] memory, uint256[] memory);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
import "./IFilteredMinterV2.sol";
pragma solidity ^0.8.0;
/**
* @title This interface defines any events or functions required for a minter
* to conform to the MinterBase contract.
* @dev The MinterBase contract was not implemented from the beginning of the
* MinterSuite contract suite, therefore early versions of some minters may not
* conform to this interface.
* @author Art Blocks Inc.
*/
interface IMinterBaseV0 {
// Function that returns if a minter is configured to integrate with a V3 flagship or V3 engine contract.
// Returns true only if the minter is configured to integrate with an engine contract.
function isEngine() external returns (bool isEngine);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
pragma solidity ^0.8.0;
interface IMinterFilterV0 {
/**
* @notice Approved minter `_minterAddress`.
*/
event MinterApproved(address indexed _minterAddress, string _minterType);
/**
* @notice Revoked approval for minter `_minterAddress`
*/
event MinterRevoked(address indexed _minterAddress);
/**
* @notice Minter `_minterAddress` of type `_minterType`
* registered for project `_projectId`.
*/
event ProjectMinterRegistered(
uint256 indexed _projectId,
address indexed _minterAddress,
string _minterType
);
/**
* @notice Any active minter removed for project `_projectId`.
*/
event ProjectMinterRemoved(uint256 indexed _projectId);
function genArt721CoreAddress() external returns (address);
function setMinterForProject(uint256, address) external;
function removeMinterForProject(uint256) external;
function mint(
address _to,
uint256 _projectId,
address sender
) external returns (uint256);
function getMinterForProject(uint256) external view returns (address);
function projectHasMinter(uint256) external view returns (bool);
}// SPDX-License-Identifier: LGPL-3.0-only
// Created By: Art Blocks Inc.
import "../../interfaces/0.8.x/IMinterBaseV0.sol";
import "../../interfaces/0.8.x/IGenArt721CoreContractV3_Base.sol";
import "../../interfaces/0.8.x/IGenArt721CoreContractV3.sol";
import "../../interfaces/0.8.x/IGenArt721CoreContractV3_Engine.sol";
import "@openzeppelin-4.7/contracts/token/ERC20/IERC20.sol";
pragma solidity ^0.8.0;
/**
* @title Art Blocks Minter Base Class
* @notice A base class for Art Blocks minter contracts that provides common
* functionality used across minter contracts.
* This contract is not intended to be deployed directly, but rather to be
* inherited by other minter contracts.
* From a design perspective, this contract is intended to remain simple and
* easy to understand. It is not intended to cause a complex inheritance tree,
* and instead should keep minter contracts as readable as possible for
* collectors and developers.
* @dev Semantic versioning is used in the solidity file name, and is therefore
* controlled by contracts importing the appropriate filename version.
* @author Art Blocks Inc.
*/
abstract contract MinterBase is IMinterBaseV0 {
/// state variable that tracks whether this contract's associated core
/// contract is an Engine contract, where Engine contracts have an
/// additional revenue split for the platform provider
bool public immutable isEngine;
// @dev we do not track an initialization state, as the only state variable
// is immutable, which the compiler enforces to be assigned during
// construction.
/**
* @notice Initializes contract to ensure state variable `isEngine` is set
* appropriately based on the minter's associated core contract address.
* @param genArt721Address Art Blocks core contract address for
* which this contract will be a minter.
*/
constructor(address genArt721Address) {
// set state variable isEngine
isEngine = _getV3CoreIsEngine(genArt721Address);
}
/**
* @notice splits ETH funds between sender (if refund), providers,
* artist, and artist's additional payee for a token purchased on
* project `_projectId`.
* WARNING: This function uses msg.value and msg.sender to determine
* refund amounts, and therefore may not be applicable to all use cases
* (e.g. do not use with Dutch Auctions with on-chain settlement).
* @dev possible DoS during splits is acknowledged, and mitigated by
* business practices, including end-to-end testing on mainnet, and
* admin-accepted artist payment addresses.
* @param projectId Project ID for which funds shall be split.
* @param pricePerTokenInWei Current price of token, in Wei.
*/
function splitFundsETH(
uint256 projectId,
uint256 pricePerTokenInWei,
address genArt721CoreAddress
) internal {
if (msg.value > 0) {
bool success_;
// send refund to sender
uint256 refund = msg.value - pricePerTokenInWei;
if (refund > 0) {
(success_, ) = msg.sender.call{value: refund}("");
require(success_, "Refund failed");
}
// split revenues
splitRevenuesETH(
projectId,
pricePerTokenInWei,
genArt721CoreAddress
);
}
}
/**
* @notice splits ETH revenues between providers, artist, and artist's
* additional payee for revenue generated by project `_projectId`.
* @dev possible DoS during splits is acknowledged, and mitigated by
* business practices, including end-to-end testing on mainnet, and
* admin-accepted artist payment addresses.
* @param projectId Project ID for which funds shall be split.
* @param valueInWei Value to be split, in Wei.
*/
function splitRevenuesETH(
uint256 projectId,
uint256 valueInWei,
address genArtCoreContract
) internal {
if (valueInWei <= 0) {
return; // return early
}
bool success;
// split funds between platforms, artist, and artist's
// additional payee
uint256 renderProviderRevenue_;
address payable renderProviderAddress_;
uint256 artistRevenue_;
address payable artistAddress_;
uint256 additionalPayeePrimaryRevenue_;
address payable additionalPayeePrimaryAddress_;
if (isEngine) {
// get engine splits
uint256 platformProviderRevenue_;
address payable platformProviderAddress_;
(
renderProviderRevenue_,
renderProviderAddress_,
platformProviderRevenue_,
platformProviderAddress_,
artistRevenue_,
artistAddress_,
additionalPayeePrimaryRevenue_,
additionalPayeePrimaryAddress_
) = IGenArt721CoreContractV3_Engine(genArtCoreContract)
.getPrimaryRevenueSplits(projectId, valueInWei);
// Platform Provider payment (only possible if engine)
if (platformProviderRevenue_ > 0) {
(success, ) = platformProviderAddress_.call{
value: platformProviderRevenue_
}("");
require(success, "Platform Provider payment failed");
}
} else {
// get flagship splits
(
renderProviderRevenue_, // artblocks revenue
renderProviderAddress_, // artblocks address
artistRevenue_,
artistAddress_,
additionalPayeePrimaryRevenue_,
additionalPayeePrimaryAddress_
) = IGenArt721CoreContractV3(genArtCoreContract)
.getPrimaryRevenueSplits(projectId, valueInWei);
}
// Render Provider / Art Blocks payment
if (renderProviderRevenue_ > 0) {
(success, ) = renderProviderAddress_.call{
value: renderProviderRevenue_
}("");
require(success, "Render Provider payment failed");
}
// artist payment
if (artistRevenue_ > 0) {
(success, ) = artistAddress_.call{value: artistRevenue_}("");
require(success, "Artist payment failed");
}
// additional payee payment
if (additionalPayeePrimaryRevenue_ > 0) {
(success, ) = additionalPayeePrimaryAddress_.call{
value: additionalPayeePrimaryRevenue_
}("");
require(success, "Additional Payee payment failed");
}
}
/**
* @notice splits ERC-20 funds between providers, artist, and artist's
* additional payee, for a token purchased on project `_projectId`.
* @dev possible DoS during splits is acknowledged, and mitigated by
* business practices, including end-to-end testing on mainnet, and
* admin-accepted artist payment addresses.
*/
function splitFundsERC20(
uint256 projectId,
uint256 pricePerTokenInWei,
address currencyAddress,
address genArtCoreContract
) internal {
IERC20 _projectCurrency = IERC20(currencyAddress);
// split remaining funds between foundation, artist, and artist's
// additional payee
uint256 renderProviderRevenue_;
address payable renderProviderAddress_;
uint256 artistRevenue_;
address payable artistAddress_;
uint256 additionalPayeePrimaryRevenue_;
address payable additionalPayeePrimaryAddress_;
if (isEngine) {
// get engine splits
uint256 platformProviderRevenue_;
address payable platformProviderAddress_;
(
renderProviderRevenue_,
renderProviderAddress_,
platformProviderRevenue_,
platformProviderAddress_,
artistRevenue_,
artistAddress_,
additionalPayeePrimaryRevenue_,
additionalPayeePrimaryAddress_
) = IGenArt721CoreContractV3_Engine(genArtCoreContract)
.getPrimaryRevenueSplits(projectId, pricePerTokenInWei);
// Platform Provider payment (only possible if engine)
if (platformProviderRevenue_ > 0) {
_projectCurrency.transferFrom(
msg.sender,
platformProviderAddress_,
platformProviderRevenue_
);
}
} else {
// get flagship splits
(
renderProviderRevenue_, // artblocks revenue
renderProviderAddress_, // artblocks address
artistRevenue_,
artistAddress_,
additionalPayeePrimaryRevenue_,
additionalPayeePrimaryAddress_
) = IGenArt721CoreContractV3(genArtCoreContract)
.getPrimaryRevenueSplits(projectId, pricePerTokenInWei);
}
// Art Blocks payment
if (renderProviderRevenue_ > 0) {
_projectCurrency.transferFrom(
msg.sender,
renderProviderAddress_,
renderProviderRevenue_
);
}
// artist payment
if (artistRevenue_ > 0) {
_projectCurrency.transferFrom(
msg.sender,
artistAddress_,
artistRevenue_
);
}
// additional payee payment
if (additionalPayeePrimaryRevenue_ > 0) {
_projectCurrency.transferFrom(
msg.sender,
additionalPayeePrimaryAddress_,
additionalPayeePrimaryRevenue_
);
}
}
/**
* @notice Returns whether a V3 core contract is an Art Blocks Engine
* contract or not. Return value of false indicates that the core is a
* flagship contract.
* @dev this function reverts if a core contract does not return the
* expected number of return values from getPrimaryRevenueSplits() for
* either a flagship or engine core contract.
* @dev this function uses the length of the return data (in bytes) to
* determine whether the core is an engine or not.
* @param genArt721CoreV3 The address of the deployed core contract.
*/
function _getV3CoreIsEngine(
address genArt721CoreV3
) private returns (bool) {
// call getPrimaryRevenueSplits() on core contract
bytes memory payload = abi.encodeWithSignature(
"getPrimaryRevenueSplits(uint256,uint256)",
0,
0
);
(bool success, bytes memory returnData) = genArt721CoreV3.call(payload);
require(success, "getPrimaryRevenueSplits() call failed");
// determine whether core is engine or not, based on return data length
uint256 returnDataLength = returnData.length;
if (returnDataLength == 6 * 32) {
// 6 32-byte words returned if flagship (not engine)
// @dev 6 32-byte words are expected because the non-engine core
// contracts return a payout address and uint256 payment value for
// the artist, and artist's additional payee, and Art Blocks.
// also note that per Solidity ABI encoding, the address return
// values are padded to 32 bytes.
return false;
} else if (returnDataLength == 8 * 32) {
// 8 32-byte words returned if engine
// @dev 8 32-byte words are expected because the engine core
// contracts return a payout address and uint256 payment value for
// the artist, artist's additional payee, render provider
// typically Art Blocks, and platform provider (partner).
// also note that per Solidity ABI encoding, the address return
// values are padded to 32 bytes.
return true;
} else {
// unexpected return value length
revert("Unexpected revenue split bytes");
}
}
}{
"optimizer": {
"enabled": true,
"runs": 25
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_genArt721Address","type":"address"},{"internalType":"address","name":"_minterFilter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"ConfigKeyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"ConfigValueAddedToSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"address","name":"_value","type":"address"}],"name":"ConfigValueAddedToSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"ConfigValueAddedToSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"ConfigValueRemovedFromSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"address","name":"_value","type":"address"}],"name":"ConfigValueRemovedFromSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"ConfigValueRemovedFromSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"_value","type":"bool"}],"name":"ConfigValueSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"ConfigValueSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"address","name":"_value","type":"address"}],"name":"ConfigValueSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"ConfigValueSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"PricePerTokenInWeiUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_currencyAddress","type":"address"},{"indexed":false,"internalType":"string","name":"_currencySymbol","type":"string"}],"name":"ProjectCurrencyInfoUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"ProjectMaxInvocationsLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_projectId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_purchaseToDisabled","type":"bool"}],"name":"PurchaseToDisabledUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"checkYourAllowanceOfProjectERC20","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genArt721CoreAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"getPriceInfo","outputs":[{"internalType":"bool","name":"isConfigured","type":"bool"},{"internalType":"uint256","name":"tokenPriceInWei","type":"uint256"},{"internalType":"string","name":"currencySymbol","type":"string"},{"internalType":"address","name":"currencyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"getYourBalanceOfProjectERC20","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEngine","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_maxInvocations","type":"uint256"}],"name":"manuallyLimitProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterFilterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectConfig","outputs":[{"internalType":"bool","name":"maxHasBeenInvoked","type":"bool"},{"internalType":"bool","name":"priceIsConfigured","type":"bool"},{"internalType":"uint24","name":"maxInvocations","type":"uint24"},{"internalType":"address","name":"currencyAddress","type":"address"},{"internalType":"uint256","name":"pricePerTokenInWei","type":"uint256"},{"internalType":"string","name":"currencySymbol","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectMaxHasBeenInvoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"projectMaxInvocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchaseTo","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchaseTo_do6","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"purchase_H4M","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"setProjectMaxInvocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"togglePurchaseToDisabled","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256","name":"_pricePerTokenInWei","type":"uint256"}],"name":"updatePricePerTokenInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"string","name":"_currencySymbol","type":"string"},{"internalType":"address","name":"_currencyAddress","type":"address"}],"name":"updateProjectCurrencyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6101206040523480156200001257600080fd5b506040516200263a3803806200263a8339810160408190526200003591620002d5565b600160005581620000468162000137565b1515608052506001600160a01b0380831660a081905260c081905290821660e0819052610100819052604080516392a10f8360e01b815290516392a10f839160048082019260209290919082900301816000875af1158015620000ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d391906200030d565b6001600160a01b0316146200012f5760405162461bcd60e51b815260206004820152601860248201527f496c6c6567616c20636f6e74726163742070616972696e67000000000000000060448201526064015b60405180910390fd5b505062000363565b6040516000602482018190526044820181905290819060640160408051601f198184030181529181526020820180516001600160e01b0316638639415b60e01b1790525190915060009081906001600160a01b038616906200019b90859062000332565b6000604051808303816000865af19150503d8060008114620001da576040519150601f19603f3d011682016040523d82523d6000602084013e620001df565b606091505b509150915081620002415760405162461bcd60e51b815260206004820152602560248201527f6765745072696d617279526576656e756553706c69747328292063616c6c2066604482015264185a5b195960da1b606482015260840162000126565b805160c0819003620002595750600095945050505050565b80610100036200026f5750600195945050505050565b60405162461bcd60e51b815260206004820152601e60248201527f556e657870656374656420726576656e75652073706c69742062797465730000604482015260640162000126565b80516001600160a01b0381168114620002d057600080fd5b919050565b60008060408385031215620002e957600080fd5b620002f483620002b8565b91506200030460208401620002b8565b90509250929050565b6000602082840312156200032057600080fd5b6200032b82620002b8565b9392505050565b6000825160005b8181101562000355576020818601810151858301520162000339565b506000920191825250919050565b60805160a05160c05160e0516101005161224c620003ee6000396000610529015260006103340152600081816108b80152818161097e01528181610b9601528181610c900152818161104a01528181611282015261134801526000818161024d015281816107dc015261085c015260008181610300015281816114390152611839015261224c6000f3fe6080604052600436106100e05760003560e01c80619987146100e5578061b4601461010b5780631607c9951461011e57806340d1397e14610140578063462add461461016057806356690aaf146101a05780636cb9b7ff146101d8578063774159c6146101f8578063891407c01461022857806392a10f831461023b578063a98096001461027c578063c71b1b711461029c578063d195b365146102ce578063db6921b2146102ee578063dd85582f14610322578063e9d1e8ac14610356578063efef39a11461010b578063f4632103146103a4578063f7bd4b88146103c4575b600080fd5b6100f86100f3366004611c38565b6103e4565b6040519081526020015b60405180910390f35b6100f8610119366004611c64565b61088e565b34801561012a57600080fd5b5061013e610139366004611c7d565b6108a0565b005b34801561014c57600080fd5b5061013e61015b366004611c64565b610b7e565b34801561016c57600080fd5b5061019061017b366004611c64565b60009081526001602052604090205460ff1690565b6040519015158152602001610102565b3480156101ac57600080fd5b506100f86101bb366004611c64565b60009081526001602052604090205462010000900462ffffff1690565b3480156101e457600080fd5b5061013e6101f3366004611c7d565b610c78565b34801561020457600080fd5b50610218610213366004611c64565b610dcb565b6040516101029493929190611cef565b6100f8610236366004611c38565b610ec1565b34801561024757600080fd5b5061026f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516101029190611d29565b34801561028857600080fd5b506100f8610297366004611c64565b610ed4565b3480156102a857600080fd5b506102bc6102b7366004611c64565b610f57565b60405161010296959493929190611d3d565b3480156102da57600080fd5b5061013e6102e9366004611da1565b611032565b3480156102fa57600080fd5b506101907f000000000000000000000000000000000000000000000000000000000000000081565b34801561032e57600080fd5b5061026f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561036257600080fd5b5061039760405180604001604052806015815260200174135a5b9d195c94d95d141c9a58d9515490cc8c158d605a1b81525081565b6040516101029190611e6b565b3480156103b057600080fd5b506100f86103bf366004611c64565b611226565b3480156103d057600080fd5b5061013e6103df366004611c64565b61126a565b600060026000540361043d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000908155828152600160205260409020805460ff16156104b05760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b6064820152608401610434565b8054610100900460ff166104fd5760405162461bcd60e51b8152602060048201526014602482015273141c9a58d9481b9bdd0818dbdb999a59dd5c995960621b6044820152606401610434565b604051630d4d151360e01b81526001600160a01b038581166004830152602482018590523360448301527f00000000000000000000000000000000000000000000000000000000000000001690630d4d1513906064016020604051808303816000875af1158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611e7e565b815490925060001962ffffff6201000090920482160116620f42408306036105c457805460ff191660011781555b60018101548154600160281b90046001600160a01b031680156108055734156106555760405162461bcd60e51b815260206004820152603f60248201527f746869732070726f6a6563742061636365707473206120646966666572656e7460448201527f2063757272656e637920616e642063616e6e6f742061636365707420455448006064820152608401610434565b604051636eb1769f60e11b815282906001600160a01b0383169063dd62ed3e906106859033903090600401611e97565b602060405180830381865afa1580156106a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c69190611e7e565b101561071f5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e742046756e647320417070726f76656420666f72206044820152610a8b60f31b6064820152608401610434565b6040516370a0823160e01b815282906001600160a01b038316906370a082319061074d903390600401611d29565b602060405180830381865afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e9190611e7e565b10156107d45760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103130b630b731b29760591b6044820152606401610434565b6108008583837f000000000000000000000000000000000000000000000000000000000000000061142f565b610880565b813410156108555760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e74216044820152606401610434565b61088085837f0000000000000000000000000000000000000000000000000000000000000000611769565b505050600160005592915050565b600061089a33836103e4565b92915050565b60405163a47d29cb60e01b81526004810183905282907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb90602401602060405180830381865afa158015610907573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092b9190611eb1565b6001600160a01b0316336001600160a01b03161461095b5760405162461bcd60e51b815260040161043490611ece565b604051630ea5613f60e01b81526004810184905260009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630ea5613f9060240160c060405180830381865afa1580156109c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e99190611f03565b5092955092935050505081841115610a895760405162461bcd60e51b815260206004820152605760248201527f43616e6e6f7420696e6372656173652070726f6a656374206d617820696e766f60448201527f636174696f6e732061626f766520636f726520636f6e7472616374207365742060648201527670726f6a656374206d617820696e766f636174696f6e7360481b608482015260a401610434565b80841015610b0b5760405162461bcd60e51b815260206004820152604360248201527f43616e6e6f74207365742070726f6a656374206d617820696e766f636174696f60448201527f6e7320746f206c657373207468616e2063757272656e7420696e766f636174696064820152626f6e7360e81b608482015260a401610434565b60008581526001602052604090819020805460ff1962ffffff881662010000021664ffffff00ff19909116178387141790555185907f8445d32a2ee05956c6c842357ca16ee41e92657b1cbcbf1c94f500672e48c3b190610b6f9087815260200190565b60405180910390a25050505050565b60405163a47d29cb60e01b81526004810182905281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb90602401602060405180830381865afa158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190611eb1565b6001600160a01b0316336001600160a01b031614610c395760405162461bcd60e51b815260040161043490611ece565b60405162461bcd60e51b81526020600482015260146024820152731058dd1a5bdb881b9bdd081cdd5c1c1bdc9d195960621b6044820152606401610434565b60405163a47d29cb60e01b81526004810183905282907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb90602401602060405180830381865afa158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190611eb1565b6001600160a01b0316336001600160a01b031614610d335760405162461bcd60e51b815260040161043490611ece565b60008211610d785760405162461bcd60e51b815260206004820152601260248201527105072696365206d6179206e6f7420626520360741b6044820152606401610434565b6000838152600160208190526040808320918201859055815461ff0019166101001790915551839185917f26118a27aca826f829f3bfe21b140b4455c00b434849bd0da50d1e1a9720fb5c9190a3505050565b6000818152600160208190526040909120805491810154610100830460ff16929091606091600160281b90046001600160a01b03169081610e29576040518060400160405280600381526020016208aa8960eb1b8152509250610eb9565b806002018054610e3890611f62565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6490611f62565b8015610eb15780601f10610e8657610100808354040283529160200191610eb1565b820191906000526020600020905b815481529060010190602001808311610e9457829003601f168201915b505050505092505b509193509193565b6000610ecd83836103e4565b9392505050565b6000818152600160205260408082205490516370a0823160e01b8152600160281b9091046001600160a01b0316906370a0823190610f16903390600401611d29565b602060405180830381865afa158015610f33573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a9190611e7e565b600160208190526000918252604090912080549181015460028201805460ff8086169561010081049091169462010000820462ffffff1694600160281b9092046001600160a01b0316939192909190610faf90611f62565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdb90611f62565b80156110285780601f10610ffd57610100808354040283529160200191611028565b820191906000526020600020905b81548152906001019060200180831161100b57829003601f168201915b5050505050905086565b60405163a47d29cb60e01b81526004810184905283907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb90602401602060405180830381865afa158015611099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bd9190611eb1565b6001600160a01b0316336001600160a01b0316146110ed5760405162461bcd60e51b815260040161043490611ece565b6040516208aa8960eb1b60208201526001600160a01b038316159060230160405160208183030381529060405280519060200120846040516020016111329190611f9c565b60405160208183030381529060405280519060200120141515146111935760405162461bcd60e51b8152602060048201526018602482015277455448206973206f6e6c79206e756c6c206164647265737360401b6044820152606401610434565b60008481526001602052604090206002016111ae8482612006565b50600084815260016020526040908190208054600160281b600160c81b031916600160281b6001600160a01b03861690810291909117909155905185907fe6c8c6160f844a27204e2b7fb4b7fb9f10e5d322fa850096bef29dc1d0f445c190611218908790611e6b565b60405180910390a350505050565b600081815260016020526040808220549051636eb1769f60e11b8152600160281b9091046001600160a01b03169063dd62ed3e90610f169033903090600401611e97565b60405163a47d29cb60e01b81526004810182905281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a47d29cb90602401602060405180830381865afa1580156112d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f59190611eb1565b6001600160a01b0316336001600160a01b0316146113255760405162461bcd60e51b815260040161043490611ece565b604051630ea5613f60e01b81526004810183905260009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630ea5613f9060240160c060405180830381865afa15801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b39190611f03565b50505060008781526001602052604090819020805460ff1962ffffff861662010000021664ffffff00ff1990911617858514179055519194509192508591507f8445d32a2ee05956c6c842357ca16ee41e92657b1cbcbf1c94f500672e48c3b1906114219085815260200190565b60405180910390a250505050565b81600080808080807f00000000000000000000000000000000000000000000000000000000000000001561156b57604051638639415b60e01b8152600481018c9052602481018b905260009081906001600160a01b038b1690638639415b9060440161010060405180830381865afa1580156114af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d391906120c5565b969e50949c50909a50985091965091945090925090508115611564576040516323b872dd60e01b81526001600160a01b038a16906323b872dd9061151f9033908590879060040161214d565b6020604051808303816000875af115801561153e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115629190612171565b505b50506115eb565b604051638639415b60e01b8152600481018c9052602481018b90526001600160a01b03891690638639415b9060440160c060405180830381865afa1580156115b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115db919061218c565b949a509298509096509450925090505b8515611666576040516323b872dd60e01b81526001600160a01b038816906323b872dd9061162190339089908b9060040161214d565b6020604051808303816000875af1158015611640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116649190612171565b505b83156116e1576040516323b872dd60e01b81526001600160a01b038816906323b872dd9061169c9033908790899060040161214d565b6020604051808303816000875af11580156116bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116df9190612171565b505b811561175c576040516323b872dd60e01b81526001600160a01b038816906323b872dd906117179033908590879060040161214d565b6020604051808303816000875af1158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a9190612171565b505b5050505050505050505050565b341561181a5760008061177c84346121f5565b9050801561180c5760405133908290600081818185875af1925050503d80600081146117c4576040519150601f19603f3d011682016040523d82523d6000602084013e6117c9565b606091505b5050809250508161180c5760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b6044820152606401610434565b61181785858561181f565b50505b505050565b6000821161182c57505050565b60008060008060008060007f00000000000000000000000000000000000000000000000000000000000000001561199757604051638639415b60e01b8152600481018b9052602481018a905260009081906001600160a01b038b1690638639415b9060440161010060405180830381865afa1580156118af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d391906120c5565b969e50949c50909a50985091965091945090925090508115611990576040516001600160a01b038216908390600081818185875af1925050503d8060008114611938576040519150601f19603f3d011682016040523d82523d6000602084013e61193d565b606091505b505080995050886119905760405162461bcd60e51b815260206004820181905260248201527f506c6174666f726d2050726f7669646572207061796d656e74206661696c65646044820152606401610434565b5050611a17565b604051638639415b60e01b8152600481018b9052602481018a90526001600160a01b03891690638639415b9060440160c060405180830381865afa1580156119e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a07919061218c565b949a509298509096509450925090505b8515611abe576040516001600160a01b038616908790600081818185875af1925050503d8060008114611a66576040519150601f19603f3d011682016040523d82523d6000602084013e611a6b565b606091505b50508097505086611abe5760405162461bcd60e51b815260206004820152601e60248201527f52656e6465722050726f7669646572207061796d656e74206661696c656400006044820152606401610434565b8315611b5d576040516001600160a01b038416908590600081818185875af1925050503d8060008114611b0d576040519150601f19603f3d011682016040523d82523d6000602084013e611b12565b606091505b50508097505086611b5d5760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b6044820152606401610434565b8115611c04576040516001600160a01b038216908390600081818185875af1925050503d8060008114611bac576040519150601f19603f3d011682016040523d82523d6000602084013e611bb1565b606091505b50508097505086611c045760405162461bcd60e51b815260206004820152601f60248201527f4164646974696f6e616c205061796565207061796d656e74206661696c6564006044820152606401610434565b50505050505050505050565b6001600160a01b0381168114611c2557600080fd5b50565b8035611c3381611c10565b919050565b60008060408385031215611c4b57600080fd5b8235611c5681611c10565b946020939093013593505050565b600060208284031215611c7657600080fd5b5035919050565b60008060408385031215611c9057600080fd5b50508035926020909101359150565b60005b83811015611cba578181015183820152602001611ca2565b50506000910152565b60008151808452611cdb816020860160208601611c9f565b601f01601f19169290920160200192915050565b8415158152836020820152608060408201526000611d106080830185611cc3565b905060018060a01b038316606083015295945050505050565b6001600160a01b0391909116815260200190565b8615158152851515602082015262ffffff8516604082015260018060a01b038416606082015282608082015260c060a08201526000611d7f60c0830184611cc3565b98975050505050505050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215611db657600080fd5b8335925060208401356001600160401b0380821115611dd457600080fd5b818601915086601f830112611de857600080fd5b813581811115611dfa57611dfa611d8b565b604051601f8201601f19908116603f01168101908382118183101715611e2257611e22611d8b565b81604052828152896020848701011115611e3b57600080fd5b826020860160208301376000602084830101528096505050505050611e6260408501611c28565b90509250925092565b602081526000610ecd6020830184611cc3565b600060208284031215611e9057600080fd5b5051919050565b6001600160a01b0392831681529116602082015260400190565b600060208284031215611ec357600080fd5b8151610ecd81611c10565b6020808252600b908201526a13db9b1e48105c9d1a5cdd60aa1b604082015260600190565b80518015158114611c3357600080fd5b60008060008060008060c08789031215611f1c57600080fd5b8651955060208701519450611f3360408801611ef3565b9350611f4160608801611ef3565b925060808701519150611f5660a08801611ef3565b90509295509295509295565b600181811c90821680611f7657607f821691505b602082108103611f9657634e487b7160e01b600052602260045260246000fd5b50919050565b60008251611fae818460208701611c9f565b9190910192915050565b601f82111561181a57600081815260208120601f850160051c81016020861015611fdf5750805b601f850160051c820191505b81811015611ffe57828155600101611feb565b505050505050565b81516001600160401b0381111561201f5761201f611d8b565b6120338161202d8454611f62565b84611fb8565b602080601f83116001811461206857600084156120505750858301515b600019600386901b1c1916600185901b178555611ffe565b600085815260208120601f198616915b8281101561209757888601518255948401946001909101908401612078565b50858210156120b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080600080600080600080610100898b0312156120e257600080fd5b8851975060208901516120f481611c10565b60408a015160608b0151919850965061210c81611c10565b60808a015160a08b0151919650945061212481611c10565b60c08a015160e08b0151919450925061213c81611c10565b809150509295985092959890939650565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006020828403121561218357600080fd5b610ecd82611ef3565b60008060008060008060c087890312156121a557600080fd5b8651955060208701516121b781611c10565b6040880151606089015191965094506121cf81611c10565b608088015160a089015191945092506121e781611c10565b809150509295509295509295565b8181038181111561089a57634e487b7160e01b600052601160045260246000fdfea26469706673582212200bf2e9001e32a28168f347f1cafab360a8884c61cc203c7d0a37d02a9df1f3d564736f6c6343000811003300000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b069000000000000000000000000092b8f64e713d66b38522978bcf4649db14b931e
Deployed Bytecode
0x6080604052600436106100e05760003560e01c80619987146100e5578061b4601461010b5780631607c9951461011e57806340d1397e14610140578063462add461461016057806356690aaf146101a05780636cb9b7ff146101d8578063774159c6146101f8578063891407c01461022857806392a10f831461023b578063a98096001461027c578063c71b1b711461029c578063d195b365146102ce578063db6921b2146102ee578063dd85582f14610322578063e9d1e8ac14610356578063efef39a11461010b578063f4632103146103a4578063f7bd4b88146103c4575b600080fd5b6100f86100f3366004611c38565b6103e4565b6040519081526020015b60405180910390f35b6100f8610119366004611c64565b61088e565b34801561012a57600080fd5b5061013e610139366004611c7d565b6108a0565b005b34801561014c57600080fd5b5061013e61015b366004611c64565b610b7e565b34801561016c57600080fd5b5061019061017b366004611c64565b60009081526001602052604090205460ff1690565b6040519015158152602001610102565b3480156101ac57600080fd5b506100f86101bb366004611c64565b60009081526001602052604090205462010000900462ffffff1690565b3480156101e457600080fd5b5061013e6101f3366004611c7d565b610c78565b34801561020457600080fd5b50610218610213366004611c64565b610dcb565b6040516101029493929190611cef565b6100f8610236366004611c38565b610ec1565b34801561024757600080fd5b5061026f7f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b06981565b6040516101029190611d29565b34801561028857600080fd5b506100f8610297366004611c64565b610ed4565b3480156102a857600080fd5b506102bc6102b7366004611c64565b610f57565b60405161010296959493929190611d3d565b3480156102da57600080fd5b5061013e6102e9366004611da1565b611032565b3480156102fa57600080fd5b506101907f000000000000000000000000000000000000000000000000000000000000000081565b34801561032e57600080fd5b5061026f7f000000000000000000000000092b8f64e713d66b38522978bcf4649db14b931e81565b34801561036257600080fd5b5061039760405180604001604052806015815260200174135a5b9d195c94d95d141c9a58d9515490cc8c158d605a1b81525081565b6040516101029190611e6b565b3480156103b057600080fd5b506100f86103bf366004611c64565b611226565b3480156103d057600080fd5b5061013e6103df366004611c64565b61126a565b600060026000540361043d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000908155828152600160205260409020805460ff16156104b05760405162461bcd60e51b815260206004820152602560248201527f4d6178696d756d206e756d626572206f6620696e766f636174696f6e732072656044820152641858da195960da1b6064820152608401610434565b8054610100900460ff166104fd5760405162461bcd60e51b8152602060048201526014602482015273141c9a58d9481b9bdd0818dbdb999a59dd5c995960621b6044820152606401610434565b604051630d4d151360e01b81526001600160a01b038581166004830152602482018590523360448301527f000000000000000000000000092b8f64e713d66b38522978bcf4649db14b931e1690630d4d1513906064016020604051808303816000875af1158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611e7e565b815490925060001962ffffff6201000090920482160116620f42408306036105c457805460ff191660011781555b60018101548154600160281b90046001600160a01b031680156108055734156106555760405162461bcd60e51b815260206004820152603f60248201527f746869732070726f6a6563742061636365707473206120646966666572656e7460448201527f2063757272656e637920616e642063616e6e6f742061636365707420455448006064820152608401610434565b604051636eb1769f60e11b815282906001600160a01b0383169063dd62ed3e906106859033903090600401611e97565b602060405180830381865afa1580156106a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c69190611e7e565b101561071f5760405162461bcd60e51b815260206004820152602260248201527f496e73756666696369656e742046756e647320417070726f76656420666f72206044820152610a8b60f31b6064820152608401610434565b6040516370a0823160e01b815282906001600160a01b038316906370a082319061074d903390600401611d29565b602060405180830381865afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e9190611e7e565b10156107d45760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103130b630b731b29760591b6044820152606401610434565b6108008583837f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b06961142f565b610880565b813410156108555760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e64206d696e696d756d2076616c756520746f206d696e74216044820152606401610434565b61088085837f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b069611769565b505050600160005592915050565b600061089a33836103e4565b92915050565b60405163a47d29cb60e01b81526004810183905282907f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0696001600160a01b03169063a47d29cb90602401602060405180830381865afa158015610907573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092b9190611eb1565b6001600160a01b0316336001600160a01b03161461095b5760405162461bcd60e51b815260040161043490611ece565b604051630ea5613f60e01b81526004810184905260009081906001600160a01b037f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0691690630ea5613f9060240160c060405180830381865afa1580156109c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e99190611f03565b5092955092935050505081841115610a895760405162461bcd60e51b815260206004820152605760248201527f43616e6e6f7420696e6372656173652070726f6a656374206d617820696e766f60448201527f636174696f6e732061626f766520636f726520636f6e7472616374207365742060648201527670726f6a656374206d617820696e766f636174696f6e7360481b608482015260a401610434565b80841015610b0b5760405162461bcd60e51b815260206004820152604360248201527f43616e6e6f74207365742070726f6a656374206d617820696e766f636174696f60448201527f6e7320746f206c657373207468616e2063757272656e7420696e766f636174696064820152626f6e7360e81b608482015260a401610434565b60008581526001602052604090819020805460ff1962ffffff881662010000021664ffffff00ff19909116178387141790555185907f8445d32a2ee05956c6c842357ca16ee41e92657b1cbcbf1c94f500672e48c3b190610b6f9087815260200190565b60405180910390a25050505050565b60405163a47d29cb60e01b81526004810182905281907f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0696001600160a01b03169063a47d29cb90602401602060405180830381865afa158015610be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c099190611eb1565b6001600160a01b0316336001600160a01b031614610c395760405162461bcd60e51b815260040161043490611ece565b60405162461bcd60e51b81526020600482015260146024820152731058dd1a5bdb881b9bdd081cdd5c1c1bdc9d195960621b6044820152606401610434565b60405163a47d29cb60e01b81526004810183905282907f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0696001600160a01b03169063a47d29cb90602401602060405180830381865afa158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190611eb1565b6001600160a01b0316336001600160a01b031614610d335760405162461bcd60e51b815260040161043490611ece565b60008211610d785760405162461bcd60e51b815260206004820152601260248201527105072696365206d6179206e6f7420626520360741b6044820152606401610434565b6000838152600160208190526040808320918201859055815461ff0019166101001790915551839185917f26118a27aca826f829f3bfe21b140b4455c00b434849bd0da50d1e1a9720fb5c9190a3505050565b6000818152600160208190526040909120805491810154610100830460ff16929091606091600160281b90046001600160a01b03169081610e29576040518060400160405280600381526020016208aa8960eb1b8152509250610eb9565b806002018054610e3890611f62565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6490611f62565b8015610eb15780601f10610e8657610100808354040283529160200191610eb1565b820191906000526020600020905b815481529060010190602001808311610e9457829003601f168201915b505050505092505b509193509193565b6000610ecd83836103e4565b9392505050565b6000818152600160205260408082205490516370a0823160e01b8152600160281b9091046001600160a01b0316906370a0823190610f16903390600401611d29565b602060405180830381865afa158015610f33573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a9190611e7e565b600160208190526000918252604090912080549181015460028201805460ff8086169561010081049091169462010000820462ffffff1694600160281b9092046001600160a01b0316939192909190610faf90611f62565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdb90611f62565b80156110285780601f10610ffd57610100808354040283529160200191611028565b820191906000526020600020905b81548152906001019060200180831161100b57829003601f168201915b5050505050905086565b60405163a47d29cb60e01b81526004810184905283907f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0696001600160a01b03169063a47d29cb90602401602060405180830381865afa158015611099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bd9190611eb1565b6001600160a01b0316336001600160a01b0316146110ed5760405162461bcd60e51b815260040161043490611ece565b6040516208aa8960eb1b60208201526001600160a01b038316159060230160405160208183030381529060405280519060200120846040516020016111329190611f9c565b60405160208183030381529060405280519060200120141515146111935760405162461bcd60e51b8152602060048201526018602482015277455448206973206f6e6c79206e756c6c206164647265737360401b6044820152606401610434565b60008481526001602052604090206002016111ae8482612006565b50600084815260016020526040908190208054600160281b600160c81b031916600160281b6001600160a01b03861690810291909117909155905185907fe6c8c6160f844a27204e2b7fb4b7fb9f10e5d322fa850096bef29dc1d0f445c190611218908790611e6b565b60405180910390a350505050565b600081815260016020526040808220549051636eb1769f60e11b8152600160281b9091046001600160a01b03169063dd62ed3e90610f169033903090600401611e97565b60405163a47d29cb60e01b81526004810182905281907f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0696001600160a01b03169063a47d29cb90602401602060405180830381865afa1580156112d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f59190611eb1565b6001600160a01b0316336001600160a01b0316146113255760405162461bcd60e51b815260040161043490611ece565b604051630ea5613f60e01b81526004810183905260009081906001600160a01b037f00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b0691690630ea5613f9060240160c060405180830381865afa15801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b39190611f03565b50505060008781526001602052604090819020805460ff1962ffffff861662010000021664ffffff00ff1990911617858514179055519194509192508591507f8445d32a2ee05956c6c842357ca16ee41e92657b1cbcbf1c94f500672e48c3b1906114219085815260200190565b60405180910390a250505050565b81600080808080807f00000000000000000000000000000000000000000000000000000000000000001561156b57604051638639415b60e01b8152600481018c9052602481018b905260009081906001600160a01b038b1690638639415b9060440161010060405180830381865afa1580156114af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d391906120c5565b969e50949c50909a50985091965091945090925090508115611564576040516323b872dd60e01b81526001600160a01b038a16906323b872dd9061151f9033908590879060040161214d565b6020604051808303816000875af115801561153e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115629190612171565b505b50506115eb565b604051638639415b60e01b8152600481018c9052602481018b90526001600160a01b03891690638639415b9060440160c060405180830381865afa1580156115b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115db919061218c565b949a509298509096509450925090505b8515611666576040516323b872dd60e01b81526001600160a01b038816906323b872dd9061162190339089908b9060040161214d565b6020604051808303816000875af1158015611640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116649190612171565b505b83156116e1576040516323b872dd60e01b81526001600160a01b038816906323b872dd9061169c9033908790899060040161214d565b6020604051808303816000875af11580156116bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116df9190612171565b505b811561175c576040516323b872dd60e01b81526001600160a01b038816906323b872dd906117179033908590879060040161214d565b6020604051808303816000875af1158015611736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175a9190612171565b505b5050505050505050505050565b341561181a5760008061177c84346121f5565b9050801561180c5760405133908290600081818185875af1925050503d80600081146117c4576040519150601f19603f3d011682016040523d82523d6000602084013e6117c9565b606091505b5050809250508161180c5760405162461bcd60e51b815260206004820152600d60248201526c1499599d5b990819985a5b1959609a1b6044820152606401610434565b61181785858561181f565b50505b505050565b6000821161182c57505050565b60008060008060008060007f00000000000000000000000000000000000000000000000000000000000000001561199757604051638639415b60e01b8152600481018b9052602481018a905260009081906001600160a01b038b1690638639415b9060440161010060405180830381865afa1580156118af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d391906120c5565b969e50949c50909a50985091965091945090925090508115611990576040516001600160a01b038216908390600081818185875af1925050503d8060008114611938576040519150601f19603f3d011682016040523d82523d6000602084013e61193d565b606091505b505080995050886119905760405162461bcd60e51b815260206004820181905260248201527f506c6174666f726d2050726f7669646572207061796d656e74206661696c65646044820152606401610434565b5050611a17565b604051638639415b60e01b8152600481018b9052602481018a90526001600160a01b03891690638639415b9060440160c060405180830381865afa1580156119e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a07919061218c565b949a509298509096509450925090505b8515611abe576040516001600160a01b038616908790600081818185875af1925050503d8060008114611a66576040519150601f19603f3d011682016040523d82523d6000602084013e611a6b565b606091505b50508097505086611abe5760405162461bcd60e51b815260206004820152601e60248201527f52656e6465722050726f7669646572207061796d656e74206661696c656400006044820152606401610434565b8315611b5d576040516001600160a01b038416908590600081818185875af1925050503d8060008114611b0d576040519150601f19603f3d011682016040523d82523d6000602084013e611b12565b606091505b50508097505086611b5d5760405162461bcd60e51b8152602060048201526015602482015274105c9d1a5cdd081c185e5b595b9d0819985a5b1959605a1b6044820152606401610434565b8115611c04576040516001600160a01b038216908390600081818185875af1925050503d8060008114611bac576040519150601f19603f3d011682016040523d82523d6000602084013e611bb1565b606091505b50508097505086611c045760405162461bcd60e51b815260206004820152601f60248201527f4164646974696f6e616c205061796565207061796d656e74206661696c6564006044820152606401610434565b50505050505050505050565b6001600160a01b0381168114611c2557600080fd5b50565b8035611c3381611c10565b919050565b60008060408385031215611c4b57600080fd5b8235611c5681611c10565b946020939093013593505050565b600060208284031215611c7657600080fd5b5035919050565b60008060408385031215611c9057600080fd5b50508035926020909101359150565b60005b83811015611cba578181015183820152602001611ca2565b50506000910152565b60008151808452611cdb816020860160208601611c9f565b601f01601f19169290920160200192915050565b8415158152836020820152608060408201526000611d106080830185611cc3565b905060018060a01b038316606083015295945050505050565b6001600160a01b0391909116815260200190565b8615158152851515602082015262ffffff8516604082015260018060a01b038416606082015282608082015260c060a08201526000611d7f60c0830184611cc3565b98975050505050505050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215611db657600080fd5b8335925060208401356001600160401b0380821115611dd457600080fd5b818601915086601f830112611de857600080fd5b813581811115611dfa57611dfa611d8b565b604051601f8201601f19908116603f01168101908382118183101715611e2257611e22611d8b565b81604052828152896020848701011115611e3b57600080fd5b826020860160208301376000602084830101528096505050505050611e6260408501611c28565b90509250925092565b602081526000610ecd6020830184611cc3565b600060208284031215611e9057600080fd5b5051919050565b6001600160a01b0392831681529116602082015260400190565b600060208284031215611ec357600080fd5b8151610ecd81611c10565b6020808252600b908201526a13db9b1e48105c9d1a5cdd60aa1b604082015260600190565b80518015158114611c3357600080fd5b60008060008060008060c08789031215611f1c57600080fd5b8651955060208701519450611f3360408801611ef3565b9350611f4160608801611ef3565b925060808701519150611f5660a08801611ef3565b90509295509295509295565b600181811c90821680611f7657607f821691505b602082108103611f9657634e487b7160e01b600052602260045260246000fd5b50919050565b60008251611fae818460208701611c9f565b9190910192915050565b601f82111561181a57600081815260208120601f850160051c81016020861015611fdf5750805b601f850160051c820191505b81811015611ffe57828155600101611feb565b505050505050565b81516001600160401b0381111561201f5761201f611d8b565b6120338161202d8454611f62565b84611fb8565b602080601f83116001811461206857600084156120505750858301515b600019600386901b1c1916600185901b178555611ffe565b600085815260208120601f198616915b8281101561209757888601518255948401946001909101908401612078565b50858210156120b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080600080600080600080610100898b0312156120e257600080fd5b8851975060208901516120f481611c10565b60408a015160608b0151919850965061210c81611c10565b60808a015160a08b0151919650945061212481611c10565b60c08a015160e08b0151919450925061213c81611c10565b809150509295985092959890939650565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006020828403121561218357600080fd5b610ecd82611ef3565b60008060008060008060c087890312156121a557600080fd5b8651955060208701516121b781611c10565b6040880151606089015191965094506121cf81611c10565b608088015160a089015191945092506121e781611c10565b809150509295509295509295565b8181038181111561089a57634e487b7160e01b600052601160045260246000fdfea26469706673582212200bf2e9001e32a28168f347f1cafab360a8884c61cc203c7d0a37d02a9df1f3d564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b069000000000000000000000000092b8f64e713d66b38522978bcf4649db14b931e
-----Decoded View---------------
Arg [0] : _genArt721Address (address): 0x99a9B7c1116f9ceEB1652de04d5969CcE509B069
Arg [1] : _minterFilter (address): 0x092B8F64e713d66b38522978BCf4649db14b931E
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000099a9b7c1116f9ceeb1652de04d5969cce509b069
Arg [1] : 000000000000000000000000092b8f64e713d66b38522978bcf4649db14b931e
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.