Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0.3 ETH
Eth Value
$918.18 (@ $3,060.60/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 13 from a total of 13 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Base URI | 19493163 | 632 days ago | IN | 0 ETH | 0.00073049 | ||||
| Set Base URI | 14399561 | 1369 days ago | IN | 0 ETH | 0.0018465 | ||||
| Set New Price | 13578897 | 1496 days ago | IN | 0 ETH | 0.00483382 | ||||
| Mint Ben | 13565165 | 1499 days ago | IN | 0.1 ETH | 0.01676533 | ||||
| Mint Ben | 13564794 | 1499 days ago | IN | 0.1 ETH | 0.01647512 | ||||
| Set Base URI | 13564374 | 1499 days ago | IN | 0 ETH | 0.00396302 | ||||
| Set Base URI | 13564241 | 1499 days ago | IN | 0 ETH | 0.0051594 | ||||
| Set Base URI | 13564147 | 1499 days ago | IN | 0 ETH | 0.0046172 | ||||
| Mint Ben | 13564083 | 1499 days ago | IN | 0.1 ETH | 0.01938638 | ||||
| Set Whitelist | 13564067 | 1499 days ago | IN | 0 ETH | 0.00400781 | ||||
| Set Base URI | 13563972 | 1499 days ago | IN | 0 ETH | 0.00467578 | ||||
| Activate Sale | 13563703 | 1499 days ago | IN | 0 ETH | 0.00777507 | ||||
| Set Whitelist | 13563631 | 1499 days ago | IN | 0 ETH | 0.17032749 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BenFTCollection
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
contract BenFTCollection is Ownable, ERC721Enumerable, PaymentSplitter {
uint public MAX_BNFT = 10000;
uint public BNFT_PRICE = 0.1 ether;
uint public walletLimit = 100;
string public PROVENANCE_HASH;
string private _baseURIExtended;
string private _contractURI;
bool public _isSaleLive = false;
bool private locked;
bool private PROVENANCE_LOCK = false;
uint public _reserved;
uint id = totalSupply();
//BenFT Collection Release Time -
uint public presaleStart = 1636214400; // November 6th 9AM PST
uint public presaleEnd = 1636225200; // November 6th 12PM PST
uint public publicSale = 1636225201; // November 6th 12PM PST
struct Account {
uint nftsReserved;
uint walletLimit;
uint mintedNFTs;
bool isWhitelist;
bool isAdmin;
}
mapping(address => Account) public accounts;
event Mint(address indexed sender, uint totalSupply);
event PermanentURI(string _value, uint256 indexed _id);
address[] private _team;
uint[] private _team_shares;
constructor(address[] memory team, uint[] memory team_shares, address[] memory admins)
ERC721("BenFT Collection", "BNFT")
PaymentSplitter(team, team_shares)
{
_baseURIExtended = "ipfs://QmUdERdpxsgRAiGVw9V15yUQ2LvNM1Hb8d1XQhvuF3dTEi/";
accounts[msg.sender] = Account( 0, 0, 0, true, true);
// teamClaimNFTs
accounts[admins[0]] = Account( 100, 0, 0, false, true); // 10% shares and 100 NFT
accounts[admins[1]] = Account( 0, 0, 0, false, true); // 14% shares NO NFT
accounts[admins[2]] = Account( 0, 0, 0, false, true); // 6% shares NO NFT
accounts[admins[3]] = Account( 25, 0, 0, false, true); // team NFTs
accounts[admins[4]] = Account( 25, 0, 0, false, true); // team NFTs
accounts[admins[5]] = Account( 13, 0, 0, false, true); // team NFTs
accounts[admins[6]] = Account( 12, 0, 0, false, true); // team NFTs
// distroAddresses:
// [0] 0x750EF1D7a0b4Ab1c97B7A623D7917CcEb5ea779C - 70% of proceeds from the primary sale are hard-coded here to the following ETH address: 0x750EF1D7a0b4Ab1c97B7A623D7917CcEb5ea779C
// This goes straight to the GiveDirectly organization to help those living in poverty and can be verified on their web site at https://www.givedirectly.org/crypto/ A 2.5% royalty on each resale will also benefit GiveDirectly!
// [1] 0x3D05c62857DD644225f125e863a25724C40B4a31 - 14%
// [2] 0xB7bee3e6b4124d48b726d782E5F1413806e66E79 - 10%
// [3] 0x7905c1685096738b228a5383eF531778602Af642 - 6%
_reserved = 175;
_team = team;
_team_shares = team_shares;
}
// Modifiers
modifier onlyAdmin() {
require(accounts[msg.sender].isAdmin == true, "Sorry, You need to be an admin");
_;
}
modifier noReentrant() {
require(!locked, "No re-entrancy");
locked = true;
_;
locked = false;
}
// End Modifier
// Setters
function setAdmin(address _addr) external onlyOwner {
accounts[_addr].isAdmin = !accounts[_addr].isAdmin;
}
function setProvenanceHash(string memory _provenanceHash) external onlyOwner {
require(PROVENANCE_LOCK == false);
PROVENANCE_HASH = _provenanceHash;
}
function lockProvenance() external onlyOwner {
PROVENANCE_LOCK = true;
}
function setBaseURI(string memory _newURI) external onlyAdmin {
_baseURIExtended = _newURI;
}
function setContractURI(string memory _newURI) external onlyOwner {
_contractURI = _newURI;
}
function deactivateSale() external onlyOwner {
_isSaleLive = false;
}
function activateSale() external onlyOwner {
_isSaleLive = true;
}
function setWhitelist(address[] memory _addr) external onlyOwner {
for(uint i = 0; i < _addr.length; i++) {
accounts[_addr[i]].walletLimit = 100;
accounts[_addr[i]].isWhitelist = true;
}
}
function setSaleTimes(uint[] memory _newTimes) external onlyAdmin {
require(_newTimes.length == 3, "You need to update all times at once");
presaleStart = _newTimes[0];
presaleEnd = _newTimes[1];
publicSale = _newTimes[2];
}
function setNewPrice(uint _newPrice) external onlyOwner {
BNFT_PRICE = _newPrice;
}
function setMaxBNFT(uint _maxbnft) external onlyOwner {
MAX_BNFT = _maxbnft;
}
// End Setters
// Getters
// For OpenSea
function contractURI() public view returns (string memory) {
return _contractURI;
}
// For Metadata
function _baseURI() internal view virtual override returns (string memory) {
return _baseURIExtended;
}
// End Getter
// Business Logic
function adminMint() external onlyAdmin {
uint _amount = accounts[msg.sender].nftsReserved;
require(accounts[msg.sender].isAdmin == true,"Sorry, Only an admin can mint");
require(_amount > 0, 'Need to have reserved supply');
require(totalSupply() + _amount <= MAX_BNFT, "You would exceed the mint limit");
accounts[msg.sender].nftsReserved -= _amount;
_reserved = _reserved - _amount;
for (uint i = 0; i < _amount; i++) {
id++;
_safeMint(msg.sender, id);
emit Mint(msg.sender, totalSupply());
}
}
// ANY Admin set on deployment can call this function.
function airDropMany(address[] memory _addr) external onlyAdmin {
require(totalSupply() + _addr.length <= (MAX_BNFT - _reserved), "You would exceed the airdrop limit");
// DO MINT
for (uint i = 0; i < _addr.length; i++) {
id++;
_safeMint(_addr[i], id);
emit Mint(msg.sender, totalSupply());
}
}
function mintBen(uint _amount) external payable noReentrant {
// CHECK BASIC SALE CONDITIONS
require(_isSaleLive, "Sale must be active to mint");
require(block.timestamp >= presaleStart, "You must wait till presale begins to mint");
require(totalSupply() + _amount <= (MAX_BNFT - _reserved), "Purchase would exceed max supply of BenFTs");
require(msg.value >= (BNFT_PRICE * _amount), "Ether value sent is not correct");
require(!isContract(msg.sender), "Contracts can't mint");
if(block.timestamp >= publicSale) {
require((_amount + accounts[msg.sender].mintedNFTs) <= walletLimit, "Sorry you can only mint 100 per wallet");
} else if(block.timestamp >= presaleEnd) {
require(false, "Presale has ended, please wait until Public Sale");
} else if(block.timestamp >= presaleStart) {
require(accounts[msg.sender].isWhitelist, "Sorry, you need to be on Whitelist to mint during Presale");
require((_amount + accounts[msg.sender].mintedNFTs) <= accounts[msg.sender].walletLimit, "Wallet Limit Reached");
}
// DO MINT
for (uint i = 0; i < _amount; i++) {
id++;
accounts[msg.sender].mintedNFTs++;
_safeMint(msg.sender, id);
emit Mint(msg.sender, totalSupply());
}
}
// ANY of the Admins set on deployment can call this funciton.
function releaseFunds() external onlyAdmin {
for (uint i = 0; i < _team.length; i++) {
release(payable(_team[i]));
}
}
// helper
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";
/**
* @title PaymentSplitter
* @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
* that the Ether will be split in this way, since it is handled transparently by the contract.
*
* The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
* account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
* an amount proportional to the percentage of total shares they were assigned.
*
* `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
* accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
* function.
*/
contract PaymentSplitter is Context {
event PayeeAdded(address account, uint256 shares);
event PaymentReleased(address to, uint256 amount);
event PaymentReceived(address from, uint256 amount);
uint256 private _totalShares;
uint256 private _totalReleased;
mapping(address => uint256) private _shares;
mapping(address => uint256) private _released;
address[] private _payees;
/**
* @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
* the matching position in the `shares` array.
*
* All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
* duplicates in `payees`.
*/
constructor(address[] memory payees, uint256[] memory shares_) payable {
require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
require(payees.length > 0, "PaymentSplitter: no payees");
for (uint256 i = 0; i < payees.length; i++) {
_addPayee(payees[i], shares_[i]);
}
}
/**
* @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
* reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
* reliability of the events, and not the actual splitting of Ether.
*
* To learn more about this see the Solidity documentation for
* https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
* functions].
*/
receive() external payable virtual {
emit PaymentReceived(_msgSender(), msg.value);
}
/**
* @dev Getter for the total shares held by payees.
*/
function totalShares() public view returns (uint256) {
return _totalShares;
}
/**
* @dev Getter for the total amount of Ether already released.
*/
function totalReleased() public view returns (uint256) {
return _totalReleased;
}
/**
* @dev Getter for the amount of shares held by an account.
*/
function shares(address account) public view returns (uint256) {
return _shares[account];
}
/**
* @dev Getter for the amount of Ether already released to a payee.
*/
function released(address account) public view returns (uint256) {
return _released[account];
}
/**
* @dev Getter for the address of the payee number `index`.
*/
function payee(uint256 index) public view returns (address) {
return _payees[index];
}
/**
* @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
* total shares and their previous withdrawals.
*/
function release(address payable account) public virtual {
require(_shares[account] > 0, "PaymentSplitter: account has no shares");
uint256 totalReceived = address(this).balance + _totalReleased;
uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];
require(payment != 0, "PaymentSplitter: account is not due payment");
_released[account] = _released[account] + payment;
_totalReleased = _totalReleased + payment;
Address.sendValue(account, payment);
emit PaymentReleased(account, payment);
}
/**
* @dev Add a new payee to the contract.
* @param account The address of the payee to add.
* @param shares_ The number of shares owned by the payee.
*/
function _addPayee(address account, uint256 shares_) private {
require(account != address(0), "PaymentSplitter: account is the zero address");
require(shares_ > 0, "PaymentSplitter: shares are 0");
require(_shares[account] == 0, "PaymentSplitter: account already has shares");
_payees.push(account);
_shares[account] = shares_;
_totalShares = _totalShares + shares_;
emit PayeeAdded(account, shares_);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}{
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address[]","name":"team","type":"address[]"},{"internalType":"uint256[]","name":"team_shares","type":"uint256[]"},{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BNFT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isSaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accounts","outputs":[{"internalType":"uint256","name":"nftsReserved","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"uint256","name":"mintedNFTs","type":"uint256"},{"internalType":"bool","name":"isWhitelist","type":"bool"},{"internalType":"bool","name":"isAdmin","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"airDropMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintBen","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxbnft","type":"uint256"}],"name":"setMaxBNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setNewPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_newTimes","type":"uint256[]"}],"name":"setSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405261271060105567016345785d8a000060115560646012556016805462ff00ff19169055600954601855636186a680601955636186d0b0601a55636186d0b1601b553480156200005257600080fd5b506040516200430938038062004309833981016040819052620000759162000c97565b82826040518060400160405280601081526020016f2132b7232a1021b7b63632b1ba34b7b760811b815250604051806040016040528060048152602001631093919560e21b815250620000d7620000d16200089160201b60201c565b62000895565b8151620000ec90600190602085019062000ad3565b5080516200010290600290602084019062000ad3565b5050508051825114620001775760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001ca5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200016e565b60005b82518110156200024e5762000239838281518110620001fc57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200022557634e487b7160e01b600052603260045260246000fd5b6020026020010151620008e560201b60201c565b80620002458162000e30565b915050620001cd565b505050604051806060016040528060368152602001620042d3603691398051620002819160149160209091019062000ad3565b506040805160a0808201835260008083526020808401828152848601838152600160608088018281526080808a01848152338952601c8089528c8a209b518c5596518b860155945160028b0155905160039099018054945115156101000261ff00199a151560ff199096169590951799909916939093179097558751958601885260648652928501849052958401839052938301829052938201939093528351909290849082906200034357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252818101929092526040908101600090812084518155848401516001808301919091558584015160028301556060808701516003909301805460809889015115156101000261ff001995151560ff19909216919091179490941693909317909255835160a081018552838152948501839052928401829052830181905292820181905283519192601c929091859181106200040457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160030160016101000a81548160ff0219169083151502179055509050506040518060a0016040528060008152602001600081526020016000815260200160001515815260200160011515815250601c600083600281518110620004e357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b0316825281810192909252604090810160009081208451815584840151600180830191909155858401516002830155606080870151600393840180546080998a015115156101000261ff001993151560ff199092169190911792909216919091179055845160a081018652601981529586018490529385018390529284018290529383019190915283519192601c928591908110620005a557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252818101929092526040908101600090812084518155848401516001808301919091558584015160028301556060808701516003909301805460809889015115156101000261ff001995151560ff19909216919091179490941693909317909255835160a0810185526019815294850183905292840182905283018190529282015282519091601c91849060049081106200066657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252818101929092526040908101600090812084518155848401516001808301919091558584015160028301556060808701516003909301805460809889015115156101000261ff001995151560ff19909216919091179490941693909317909255835160a081018552600d815294850183905292840182905283018190529282015282519091601c91849060059081106200072757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252818101929092526040908101600090812084518155848401516001808301919091558584015160028301556060808701516003909301805460809889015115156101000261ff001995151560ff19909216919091179490941693909317909255835160a081018552600c815294850183905292840182905283018190529282015282519091601c9184906006908110620007e857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528181019290925260409081016000208351815583830151600182015590830151600282015560608301516003909101805460809094015115156101000261ff001992151560ff1990951694909417919091169290921790915560af60175583516200087191601d919086019062000b62565b5081516200088790601e90602085019062000bba565b5050505062000e7a565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620009525760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200016e565b60008111620009a45760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200016e565b6001600160a01b0382166000908152600d60205260409020541562000a205760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200016e565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b5462000a8a90829062000dd8565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b82805462000ae19062000df3565b90600052602060002090601f01602090048101928262000b05576000855562000b50565b82601f1062000b2057805160ff191683800117855562000b50565b8280016001018555821562000b50579182015b8281111562000b5057825182559160200191906001019062000b33565b5062000b5e92915062000bf7565b5090565b82805482825590600052602060002090810192821562000b50579160200282015b8281111562000b5057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000b83565b82805482825590600052602060002090810192821562000b50579160200282018281111562000b5057825182559160200191906001019062000b33565b5b8082111562000b5e576000815560010162000bf8565b600082601f83011262000c1f578081fd5b8151602062000c3862000c328362000db2565b62000d7f565b828152818101908583018385028701840188101562000c55578586fd5b855b8581101562000c8a5781516001600160a01b038116811462000c77578788fd5b8452928401929084019060010162000c57565b5090979650505050505050565b60008060006060848603121562000cac578283fd5b83516001600160401b038082111562000cc3578485fd5b62000cd18783880162000c0e565b945060209150818601518181111562000ce8578485fd5b8601601f8101881362000cf9578485fd5b805162000d0a62000c328262000db2565b81815284810190838601868402850187018c101562000d27578889fd5b8894505b8385101562000d4b57805183526001949094019391860191860162000d2b565b5060408a015190975094505050508082111562000d66578283fd5b5062000d758682870162000c0e565b9150509250925092565b604051601f8201601f191681016001600160401b038111828210171562000daa5762000daa62000e64565b604052919050565b60006001600160401b0382111562000dce5762000dce62000e64565b5060209081020190565b6000821982111562000dee5762000dee62000e4e565b500190565b60028104600182168062000e0857607f821691505b6020821081141562000e2a57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000e475762000e4762000e4e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6134498062000e8a6000396000f3fe6080604052600436106102e85760003560e01c806370a0823111610190578063cadf7c4d116100dc578063e985e9c511610095578063ee8cdd4e1161006f578063ee8cdd4e1461092c578063f2fde38b1461094c578063f42176481461096c578063ff1b65561461098c57610331565b8063e985e9c5146108ae578063ea7523ee146108f7578063ecad582a1461090c57610331565b8063cadf7c4d146107f8578063ce7c2ac214610818578063de8801e51461084e578063e33b7de314610864578063e63badaf14610879578063e8a3d4851461089957610331565b8063938e3d7b11610149578063a22cb46511610123578063a22cb46514610783578063b88d4fde146107a3578063c721f08d146107c3578063c87b56dd146107d857610331565b8063938e3d7b1461071857806395d89b41146107385780639852595c1461074d57610331565b806370a082311461067a578063715018a61461069a578063895fc788146106af5780638b83209b146106c45780638da5cb5b146106e45780638eaa3dd91461070257610331565b80633c8463a11161024f57806355f804b3116102085780636352211e116101e25780636352211e1461060f57806369d895751461062f5780636aaa571d14610644578063704b6c021461065a57610331565b806355f804b3146105605780635e5c06e214610580578063616d0dfd146105fa57610331565b80633c8463a1146104c757806342408a41146104dd57806342842e0e146104f05780634a6f1cc7146105105780634f5e0b28146105265780634f6ccce71461054057610331565b806319165587116102a15780631916558714610426578063229f3e291461044657806323b872dd1461045c5780632f745c591461047c57806333bc1c5c1461049c5780633a98ef39146104b257610331565b806301ffc9a71461033657806306fdde031461036b578063081812fc1461038d578063095ea7b3146103c557806310969523146103e757806318160ddd1461040757610331565b36610331577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561034257600080fd5b50610356610351366004613009565b6109a1565b60405190151581526020015b60405180910390f35b34801561037757600080fd5b506103806109ce565b6040516103629190613137565b34801561039957600080fd5b506103ad6103a8366004613087565b610a60565b6040516001600160a01b039091168152602001610362565b3480156103d157600080fd5b506103e56103e0366004612ebc565b610afa565b005b3480156103f357600080fd5b506103e5610402366004613041565b610c10565b34801561041357600080fd5b506009545b604051908152602001610362565b34801561043257600080fd5b506103e5610441366004612d7a565b610c67565b34801561045257600080fd5b50610418601a5481565b34801561046857600080fd5b506103e5610477366004612dce565b610e38565b34801561048857600080fd5b50610418610497366004612ebc565b610e69565b3480156104a857600080fd5b50610418601b5481565b3480156104be57600080fd5b50600b54610418565b3480156104d357600080fd5b5061041860125481565b6103e56104eb366004613087565b610eff565b3480156104fc57600080fd5b506103e561050b366004612dce565b6113cf565b34801561051c57600080fd5b5061041860105481565b34801561053257600080fd5b506016546103569060ff1681565b34801561054c57600080fd5b5061041861055b366004613087565b6113ea565b34801561056c57600080fd5b506103e561057b366004613041565b61148b565b34801561058c57600080fd5b506105ce61059b366004612d7a565b601c6020526000908152604090208054600182015460028301546003909301549192909160ff8082169161010090041685565b60408051958652602086019490945292840191909152151560608301521515608082015260a001610362565b34801561060657600080fd5b506103e56114db565b34801561061b57600080fd5b506103ad61062a366004613087565b611511565b34801561063b57600080fd5b506103e5611588565b34801561065057600080fd5b5061041860175481565b34801561066657600080fd5b506103e5610675366004612d7a565b611625565b34801561068657600080fd5b50610418610695366004612d7a565b611684565b3480156106a657600080fd5b506103e561170b565b3480156106bb57600080fd5b506103e5611741565b3480156106d057600080fd5b506103ad6106df366004613087565b611953565b3480156106f057600080fd5b506000546001600160a01b03166103ad565b34801561070e57600080fd5b5061041860115481565b34801561072457600080fd5b506103e5610733366004613041565b611991565b34801561074457600080fd5b506103806119ce565b34801561075957600080fd5b50610418610768366004612d7a565b6001600160a01b03166000908152600e602052604090205490565b34801561078f57600080fd5b506103e561079e366004612e8b565b6119dd565b3480156107af57600080fd5b506103e56107be366004612e0e565b611aaf565b3480156107cf57600080fd5b506103e5611ae7565b3480156107e457600080fd5b506103806107f3366004613087565b611b20565b34801561080457600080fd5b506103e5610813366004612ee7565b611bfb565b34801561082457600080fd5b50610418610833366004612d7a565b6001600160a01b03166000908152600d602052604090205490565b34801561085a57600080fd5b5061041860195481565b34801561087057600080fd5b50600c54610418565b34801561088557600080fd5b506103e5610894366004613087565b611d52565b3480156108a557600080fd5b50610380611d81565b3480156108ba57600080fd5b506103566108c9366004612d96565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561090357600080fd5b506103e5611d90565b34801561091857600080fd5b506103e5610927366004612f85565b611dcd565b34801561093857600080fd5b506103e5610947366004613087565b611ef7565b34801561095857600080fd5b506103e5610967366004612d7a565b611f26565b34801561097857600080fd5b506103e5610987366004612ee7565b611fbe565b34801561099857600080fd5b506103806120b6565b60006001600160e01b0319821663780e9d6360e01b14806109c657506109c682612144565b90505b919050565b6060600180546109dd9061333c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a099061333c565b8015610a565780601f10610a2b57610100808354040283529160200191610a56565b820191906000526020600020905b815481529060010190602001808311610a3957829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610ade5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b0582611511565b9050806001600160a01b0316836001600160a01b03161415610b735760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ad5565b336001600160a01b0382161480610b8f5750610b8f81336108c9565b610c015760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ad5565b610c0b8383612194565b505050565b6000546001600160a01b03163314610c3a5760405162461bcd60e51b8152600401610ad5906131d3565b60165462010000900460ff1615610c5057600080fd5b8051610c63906013906020840190612c89565b5050565b6001600160a01b0381166000908152600d6020526040902054610cdb5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610ad5565b6000600c5447610ceb91906132ae565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d909352908320549394509192610d2290856132da565b610d2c91906132c6565b610d3691906132f9565b905080610d995760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610ad5565b6001600160a01b0383166000908152600e6020526040902054610dbd9082906132ae565b6001600160a01b0384166000908152600e6020526040902055600c54610de49082906132ae565b600c55610df18382612202565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e42338261231b565b610e5e5760405162461bcd60e51b8152600401610ad590613208565b610c0b838383612412565b6000610e7483611684565b8210610ed65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ad5565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b601654610100900460ff1615610f485760405162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b6044820152606401610ad5565b6016805461ff001916610100179081905560ff16610fa85760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610ad5565b60195442101561100c5760405162461bcd60e51b815260206004820152602960248201527f596f75206d75737420776169742074696c6c2070726573616c6520626567696e6044820152681cc81d1bc81b5a5b9d60ba1b6064820152608401610ad5565b60175460105461101c91906132f9565b8161102660095490565b61103091906132ae565b11156110915760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f662042656e46547360b01b6064820152608401610ad5565b8060115461109f91906132da565b3410156110ee5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610ad5565b333b156111345760405162461bcd60e51b815260206004820152601460248201527310dbdb9d1c9858dd1cc818d85b89dd081b5a5b9d60621b6044820152606401610ad5565b601b5442106111bf57601254336000908152601c602052604090206002015461115d90836132ae565b11156111ba5760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f752063616e206f6e6c79206d696e742031303020706572206044820152651dd85b1b195d60d21b6064820152608401610ad5565b611323565b601a5442106112295760405162461bcd60e51b815260206004820152603060248201527f50726573616c652068617320656e6465642c20706c656173652077616974207560448201526f6e74696c205075626c69632053616c6560801b6064820152608401610ad5565b601954421061132357336000908152601c602052604090206003015460ff166112ba5760405162461bcd60e51b815260206004820152603960248201527f536f7272792c20796f75206e65656420746f206265206f6e2057686974656c6960448201527f737420746f206d696e7420647572696e672050726573616c65000000000000006064820152608401610ad5565b336000908152601c6020526040902060018101546002909101546112de90836132ae565b11156113235760405162461bcd60e51b815260206004820152601460248201527315d85b1b195d08131a5b5a5d0814995858da195960621b6044820152606401610ad5565b60005b818110156113c0576018805490600061133e83613377565b9091555050336000908152601c6020526040812060020180549161136183613377565b9190505550611372336018546125bd565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561139d60095490565b60405190815260200160405180910390a2806113b881613377565b915050611326565b50506016805461ff0019169055565b610c0b83838360405180602001604052806000815250611aaf565b60006113f560095490565b82106114585760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ad5565b6009828154811061147957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b336000908152601c602052604090206003015460ff6101009091041615156001146114c85760405162461bcd60e51b8152600401610ad59061319c565b8051610c63906014906020840190612c89565b6000546001600160a01b031633146115055760405162461bcd60e51b8152600401610ad5906131d3565b6016805460ff19169055565b6000818152600360205260408120546001600160a01b0316806109c65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ad5565b336000908152601c602052604090206003015460ff6101009091041615156001146115c55760405162461bcd60e51b8152600401610ad59061319c565b60005b601d5481101561162257611610601d82815481106115f657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316610c67565b8061161a81613377565b9150506115c8565b50565b6000546001600160a01b0316331461164f5760405162461bcd60e51b8152600401610ad5906131d3565b6001600160a01b03166000908152601c60205260409020600301805461ff001981166101009182900460ff1615909102179055565b60006001600160a01b0382166116ef5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ad5565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146117355760405162461bcd60e51b8152600401610ad5906131d3565b61173f60006125d7565b565b336000908152601c602052604090206003015460ff61010090910416151560011461177e5760405162461bcd60e51b8152600401610ad59061319c565b336000908152601c60205260409020805460039091015460ff6101009091041615156001146117ef5760405162461bcd60e51b815260206004820152601d60248201527f536f7272792c204f6e6c7920616e2061646d696e2063616e206d696e740000006044820152606401610ad5565b6000811161183f5760405162461bcd60e51b815260206004820152601c60248201527f4e65656420746f206861766520726573657276656420737570706c79000000006044820152606401610ad5565b6010548161184c60095490565b61185691906132ae565b11156118a45760405162461bcd60e51b815260206004820152601f60248201527f596f7520776f756c642065786365656420746865206d696e74206c696d6974006044820152606401610ad5565b336000908152601c6020526040812080548392906118c39084906132f9565b90915550506017546118d69082906132f9565b60175560005b81811015610c6357601880549060006118f483613377565b9190505550611905336018546125bd565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561193060095490565b60405190815260200160405180910390a28061194b81613377565b9150506118dc565b6000600f828154811061197657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000546001600160a01b031633146119bb5760405162461bcd60e51b8152600401610ad5906131d3565b8051610c63906015906020840190612c89565b6060600280546109dd9061333c565b6001600160a01b038216331415611a365760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ad5565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611aa3911515815260200190565b60405180910390a35050565b611ab9338361231b565b611ad55760405162461bcd60e51b8152600401610ad590613208565b611ae184848484612627565b50505050565b6000546001600160a01b03163314611b115760405162461bcd60e51b8152600401610ad5906131d3565b6016805460ff19166001179055565b6000818152600360205260409020546060906001600160a01b0316611b9f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ad5565b6000611ba961265a565b90506000815111611bc95760405180602001604052806000815250611bf4565b80611bd384612669565b604051602001611be49291906130cb565b6040516020818303038152906040525b9392505050565b336000908152601c602052604090206003015460ff610100909104161515600114611c385760405162461bcd60e51b8152600401610ad59061319c565b601754601054611c4891906132f9565b8151600954611c5791906132ae565b1115611cb05760405162461bcd60e51b815260206004820152602260248201527f596f7520776f756c6420657863656564207468652061697264726f70206c696d6044820152611a5d60f21b6064820152608401610ad5565b60005b8151811015610c635760188054906000611ccc83613377565b9190505550611d04828281518110611cf457634e487b7160e01b600052603260045260246000fd5b60200260200101516018546125bd565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885611d2f60095490565b60405190815260200160405180910390a280611d4a81613377565b915050611cb3565b6000546001600160a01b03163314611d7c5760405162461bcd60e51b8152600401610ad5906131d3565b601055565b6060601580546109dd9061333c565b6000546001600160a01b03163314611dba5760405162461bcd60e51b8152600401610ad5906131d3565b6016805462ff0000191662010000179055565b336000908152601c602052604090206003015460ff610100909104161515600114611e0a5760405162461bcd60e51b8152600401610ad59061319c565b8051600314611e675760405162461bcd60e51b8152602060048201526024808201527f596f75206e65656420746f2075706461746520616c6c2074696d6573206174206044820152636f6e636560e01b6064820152608401610ad5565b80600081518110611e8857634e487b7160e01b600052603260045260246000fd5b602002602001015160198190555080600181518110611eb757634e487b7160e01b600052603260045260246000fd5b6020026020010151601a8190555080600281518110611ee657634e487b7160e01b600052603260045260246000fd5b6020026020010151601b8190555050565b6000546001600160a01b03163314611f215760405162461bcd60e51b8152600401610ad5906131d3565b601155565b6000546001600160a01b03163314611f505760405162461bcd60e51b8152600401610ad5906131d3565b6001600160a01b038116611fb55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad5565b611622816125d7565b6000546001600160a01b03163314611fe85760405162461bcd60e51b8152600401610ad5906131d3565b60005b8151811015610c63576064601c600084848151811061201a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600101819055506001601c600084848151811061206f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020600301805460ff1916911515919091179055806120ae81613377565b915050611feb565b601380546120c39061333c565b80601f01602080910402602001604051908101604052809291908181526020018280546120ef9061333c565b801561213c5780601f106121115761010080835404028352916020019161213c565b820191906000526020600020905b81548152906001019060200180831161211f57829003601f168201915b505050505081565b60006001600160e01b031982166380ac58cd60e01b148061217557506001600160e01b03198216635b5e139f60e01b145b806109c657506301ffc9a760e01b6001600160e01b03198316146109c6565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121c982611511565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156122525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ad5565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461229f576040519150601f19603f3d011682016040523d82523d6000602084013e6122a4565b606091505b5050905080610c0b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ad5565b6000818152600360205260408120546001600160a01b03166123945760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ad5565b600061239f83611511565b9050806001600160a01b0316846001600160a01b031614806123da5750836001600160a01b03166123cf84610a60565b6001600160a01b0316145b8061240a57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661242582611511565b6001600160a01b03161461248d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ad5565b6001600160a01b0382166124ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad5565b6124fa838383612784565b612505600082612194565b6001600160a01b038316600090815260046020526040812080546001929061252e9084906132f9565b90915550506001600160a01b038216600090815260046020526040812080546001929061255c9084906132ae565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610c63828260405180602001604052806000815250612841565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612632848484612412565b61263e84848484612874565b611ae15760405162461bcd60e51b8152600401610ad59061314a565b6060601480546109dd9061333c565b60608161268e57506040805180820190915260018152600360fc1b60208201526109c9565b8160005b81156126b857806126a281613377565b91506126b19050600a836132c6565b9150612692565b60008167ffffffffffffffff8111156126e157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561270b576020820181803683370190505b5090505b841561240a576127206001836132f9565b915061272d600a86613392565b6127389060306132ae565b60f81b81838151811061275b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061277d600a866132c6565b945061270f565b6001600160a01b0383166127df576127da81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612802565b816001600160a01b0316836001600160a01b031614612802576128028382612981565b6001600160a01b03821661281e5761281981612a1e565b610c0b565b826001600160a01b0316826001600160a01b031614610c0b57610c0b8282612af7565b61284b8383612b3b565b6128586000848484612874565b610c0b5760405162461bcd60e51b8152600401610ad59061314a565b60006001600160a01b0384163b1561297657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906128b89033908990889088906004016130fa565b602060405180830381600087803b1580156128d257600080fd5b505af1925050508015612902575060408051601f3d908101601f191682019092526128ff91810190613025565b60015b61295c573d808015612930576040519150601f19603f3d011682016040523d82523d6000602084013e612935565b606091505b5080516129545760405162461bcd60e51b8152600401610ad59061314a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061240a565b506001949350505050565b6000600161298e84611684565b61299891906132f9565b6000838152600860205260409020549091508082146129eb576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612a30906001906132f9565b6000838152600a602052604081205460098054939450909284908110612a6657634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110612a9557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612adb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b0283611684565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216612b915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad5565b6000818152600360205260409020546001600160a01b031615612bf65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ad5565b612c0260008383612784565b6001600160a01b0382166000908152600460205260408120805460019290612c2b9084906132ae565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612c959061333c565b90600052602060002090601f016020900481019282612cb75760008555612cfd565b82601f10612cd057805160ff1916838001178555612cfd565b82800160010185558215612cfd579182015b82811115612cfd578251825591602001919060010190612ce2565b50612d09929150612d0d565b5090565b5b80821115612d095760008155600101612d0e565b600067ffffffffffffffff831115612d3c57612d3c6133d2565b612d4f601f8401601f1916602001613259565b9050828152838383011115612d6357600080fd5b828260208301376000602084830101529392505050565b600060208284031215612d8b578081fd5b8135611bf4816133e8565b60008060408385031215612da8578081fd5b8235612db3816133e8565b91506020830135612dc3816133e8565b809150509250929050565b600080600060608486031215612de2578081fd5b8335612ded816133e8565b92506020840135612dfd816133e8565b929592945050506040919091013590565b60008060008060808587031215612e23578081fd5b8435612e2e816133e8565b93506020850135612e3e816133e8565b925060408501359150606085013567ffffffffffffffff811115612e60578182fd5b8501601f81018713612e70578182fd5b612e7f87823560208401612d22565b91505092959194509250565b60008060408385031215612e9d578182fd5b8235612ea8816133e8565b915060208301358015158114612dc3578182fd5b60008060408385031215612ece578182fd5b8235612ed9816133e8565b946020939093013593505050565b60006020808385031215612ef9578182fd5b823567ffffffffffffffff811115612f0f578283fd5b8301601f81018513612f1f578283fd5b8035612f32612f2d8261328a565b613259565b8181528381019083850185840285018601891015612f4e578687fd5b8694505b83851015612f79578035612f65816133e8565b835260019490940193918501918501612f52565b50979650505050505050565b60006020808385031215612f97578182fd5b823567ffffffffffffffff811115612fad578283fd5b8301601f81018513612fbd578283fd5b8035612fcb612f2d8261328a565b8181528381019083850185840285018601891015612fe7578687fd5b8694505b83851015612f79578035835260019490940193918501918501612feb565b60006020828403121561301a578081fd5b8135611bf4816133fd565b600060208284031215613036578081fd5b8151611bf4816133fd565b600060208284031215613052578081fd5b813567ffffffffffffffff811115613068578182fd5b8201601f81018413613078578182fd5b61240a84823560208401612d22565b600060208284031215613098578081fd5b5035919050565b600081518084526130b7816020860160208601613310565b601f01601f19169290920160200192915050565b600083516130dd818460208801613310565b8351908301906130f1818360208801613310565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061312d9083018461309f565b9695505050505050565b600060208252611bf4602083018461309f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601e908201527f536f7272792c20596f75206e65656420746f20626520616e2061646d696e0000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613282576132826133d2565b604052919050565b600067ffffffffffffffff8211156132a4576132a46133d2565b5060209081020190565b600082198211156132c1576132c16133a6565b500190565b6000826132d5576132d56133bc565b500490565b60008160001904831182151516156132f4576132f46133a6565b500290565b60008282101561330b5761330b6133a6565b500390565b60005b8381101561332b578181015183820152602001613313565b83811115611ae15750506000910152565b60028104600182168061335057607f821691505b6020821081141561337157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561338b5761338b6133a6565b5060010190565b6000826133a1576133a16133bc565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461162257600080fd5b6001600160e01b03198116811461162257600080fdfea264697066735822122073b5bceeff9f071cde0383a976b84feca2d19358b8792daa421687905ca312d564736f6c63430008020033697066733a2f2f516d55644552647078736752416947567739563135795551324c764e4d31486238643158516876754633645445692f0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000750ef1d7a0b4ab1c97b7a623d7917cceb5ea779c0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31000000000000000000000000b7bee3e6b4124d48b726d782e5f1413806e66e790000000000000000000000007905c1685096738b228a5383ef531778602af64200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000001b58000000000000000000000000000000000000000000000000000000000000057800000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000000070000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31000000000000000000000000b7bee3e6b4124d48b726d782e5f1413806e66e790000000000000000000000007905c1685096738b228a5383ef531778602af642000000000000000000000000402905d2aa5d66515d51faf2dfa4e350634dd20a00000000000000000000000002c65175f7daf40be976e4fa54842b08149d8c6d000000000000000000000000bbea2edb1eb8dba31d69eaeea328b8a59c65da5800000000000000000000000047e2e4aa911a75006076986d09741a48f12c2526
Deployed Bytecode
0x6080604052600436106102e85760003560e01c806370a0823111610190578063cadf7c4d116100dc578063e985e9c511610095578063ee8cdd4e1161006f578063ee8cdd4e1461092c578063f2fde38b1461094c578063f42176481461096c578063ff1b65561461098c57610331565b8063e985e9c5146108ae578063ea7523ee146108f7578063ecad582a1461090c57610331565b8063cadf7c4d146107f8578063ce7c2ac214610818578063de8801e51461084e578063e33b7de314610864578063e63badaf14610879578063e8a3d4851461089957610331565b8063938e3d7b11610149578063a22cb46511610123578063a22cb46514610783578063b88d4fde146107a3578063c721f08d146107c3578063c87b56dd146107d857610331565b8063938e3d7b1461071857806395d89b41146107385780639852595c1461074d57610331565b806370a082311461067a578063715018a61461069a578063895fc788146106af5780638b83209b146106c45780638da5cb5b146106e45780638eaa3dd91461070257610331565b80633c8463a11161024f57806355f804b3116102085780636352211e116101e25780636352211e1461060f57806369d895751461062f5780636aaa571d14610644578063704b6c021461065a57610331565b806355f804b3146105605780635e5c06e214610580578063616d0dfd146105fa57610331565b80633c8463a1146104c757806342408a41146104dd57806342842e0e146104f05780634a6f1cc7146105105780634f5e0b28146105265780634f6ccce71461054057610331565b806319165587116102a15780631916558714610426578063229f3e291461044657806323b872dd1461045c5780632f745c591461047c57806333bc1c5c1461049c5780633a98ef39146104b257610331565b806301ffc9a71461033657806306fdde031461036b578063081812fc1461038d578063095ea7b3146103c557806310969523146103e757806318160ddd1461040757610331565b36610331577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561034257600080fd5b50610356610351366004613009565b6109a1565b60405190151581526020015b60405180910390f35b34801561037757600080fd5b506103806109ce565b6040516103629190613137565b34801561039957600080fd5b506103ad6103a8366004613087565b610a60565b6040516001600160a01b039091168152602001610362565b3480156103d157600080fd5b506103e56103e0366004612ebc565b610afa565b005b3480156103f357600080fd5b506103e5610402366004613041565b610c10565b34801561041357600080fd5b506009545b604051908152602001610362565b34801561043257600080fd5b506103e5610441366004612d7a565b610c67565b34801561045257600080fd5b50610418601a5481565b34801561046857600080fd5b506103e5610477366004612dce565b610e38565b34801561048857600080fd5b50610418610497366004612ebc565b610e69565b3480156104a857600080fd5b50610418601b5481565b3480156104be57600080fd5b50600b54610418565b3480156104d357600080fd5b5061041860125481565b6103e56104eb366004613087565b610eff565b3480156104fc57600080fd5b506103e561050b366004612dce565b6113cf565b34801561051c57600080fd5b5061041860105481565b34801561053257600080fd5b506016546103569060ff1681565b34801561054c57600080fd5b5061041861055b366004613087565b6113ea565b34801561056c57600080fd5b506103e561057b366004613041565b61148b565b34801561058c57600080fd5b506105ce61059b366004612d7a565b601c6020526000908152604090208054600182015460028301546003909301549192909160ff8082169161010090041685565b60408051958652602086019490945292840191909152151560608301521515608082015260a001610362565b34801561060657600080fd5b506103e56114db565b34801561061b57600080fd5b506103ad61062a366004613087565b611511565b34801561063b57600080fd5b506103e5611588565b34801561065057600080fd5b5061041860175481565b34801561066657600080fd5b506103e5610675366004612d7a565b611625565b34801561068657600080fd5b50610418610695366004612d7a565b611684565b3480156106a657600080fd5b506103e561170b565b3480156106bb57600080fd5b506103e5611741565b3480156106d057600080fd5b506103ad6106df366004613087565b611953565b3480156106f057600080fd5b506000546001600160a01b03166103ad565b34801561070e57600080fd5b5061041860115481565b34801561072457600080fd5b506103e5610733366004613041565b611991565b34801561074457600080fd5b506103806119ce565b34801561075957600080fd5b50610418610768366004612d7a565b6001600160a01b03166000908152600e602052604090205490565b34801561078f57600080fd5b506103e561079e366004612e8b565b6119dd565b3480156107af57600080fd5b506103e56107be366004612e0e565b611aaf565b3480156107cf57600080fd5b506103e5611ae7565b3480156107e457600080fd5b506103806107f3366004613087565b611b20565b34801561080457600080fd5b506103e5610813366004612ee7565b611bfb565b34801561082457600080fd5b50610418610833366004612d7a565b6001600160a01b03166000908152600d602052604090205490565b34801561085a57600080fd5b5061041860195481565b34801561087057600080fd5b50600c54610418565b34801561088557600080fd5b506103e5610894366004613087565b611d52565b3480156108a557600080fd5b50610380611d81565b3480156108ba57600080fd5b506103566108c9366004612d96565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561090357600080fd5b506103e5611d90565b34801561091857600080fd5b506103e5610927366004612f85565b611dcd565b34801561093857600080fd5b506103e5610947366004613087565b611ef7565b34801561095857600080fd5b506103e5610967366004612d7a565b611f26565b34801561097857600080fd5b506103e5610987366004612ee7565b611fbe565b34801561099857600080fd5b506103806120b6565b60006001600160e01b0319821663780e9d6360e01b14806109c657506109c682612144565b90505b919050565b6060600180546109dd9061333c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a099061333c565b8015610a565780601f10610a2b57610100808354040283529160200191610a56565b820191906000526020600020905b815481529060010190602001808311610a3957829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610ade5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b0582611511565b9050806001600160a01b0316836001600160a01b03161415610b735760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ad5565b336001600160a01b0382161480610b8f5750610b8f81336108c9565b610c015760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ad5565b610c0b8383612194565b505050565b6000546001600160a01b03163314610c3a5760405162461bcd60e51b8152600401610ad5906131d3565b60165462010000900460ff1615610c5057600080fd5b8051610c63906013906020840190612c89565b5050565b6001600160a01b0381166000908152600d6020526040902054610cdb5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610ad5565b6000600c5447610ceb91906132ae565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d909352908320549394509192610d2290856132da565b610d2c91906132c6565b610d3691906132f9565b905080610d995760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610ad5565b6001600160a01b0383166000908152600e6020526040902054610dbd9082906132ae565b6001600160a01b0384166000908152600e6020526040902055600c54610de49082906132ae565b600c55610df18382612202565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e42338261231b565b610e5e5760405162461bcd60e51b8152600401610ad590613208565b610c0b838383612412565b6000610e7483611684565b8210610ed65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ad5565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b601654610100900460ff1615610f485760405162461bcd60e51b815260206004820152600e60248201526d4e6f2072652d656e7472616e637960901b6044820152606401610ad5565b6016805461ff001916610100179081905560ff16610fa85760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610ad5565b60195442101561100c5760405162461bcd60e51b815260206004820152602960248201527f596f75206d75737420776169742074696c6c2070726573616c6520626567696e6044820152681cc81d1bc81b5a5b9d60ba1b6064820152608401610ad5565b60175460105461101c91906132f9565b8161102660095490565b61103091906132ae565b11156110915760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f662042656e46547360b01b6064820152608401610ad5565b8060115461109f91906132da565b3410156110ee5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610ad5565b333b156111345760405162461bcd60e51b815260206004820152601460248201527310dbdb9d1c9858dd1cc818d85b89dd081b5a5b9d60621b6044820152606401610ad5565b601b5442106111bf57601254336000908152601c602052604090206002015461115d90836132ae565b11156111ba5760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f752063616e206f6e6c79206d696e742031303020706572206044820152651dd85b1b195d60d21b6064820152608401610ad5565b611323565b601a5442106112295760405162461bcd60e51b815260206004820152603060248201527f50726573616c652068617320656e6465642c20706c656173652077616974207560448201526f6e74696c205075626c69632053616c6560801b6064820152608401610ad5565b601954421061132357336000908152601c602052604090206003015460ff166112ba5760405162461bcd60e51b815260206004820152603960248201527f536f7272792c20796f75206e65656420746f206265206f6e2057686974656c6960448201527f737420746f206d696e7420647572696e672050726573616c65000000000000006064820152608401610ad5565b336000908152601c6020526040902060018101546002909101546112de90836132ae565b11156113235760405162461bcd60e51b815260206004820152601460248201527315d85b1b195d08131a5b5a5d0814995858da195960621b6044820152606401610ad5565b60005b818110156113c0576018805490600061133e83613377565b9091555050336000908152601c6020526040812060020180549161136183613377565b9190505550611372336018546125bd565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561139d60095490565b60405190815260200160405180910390a2806113b881613377565b915050611326565b50506016805461ff0019169055565b610c0b83838360405180602001604052806000815250611aaf565b60006113f560095490565b82106114585760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ad5565b6009828154811061147957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b336000908152601c602052604090206003015460ff6101009091041615156001146114c85760405162461bcd60e51b8152600401610ad59061319c565b8051610c63906014906020840190612c89565b6000546001600160a01b031633146115055760405162461bcd60e51b8152600401610ad5906131d3565b6016805460ff19169055565b6000818152600360205260408120546001600160a01b0316806109c65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ad5565b336000908152601c602052604090206003015460ff6101009091041615156001146115c55760405162461bcd60e51b8152600401610ad59061319c565b60005b601d5481101561162257611610601d82815481106115f657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316610c67565b8061161a81613377565b9150506115c8565b50565b6000546001600160a01b0316331461164f5760405162461bcd60e51b8152600401610ad5906131d3565b6001600160a01b03166000908152601c60205260409020600301805461ff001981166101009182900460ff1615909102179055565b60006001600160a01b0382166116ef5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ad5565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146117355760405162461bcd60e51b8152600401610ad5906131d3565b61173f60006125d7565b565b336000908152601c602052604090206003015460ff61010090910416151560011461177e5760405162461bcd60e51b8152600401610ad59061319c565b336000908152601c60205260409020805460039091015460ff6101009091041615156001146117ef5760405162461bcd60e51b815260206004820152601d60248201527f536f7272792c204f6e6c7920616e2061646d696e2063616e206d696e740000006044820152606401610ad5565b6000811161183f5760405162461bcd60e51b815260206004820152601c60248201527f4e65656420746f206861766520726573657276656420737570706c79000000006044820152606401610ad5565b6010548161184c60095490565b61185691906132ae565b11156118a45760405162461bcd60e51b815260206004820152601f60248201527f596f7520776f756c642065786365656420746865206d696e74206c696d6974006044820152606401610ad5565b336000908152601c6020526040812080548392906118c39084906132f9565b90915550506017546118d69082906132f9565b60175560005b81811015610c6357601880549060006118f483613377565b9190505550611905336018546125bd565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688561193060095490565b60405190815260200160405180910390a28061194b81613377565b9150506118dc565b6000600f828154811061197657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000546001600160a01b031633146119bb5760405162461bcd60e51b8152600401610ad5906131d3565b8051610c63906015906020840190612c89565b6060600280546109dd9061333c565b6001600160a01b038216331415611a365760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ad5565b3360008181526006602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611aa3911515815260200190565b60405180910390a35050565b611ab9338361231b565b611ad55760405162461bcd60e51b8152600401610ad590613208565b611ae184848484612627565b50505050565b6000546001600160a01b03163314611b115760405162461bcd60e51b8152600401610ad5906131d3565b6016805460ff19166001179055565b6000818152600360205260409020546060906001600160a01b0316611b9f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ad5565b6000611ba961265a565b90506000815111611bc95760405180602001604052806000815250611bf4565b80611bd384612669565b604051602001611be49291906130cb565b6040516020818303038152906040525b9392505050565b336000908152601c602052604090206003015460ff610100909104161515600114611c385760405162461bcd60e51b8152600401610ad59061319c565b601754601054611c4891906132f9565b8151600954611c5791906132ae565b1115611cb05760405162461bcd60e51b815260206004820152602260248201527f596f7520776f756c6420657863656564207468652061697264726f70206c696d6044820152611a5d60f21b6064820152608401610ad5565b60005b8151811015610c635760188054906000611ccc83613377565b9190505550611d04828281518110611cf457634e487b7160e01b600052603260045260246000fd5b60200260200101516018546125bd565b337f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885611d2f60095490565b60405190815260200160405180910390a280611d4a81613377565b915050611cb3565b6000546001600160a01b03163314611d7c5760405162461bcd60e51b8152600401610ad5906131d3565b601055565b6060601580546109dd9061333c565b6000546001600160a01b03163314611dba5760405162461bcd60e51b8152600401610ad5906131d3565b6016805462ff0000191662010000179055565b336000908152601c602052604090206003015460ff610100909104161515600114611e0a5760405162461bcd60e51b8152600401610ad59061319c565b8051600314611e675760405162461bcd60e51b8152602060048201526024808201527f596f75206e65656420746f2075706461746520616c6c2074696d6573206174206044820152636f6e636560e01b6064820152608401610ad5565b80600081518110611e8857634e487b7160e01b600052603260045260246000fd5b602002602001015160198190555080600181518110611eb757634e487b7160e01b600052603260045260246000fd5b6020026020010151601a8190555080600281518110611ee657634e487b7160e01b600052603260045260246000fd5b6020026020010151601b8190555050565b6000546001600160a01b03163314611f215760405162461bcd60e51b8152600401610ad5906131d3565b601155565b6000546001600160a01b03163314611f505760405162461bcd60e51b8152600401610ad5906131d3565b6001600160a01b038116611fb55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ad5565b611622816125d7565b6000546001600160a01b03163314611fe85760405162461bcd60e51b8152600401610ad5906131d3565b60005b8151811015610c63576064601c600084848151811061201a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600101819055506001601c600084848151811061206f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020600301805460ff1916911515919091179055806120ae81613377565b915050611feb565b601380546120c39061333c565b80601f01602080910402602001604051908101604052809291908181526020018280546120ef9061333c565b801561213c5780601f106121115761010080835404028352916020019161213c565b820191906000526020600020905b81548152906001019060200180831161211f57829003601f168201915b505050505081565b60006001600160e01b031982166380ac58cd60e01b148061217557506001600160e01b03198216635b5e139f60e01b145b806109c657506301ffc9a760e01b6001600160e01b03198316146109c6565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121c982611511565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156122525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ad5565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461229f576040519150601f19603f3d011682016040523d82523d6000602084013e6122a4565b606091505b5050905080610c0b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ad5565b6000818152600360205260408120546001600160a01b03166123945760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ad5565b600061239f83611511565b9050806001600160a01b0316846001600160a01b031614806123da5750836001600160a01b03166123cf84610a60565b6001600160a01b0316145b8061240a57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661242582611511565b6001600160a01b03161461248d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ad5565b6001600160a01b0382166124ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ad5565b6124fa838383612784565b612505600082612194565b6001600160a01b038316600090815260046020526040812080546001929061252e9084906132f9565b90915550506001600160a01b038216600090815260046020526040812080546001929061255c9084906132ae565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610c63828260405180602001604052806000815250612841565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612632848484612412565b61263e84848484612874565b611ae15760405162461bcd60e51b8152600401610ad59061314a565b6060601480546109dd9061333c565b60608161268e57506040805180820190915260018152600360fc1b60208201526109c9565b8160005b81156126b857806126a281613377565b91506126b19050600a836132c6565b9150612692565b60008167ffffffffffffffff8111156126e157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561270b576020820181803683370190505b5090505b841561240a576127206001836132f9565b915061272d600a86613392565b6127389060306132ae565b60f81b81838151811061275b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061277d600a866132c6565b945061270f565b6001600160a01b0383166127df576127da81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612802565b816001600160a01b0316836001600160a01b031614612802576128028382612981565b6001600160a01b03821661281e5761281981612a1e565b610c0b565b826001600160a01b0316826001600160a01b031614610c0b57610c0b8282612af7565b61284b8383612b3b565b6128586000848484612874565b610c0b5760405162461bcd60e51b8152600401610ad59061314a565b60006001600160a01b0384163b1561297657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906128b89033908990889088906004016130fa565b602060405180830381600087803b1580156128d257600080fd5b505af1925050508015612902575060408051601f3d908101601f191682019092526128ff91810190613025565b60015b61295c573d808015612930576040519150601f19603f3d011682016040523d82523d6000602084013e612935565b606091505b5080516129545760405162461bcd60e51b8152600401610ad59061314a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061240a565b506001949350505050565b6000600161298e84611684565b61299891906132f9565b6000838152600860205260409020549091508082146129eb576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612a30906001906132f9565b6000838152600a602052604081205460098054939450909284908110612a6657634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110612a9557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612adb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b0283611684565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216612b915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ad5565b6000818152600360205260409020546001600160a01b031615612bf65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ad5565b612c0260008383612784565b6001600160a01b0382166000908152600460205260408120805460019290612c2b9084906132ae565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612c959061333c565b90600052602060002090601f016020900481019282612cb75760008555612cfd565b82601f10612cd057805160ff1916838001178555612cfd565b82800160010185558215612cfd579182015b82811115612cfd578251825591602001919060010190612ce2565b50612d09929150612d0d565b5090565b5b80821115612d095760008155600101612d0e565b600067ffffffffffffffff831115612d3c57612d3c6133d2565b612d4f601f8401601f1916602001613259565b9050828152838383011115612d6357600080fd5b828260208301376000602084830101529392505050565b600060208284031215612d8b578081fd5b8135611bf4816133e8565b60008060408385031215612da8578081fd5b8235612db3816133e8565b91506020830135612dc3816133e8565b809150509250929050565b600080600060608486031215612de2578081fd5b8335612ded816133e8565b92506020840135612dfd816133e8565b929592945050506040919091013590565b60008060008060808587031215612e23578081fd5b8435612e2e816133e8565b93506020850135612e3e816133e8565b925060408501359150606085013567ffffffffffffffff811115612e60578182fd5b8501601f81018713612e70578182fd5b612e7f87823560208401612d22565b91505092959194509250565b60008060408385031215612e9d578182fd5b8235612ea8816133e8565b915060208301358015158114612dc3578182fd5b60008060408385031215612ece578182fd5b8235612ed9816133e8565b946020939093013593505050565b60006020808385031215612ef9578182fd5b823567ffffffffffffffff811115612f0f578283fd5b8301601f81018513612f1f578283fd5b8035612f32612f2d8261328a565b613259565b8181528381019083850185840285018601891015612f4e578687fd5b8694505b83851015612f79578035612f65816133e8565b835260019490940193918501918501612f52565b50979650505050505050565b60006020808385031215612f97578182fd5b823567ffffffffffffffff811115612fad578283fd5b8301601f81018513612fbd578283fd5b8035612fcb612f2d8261328a565b8181528381019083850185840285018601891015612fe7578687fd5b8694505b83851015612f79578035835260019490940193918501918501612feb565b60006020828403121561301a578081fd5b8135611bf4816133fd565b600060208284031215613036578081fd5b8151611bf4816133fd565b600060208284031215613052578081fd5b813567ffffffffffffffff811115613068578182fd5b8201601f81018413613078578182fd5b61240a84823560208401612d22565b600060208284031215613098578081fd5b5035919050565b600081518084526130b7816020860160208601613310565b601f01601f19169290920160200192915050565b600083516130dd818460208801613310565b8351908301906130f1818360208801613310565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061312d9083018461309f565b9695505050505050565b600060208252611bf4602083018461309f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601e908201527f536f7272792c20596f75206e65656420746f20626520616e2061646d696e0000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613282576132826133d2565b604052919050565b600067ffffffffffffffff8211156132a4576132a46133d2565b5060209081020190565b600082198211156132c1576132c16133a6565b500190565b6000826132d5576132d56133bc565b500490565b60008160001904831182151516156132f4576132f46133a6565b500290565b60008282101561330b5761330b6133a6565b500390565b60005b8381101561332b578181015183820152602001613313565b83811115611ae15750506000910152565b60028104600182168061335057607f821691505b6020821081141561337157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561338b5761338b6133a6565b5060010190565b6000826133a1576133a16133bc565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461162257600080fd5b6001600160e01b03198116811461162257600080fdfea264697066735822122073b5bceeff9f071cde0383a976b84feca2d19358b8792daa421687905ca312d564736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000750ef1d7a0b4ab1c97b7a623d7917cceb5ea779c0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31000000000000000000000000b7bee3e6b4124d48b726d782e5f1413806e66e790000000000000000000000007905c1685096738b228a5383ef531778602af64200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000001b58000000000000000000000000000000000000000000000000000000000000057800000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000000000000000070000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31000000000000000000000000b7bee3e6b4124d48b726d782e5f1413806e66e790000000000000000000000007905c1685096738b228a5383ef531778602af642000000000000000000000000402905d2aa5d66515d51faf2dfa4e350634dd20a00000000000000000000000002c65175f7daf40be976e4fa54842b08149d8c6d000000000000000000000000bbea2edb1eb8dba31d69eaeea328b8a59c65da5800000000000000000000000047e2e4aa911a75006076986d09741a48f12c2526
-----Decoded View---------------
Arg [0] : team (address[]): 0x750EF1D7a0b4Ab1c97B7A623D7917CcEb5ea779C,0x3D05c62857DD644225f125e863a25724C40B4a31,0xB7bee3e6b4124d48b726d782E5F1413806e66E79,0x7905c1685096738b228a5383eF531778602Af642
Arg [1] : team_shares (uint256[]): 7000,1400,1000,600
Arg [2] : admins (address[]): 0x3D05c62857DD644225f125e863a25724C40B4a31,0xB7bee3e6b4124d48b726d782E5F1413806e66E79,0x7905c1685096738b228a5383eF531778602Af642,0x402905d2AA5D66515D51FAF2dFA4e350634dd20A,0x02C65175F7DAF40bE976E4Fa54842b08149d8C6d,0xbbEa2Edb1eB8dbA31d69eAeEa328B8A59c65DA58,0x47E2e4AA911A75006076986D09741a48F12c2526
-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 000000000000000000000000750ef1d7a0b4ab1c97b7a623d7917cceb5ea779c
Arg [5] : 0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31
Arg [6] : 000000000000000000000000b7bee3e6b4124d48b726d782e5f1413806e66e79
Arg [7] : 0000000000000000000000007905c1685096738b228a5383ef531778602af642
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 0000000000000000000000000000000000000000000000000000000000001b58
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000578
Arg [11] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [14] : 0000000000000000000000003d05c62857dd644225f125e863a25724c40b4a31
Arg [15] : 000000000000000000000000b7bee3e6b4124d48b726d782e5f1413806e66e79
Arg [16] : 0000000000000000000000007905c1685096738b228a5383ef531778602af642
Arg [17] : 000000000000000000000000402905d2aa5d66515d51faf2dfa4e350634dd20a
Arg [18] : 00000000000000000000000002c65175f7daf40be976e4fa54842b08149d8c6d
Arg [19] : 000000000000000000000000bbea2edb1eb8dba31d69eaeea328b8a59c65da58
Arg [20] : 00000000000000000000000047e2e4aa911a75006076986d09741a48f12c2526
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $3,060.6 | 0.3 | $918.18 |
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.