Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 10630874 | 1369 days ago | 0 ETH | ||||
| 10630802 | 1369 days ago | 0 ETH | ||||
| 10619493 | 1370 days ago | 0 ETH | ||||
| 10619055 | 1370 days ago | 0 ETH | ||||
| 10618930 | 1370 days ago | 0 ETH | ||||
| 10618105 | 1370 days ago | 0 ETH | ||||
| 10617954 | 1370 days ago | 0 ETH | ||||
| 10617786 | 1370 days ago | 0 ETH | ||||
| 10617666 | 1370 days ago | 0 ETH | ||||
| 10617607 | 1370 days ago | 0 ETH | ||||
| 10617410 | 1370 days ago | 0 ETH | ||||
| 10617349 | 1370 days ago | 0 ETH | ||||
| 10616778 | 1370 days ago | 0 ETH | ||||
| 10616595 | 1370 days ago | 0 ETH | ||||
| 10616480 | 1370 days ago | 0 ETH | ||||
| 10616237 | 1370 days ago | 0 ETH | ||||
| 10616139 | 1370 days ago | 0 ETH | ||||
| 10616083 | 1370 days ago | 0 ETH | ||||
| 10616072 | 1370 days ago | 0 ETH | ||||
| 10615596 | 1370 days ago | 0 ETH | ||||
| 10615574 | 1370 days ago | 0 ETH | ||||
| 10615430 | 1370 days ago | 0 ETH | ||||
| 10615006 | 1370 days ago | 0 ETH | ||||
| 10614955 | 1370 days ago | 0 ETH | ||||
| 10614405 | 1370 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ToadzMinter
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol";
import "./ToadzMinterSettings.sol";
contract ToadzMinter is Initializable, ToadzMinterSettings {
using EnumerableSetUpgradeable for EnumerableSetUpgradeable.UintSet;
function initialize() external initializer {
ToadzMinterSettings.__ToadzMinterSettings_init();
}
function setMerkleRoot(bytes32 _merkleRoot) external onlyAdminOrOwner {
merkleRoot = _merkleRoot;
}
function setMaxBatchSize(uint8 _maxBatchSize) external onlyAdminOrOwner {
maxBatchSize = _maxBatchSize;
}
function startMintingToadz(
bytes32[] calldata _proof,
uint256 _amount)
external
whenNotPaused
onlyEOA
{
require(
!addressToHasClaimed[msg.sender],
"ToadzMinter: Already claimed Toadz"
);
bytes32 _leaf = keccak256(abi.encodePacked(msg.sender, _amount));
require(
MerkleProofUpgradeable.verify(_proof, merkleRoot, _leaf),
"ToadzMinter: Proof invalid"
);
addressToHasClaimed[msg.sender] = true;
// Get badge for whitelist
badgez.mintIfNeeded(msg.sender, whitelistBadgeId);
uint256 _amountLeft = _amount;
while(_amountLeft > 0) {
uint256 _batchSize = _amountLeft > maxBatchSize ? maxBatchSize : _amountLeft;
_amountLeft -= _batchSize;
uint256 _requestId = randomizer.requestRandomNumber();
addressToRequestIds[msg.sender].add(_requestId);
requestIdToBatchSize[_requestId] = _batchSize;
emit MintingToadzStarted(msg.sender, _batchSize, _requestId);
}
}
function finishMintingToadz()
external
whenNotPaused
onlyEOA
{
uint256[] memory _requestIds = addressToRequestIds[msg.sender].values();
require(_requestIds.length > 0, "ToadzMinter: Nothing to finish");
uint8 _processedRequests = 0;
for(uint256 i = 0; i < _requestIds.length; i++) {
if(!randomizer.isRandomReady(_requestIds[i])) {
continue;
}
addressToRequestIds[msg.sender].remove(_requestIds[i]);
_processedRequests++;
uint256 _randomNumber = randomizer.revealRandomNumber(_requestIds[i]);
uint256 _batchSize = requestIdToBatchSize[_requestIds[i]];
uint256 _regularAxes = 0;
uint256 _goldenAxes = 0;
for(uint256 j = 0; j < _batchSize; j++) {
// Need to ensure each mint is using a different random number. Otherwise, they would all be the same
if(j != 0) {
_randomNumber = uint256(keccak256(abi.encode(_randomNumber, j)));
}
_regularAxes += axesPerToad;
uint256 _goldenAxeResult = _randomNumber % 256;
if(_goldenAxeResult < chanceGoldenAxePerToad) {
_goldenAxes++;
_regularAxes--;
}
// Only use 8 bits for the random calculation.
ToadTraits memory _traits = _pickTraits(_randomNumber >> 8);
toadz.mint(
msg.sender,
_traits
);
}
if(_regularAxes > 0) {
itemz.mint(msg.sender, regularAxeId, _regularAxes);
}
if(_goldenAxes > 0) {
itemz.mint(msg.sender, goldenAxeId, _goldenAxes);
}
emit MintingToadzFinished(msg.sender, _batchSize, _requestIds[i]);
// Only mint the first batch found.
break;
}
// Revert here. We do not want users to waste gas on a request if nothing is ready.
require(_processedRequests > 0, "ToadzMinter: No requests are ready");
}
function _pickTraits(uint256 _randomNumber) private view returns(ToadTraits memory _toadTraits) {
_toadTraits.rarity = ToadRarity.COMMON;
_toadTraits.background = ToadBackground(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.BACKGROUND],
traitTypeToAliases[ToadTraitConstants.BACKGROUND]));
_randomNumber >>= 16;
_toadTraits.mushroom = ToadMushroom(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.MUSHROOM],
traitTypeToAliases[ToadTraitConstants.MUSHROOM]));
_randomNumber >>= 16;
_toadTraits.skin = ToadSkin(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.SKIN],
traitTypeToAliases[ToadTraitConstants.SKIN]));
_randomNumber >>= 16;
_toadTraits.clothes = ToadClothes(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.CLOTHES],
traitTypeToAliases[ToadTraitConstants.CLOTHES]));
_randomNumber >>= 16;
_toadTraits.mouth = ToadMouth(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.MOUTH],
traitTypeToAliases[ToadTraitConstants.MOUTH]));
_randomNumber >>= 16;
_toadTraits.eyes = ToadEyes(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.EYES],
traitTypeToAliases[ToadTraitConstants.EYES]));
_randomNumber >>= 16;
_toadTraits.item = ToadItem(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.ITEM],
traitTypeToAliases[ToadTraitConstants.ITEM]));
_randomNumber >>= 16;
_toadTraits.head = ToadHead(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.HEAD],
traitTypeToAliases[ToadTraitConstants.HEAD]));
_randomNumber >>= 16;
_toadTraits.accessory = ToadAccessory(
_pickTrait(uint16(_randomNumber & 0xFFFF),
traitTypeToRarities[ToadTraitConstants.ACCESSORY],
traitTypeToAliases[ToadTraitConstants.ACCESSORY]));
}
function _pickTrait(
uint16 _randomNumber,
uint8[] storage _rarities,
uint8[] storage _aliases)
private
view
returns(uint8)
{
uint8 _trait = uint8(_randomNumber) % uint8(_rarities.length);
// If a selected random trait probability is selected, return that trait
if(_randomNumber >> 8 < _rarities[_trait]) {
return _trait;
} else {
return _aliases[_trait];
}
}
function requestIdsForUser(address _user) external view returns(uint256[] memory) {
return addressToRequestIds[_user].values();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
// If the contract is initializing we ignore whether _initialized is set in order to support multiple
// inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
// contract may have been reentered.
require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} modifier, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
function _isConstructor() private view returns (bool) {
return !AddressUpgradeable.isContract(address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
function __Pausable_init() internal onlyInitializing {
__Pausable_init_unchained();
}
function __Pausable_init_unchained() internal onlyInitializing {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165Upgradeable.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155Upgradeable is IERC165Upgradeable {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
external
view
returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165Upgradeable.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721Upgradeable is IERC165Upgradeable {
/**
* @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
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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 Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProofUpgradeable {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = _efficientHash(computedHash, proofElement);
} else {
// Hash(current element of the proof + current computed hash)
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165Upgradeable {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSetUpgradeable {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
return _values(set._inner);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
assembly {
result := store
}
return result;
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./UtilitiesUpgradeable.sol";
// Do not add state to this contract.
//
contract AdminableUpgradeable is UtilitiesUpgradeable {
mapping(address => bool) private admins;
function __Adminable_init() internal initializer {
UtilitiesUpgradeable.__Utilities__init();
}
function addAdmin(address _address) external onlyOwner {
admins[_address] = true;
}
function addAdmins(address[] calldata _addresses) external onlyOwner {
for(uint256 i = 0; i < _addresses.length; i++) {
admins[_addresses[i]] = true;
}
}
function removeAdmin(address _address) external onlyOwner {
admins[_address] = false;
}
function removeAdmins(address[] calldata _addresses) external onlyOwner {
for(uint256 i = 0; i < _addresses.length; i++) {
admins[_addresses[i]] = false;
}
}
function setPause(bool _shouldPause) external onlyAdminOrOwner {
if(_shouldPause) {
_pause();
} else {
_unpause();
}
}
function isAdmin(address _address) public view returns(bool) {
return admins[_address];
}
modifier onlyAdmin() {
require(admins[msg.sender], "Not admin");
_;
}
modifier onlyAdminOrOwner() {
require(admins[msg.sender] || isOwner(), "Not admin or owner");
_;
}
uint256[50] private __gap;
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
contract UtilitiesUpgradeable is Initializable, OwnableUpgradeable, PausableUpgradeable {
function __Utilities__init() internal initializer {
OwnableUpgradeable.__Ownable_init();
PausableUpgradeable.__Pausable_init();
_pause();
}
modifier nonZeroAddress(address _address) {
require(address(0) != _address, "0 address");
_;
}
modifier nonZeroLength(uint[] memory _array) {
require(_array.length > 0, "Empty array");
_;
}
modifier lengthsAreEqual(uint[] memory _array1, uint[] memory _array2) {
require(_array1.length == _array2.length, "Unequal lengths");
_;
}
modifier onlyEOA() {
/* solhint-disable avoid-tx-origin */
require(msg.sender == tx.origin, "No contracts");
_;
}
function isOwner() internal view returns(bool) {
return owner() == msg.sender;
}
function compareStrings(string memory a, string memory b) internal pure returns (bool) {
return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IRandomizer {
// Sets the number of blocks that must pass between increment the commitId and seeding the random
// Admin
function setNumBlocksAfterIncrement(uint8 _numBlocksAfterIncrement) external;
// Increments the commit id.
// Admin
function incrementCommitId() external;
// Adding the random number needs to be done AFTER incrementing the commit id on a separate transaction. If
// these are done together, there is a potential vulnerability to front load a commit when the bad actor
// sees the value of the random number.
function addRandomForCommit(uint256 _seed) external;
// Returns a request ID for a random number. This is unique.
function requestRandomNumber() external returns(uint256);
// Returns the random number for the given request ID. Will revert
// if the random is not ready.
function revealRandomNumber(uint256 _requestId) external view returns(uint256);
// Returns if the random number for the given request ID is ready or not. Call
// before calling revealRandomNumber.
function isRandomReady(uint256 _requestId) external view returns(bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol";
interface IBadgez is IERC1155Upgradeable {
function mintIfNeeded(address _to, uint256 _id) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol";
interface IItemz is IERC1155Upgradeable {
function mint(address _to, uint256 _id, uint256 _amount) external;
function mintBatch(address _to, uint256[] calldata _ids, uint256[] calldata _amounts) external;
function burn(address _from, uint256 _id, uint256 _amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library ToadTraitConstants {
string constant public SVG_HEADER = '<svg id="toad" width="100%" height="100%" version="1.1" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">';
string constant public SVG_FOOTER = '<style>#toad{shape-rendering: crispedges; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges; image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor;}</style></svg>';
string constant public RARITY = "Rarity";
string constant public BACKGROUND = "Background";
string constant public MUSHROOM = "Mushroom";
string constant public SKIN = "Skin";
string constant public CLOTHES = "Clothes";
string constant public MOUTH = "Mouth";
string constant public EYES = "Eyes";
string constant public ITEM = "Item";
string constant public HEAD = "Head";
string constant public ACCESSORY = "Accessory";
string constant public RARITY_COMMON = "Common";
string constant public RARITY_1_OF_1 = "1 of 1";
}
enum ToadRarity {
COMMON,
ONE_OF_ONE
}
enum ToadBackground {
GREY,
PURPLE,
GREEN,
BROWN,
YELLOW,
PINK,
SKY_BLUE,
MINT,
ORANGE,
RED,
SKY,
SUNRISE,
SPRING,
WATERMELON,
SPACE,
CLOUDS,
SWAMP,
GOLDEN,
DARK_PURPLE
}
enum ToadMushroom {
COMMON,
ORANGE,
BROWN,
RED_SPOTS,
GREEN,
BLUE,
YELLOW,
GREY,
PINK,
ICE,
GOLDEN,
RADIOACTIVE,
CRYSTAL,
ROBOT
}
enum ToadSkin {
OG_GREEN,
BROWN,
DARK_GREEN,
ORANGE,
GREY,
BLUE,
PURPLE,
PINK,
RAINBOW,
GOLDEN,
RADIOACTIVE,
CRYSTAL,
SKELETON,
ROBOT,
SKIN
}
enum ToadClothes {
NONE,
TURTLENECK_BLUE,
TURTLENECK_GREY,
T_SHIRT_ROCKET_GREY,
T_SHIRT_ROCKET_BLUE,
T_SHIRT_FLY_GREY,
T_SHIRT_FLY_BLUE,
T_SHIRT_FLY_RED,
T_SHIRT_HEART_BLACK,
T_SHIRT_HEART_PINK,
T_SHIRT_RAINBOW,
T_SHIRT_SKULL,
HOODIE_GREY,
HOODIE_PINK,
HOODIE_LIGHT_BLUE,
HOODIE_DARK_BLUE,
HOODIE_WHITE,
T_SHIRT_CAMO,
HOODIE_CAMO,
CONVICT,
ASTRONAUT,
FARMER,
RED_OVERALLS,
GREEN_OVERALLS,
ZOMBIE,
SAMURI,
SAIAN,
HAWAIIAN_SHIRT,
SUIT_BLACK,
SUIT_RED,
ROCKSTAR,
PIRATE,
ASTRONAUT_SUIT,
CHICKEN_COSTUME,
DINOSAUR_COSTUME,
SMOL,
STRAW_HAT,
TRACKSUIT
}
enum ToadMouth {
SMILE,
O,
GASP,
SMALL_GASP,
LAUGH,
LAUGH_TEETH,
SMILE_BIG,
TONGUE,
RAINBOW_VOM,
PIPE,
CIGARETTE,
BLUNT,
MEH,
GUM,
FIRE,
NONE
}
enum ToadEyes {
RIGHT_UP,
RIGHT_DOWN,
TIRED,
EYE_ROLL,
WIDE_UP,
CONTENTFUL,
LASERS,
CROAKED,
SUSPICIOUS,
WIDE_DOWN,
BORED,
STONED,
HEARTS,
WINK,
VR_HEADSET,
GLASSES_HEART,
GLASSES_3D,
GLASSES_SUN,
EYE_PATCH_LEFT,
EYE_PATCH_RIGHT,
EYE_PATCH_BORED_LEFT,
EYE_PATCH_BORED_RIGHT,
EXCITED,
NONE
}
enum ToadItem {
NONE,
LIGHTSABER_RED,
LIGHTSABER_GREEN,
LIGHTSABER_BLUE,
SWORD,
WAND_LEFT,
WAND_RIGHT,
FIRE_SWORD,
ICE_SWORD,
AXE_LEFT,
AXE_RIGHT
}
enum ToadHead {
NONE,
CAP_BROWN,
CAP_BLACK,
CAP_RED,
CAP_PINK,
CAP_MUSHROOM,
STRAW_HAT,
SAILOR_HAT,
PIRATE_HAT,
WIZARD_PURPLE_HAT,
WIZARD_BROWN_HAT,
CAP_KIDS,
TOP_HAT,
PARTY_HAT,
CROWN,
BRAIN,
MOHAWK_PURPLE,
MOHAWK_GREEN,
MOHAWK_PINK,
AFRO,
BACK_CAP_WHITE,
BACK_CAP_RED,
BACK_CAP_BLUE,
BANDANA_PURPLE,
BANDANA_RED,
BANDANA_BLUE,
BEANIE_GREY,
BEANIE_BLUE,
BEANIE_YELLOW,
HALO,
COOL_CAT_HEAD,
FIRE
}
enum ToadAccessory {
NONE,
FLIES,
GOLD_CHAIN,
NECKTIE_RED,
NECKTIE_BLUE,
NECKTIE_PINK
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "../libraries/ToadTraitConstants.sol";
import "../toadzmetadata/IToadzMetadata.sol";
interface IToadz is IERC721Upgradeable {
function mint(address _to, ToadTraits calldata _traits) external;
function adminSafeTransferFrom(address _from, address _to, uint256 _tokenId) external;
function burn(uint256 _tokenId) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../libraries/ToadTraitConstants.sol";
interface IToadzMetadata {
function tokenURI(uint256 _tokenId) external view returns(string memory);
function setMetadataForToad(uint256 _tokenId, ToadTraits calldata _traits) external;
}
// Immutable Traits.
// Do not change.
struct ToadTraits {
ToadRarity rarity;
ToadBackground background;
ToadMushroom mushroom;
ToadSkin skin;
ToadClothes clothes;
ToadMouth mouth;
ToadEyes eyes;
ToadItem item;
ToadHead head;
ToadAccessory accessory;
}
struct ToadTraitStrings {
string rarity;
string background;
string mushroom;
string skin;
string clothes;
string mouth;
string eyes;
string item;
string head;
string accessory;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IToadzMinter {
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./ToadzMinterState.sol";
abstract contract ToadzMinterContracts is Initializable, ToadzMinterState {
function __ToadzMinterContracts_init() internal initializer {
ToadzMinterState.__ToadzMinterState_init();
}
function setContracts(
address _toadzAddress,
address _randomizerAddress,
address _badgezAddress,
address _itemzAddress)
external onlyAdminOrOwner
{
toadz = IToadz(_toadzAddress);
randomizer = IRandomizer(_randomizerAddress);
badgez = IBadgez(_badgezAddress);
itemz = IItemz(_itemzAddress);
}
modifier contractsAreSet() {
require(areContractsSet(), "ToadzMinter: Contracts aren't set");
_;
}
function areContractsSet() public view returns(bool) {
return address(toadz) != address(0)
&& address(randomizer) != address(0)
&& address(badgez) != address(0)
&& address(itemz) != address(0);
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./ToadzMinterContracts.sol";
abstract contract ToadzMinterSettings is Initializable, ToadzMinterContracts {
function __ToadzMinterSettings_init() internal initializer {
ToadzMinterContracts.__ToadzMinterContracts_init();
}
function setRaritiesForTrait(
string calldata _traitType,
uint8[] calldata _rarities,
uint8[] calldata _aliases)
external
onlyAdminOrOwner
{
require(_rarities.length > 0, "ToadzMinter: 0 length for rarities");
require(_rarities.length == _aliases.length, "ToadzMinter: Rarity and alias lengths do not match");
delete traitTypeToRarities[_traitType];
delete traitTypeToAliases[_traitType];
// Must preserve order/index of rarities and aliases.
for(uint256 i = 0; i < _rarities.length; i++) {
traitTypeToRarities[_traitType].push(_rarities[i]);
traitTypeToAliases[_traitType].push(_aliases[i]);
}
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import "../libraries/ToadTraitConstants.sol";
import "./IToadzMinter.sol";
import "../toadz/IToadz.sol";
import "../badgez/IBadgez.sol";
import "../itemz/IItemz.sol";
import "../../shared/AdminableUpgradeable.sol";
import "../../shared/randomizer/IRandomizer.sol";
abstract contract ToadzMinterState is Initializable, IToadzMinter, AdminableUpgradeable {
event MintingToadzStarted(address indexed _owner, uint256 _batchSize, uint256 _requestId);
event MintingToadzFinished(address indexed _owner, uint256 _batchSize, uint256 _requestId);
IToadz public toadz;
IRandomizer public randomizer;
IBadgez public badgez;
IItemz public itemz;
mapping(address => bool) public addressToHasClaimed;
mapping(address => EnumerableSetUpgradeable.UintSet) internal addressToRequestIds;
mapping(uint256 => uint256) public requestIdToBatchSize;
// Rarities and aliases are used for the Walker's Alias algorithm.
mapping(string => uint8[]) public traitTypeToRarities;
mapping(string => uint8[]) public traitTypeToAliases;
bytes32 public merkleRoot;
uint8 public maxBatchSize;
uint256 public whitelistBadgeId;
uint256 public regularAxeId;
uint256 public goldenAxeId;
// Out of 256
uint256 public chanceGoldenAxePerToad;
uint8 public axesPerToad;
function __ToadzMinterState_init() internal initializer {
AdminableUpgradeable.__Adminable_init();
whitelistBadgeId = 1;
maxBatchSize = 20;
regularAxeId = 1;
goldenAxeId = 2;
chanceGoldenAxePerToad = 26;
axesPerToad = 1;
traitTypeToRarities[ToadTraitConstants.BACKGROUND] = [247, 239, 183, 165, 147, 15, 139, 7, 131, 255, 189, 189, 189, 189, 75, 113, 113, 0, 0];
traitTypeToAliases[ToadTraitConstants.BACKGROUND] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 1, 1, 2, 3, 4, 5, 7];
traitTypeToRarities[ToadTraitConstants.MUSHROOM] = [243, 203, 135, 159, 183, 207, 231, 255, 27, 27, 13, 13, 0, 0];
traitTypeToAliases[ToadTraitConstants.MUSHROOM] = [1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 1, 1, 2, 2];
traitTypeToRarities[ToadTraitConstants.SKIN] = [250, 67, 125, 183, 91, 255, 149, 149, 14, 14, 14, 0, 0, 0, 0];
traitTypeToAliases[ToadTraitConstants.SKIN] = [1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4];
traitTypeToRarities[ToadTraitConstants.CLOTHES] = [199, 153, 211, 165, 223, 177, 235, 189, 247, 153, 59, 221, 127, 33, 195, 101, 7, 131, 255, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 0, 0, 0, 0, 0, 0];
traitTypeToAliases[ToadTraitConstants.CLOTHES] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 0, 0, 1, 1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9, 10, 12, 13, 15, 16];
traitTypeToRarities[ToadTraitConstants.MOUTH] = [161, 159, 97, 201, 139, 243, 151, 255, 149, 149, 149, 149, 89, 89, 59];
traitTypeToAliases[ToadTraitConstants.MOUTH] = [1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 1, 2, 4, 6];
traitTypeToRarities[ToadTraitConstants.EYES] = [217, 175, 133, 215, 173, 255, 241, 241, 241, 241, 241, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131];
traitTypeToAliases[ToadTraitConstants.EYES] = [1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 4, 4, 5];
traitTypeToRarities[ToadTraitConstants.ITEM] = [255, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54];
traitTypeToAliases[ToadTraitConstants.ITEM] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
traitTypeToRarities[ToadTraitConstants.HEAD] = [223, 159, 159, 159, 63, 63, 159, 191, 223, 159, 159, 63, 159, 159, 159, 31, 159, 159, 159, 63, 95, 127, 159, 191, 223, 0, 31, 63, 95, 255, 0, 0];
traitTypeToAliases[ToadTraitConstants.HEAD] = [6, 0, 0, 0, 0, 0, 7, 8, 15, 0, 0, 0, 0, 0, 0, 19, 0, 6, 15, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 0, 15, 25];
traitTypeToRarities[ToadTraitConstants.ACCESSORY] = [255, 59, 11, 11, 11, 11];
traitTypeToAliases[ToadTraitConstants.ACCESSORY] = [0, 0, 0, 0, 0, 0];
}
}{
"evmVersion": "london",
"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[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_batchSize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_requestId","type":"uint256"}],"name":"MintingToadzFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_batchSize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_requestId","type":"uint256"}],"name":"MintingToadzStarted","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"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToHasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"areContractsSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"axesPerToad","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"badgez","outputs":[{"internalType":"contract IBadgez","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chanceGoldenAxePerToad","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishMintingToadz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"goldenAxeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itemz","outputs":[{"internalType":"contract IItemz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizer","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"regularAxeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requestIdToBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"requestIdsForUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toadzAddress","type":"address"},{"internalType":"address","name":"_randomizerAddress","type":"address"},{"internalType":"address","name":"_badgezAddress","type":"address"},{"internalType":"address","name":"_itemzAddress","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxBatchSize","type":"uint8"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_shouldPause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_traitType","type":"string"},{"internalType":"uint8[]","name":"_rarities","type":"uint8[]"},{"internalType":"uint8[]","name":"_aliases","type":"uint8[]"}],"name":"setRaritiesForTrait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"startMintingToadz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toadz","outputs":[{"internalType":"contract IToadz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitTypeToAliases","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitTypeToRarities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistBadgeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50613d69806100206000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80635c975abb1161011a5780639c54df64116100ad578063c99608611161007c578063c996086114610460578063d8f2582d14610473578063dc1e352d1461047c578063f10fb58414610489578063f2fde38b1461049c57600080fd5b80639c54df6414610407578063abeeb4071461041a578063bedb86fb1461043a578063bf989b6e1461044d57600080fd5b80638129fc1c116100e95780638129fc1c146103d35780638cdcc4b4146103db5780638da5cb5b146103e35780639581772e146103f457600080fd5b80635c975abb1461039a57806370480275146103a5578063715018a6146103b85780637cb64759146103c057600080fd5b80632eb4a7ab1161019d5780634ad7c50e1161016c5780634ad7c50e146103455780634e30bc951461034e578063584b135814610361578063593f1e0a146103745780635b5b61f61461038757600080fd5b80632eb4a7ab1461030057806332209ffa14610309578063377e11e0146103125780634807020f1461032557600080fd5b806322e979ee116101d957806322e979ee1461029657806324d7806c146102ad5780632913daa0146102d95780632999c62a146102f857600080fd5b8063059954631461020b5780630bdd03f1146102435780631785f53c1461026e57806321278b0c14610283575b600080fd5b61022e610219366004613572565b60ce6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b60ca54610256906001600160a01b031681565b6040516001600160a01b03909116815260200161023a565b61028161027c366004613572565b6104af565b005b6102816102913660046135d9565b610503565b61029f60d65481565b60405190815260200161023a565b61022e6102bb366004613572565b6001600160a01b031660009081526097602052604090205460ff1690565b60d4546102e69060ff1681565b60405160ff909116815260200161023a565b61028161077d565b61029f60d35481565b61029f60d85481565b61028161032036600461369e565b610cfc565b61029f6103333660046136e0565b60d06020526000908152604090205481565b61029f60d75481565b60cd54610256906001600160a01b031681565b60cc54610256906001600160a01b031681565b6102e661038236600461370f565b610d9d565b6102816103953660046137c4565b610def565b60655460ff1661022e565b6102816103b3366004613572565b610e42565b610281610e90565b6102816103ce3660046136e0565b610ec6565b610281610f08565b61022e610f82565b6033546001600160a01b0316610256565b6102816104023660046137e7565b610fda565b61028161041536600461369e565b61132b565b61042d610428366004613572565b6113c7565b60405161023a9190613833565b610281610448366004613885565b6113f1565b61028161045b3660046138a2565b611444565b6102e661046e36600461370f565b6114d1565b61029f60d55481565b60d9546102e69060ff1681565b60cb54610256906001600160a01b031681565b6102816104aa366004613572565b6114fc565b6033546001600160a01b031633146104e25760405162461bcd60e51b81526004016104d9906138f6565b60405180910390fd5b6001600160a01b03166000908152609760205260409020805460ff19169055565b3360009081526097602052604090205460ff16806105245750610524611594565b6105405760405162461bcd60e51b81526004016104d99061392b565b826105985760405162461bcd60e51b815260206004820152602260248201527f546f61647a4d696e7465723a2030206c656e67746820666f7220726172697469604482015261657360f01b60648201526084016104d9565b8281146106025760405162461bcd60e51b815260206004820152603260248201527f546f61647a4d696e7465723a2052617269747920616e6420616c696173206c656044820152710dccee8d0e640c8de40dcdee840dac2e8c6d60731b60648201526084016104d9565b60d18686604051610614929190613957565b9081526020016040518091039020600061062e9190613476565b60d28686604051610640929190613957565b9081526020016040518091039020600061065a9190613476565b60005b838110156107745760d18787604051610677929190613957565b908152602001604051809103902085858381811061069757610697613967565b90506020020160208101906106ac91906137c4565b81546001810183556000928352602092839020928104909201805460ff928316601f9094166101000a938402929093021990921617905560405160d2906106f69089908990613957565b908152602001604051809103902083838381811061071657610716613967565b905060200201602081019061072b91906137c4565b81546001810183556000928352602092839020928104909201805460ff928316601f9094166101000a93840292909302199092161790558061076c81613993565b91505061065d565b50505050505050565b60655460ff16156107a05760405162461bcd60e51b81526004016104d9906139ae565b3332146107de5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016104d9565b33600090815260cf602052604081206107f6906115b8565b905060008151116108495760405162461bcd60e51b815260206004820152601e60248201527f546f61647a4d696e7465723a204e6f7468696e6720746f2066696e697368000060448201526064016104d9565b6000805b8251811015610c995760cb5483516001600160a01b039091169063f03021079085908490811061087f5761087f613967565b60200260200101516040518263ffffffff1660e01b81526004016108a591815260200190565b60206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f591906139d8565b6108fe57610c87565b61093583828151811061091357610913613967565b60209081029190910181015133600090815260cf9092526040909120906115cc565b5081610940816139f5565b60cb548551919450600092506001600160a01b031690634ad30a759086908590811061096e5761096e613967565b60200260200101516040518263ffffffff1660e01b815260040161099491815260200190565b60206040518083038186803b1580156109ac57600080fd5b505afa1580156109c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e49190613a15565b9050600060d060008685815181106109fe576109fe613967565b6020026020010151815260200190815260200160002054905060008060005b83811015610b2c578015610a5b5760408051602081018790529081018290526060016040516020818303038152906040528051906020012060001c94505b60d954610a6b9060ff1684613a2e565b92506000610a7b61010087613a5c565b905060d854811015610aa35782610a9181613993565b9350508380610a9f90613a70565b9450505b6000610ab2600888901c6115d8565b60ca54604051636c55ee8560e01b81529192506001600160a01b031690636c55ee8590610ae59033908590600401613b41565b600060405180830381600087803b158015610aff57600080fd5b505af1158015610b13573d6000803e3d6000fd5b5050505050508080610b2490613993565b915050610a1d565b508115610ba35760cd5460d654604051630ab714fb60e11b81523360048201526024810191909152604481018490526001600160a01b039091169063156e29f690606401600060405180830381600087803b158015610b8a57600080fd5b505af1158015610b9e573d6000803e3d6000fd5b505050505b8015610c195760cd5460d754604051630ab714fb60e11b81523360048201526024810191909152604481018390526001600160a01b039091169063156e29f690606401600060405180830381600087803b158015610c0057600080fd5b505af1158015610c14573d6000803e3d6000fd5b505050505b336001600160a01b03167fd141ef8b9a8572b1f28611880ae7e369f68692a898eb5b209e7568f9477ed42284898881518110610c5757610c57613967565b6020026020010151604051610c76929190918252602082015260400190565b60405180910390a250505050610c99565b80610c9181613993565b91505061084d565b5060008160ff1611610cf85760405162461bcd60e51b815260206004820152602260248201527f546f61647a4d696e7465723a204e6f2072657175657374732061726520726561604482015261647960f01b60648201526084016104d9565b5050565b6033546001600160a01b03163314610d265760405162461bcd60e51b81526004016104d9906138f6565b60005b81811015610d9857600060976000858585818110610d4957610d49613967565b9050602002016020810190610d5e9190613572565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610d9081613993565b915050610d29565b505050565b815160208184018101805160d2825292820191850191909120919052805482908110610dc857600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b3360009081526097602052604090205460ff1680610e105750610e10611594565b610e2c5760405162461bcd60e51b81526004016104d99061392b565b60d4805460ff191660ff92909216919091179055565b6033546001600160a01b03163314610e6c5760405162461bcd60e51b81526004016104d9906138f6565b6001600160a01b03166000908152609760205260409020805460ff19166001179055565b6033546001600160a01b03163314610eba5760405162461bcd60e51b81526004016104d9906138f6565b610ec46000611cce565b565b3360009081526097602052604090205460ff1680610ee75750610ee7611594565b610f035760405162461bcd60e51b81526004016104d99061392b565b60d355565b600054610100900460ff16610f235760005460ff1615610f27565b303b155b610f435760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff16158015610f65576000805461ffff19166101011790555b610f6d611d20565b8015610f7f576000805461ff00191690555b50565b60ca546000906001600160a01b031615801590610fa9575060cb546001600160a01b031615155b8015610fbf575060cc546001600160a01b031615155b8015610fd5575060cd546001600160a01b031615155b905090565b60655460ff1615610ffd5760405162461bcd60e51b81526004016104d9906139ae565b33321461103b5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016104d9565b33600090815260ce602052604090205460ff16156110a65760405162461bcd60e51b815260206004820152602260248201527f546f61647a4d696e7465723a20416c726561647920636c61696d656420546f61604482015261323d60f11b60648201526084016104d9565b6040516bffffffffffffffffffffffff193360601b166020820152603481018290526000906054016040516020818303038152906040528051906020012090506111278484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d3549150849050611d85565b6111735760405162461bcd60e51b815260206004820152601a60248201527f546f61647a4d696e7465723a2050726f6f6620696e76616c696400000000000060448201526064016104d9565b33600081815260ce602052604090819020805460ff1916600117905560cc5460d5549151630ebe21d760e11b8152600481019390935260248301919091526001600160a01b031690631d7c43ae90604401600060405180830381600087803b1580156111de57600080fd5b505af11580156111f2573d6000803e3d6000fd5b5084925050505b80156113245760d45460009060ff168211611214578161121b565b60d45460ff165b90506112278183613c5e565b9150600060cb60009054906101000a90046001600160a01b03166001600160a01b0316638678a7b26040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b39190613a15565b33600090815260cf602052604090209091506112cf9082611d9b565b50600081815260d06020908152604091829020849055815184815290810183905233917f070226a98a3d61ef458571540f16c687de28ff61c6e7be28e8641dbd3b71b781910160405180910390a250506111f9565b5050505050565b6033546001600160a01b031633146113555760405162461bcd60e51b81526004016104d9906138f6565b60005b81811015610d985760016097600085858581811061137857611378613967565b905060200201602081019061138d9190613572565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806113bf81613993565b915050611358565b6001600160a01b038116600090815260cf602052604090206060906113eb906115b8565b92915050565b3360009081526097602052604090205460ff16806114125750611412611594565b61142e5760405162461bcd60e51b81526004016104d99061392b565b801561143c57610f7f611da7565b610f7f611e1c565b3360009081526097602052604090205460ff16806114655750611465611594565b6114815760405162461bcd60e51b81526004016104d99061392b565b60ca80546001600160a01b039586166001600160a01b03199182161790915560cb80549486169482169490941790935560cc80549285169284169290921790915560cd8054919093169116179055565b815160208184018101805160d1825292820191850191909120919052805482908110610dc857600080fd5b6033546001600160a01b031633146115265760405162461bcd60e51b81526004016104d9906138f6565b6001600160a01b03811661158b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d9565b610f7f81611cce565b6000336115a96033546001600160a01b031690565b6001600160a01b031614905090565b606060006115c583611e96565b9392505050565b60006115c58383611ef2565b61162e604080516101408101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b60008152604080518082018252600a815269109858dad9dc9bdd5b9960b21b602082015290516116bd9161ffff85169160d19161166a91613c75565b908152602001604051809103902060d26040518060400160405280600a815260200169109858dad9dc9bdd5b9960b21b8152506040516116aa9190613c75565b9081526020016040518091039020611fe5565b60ff1660128111156116d1576116d1613a87565b816020019060128111156116e7576116e7613a87565b908160128111156116fa576116fa613a87565b81525050601082901c915061177b8261ffff1660d1604051806040016040528060088152602001674d757368726f6f6d60c01b81525060405161173d9190613c75565b908152602001604051809103902060d2604051806040016040528060088152602001674d757368726f6f6d60c01b8152506040516116aa9190613c75565b60ff16600d81111561178f5761178f613a87565b8160400190600d8111156117a5576117a5613a87565b9081600d8111156117b8576117b8613a87565b81525050601082901c91506118318261ffff1660d16040518060400160405280600481526020016329b5b4b760e11b8152506040516117f79190613c75565b908152602001604051809103902060d26040518060400160405280600481526020016329b5b4b760e11b8152506040516116aa9190613c75565b60ff16600e81111561184557611845613a87565b8160600190600e81111561185b5761185b613a87565b9081600e81111561186e5761186e613a87565b81525050601082901c91506118ed8261ffff1660d160405180604001604052806007815260200166436c6f7468657360c81b8152506040516118b09190613c75565b908152602001604051809103902060d260405180604001604052806007815260200166436c6f7468657360c81b8152506040516116aa9190613c75565b60ff16602581111561190157611901613a87565b8160800190602581111561191757611917613a87565b9081602581111561192a5761192a613a87565b81525050601082901c91506119a58261ffff1660d16040518060400160405280600581526020016409adeeae8d60db1b81525060405161196a9190613c75565b908152602001604051809103902060d26040518060400160405280600581526020016409adeeae8d60db1b8152506040516116aa9190613c75565b60ff16600f8111156119b9576119b9613a87565b8160a00190600f8111156119cf576119cf613a87565b9081600f8111156119e2576119e2613a87565b81525050601082901c9150611a5b8261ffff1660d1604051806040016040528060048152602001634579657360e01b815250604051611a219190613c75565b908152602001604051809103902060d2604051806040016040528060048152602001634579657360e01b8152506040516116aa9190613c75565b60ff166017811115611a6f57611a6f613a87565b8160c001906017811115611a8557611a85613a87565b90816017811115611a9857611a98613a87565b81525050601082901c9150611b118261ffff1660d1604051806040016040528060048152602001634974656d60e01b815250604051611ad79190613c75565b908152602001604051809103902060d2604051806040016040528060048152602001634974656d60e01b8152506040516116aa9190613c75565b60ff16600a811115611b2557611b25613a87565b8160e00190600a811115611b3b57611b3b613a87565b9081600a811115611b4e57611b4e613a87565b81525050601082901c9150611bc78261ffff1660d1604051806040016040528060048152602001631219585960e21b815250604051611b8d9190613c75565b908152602001604051809103902060d2604051806040016040528060048152602001631219585960e21b8152506040516116aa9190613c75565b60ff16601f811115611bdb57611bdb613a87565b816101000190601f811115611bf257611bf2613a87565b9081601f811115611c0557611c05613a87565b81525050601082901c9150611c888261ffff1660d1604051806040016040528060098152602001684163636573736f727960b81b815250604051611c499190613c75565b908152602001604051809103902060d2604051806040016040528060098152602001684163636573736f727960b81b8152506040516116aa9190613c75565b60ff166005811115611c9c57611c9c613a87565b8161012001906005811115611cb357611cb3613a87565b90816005811115611cc657611cc6613a87565b905250919050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611d3b5760005460ff1615611d3f565b303b155b611d5b5760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff16158015611d7d576000805461ffff19166101011790555b610f6d612088565b600082611d9285846120ed565b14949350505050565b60006115c58383612159565b60655460ff1615611dca5760405162461bcd60e51b81526004016104d9906139ae565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611dff3390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16611e655760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104d9565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611dff565b606081600001805480602002602001604051908101604052809291908181526020018280548015611ee657602002820191906000526020600020905b815481526020019060010190808311611ed2575b50505050509050919050565b60008181526001830160205260408120548015611fdb576000611f16600183613c5e565b8554909150600090611f2a90600190613c5e565b9050818114611f8f576000866000018281548110611f4a57611f4a613967565b9060005260206000200154905080876000018481548110611f6d57611f6d613967565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611fa057611fa0613cb0565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506113eb565b60009150506113eb565b81546000908190611ff69086613cc6565b9050838160ff168154811061200d5761200d613967565b60009182526020918290209181049091015460ff601f9092166101000a90048116600887901c90911610156120435790506115c5565b828160ff168154811061205857612058613967565b90600052602060002090602091828204019190069054906101000a900460ff169150506115c5565b509392505050565b600054610100900460ff166120a35760005460ff16156120a7565b303b155b6120c35760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff161580156120e5576000805461ffff19166101011790555b610f6d6121a8565b600081815b845181101561208057600085828151811061210f5761210f613967565b602002602001015190508083116121355760008381526020829052604090209250612146565b600081815260208490526040902092505b508061215181613993565b9150506120f2565b60008181526001830160205260408120546121a0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556113eb565b5060006113eb565b600054610100900460ff166121c35760005460ff16156121c7565b303b155b6121e35760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff16158015612205576000805461ffff19166101011790555b61220d6132e0565b600160d581905560d4805460ff1990811660141790915560d6829055600260d755601a60d85560d980549091169091179055604080516102608101825260f7815260ef60208083019190915260b78284015260a5606083015260936080830152600f60a0830152608b60c0830152600760e0830152608361010083015260ff61012083015260bd6101408301819052610160830181905261018083018190526101a0830152604b6101c083015260716101e083018190526102008301526000610220830181905261024083015282518084018452600a815269109858dad9dc9bdd5b9960b21b918101919091529151909160d19161230b9190613c75565b90815260405190819003602001902061232591601361349b565b5060408051610260810182526001808252600260208084018290526003848601819052600460608601819052600560808701819052600660a0880152600760c08801819052600860e0890152600961010089015260006101208901819052610140890181905261016089015261018088018790526101a08801969096526101c08701949094526101e086019190915261020085015261022084019190915261024083019190915282518084018452600a815269109858dad9dc9bdd5b9960b21b918101919091529151909160d2916123fd9190613c75565b90815260405190819003602001902061241791601361349b565b50604080516101c08101825260f3815260cb602080830191909152608782840152609f606083015260b7608083015260cf60a083015260e760c083015260ff60e0830152601b6101008301819052610120830152600d6101408301819052610160830152600061018083018190526101a08301528251808401845260088152674d757368726f6f6d60c01b918101919091529151909160d1916124ba9190613c75565b9081526040519081900360200190206124d491600e61349b565b50604080516101c0810182526001808252600260208084018290526003848601526004606085015260056080850152600660a0850152600760c0850152600060e085018190526101008501819052610120850152610140840183905261016084019290925261018083018190526101a08301528251808401845260088152674d757368726f6f6d60c01b918101919091529151909160d2916125769190613c75565b90815260405190819003602001902061259091600e61349b565b50604080516101e08101825260fa81526043602080830191909152607d8284015260b76060830152605b608083015260ff60a0830152609560c0830181905260e0830152600e610100830181905261012083018190526101408301526000610160830181905261018083018190526101a083018190526101c083015282518084018452600481526329b5b4b760e11b918101919091529151909160d1916126379190613c75565b90815260405190819003602001902061265191600f61349b565b50604080516101e081018252600180825260026020808401829052600384860181905260046060860181905260056080870152600060a0870181905260c0870181905260e08701819052610100870181905261012087015261014086018590526101608601949094526101808501929092526101a08401919091526101c08301829052835180850185529182526329b5b4b760e11b908201529151909160d2916126fb9190613c75565b90815260405190819003602001902061271591600f61349b565b50604080516104c08101825260c781526099602080830182905260d38385015260a5606084015260df608084015260b160a084015260eb60c084015260bd60e084015260f7610100840152610120830191909152603b61014083015260dd610160830152607f61018083015260216101a083015260c36101c083015260656101e083015260076102008301819052608361022084015260ff6102408401526097610260840181905261028084018190526102a084018190526102c084018190526102e08401819052610300840181905261032084018190526103408401819052610360840181905261038084018190526103a084018190526103c084018190526103e08401526000610400840181905261042084018190526104408401819052610460840181905261048084018190526104a08401528351808501855290815266436c6f7468657360c81b918101919091529151909160d1916128789190613c75565b90815260405190819003602001902061289291602661349b565b50604051806104c00160405280600160ff168152602001600260ff168152602001600360ff168152602001600460ff168152602001600560ff168152602001600660ff168152602001600760ff168152602001600860ff168152602001600960ff168152602001600a60ff168152602001600b60ff168152602001600c60ff168152602001600d60ff168152602001600e60ff168152602001600f60ff168152602001601060ff168152602001601160ff168152602001601260ff168152602001600060ff168152602001600060ff168152602001600160ff168152602001600160ff168152602001600260ff168152602001600360ff168152602001600360ff168152602001600460ff168152602001600560ff168152602001600560ff168152602001600660ff168152602001600760ff168152602001600760ff168152602001600860ff168152602001600960ff168152602001600a60ff168152602001600c60ff168152602001600d60ff168152602001600f60ff168152602001601060ff1681525060d260405180604001604052806007815260200166436c6f7468657360c81b815250604051612a489190613c75565b908152604051908190036020019020612a6291602661349b565b50604080516101e08101825260a18152609f60208083019190915260618284015260c96060830152608b608083015260f360a0830152609760c083015260ff60e08301526095610100830181905261012083018190526101408301819052610160830152605961018083018190526101a0830152603b6101c083015282518084018452600581526409adeeae8d60db1b918101919091529151909160d191612b0a9190613c75565b908152604051908190036020019020612b2491600f61349b565b50604080516101e081018252600180825260026020808401829052600384860152600460608501819052600560808601819052600660a08701819052600760c0880152600060e08801819052610100880181905261012088018190526101408801526101608701959095526101808601939093526101a08501526101c0840192909252835180850185529081526409adeeae8d60db1b918101919091529151909160d291612bd29190613c75565b908152604051908190036020019020612bec91600f61349b565b50604080516102c08101825260d9815260af60208083019190915260858284015260d7606083015260ad608083015260ff60a083015260f160c0830181905260e08301819052610100830181905261012083018190526101408301526083610160830181905261018083018190526101a083018190526101c083018190526101e08301819052610200830181905261022083018190526102408301819052610260830181905261028083018190526102a08301528251808401845260048152634579657360e01b918101919091529151909160d191612ccb9190613c75565b908152604051908190036020019020612ce591601661349b565b50604080516102c0810182526001808252600260208084018290526003848601819052600460608601819052600560808701819052600060a0880181905260c0880181905260e08801819052610100880181905261012088018190526101408801819052610160880181905261018088018190526101a08801526101c087018690526101e08701959095526102008601849052610220860193909352610240850152610260840182905261028084018290526102a084019290925283518085018552908152634579657360e01b918101919091529151909160d291612dca9190613c75565b908152604051908190036020019020612de491601661349b565b50604080516101608101825260ff815260366020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e08301829052610100830182905261012083018290526101408301919091528251808401845260048152634974656d60e01b918101919091529151909160d191612e6b9190613c75565b908152604051908190036020019020612e8591600b61349b565b50604080516101608101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e08301829052610100830182905261012083018290526101408301919091528251808401845260048152634974656d60e01b918101919091529151909160d291612f0b9190613c75565b908152604051908190036020019020612f2591600b61349b565b50604080516104008101825260df808252609f602080840182905283850182905260608401829052603f6080850181905260a0850181905260c0850183905260bf60e08601819052610100860185905261012086018490526101408601849052610160860182905261018086018490526101a086018490526101c08601849052601f6101e087018190526102008701859052610220870185905261024087018590526102608701839052605f6102808801819052607f6102a08901526102c08801959095526102e08701919091526103008601949094526000610320860181905261034086019490945261036085015261038084019190915260ff6103a08401526103c083018290526103e08301919091528251808401845260048152631219585960e21b918101919091529151909160d1916130629190613c75565b908152602001604051809103902090602061307e92919061349b565b506040805161040081018252600680825260006020808401829052838501829052606084018290526080840182905260a08401829052600760c0850152600860e0850152600f610100850181905261012085018390526101408501839052610160850183905261018085018390526101a085018390526101c0850183905260136101e0860152610200850183905261022085019390935261024084018390526014610260850152601561028085015260166102a085015260176102c085015260186102e085015260196103008501819052601a610320860152601b610340860152601c610360860152601d6103808601526103a08501929092526103c08401929092526103e08301528251808401845260048152631219585960e21b918101919091529151909160d2916131b29190613c75565b90815260200160405180910390209060206131ce92919061349b565b506040805160c08101825260ff8152603b602080830191909152600b828401819052606083018190526080830181905260a08301528251808401845260098152684163636573736f727960b81b918101919091529151909160d1916132339190613c75565b90815260405190819003602001902061324d91600661349b565b506040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a08301919091528251808401845260098152684163636573736f727960b81b918101919091529151909160d2916132b19190613c75565b9081526040519081900360200190206132cb91600661349b565b508015610f7f576000805461ff001916905550565b600054610100900460ff166132fb5760005460ff16156132ff565b303b155b61331b5760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff1615801561333d576000805461ffff19166101011790555b610f6d600054610100900460ff1661335b5760005460ff161561335f565b303b155b61337b5760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff1615801561339d576000805461ffff19166101011790555b6133a56133b5565b6133ad6133e4565b610f6d611da7565b600054610100900460ff166133dc5760405162461bcd60e51b81526004016104d990613ce8565b610ec4613413565b600054610100900460ff1661340b5760405162461bcd60e51b81526004016104d990613ce8565b610ec4613443565b600054610100900460ff1661343a5760405162461bcd60e51b81526004016104d990613ce8565b610ec433611cce565b600054610100900460ff1661346a5760405162461bcd60e51b81526004016104d990613ce8565b6065805460ff19169055565b50805460008255601f016020900490600052602060002090810190610f7f9190613541565b82805482825590600052602060002090601f016020900481019282156135315791602002820160005b8382111561350257835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026134c4565b801561352f5782816101000a81549060ff0219169055600101602081600001049283019260010302613502565b505b5061353d929150613541565b5090565b5b8082111561353d5760008155600101613542565b80356001600160a01b038116811461356d57600080fd5b919050565b60006020828403121561358457600080fd5b6115c582613556565b60008083601f84011261359f57600080fd5b50813567ffffffffffffffff8111156135b757600080fd5b6020830191508360208260051b85010111156135d257600080fd5b9250929050565b600080600080600080606087890312156135f257600080fd5b863567ffffffffffffffff8082111561360a57600080fd5b818901915089601f83011261361e57600080fd5b81358181111561362d57600080fd5b8a602082850101111561363f57600080fd5b60209283019850965090880135908082111561365a57600080fd5b6136668a838b0161358d565b9096509450604089013591508082111561367f57600080fd5b5061368c89828a0161358d565b979a9699509497509295939492505050565b600080602083850312156136b157600080fd5b823567ffffffffffffffff8111156136c857600080fd5b6136d48582860161358d565b90969095509350505050565b6000602082840312156136f257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561372257600080fd5b823567ffffffffffffffff8082111561373a57600080fd5b818501915085601f83011261374e57600080fd5b813581811115613760576137606136f9565b604051601f8201601f19908116603f01168101908382118183101715613788576137886136f9565b816040528281528860208487010111156137a157600080fd5b826020860160208301376000602093820184015298969091013596505050505050565b6000602082840312156137d657600080fd5b813560ff811681146115c557600080fd5b6000806000604084860312156137fc57600080fd5b833567ffffffffffffffff81111561381357600080fd5b61381f8682870161358d565b909790965060209590950135949350505050565b6020808252825182820181905260009190848201906040850190845b8181101561386b5783518352928401929184019160010161384f565b50909695505050505050565b8015158114610f7f57600080fd5b60006020828403121561389757600080fd5b81356115c581613877565b600080600080608085870312156138b857600080fd5b6138c185613556565b93506138cf60208601613556565b92506138dd60408601613556565b91506138eb60608601613556565b905092959194509250565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601290820152712737ba1030b236b4b71037b91037bbb732b960711b604082015260600190565b8183823760009101908152919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156139a7576139a761397d565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000602082840312156139ea57600080fd5b81516115c581613877565b600060ff821660ff811415613a0c57613a0c61397d565b60010192915050565b600060208284031215613a2757600080fd5b5051919050565b60008219821115613a4157613a4161397d565b500190565b634e487b7160e01b600052601260045260246000fd5b600082613a6b57613a6b613a46565b500690565b600081613a7f57613a7f61397d565b506000190190565b634e487b7160e01b600052602160045260246000fd5b60028110613aad57613aad613a87565b9052565b60138110613aad57613aad613a87565b600e8110613aad57613aad613a87565b600f8110613aad57613aad613a87565b60268110613aad57613aad613a87565b60108110613aad57613aad613a87565b60188110613aad57613aad613a87565b600b8110613aad57613aad613a87565b60208110613aad57613aad613a87565b60068110613aad57613aad613a87565b6001600160a01b03831681528151610160820190613b63906020840190613a9d565b6020830151613b756040840182613ab1565b506040830151613b886060840182613ac1565b506060830151613b9b6080840182613ad1565b506080830151613bae60a0840182613ae1565b5060a0830151613bc160c0840182613af1565b5060c0830151613bd460e0840182613b01565b5060e0830151610100613be981850183613b11565b8401519050610120613bfd84820183613b21565b8401519050612080610140840182613b31565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600082821015613c7057613c7061397d565b500390565b6000825160005b81811015613c965760208186018101518583015201613c7c565b81811115613ca5576000828501525b509190910192915050565b634e487b7160e01b600052603160045260246000fd5b600060ff831680613cd957613cd9613a46565b8060ff84160691505092915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212204275c224f66b865a04531fde19c3bb73c57466430560f66ea9d787f0a84efc2064736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c80635c975abb1161011a5780639c54df64116100ad578063c99608611161007c578063c996086114610460578063d8f2582d14610473578063dc1e352d1461047c578063f10fb58414610489578063f2fde38b1461049c57600080fd5b80639c54df6414610407578063abeeb4071461041a578063bedb86fb1461043a578063bf989b6e1461044d57600080fd5b80638129fc1c116100e95780638129fc1c146103d35780638cdcc4b4146103db5780638da5cb5b146103e35780639581772e146103f457600080fd5b80635c975abb1461039a57806370480275146103a5578063715018a6146103b85780637cb64759146103c057600080fd5b80632eb4a7ab1161019d5780634ad7c50e1161016c5780634ad7c50e146103455780634e30bc951461034e578063584b135814610361578063593f1e0a146103745780635b5b61f61461038757600080fd5b80632eb4a7ab1461030057806332209ffa14610309578063377e11e0146103125780634807020f1461032557600080fd5b806322e979ee116101d957806322e979ee1461029657806324d7806c146102ad5780632913daa0146102d95780632999c62a146102f857600080fd5b8063059954631461020b5780630bdd03f1146102435780631785f53c1461026e57806321278b0c14610283575b600080fd5b61022e610219366004613572565b60ce6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b60ca54610256906001600160a01b031681565b6040516001600160a01b03909116815260200161023a565b61028161027c366004613572565b6104af565b005b6102816102913660046135d9565b610503565b61029f60d65481565b60405190815260200161023a565b61022e6102bb366004613572565b6001600160a01b031660009081526097602052604090205460ff1690565b60d4546102e69060ff1681565b60405160ff909116815260200161023a565b61028161077d565b61029f60d35481565b61029f60d85481565b61028161032036600461369e565b610cfc565b61029f6103333660046136e0565b60d06020526000908152604090205481565b61029f60d75481565b60cd54610256906001600160a01b031681565b60cc54610256906001600160a01b031681565b6102e661038236600461370f565b610d9d565b6102816103953660046137c4565b610def565b60655460ff1661022e565b6102816103b3366004613572565b610e42565b610281610e90565b6102816103ce3660046136e0565b610ec6565b610281610f08565b61022e610f82565b6033546001600160a01b0316610256565b6102816104023660046137e7565b610fda565b61028161041536600461369e565b61132b565b61042d610428366004613572565b6113c7565b60405161023a9190613833565b610281610448366004613885565b6113f1565b61028161045b3660046138a2565b611444565b6102e661046e36600461370f565b6114d1565b61029f60d55481565b60d9546102e69060ff1681565b60cb54610256906001600160a01b031681565b6102816104aa366004613572565b6114fc565b6033546001600160a01b031633146104e25760405162461bcd60e51b81526004016104d9906138f6565b60405180910390fd5b6001600160a01b03166000908152609760205260409020805460ff19169055565b3360009081526097602052604090205460ff16806105245750610524611594565b6105405760405162461bcd60e51b81526004016104d99061392b565b826105985760405162461bcd60e51b815260206004820152602260248201527f546f61647a4d696e7465723a2030206c656e67746820666f7220726172697469604482015261657360f01b60648201526084016104d9565b8281146106025760405162461bcd60e51b815260206004820152603260248201527f546f61647a4d696e7465723a2052617269747920616e6420616c696173206c656044820152710dccee8d0e640c8de40dcdee840dac2e8c6d60731b60648201526084016104d9565b60d18686604051610614929190613957565b9081526020016040518091039020600061062e9190613476565b60d28686604051610640929190613957565b9081526020016040518091039020600061065a9190613476565b60005b838110156107745760d18787604051610677929190613957565b908152602001604051809103902085858381811061069757610697613967565b90506020020160208101906106ac91906137c4565b81546001810183556000928352602092839020928104909201805460ff928316601f9094166101000a938402929093021990921617905560405160d2906106f69089908990613957565b908152602001604051809103902083838381811061071657610716613967565b905060200201602081019061072b91906137c4565b81546001810183556000928352602092839020928104909201805460ff928316601f9094166101000a93840292909302199092161790558061076c81613993565b91505061065d565b50505050505050565b60655460ff16156107a05760405162461bcd60e51b81526004016104d9906139ae565b3332146107de5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016104d9565b33600090815260cf602052604081206107f6906115b8565b905060008151116108495760405162461bcd60e51b815260206004820152601e60248201527f546f61647a4d696e7465723a204e6f7468696e6720746f2066696e697368000060448201526064016104d9565b6000805b8251811015610c995760cb5483516001600160a01b039091169063f03021079085908490811061087f5761087f613967565b60200260200101516040518263ffffffff1660e01b81526004016108a591815260200190565b60206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f591906139d8565b6108fe57610c87565b61093583828151811061091357610913613967565b60209081029190910181015133600090815260cf9092526040909120906115cc565b5081610940816139f5565b60cb548551919450600092506001600160a01b031690634ad30a759086908590811061096e5761096e613967565b60200260200101516040518263ffffffff1660e01b815260040161099491815260200190565b60206040518083038186803b1580156109ac57600080fd5b505afa1580156109c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e49190613a15565b9050600060d060008685815181106109fe576109fe613967565b6020026020010151815260200190815260200160002054905060008060005b83811015610b2c578015610a5b5760408051602081018790529081018290526060016040516020818303038152906040528051906020012060001c94505b60d954610a6b9060ff1684613a2e565b92506000610a7b61010087613a5c565b905060d854811015610aa35782610a9181613993565b9350508380610a9f90613a70565b9450505b6000610ab2600888901c6115d8565b60ca54604051636c55ee8560e01b81529192506001600160a01b031690636c55ee8590610ae59033908590600401613b41565b600060405180830381600087803b158015610aff57600080fd5b505af1158015610b13573d6000803e3d6000fd5b5050505050508080610b2490613993565b915050610a1d565b508115610ba35760cd5460d654604051630ab714fb60e11b81523360048201526024810191909152604481018490526001600160a01b039091169063156e29f690606401600060405180830381600087803b158015610b8a57600080fd5b505af1158015610b9e573d6000803e3d6000fd5b505050505b8015610c195760cd5460d754604051630ab714fb60e11b81523360048201526024810191909152604481018390526001600160a01b039091169063156e29f690606401600060405180830381600087803b158015610c0057600080fd5b505af1158015610c14573d6000803e3d6000fd5b505050505b336001600160a01b03167fd141ef8b9a8572b1f28611880ae7e369f68692a898eb5b209e7568f9477ed42284898881518110610c5757610c57613967565b6020026020010151604051610c76929190918252602082015260400190565b60405180910390a250505050610c99565b80610c9181613993565b91505061084d565b5060008160ff1611610cf85760405162461bcd60e51b815260206004820152602260248201527f546f61647a4d696e7465723a204e6f2072657175657374732061726520726561604482015261647960f01b60648201526084016104d9565b5050565b6033546001600160a01b03163314610d265760405162461bcd60e51b81526004016104d9906138f6565b60005b81811015610d9857600060976000858585818110610d4957610d49613967565b9050602002016020810190610d5e9190613572565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610d9081613993565b915050610d29565b505050565b815160208184018101805160d2825292820191850191909120919052805482908110610dc857600080fd5b9060005260206000209060209182820401919006915091509054906101000a900460ff1681565b3360009081526097602052604090205460ff1680610e105750610e10611594565b610e2c5760405162461bcd60e51b81526004016104d99061392b565b60d4805460ff191660ff92909216919091179055565b6033546001600160a01b03163314610e6c5760405162461bcd60e51b81526004016104d9906138f6565b6001600160a01b03166000908152609760205260409020805460ff19166001179055565b6033546001600160a01b03163314610eba5760405162461bcd60e51b81526004016104d9906138f6565b610ec46000611cce565b565b3360009081526097602052604090205460ff1680610ee75750610ee7611594565b610f035760405162461bcd60e51b81526004016104d99061392b565b60d355565b600054610100900460ff16610f235760005460ff1615610f27565b303b155b610f435760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff16158015610f65576000805461ffff19166101011790555b610f6d611d20565b8015610f7f576000805461ff00191690555b50565b60ca546000906001600160a01b031615801590610fa9575060cb546001600160a01b031615155b8015610fbf575060cc546001600160a01b031615155b8015610fd5575060cd546001600160a01b031615155b905090565b60655460ff1615610ffd5760405162461bcd60e51b81526004016104d9906139ae565b33321461103b5760405162461bcd60e51b815260206004820152600c60248201526b4e6f20636f6e74726163747360a01b60448201526064016104d9565b33600090815260ce602052604090205460ff16156110a65760405162461bcd60e51b815260206004820152602260248201527f546f61647a4d696e7465723a20416c726561647920636c61696d656420546f61604482015261323d60f11b60648201526084016104d9565b6040516bffffffffffffffffffffffff193360601b166020820152603481018290526000906054016040516020818303038152906040528051906020012090506111278484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d3549150849050611d85565b6111735760405162461bcd60e51b815260206004820152601a60248201527f546f61647a4d696e7465723a2050726f6f6620696e76616c696400000000000060448201526064016104d9565b33600081815260ce602052604090819020805460ff1916600117905560cc5460d5549151630ebe21d760e11b8152600481019390935260248301919091526001600160a01b031690631d7c43ae90604401600060405180830381600087803b1580156111de57600080fd5b505af11580156111f2573d6000803e3d6000fd5b5084925050505b80156113245760d45460009060ff168211611214578161121b565b60d45460ff165b90506112278183613c5e565b9150600060cb60009054906101000a90046001600160a01b03166001600160a01b0316638678a7b26040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b39190613a15565b33600090815260cf602052604090209091506112cf9082611d9b565b50600081815260d06020908152604091829020849055815184815290810183905233917f070226a98a3d61ef458571540f16c687de28ff61c6e7be28e8641dbd3b71b781910160405180910390a250506111f9565b5050505050565b6033546001600160a01b031633146113555760405162461bcd60e51b81526004016104d9906138f6565b60005b81811015610d985760016097600085858581811061137857611378613967565b905060200201602081019061138d9190613572565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806113bf81613993565b915050611358565b6001600160a01b038116600090815260cf602052604090206060906113eb906115b8565b92915050565b3360009081526097602052604090205460ff16806114125750611412611594565b61142e5760405162461bcd60e51b81526004016104d99061392b565b801561143c57610f7f611da7565b610f7f611e1c565b3360009081526097602052604090205460ff16806114655750611465611594565b6114815760405162461bcd60e51b81526004016104d99061392b565b60ca80546001600160a01b039586166001600160a01b03199182161790915560cb80549486169482169490941790935560cc80549285169284169290921790915560cd8054919093169116179055565b815160208184018101805160d1825292820191850191909120919052805482908110610dc857600080fd5b6033546001600160a01b031633146115265760405162461bcd60e51b81526004016104d9906138f6565b6001600160a01b03811661158b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d9565b610f7f81611cce565b6000336115a96033546001600160a01b031690565b6001600160a01b031614905090565b606060006115c583611e96565b9392505050565b60006115c58383611ef2565b61162e604080516101408101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b60008152604080518082018252600a815269109858dad9dc9bdd5b9960b21b602082015290516116bd9161ffff85169160d19161166a91613c75565b908152602001604051809103902060d26040518060400160405280600a815260200169109858dad9dc9bdd5b9960b21b8152506040516116aa9190613c75565b9081526020016040518091039020611fe5565b60ff1660128111156116d1576116d1613a87565b816020019060128111156116e7576116e7613a87565b908160128111156116fa576116fa613a87565b81525050601082901c915061177b8261ffff1660d1604051806040016040528060088152602001674d757368726f6f6d60c01b81525060405161173d9190613c75565b908152602001604051809103902060d2604051806040016040528060088152602001674d757368726f6f6d60c01b8152506040516116aa9190613c75565b60ff16600d81111561178f5761178f613a87565b8160400190600d8111156117a5576117a5613a87565b9081600d8111156117b8576117b8613a87565b81525050601082901c91506118318261ffff1660d16040518060400160405280600481526020016329b5b4b760e11b8152506040516117f79190613c75565b908152602001604051809103902060d26040518060400160405280600481526020016329b5b4b760e11b8152506040516116aa9190613c75565b60ff16600e81111561184557611845613a87565b8160600190600e81111561185b5761185b613a87565b9081600e81111561186e5761186e613a87565b81525050601082901c91506118ed8261ffff1660d160405180604001604052806007815260200166436c6f7468657360c81b8152506040516118b09190613c75565b908152602001604051809103902060d260405180604001604052806007815260200166436c6f7468657360c81b8152506040516116aa9190613c75565b60ff16602581111561190157611901613a87565b8160800190602581111561191757611917613a87565b9081602581111561192a5761192a613a87565b81525050601082901c91506119a58261ffff1660d16040518060400160405280600581526020016409adeeae8d60db1b81525060405161196a9190613c75565b908152602001604051809103902060d26040518060400160405280600581526020016409adeeae8d60db1b8152506040516116aa9190613c75565b60ff16600f8111156119b9576119b9613a87565b8160a00190600f8111156119cf576119cf613a87565b9081600f8111156119e2576119e2613a87565b81525050601082901c9150611a5b8261ffff1660d1604051806040016040528060048152602001634579657360e01b815250604051611a219190613c75565b908152602001604051809103902060d2604051806040016040528060048152602001634579657360e01b8152506040516116aa9190613c75565b60ff166017811115611a6f57611a6f613a87565b8160c001906017811115611a8557611a85613a87565b90816017811115611a9857611a98613a87565b81525050601082901c9150611b118261ffff1660d1604051806040016040528060048152602001634974656d60e01b815250604051611ad79190613c75565b908152602001604051809103902060d2604051806040016040528060048152602001634974656d60e01b8152506040516116aa9190613c75565b60ff16600a811115611b2557611b25613a87565b8160e00190600a811115611b3b57611b3b613a87565b9081600a811115611b4e57611b4e613a87565b81525050601082901c9150611bc78261ffff1660d1604051806040016040528060048152602001631219585960e21b815250604051611b8d9190613c75565b908152602001604051809103902060d2604051806040016040528060048152602001631219585960e21b8152506040516116aa9190613c75565b60ff16601f811115611bdb57611bdb613a87565b816101000190601f811115611bf257611bf2613a87565b9081601f811115611c0557611c05613a87565b81525050601082901c9150611c888261ffff1660d1604051806040016040528060098152602001684163636573736f727960b81b815250604051611c499190613c75565b908152602001604051809103902060d2604051806040016040528060098152602001684163636573736f727960b81b8152506040516116aa9190613c75565b60ff166005811115611c9c57611c9c613a87565b8161012001906005811115611cb357611cb3613a87565b90816005811115611cc657611cc6613a87565b905250919050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611d3b5760005460ff1615611d3f565b303b155b611d5b5760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff16158015611d7d576000805461ffff19166101011790555b610f6d612088565b600082611d9285846120ed565b14949350505050565b60006115c58383612159565b60655460ff1615611dca5760405162461bcd60e51b81526004016104d9906139ae565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611dff3390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16611e655760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104d9565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611dff565b606081600001805480602002602001604051908101604052809291908181526020018280548015611ee657602002820191906000526020600020905b815481526020019060010190808311611ed2575b50505050509050919050565b60008181526001830160205260408120548015611fdb576000611f16600183613c5e565b8554909150600090611f2a90600190613c5e565b9050818114611f8f576000866000018281548110611f4a57611f4a613967565b9060005260206000200154905080876000018481548110611f6d57611f6d613967565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611fa057611fa0613cb0565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506113eb565b60009150506113eb565b81546000908190611ff69086613cc6565b9050838160ff168154811061200d5761200d613967565b60009182526020918290209181049091015460ff601f9092166101000a90048116600887901c90911610156120435790506115c5565b828160ff168154811061205857612058613967565b90600052602060002090602091828204019190069054906101000a900460ff169150506115c5565b509392505050565b600054610100900460ff166120a35760005460ff16156120a7565b303b155b6120c35760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff161580156120e5576000805461ffff19166101011790555b610f6d6121a8565b600081815b845181101561208057600085828151811061210f5761210f613967565b602002602001015190508083116121355760008381526020829052604090209250612146565b600081815260208490526040902092505b508061215181613993565b9150506120f2565b60008181526001830160205260408120546121a0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556113eb565b5060006113eb565b600054610100900460ff166121c35760005460ff16156121c7565b303b155b6121e35760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff16158015612205576000805461ffff19166101011790555b61220d6132e0565b600160d581905560d4805460ff1990811660141790915560d6829055600260d755601a60d85560d980549091169091179055604080516102608101825260f7815260ef60208083019190915260b78284015260a5606083015260936080830152600f60a0830152608b60c0830152600760e0830152608361010083015260ff61012083015260bd6101408301819052610160830181905261018083018190526101a0830152604b6101c083015260716101e083018190526102008301526000610220830181905261024083015282518084018452600a815269109858dad9dc9bdd5b9960b21b918101919091529151909160d19161230b9190613c75565b90815260405190819003602001902061232591601361349b565b5060408051610260810182526001808252600260208084018290526003848601819052600460608601819052600560808701819052600660a0880152600760c08801819052600860e0890152600961010089015260006101208901819052610140890181905261016089015261018088018790526101a08801969096526101c08701949094526101e086019190915261020085015261022084019190915261024083019190915282518084018452600a815269109858dad9dc9bdd5b9960b21b918101919091529151909160d2916123fd9190613c75565b90815260405190819003602001902061241791601361349b565b50604080516101c08101825260f3815260cb602080830191909152608782840152609f606083015260b7608083015260cf60a083015260e760c083015260ff60e0830152601b6101008301819052610120830152600d6101408301819052610160830152600061018083018190526101a08301528251808401845260088152674d757368726f6f6d60c01b918101919091529151909160d1916124ba9190613c75565b9081526040519081900360200190206124d491600e61349b565b50604080516101c0810182526001808252600260208084018290526003848601526004606085015260056080850152600660a0850152600760c0850152600060e085018190526101008501819052610120850152610140840183905261016084019290925261018083018190526101a08301528251808401845260088152674d757368726f6f6d60c01b918101919091529151909160d2916125769190613c75565b90815260405190819003602001902061259091600e61349b565b50604080516101e08101825260fa81526043602080830191909152607d8284015260b76060830152605b608083015260ff60a0830152609560c0830181905260e0830152600e610100830181905261012083018190526101408301526000610160830181905261018083018190526101a083018190526101c083015282518084018452600481526329b5b4b760e11b918101919091529151909160d1916126379190613c75565b90815260405190819003602001902061265191600f61349b565b50604080516101e081018252600180825260026020808401829052600384860181905260046060860181905260056080870152600060a0870181905260c0870181905260e08701819052610100870181905261012087015261014086018590526101608601949094526101808501929092526101a08401919091526101c08301829052835180850185529182526329b5b4b760e11b908201529151909160d2916126fb9190613c75565b90815260405190819003602001902061271591600f61349b565b50604080516104c08101825260c781526099602080830182905260d38385015260a5606084015260df608084015260b160a084015260eb60c084015260bd60e084015260f7610100840152610120830191909152603b61014083015260dd610160830152607f61018083015260216101a083015260c36101c083015260656101e083015260076102008301819052608361022084015260ff6102408401526097610260840181905261028084018190526102a084018190526102c084018190526102e08401819052610300840181905261032084018190526103408401819052610360840181905261038084018190526103a084018190526103c084018190526103e08401526000610400840181905261042084018190526104408401819052610460840181905261048084018190526104a08401528351808501855290815266436c6f7468657360c81b918101919091529151909160d1916128789190613c75565b90815260405190819003602001902061289291602661349b565b50604051806104c00160405280600160ff168152602001600260ff168152602001600360ff168152602001600460ff168152602001600560ff168152602001600660ff168152602001600760ff168152602001600860ff168152602001600960ff168152602001600a60ff168152602001600b60ff168152602001600c60ff168152602001600d60ff168152602001600e60ff168152602001600f60ff168152602001601060ff168152602001601160ff168152602001601260ff168152602001600060ff168152602001600060ff168152602001600160ff168152602001600160ff168152602001600260ff168152602001600360ff168152602001600360ff168152602001600460ff168152602001600560ff168152602001600560ff168152602001600660ff168152602001600760ff168152602001600760ff168152602001600860ff168152602001600960ff168152602001600a60ff168152602001600c60ff168152602001600d60ff168152602001600f60ff168152602001601060ff1681525060d260405180604001604052806007815260200166436c6f7468657360c81b815250604051612a489190613c75565b908152604051908190036020019020612a6291602661349b565b50604080516101e08101825260a18152609f60208083019190915260618284015260c96060830152608b608083015260f360a0830152609760c083015260ff60e08301526095610100830181905261012083018190526101408301819052610160830152605961018083018190526101a0830152603b6101c083015282518084018452600581526409adeeae8d60db1b918101919091529151909160d191612b0a9190613c75565b908152604051908190036020019020612b2491600f61349b565b50604080516101e081018252600180825260026020808401829052600384860152600460608501819052600560808601819052600660a08701819052600760c0880152600060e08801819052610100880181905261012088018190526101408801526101608701959095526101808601939093526101a08501526101c0840192909252835180850185529081526409adeeae8d60db1b918101919091529151909160d291612bd29190613c75565b908152604051908190036020019020612bec91600f61349b565b50604080516102c08101825260d9815260af60208083019190915260858284015260d7606083015260ad608083015260ff60a083015260f160c0830181905260e08301819052610100830181905261012083018190526101408301526083610160830181905261018083018190526101a083018190526101c083018190526101e08301819052610200830181905261022083018190526102408301819052610260830181905261028083018190526102a08301528251808401845260048152634579657360e01b918101919091529151909160d191612ccb9190613c75565b908152604051908190036020019020612ce591601661349b565b50604080516102c0810182526001808252600260208084018290526003848601819052600460608601819052600560808701819052600060a0880181905260c0880181905260e08801819052610100880181905261012088018190526101408801819052610160880181905261018088018190526101a08801526101c087018690526101e08701959095526102008601849052610220860193909352610240850152610260840182905261028084018290526102a084019290925283518085018552908152634579657360e01b918101919091529151909160d291612dca9190613c75565b908152604051908190036020019020612de491601661349b565b50604080516101608101825260ff815260366020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e08301829052610100830182905261012083018290526101408301919091528251808401845260048152634974656d60e01b918101919091529151909160d191612e6b9190613c75565b908152604051908190036020019020612e8591600b61349b565b50604080516101608101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e08301829052610100830182905261012083018290526101408301919091528251808401845260048152634974656d60e01b918101919091529151909160d291612f0b9190613c75565b908152604051908190036020019020612f2591600b61349b565b50604080516104008101825260df808252609f602080840182905283850182905260608401829052603f6080850181905260a0850181905260c0850183905260bf60e08601819052610100860185905261012086018490526101408601849052610160860182905261018086018490526101a086018490526101c08601849052601f6101e087018190526102008701859052610220870185905261024087018590526102608701839052605f6102808801819052607f6102a08901526102c08801959095526102e08701919091526103008601949094526000610320860181905261034086019490945261036085015261038084019190915260ff6103a08401526103c083018290526103e08301919091528251808401845260048152631219585960e21b918101919091529151909160d1916130629190613c75565b908152602001604051809103902090602061307e92919061349b565b506040805161040081018252600680825260006020808401829052838501829052606084018290526080840182905260a08401829052600760c0850152600860e0850152600f610100850181905261012085018390526101408501839052610160850183905261018085018390526101a085018390526101c0850183905260136101e0860152610200850183905261022085019390935261024084018390526014610260850152601561028085015260166102a085015260176102c085015260186102e085015260196103008501819052601a610320860152601b610340860152601c610360860152601d6103808601526103a08501929092526103c08401929092526103e08301528251808401845260048152631219585960e21b918101919091529151909160d2916131b29190613c75565b90815260200160405180910390209060206131ce92919061349b565b506040805160c08101825260ff8152603b602080830191909152600b828401819052606083018190526080830181905260a08301528251808401845260098152684163636573736f727960b81b918101919091529151909160d1916132339190613c75565b90815260405190819003602001902061324d91600661349b565b506040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a08301919091528251808401845260098152684163636573736f727960b81b918101919091529151909160d2916132b19190613c75565b9081526040519081900360200190206132cb91600661349b565b508015610f7f576000805461ff001916905550565b600054610100900460ff166132fb5760005460ff16156132ff565b303b155b61331b5760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff1615801561333d576000805461ffff19166101011790555b610f6d600054610100900460ff1661335b5760005460ff161561335f565b303b155b61337b5760405162461bcd60e51b81526004016104d990613c10565b600054610100900460ff1615801561339d576000805461ffff19166101011790555b6133a56133b5565b6133ad6133e4565b610f6d611da7565b600054610100900460ff166133dc5760405162461bcd60e51b81526004016104d990613ce8565b610ec4613413565b600054610100900460ff1661340b5760405162461bcd60e51b81526004016104d990613ce8565b610ec4613443565b600054610100900460ff1661343a5760405162461bcd60e51b81526004016104d990613ce8565b610ec433611cce565b600054610100900460ff1661346a5760405162461bcd60e51b81526004016104d990613ce8565b6065805460ff19169055565b50805460008255601f016020900490600052602060002090810190610f7f9190613541565b82805482825590600052602060002090601f016020900481019282156135315791602002820160005b8382111561350257835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026134c4565b801561352f5782816101000a81549060ff0219169055600101602081600001049283019260010302613502565b505b5061353d929150613541565b5090565b5b8082111561353d5760008155600101613542565b80356001600160a01b038116811461356d57600080fd5b919050565b60006020828403121561358457600080fd5b6115c582613556565b60008083601f84011261359f57600080fd5b50813567ffffffffffffffff8111156135b757600080fd5b6020830191508360208260051b85010111156135d257600080fd5b9250929050565b600080600080600080606087890312156135f257600080fd5b863567ffffffffffffffff8082111561360a57600080fd5b818901915089601f83011261361e57600080fd5b81358181111561362d57600080fd5b8a602082850101111561363f57600080fd5b60209283019850965090880135908082111561365a57600080fd5b6136668a838b0161358d565b9096509450604089013591508082111561367f57600080fd5b5061368c89828a0161358d565b979a9699509497509295939492505050565b600080602083850312156136b157600080fd5b823567ffffffffffffffff8111156136c857600080fd5b6136d48582860161358d565b90969095509350505050565b6000602082840312156136f257600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561372257600080fd5b823567ffffffffffffffff8082111561373a57600080fd5b818501915085601f83011261374e57600080fd5b813581811115613760576137606136f9565b604051601f8201601f19908116603f01168101908382118183101715613788576137886136f9565b816040528281528860208487010111156137a157600080fd5b826020860160208301376000602093820184015298969091013596505050505050565b6000602082840312156137d657600080fd5b813560ff811681146115c557600080fd5b6000806000604084860312156137fc57600080fd5b833567ffffffffffffffff81111561381357600080fd5b61381f8682870161358d565b909790965060209590950135949350505050565b6020808252825182820181905260009190848201906040850190845b8181101561386b5783518352928401929184019160010161384f565b50909695505050505050565b8015158114610f7f57600080fd5b60006020828403121561389757600080fd5b81356115c581613877565b600080600080608085870312156138b857600080fd5b6138c185613556565b93506138cf60208601613556565b92506138dd60408601613556565b91506138eb60608601613556565b905092959194509250565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601290820152712737ba1030b236b4b71037b91037bbb732b960711b604082015260600190565b8183823760009101908152919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156139a7576139a761397d565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000602082840312156139ea57600080fd5b81516115c581613877565b600060ff821660ff811415613a0c57613a0c61397d565b60010192915050565b600060208284031215613a2757600080fd5b5051919050565b60008219821115613a4157613a4161397d565b500190565b634e487b7160e01b600052601260045260246000fd5b600082613a6b57613a6b613a46565b500690565b600081613a7f57613a7f61397d565b506000190190565b634e487b7160e01b600052602160045260246000fd5b60028110613aad57613aad613a87565b9052565b60138110613aad57613aad613a87565b600e8110613aad57613aad613a87565b600f8110613aad57613aad613a87565b60268110613aad57613aad613a87565b60108110613aad57613aad613a87565b60188110613aad57613aad613a87565b600b8110613aad57613aad613a87565b60208110613aad57613aad613a87565b60068110613aad57613aad613a87565b6001600160a01b03831681528151610160820190613b63906020840190613a9d565b6020830151613b756040840182613ab1565b506040830151613b886060840182613ac1565b506060830151613b9b6080840182613ad1565b506080830151613bae60a0840182613ae1565b5060a0830151613bc160c0840182613af1565b5060c0830151613bd460e0840182613b01565b5060e0830151610100613be981850183613b11565b8401519050610120613bfd84820183613b21565b8401519050612080610140840182613b31565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600082821015613c7057613c7061397d565b500390565b6000825160005b81811015613c965760208186018101518583015201613c7c565b81811115613ca5576000828501525b509190910192915050565b634e487b7160e01b600052603160045260246000fd5b600060ff831680613cd957613cd9613a46565b8060ff84160691505092915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212204275c224f66b865a04531fde19c3bb73c57466430560f66ea9d787f0a84efc2064736f6c63430008090033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.