Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kennethhutw/40e361b1c335b8c09d5b3017ebe8ba9e to your computer and use it in GitHub Desktop.
Save kennethhutw/40e361b1c335b8c09d5b3017ebe8ba9e to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=true&runs=200&gist=
pragma solidity ^0.5.0;
import "../math/SafeMath.sol";
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
* Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
* overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
* directly accessed.
*/
library Counters {
using SafeMath for uint256;
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
// The {SafeMath} overflow check can be skipped here, see the comment at the top
counter._value += 1;
}
function decrement(Counter storage counter) internal {
counter._value = counter._value.sub(1);
}
}
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN 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.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
pragma solidity ^0.5.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
// Derived contracts need only register support for their own interfaces,
// we register support for ERC165 itself here
_registerInterface(_INTERFACE_ID_ERC165);
}
/**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool) {
return _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*
* _Available since v2.4.0._
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*
* _Available since v2.4.0._
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
pragma solidity ^0.5.0;
import "../GSN/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* 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.
*/
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return _msgSender() == _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 onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = 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 onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "../beacon/IBeacon.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*
* @custom:oz-upgrades-unsafe-allow delegatecall
*/
abstract contract ERC1967Upgrade {
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallSecure(address newImplementation, bytes memory data, bool forceCall) internal {
address oldImplementation = _getImplementation();
// Initial upgrade and setup call
_setImplementation(newImplementation);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(newImplementation, data);
}
// Perform rollback test if not already in progress
StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT);
if (!rollbackTesting.value) {
// Trigger rollback using upgradeTo from the new implementation
rollbackTesting.value = true;
Address.functionDelegateCall(
newImplementation,
abi.encodeWithSignature(
"upgradeTo(address)",
oldImplementation
)
);
rollbackTesting.value = false;
// Check rollback was effective
require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
// Finally reset to the new implementation and log the upgrade
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Emitted when the beacon is upgraded.
*/
event BeaconUpgraded(address indexed beacon);
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(
Address.isContract(newBeacon),
"ERC1967: new beacon is not a contract"
);
require(
Address.isContract(IBeacon(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
}
// this line is added to create a gist. Empty file is not allowed.
pragma solidity ^0.5.0;
import "../../GSN/Context.sol";
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";
import "../../drafts/Counters.sol";
import "../../introspection/ERC165.sol";
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721 is Context, ERC165, IERC721 {
using SafeMath for uint256;
using Address for address;
using Counters for Counters.Counter;
// Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
// which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;
// Mapping from token ID to owner
mapping (uint256 => address) private _tokenOwner;
// Mapping from token ID to approved address
mapping (uint256 => address) private _tokenApprovals;
// Mapping from owner to number of owned token
mapping (address => Counters.Counter) private _ownedTokensCount;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) private _operatorApprovals;
/*
* bytes4(keccak256('balanceOf(address)')) == 0x70a08231
* bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
* bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
* bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
* bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
* bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
* bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
*
* => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
* 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
*/
bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
constructor () public {
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(_INTERFACE_ID_ERC721);
}
/**
* @dev Gets the balance of the specified address.
* @param owner address to query the balance of
* @return uint256 representing the amount owned by the passed address
*/
function balanceOf(address owner) public view returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _ownedTokensCount[owner].current();
}
/**
* @dev Gets the owner of the specified token ID.
* @param tokenId uint256 ID of the token to query the owner of
* @return address currently marked as the owner of the given token ID
*/
function ownerOf(uint256 tokenId) public view returns (address) {
address owner = _tokenOwner[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev Approves another address to transfer the given token ID
* The zero address indicates there is no approved address.
* There can only be one approved address per token at a given time.
* Can only be called by the token owner or an approved operator.
* @param to address to be approved for the given token ID
* @param tokenId uint256 ID of the token to be approved
*/
function approve(address to, uint256 tokenId) public {
address owner = ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Gets the approved address for a token ID, or zero if no address set
* Reverts if the token ID does not exist.
* @param tokenId uint256 ID of the token to query the approval of
* @return address currently approved for the given token ID
*/
function getApproved(uint256 tokenId) public view returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev Sets or unsets the approval of a given operator
* An operator is allowed to transfer all tokens of the sender on their behalf.
* @param to operator address to set the approval
* @param approved representing the status of the approval to be set
*/
function setApprovalForAll(address to, bool approved) public {
require(to != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][to] = approved;
emit ApprovalForAll(_msgSender(), to, approved);
}
/**
* @dev Tells whether an operator is approved by a given owner.
* @param owner owner address which you want to query the approval of
* @param operator operator address which you want to query the approval of
* @return bool whether the given operator is approved by the given owner
*/
function isApprovedForAll(address owner, address operator) public view returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev Transfers the ownership of a given token ID to another address.
* Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
* Requires the msg.sender to be the owner, approved, or operator.
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function transferFrom(address from, address to, uint256 tokenId) public {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transferFrom(from, to, tokenId);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the msg.sender to be the owner, approved, or operator
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the _msgSender() to be the owner, approved, or operator
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes data to send along with a safe transfer check
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransferFrom(from, to, tokenId, _data);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the msg.sender to be the owner, approved, or operator
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes data to send along with a safe transfer check
*/
function _safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) internal {
_transferFrom(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether the specified token exists.
* @param tokenId uint256 ID of the token to query the existence of
* @return bool whether the token exists
*/
function _exists(uint256 tokenId) internal view returns (bool) {
address owner = _tokenOwner[tokenId];
return owner != address(0);
}
/**
* @dev Returns whether the given spender can transfer a given token ID.
* @param spender address of the spender to query
* @param tokenId uint256 ID of the token to be transferred
* @return bool whether the msg.sender is approved for the given token ID,
* is an operator of the owner, or is the owner of the token
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Internal function to safely mint a new token.
* Reverts if the given token ID already exists.
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* @param to The address that will own the minted token
* @param tokenId uint256 ID of the token to be minted
*/
function _safeMint(address to, uint256 tokenId) internal {
_safeMint(to, tokenId, "");
}
/**
* @dev Internal function to safely mint a new token.
* Reverts if the given token ID already exists.
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* @param to The address that will own the minted token
* @param tokenId uint256 ID of the token to be minted
* @param _data bytes data to send along with a safe transfer check
*/
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Internal function to mint a new token.
* Reverts if the given token ID already exists.
* @param to The address that will own the minted token
* @param tokenId uint256 ID of the token to be minted
*/
function _mint(address to, uint256 tokenId) internal {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_tokenOwner[tokenId] = to;
_ownedTokensCount[to].increment();
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use {_burn} instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned
*/
function _burn(address owner, uint256 tokenId) internal {
require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own");
_clearApproval(tokenId);
_ownedTokensCount[owner].decrement();
_tokenOwner[tokenId] = address(0);
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* @param tokenId uint256 ID of the token being burned
*/
function _burn(uint256 tokenId) internal {
_burn(ownerOf(tokenId), tokenId);
}
/**
* @dev Internal function to transfer ownership of a given token ID to another address.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function _transferFrom(address from, address to, uint256 tokenId) internal {
require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_clearApproval(tokenId);
_ownedTokensCount[from].decrement();
_ownedTokensCount[to].increment();
_tokenOwner[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* This is an internal detail of the `ERC721` contract and its use is deprecated.
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
internal returns (bool)
{
if (!to.isContract()) {
return true;
}
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
IERC721Receiver(to).onERC721Received.selector,
_msgSender(),
from,
tokenId,
_data
));
if (!success) {
if (returndata.length > 0) {
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert("ERC721: transfer to non ERC721Receiver implementer");
}
} else {
bytes4 retval = abi.decode(returndata, (bytes4));
return (retval == _ERC721_RECEIVED);
}
}
/**
* @dev Private function to clear current approval of a given token ID.
* @param tokenId uint256 ID of the token to be transferred
*/
function _clearApproval(uint256 tokenId) private {
if (_tokenApprovals[tokenId] != address(0)) {
_tokenApprovals[tokenId] = address(0);
}
}
}
pragma solidity ^0.5.0;
import "../../GSN/Context.sol";
import "./IERC721Enumerable.sol";
import "./ERC721.sol";
import "../../introspection/ERC165.sol";
/**
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/*
* bytes4(keccak256('totalSupply()')) == 0x18160ddd
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
* bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
*
* => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
*/
bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
/**
* @dev Constructor function.
*/
constructor () public {
// register the supported interface to conform to ERC721Enumerable via ERC165
_registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
}
/**
* @dev Gets the token ID at a given index of the tokens list of the requested owner.
* @param owner address owning the tokens list to be accessed
* @param index uint256 representing the index to be accessed of the requested tokens list
* @return uint256 token ID at the given index of the tokens list owned by the requested address
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev Gets the total amount of tokens stored by the contract.
* @return uint256 representing the total amount of tokens
*/
function totalSupply() public view returns (uint256) {
return _allTokens.length;
}
/**
* @dev Gets the token ID at a given index of all the tokens in this contract
* Reverts if the index is greater or equal to the total number of tokens.
* @param index uint256 representing the index to be accessed of the tokens list
* @return uint256 token ID at the given index of the tokens list
*/
function tokenByIndex(uint256 index) public view returns (uint256) {
require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Internal function to transfer ownership of a given token ID to another address.
* As opposed to transferFrom, this imposes no restrictions on msg.sender.
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function _transferFrom(address from, address to, uint256 tokenId) internal {
super._transferFrom(from, to, tokenId);
_removeTokenFromOwnerEnumeration(from, tokenId);
_addTokenToOwnerEnumeration(to, tokenId);
}
/**
* @dev Internal function to mint a new token.
* Reverts if the given token ID already exists.
* @param to address the beneficiary that will own the minted token
* @param tokenId uint256 ID of the token to be minted
*/
function _mint(address to, uint256 tokenId) internal {
super._mint(to, tokenId);
_addTokenToOwnerEnumeration(to, tokenId);
_addTokenToAllTokensEnumeration(tokenId);
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use {ERC721-_burn} instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned
*/
function _burn(address owner, uint256 tokenId) internal {
super._burn(owner, tokenId);
_removeTokenFromOwnerEnumeration(owner, tokenId);
// Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
_ownedTokensIndex[tokenId] = 0;
_removeTokenFromAllTokensEnumeration(tokenId);
}
/**
* @dev Gets the list of token IDs of the requested owner.
* @param owner address owning the tokens
* @return uint256[] List of token IDs owned by the requested address
*/
function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
return _ownedTokens[owner];
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
_ownedTokensIndex[tokenId] = _ownedTokens[to].length;
_ownedTokens[to].push(tokenId);
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
_ownedTokens[from].length--;
// Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by
// lastTokenId, or just over the end of the array if the token was the last one).
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length.sub(1);
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
_allTokens.length--;
_allTokensIndex[tokenId] = 0;
}
}
pragma solidity ^0.5.0;
import "../../introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of NFTs in `owner`'s account.
*/
function balanceOf(address owner) public view returns (uint256 balance);
/**
* @dev Returns the owner of the NFT specified by `tokenId`.
*/
function ownerOf(uint256 tokenId) public view returns (address owner);
/**
* @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
* another (`to`).
*
*
*
* Requirements:
* - `from`, `to` cannot be zero.
* - `tokenId` must be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this
* NFT by either {approve} or {setApprovalForAll}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public;
/**
* @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
* another (`to`).
*
* Requirements:
* - If the caller is not `from`, it must be approved to move this NFT by
* either {approve} or {setApprovalForAll}.
*/
function transferFrom(address from, address to, uint256 tokenId) public;
function approve(address to, uint256 tokenId) public;
function getApproved(uint256 tokenId) public view returns (address operator);
function setApprovalForAll(address operator, bool _approved) public;
function isApprovedForAll(address owner, address operator) public view returns (bool);
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}
pragma solidity ^0.5.0;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
contract IERC721Enumerable is IERC721 {
function totalSupply() public view returns (uint256);
function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);
function tokenByIndex(uint256 index) public view returns (uint256);
}
pragma solidity ^0.5.0;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
contract IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
}
pragma solidity ^0.5.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
contract IERC721Receiver {
/**
* @notice Handle the receipt of an NFT
* @dev The ERC721 smart contract calls this function on the recipient
* after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
* otherwise the caller will revert the transaction. The selector to be
* returned can be obtained as `this.onERC721Received.selector`. This
* function MAY throw to revert and reject the transfer.
* Note: the ERC721 contract address is always the message sender.
* @param operator The address which called `safeTransferFrom` function
* @param from The address which previously owned the token
* @param tokenId The NFT identifier which is being transferred
* @param data Additional data with no specified format
* @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
*/
function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
public returns (bytes4);
}
// this line is added to create a gist. Empty file is not allowed.
// this line is added to create a gist. Empty file is not allowed.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
function _grantRole(bytes32 role, address account) private {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) private {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/ERC1967/ERC1967Proxy.sol)
pragma solidity ^0.8.0;
import "../Proxy.sol";
import "./ERC1967Upgrade.sol";
/**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
* implementation address that can be changed. This address is stored in storage in the location specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
* implementation behind the proxy.
*/
contract ERC1967Proxy is Proxy, ERC1967Upgrade {
/**
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
*
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
* function call, and allows initializating the storage of the proxy like a Solidity constructor.
*/
constructor(address _logic, bytes memory _data) payable {
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
_upgradeToAndCall(_logic, _data, false);
}
/**
* @dev Returns the current implementation address.
*/
function _implementation() internal view virtual override returns (address impl) {
return ERC1967Upgrade._getImplementation();
}
}
// this line is added to create a gist. Empty file is not allowed.
// this line is added to create a gist. Empty file is not allowed.
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/transparent/TransparentUpgradeableProxy.sol)
pragma solidity ^0.8.0;
import "../ERC1967/ERC1967Proxy.sol";
/**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can potentially be used in an attack, this contract uses the
* https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
* things that go hand in hand:
*
* 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
* that call matches one of the admin functions exposed by the proxy itself.
* 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the
* implementation. If the admin tries to call a function on the implementation it will fail with an error that says
* "admin cannot fallback to proxy target".
*
* These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing
* the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due
* to sudden errors when trying to call a function from the proxy implementation.
*
* Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,
* you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.
*/
contract TransparentUpgradeableProxy is ERC1967Proxy {
/**
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
* optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.
*/
constructor(
address _logic,
address admin_,
bytes memory _data
) payable ERC1967Proxy(_logic, _data) {
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_changeAdmin(admin_);
}
/**
* @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
*/
modifier ifAdmin() {
if (msg.sender == _getAdmin()) {
_;
} else {
_fallback();
}
}
/**
* @dev Returns the current admin.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
*/
function admin() external ifAdmin returns (address admin_) {
admin_ = _getAdmin();
}
/**
* @dev Returns the current implementation.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
*/
function implementation() external ifAdmin returns (address implementation_) {
implementation_ = _implementation();
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
*/
function changeAdmin(address newAdmin) external virtual ifAdmin {
_changeAdmin(newAdmin);
}
/**
* @dev Upgrade the implementation of the proxy.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
*/
function upgradeTo(address newImplementation) external ifAdmin {
_upgradeToAndCall(newImplementation, bytes(""), false);
}
/**
* @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
* by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
* proxied contract.
*
* NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
*/
function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
_upgradeToAndCall(newImplementation, data, true);
}
/**
* @dev Returns the current admin.
*/
function _admin() internal view virtual returns (address) {
return _getAdmin();
}
/**
* @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
*/
function _beforeFallback() internal virtual override {
require(msg.sender != _getAdmin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
super._beforeFallback();
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "../../../utils/Context.sol";
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenId` or be an approved operator.
*/
function burn(uint256 tokenId) public virtual {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
_burn(tokenId);
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
/**
* @dev ERC721 token with storage based token URI management.
*/
abstract contract ERC721URIStorage is ERC721 {
using Strings for uint256;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = _baseURI();
// If there is no base URI, return the token URI.
if (bytes(base).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(base, _tokenURI));
}
return super.tokenURI(tokenId);
}
/**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual override {
super._burn(tokenId);
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC777.sol";
import "./IERC777Recipient.sol";
import "./IERC777Sender.sol";
import "../ERC20/IERC20.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/IERC1820Registry.sol";
/**
* @dev Implementation of the {IERC777} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* Support for ERC20 is included in this contract, as specified by the EIP: both
* the ERC777 and ERC20 interfaces can be safely used when interacting with it.
* Both {IERC777-Sent} and {IERC20-Transfer} events are emitted on token
* movements.
*
* Additionally, the {IERC777-granularity} value is hard-coded to `1`, meaning that there
* are no special restrictions in the amount of tokens that created, moved, or
* destroyed. This makes integration with ERC20 applications seamless.
*/
contract ERC777 is Context, IERC777, IERC20 {
using Address for address;
IERC1820Registry internal constant _ERC1820_REGISTRY = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24);
mapping(address => uint256) private _balances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
bytes32 private constant _TOKENS_SENDER_INTERFACE_HASH = keccak256("ERC777TokensSender");
bytes32 private constant _TOKENS_RECIPIENT_INTERFACE_HASH = keccak256("ERC777TokensRecipient");
// This isn't ever read from - it's only used to respond to the defaultOperators query.
address[] private _defaultOperatorsArray;
// Immutable, but accounts may revoke them (tracked in __revokedDefaultOperators).
mapping(address => bool) private _defaultOperators;
// For each account, a mapping of its operators and revoked default operators.
mapping(address => mapping(address => bool)) private _operators;
mapping(address => mapping(address => bool)) private _revokedDefaultOperators;
// ERC20-allowances
mapping(address => mapping(address => uint256)) private _allowances;
/**
* @dev `defaultOperators` may be an empty array.
*/
constructor(
string memory name_,
string memory symbol_,
address[] memory defaultOperators_
) {
_name = name_;
_symbol = symbol_;
_defaultOperatorsArray = defaultOperators_;
for (uint256 i = 0; i < defaultOperators_.length; i++) {
_defaultOperators[defaultOperators_[i]] = true;
}
// register interfaces
_ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC777Token"), address(this));
_ERC1820_REGISTRY.setInterfaceImplementer(address(this), keccak256("ERC20Token"), address(this));
}
/**
* @dev See {IERC777-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC777-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {ERC20-decimals}.
*
* Always returns 18, as per the
* [ERC777 EIP](https://eips.ethereum.org/EIPS/eip-777#backward-compatibility).
*/
function decimals() public pure virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC777-granularity}.
*
* This implementation always returns `1`.
*/
function granularity() public view virtual override returns (uint256) {
return 1;
}
/**
* @dev See {IERC777-totalSupply}.
*/
function totalSupply() public view virtual override(IERC20, IERC777) returns (uint256) {
return _totalSupply;
}
/**
* @dev Returns the amount of tokens owned by an account (`tokenHolder`).
*/
function balanceOf(address tokenHolder) public view virtual override(IERC20, IERC777) returns (uint256) {
return _balances[tokenHolder];
}
/**
* @dev See {IERC777-send}.
*
* Also emits a {IERC20-Transfer} event for ERC20 compatibility.
*/
function send(
address recipient,
uint256 amount,
bytes memory data
) public virtual override {
_send(_msgSender(), recipient, amount, data, "", true);
}
/**
* @dev See {IERC20-transfer}.
*
* Unlike `send`, `recipient` is _not_ required to implement the {IERC777Recipient}
* interface if it is a contract.
*
* Also emits a {Sent} event.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
require(recipient != address(0), "ERC777: transfer to the zero address");
address from = _msgSender();
_callTokensToSend(from, from, recipient, amount, "", "");
_move(from, from, recipient, amount, "", "");
_callTokensReceived(from, from, recipient, amount, "", "", false);
return true;
}
/**
* @dev See {IERC777-burn}.
*
* Also emits a {IERC20-Transfer} event for ERC20 compatibility.
*/
function burn(uint256 amount, bytes memory data) public virtual override {
_burn(_msgSender(), amount, data, "");
}
/**
* @dev See {IERC777-isOperatorFor}.
*/
function isOperatorFor(address operator, address tokenHolder) public view virtual override returns (bool) {
return
operator == tokenHolder ||
(_defaultOperators[operator] && !_revokedDefaultOperators[tokenHolder][operator]) ||
_operators[tokenHolder][operator];
}
/**
* @dev See {IERC777-authorizeOperator}.
*/
function authorizeOperator(address operator) public virtual override {
require(_msgSender() != operator, "ERC777: authorizing self as operator");
if (_defaultOperators[operator]) {
delete _revokedDefaultOperators[_msgSender()][operator];
} else {
_operators[_msgSender()][operator] = true;
}
emit AuthorizedOperator(operator, _msgSender());
}
/**
* @dev See {IERC777-revokeOperator}.
*/
function revokeOperator(address operator) public virtual override {
require(operator != _msgSender(), "ERC777: revoking self as operator");
if (_defaultOperators[operator]) {
_revokedDefaultOperators[_msgSender()][operator] = true;
} else {
delete _operators[_msgSender()][operator];
}
emit RevokedOperator(operator, _msgSender());
}
/**
* @dev See {IERC777-defaultOperators}.
*/
function defaultOperators() public view virtual override returns (address[] memory) {
return _defaultOperatorsArray;
}
/**
* @dev See {IERC777-operatorSend}.
*
* Emits {Sent} and {IERC20-Transfer} events.
*/
function operatorSend(
address sender,
address recipient,
uint256 amount,
bytes memory data,
bytes memory operatorData
) public virtual override {
require(isOperatorFor(_msgSender(), sender), "ERC777: caller is not an operator for holder");
_send(sender, recipient, amount, data, operatorData, true);
}
/**
* @dev See {IERC777-operatorBurn}.
*
* Emits {Burned} and {IERC20-Transfer} events.
*/
function operatorBurn(
address account,
uint256 amount,
bytes memory data,
bytes memory operatorData
) public virtual override {
require(isOperatorFor(_msgSender(), account), "ERC777: caller is not an operator for holder");
_burn(account, amount, data, operatorData);
}
/**
* @dev See {IERC20-allowance}.
*
* Note that operator and allowance concepts are orthogonal: operators may
* not have allowance, and accounts with allowance may not be operators
* themselves.
*/
function allowance(address holder, address spender) public view virtual override returns (uint256) {
return _allowances[holder][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Note that accounts cannot have allowance issued by their operators.
*/
function approve(address spender, uint256 value) public virtual override returns (bool) {
address holder = _msgSender();
_approve(holder, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Note that operator and allowance concepts are orthogonal: operators cannot
* call `transferFrom` (unless they have allowance), and accounts with
* allowance cannot call `operatorSend` (unless they are operators).
*
* Emits {Sent}, {IERC20-Transfer} and {IERC20-Approval} events.
*/
function transferFrom(
address holder,
address recipient,
uint256 amount
) public virtual override returns (bool) {
require(recipient != address(0), "ERC777: transfer to the zero address");
require(holder != address(0), "ERC777: transfer from the zero address");
address spender = _msgSender();
_callTokensToSend(spender, holder, recipient, amount, "", "");
_move(spender, holder, recipient, amount, "", "");
uint256 currentAllowance = _allowances[holder][spender];
require(currentAllowance >= amount, "ERC777: transfer amount exceeds allowance");
_approve(holder, spender, currentAllowance - amount);
_callTokensReceived(spender, holder, recipient, amount, "", "", false);
return true;
}
/**
* @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* If a send hook is registered for `account`, the corresponding function
* will be called with `operator`, `data` and `operatorData`.
*
* See {IERC777Sender} and {IERC777Recipient}.
*
* Emits {Minted} and {IERC20-Transfer} events.
*
* Requirements
*
* - `account` cannot be the zero address.
* - if `account` is a contract, it must implement the {IERC777Recipient}
* interface.
*/
function _mint(
address account,
uint256 amount,
bytes memory userData,
bytes memory operatorData
) internal virtual {
_mint(account, amount, userData, operatorData, true);
}
/**
* @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* If `requireReceptionAck` is set to true, and if a send hook is
* registered for `account`, the corresponding function will be called with
* `operator`, `data` and `operatorData`.
*
* See {IERC777Sender} and {IERC777Recipient}.
*
* Emits {Minted} and {IERC20-Transfer} events.
*
* Requirements
*
* - `account` cannot be the zero address.
* - if `account` is a contract, it must implement the {IERC777Recipient}
* interface.
*/
function _mint(
address account,
uint256 amount,
bytes memory userData,
bytes memory operatorData,
bool requireReceptionAck
) internal virtual {
require(account != address(0), "ERC777: mint to the zero address");
address operator = _msgSender();
_beforeTokenTransfer(operator, address(0), account, amount);
// Update state variables
_totalSupply += amount;
_balances[account] += amount;
_callTokensReceived(operator, address(0), account, amount, userData, operatorData, requireReceptionAck);
emit Minted(operator, account, amount, userData, operatorData);
emit Transfer(address(0), account, amount);
}
/**
* @dev Send tokens
* @param from address token holder address
* @param to address recipient address
* @param amount uint256 amount of tokens to transfer
* @param userData bytes extra information provided by the token holder (if any)
* @param operatorData bytes extra information provided by the operator (if any)
* @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
*/
function _send(
address from,
address to,
uint256 amount,
bytes memory userData,
bytes memory operatorData,
bool requireReceptionAck
) internal virtual {
require(from != address(0), "ERC777: send from the zero address");
require(to != address(0), "ERC777: send to the zero address");
address operator = _msgSender();
_callTokensToSend(operator, from, to, amount, userData, operatorData);
_move(operator, from, to, amount, userData, operatorData);
_callTokensReceived(operator, from, to, amount, userData, operatorData, requireReceptionAck);
}
/**
* @dev Burn tokens
* @param from address token holder address
* @param amount uint256 amount of tokens to burn
* @param data bytes extra information provided by the token holder
* @param operatorData bytes extra information provided by the operator (if any)
*/
function _burn(
address from,
uint256 amount,
bytes memory data,
bytes memory operatorData
) internal virtual {
require(from != address(0), "ERC777: burn from the zero address");
address operator = _msgSender();
_callTokensToSend(operator, from, address(0), amount, data, operatorData);
_beforeTokenTransfer(operator, from, address(0), amount);
// Update state variables
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC777: burn amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_totalSupply -= amount;
emit Burned(operator, from, amount, data, operatorData);
emit Transfer(from, address(0), amount);
}
function _move(
address operator,
address from,
address to,
uint256 amount,
bytes memory userData,
bytes memory operatorData
) private {
_beforeTokenTransfer(operator, from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC777: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_balances[to] += amount;
emit Sent(operator, from, to, amount, userData, operatorData);
emit Transfer(from, to, amount);
}
/**
* @dev See {ERC20-_approve}.
*
* Note that accounts cannot have allowance issued by their operators.
*/
function _approve(
address holder,
address spender,
uint256 value
) internal {
require(holder != address(0), "ERC777: approve from the zero address");
require(spender != address(0), "ERC777: approve to the zero address");
_allowances[holder][spender] = value;
emit Approval(holder, spender, value);
}
/**
* @dev Call from.tokensToSend() if the interface is registered
* @param operator address operator requesting the transfer
* @param from address token holder address
* @param to address recipient address
* @param amount uint256 amount of tokens to transfer
* @param userData bytes extra information provided by the token holder (if any)
* @param operatorData bytes extra information provided by the operator (if any)
*/
function _callTokensToSend(
address operator,
address from,
address to,
uint256 amount,
bytes memory userData,
bytes memory operatorData
) private {
address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(from, _TOKENS_SENDER_INTERFACE_HASH);
if (implementer != address(0)) {
IERC777Sender(implementer).tokensToSend(operator, from, to, amount, userData, operatorData);
}
}
/**
* @dev Call to.tokensReceived() if the interface is registered. Reverts if the recipient is a contract but
* tokensReceived() was not registered for the recipient
* @param operator address operator requesting the transfer
* @param from address token holder address
* @param to address recipient address
* @param amount uint256 amount of tokens to transfer
* @param userData bytes extra information provided by the token holder (if any)
* @param operatorData bytes extra information provided by the operator (if any)
* @param requireReceptionAck if true, contract recipients are required to implement ERC777TokensRecipient
*/
function _callTokensReceived(
address operator,
address from,
address to,
uint256 amount,
bytes memory userData,
bytes memory operatorData,
bool requireReceptionAck
) private {
address implementer = _ERC1820_REGISTRY.getInterfaceImplementer(to, _TOKENS_RECIPIENT_INTERFACE_HASH);
if (implementer != address(0)) {
IERC777Recipient(implementer).tokensReceived(operator, from, to, amount, userData, operatorData);
} else if (requireReceptionAck) {
require(!to.isContract(), "ERC777: token recipient contract has no implementer for ERC777TokensRecipient");
}
}
/**
* @dev Hook that is called before any token transfer. This includes
* calls to {send}, {transfer}, {operatorSend}, minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address operator,
address from,
address to,
uint256 amount
) internal virtual {}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC777Token standard as defined in the EIP.
*
* This contract uses the
* https://eips.ethereum.org/EIPS/eip-1820[ERC1820 registry standard] to let
* token holders and recipients react to token movements by using setting implementers
* for the associated interfaces in said registry. See {IERC1820Registry} and
* {ERC1820Implementer}.
*/
interface IERC777 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the smallest part of the token that is not divisible. This
* means all token operations (creation, movement and destruction) must have
* amounts that are a multiple of this number.
*
* For most token contracts, this value will equal 1.
*/
function granularity() external view returns (uint256);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by an account (`owner`).
*/
function balanceOf(address owner) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* If send or receive hooks are registered for the caller and `recipient`,
* the corresponding functions will be called with `data` and empty
* `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
*
* Emits a {Sent} event.
*
* Requirements
*
* - the caller must have at least `amount` tokens.
* - `recipient` cannot be the zero address.
* - if `recipient` is a contract, it must implement the {IERC777Recipient}
* interface.
*/
function send(
address recipient,
uint256 amount,
bytes calldata data
) external;
/**
* @dev Destroys `amount` tokens from the caller's account, reducing the
* total supply.
*
* If a send hook is registered for the caller, the corresponding function
* will be called with `data` and empty `operatorData`. See {IERC777Sender}.
*
* Emits a {Burned} event.
*
* Requirements
*
* - the caller must have at least `amount` tokens.
*/
function burn(uint256 amount, bytes calldata data) external;
/**
* @dev Returns true if an account is an operator of `tokenHolder`.
* Operators can send and burn tokens on behalf of their owners. All
* accounts are their own operator.
*
* See {operatorSend} and {operatorBurn}.
*/
function isOperatorFor(address operator, address tokenHolder) external view returns (bool);
/**
* @dev Make an account an operator of the caller.
*
* See {isOperatorFor}.
*
* Emits an {AuthorizedOperator} event.
*
* Requirements
*
* - `operator` cannot be calling address.
*/
function authorizeOperator(address operator) external;
/**
* @dev Revoke an account's operator status for the caller.
*
* See {isOperatorFor} and {defaultOperators}.
*
* Emits a {RevokedOperator} event.
*
* Requirements
*
* - `operator` cannot be calling address.
*/
function revokeOperator(address operator) external;
/**
* @dev Returns the list of default operators. These accounts are operators
* for all token holders, even if {authorizeOperator} was never called on
* them.
*
* This list is immutable, but individual holders may revoke these via
* {revokeOperator}, in which case {isOperatorFor} will return false.
*/
function defaultOperators() external view returns (address[] memory);
/**
* @dev Moves `amount` tokens from `sender` to `recipient`. The caller must
* be an operator of `sender`.
*
* If send or receive hooks are registered for `sender` and `recipient`,
* the corresponding functions will be called with `data` and
* `operatorData`. See {IERC777Sender} and {IERC777Recipient}.
*
* Emits a {Sent} event.
*
* Requirements
*
* - `sender` cannot be the zero address.
* - `sender` must have at least `amount` tokens.
* - the caller must be an operator for `sender`.
* - `recipient` cannot be the zero address.
* - if `recipient` is a contract, it must implement the {IERC777Recipient}
* interface.
*/
function operatorSend(
address sender,
address recipient,
uint256 amount,
bytes calldata data,
bytes calldata operatorData
) external;
/**
* @dev Destroys `amount` tokens from `account`, reducing the total supply.
* The caller must be an operator of `account`.
*
* If a send hook is registered for `account`, the corresponding function
* will be called with `data` and `operatorData`. See {IERC777Sender}.
*
* Emits a {Burned} event.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
* - the caller must be an operator for `account`.
*/
function operatorBurn(
address account,
uint256 amount,
bytes calldata data,
bytes calldata operatorData
) external;
event Sent(
address indexed operator,
address indexed from,
address indexed to,
uint256 amount,
bytes data,
bytes operatorData
);
event Minted(address indexed operator, address indexed to, uint256 amount, bytes data, bytes operatorData);
event Burned(address indexed operator, address indexed from, uint256 amount, bytes data, bytes operatorData);
event AuthorizedOperator(address indexed operator, address indexed tokenHolder);
event RevokedOperator(address indexed operator, address indexed tokenHolder);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
*
* Accounts can be notified of {IERC777} tokens being sent to them by having a
* contract implement this interface (contract holders can be their own
* implementer) and registering it on the
* https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
*
* See {IERC1820Registry} and {ERC1820Implementer}.
*/
interface IERC777Recipient {
/**
* @dev Called by an {IERC777} token contract whenever tokens are being
* moved or created into a registered account (`to`). The type of operation
* is conveyed by `from` being the zero address or not.
*
* This call occurs _after_ the token contract's state is updated, so
* {IERC777-balanceOf}, etc., can be used to query the post-operation state.
*
* This function may revert to prevent the operation from being executed.
*/
function tokensReceived(
address operator,
address from,
address to,
uint256 amount,
bytes calldata userData,
bytes calldata operatorData
) external;
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC777TokensSender standard as defined in the EIP.
*
* {IERC777} Token holders can be notified of operations performed on their
* tokens by having a contract implement this interface (contract holders can be
* their own implementer) and registering it on the
* https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
*
* See {IERC1820Registry} and {ERC1820Implementer}.
*/
interface IERC777Sender {
/**
* @dev Called by an {IERC777} token contract whenever a registered holder's
* (`from`) tokens are about to be moved or destroyed. The type of operation
* is conveyed by `to` being the zero address or not.
*
* This call occurs _before_ the token contract's state is updated, so
* {IERC777-balanceOf}, etc., can be used to query the pre-operation state.
*
* This function may revert to prevent the operation from being executed.
*/
function tokensToSend(
address operator,
address from,
address to,
uint256 amount,
bytes calldata userData,
bytes calldata operatorData
) external;
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ECDSA.sol";
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
* thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
* they need in their contracts using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* _Available since v3.4._
*/
abstract contract EIP712 {
/* solhint-disable var-name-mixedcase */
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
uint256 private immutable _CACHED_CHAIN_ID;
bytes32 private immutable _HASHED_NAME;
bytes32 private immutable _HASHED_VERSION;
bytes32 private immutable _TYPE_HASH;
/* solhint-enable var-name-mixedcase */
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
bytes32 hashedName = keccak256(bytes(name));
bytes32 hashedVersion = keccak256(bytes(version));
bytes32 typeHash = keccak256(
"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
);
_HASHED_NAME = hashedName;
_HASHED_VERSION = hashedVersion;
_CACHED_CHAIN_ID = block.chainid;
_CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
_TYPE_HASH = typeHash;
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (block.chainid == _CACHED_CHAIN_ID) {
return _CACHED_DOMAIN_SEPARATOR;
} else {
return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
}
}
function _buildDomainSeparator(
bytes32 typeHash,
bytes32 nameHash,
bytes32 versionHash
) private view returns (bytes32) {
return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,string contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the global ERC1820 Registry, as defined in the
* https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
* implementers for interfaces in this registry, as well as query support.
*
* Implementers may be shared by multiple accounts, and can also implement more
* than a single interface for each account. Contracts can implement interfaces
* for themselves, but externally-owned accounts (EOA) must delegate this to a
* contract.
*
* {IERC165} interfaces can also be queried via the registry.
*
* For an in-depth explanation and source code analysis, see the EIP text.
*/
interface IERC1820Registry {
/**
* @dev Sets `newManager` as the manager for `account`. A manager of an
* account is able to set interface implementers for it.
*
* By default, each account is its own manager. Passing a value of `0x0` in
* `newManager` will reset the manager to this initial state.
*
* Emits a {ManagerChanged} event.
*
* Requirements:
*
* - the caller must be the current manager for `account`.
*/
function setManager(address account, address newManager) external;
/**
* @dev Returns the manager for `account`.
*
* See {setManager}.
*/
function getManager(address account) external view returns (address);
/**
* @dev Sets the `implementer` contract as ``account``'s implementer for
* `interfaceHash`.
*
* `account` being the zero address is an alias for the caller's address.
* The zero address can also be used in `implementer` to remove an old one.
*
* See {interfaceHash} to learn how these are created.
*
* Emits an {InterfaceImplementerSet} event.
*
* Requirements:
*
* - the caller must be the current manager for `account`.
* - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
* end in 28 zeroes).
* - `implementer` must implement {IERC1820Implementer} and return true when
* queried for support, unless `implementer` is the caller. See
* {IERC1820Implementer-canImplementInterfaceForAddress}.
*/
function setInterfaceImplementer(
address account,
bytes32 _interfaceHash,
address implementer
) external;
/**
* @dev Returns the implementer of `interfaceHash` for `account`. If no such
* implementer is registered, returns the zero address.
*
* If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
* zeroes), `account` will be queried for support of it.
*
* `account` being the zero address is an alias for the caller's address.
*/
function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address);
/**
* @dev Returns the interface hash for an `interfaceName`, as defined in the
* corresponding
* https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
*/
function interfaceHash(string calldata interfaceName) external pure returns (bytes32);
/**
* @notice Updates the cache with whether the contract implements an ERC165 interface or not.
* @param account Address of the contract for which to update the cache.
* @param interfaceId ERC165 interface for which to update the cache.
*/
function updateERC165Cache(address account, bytes4 interfaceId) external;
/**
* @notice Checks whether a contract implements an ERC165 interface or not.
* If the result is not cached a direct lookup on the contract address is performed.
* If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
* {updateERC165Cache} with the contract address.
* @param account Address of the contract to check.
* @param interfaceId ERC165 interface to check.
* @return True if `account` implements `interfaceId`, false otherwise.
*/
function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);
/**
* @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache.
* @param account Address of the contract to check.
* @param interfaceId ERC165 interface to check.
* @return True if `account` implements `interfaceId`, false otherwise.
*/
function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);
event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);
event ManagerChanged(address indexed account, address indexed newManager);
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a / b + (a % b == 0 ? 0 : 1);
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// this line is added to create a gist. Empty file is not allowed.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// this line is added to create a gist. Empty file is not allowed.
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract.
For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required).
Scripts have full access to the web3.js and ethers.js libraries.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Owner
* @dev Set & change owner
*/
contract Owner {
address private owner;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all
// changes to the state and to Ether balances are reverted.
// This used to consume all gas in old EVM versions, but not anymore.
// It is often a good idea to use 'require' to check if functions are called correctly.
// As a second argument, you can also provide an explanation about what went wrong.
require(msg.sender == owner, "Caller is not owner");
_;
}
/**
* @dev Set contract deployer as owner
*/
constructor() {
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
}
/**
* @dev Change owner
* @param newOwner address of new owner
*/
function changeOwner(address newOwner) public isOwner {
emit OwnerSet(owner, newOwner);
owner = newOwner;
}
/**
* @dev Return owner address
* @return address of owner
*/
function getOwner() external view returns (address) {
return owner;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
}
struct Proposal {
// If you can limit the length to a certain number of bytes,
// always use one of bytes1 to bytes32 because they are much cheaper
bytes32 name; // short name (up to 32 bytes)
uint voteCount; // number of accumulated votes
}
address public chairperson;
mapping(address => Voter) public voters;
Proposal[] public proposals;
/**
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
*/
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;
for (uint i = 0; i < proposalNames.length; i++) {
// 'Proposal({...})' creates a temporary
// Proposal object and 'proposals.push(...)'
// appends it to the end of 'proposals'.
proposals.push(Proposal({
name: proposalNames[i],
voteCount: 0
}));
}
}
/**
* @dev Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.
* @param voter address of voter
*/
function giveRightToVote(address voter) public {
require(
msg.sender == chairperson,
"Only chairperson can give right to vote."
);
require(
!voters[voter].voted,
"The voter already voted."
);
require(voters[voter].weight == 0);
voters[voter].weight = 1;
}
/**
* @dev Delegate your vote to the voter 'to'.
* @param to address to which vote is delegated
*/
function delegate(address to) public {
Voter storage sender = voters[msg.sender];
require(!sender.voted, "You already voted.");
require(to != msg.sender, "Self-delegation is disallowed.");
while (voters[to].delegate != address(0)) {
to = voters[to].delegate;
// We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation.");
}
sender.voted = true;
sender.delegate = to;
Voter storage delegate_ = voters[to];
if (delegate_.voted) {
// If the delegate already voted,
// directly add to the number of votes
proposals[delegate_.vote].voteCount += sender.weight;
} else {
// If the delegate did not vote yet,
// add to her weight.
delegate_.weight += sender.weight;
}
}
/**
* @dev Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.
* @param proposal index of proposal in the proposals array
*/
function vote(uint proposal) public {
Voter storage sender = voters[msg.sender];
require(sender.weight != 0, "Has no right to vote");
require(!sender.voted, "Already voted.");
sender.voted = true;
sender.vote = proposal;
// If 'proposal' is out of the range of the array,
// this will throw automatically and revert all
// changes.
proposals[proposal].voteCount += sender.weight;
}
/**
* @dev Computes the winning proposal taking all previous votes into account.
* @return winningProposal_ index of winning proposal in the proposals array
*/
function winningProposal() public view
returns (uint winningProposal_)
{
uint winningVoteCount = 0;
for (uint p = 0; p < proposals.length; p++) {
if (proposals[p].voteCount > winningVoteCount) {
winningVoteCount = proposals[p].voteCount;
winningProposal_ = p;
}
}
}
/**
* @dev Calls winningProposal() function to get the index of the winner contained in the proposals array and then
* @return winnerName_ the name of the winner
*/
function winnerName() public view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
}
}
pragma solidity ^0.5.8;
import 'github.com/openzeppelin-contracts/contracts/access/Ownable.sol';
contract BasicAccessControl{
address public admin;
constructor() public {
admin = msg.sender;
}
function publicFunction() external{}
function privateFunction() external onlyAdmin(){
}
function privateFunction2() external onlyAdmin(){
}
modifier onlyAdmin(){
require(msg.sender == admin,'Only admin');
_;
}
}
contract OwnedContract is Ownable{
constructor() public Ownable(){}
function publicFunction() external{}
function privateFunction() external onlyAdmin(){
}
function renounce() external onlyAdmin(){
renounceOwnership();
}
}
pragma solidity ^0.5.8;
contract BasicStorage{
string public data;
function setData(string calldata _data) external {
data = _data;
}
}
pragma solidity ^0.5.8;
import './5_basicStorage.sol';
contract StorageFacotry{
address[] public basicStorageAddresses;
function createStorage() external{
address basicStorageAddresses = address(new BasicStorage());
basicStorageAddresses.push(basicStorageAddresses);
}
function setData(uint _index, string calldata _data) external {
require(_index < basicStorageAddresses.length, 'this _index does not exist');
BasicStorage basicStorage = BasicStorage(basicStorageAddresses[_index]);
basicStorage.setData(_data);
}
}
// contracts/Art3Clipse.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Art3Clipse is ERC721, ERC721URIStorage, ERC721Enumerable, ERC721Burnable, Ownable, AccessControl {
using SafeMath for uint256;
using Counters for Counters.Counter;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
Counters.Counter private _tokenIdTracker;
uint256 public constant NFT_PRICE = 60000000000000000; // 0.06 ETH
uint256 public constant MAX_NFT_PURCHASE = 10;
address payable recipient;
event Purchase(address indexed to, uint256[] tokenIds);
event Mint(address indexed to, uint256 tokenId);
constructor(
string memory _contractName,
string memory _tokenSymbol,
address payable _recipient
) ERC721(_contractName, _tokenSymbol ) {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(MINTER_ROLE, msg.sender);
_setupRole(PAUSER_ROLE, msg.sender);
recipient =payable (_recipient);
}
function mint(address _to, string memory _tokenUri) public {
require(hasRole(MINTER_ROLE, _msgSender()), "Must have minter role to mint");
_mint(_to, _tokenIdTracker.current());
_setTokenURI(_tokenIdTracker.current(), _tokenUri);
emit Mint(msg.sender, _tokenIdTracker.current());
_tokenIdTracker.increment();
}
function setTokenURI(uint256 _tokenId, string calldata _uri) public onlyOwner(){
_setTokenURI(_tokenId, _uri);
}
function setRecipient(address _recipient) public onlyOwner(){
recipient = payable (_recipient);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(AccessControl, ERC721, ERC721Enumerable)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function getRecipient() public view onlyOwner returns(address) {
return recipient;
}
function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
super._burn(tokenId);
}
function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
return super.tokenURI(tokenId);
}
function purchase(uint _numberOfTokens, string[] memory _tokenUris)
public
payable
returns (bool) {
require(_tokenUris.length == _numberOfTokens, "the length of tokenUris is not equal to _numberOfTokens");
require(_numberOfTokens > 0, "Number of tokens can not be less than or equal to 0");
require(_numberOfTokens <= MAX_NFT_PURCHASE,"Can only mint up to 10 per purchase");
require(NFT_PRICE.mul(_numberOfTokens) == msg.value, "Sent ether value is incorrect");
uint256[] memory tokenIds = new uint256[](_numberOfTokens);
for (uint i = 0; i < _numberOfTokens; i++) {
_mint(msg.sender, _tokenIdTracker.current());
_setTokenURI(_tokenIdTracker.current(), _tokenUris[i]);
tokenIds[i] =_tokenIdTracker.current();
_tokenIdTracker.increment();
}
recipient.transfer(msg.value);
emit Purchase(msg.sender, tokenIds);
return true;
}
}
// this line is added to create a gist. Empty file is not allowed.
{
"compiler": {
"version": "0.4.26+commit.4563c3fc"
},
"language": "Solidity",
"output": {
"abi": [
{
"constant": true,
"inputs": [
{
"name": "_operator",
"type": "address"
},
{
"name": "_role",
"type": "uint8"
}
],
"name": "checkRole",
"outputs": [],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_operator",
"type": "address"
},
{
"name": "_role",
"type": "uint8"
}
],
"name": "addAddressToAccessControl",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ROLE_MINTER",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_operator",
"type": "address"
},
{
"name": "_role",
"type": "uint8"
}
],
"name": "hasRole",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_operator",
"type": "address"
},
{
"name": "_role",
"type": "uint8"
}
],
"name": "removeAddressFromAccessControl",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ROLE_UNDER_MINTER",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ROLE_FORMOSART",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "operator",
"type": "address"
},
{
"indexed": false,
"name": "role",
"type": "uint8"
}
],
"name": "RoleAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "operator",
"type": "address"
},
{
"indexed": false,
"name": "role",
"type": "uint8"
}
],
"name": "RoleRemoved",
"type": "event"
}
],
"devdoc": {
"methods": {},
"title": "Based on OpenZeppelin Whitelist & RBCA contracts\r"
},
"userdoc": {
"methods": {
"addAddressToAccessControl(address,uint8)": {
"notice": "/////////////////////////////////"
}
}
}
},
"settings": {
"compilationTarget": {
"contracts/FormosartDigitalAssetV2.sol": "AccessControl"
},
"evmVersion": "byzantium",
"libraries": {},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/FormosartDigitalAssetV2.sol": {
"keccak256": "0x715b87eced4333f9bf9d710b3cadc58ba33eb2de2f8fa5d45a1aa964ad0b166d",
"urls": [
"bzzr://511ae8c6fe6958bbeb5cfc49c08e30243243f8a77e14378e565a86cc568e85fd"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "60636023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a723158208155ec3644927884c74351dd71eb03b95b72dff6a384ab3951aa2d484bff90dc6c6578706572696d656e74616cf564736f6c63430005110040",
"opcodes": "PUSH1 0x63 PUSH1 0x23 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x16 JUMPI INVALID JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG3 PUSH6 0x627A7A723158 KECCAK256 DUP2 SSTORE 0xEC CALLDATASIZE DIFFICULTY SWAP3 PUSH25 0x84C74351DD71EB03B95B72DFF6A384AB3951AA2D484BFF90DC PUSH13 0x6578706572696D656E74616CF5 PUSH5 0x736F6C6343 STOP SDIV GT STOP BLOCKHASH ",
"sourceMap": "12595:2925:0:-;;132:2:-1;166:7;155:9;146:7;137:37;255:7;249:14;246:1;241:23;235:4;232:33;222:2;;269:9;222:2;293:9;290:1;283:20;323:4;314:7;306:22;347:7;338;331:24"
},
"deployedBytecode": {
"linkReferences": {},
"object": "73000000000000000000000000000000000000000030146080604052600080fdfea365627a7a723158208155ec3644927884c74351dd71eb03b95b72dff6a384ab3951aa2d484bff90dc6c6578706572696d656e74616cf564736f6c63430005110040",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG3 PUSH6 0x627A7A723158 KECCAK256 DUP2 SSTORE 0xEC CALLDATASIZE DIFFICULTY SWAP3 PUSH25 0x84C74351DD71EB03B95B72DFF6A384AB3951AA2D484BFF90DC PUSH13 0x6578706572696D656E74616CF5 PUSH5 0x736F6C6343 STOP SDIV GT STOP BLOCKHASH ",
"sourceMap": "12595:2925:0:-;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "19800",
"executionCost": "100",
"totalCost": "19900"
},
"internal": {
"isContract(address)": "infinite",
"sendValue(address payable,uint256)": "infinite",
"toPayable(address)": "infinite"
}
},
"methodIdentifiers": {}
},
"abi": []
}
{
"compiler": {
"version": "0.8.10+commit.fc410830"
},
"language": "Solidity",
"output": {
"abi": [],
"devdoc": {
"details": "Collection of functions related to the address type",
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/proxy.sol": "Address"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/proxy.sol": {
"keccak256": "0x743a17cc13099966dc612fc8d8b90b7e3b5d3c27487089e4bb850f5bc9da419e",
"license": "MIT",
"urls": [
"bzz-raw://1e89b06f9c184d930db8e8a3084dac925b322d3d0a5f6226f94adfacfd98fcea",
"dweb:/ipfs/QmNxhpSX1fevmiBMywGpfhgRVY5mReEzZgJBuAAiqdF3XN"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820dea715d32900c436ba35dd70a38a2d77de11832c3873833c7d4e441bc21636d90029",
"opcodes": "PUSH1 0x4C PUSH1 0x2C PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x0 DUP2 EQ PUSH1 0x1C JUMPI PUSH1 0x1E JUMP JUMPDEST INVALID JUMPDEST POP ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN STOP PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0xde 0xa7 ISZERO 0xd3 0x29 STOP 0xc4 CALLDATASIZE 0xba CALLDATALOAD 0xdd PUSH17 0xA38A2D77DE11832C3873833C7D4E441BC2 AND CALLDATASIZE 0xd9 STOP 0x29 ",
"sourceMap": "14759:954:0:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24"
},
"deployedBytecode": {
"linkReferences": {},
"object": "73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820dea715d32900c436ba35dd70a38a2d77de11832c3873833c7d4e441bc21636d90029",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 0xde 0xa7 ISZERO 0xd3 0x29 STOP 0xc4 CALLDATASIZE 0xba CALLDATALOAD 0xdd PUSH17 0xA38A2D77DE11832C3873833C7D4E441BC2 AND CALLDATASIZE 0xd9 STOP 0x29 ",
"sourceMap": "14759:954:0:-;;;;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "15200",
"executionCost": "116",
"totalCost": "15316"
},
"internal": {
"isContract(address)": "infinite"
}
},
"methodIdentifiers": {}
},
"abi": []
}
{
"compiler": {
"version": "0.4.26+commit.4563c3fc"
},
"language": "Solidity",
"output": {
"abi": [],
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
},
"settings": {
"compilationTarget": {
"contracts/FormosartDigitalAssetV2.sol": "AddressUtils"
},
"evmVersion": "byzantium",
"libraries": {},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/FormosartDigitalAssetV2.sol": {
"keccak256": "0x715b87eced4333f9bf9d710b3cadc58ba33eb2de2f8fa5d45a1aa964ad0b166d",
"urls": [
"bzzr://511ae8c6fe6958bbeb5cfc49c08e30243243f8a77e14378e565a86cc568e85fd"
]
}
},
"version": 1
}
// this line is added to create a gist. Empty file is not allowed.
{
"compiler": {
"version": "0.8.4+commit.c7e474f2"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "_contractName",
"type": "string"
},
{
"internalType": "string",
"name": "_tokenSymbol",
"type": "string"
},
{
"internalType": "address payable",
"name": "_recipient",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Mint",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "Purchase",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_NFT_PURCHASE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MINTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NFT_PRICE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRecipient",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "string",
"name": "_tokenUri",
"type": "string"
}
],
"name": "mint",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_numberOfTokens",
"type": "uint256"
},
{
"internalType": "string[]",
"name": "_tokenUris",
"type": "string[]"
}
],
"name": "purchase",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_recipient",
"type": "address"
}
],
"name": "setRecipient",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "_uri",
"type": "string"
}
],
"name": "setTokenURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"approve(address,uint256)": {
"details": "See {IERC721-approve}."
},
"balanceOf(address)": {
"details": "See {IERC721-balanceOf}."
},
"burn(uint256)": {
"details": "Burns `tokenId`. See {ERC721-_burn}. Requirements: - The caller must own `tokenId` or be an approved operator."
},
"getApproved(uint256)": {
"details": "See {IERC721-getApproved}."
},
"getRoleAdmin(bytes32)": {
"details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}."
},
"grantRole(bytes32,address)": {
"details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role."
},
"hasRole(bytes32,address)": {
"details": "Returns `true` if `account` has been granted `role`."
},
"isApprovedForAll(address,address)": {
"details": "See {IERC721-isApprovedForAll}."
},
"name()": {
"details": "See {IERC721Metadata-name}."
},
"owner()": {
"details": "Returns the address of the current owner."
},
"ownerOf(uint256)": {
"details": "See {IERC721-ownerOf}."
},
"renounceOwnership()": {
"details": "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."
},
"renounceRole(bytes32,address)": {
"details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`."
},
"revokeRole(bytes32,address)": {
"details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role."
},
"safeTransferFrom(address,address,uint256)": {
"details": "See {IERC721-safeTransferFrom}."
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "See {IERC721-safeTransferFrom}."
},
"setApprovalForAll(address,bool)": {
"details": "See {IERC721-setApprovalForAll}."
},
"symbol()": {
"details": "See {IERC721Metadata-symbol}."
},
"tokenByIndex(uint256)": {
"details": "See {IERC721Enumerable-tokenByIndex}."
},
"tokenOfOwnerByIndex(address,uint256)": {
"details": "See {IERC721Enumerable-tokenOfOwnerByIndex}."
},
"totalSupply()": {
"details": "See {IERC721Enumerable-totalSupply}."
},
"transferFrom(address,address,uint256)": {
"details": "See {IERC721-transferFrom}."
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/art3clipse.sol": "Art3Clipse"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"@openzeppelin/contracts/access/AccessControl.sol": {
"keccak256": "0x183481af1c40d2efb26b86f63d6fe9e22f24c87e436d60a69f261b38500e7cd6",
"license": "MIT",
"urls": [
"bzz-raw://f562746c399ae045994a88b2218d1238a349de07afbfb305aab0c7fdbc2954cc",
"dweb:/ipfs/QmYoFrDD2c6fi9CpPz1bjCMAyketjZ3G7ByUSVQMntysms"
]
},
"@openzeppelin/contracts/access/IAccessControl.sol": {
"keccak256": "0xfe0edb09653ed10e8a1bfe03eb9b0ff06775666eee817a95bd3d0799f1ee2b44",
"license": "MIT",
"urls": [
"bzz-raw://fbb9d503857eab98f87465df0f02fef03083f30c1dbec82f319f41aaadae19b4",
"dweb:/ipfs/QmTxDshRAMtoeM45YrTzQZdpmy4mt4scCNHjfZiWSvdETF"
]
},
"@openzeppelin/contracts/access/Ownable.sol": {
"keccak256": "0x6bb804a310218875e89d12c053e94a13a4607cdf7cc2052f3e52bd32a0dc50a1",
"license": "MIT",
"urls": [
"bzz-raw://b2ebbbe6d0011175bd9e7268b83de3f9c2f9d8d4cbfbaef12aff977d7d727163",
"dweb:/ipfs/Qmd5c7Vxtis9wzkDNhxwc6A2QT5H9xn9kfjhx7qx44vpro"
]
},
"@openzeppelin/contracts/token/ERC721/ERC721.sol": {
"keccak256": "0x7d2b8ba4b256bfcac347991b75242f9bc37f499c5236af50cf09d0b35943dc0c",
"license": "MIT",
"urls": [
"bzz-raw://d8eeaf6afe00229af4c232ca058bb08b7a24cc3886f0b387159ac49ffd8b5312",
"dweb:/ipfs/QmdnVKmDDWDvdRr6vtrxy3G6WafqA2TAhUZv1UFMsm4B4r"
]
},
"@openzeppelin/contracts/token/ERC721/IERC721.sol": {
"keccak256": "0xf101e8720213560fab41104d53b3cc7ba0456ef3a98455aa7f022391783144a0",
"license": "MIT",
"urls": [
"bzz-raw://3e7820bcf567e6892d937c3cb10db263a4042e446799bca602535868d822384e",
"dweb:/ipfs/QmPG2oeDjKncqsEeyYGjAN7CwAJmMgHterXGGnpzhha4z7"
]
},
"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol": {
"keccak256": "0xd9517254724276e2e8de3769183c1f738f445f0095c26fd9b86d3c6687e887b9",
"license": "MIT",
"urls": [
"bzz-raw://0e604bcdcd5e5b2fb299ad09769cde6db19d5aa1929d1b5e939234a0f10d7eb8",
"dweb:/ipfs/Qmd8hXE3GZfBHuWx3RNiYgFW2ci7KvHtib8DiwzJ2dgo9V"
]
},
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol": {
"keccak256": "0x7481c284b0ff5983d3f1784f0ceae1ec397f8c8938bc60552b19889cc057aee8",
"license": "MIT",
"urls": [
"bzz-raw://c834984a08e9fcb78657f3e6bc1209463581c4660fb7a0d7b785b1aec52490bc",
"dweb:/ipfs/Qman8u5hNWrE34xNinnSgNqMXcsyPsHh5992b4G7iM2xFX"
]
},
"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol": {
"keccak256": "0x41dc7bf7f69c668eb98aa078c5140a4d3c3b097124ee4b6058a649ca99688300",
"license": "MIT",
"urls": [
"bzz-raw://621b0e2f8b95aa04707f3106f48a8c7cfab2d6fbe2dd8253e70b0b024daee683",
"dweb:/ipfs/QmTptvu7MJ6QcogPJUxkDEkdKm97KGTC28bhsZKu4sex4M"
]
},
"@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol": {
"keccak256": "0x188d038a65a945481cc13fe30db334472dfbed61f7959d4478d05feb6303b1ea",
"license": "MIT",
"urls": [
"bzz-raw://7aec4efa22389811ffa393463569410bbca1ecaa551bc94d69020bc9567e9277",
"dweb:/ipfs/QmPwk5uVSHPQkepebrZSQ9xqgXdPABKqHwJZ2HkzNByLRE"
]
},
"@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol": {
"keccak256": "0xa69205e5009601cf13be78b1e2f500e1e3b1d8012f22d966e63975273f602038",
"license": "MIT",
"urls": [
"bzz-raw://d919a0061e43f9878f6171b7f853cb92093805cd1160858c1884195a639b40a0",
"dweb:/ipfs/QmRZsS3EYuLp75nBym1QQ4y6aQXGew75wSbv1uwqkvouUK"
]
},
"@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol": {
"keccak256": "0xd32fb7f530a914b1083d10a6bed3a586f2451952fec04fe542bcc670a82f7ba5",
"license": "MIT",
"urls": [
"bzz-raw://af63ab940a34687c45f0ad84960b048fc5f49330c92ccb422db7822a444733b9",
"dweb:/ipfs/QmUShaQEu8HS1GjDnsMJQ8jkZEBrecn6NuDZ3pfjY1gVck"
]
},
"@openzeppelin/contracts/utils/Address.sol": {
"keccak256": "0x3336baae5cf23e94274d75336e2d412193be508504aee185e61dc7d58cd05c8a",
"license": "MIT",
"urls": [
"bzz-raw://39a05eec7083dfa0cc7e0cbfe6cd1bd085a340af1ede93fdff3ad047c5fb3d8e",
"dweb:/ipfs/QmVApz5fCUq2QC8gKTsNNdCmcedJ3ETHp68zR5N3WUKS4r"
]
},
"@openzeppelin/contracts/utils/Context.sol": {
"keccak256": "0x90565a39ae45c80f0468dc96c7b20d0afc3055f344c8203a0c9258239f350b9f",
"license": "MIT",
"urls": [
"bzz-raw://26e8b38a7ac8e7b4463af00cf7fff1bf48ae9875765bf4f7751e100124d0bc8c",
"dweb:/ipfs/QmWcsmkVr24xmmjfnBQZoemFniXjj3vwT78Cz6uqZW1Hux"
]
},
"@openzeppelin/contracts/utils/Counters.sol": {
"keccak256": "0x78450f4e3b722cce467b21e285f72ce5eaf361e9ba9dd2241a413926246773cd",
"license": "MIT",
"urls": [
"bzz-raw://f103065051300cd995fd4599ba91188d4071b92175b52f26110e02db091617c0",
"dweb:/ipfs/QmSyDz67R2HCypDE8Pacn3voVwxw9x17NM66q47YgBnGqc"
]
},
"@openzeppelin/contracts/utils/Strings.sol": {
"keccak256": "0x391d3ba97ab6856a16b225d6ee29617ad15ff00db70f3b4df1ab5ea33aa47c9d",
"license": "MIT",
"urls": [
"bzz-raw://d636ba90bbbeed04a1ea7fe9ec2466757e30fd38ba2ca173636dbf69a518735e",
"dweb:/ipfs/QmQwCB2BHnEuYR22PYt9HkpbgeFDhq4rHmaYqAZbX3WRC7"
]
},
"@openzeppelin/contracts/utils/introspection/ERC165.sol": {
"keccak256": "0x5718c5df9bd67ac68a796961df938821bb5dc0cd4c6118d77e9145afb187409b",
"license": "MIT",
"urls": [
"bzz-raw://d10e1d9b26042424789246603906ad06143bf9a928f4e99de8b5e3bdc662f549",
"dweb:/ipfs/Qmejonoaj5MLekPus229rJQHcC6E9dz2xorjHJR84fMfmn"
]
},
"@openzeppelin/contracts/utils/introspection/IERC165.sol": {
"keccak256": "0xa28007762d9da9db878dd421960c8cb9a10471f47ab5c1b3309bfe48e9e79ff4",
"license": "MIT",
"urls": [
"bzz-raw://796ab6e88af7bf0e78def0f059310c903af6a312b565344e0ff524a0f26e81c6",
"dweb:/ipfs/QmcsVgLgzWdor3UnAztUkXKNGcysm1MPneWksF72AvnwBx"
]
},
"@openzeppelin/contracts/utils/math/SafeMath.sol": {
"keccak256": "0x8666f020bd8fc9dc14f07e2ebc52b5f236ab4cdde7c77679b08cb2f94730043b",
"license": "MIT",
"urls": [
"bzz-raw://163776cbf565c722232393aa2d62cbe8a2ffb5805986abf4906c00e1e07450a6",
"dweb:/ipfs/QmPZoN9T3cb6o8bGhjBPZcz7im8T8DWhpr3tjLwhJJHx9N"
]
},
"contracts/art3clipse.sol": {
"keccak256": "0x6d84f1351ec030eac542d8d984138a7126246ed9453682edfee5dff079d554e9",
"license": "MIT",
"urls": [
"bzz-raw://234fe1ba4a0a947c3712554d50934a6ae198810a6ee1fb933a2152788e28cfeb",
"dweb:/ipfs/QmRh7tc1aYohRKZF7Z27QMyLYVMYdhT14KhdvUWqB1HWwF"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:1550:1",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:1",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "120:1055:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "130:12:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "140:2:1",
"type": "",
"value": "32"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "134:2:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "187:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "196:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "204:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "189:6:1"
},
"nodeType": "YulFunctionCall",
"src": "189:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "189:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "162:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "171:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "158:3:1"
},
"nodeType": "YulFunctionCall",
"src": "158:23:1"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "183:2:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "154:3:1"
},
"nodeType": "YulFunctionCall",
"src": "154:32:1"
},
"nodeType": "YulIf",
"src": "151:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "222:30:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "242:9:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "236:5:1"
},
"nodeType": "YulFunctionCall",
"src": "236:16:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "226:6:1",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "261:28:1",
"value": {
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "279:2:1",
"type": "",
"value": "64"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "283:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "275:3:1"
},
"nodeType": "YulFunctionCall",
"src": "275:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "287:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "271:3:1"
},
"nodeType": "YulFunctionCall",
"src": "271:18:1"
},
"variables": [
{
"name": "_2",
"nodeType": "YulTypedName",
"src": "265:2:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "316:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "325:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "333:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "318:6:1"
},
"nodeType": "YulFunctionCall",
"src": "318:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "318:22:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "304:6:1"
},
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "312:2:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "301:2:1"
},
"nodeType": "YulFunctionCall",
"src": "301:14:1"
},
"nodeType": "YulIf",
"src": "298:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "351:32:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "365:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "376:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "361:3:1"
},
"nodeType": "YulFunctionCall",
"src": "361:22:1"
},
"variables": [
{
"name": "_3",
"nodeType": "YulTypedName",
"src": "355:2:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "431:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "440:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "448:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "433:6:1"
},
"nodeType": "YulFunctionCall",
"src": "433:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "433:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "_3",
"nodeType": "YulIdentifier",
"src": "410:2:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "414:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "406:3:1"
},
"nodeType": "YulFunctionCall",
"src": "406:13:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "421:7:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "402:3:1"
},
"nodeType": "YulFunctionCall",
"src": "402:27:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "395:6:1"
},
"nodeType": "YulFunctionCall",
"src": "395:35:1"
},
"nodeType": "YulIf",
"src": "392:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "466:19:1",
"value": {
"arguments": [
{
"name": "_3",
"nodeType": "YulIdentifier",
"src": "482:2:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "476:5:1"
},
"nodeType": "YulFunctionCall",
"src": "476:9:1"
},
"variables": [
{
"name": "_4",
"nodeType": "YulTypedName",
"src": "470:2:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "508:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "510:16:1"
},
"nodeType": "YulFunctionCall",
"src": "510:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "510:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "_4",
"nodeType": "YulIdentifier",
"src": "500:2:1"
},
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "504:2:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "497:2:1"
},
"nodeType": "YulFunctionCall",
"src": "497:10:1"
},
"nodeType": "YulIf",
"src": "494:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "539:20:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "553:1:1",
"type": "",
"value": "5"
},
{
"name": "_4",
"nodeType": "YulIdentifier",
"src": "556:2:1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "549:3:1"
},
"nodeType": "YulFunctionCall",
"src": "549:10:1"
},
"variables": [
{
"name": "_5",
"nodeType": "YulTypedName",
"src": "543:2:1",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "568:23:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "588:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "582:5:1"
},
"nodeType": "YulFunctionCall",
"src": "582:9:1"
},
"variables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "572:6:1",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "600:56:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "622:6:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "_5",
"nodeType": "YulIdentifier",
"src": "638:2:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "642:2:1",
"type": "",
"value": "63"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "634:3:1"
},
"nodeType": "YulFunctionCall",
"src": "634:11:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "651:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "647:3:1"
},
"nodeType": "YulFunctionCall",
"src": "647:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "630:3:1"
},
"nodeType": "YulFunctionCall",
"src": "630:25:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "618:3:1"
},
"nodeType": "YulFunctionCall",
"src": "618:38:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "604:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "715:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "717:16:1"
},
"nodeType": "YulFunctionCall",
"src": "717:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "717:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "674:10:1"
},
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "686:2:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "671:2:1"
},
"nodeType": "YulFunctionCall",
"src": "671:18:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "694:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "706:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "691:2:1"
},
"nodeType": "YulFunctionCall",
"src": "691:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "668:2:1"
},
"nodeType": "YulFunctionCall",
"src": "668:46:1"
},
"nodeType": "YulIf",
"src": "665:2:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "753:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "757:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "746:6:1"
},
"nodeType": "YulFunctionCall",
"src": "746:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "746:22:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "777:17:1",
"value": {
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "788:6:1"
},
"variables": [
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "781:3:1",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "810:6:1"
},
{
"name": "_4",
"nodeType": "YulIdentifier",
"src": "818:2:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "803:6:1"
},
"nodeType": "YulFunctionCall",
"src": "803:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "803:18:1"
},
{
"nodeType": "YulAssignment",
"src": "830:22:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "841:6:1"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "849:2:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "837:3:1"
},
"nodeType": "YulFunctionCall",
"src": "837:15:1"
},
"variableNames": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "830:3:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "861:22:1",
"value": {
"arguments": [
{
"name": "_3",
"nodeType": "YulIdentifier",
"src": "876:2:1"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "880:2:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "872:3:1"
},
"nodeType": "YulFunctionCall",
"src": "872:11:1"
},
"variables": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "865:3:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "929:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "938:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "946:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "931:6:1"
},
"nodeType": "YulFunctionCall",
"src": "931:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "931:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "_3",
"nodeType": "YulIdentifier",
"src": "906:2:1"
},
{
"name": "_5",
"nodeType": "YulIdentifier",
"src": "910:2:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "902:3:1"
},
"nodeType": "YulFunctionCall",
"src": "902:11:1"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "915:2:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "898:3:1"
},
"nodeType": "YulFunctionCall",
"src": "898:20:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "920:7:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "895:2:1"
},
"nodeType": "YulFunctionCall",
"src": "895:33:1"
},
"nodeType": "YulIf",
"src": "892:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "964:15:1",
"value": {
"name": "value0",
"nodeType": "YulIdentifier",
"src": "973:6:1"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "968:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1033:111:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "1054:3:1"
},
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "1065:3:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "1059:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1059:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1047:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1047:23:1"
},
"nodeType": "YulExpressionStatement",
"src": "1047:23:1"
},
{
"nodeType": "YulAssignment",
"src": "1083:19:1",
"value": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "1094:3:1"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "1099:2:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1090:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1090:12:1"
},
"variableNames": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "1083:3:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1115:19:1",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "1126:3:1"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "1131:2:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1122:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1122:12:1"
},
"variableNames": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "1115:3:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "999:1:1"
},
{
"name": "_4",
"nodeType": "YulIdentifier",
"src": "1002:2:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "996:2:1"
},
"nodeType": "YulFunctionCall",
"src": "996:9:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "1006:18:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1008:14:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "1017:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1020:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1013:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1013:9:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "1008:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "992:3:1",
"statements": []
},
"src": "988:156:1"
},
{
"nodeType": "YulAssignment",
"src": "1153:16:1",
"value": {
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1163:6:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1153:6:1"
}
]
}
]
},
"name": "abi_decode_tuple_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "86:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "97:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "109:6:1",
"type": ""
}
],
"src": "14:1161:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1227:189:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1266:115:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1287:3:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1296:3:1",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1301:10:1",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "1292:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1292:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1280:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1280:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "1280:33:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1333:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1336:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1326:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1326:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1326:15:1"
},
{
"expression": {
"arguments": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1361:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1366:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1354:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1354:17:1"
},
"nodeType": "YulExpressionStatement",
"src": "1354:17:1"
}
]
},
"condition": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1243:5:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1254:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "1250:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1250:6:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "1240:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1240:17:1"
},
"nodeType": "YulIf",
"src": "1237:2:1"
},
{
"nodeType": "YulAssignment",
"src": "1390:20:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1401:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1408:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1397:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1397:13:1"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1390:3:1"
}
]
}
]
},
"name": "increment_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1209:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "1219:3:1",
"type": ""
}
],
"src": "1180:236:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1453:95:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1470:1:1",
"type": "",
"value": "0"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1477:3:1",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1482:10:1",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "1473:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1473:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1463:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1463:31:1"
},
"nodeType": "YulExpressionStatement",
"src": "1463:31:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1510:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1513:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1503:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1503:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1503:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1534:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1537:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1527:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1527:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1527:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "1421:127:1"
}
]
},
"contents": "{\n { }\n function abi_decode_tuple_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory(headStart, dataEnd) -> value0\n {\n let _1 := 32\n if slt(sub(dataEnd, headStart), _1) { revert(value0, value0) }\n let offset := mload(headStart)\n let _2 := sub(shl(64, 1), 1)\n if gt(offset, _2) { revert(value0, value0) }\n let _3 := add(headStart, offset)\n if iszero(slt(add(_3, 0x1f), dataEnd)) { revert(value0, value0) }\n let _4 := mload(_3)\n if gt(_4, _2) { panic_error_0x41() }\n let _5 := shl(5, _4)\n let memPtr := mload(64)\n let newFreePtr := add(memPtr, and(add(_5, 63), not(31)))\n if or(gt(newFreePtr, _2), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n let dst := memPtr\n mstore(memPtr, _4)\n dst := add(memPtr, _1)\n let src := add(_3, _1)\n if gt(add(add(_3, _5), _1), dataEnd) { revert(value0, value0) }\n let i := value0\n for { } lt(i, _4) { i := add(i, 1) }\n {\n mstore(dst, mload(src))\n dst := add(dst, _1)\n src := add(src, _1)\n }\n value0 := memPtr\n }\n function increment_t_uint256(value) -> ret\n {\n if eq(value, not(0))\n {\n mstore(ret, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(ret, 0x24)\n }\n ret := add(value, 1)\n }\n function panic_error_0x41()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n}",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b5060405161098b38038061098b83398101604081905261002f916100da565b600080546001600160a01b03191633908117825581526001602081905260408220555b81518110156100d3576002604051806040016040528084848151811061008857634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825260009181018290528354600181810186559483529181902083516002909302019182559190910151910155806100cb81610199565b915050610052565b50506101d6565b600060208083850312156100ec578182fd5b82516001600160401b0380821115610102578384fd5b818501915085601f830112610115578384fd5b815181811115610127576101276101c0565b8060051b604051601f19603f8301168101818110858211171561014c5761014c6101c0565b604052828152858101935084860182860187018a101561016a578788fd5b8795505b8386101561018c57805185526001959095019493860193860161016e565b5098975050505050505050565b60006000198214156101b957634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6107a6806101e56000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063609ff1bd1161005b578063609ff1bd1461010d5780639e7b8d6114610123578063a3ec138d14610136578063e2ba53f0146101a757600080fd5b80630121b93f1461008d578063013cf08b146100a25780632e4176cf146100cf5780635c19a95c146100fa575b600080fd5b6100a061009b36600461070f565b6101af565b005b6100b56100b036600461070f565b6102b4565b604080519283526020830191909152015b60405180910390f35b6000546100e2906001600160a01b031681565b6040516001600160a01b0390911681526020016100c6565b6100a06101083660046106e1565b6102e2565b6101156104ef565b6040519081526020016100c6565b6100a06101313660046106e1565b610588565b6101786101443660046106e1565b600160208190526000918252604090912080549181015460029091015460ff82169161010090046001600160a01b03169084565b6040516100c6949392919093845291151560208401526001600160a01b03166040830152606082015260800190565b6101156106a0565b33600090815260016020526040902080546102085760405162461bcd60e51b8152602060048201526014602482015273486173206e6f20726967687420746f20766f746560601b60448201526064015b60405180910390fd5b600181015460ff161561024e5760405162461bcd60e51b815260206004820152600e60248201526d20b63932b0b23c903b37ba32b21760911b60448201526064016101ff565b6001818101805460ff191690911790556002808201839055815481549091908490811061028b57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010160008282546102ab9190610727565b90915550505050565b600281815481106102c457600080fd5b60009182526020909120600290910201805460019091015490915082565b3360009081526001602081905260409091209081015460ff161561033d5760405162461bcd60e51b81526020600482015260126024820152712cb7ba9030b63932b0b23c903b37ba32b21760711b60448201526064016101ff565b6001600160a01b0382163314156103965760405162461bcd60e51b815260206004820152601e60248201527f53656c662d64656c65676174696f6e20697320646973616c6c6f7765642e000060448201526064016101ff565b6001600160a01b03828116600090815260016020819052604090912001546101009004161561043b576001600160a01b0391821660009081526001602081905260409091200154610100900490911690338214156104365760405162461bcd60e51b815260206004820152601960248201527f466f756e64206c6f6f7020696e2064656c65676174696f6e2e0000000000000060448201526064016101ff565b610396565b600181810180546001600160a81b0319166101006001600160a01b03861690810291909117831790915560009081526020829052604090209081015460ff16156104d0578154600282810154815481106104a557634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010160008282546104c59190610727565b909155506104ea9050565b8154815482906000906104e4908490610727565b90915550505b505050565b600080805b60025481101561058357816002828154811061052057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101541115610571576002818154811061055957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016001015491508092505b8061057b8161073f565b9150506104f4565b505090565b6000546001600160a01b031633146105f35760405162461bcd60e51b815260206004820152602860248201527f4f6e6c79206368616972706572736f6e2063616e2067697665207269676874206044820152673a37903b37ba329760c11b60648201526084016101ff565b6001600160a01b0381166000908152600160208190526040909120015460ff16156106605760405162461bcd60e51b815260206004820152601860248201527f54686520766f74657220616c726561647920766f7465642e000000000000000060448201526064016101ff565b6001600160a01b0381166000908152600160205260409020541561068357600080fd5b6001600160a01b0316600090815260016020819052604090912055565b600060026106ac6104ef565b815481106106ca57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000154905090565b6000602082840312156106f2578081fd5b81356001600160a01b0381168114610708578182fd5b9392505050565b600060208284031215610720578081fd5b5035919050565b6000821982111561073a5761073a61075a565b500190565b60006000198214156107535761075361075a565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220501ca8918a2bb79189b3eeb57c9f7a2796d5ae6bd711f7b918fca2903be72d7a64736f6c63430008040033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x98B CODESIZE SUB DUP1 PUSH2 0x98B DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH2 0x2F SWAP2 PUSH2 0xDA JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER SWAP1 DUP2 OR DUP3 SSTORE DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 DUP3 KECCAK256 SSTORE JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0xD3 JUMPI PUSH1 0x2 PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 DUP5 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x88 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD DUP2 ADD MLOAD DUP3 MSTORE PUSH1 0x0 SWAP2 DUP2 ADD DUP3 SWAP1 MSTORE DUP4 SLOAD PUSH1 0x1 DUP2 DUP2 ADD DUP7 SSTORE SWAP5 DUP4 MSTORE SWAP2 DUP2 SWAP1 KECCAK256 DUP4 MLOAD PUSH1 0x2 SWAP1 SWAP4 MUL ADD SWAP2 DUP3 SSTORE SWAP2 SWAP1 SWAP2 ADD MLOAD SWAP2 ADD SSTORE DUP1 PUSH2 0xCB DUP2 PUSH2 0x199 JUMP JUMPDEST SWAP2 POP POP PUSH2 0x52 JUMP JUMPDEST POP POP PUSH2 0x1D6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xEC JUMPI DUP2 DUP3 REVERT JUMPDEST DUP3 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP1 DUP3 GT ISZERO PUSH2 0x102 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP2 DUP6 ADD SWAP2 POP DUP6 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x115 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP2 MLOAD DUP2 DUP2 GT ISZERO PUSH2 0x127 JUMPI PUSH2 0x127 PUSH2 0x1C0 JUMP JUMPDEST DUP1 PUSH1 0x5 SHL PUSH1 0x40 MLOAD PUSH1 0x1F NOT PUSH1 0x3F DUP4 ADD AND DUP2 ADD DUP2 DUP2 LT DUP6 DUP3 GT OR ISZERO PUSH2 0x14C JUMPI PUSH2 0x14C PUSH2 0x1C0 JUMP JUMPDEST PUSH1 0x40 MSTORE DUP3 DUP2 MSTORE DUP6 DUP2 ADD SWAP4 POP DUP5 DUP7 ADD DUP3 DUP7 ADD DUP8 ADD DUP11 LT ISZERO PUSH2 0x16A JUMPI DUP8 DUP9 REVERT JUMPDEST DUP8 SWAP6 POP JUMPDEST DUP4 DUP7 LT ISZERO PUSH2 0x18C JUMPI DUP1 MLOAD DUP6 MSTORE PUSH1 0x1 SWAP6 SWAP1 SWAP6 ADD SWAP5 SWAP4 DUP7 ADD SWAP4 DUP7 ADD PUSH2 0x16E JUMP JUMPDEST POP SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 NOT DUP3 EQ ISZERO PUSH2 0x1B9 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 DUP2 REVERT JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH2 0x7A6 DUP1 PUSH2 0x1E5 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x88 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x609FF1BD GT PUSH2 0x5B JUMPI DUP1 PUSH4 0x609FF1BD EQ PUSH2 0x10D JUMPI DUP1 PUSH4 0x9E7B8D61 EQ PUSH2 0x123 JUMPI DUP1 PUSH4 0xA3EC138D EQ PUSH2 0x136 JUMPI DUP1 PUSH4 0xE2BA53F0 EQ PUSH2 0x1A7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x121B93F EQ PUSH2 0x8D JUMPI DUP1 PUSH4 0x13CF08B EQ PUSH2 0xA2 JUMPI DUP1 PUSH4 0x2E4176CF EQ PUSH2 0xCF JUMPI DUP1 PUSH4 0x5C19A95C EQ PUSH2 0xFA JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xA0 PUSH2 0x9B CALLDATASIZE PUSH1 0x4 PUSH2 0x70F JUMP JUMPDEST PUSH2 0x1AF JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB5 PUSH2 0xB0 CALLDATASIZE PUSH1 0x4 PUSH2 0x70F JUMP JUMPDEST PUSH2 0x2B4 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP3 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 SLOAD PUSH2 0xE2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xC6 JUMP JUMPDEST PUSH2 0xA0 PUSH2 0x108 CALLDATASIZE PUSH1 0x4 PUSH2 0x6E1 JUMP JUMPDEST PUSH2 0x2E2 JUMP JUMPDEST PUSH2 0x115 PUSH2 0x4EF JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xC6 JUMP JUMPDEST PUSH2 0xA0 PUSH2 0x131 CALLDATASIZE PUSH1 0x4 PUSH2 0x6E1 JUMP JUMPDEST PUSH2 0x588 JUMP JUMPDEST PUSH2 0x178 PUSH2 0x144 CALLDATASIZE PUSH1 0x4 PUSH2 0x6E1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP1 SLOAD SWAP2 DUP2 ADD SLOAD PUSH1 0x2 SWAP1 SWAP2 ADD SLOAD PUSH1 0xFF DUP3 AND SWAP2 PUSH2 0x100 SWAP1 DIV PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP5 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 SWAP4 DUP5 MSTORE SWAP2 ISZERO ISZERO PUSH1 0x20 DUP5 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH2 0x115 PUSH2 0x6A0 JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH2 0x208 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH20 0x486173206E6F20726967687420746F20766F7465 PUSH1 0x60 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 DUP2 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x24E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xE PUSH1 0x24 DUP3 ADD MSTORE PUSH14 0x20B63932B0B23C903B37BA32B217 PUSH1 0x91 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 ADD DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x2 DUP1 DUP3 ADD DUP4 SWAP1 SSTORE DUP2 SLOAD DUP2 SLOAD SWAP1 SWAP2 SWAP1 DUP5 SWAP1 DUP2 LT PUSH2 0x28B JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH1 0x0 DUP3 DUP3 SLOAD PUSH2 0x2AB SWAP2 SWAP1 PUSH2 0x727 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x2C4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 PUSH1 0x2 SWAP1 SWAP2 MUL ADD DUP1 SLOAD PUSH1 0x1 SWAP1 SWAP2 ADD SLOAD SWAP1 SWAP2 POP DUP3 JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SWAP1 DUP2 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x33D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x12 PUSH1 0x24 DUP3 ADD MSTORE PUSH18 0x2CB7BA9030B63932B0B23C903B37BA32B217 PUSH1 0x71 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND CALLER EQ ISZERO PUSH2 0x396 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x53656C662D64656C65676174696F6E20697320646973616C6C6F7765642E0000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 ADD SLOAD PUSH2 0x100 SWAP1 DIV AND ISZERO PUSH2 0x43B JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 ADD SLOAD PUSH2 0x100 SWAP1 DIV SWAP1 SWAP2 AND SWAP1 CALLER DUP3 EQ ISZERO PUSH2 0x436 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x19 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x466F756E64206C6F6F7020696E2064656C65676174696F6E2E00000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH2 0x396 JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 ADD DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT AND PUSH2 0x100 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 OR DUP4 OR SWAP1 SWAP2 SSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP3 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SWAP1 DUP2 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x4D0 JUMPI DUP2 SLOAD PUSH1 0x2 DUP3 DUP2 ADD SLOAD DUP2 SLOAD DUP2 LT PUSH2 0x4A5 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH1 0x0 DUP3 DUP3 SLOAD PUSH2 0x4C5 SWAP2 SWAP1 PUSH2 0x727 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP PUSH2 0x4EA SWAP1 POP JUMP JUMPDEST DUP2 SLOAD DUP2 SLOAD DUP3 SWAP1 PUSH1 0x0 SWAP1 PUSH2 0x4E4 SWAP1 DUP5 SWAP1 PUSH2 0x727 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST PUSH1 0x2 SLOAD DUP2 LT ISZERO PUSH2 0x583 JUMPI DUP2 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x520 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD GT ISZERO PUSH2 0x571 JUMPI PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x559 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD SWAP2 POP DUP1 SWAP3 POP JUMPDEST DUP1 PUSH2 0x57B DUP2 PUSH2 0x73F JUMP JUMPDEST SWAP2 POP POP PUSH2 0x4F4 JUMP JUMPDEST POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x5F3 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x28 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C79206368616972706572736F6E2063616E206769766520726967687420 PUSH1 0x44 DUP3 ADD MSTORE PUSH8 0x3A37903B37BA3297 PUSH1 0xC1 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x660 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x18 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x54686520766F74657220616C726561647920766F7465642E0000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD ISZERO PUSH2 0x683 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 PUSH2 0x6AC PUSH2 0x4EF JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x6CA JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x0 ADD SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x6F2 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x708 JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x720 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 NOT DUP3 GT ISZERO PUSH2 0x73A JUMPI PUSH2 0x73A PUSH2 0x75A JUMP JUMPDEST POP ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 NOT DUP3 EQ ISZERO PUSH2 0x753 JUMPI PUSH2 0x753 PUSH2 0x75A JUMP JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 POP SHR 0xA8 SWAP2 DUP11 0x2B 0xB7 SWAP2 DUP10 0xB3 0xEE 0xB5 PUSH29 0x9F7A2796D5AE6BD711F7B918FCA2903BE72D7A64736F6C634300080400 CALLER ",
"sourceMap": "157:4362:0:-:0;;;958:481;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1012:11;:24;;-1:-1:-1;;;;;;1012:24:0;1026:10;1012:24;;;;;1046:19;;1012:24;1046:19;;;;;;;:30;1087:346;1108:13;:20;1104:1;:24;1087:346;;;1312:9;1327:94;;;;;;;;1360:13;1374:1;1360:16;;;;;;-1:-1:-1;;;1360:16:0;;;;;;;;;;;;;;;;;;;;1327:94;;1405:1;1327:94;;;;;;1312:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1130:3;;;;:::i;:::-;;;;1087:346;;;;958:481;157:4362;;14:1161:1;109:6;140:2;183;171:9;162:7;158:23;154:32;151:2;;;204:6;196;189:22;151:2;236:16;;-1:-1:-1;;;;;301:14:1;;;298:2;;;333:6;325;318:22;298:2;376:6;365:9;361:22;351:32;;421:7;414:4;410:2;406:13;402:27;392:2;;448:6;440;433:22;392:2;482;476:9;504:2;500;497:10;494:2;;;510:18;;:::i;:::-;556:2;553:1;549:10;588:2;582:9;651:2;647:7;642:2;638;634:11;630:25;622:6;618:38;706:6;694:10;691:22;686:2;674:10;671:18;668:46;665:2;;;717:18;;:::i;:::-;753:2;746:22;803:18;;;837:15;;;;-1:-1:-1;872:11:1;;;902;;;898:20;;895:33;-1:-1:-1;892:2:1;;;946:6;938;931:22;892:2;973:6;964:15;;988:156;1002:2;999:1;996:9;988:156;;;1059:10;;1047:23;;1020:1;1013:9;;;;;1090:12;;;;1122;;988:156;;;-1:-1:-1;1163:6:1;120:1055;-1:-1:-1;;;;;;;;120:1055:1:o;1180:236::-;1219:3;-1:-1:-1;;1240:17:1;;1237:2;;;-1:-1:-1;;;1280:33:1;;1336:4;1333:1;1326:15;1366:4;1287:3;1354:17;1237:2;-1:-1:-1;1408:1:1;1397:13;;1227:189::o;1421:127::-;1482:10;1477:3;1473:20;1470:1;1463:31;1513:4;1510:1;1503:15;1537:4;1534:1;1527:15;1453:95;157:4362:0;;;;;;"
},
"deployedBytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:4693:1",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:1",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "84:236:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "130:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "139:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "147:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "132:6:1"
},
"nodeType": "YulFunctionCall",
"src": "132:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "132:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "105:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "114:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "101:3:1"
},
"nodeType": "YulFunctionCall",
"src": "101:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "126:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "97:3:1"
},
"nodeType": "YulFunctionCall",
"src": "97:32:1"
},
"nodeType": "YulIf",
"src": "94:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "165:36:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "191:9:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "178:12:1"
},
"nodeType": "YulFunctionCall",
"src": "178:23:1"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "169:5:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "264:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "273:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "281:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "266:6:1"
},
"nodeType": "YulFunctionCall",
"src": "266:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "266:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "223:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "234:5:1"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "249:3:1",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "254:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "245:3:1"
},
"nodeType": "YulFunctionCall",
"src": "245:11:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "258:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "241:3:1"
},
"nodeType": "YulFunctionCall",
"src": "241:19:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "230:3:1"
},
"nodeType": "YulFunctionCall",
"src": "230:31:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "220:2:1"
},
"nodeType": "YulFunctionCall",
"src": "220:42:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "213:6:1"
},
"nodeType": "YulFunctionCall",
"src": "213:50:1"
},
"nodeType": "YulIf",
"src": "210:2:1"
},
{
"nodeType": "YulAssignment",
"src": "299:15:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "309:5:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "299:6:1"
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "50:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "61:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "73:6:1",
"type": ""
}
],
"src": "14:306:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "395:120:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "441:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "450:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "458:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "443:6:1"
},
"nodeType": "YulFunctionCall",
"src": "443:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "443:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "416:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "425:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "412:3:1"
},
"nodeType": "YulFunctionCall",
"src": "412:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "437:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "408:3:1"
},
"nodeType": "YulFunctionCall",
"src": "408:32:1"
},
"nodeType": "YulIf",
"src": "405:2:1"
},
{
"nodeType": "YulAssignment",
"src": "476:33:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "499:9:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "486:12:1"
},
"nodeType": "YulFunctionCall",
"src": "486:23:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "476:6:1"
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "361:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "372:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "384:6:1",
"type": ""
}
],
"src": "325:190:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "621:102:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "631:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "643:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "654:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "639:3:1"
},
"nodeType": "YulFunctionCall",
"src": "639:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "631:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "673:9:1"
},
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "688:6:1"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "704:3:1",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "709:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "700:3:1"
},
"nodeType": "YulFunctionCall",
"src": "700:11:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "713:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "696:3:1"
},
"nodeType": "YulFunctionCall",
"src": "696:19:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "684:3:1"
},
"nodeType": "YulFunctionCall",
"src": "684:32:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "666:6:1"
},
"nodeType": "YulFunctionCall",
"src": "666:51:1"
},
"nodeType": "YulExpressionStatement",
"src": "666:51:1"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "590:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "601:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "612:4:1",
"type": ""
}
],
"src": "520:203:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "829:76:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "839:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "851:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "862:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "847:3:1"
},
"nodeType": "YulFunctionCall",
"src": "847:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "839:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "881:9:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "892:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "874:6:1"
},
"nodeType": "YulFunctionCall",
"src": "874:25:1"
},
"nodeType": "YulExpressionStatement",
"src": "874:25:1"
}
]
},
"name": "abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "798:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "809:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "820:4:1",
"type": ""
}
],
"src": "728:177:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1039:119:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1049:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1061:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1072:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1057:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1057:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1049:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1091:9:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1102:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1084:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1084:25:1"
},
"nodeType": "YulExpressionStatement",
"src": "1084:25:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1129:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1140:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1125:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1125:18:1"
},
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1145:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1118:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1118:34:1"
},
"nodeType": "YulExpressionStatement",
"src": "1118:34:1"
}
]
},
"name": "abi_encode_tuple_t_bytes32_t_uint256__to_t_bytes32_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1000:9:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1011:6:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1019:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1030:4:1",
"type": ""
}
],
"src": "910:248:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1337:170:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1354:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1365:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1347:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1347:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "1347:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1388:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1399:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1384:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1384:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1404:2:1",
"type": "",
"value": "20"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1377:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1377:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "1377:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1427:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1438:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1423:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1423:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "1443:22:1",
"type": "",
"value": "Has no right to vote"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1416:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1416:50:1"
},
"nodeType": "YulExpressionStatement",
"src": "1416:50:1"
},
{
"nodeType": "YulAssignment",
"src": "1475:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1487:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1498:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1483:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1483:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1475:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1314:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1328:4:1",
"type": ""
}
],
"src": "1163:344:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1686:164:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1703:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1714:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1696:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1696:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "1696:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1737:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1748:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1733:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1733:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1753:2:1",
"type": "",
"value": "14"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1726:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1726:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "1726:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1776:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1787:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1772:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1772:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "1792:16:1",
"type": "",
"value": "Already voted."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1765:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1765:44:1"
},
"nodeType": "YulExpressionStatement",
"src": "1765:44:1"
},
{
"nodeType": "YulAssignment",
"src": "1818:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1830:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1841:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1826:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1826:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1818:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1663:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1677:4:1",
"type": ""
}
],
"src": "1512:338:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2029:168:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2046:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2057:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2039:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2039:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "2039:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2080:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2091:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2076:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2076:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2096:2:1",
"type": "",
"value": "18"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2069:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2069:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "2069:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2119:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2130:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2115:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2115:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "2135:20:1",
"type": "",
"value": "You already voted."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2108:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2108:48:1"
},
"nodeType": "YulExpressionStatement",
"src": "2108:48:1"
},
{
"nodeType": "YulAssignment",
"src": "2165:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2177:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2188:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2173:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2173:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2165:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2006:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2020:4:1",
"type": ""
}
],
"src": "1855:342:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2376:230:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2393:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2404:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2386:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2386:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "2386:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2427:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2438:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2423:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2423:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2443:2:1",
"type": "",
"value": "40"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2416:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2416:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "2416:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2466:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2477:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2462:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2462:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "2482:34:1",
"type": "",
"value": "Only chairperson can give right "
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2455:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2455:62:1"
},
"nodeType": "YulExpressionStatement",
"src": "2455:62:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2537:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2548:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2533:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2533:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "2553:10:1",
"type": "",
"value": "to vote."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2526:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2526:38:1"
},
"nodeType": "YulExpressionStatement",
"src": "2526:38:1"
},
{
"nodeType": "YulAssignment",
"src": "2573:27:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2585:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2596:3:1",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2581:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2581:19:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2573:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2353:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2367:4:1",
"type": ""
}
],
"src": "2202:404:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2785:175:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2802:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2813:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2795:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2795:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "2795:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2836:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2847:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2832:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2832:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2852:2:1",
"type": "",
"value": "25"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2825:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2825:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "2825:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2875:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2886:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2871:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2871:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "2891:27:1",
"type": "",
"value": "Found loop in delegation."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2864:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2864:55:1"
},
"nodeType": "YulExpressionStatement",
"src": "2864:55:1"
},
{
"nodeType": "YulAssignment",
"src": "2928:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2940:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2951:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2936:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2936:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2928:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2762:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2776:4:1",
"type": ""
}
],
"src": "2611:349:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3139:174:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3156:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3167:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3149:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3149:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "3149:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3190:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3201:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3186:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3186:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3206:2:1",
"type": "",
"value": "24"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3179:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3179:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "3179:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3229:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3240:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3225:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3225:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "3245:26:1",
"type": "",
"value": "The voter already voted."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3218:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3218:54:1"
},
"nodeType": "YulExpressionStatement",
"src": "3218:54:1"
},
{
"nodeType": "YulAssignment",
"src": "3281:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3293:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3304:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3289:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3289:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3281:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3116:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3130:4:1",
"type": ""
}
],
"src": "2965:348:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3492:180:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3509:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3520:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3502:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3502:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "3502:21:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3543:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3554:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3539:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3539:18:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3559:2:1",
"type": "",
"value": "30"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3532:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3532:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "3532:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3582:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3593:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3578:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3578:18:1"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "3598:32:1",
"type": "",
"value": "Self-delegation is disallowed."
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3571:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3571:60:1"
},
"nodeType": "YulExpressionStatement",
"src": "3571:60:1"
},
{
"nodeType": "YulAssignment",
"src": "3640:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3652:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3663:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3648:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3648:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3640:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3469:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3483:4:1",
"type": ""
}
],
"src": "3318:354:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3778:76:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3788:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3800:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3811:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3796:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3796:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3788:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3830:9:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3841:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3823:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3823:25:1"
},
"nodeType": "YulExpressionStatement",
"src": "3823:25:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3747:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3758:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3769:4:1",
"type": ""
}
],
"src": "3677:177:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4038:248:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4048:27:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4060:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4071:3:1",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4056:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4056:19:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4048:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4091:9:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4102:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4084:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4084:25:1"
},
"nodeType": "YulExpressionStatement",
"src": "4084:25:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4129:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4140:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4125:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4125:18:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "4159:6:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4152:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4152:14:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4145:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4145:22:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4118:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4118:50:1"
},
"nodeType": "YulExpressionStatement",
"src": "4118:50:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4188:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4199:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4184:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4184:18:1"
},
{
"arguments": [
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "4208:6:1"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4224:3:1",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4229:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "4220:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4220:11:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4233:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4216:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4216:19:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4204:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4204:32:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4177:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4177:60:1"
},
"nodeType": "YulExpressionStatement",
"src": "4177:60:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4257:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4268:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4253:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4253:18:1"
},
{
"name": "value3",
"nodeType": "YulIdentifier",
"src": "4273:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4246:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4246:34:1"
},
"nodeType": "YulExpressionStatement",
"src": "4246:34:1"
}
]
},
"name": "abi_encode_tuple_t_uint256_t_bool_t_address_t_uint256__to_t_uint256_t_bool_t_address_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3983:9:1",
"type": ""
},
{
"name": "value3",
"nodeType": "YulTypedName",
"src": "3994:6:1",
"type": ""
},
{
"name": "value2",
"nodeType": "YulTypedName",
"src": "4002:6:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "4010:6:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4018:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4029:4:1",
"type": ""
}
],
"src": "3859:427:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4339:80:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4366:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "4368:16:1"
},
"nodeType": "YulFunctionCall",
"src": "4368:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "4368:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4355:1:1"
},
{
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4362:1:1"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4358:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4358:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4352:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4352:13:1"
},
"nodeType": "YulIf",
"src": "4349:2:1"
},
{
"nodeType": "YulAssignment",
"src": "4397:16:1",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4408:1:1"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4411:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4404:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4404:9:1"
},
"variableNames": [
{
"name": "sum",
"nodeType": "YulIdentifier",
"src": "4397:3:1"
}
]
}
]
},
"name": "checked_add_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "4322:1:1",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "4325:1:1",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nodeType": "YulTypedName",
"src": "4331:3:1",
"type": ""
}
],
"src": "4291:128:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4471:88:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4502:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "4504:16:1"
},
"nodeType": "YulFunctionCall",
"src": "4504:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "4504:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4487:5:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4498:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4494:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4494:6:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "4484:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4484:17:1"
},
"nodeType": "YulIf",
"src": "4481:2:1"
},
{
"nodeType": "YulAssignment",
"src": "4533:20:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4544:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4551:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4540:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4540:13:1"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "4533:3:1"
}
]
}
]
},
"name": "increment_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4453:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "4463:3:1",
"type": ""
}
],
"src": "4424:135:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4596:95:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4613:1:1",
"type": "",
"value": "0"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4620:3:1",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4625:10:1",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "4616:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4616:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4606:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4606:31:1"
},
"nodeType": "YulExpressionStatement",
"src": "4606:31:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4653:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4656:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4646:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4646:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "4646:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4677:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4680:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "4670:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4670:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "4670:15:1"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "4564:127:1"
}
]
},
"contents": "{\n { }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(value0, value0) }\n value0 := value\n }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n value0 := calldataload(headStart)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_encode_tuple_t_bytes32_t_uint256__to_t_bytes32_t_uint256__fromStack_reversed(headStart, value1, value0) -> tail\n {\n tail := add(headStart, 64)\n mstore(headStart, value0)\n mstore(add(headStart, 32), value1)\n }\n function abi_encode_tuple_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 20)\n mstore(add(headStart, 64), \"Has no right to vote\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 14)\n mstore(add(headStart, 64), \"Already voted.\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 18)\n mstore(add(headStart, 64), \"You already voted.\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 40)\n mstore(add(headStart, 64), \"Only chairperson can give right \")\n mstore(add(headStart, 96), \"to vote.\")\n tail := add(headStart, 128)\n }\n function abi_encode_tuple_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 25)\n mstore(add(headStart, 64), \"Found loop in delegation.\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 24)\n mstore(add(headStart, 64), \"The voter already voted.\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 30)\n mstore(add(headStart, 64), \"Self-delegation is disallowed.\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function abi_encode_tuple_t_uint256_t_bool_t_address_t_uint256__to_t_uint256_t_bool_t_address_t_uint256__fromStack_reversed(headStart, value3, value2, value1, value0) -> tail\n {\n tail := add(headStart, 128)\n mstore(headStart, value0)\n mstore(add(headStart, 32), iszero(iszero(value1)))\n mstore(add(headStart, 64), and(value2, sub(shl(160, 1), 1)))\n mstore(add(headStart, 96), value3)\n }\n function checked_add_t_uint256(x, y) -> sum\n {\n if gt(x, not(y)) { panic_error_0x11() }\n sum := add(x, y)\n }\n function increment_t_uint256(value) -> ret\n {\n if eq(value, not(0)) { panic_error_0x11() }\n ret := add(value, 1)\n }\n function panic_error_0x11()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n}",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600436106100885760003560e01c8063609ff1bd1161005b578063609ff1bd1461010d5780639e7b8d6114610123578063a3ec138d14610136578063e2ba53f0146101a757600080fd5b80630121b93f1461008d578063013cf08b146100a25780632e4176cf146100cf5780635c19a95c146100fa575b600080fd5b6100a061009b36600461070f565b6101af565b005b6100b56100b036600461070f565b6102b4565b604080519283526020830191909152015b60405180910390f35b6000546100e2906001600160a01b031681565b6040516001600160a01b0390911681526020016100c6565b6100a06101083660046106e1565b6102e2565b6101156104ef565b6040519081526020016100c6565b6100a06101313660046106e1565b610588565b6101786101443660046106e1565b600160208190526000918252604090912080549181015460029091015460ff82169161010090046001600160a01b03169084565b6040516100c6949392919093845291151560208401526001600160a01b03166040830152606082015260800190565b6101156106a0565b33600090815260016020526040902080546102085760405162461bcd60e51b8152602060048201526014602482015273486173206e6f20726967687420746f20766f746560601b60448201526064015b60405180910390fd5b600181015460ff161561024e5760405162461bcd60e51b815260206004820152600e60248201526d20b63932b0b23c903b37ba32b21760911b60448201526064016101ff565b6001818101805460ff191690911790556002808201839055815481549091908490811061028b57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010160008282546102ab9190610727565b90915550505050565b600281815481106102c457600080fd5b60009182526020909120600290910201805460019091015490915082565b3360009081526001602081905260409091209081015460ff161561033d5760405162461bcd60e51b81526020600482015260126024820152712cb7ba9030b63932b0b23c903b37ba32b21760711b60448201526064016101ff565b6001600160a01b0382163314156103965760405162461bcd60e51b815260206004820152601e60248201527f53656c662d64656c65676174696f6e20697320646973616c6c6f7765642e000060448201526064016101ff565b6001600160a01b03828116600090815260016020819052604090912001546101009004161561043b576001600160a01b0391821660009081526001602081905260409091200154610100900490911690338214156104365760405162461bcd60e51b815260206004820152601960248201527f466f756e64206c6f6f7020696e2064656c65676174696f6e2e0000000000000060448201526064016101ff565b610396565b600181810180546001600160a81b0319166101006001600160a01b03861690810291909117831790915560009081526020829052604090209081015460ff16156104d0578154600282810154815481106104a557634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010160008282546104c59190610727565b909155506104ea9050565b8154815482906000906104e4908490610727565b90915550505b505050565b600080805b60025481101561058357816002828154811061052057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101541115610571576002818154811061055957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016001015491508092505b8061057b8161073f565b9150506104f4565b505090565b6000546001600160a01b031633146105f35760405162461bcd60e51b815260206004820152602860248201527f4f6e6c79206368616972706572736f6e2063616e2067697665207269676874206044820152673a37903b37ba329760c11b60648201526084016101ff565b6001600160a01b0381166000908152600160208190526040909120015460ff16156106605760405162461bcd60e51b815260206004820152601860248201527f54686520766f74657220616c726561647920766f7465642e000000000000000060448201526064016101ff565b6001600160a01b0381166000908152600160205260409020541561068357600080fd5b6001600160a01b0316600090815260016020819052604090912055565b600060026106ac6104ef565b815481106106ca57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000154905090565b6000602082840312156106f2578081fd5b81356001600160a01b0381168114610708578182fd5b9392505050565b600060208284031215610720578081fd5b5035919050565b6000821982111561073a5761073a61075a565b500190565b60006000198214156107535761075361075a565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220501ca8918a2bb79189b3eeb57c9f7a2796d5ae6bd711f7b918fca2903be72d7a64736f6c63430008040033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x88 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x609FF1BD GT PUSH2 0x5B JUMPI DUP1 PUSH4 0x609FF1BD EQ PUSH2 0x10D JUMPI DUP1 PUSH4 0x9E7B8D61 EQ PUSH2 0x123 JUMPI DUP1 PUSH4 0xA3EC138D EQ PUSH2 0x136 JUMPI DUP1 PUSH4 0xE2BA53F0 EQ PUSH2 0x1A7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x121B93F EQ PUSH2 0x8D JUMPI DUP1 PUSH4 0x13CF08B EQ PUSH2 0xA2 JUMPI DUP1 PUSH4 0x2E4176CF EQ PUSH2 0xCF JUMPI DUP1 PUSH4 0x5C19A95C EQ PUSH2 0xFA JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xA0 PUSH2 0x9B CALLDATASIZE PUSH1 0x4 PUSH2 0x70F JUMP JUMPDEST PUSH2 0x1AF JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB5 PUSH2 0xB0 CALLDATASIZE PUSH1 0x4 PUSH2 0x70F JUMP JUMPDEST PUSH2 0x2B4 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD SWAP3 DUP4 MSTORE PUSH1 0x20 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 SLOAD PUSH2 0xE2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xC6 JUMP JUMPDEST PUSH2 0xA0 PUSH2 0x108 CALLDATASIZE PUSH1 0x4 PUSH2 0x6E1 JUMP JUMPDEST PUSH2 0x2E2 JUMP JUMPDEST PUSH2 0x115 PUSH2 0x4EF JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0xC6 JUMP JUMPDEST PUSH2 0xA0 PUSH2 0x131 CALLDATASIZE PUSH1 0x4 PUSH2 0x6E1 JUMP JUMPDEST PUSH2 0x588 JUMP JUMPDEST PUSH2 0x178 PUSH2 0x144 CALLDATASIZE PUSH1 0x4 PUSH2 0x6E1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP1 SLOAD SWAP2 DUP2 ADD SLOAD PUSH1 0x2 SWAP1 SWAP2 ADD SLOAD PUSH1 0xFF DUP3 AND SWAP2 PUSH2 0x100 SWAP1 DIV PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP5 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC6 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 SWAP4 DUP5 MSTORE SWAP2 ISZERO ISZERO PUSH1 0x20 DUP5 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x40 DUP4 ADD MSTORE PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x80 ADD SWAP1 JUMP JUMPDEST PUSH2 0x115 PUSH2 0x6A0 JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH2 0x208 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x14 PUSH1 0x24 DUP3 ADD MSTORE PUSH20 0x486173206E6F20726967687420746F20766F7465 PUSH1 0x60 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 DUP2 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x24E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xE PUSH1 0x24 DUP3 ADD MSTORE PUSH14 0x20B63932B0B23C903B37BA32B217 PUSH1 0x91 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 ADD DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x2 DUP1 DUP3 ADD DUP4 SWAP1 SSTORE DUP2 SLOAD DUP2 SLOAD SWAP1 SWAP2 SWAP1 DUP5 SWAP1 DUP2 LT PUSH2 0x28B JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH1 0x0 DUP3 DUP3 SLOAD PUSH2 0x2AB SWAP2 SWAP1 PUSH2 0x727 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x2C4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 PUSH1 0x2 SWAP1 SWAP2 MUL ADD DUP1 SLOAD PUSH1 0x1 SWAP1 SWAP2 ADD SLOAD SWAP1 SWAP2 POP DUP3 JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SWAP1 DUP2 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x33D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x12 PUSH1 0x24 DUP3 ADD MSTORE PUSH18 0x2CB7BA9030B63932B0B23C903B37BA32B217 PUSH1 0x71 SHL PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND CALLER EQ ISZERO PUSH2 0x396 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x1E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x53656C662D64656C65676174696F6E20697320646973616C6C6F7765642E0000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 ADD SLOAD PUSH2 0x100 SWAP1 DIV AND ISZERO PUSH2 0x43B JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 ADD SLOAD PUSH2 0x100 SWAP1 DIV SWAP1 SWAP2 AND SWAP1 CALLER DUP3 EQ ISZERO PUSH2 0x436 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x19 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x466F756E64206C6F6F7020696E2064656C65676174696F6E2E00000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH2 0x396 JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 ADD DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA8 SHL SUB NOT AND PUSH2 0x100 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 OR DUP4 OR SWAP1 SWAP2 SSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP3 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SWAP1 DUP2 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x4D0 JUMPI DUP2 SLOAD PUSH1 0x2 DUP3 DUP2 ADD SLOAD DUP2 SLOAD DUP2 LT PUSH2 0x4A5 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH1 0x0 DUP3 DUP3 SLOAD PUSH2 0x4C5 SWAP2 SWAP1 PUSH2 0x727 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP PUSH2 0x4EA SWAP1 POP JUMP JUMPDEST DUP2 SLOAD DUP2 SLOAD DUP3 SWAP1 PUSH1 0x0 SWAP1 PUSH2 0x4E4 SWAP1 DUP5 SWAP1 PUSH2 0x727 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP1 JUMPDEST PUSH1 0x2 SLOAD DUP2 LT ISZERO PUSH2 0x583 JUMPI DUP2 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x520 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD GT ISZERO PUSH2 0x571 JUMPI PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x559 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD SWAP2 POP DUP1 SWAP3 POP JUMPDEST DUP1 PUSH2 0x57B DUP2 PUSH2 0x73F JUMP JUMPDEST SWAP2 POP POP PUSH2 0x4F4 JUMP JUMPDEST POP POP SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x5F3 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x28 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4F6E6C79206368616972706572736F6E2063616E206769766520726967687420 PUSH1 0x44 DUP3 ADD MSTORE PUSH8 0x3A37903B37BA3297 PUSH1 0xC1 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 ADD SLOAD PUSH1 0xFF AND ISZERO PUSH2 0x660 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x18 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x54686520766F74657220616C726561647920766F7465642E0000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x1FF JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD ISZERO PUSH2 0x683 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 PUSH2 0x6AC PUSH2 0x4EF JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x6CA JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x0 ADD SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x6F2 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x708 JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x720 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 NOT DUP3 GT ISZERO PUSH2 0x73A JUMPI PUSH2 0x73A PUSH2 0x75A JUMP JUMPDEST POP ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 NOT DUP3 EQ ISZERO PUSH2 0x753 JUMPI PUSH2 0x753 PUSH2 0x75A JUMP JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 POP SHR 0xA8 SWAP2 DUP11 0x2B 0xB7 SWAP2 DUP10 0xB3 0xEE 0xB5 PUSH29 0x9F7A2796D5AE6BD711F7B918FCA2903BE72D7A64736F6C634300080400 CALLER ",
"sourceMap": "157:4362:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3173:458;;;;;;:::i;:::-;;:::i;:::-;;794:27;;;;;;:::i;:::-;;:::i;:::-;;;;1084:25:1;;;1140:2;1125:18;;1118:34;;;;1057:18;794:27:0;;;;;;;;715:26;;;;;-1:-1:-1;;;;;715:26:0;;;;;;-1:-1:-1;;;;;684:32:1;;;666:51;;654:2;639:18;715:26:0;621:102:1;2078:907:0;;;;;;:::i;:::-;;:::i;3817:365::-;;;:::i;:::-;;;874:25:1;;;862:2;847:18;3817:365:0;829:76:1;1599:355:0;;;;;;:::i;:::-;;:::i;748:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;748:39:0;;;;;;;;;;;;;4084:25:1;;;4152:14;;4145:22;4140:2;4125:18;;4118:50;-1:-1:-1;;;;;4204:32:1;4199:2;4184:18;;4177:60;4268:2;4253:18;;4246:34;4071:3;4056:19;;4038:248;4373:144:0;;;:::i;3173:458::-;3249:10;3219:20;3242:18;;;:6;:18;;;;;3278:13;;3270:51;;;;-1:-1:-1;;;3270:51:0;;1365:2:1;3270:51:0;;;1347:21:1;1404:2;1384:18;;;1377:30;-1:-1:-1;;;1423:18:1;;;1416:50;1483:18;;3270:51:0;;;;;;;;;3340:12;;;;;;3339:13;3331:40;;;;-1:-1:-1;;;3331:40:0;;1714:2:1;3331:40:0;;;1696:21:1;1753:2;1733:18;;;1726:30;-1:-1:-1;;;1772:18:1;;;1765:44;1826:18;;3331:40:0;1686:164:1;3331:40:0;3396:4;3381:12;;;:19;;-1:-1:-1;;3381:19:0;;;;;;3410:11;;;;:22;;;3611:13;;3578:19;;3611:13;;3410:11;3424:8;;3578:19;;;;-1:-1:-1;;;3578:19:0;;;;;;;;;;;;;;;;;;;:29;;;:46;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;3173:458:0:o;794:27::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;794:27:0;:::o;2078:907::-;2155:10;2125:20;2148:18;;;:6;:18;;;;;;;;2185:12;;;;;;2184:13;2176:44;;;;-1:-1:-1;;;2176:44:0;;2057:2:1;2176:44:0;;;2039:21:1;2096:2;2076:18;;;2069:30;-1:-1:-1;;;2115:18:1;;;2108:48;2173:18;;2176:44:0;2029:168:1;2176:44:0;-1:-1:-1;;;;;2238:16:0;;2244:10;2238:16;;2230:59;;;;-1:-1:-1;;;2230:59:0;;3520:2:1;2230:59:0;;;3502:21:1;3559:2;3539:18;;;3532:30;3598:32;3578:18;;;3571:60;3648:18;;2230:59:0;3492:180:1;2230:59:0;-1:-1:-1;;;;;2307:10:0;;;2338:1;2307:10;;;:6;:10;;;;;;;;:19;;;;;;:33;2300:223;;-1:-1:-1;;;;;2361:10:0;;;;;;;:6;:10;;;;;;;;:19;;;;;;;;;2472:10;2466:16;;;2458:54;;;;-1:-1:-1;;;2458:54:0;;2813:2:1;2458:54:0;;;2795:21:1;2852:2;2832:18;;;2825:30;2891:27;2871:18;;;2864:55;2936:18;;2458:54:0;2785:175:1;2458:54:0;2300:223;;;2547:4;2532:12;;;:19;;-1:-1:-1;;;;;;2561:20:0;2532:19;-1:-1:-1;;;;;2561:20:0;;;;;;;;;;;;;;-1:-1:-1;2617:10:0;;;;;;;;;;2641:15;;;;2532:19;2641:15;2637:342;;;2808:13;;2769:9;2779:14;;;;2769:25;;;;;;-1:-1:-1;;;2769:25:0;;;;;;;;;;;;;;;;;;;:35;;;:52;;;;;;;:::i;:::-;;;;-1:-1:-1;2637:342:0;;-1:-1:-1;2637:342:0;;2955:13;;2935:33;;:9;;2955:13;;2935:33;;2955:13;;2935:33;:::i;:::-;;;;-1:-1:-1;;2637:342:0;2078:907;;;:::o;3817:365::-;3877:21;;;3949:227;3970:9;:16;3966:20;;3949:227;;;4036:16;4011:9;4021:1;4011:12;;;;;;-1:-1:-1;;;4011:12:0;;;;;;;;;;;;;;;;;;;:22;;;:41;4007:159;;;4091:9;4101:1;4091:12;;;;;;-1:-1:-1;;;4091:12:0;;;;;;;;;;;;;;;;;;;:22;;;4072:41;;4150:1;4131:20;;4007:159;3988:3;;;;:::i;:::-;;;;3949:227;;;;3817:365;;:::o;1599:355::-;1691:11;;-1:-1:-1;;;;;1691:11:0;1677:10;:25;1656:112;;;;-1:-1:-1;;;1656:112:0;;2404:2:1;1656:112:0;;;2386:21:1;2443:2;2423:18;;;2416:30;2482:34;2462:18;;;2455:62;-1:-1:-1;;;2533:18:1;;;2526:38;2581:19;;1656:112:0;2376:230:1;1656:112:0;-1:-1:-1;;;;;1800:13:0;;;;;;:6;:13;;;;;;;;:19;;;;1799:20;1778:91;;;;-1:-1:-1;;;1778:91:0;;3167:2:1;1778:91:0;;;3149:21:1;3206:2;3186:18;;;3179:30;3245:26;3225:18;;;3218:54;3289:18;;1778:91:0;3139:174:1;1778:91:0;-1:-1:-1;;;;;1887:13:0;;;;;;:6;:13;;;;;:20;:25;1879:34;;;;;;-1:-1:-1;;;;;1923:13:0;;;;;1946:1;1923:13;;;;;;;;:24;1599:355::o;4373:144::-;4428:19;4477:9;4487:17;:15;:17::i;:::-;4477:28;;;;;;-1:-1:-1;;;4477:28:0;;;;;;;;;;;;;;;;;;;:33;;;4463:47;;4373:144;:::o;14:306:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;178:23;;-1:-1:-1;;;;;230:31:1;;220:42;;210:2;;281:6;273;266:22;210:2;309:5;84:236;-1:-1:-1;;;84:236:1:o;325:190::-;384:6;437:2;425:9;416:7;412:23;408:32;405:2;;;458:6;450;443:22;405:2;-1:-1:-1;486:23:1;;395:120;-1:-1:-1;395:120:1:o;4291:128::-;4331:3;4362:1;4358:6;4355:1;4352:13;4349:2;;;4368:18;;:::i;:::-;-1:-1:-1;4404:9:1;;4339:80::o;4424:135::-;4463:3;-1:-1:-1;;4484:17:1;;4481:2;;;4504:18;;:::i;:::-;-1:-1:-1;4551:1:1;4540:13;;4471:88::o;4564:127::-;4625:10;4620:3;4616:20;4613:1;4606:31;4656:4;4653:1;4646:15;4680:4;4677:1;4670:15"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "391600",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"chairperson()": "1082",
"delegate(address)": "infinite",
"giveRightToVote(address)": "23057",
"proposals(uint256)": "2843",
"vote(uint256)": "65401",
"voters(address)": "2995",
"winnerName()": "infinite",
"winningProposal()": "infinite"
}
},
"methodIdentifiers": {
"chairperson()": "2e4176cf",
"delegate(address)": "5c19a95c",
"giveRightToVote(address)": "9e7b8d61",
"proposals(uint256)": "013cf08b",
"vote(uint256)": "0121b93f",
"voters(address)": "a3ec138d",
"winnerName()": "e2ba53f0",
"winningProposal()": "609ff1bd"
}
},
"abi": [
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "proposalNames",
"type": "bytes32[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "chairperson",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "delegate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "voter",
"type": "address"
}
],
"name": "giveRightToVote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "proposals",
"outputs": [
{
"internalType": "bytes32",
"name": "name",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "voteCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposal",
"type": "uint256"
}
],
"name": "vote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "voters",
"outputs": [
{
"internalType": "uint256",
"name": "weight",
"type": "uint256"
},
{
"internalType": "bool",
"name": "voted",
"type": "bool"
},
{
"internalType": "address",
"name": "delegate",
"type": "address"
},
{
"internalType": "uint256",
"name": "vote",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winnerName",
"outputs": [
{
"internalType": "bytes32",
"name": "winnerName_",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winningProposal",
"outputs": [
{
"internalType": "uint256",
"name": "winningProposal_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.4+commit.c7e474f2"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "proposalNames",
"type": "bytes32[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "chairperson",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "delegate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "voter",
"type": "address"
}
],
"name": "giveRightToVote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "proposals",
"outputs": [
{
"internalType": "bytes32",
"name": "name",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "voteCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposal",
"type": "uint256"
}
],
"name": "vote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "voters",
"outputs": [
{
"internalType": "uint256",
"name": "weight",
"type": "uint256"
},
{
"internalType": "bool",
"name": "voted",
"type": "bool"
},
{
"internalType": "address",
"name": "delegate",
"type": "address"
},
{
"internalType": "uint256",
"name": "vote",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winnerName",
"outputs": [
{
"internalType": "bytes32",
"name": "winnerName_",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winningProposal",
"outputs": [
{
"internalType": "uint256",
"name": "winningProposal_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "Implements voting process along with vote delegation",
"kind": "dev",
"methods": {
"constructor": {
"details": "Create a new ballot to choose one of 'proposalNames'.",
"params": {
"proposalNames": "names of proposals"
}
},
"delegate(address)": {
"details": "Delegate your vote to the voter 'to'.",
"params": {
"to": "address to which vote is delegated"
}
},
"giveRightToVote(address)": {
"details": "Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.",
"params": {
"voter": "address of voter"
}
},
"vote(uint256)": {
"details": "Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.",
"params": {
"proposal": "index of proposal in the proposals array"
}
},
"winnerName()": {
"details": "Calls winningProposal() function to get the index of the winner contained in the proposals array and then",
"returns": {
"winnerName_": "the name of the winner"
}
},
"winningProposal()": {
"details": "Computes the winning proposal taking all previous votes into account.",
"returns": {
"winningProposal_": "index of winning proposal in the proposals array"
}
}
},
"title": "Ballot",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/3_Ballot.sol": "Ballot"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/3_Ballot.sol": {
"keccak256": "0xdd897b48a563d1d32369fdb327187dfcd2660159cfcd3787196bb6be6a312c8d",
"license": "GPL-3.0",
"urls": [
"bzz-raw://551d7a6d3e2abc66a7b37fbd8b0e4c07b43c72c3b55958e66ac421348311fed4",
"dweb:/ipfs/Qmd4XV9j79GPfv5cgVsg62vKzaLuf6igx7VSW2BKaUyF3w"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600080546001600160a01b0319163317905561010c806100326000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c80637b5d520b14604b57806397c333a2146053578063bae5e97b146053578063f851a440146059575b600080fd5b6051607b565b005b6051607d565b605f60c8565b604080516001600160a01b039092168252519081900360200190f35b565b6000546001600160a01b03163314607b576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000546001600160a01b03168156fea265627a7a72315820307f995f544739bebe66b6d4128e3f94332de4f08ab1c16706c7bc18c00c47ec64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER OR SWAP1 SSTORE PUSH2 0x10C DUP1 PUSH2 0x32 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x7B5D520B EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0x97C333A2 EQ PUSH1 0x53 JUMPI DUP1 PUSH4 0xBAE5E97B EQ PUSH1 0x53 JUMPI DUP1 PUSH4 0xF851A440 EQ PUSH1 0x59 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0x7B JUMP JUMPDEST STOP JUMPDEST PUSH1 0x51 PUSH1 0x7D JUMP JUMPDEST PUSH1 0x5F PUSH1 0xC8 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH1 0x7B JUMPI PUSH1 0x40 DUP1 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xA PUSH1 0x24 DUP3 ADD MSTORE PUSH10 0x27B7363C9030B236B4B7 PUSH1 0xB1 SHL PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 ADDRESS PUSH32 0x995F544739BEBE66B6D4128E3F94332DE4F08AB1C16706C7BC18C00C47EC6473 PUSH16 0x6C634300051100320000000000000000 ",
"sourceMap": "27:420:0:-;;;91:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;122:5:0;:18;;-1:-1:-1;;;;;;122:18:0;130:10;122:18;;;27:420;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060465760003560e01c80637b5d520b14604b57806397c333a2146053578063bae5e97b146053578063f851a440146059575b600080fd5b6051607b565b005b6051607d565b605f60c8565b604080516001600160a01b039092168252519081900360200190f35b565b6000546001600160a01b03163314607b576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000546001600160a01b03168156fea265627a7a72315820307f995f544739bebe66b6d4128e3f94332de4f08ab1c16706c7bc18c00c47ec64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x46 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x7B5D520B EQ PUSH1 0x4B JUMPI DUP1 PUSH4 0x97C333A2 EQ PUSH1 0x53 JUMPI DUP1 PUSH4 0xBAE5E97B EQ PUSH1 0x53 JUMPI DUP1 PUSH4 0xF851A440 EQ PUSH1 0x59 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x51 PUSH1 0x7B JUMP JUMPDEST STOP JUMPDEST PUSH1 0x51 PUSH1 0x7D JUMP JUMPDEST PUSH1 0x5F PUSH1 0xC8 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND DUP3 MSTORE MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x20 ADD SWAP1 RETURN JUMPDEST JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH1 0x7B JUMPI PUSH1 0x40 DUP1 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xA PUSH1 0x24 DUP3 ADD MSTORE PUSH10 0x27B7363C9030B236B4B7 PUSH1 0xB1 SHL PUSH1 0x44 DUP3 ADD MSTORE SWAP1 MLOAD SWAP1 DUP2 SWAP1 SUB PUSH1 0x64 ADD SWAP1 REVERT JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 ADDRESS PUSH32 0x995F544739BEBE66B6D4128E3F94332DE4F08AB1C16706C7BC18C00C47EC6473 PUSH16 0x6C634300051100320000000000000000 ",
"sourceMap": "27:420:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27:420:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;157:36;;;:::i;:::-;;277:64;;;:::i;60:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;60:20:0;;;;;;;;;;;;;;157:36;:::o;277:64::-;403:5;;-1:-1:-1;;;;;403:5:0;389:10;:19;381:41;;;;;-1:-1:-1;;;381:41:0;;;;;;;;;;;;-1:-1:-1;;;381:41:0;;;;;;;;;;;;;;60:20;;;-1:-1:-1;;;;;60:20:0;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "53600",
"executionCost": "20940",
"totalCost": "74540"
},
"external": {
"admin()": "1081",
"privateFunction()": "1113",
"privateFunction2()": "1091",
"publicFunction()": "122"
}
},
"methodIdentifiers": {
"admin()": "f851a440",
"privateFunction()": "bae5e97b",
"privateFunction2()": "97c333a2",
"publicFunction()": "7b5d520b"
}
},
"abi": [
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "privateFunction",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "privateFunction2",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "publicFunction",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.5.17+commit.d19bba13"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "privateFunction",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "privateFunction2",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "publicFunction",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
},
"settings": {
"compilationTarget": {
"contracts/4_bacsicAccessControl.sol": "BasicAccessControl"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/4_bacsicAccessControl.sol": {
"keccak256": "0x8ef686347c680e06725b156ac3b5fbce97b45f393a08c87c66cf6d54bdc24785",
"urls": [
"bzz-raw://f9179a4f7ddf15c6c1e28b99dcf5398150ed7acdc0bcf22e3d0c7d8894059b0a",
"dweb:/ipfs/QmbokAAePW5AiFkx7MDguPgur5djDXiG52aXLNhrufTUPM"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50610299806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806347064d6a1461003b57806373d4a13a146100ad575b600080fd5b6100ab6004803603602081101561005157600080fd5b81019060208101813564010000000081111561006c57600080fd5b82018360208201111561007e57600080fd5b803590602001918460018302840111640100000000831117156100a057600080fd5b50909250905061012a565b005b6100b561013b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ef5781810151838201526020016100d7565b50505050905090810190601f16801561011c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610136600083836101c9565b505050565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156101c15780601f10610196576101008083540402835291602001916101c1565b820191906000526020600020905b8154815290600101906020018083116101a457829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020a5782800160ff19823516178555610237565b82800160010185558215610237579182015b8281111561023757823582559160200191906001019061021c565b50610243929150610247565b5090565b61026191905b80821115610243576000815560010161024d565b9056fea265627a7a72315820e77f763eeb25593aeee0ac943233758bc0baa1b4e96da12707221d1bc9c5933f64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x299 DUP1 PUSH2 0x20 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x36 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x47064D6A EQ PUSH2 0x3B JUMPI DUP1 PUSH4 0x73D4A13A EQ PUSH2 0xAD JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xAB PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x51 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 PUSH1 0x20 DUP2 ADD DUP2 CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x6C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x7E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0xA0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x12A JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB5 PUSH2 0x13B JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xEF JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xD7 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x11C JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x136 PUSH1 0x0 DUP4 DUP4 PUSH2 0x1C9 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1C1 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x196 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1C1 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x1A4 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x20A JUMPI DUP3 DUP1 ADD PUSH1 0xFF NOT DUP3 CALLDATALOAD AND OR DUP6 SSTORE PUSH2 0x237 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x237 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x237 JUMPI DUP3 CALLDATALOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x21C JUMP JUMPDEST POP PUSH2 0x243 SWAP3 SWAP2 POP PUSH2 0x247 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x261 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x243 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x24D JUMP JUMPDEST SWAP1 JUMP INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 0xE7 PUSH32 0x763EEB25593AEEE0AC943233758BC0BAA1B4E96DA12707221D1BC9C5933F6473 PUSH16 0x6C634300051100320000000000000000 ",
"sourceMap": "26:141:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:141:0;;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600436106100365760003560e01c806347064d6a1461003b57806373d4a13a146100ad575b600080fd5b6100ab6004803603602081101561005157600080fd5b81019060208101813564010000000081111561006c57600080fd5b82018360208201111561007e57600080fd5b803590602001918460018302840111640100000000831117156100a057600080fd5b50909250905061012a565b005b6100b561013b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ef5781810151838201526020016100d7565b50505050905090810190601f16801561011c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610136600083836101c9565b505050565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156101c15780601f10610196576101008083540402835291602001916101c1565b820191906000526020600020905b8154815290600101906020018083116101a457829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020a5782800160ff19823516178555610237565b82800160010185558215610237579182015b8281111561023757823582559160200191906001019061021c565b50610243929150610247565b5090565b61026191905b80821115610243576000815560010161024d565b9056fea265627a7a72315820e77f763eeb25593aeee0ac943233758bc0baa1b4e96da12707221d1bc9c5933f64736f6c63430005110032",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x36 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x47064D6A EQ PUSH2 0x3B JUMPI DUP1 PUSH4 0x73D4A13A EQ PUSH2 0xAD JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xAB PUSH1 0x4 DUP1 CALLDATASIZE SUB PUSH1 0x20 DUP2 LT ISZERO PUSH2 0x51 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 ADD SWAP1 PUSH1 0x20 DUP2 ADD DUP2 CALLDATALOAD PUSH5 0x100000000 DUP2 GT ISZERO PUSH2 0x6C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 ADD DUP4 PUSH1 0x20 DUP3 ADD GT ISZERO PUSH2 0x7E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD SWAP1 PUSH1 0x20 ADD SWAP2 DUP5 PUSH1 0x1 DUP4 MUL DUP5 ADD GT PUSH5 0x100000000 DUP4 GT OR ISZERO PUSH2 0xA0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP SWAP1 SWAP3 POP SWAP1 POP PUSH2 0x12A JUMP JUMPDEST STOP JUMPDEST PUSH2 0xB5 PUSH2 0x13B JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP4 MLOAD DUP2 DUP4 ADD MSTORE DUP4 MLOAD SWAP2 SWAP3 DUP4 SWAP3 SWAP1 DUP4 ADD SWAP2 DUP6 ADD SWAP1 DUP1 DUP4 DUP4 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xEF JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0xD7 JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 DUP2 ADD SWAP1 PUSH1 0x1F AND DUP1 ISZERO PUSH2 0x11C JUMPI DUP1 DUP3 SUB DUP1 MLOAD PUSH1 0x1 DUP4 PUSH1 0x20 SUB PUSH2 0x100 EXP SUB NOT AND DUP2 MSTORE PUSH1 0x20 ADD SWAP2 POP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x136 PUSH1 0x0 DUP4 DUP4 PUSH2 0x1C9 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1C1 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x196 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1C1 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x1A4 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x20A JUMPI DUP3 DUP1 ADD PUSH1 0xFF NOT DUP3 CALLDATALOAD AND OR DUP6 SSTORE PUSH2 0x237 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x237 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x237 JUMPI DUP3 CALLDATALOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x21C JUMP JUMPDEST POP PUSH2 0x243 SWAP3 SWAP2 POP PUSH2 0x247 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH2 0x261 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x243 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x24D JUMP JUMPDEST SWAP1 JUMP INVALID LOG2 PUSH6 0x627A7A723158 KECCAK256 0xE7 PUSH32 0x763EEB25593AEEE0AC943233758BC0BAA1B4E96DA12707221D1BC9C5933F6473 PUSH16 0x6C634300051100320000000000000000 ",
"sourceMap": "26:141:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:141:0;;;;;;;;;;;;;;;;;;;;;;;;79:76;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;79:76:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;79:76:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;79:76:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;79:76:0;;-1:-1:-1;79:76:0;-1:-1:-1;79:76:0;:::i;:::-;;52:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;52:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79:76;137:12;:4;144:5;;137:12;:::i;:::-;;79:76;;:::o;52:18::-;;;;;;;;;;;;;;;-1:-1:-1;;52:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;26:141::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26:141:0;;;-1:-1:-1;26:141:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "133000",
"executionCost": "177",
"totalCost": "133177"
},
"external": {
"data()": "infinite",
"setData(string)": "infinite"
}
},
"methodIdentifiers": {
"data()": "73d4a13a",
"setData(string)": "47064d6a"
}
},
"abi": [
{
"constant": true,
"inputs": [],
"name": "data",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "_data",
"type": "string"
}
],
"name": "setData",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.5.17+commit.d19bba13"
},
"language": "Solidity",
"output": {
"abi": [
{
"constant": true,
"inputs": [],
"name": "data",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "_data",
"type": "string"
}
],
"name": "setData",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
},
"settings": {
"compilationTarget": {
"contracts/5_basicStorage.sol": "BasicStorage"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/5_basicStorage.sol": {
"keccak256": "0x4a922bc3d0a77adecc0bac5c9df240fd9f935873c9090be7efe2202d6543bbb7",
"urls": [
"bzz-raw://0ecfb90deaa1665f683827022730a114a8b14db9e4da505b67dba92343e99591",
"dweb:/ipfs/QmWjf1s2L3usgoRiYPGSS9cwfk1N7CBm23edHUcWnTB9so"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "60806040523480156200001157600080fd5b5060405162003a5138038062003a5183398101604081905262000034916200029a565b81818181620000536301ffc9a760e01b6001600160e01b036200013c16565b6200006e6380ac58cd60e01b6001600160e01b036200013c16565b6200008963780e9d6360e01b6001600160e01b036200013c16565b81516200009e9060099060208501906200019c565b508051620000b490600a9060208401906200019c565b50620000d0635b5e139f60e01b6001600160e01b036200013c16565b505050506000620000e66200019760201b60201c565b600e80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620003e6565b6001600160e01b03198082161415620001725760405162461bcd60e51b8152600401620001699062000343565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001df57805160ff19168380011785556200020f565b828001600101855582156200020f579182015b828111156200020f578251825591602001919060010190620001f2565b506200021d92915062000221565b5090565b6200019991905b808211156200021d576000815560010162000228565b600082601f8301126200025057600080fd5b815162000267620002618262000382565b6200035b565b915080825260208301602083018583830111156200028457600080fd5b62000291838284620003b3565b50505092915050565b60008060408385031215620002ae57600080fd5b82516001600160401b03811115620002c557600080fd5b620002d3858286016200023e565b92505060208301516001600160401b03811115620002f057600080fd5b620002fe858286016200023e565b9150509250929050565b600062000317601c83620003aa565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000815260200192915050565b60208082528101620003558162000308565b92915050565b6040518181016001600160401b03811182821017156200037a57600080fd5b604052919050565b60006001600160401b038211156200039957600080fd5b506020601f91909101601f19160190565b90815260200190565b60005b83811015620003d0578181015183820152602001620003b6565b83811115620003e0576000848401525b50505050565b61365b80620003f66000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80638da5cb5b11610125578063bb7fa584116100ad578063daa4eb531161007c578063daa4eb5314610463578063dba4c55114610476578063e71706be14610489578063e985e9c5146104a9578063f2fde38b146104bc5761021b565b8063bb7fa58414610417578063c87b56dd1461042a578063d0def5211461043d578063d95b6371146104505761021b565b8063a506a0a1116100f4578063a506a0a1146103b6578063a60c2312146103c9578063ace7f8bc146103d1578063b1c4c72b146103f1578063b88d4fde146104045761021b565b80638da5cb5b1461038b5780638f32d59b1461039357806395d89b411461039b578063a22cb465146103a35761021b565b80632f745c59116101a85780635c59ed7b116101775780635c59ed7b1461034d5780636352211e146103555780636c0360eb1461036857806370a0823114610370578063715018a6146103835761021b565b80632f745c59146103015780633e61e9dc1461031457806342842e0e146103275780634f6ccce71461033a5761021b565b8063095ea7b3116101ef578063095ea7b31461029357806311e10cb8146102a657806318160ddd146102c657806323b872dd146102db578063263cfbe0146102ee5761021b565b806223ecc51461022057806301ffc9a71461023557806306fdde031461025e578063081812fc14610273575b600080fd5b61023361022e3660046125e9565b6104cf565b005b61024861024336600461258f565b61055a565b6040516102559190613279565b60405180910390f35b61026661057d565b60405161025591906132bc565b6102866102813660046125cb565b610614565b6040516102559190613205565b6102336102a136600461252b565b610657565b6102b96102b43660046125cb565b61073c565b604051610255919061348d565b6102ce610a88565b604051610255919061349e565b6102336102e93660046122c9565b610a8e565b6102336102fc36600461218a565b610acb565b6102ce61030f36600461252b565b610b86565b6102ce61032236600461218a565b610be7565b6102336103353660046122c9565b610bf9565b6102ce6103483660046125cb565b610c14565b610233610c5b565b6102866103633660046125cb565b610ccd565b610266610d02565b6102ce61037e36600461218a565b610d63565b610233610dac565b610286610e1a565b610248610e29565b610266610e4f565b6102336103b136600461238e565b610eb0565b6102486103c436600461218a565b610f7e565b610233610f9c565b6103e46103df36600461218a565b61100a565b6040516102559190613268565b6102336103ff36600461218a565b61108a565b610233610412366004612316565b611136565b6102ce610425366004612405565b611175565b6102666104383660046125cb565b6111bd565b6102ce61044b3660046123be565b6112cb565b61024861045e3660046121a8565b611300565b61024861047136600461218a565b611361565b6102336104843660046121e2565b611380565b61049c61049736600461255b565b61152b565b6040516102559190613257565b6102486104b73660046121a8565b6115f8565b6102336104ca36600461218a565b611626565b8560006104db82610ccd565b90506104e5610e29565b806104f85750336001600160a01b038216145b61051d5760405162461bcd60e51b81526004016105149061345d565b60405180910390fd5b61052688611656565b6105425760405162461bcd60e51b8152600401610514906132cd565b610550888888888888611673565b5050505050505050565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106095780601f106105de57610100808354040283529160200191610609565b820191906000526020600020905b8154815290600101906020018083116105ec57829003601f168201915b505050505090505b90565b600061061f82611656565b61063b5760405162461bcd60e51b8152600401610514906133cd565b506000908152600260205260409020546001600160a01b031690565b600061066282610ccd565b9050806001600160a01b0316836001600160a01b031614156106965760405162461bcd60e51b81526004016105149061342d565b806001600160a01b03166106a8611719565b6001600160a01b031614806106c457506106c4816104b7611719565b6106e05760405162461bcd60e51b81526004016105149061337d565b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610744611f03565b61074d82611656565b6107695760405162461bcd60e51b8152600401610514906132cd565b600d60008381526020019081526020016000206040518060c001604052908160008201548152602001600182018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561082a5780601f106107ff5761010080835404028352916020019161082a565b820191906000526020600020905b81548152906001019060200180831161080d57829003601f168201915b5050509183525050600282810180546040805160206001841615610100026000190190931694909404601f810183900483028501830190915280845293810193908301828280156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b505050918352505060038201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156109505780601f1061092557610100808354040283529160200191610950565b820191906000526020600020905b81548152906001019060200180831161093357829003601f168201915b505050918352505060048201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156109e45780601f106109b9576101008083540402835291602001916109e4565b820191906000526020600020905b8154815290600101906020018083116109c757829003601f168201915b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015610a785780601f10610a4d57610100808354040283529160200191610a78565b820191906000526020600020905b815481529060010190602001808311610a5b57829003601f168201915b5050505050815250509050919050565b60075490565b610a9f610a99611719565b8261171d565b610abb5760405162461bcd60e51b81526004016105149061346d565b610ac68383836117a2565b505050565b610ad3610e29565b610aef5760405162461bcd60e51b8152600401610514906133ed565b6001600160a01b03811660009081526010602052604090205460ff1615610b285760405162461bcd60e51b81526004016105149061334d565b6001600160a01b03811660009081526010602052604090819020805460ff19166001179055517fcc19abc65009012e41c631da2d8277d8740ebceb112ef974cc784ea191e470a790610b7b908390613205565b60405180910390a150565b6000610b9183610d63565b8210610baf5760405162461bcd60e51b8152600401610514906132dd565b6001600160a01b0383166000908152600560205260409020805483908110610bd357fe5b906000526020600020015490505b92915050565b60126020526000908152604090205481565b610ac683838360405180602001604052806000815250611136565b6000610c1e610a88565b8210610c3c5760405162461bcd60e51b81526004016105149061347d565b60078281548110610c4957fe5b90600052602060002001549050919050565b3360009081526011602052604090205460ff1615610c8b5760405162461bcd60e51b8152600401610514906132fd565b33600081815260116020526040808220805460ff19166001179055517fe41b009a6b640ace2118aefe12476c796e8c6c81a737ff53284b0ffbdefb70ca9190a2565b6000818152600160205260408120546001600160a01b031680610be15760405162461bcd60e51b8152600401610514906133ad565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106095780601f106105de57610100808354040283529160200191610609565b60006001600160a01b038216610d8b5760405162461bcd60e51b81526004016105149061339d565b6001600160a01b0382166000908152600360205260409020610be1906117c1565b610db4610e29565b610dd05760405162461bcd60e51b8152600401610514906133ed565b600e546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80546001600160a01b0319169055565b600e546001600160a01b031690565b600e546000906001600160a01b0316610e40611719565b6001600160a01b031614905090565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106095780601f106105de57610100808354040283529160200191610609565b610eb8611719565b6001600160a01b0316826001600160a01b03161415610ee95760405162461bcd60e51b81526004016105149061333d565b8060046000610ef6611719565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f3a611719565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f729190613279565b60405180910390a35050565b6001600160a01b031660009081526010602052604090205460ff1690565b3360009081526011602052604090205460ff16610fcb5760405162461bcd60e51b81526004016105149061336d565b33600081815260116020526040808220805460ff19169055517fad3793ccba4bf145fba17f6e508c1db7de72afcee73d854cb0d5220cb4022c9f9190a2565b6060600061101783610d63565b9050606081604051908082528060200260200182016040528015611045578160200160208202803883390190505b50905060005b8281101561108257600061105f8683610b86565b90508083838151811061106e57fe5b60209081029190910101525060010161104b565b509392505050565b611092610e29565b6110ae5760405162461bcd60e51b8152600401610514906133ed565b6001600160a01b03811660009081526010602052604090205460ff166110e65760405162461bcd60e51b81526004016105149061343d565b6001600160a01b03811660009081526010602052604090819020805460ff19169055517fdbac57781dae8783301559623b7c269c0945af5afc6741c1eb02d6cbe21e545090610b7b908390613205565b611147611141611719565b8361171d565b6111635760405162461bcd60e51b81526004016105149061346d565b61116f848484846117c5565b50505050565b6000611181600f6117f8565b600061118d600f6117c1565b90506111998982611801565b6111a38189611822565b6111b1818888888888611673565b98975050505050505050565b60606111c882611656565b6111e45760405162461bcd60e51b81526004016105149061341d565b6000828152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156112795780601f1061124e57610100808354040283529160200191611279565b820191906000526020600020905b81548152906001019060200180831161125c57829003601f168201915b505050505090508051600014156112a0575050604080516020810190915260008152610578565b600b816040516020016112b49291906131ed565b604051602081830303815290604052915050610578565b60006112d7600f6117f8565b60006112e3600f6117c1565b90506112ef8482611801565b6112f98184611822565b9392505050565b6000816001600160a01b0316836001600160a01b031614806112f957506001600160a01b03821660009081526011602052604090205460ff161580156112f9575050506001600160a01b031660009081526010602052604090205460ff1690565b6001600160a01b031660009081526011602052604090205460ff161590565b61138a338b611300565b6113a65760405162461bcd60e51b81526004016105149061340d565b60008160ff16601b141580156113c057508160ff16601c14155b611444576001338c8c8a6040516020016113dd9493929190613199565b60405160208183030381529060405280519060200120838686604051600081526020016040526040516114139493929190613287565b6020604051602081039080840390855afa158015611435573d6000803e3d6000fd5b50505060206040510351611447565b60005b6001600160a01b03811660009081526012602052604090205490915087116114815760405162461bcd60e51b81526004016105149061344d565b8660126000836001600160a01b03166001600160a01b031681526020019081526020016000208190555061151e338c8c8c8c8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020601f8f018190048102820181019092528d815292508d91508c908190840183828082843760009201919091525061186692505050565b5050505050505050505050565b606080825160405190808252806020026020018201604052801561156957816020015b611556611f03565b81526020019060019003908161154e5790505b50905060005b83518110156115f15761159484828151811061158757fe5b6020026020010151611656565b6115b05760405162461bcd60e51b8152600401610514906132cd565b60008482815181106115be57fe5b602002602001015190506115d18161073c565b8383815181106115dd57fe5b60209081029190910101525060010161156f565b5092915050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b61162e610e29565b61164a5760405162461bcd60e51b8152600401610514906133ed565b6116538161190a565b50565b6000908152600160205260409020546001600160a01b0316151590565b61167c86611656565b6116985760405162461bcd60e51b81526004016105149061338d565b6000868152600d60209081526040909120878155865190916116c1916001840191890190611f39565b5084516116d79060028301906020880190611f39565b5083516116ed9060038301906020870190611f39565b5082516117039060048301906020860190611f39565b5081516105509060058301906020850190611f39565b3390565b600061172882611656565b6117445760405162461bcd60e51b81526004016105149061335d565b600061174f83610ccd565b9050806001600160a01b0316846001600160a01b0316148061178a5750836001600160a01b031661177f84610614565b6001600160a01b0316145b8061179a575061179a81856115f8565b949350505050565b6117ad83838361198c565b6117b78382611a92565b610ac68282611b87565b5490565b6117d08484846117a2565b6117dc84848484611bc5565b61116f5760405162461bcd60e51b8152600401610514906132ed565b80546001019055565b61180b8282611cff565b6118158282611b87565b61181e81611dc6565b5050565b61182b82611656565b6118475760405162461bcd60e51b8152600401610514906133dd565b6000828152600c602090815260409091208251610ac692840190611f39565b60005b825181101561190257611890858585848151811061188357fe5b60200260200101516117a2565b836001600160a01b0316856001600160a01b0316876001600160a01b03167fafd473af84dda5c8298fafdd930dccd3fb3cd2559def8f86dcbcb134bacb6dd28685815181106118db57fe5b6020026020010151866040516118f29291906134ac565b60405180910390a4600101611869565b505050505050565b6001600160a01b0381166119305760405162461bcd60e51b81526004016105149061330d565b600e546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661199f82610ccd565b6001600160a01b0316146119c55760405162461bcd60e51b8152600401610514906133fd565b6001600160a01b0382166119eb5760405162461bcd60e51b81526004016105149061332d565b6119f481611e0a565b6001600160a01b0383166000908152600360205260409020611a1590611e45565b6001600160a01b0382166000908152600360205260409020611a36906117f8565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260056020526040812054611abc90600163ffffffff611e5c16565b600083815260066020526040902054909150808214611b57576001600160a01b0384166000908152600560205260408120805484908110611af957fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110611b3757fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611b80906000198301611fb7565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6000611bd9846001600160a01b0316611e9e565b611be55750600161179a565b600060606001600160a01b038616630a85bd0160e11b611c03611719565b898888604051602401611c199493929190613213565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611c5791906131e1565b6000604051808303816000865af19150503d8060008114611c94576040519150601f19603f3d011682016040523d82523d6000602084013e611c99565b606091505b509150915081611ccb57805115611cb35780518082602001fd5b60405162461bcd60e51b8152600401610514906132ed565b600081806020019051611ce191908101906125ad565b6001600160e01b031916630a85bd0160e11b14935061179a92505050565b6001600160a01b038216611d255760405162461bcd60e51b8152600401610514906133bd565b611d2e81611656565b15611d4b5760405162461bcd60e51b81526004016105149061331d565b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020611d8a906117f8565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b03161561165357600090815260026020526040902080546001600160a01b0319169055565b8054611e5890600163ffffffff611e5c16565b9055565b60006112f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ed7565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061179a575050151592915050565b60008184841115611efb5760405162461bcd60e51b815260040161051491906132bc565b505050900390565b6040518060c001604052806000815260200160608152602001606081526020016060815260200160608152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611f7a57805160ff1916838001178555611fa7565b82800160010185558215611fa7579182015b82811115611fa7578251825591602001919060010190611f8c565b50611fb3929150611fd7565b5090565b815481835581811115610ac657600083815260209020610ac69181019083015b61061191905b80821115611fb35760008155600101611fdd565b8035610be1816135e0565b60008083601f84011261200e57600080fd5b5081356001600160401b0381111561202557600080fd5b60208301915083602082028301111561203d57600080fd5b9250929050565b600082601f83011261205557600080fd5b8135612068612063826134f2565b6134cc565b9150818183526020840193506020810190508385602084028201111561208d57600080fd5b60005b838110156120b957816120a388826120ce565b8452506020928301929190910190600101612090565b5050505092915050565b8035610be1816135f4565b8035610be1816135fd565b8035610be181613606565b8051610be181613606565b60008083601f84011261210157600080fd5b5081356001600160401b0381111561211857600080fd5b60208301915083600182028301111561203d57600080fd5b600082601f83011261214157600080fd5b813561214f61206382613512565b9150808252602083016020830185838301111561216b57600080fd5b612176838284613587565b50505092915050565b8035610be18161360f565b60006020828403121561219c57600080fd5b600061179a8484611ff1565b600080604083850312156121bb57600080fd5b60006121c78585611ff1565b92505060206121d885828601611ff1565b9150509250929050565b6000806000806000806000806000806101008b8d03121561220257600080fd5b600061220e8d8d611ff1565b9a5050602061221f8d828e01611ff1565b99505060408b01356001600160401b0381111561223b57600080fd5b6122478d828e01611ffc565b9850985050606061225a8d828e016120ce565b96505060808b01356001600160401b0381111561227657600080fd5b6122828d828e016120ef565b955095505060a06122958d828e016120ce565b93505060c06122a68d828e016120ce565b92505060e06122b78d828e0161217f565b9150509295989b9194979a5092959850565b6000806000606084860312156122de57600080fd5b60006122ea8686611ff1565b93505060206122fb86828701611ff1565b925050604061230c868287016120ce565b9150509250925092565b6000806000806080858703121561232c57600080fd5b60006123388787611ff1565b945050602061234987828801611ff1565b935050604061235a878288016120ce565b92505060608501356001600160401b0381111561237657600080fd5b61238287828801612130565b91505092959194509250565b600080604083850312156123a157600080fd5b60006123ad8585611ff1565b92505060206121d8858286016120c3565b600080604083850312156123d157600080fd5b60006123dd8585611ff1565b92505060208301356001600160401b038111156123f957600080fd5b6121d885828601612130565b600080600080600080600060e0888a03121561242057600080fd5b600061242c8a8a611ff1565b97505060208801356001600160401b0381111561244857600080fd5b6124548a828b01612130565b96505060408801356001600160401b0381111561247057600080fd5b61247c8a828b01612130565b95505060608801356001600160401b0381111561249857600080fd5b6124a48a828b01612130565b94505060808801356001600160401b038111156124c057600080fd5b6124cc8a828b01612130565b93505060a08801356001600160401b038111156124e857600080fd5b6124f48a828b01612130565b92505060c08801356001600160401b0381111561251057600080fd5b61251c8a828b01612130565b91505092959891949750929550565b6000806040838503121561253e57600080fd5b600061254a8585611ff1565b92505060206121d8858286016120ce565b60006020828403121561256d57600080fd5b81356001600160401b0381111561258357600080fd5b61179a84828501612044565b6000602082840312156125a157600080fd5b600061179a84846120d9565b6000602082840312156125bf57600080fd5b600061179a84846120e4565b6000602082840312156125dd57600080fd5b600061179a84846120ce565b60008060008060008060c0878903121561260257600080fd5b600061260e89896120ce565b96505060208701356001600160401b0381111561262a57600080fd5b61263689828a01612130565b95505060408701356001600160401b0381111561265257600080fd5b61265e89828a01612130565b94505060608701356001600160401b0381111561267a57600080fd5b61268689828a01612130565b93505060808701356001600160401b038111156126a257600080fd5b6126ae89828a01612130565b92505060a08701356001600160401b038111156126ca57600080fd5b6126d689828a01612130565b9150509295509295509295565b60006112f983836130e2565b60006126fb83836127f3565b505060200190565b61270c81613558565b82525050565b61270c61271e82613558565b6135bf565b600061272e8261354b565b612738818561354f565b93508360208202850161274a85613539565b8060005b85811015612784578484038952815161276785826126e3565b945061277283613539565b60209a909a019992505060010161274e565b5091979650505050505050565b600061279c8261354b565b6127a6818561354f565b93506127b183613539565b8060005b838110156127df5781516127c988826126ef565b97506127d483613539565b9250506001016127b5565b509495945050505050565b61270c81613563565b61270c81610611565b60006128078261354b565b612811818561354f565b9350612821818560208601613593565b61282a816135d0565b9093019392505050565b600061283f8261354b565b6128498185610578565b9350612859818560208601613593565b9290920192915050565b60008154600181166000811461288057600181146128a3576128e2565b607f60028304166128918187610578565b60ff19841681529550850192506128e2565b600282046128b18187610578565b95506128bc8561353f565b60005b828110156128db578154888201526001909101906020016128bf565b5050850192505b505092915050565b60006128f760318361354f565b7f4552433732314d657461646174613a204d6574616461746120736574206f66208152703737b732bc34b9ba32b73a103a37b5b2b760791b602082015260400192915050565b600061294a602b8361354f565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b600061299760328361354f565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006129eb60368361354f565b7f4f6666696369616c206f70657261746f72732061726520616c7265616479207281527532b532b1ba32b210313c9036b9b39739b2b73232b91760511b602082015260400192915050565b6000612a4360268361354f565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b6000612a8b601c8361354f565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612ac460248361354f565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612b0a60198361354f565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612b43602a8361354f565b7f5f6f70657261746f7220697320616c726561647920616e206f6666696369616c8152691037b832b930ba37b91760b11b602082015260400192915050565b6000612b8f602c8361354f565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612bdd60368361354f565b7f4f6666696369616c206f70657261746f72732061726520616c7265616479206181527531b1b2b83a32b210313c9036b9b39739b2b73232b91760511b602082015260400192915050565b6000612c3560388361354f565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612c9460218361354f565b7f4552433732314d657461646174613a206e6f6e6578697374656e7420746f6b658152603760f91b602082015260400192915050565b6000612cd7602a8361354f565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612d2360298361354f565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612d6e60208361354f565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612da7602c8361354f565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612df5602c8361354f565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612e4360208361354f565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612e7c60298361354f565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612ec760168361354f565b7539b2b73232b91034b9903737ba1037b832b930ba37b960511b815260200192915050565b6000612ef9602f8361354f565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b6000612f4a60218361354f565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000612f8d60268361354f565b7f5f6f70657261746f72206973206e6f7420616e206f6666696369616c206f70658152653930ba37b91760d11b602082015260400192915050565b6000612fd560448361354f565b7f5f6e6f6e6365206d7573742062652067726561746572207468616e207468652081527f6c6173742075736564206e6f6e6365206f662074686520746f6b656e20686f6c6020820152633232b91760e11b604082015260600192915050565b6000610be160008361354f565b600061304e60318361354f565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b60006130a1602c8361354f565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b805160009060c08401906130f685826127f3565b506020830151848203602086015261310e82826127fc565b9150506040830151848203604086015261312882826127fc565b9150506060830151848203606086015261314282826127fc565b9150506080830151848203608086015261315c82826127fc565b91505060a083015184820360a086015261317682826127fc565b95945050505050565b61270c61318b82610611565b610611565b61270c81613581565b60006131a58287612712565b6014820191506131b58286612712565b6014820191506131c58285612712565b6014820191506131d5828461317f565b50602001949350505050565b60006112f98284612834565b60006131f98285612863565b915061179a8284612834565b60208101610be18284612703565b608081016132218287612703565b61322e6020830186612703565b61323b60408301856127f3565b818103606083015261324d81846127fc565b9695505050505050565b602080825281016112f98184612723565b602080825281016112f98184612791565b60208101610be182846127ea565b6080810161329582876127f3565b6132a26020830186613190565b6132af60408301856127f3565b61317660608301846127f3565b602080825281016112f981846127fc565b60208082528101610be1816128ea565b60208082528101610be18161293d565b60208082528101610be18161298a565b60208082528101610be1816129de565b60208082528101610be181612a36565b60208082528101610be181612a7e565b60208082528101610be181612ab7565b60208082528101610be181612afd565b60208082528101610be181612b36565b60208082528101610be181612b82565b60208082528101610be181612bd0565b60208082528101610be181612c28565b60208082528101610be181612c87565b60208082528101610be181612cca565b60208082528101610be181612d16565b60208082528101610be181612d61565b60208082528101610be181612d9a565b60208082528101610be181612de8565b60208082528101610be181612e36565b60208082528101610be181612e6f565b60208082528101610be181612eba565b60208082528101610be181612eec565b60208082528101610be181612f3d565b60208082528101610be181612f80565b60208082528101610be181612fc8565b60208082528101610be181613034565b60208082528101610be181613041565b60208082528101610be181613094565b602080825281016112f981846130e2565b60208101610be182846127f3565b604081016134ba82856127f3565b818103602083015261179a81846127fc565b6040518181016001600160401b03811182821017156134ea57600080fd5b604052919050565b60006001600160401b0382111561350857600080fd5b5060209081020190565b60006001600160401b0382111561352857600080fd5b506020601f91909101601f19160190565b60200190565b60009081526020902090565b5190565b90815260200190565b6000610be182613575565b151590565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b82818337506000910152565b60005b838110156135ae578181015183820152602001613596565b8381111561116f5750506000910152565b6000610be1826000610be1826135da565b601f01601f191690565b60601b90565b6135e981613558565b811461165357600080fd5b6135e981613563565b6135e981610611565b6135e981613568565b6135e98161358156fea365627a7a7231582084cb401e00e9fc918260aef9b0b35deb0ddc4d7d9b4fe6b40326eb59d827ff756c6578706572696d656e74616cf564736f6c63430005110040",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x3A51 CODESIZE SUB DUP1 PUSH3 0x3A51 DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x34 SWAP2 PUSH3 0x29A JUMP JUMPDEST DUP2 DUP2 DUP2 DUP2 PUSH3 0x53 PUSH4 0x1FFC9A7 PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST PUSH3 0x6E PUSH4 0x80AC58CD PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST PUSH3 0x89 PUSH4 0x780E9D63 PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST DUP2 MLOAD PUSH3 0x9E SWAP1 PUSH1 0x9 SWAP1 PUSH1 0x20 DUP6 ADD SWAP1 PUSH3 0x19C JUMP JUMPDEST POP DUP1 MLOAD PUSH3 0xB4 SWAP1 PUSH1 0xA SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH3 0x19C JUMP JUMPDEST POP PUSH3 0xD0 PUSH4 0x5B5E139F PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST POP POP POP POP PUSH1 0x0 PUSH3 0xE6 PUSH3 0x197 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xE DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE PUSH1 0x40 MLOAD SWAP2 SWAP3 POP SWAP1 PUSH1 0x0 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 DUP3 SWAP1 LOG3 POP POP POP PUSH3 0x3E6 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP1 DUP3 AND EQ ISZERO PUSH3 0x172 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH3 0x169 SWAP1 PUSH3 0x343 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE JUMP JUMPDEST CALLER JUMPDEST SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH3 0x1DF JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x20F JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x20F JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x20F JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x1F2 JUMP JUMPDEST POP PUSH3 0x21D SWAP3 SWAP2 POP PUSH3 0x221 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH3 0x199 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x21D JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x228 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x250 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x267 PUSH3 0x261 DUP3 PUSH3 0x382 JUMP JUMPDEST PUSH3 0x35B JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH3 0x284 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x291 DUP4 DUP3 DUP5 PUSH3 0x3B3 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH3 0x2AE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x2C5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x2D3 DUP6 DUP3 DUP7 ADD PUSH3 0x23E JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x2F0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x2FE DUP6 DUP3 DUP7 ADD PUSH3 0x23E JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x317 PUSH1 0x1C DUP4 PUSH3 0x3AA JUMP JUMPDEST PUSH32 0x4552433136353A20696E76616C696420696E7465726661636520696400000000 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH3 0x355 DUP2 PUSH3 0x308 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH3 0x37A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH3 0x399 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x1F SWAP2 SWAP1 SWAP2 ADD PUSH1 0x1F NOT AND ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0x3D0 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH3 0x3B6 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH3 0x3E0 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0x365B DUP1 PUSH3 0x3F6 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x21B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DA5CB5B GT PUSH2 0x125 JUMPI DUP1 PUSH4 0xBB7FA584 GT PUSH2 0xAD JUMPI DUP1 PUSH4 0xDAA4EB53 GT PUSH2 0x7C JUMPI DUP1 PUSH4 0xDAA4EB53 EQ PUSH2 0x463 JUMPI DUP1 PUSH4 0xDBA4C551 EQ PUSH2 0x476 JUMPI DUP1 PUSH4 0xE71706BE EQ PUSH2 0x489 JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x4A9 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x4BC JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0xBB7FA584 EQ PUSH2 0x417 JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0x42A JUMPI DUP1 PUSH4 0xD0DEF521 EQ PUSH2 0x43D JUMPI DUP1 PUSH4 0xD95B6371 EQ PUSH2 0x450 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0xA506A0A1 GT PUSH2 0xF4 JUMPI DUP1 PUSH4 0xA506A0A1 EQ PUSH2 0x3B6 JUMPI DUP1 PUSH4 0xA60C2312 EQ PUSH2 0x3C9 JUMPI DUP1 PUSH4 0xACE7F8BC EQ PUSH2 0x3D1 JUMPI DUP1 PUSH4 0xB1C4C72B EQ PUSH2 0x3F1 JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x404 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x38B JUMPI DUP1 PUSH4 0x8F32D59B EQ PUSH2 0x393 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x39B JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x3A3 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x2F745C59 GT PUSH2 0x1A8 JUMPI DUP1 PUSH4 0x5C59ED7B GT PUSH2 0x177 JUMPI DUP1 PUSH4 0x5C59ED7B EQ PUSH2 0x34D JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x355 JUMPI DUP1 PUSH4 0x6C0360EB EQ PUSH2 0x368 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x370 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x383 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x2F745C59 EQ PUSH2 0x301 JUMPI DUP1 PUSH4 0x3E61E9DC EQ PUSH2 0x314 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x327 JUMPI DUP1 PUSH4 0x4F6CCCE7 EQ PUSH2 0x33A JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x95EA7B3 GT PUSH2 0x1EF JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x293 JUMPI DUP1 PUSH4 0x11E10CB8 EQ PUSH2 0x2A6 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x2C6 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x2DB JUMPI DUP1 PUSH4 0x263CFBE0 EQ PUSH2 0x2EE JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH3 0x23ECC5 EQ PUSH2 0x220 JUMPI DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0x235 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x25E JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0x273 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x233 PUSH2 0x22E CALLDATASIZE PUSH1 0x4 PUSH2 0x25E9 JUMP JUMPDEST PUSH2 0x4CF JUMP JUMPDEST STOP JUMPDEST PUSH2 0x248 PUSH2 0x243 CALLDATASIZE PUSH1 0x4 PUSH2 0x258F JUMP JUMPDEST PUSH2 0x55A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3279 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x266 PUSH2 0x57D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x32BC JUMP JUMPDEST PUSH2 0x286 PUSH2 0x281 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0x614 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3205 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x2A1 CALLDATASIZE PUSH1 0x4 PUSH2 0x252B JUMP JUMPDEST PUSH2 0x657 JUMP JUMPDEST PUSH2 0x2B9 PUSH2 0x2B4 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0x73C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x348D JUMP JUMPDEST PUSH2 0x2CE PUSH2 0xA88 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x349E JUMP JUMPDEST PUSH2 0x233 PUSH2 0x2E9 CALLDATASIZE PUSH1 0x4 PUSH2 0x22C9 JUMP JUMPDEST PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x233 PUSH2 0x2FC CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xACB JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x30F CALLDATASIZE PUSH1 0x4 PUSH2 0x252B JUMP JUMPDEST PUSH2 0xB86 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x322 CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xBE7 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x335 CALLDATASIZE PUSH1 0x4 PUSH2 0x22C9 JUMP JUMPDEST PUSH2 0xBF9 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x348 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0xC14 JUMP JUMPDEST PUSH2 0x233 PUSH2 0xC5B JUMP JUMPDEST PUSH2 0x286 PUSH2 0x363 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0xCCD JUMP JUMPDEST PUSH2 0x266 PUSH2 0xD02 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x37E CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xD63 JUMP JUMPDEST PUSH2 0x233 PUSH2 0xDAC JUMP JUMPDEST PUSH2 0x286 PUSH2 0xE1A JUMP JUMPDEST PUSH2 0x248 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0x266 PUSH2 0xE4F JUMP JUMPDEST PUSH2 0x233 PUSH2 0x3B1 CALLDATASIZE PUSH1 0x4 PUSH2 0x238E JUMP JUMPDEST PUSH2 0xEB0 JUMP JUMPDEST PUSH2 0x248 PUSH2 0x3C4 CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xF7E JUMP JUMPDEST PUSH2 0x233 PUSH2 0xF9C JUMP JUMPDEST PUSH2 0x3E4 PUSH2 0x3DF CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x100A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3268 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x3FF CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x108A JUMP JUMPDEST PUSH2 0x233 PUSH2 0x412 CALLDATASIZE PUSH1 0x4 PUSH2 0x2316 JUMP JUMPDEST PUSH2 0x1136 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x425 CALLDATASIZE PUSH1 0x4 PUSH2 0x2405 JUMP JUMPDEST PUSH2 0x1175 JUMP JUMPDEST PUSH2 0x266 PUSH2 0x438 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0x11BD JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x44B CALLDATASIZE PUSH1 0x4 PUSH2 0x23BE JUMP JUMPDEST PUSH2 0x12CB JUMP JUMPDEST PUSH2 0x248 PUSH2 0x45E CALLDATASIZE PUSH1 0x4 PUSH2 0x21A8 JUMP JUMPDEST PUSH2 0x1300 JUMP JUMPDEST PUSH2 0x248 PUSH2 0x471 CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x1361 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x484 CALLDATASIZE PUSH1 0x4 PUSH2 0x21E2 JUMP JUMPDEST PUSH2 0x1380 JUMP JUMPDEST PUSH2 0x49C PUSH2 0x497 CALLDATASIZE PUSH1 0x4 PUSH2 0x255B JUMP JUMPDEST PUSH2 0x152B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3257 JUMP JUMPDEST PUSH2 0x248 PUSH2 0x4B7 CALLDATASIZE PUSH1 0x4 PUSH2 0x21A8 JUMP JUMPDEST PUSH2 0x15F8 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x4CA CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x1626 JUMP JUMPDEST DUP6 PUSH1 0x0 PUSH2 0x4DB DUP3 PUSH2 0xCCD JUMP JUMPDEST SWAP1 POP PUSH2 0x4E5 PUSH2 0xE29 JUMP JUMPDEST DUP1 PUSH2 0x4F8 JUMPI POP CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND EQ JUMPDEST PUSH2 0x51D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x345D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x526 DUP9 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x542 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32CD JUMP JUMPDEST PUSH2 0x550 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x1673 JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x9 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x609 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x5DE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x609 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x5EC JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP JUMPDEST SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x61F DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x63B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33CD JUMP JUMPDEST POP PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x662 DUP3 PUSH2 0xCCD JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x696 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x342D JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x6A8 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ DUP1 PUSH2 0x6C4 JUMPI POP PUSH2 0x6C4 DUP2 PUSH2 0x4B7 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x6E0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x337D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP3 SSTORE SWAP2 MLOAD DUP6 SWAP4 SWAP2 DUP6 AND SWAP2 PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP2 LOG4 POP POP POP JUMP JUMPDEST PUSH2 0x744 PUSH2 0x1F03 JUMP JUMPDEST PUSH2 0x74D DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x769 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32CD JUMP JUMPDEST PUSH1 0xD PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 PUSH1 0x40 MLOAD DUP1 PUSH1 0xC0 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH1 0x0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x82A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x7FF JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x82A JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x80D JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x2 DUP3 DUP2 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1 DUP5 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP4 AND SWAP5 SWAP1 SWAP5 DIV PUSH1 0x1F DUP2 ADD DUP4 SWAP1 DIV DUP4 MUL DUP6 ADD DUP4 ADD SWAP1 SWAP2 MSTORE DUP1 DUP5 MSTORE SWAP4 DUP2 ADD SWAP4 SWAP1 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x8BC JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x891 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x8BC JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x89F JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x3 DUP3 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP4 DUP3 ADD SWAP4 SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x950 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x925 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x950 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x933 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x4 DUP3 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP4 DUP3 ADD SWAP4 SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x9E4 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x9B9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x9E4 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x9C7 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x5 DUP3 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP4 DUP3 ADD SWAP4 SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xA78 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xA4D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xA78 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xA5B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE POP POP SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x7 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0xA9F PUSH2 0xA99 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x171D JUMP JUMPDEST PUSH2 0xABB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x346D JUMP JUMPDEST PUSH2 0xAC6 DUP4 DUP4 DUP4 PUSH2 0x17A2 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH2 0xAD3 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0xAEF JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0xB28 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x334D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE MLOAD PUSH32 0xCC19ABC65009012E41C631DA2D8277D8740EBCEB112EF974CC784EA191E470A7 SWAP1 PUSH2 0xB7B SWAP1 DUP4 SWAP1 PUSH2 0x3205 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB91 DUP4 PUSH2 0xD63 JUMP JUMPDEST DUP3 LT PUSH2 0xBAF JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32DD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD DUP4 SWAP1 DUP2 LT PUSH2 0xBD3 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x12 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0xAC6 DUP4 DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE POP PUSH2 0x1136 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xC1E PUSH2 0xA88 JUMP JUMPDEST DUP3 LT PUSH2 0xC3C JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x347D JUMP JUMPDEST PUSH1 0x7 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0xC49 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0xC8B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32FD JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE MLOAD PUSH32 0xE41B009A6B640ACE2118AEFE12476C796E8C6C81A737FF53284B0FFBDEFB70CA SWAP2 SWAP1 LOG2 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP1 PUSH2 0xBE1 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33AD JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x609 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x5DE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x609 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0xD8B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x339D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH2 0xBE1 SWAP1 PUSH2 0x17C1 JUMP JUMPDEST PUSH2 0xDB4 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0xDD0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x40 MLOAD PUSH1 0x0 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 DUP4 SWAP1 LOG3 PUSH1 0xE DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0xE40 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0xA DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x609 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x5DE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x609 JUMP JUMPDEST PUSH2 0xEB8 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0xEE9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x333D JUMP JUMPDEST DUP1 PUSH1 0x4 PUSH1 0x0 PUSH2 0xEF6 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 ADD SWAP4 SWAP1 SWAP4 MSTORE PUSH1 0x40 SWAP2 DUP3 ADD PUSH1 0x0 SWAP1 DUP2 KECCAK256 SWAP2 DUP8 AND DUP1 DUP3 MSTORE SWAP2 SWAP1 SWAP4 MSTORE SWAP2 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP3 ISZERO ISZERO SWAP3 SWAP1 SWAP3 OR SWAP1 SWAP2 SSTORE PUSH2 0xF3A PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 DUP4 PUSH1 0x40 MLOAD PUSH2 0xF72 SWAP2 SWAP1 PUSH2 0x3279 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND PUSH2 0xFCB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x336D JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE MLOAD PUSH32 0xAD3793CCBA4BF145FBA17F6E508C1DB7DE72AFCEE73D854CB0D5220CB4022C9F SWAP2 SWAP1 LOG2 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x1017 DUP4 PUSH2 0xD63 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1045 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CODESIZE DUP4 CODECOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x1082 JUMPI PUSH1 0x0 PUSH2 0x105F DUP7 DUP4 PUSH2 0xB86 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x106E JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x104B JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0x1092 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0x10AE JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND PUSH2 0x10E6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x343D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE MLOAD PUSH32 0xDBAC57781DAE8783301559623B7C269C0945AF5AFC6741C1EB02D6CBE21E5450 SWAP1 PUSH2 0xB7B SWAP1 DUP4 SWAP1 PUSH2 0x3205 JUMP JUMPDEST PUSH2 0x1147 PUSH2 0x1141 PUSH2 0x1719 JUMP JUMPDEST DUP4 PUSH2 0x171D JUMP JUMPDEST PUSH2 0x1163 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x346D JUMP JUMPDEST PUSH2 0x116F DUP5 DUP5 DUP5 DUP5 PUSH2 0x17C5 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1181 PUSH1 0xF PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x118D PUSH1 0xF PUSH2 0x17C1 JUMP JUMPDEST SWAP1 POP PUSH2 0x1199 DUP10 DUP3 PUSH2 0x1801 JUMP JUMPDEST PUSH2 0x11A3 DUP2 DUP10 PUSH2 0x1822 JUMP JUMPDEST PUSH2 0x11B1 DUP2 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x1673 JUMP JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 PUSH2 0x11C8 DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x11E4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x341D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xC PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 DUP1 SLOAD DUP4 MLOAD PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP7 AND ISZERO MUL ADD SWAP1 SWAP4 AND SWAP3 SWAP1 SWAP3 DIV SWAP2 DUP3 ADD DUP5 SWAP1 DIV DUP5 MUL DUP2 ADD DUP5 ADD SWAP1 SWAP5 MSTORE DUP1 DUP5 MSTORE PUSH1 0x60 SWAP4 SWAP3 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1279 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x124E JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1279 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x125C JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP DUP1 MLOAD PUSH1 0x0 EQ ISZERO PUSH2 0x12A0 JUMPI POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP2 ADD SWAP1 SWAP2 MSTORE PUSH1 0x0 DUP2 MSTORE PUSH2 0x578 JUMP JUMPDEST PUSH1 0xB DUP2 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x12B4 SWAP3 SWAP2 SWAP1 PUSH2 0x31ED JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE SWAP2 POP POP PUSH2 0x578 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12D7 PUSH1 0xF PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12E3 PUSH1 0xF PUSH2 0x17C1 JUMP JUMPDEST SWAP1 POP PUSH2 0x12EF DUP5 DUP3 PUSH2 0x1801 JUMP JUMPDEST PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x1822 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ DUP1 PUSH2 0x12F9 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO DUP1 ISZERO PUSH2 0x12F9 JUMPI POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x138A CALLER DUP12 PUSH2 0x1300 JUMP JUMPDEST PUSH2 0x13A6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x340D JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0xFF AND PUSH1 0x1B EQ ISZERO DUP1 ISZERO PUSH2 0x13C0 JUMPI POP DUP2 PUSH1 0xFF AND PUSH1 0x1C EQ ISZERO JUMPDEST PUSH2 0x1444 JUMPI PUSH1 0x1 CALLER DUP13 DUP13 DUP11 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x13DD SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x3199 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH1 0x0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD PUSH2 0x1413 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x3287 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x1435 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD SUB MLOAD PUSH2 0x1447 JUMP JUMPDEST PUSH1 0x0 JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x12 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP DUP8 GT PUSH2 0x1481 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x344D JUMP JUMPDEST DUP7 PUSH1 0x12 PUSH1 0x0 DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 DUP2 SWAP1 SSTORE POP PUSH2 0x151E CALLER DUP13 DUP13 DUP13 DUP13 DUP1 DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 PUSH1 0x20 MUL DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F DUP16 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP14 DUP2 MSTORE SWAP3 POP DUP14 SWAP2 POP DUP13 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP PUSH2 0x1866 SWAP3 POP POP POP JUMP JUMPDEST POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP1 DUP3 MLOAD PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1569 JUMPI DUP2 PUSH1 0x20 ADD JUMPDEST PUSH2 0x1556 PUSH2 0x1F03 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x154E JUMPI SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP4 MLOAD DUP2 LT ISZERO PUSH2 0x15F1 JUMPI PUSH2 0x1594 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x1587 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x15B0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32CD JUMP JUMPDEST PUSH1 0x0 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x15BE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH2 0x15D1 DUP2 PUSH2 0x73C JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x15DD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x156F JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH2 0x162E PUSH2 0xE29 JUMP JUMPDEST PUSH2 0x164A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH2 0x1653 DUP2 PUSH2 0x190A JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x167C DUP7 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x1698 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x338D JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xD PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP8 DUP2 SSTORE DUP7 MLOAD SWAP1 SWAP2 PUSH2 0x16C1 SWAP2 PUSH1 0x1 DUP5 ADD SWAP2 DUP10 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP5 MLOAD PUSH2 0x16D7 SWAP1 PUSH1 0x2 DUP4 ADD SWAP1 PUSH1 0x20 DUP9 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP4 MLOAD PUSH2 0x16ED SWAP1 PUSH1 0x3 DUP4 ADD SWAP1 PUSH1 0x20 DUP8 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP3 MLOAD PUSH2 0x1703 SWAP1 PUSH1 0x4 DUP4 ADD SWAP1 PUSH1 0x20 DUP7 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP2 MLOAD PUSH2 0x550 SWAP1 PUSH1 0x5 DUP4 ADD SWAP1 PUSH1 0x20 DUP6 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST CALLER SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1728 DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x1744 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x335D JUMP JUMPDEST PUSH1 0x0 PUSH2 0x174F DUP4 PUSH2 0xCCD JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ DUP1 PUSH2 0x178A JUMPI POP DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x177F DUP5 PUSH2 0x614 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST DUP1 PUSH2 0x179A JUMPI POP PUSH2 0x179A DUP2 DUP6 PUSH2 0x15F8 JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0x17AD DUP4 DUP4 DUP4 PUSH2 0x198C JUMP JUMPDEST PUSH2 0x17B7 DUP4 DUP3 PUSH2 0x1A92 JUMP JUMPDEST PUSH2 0xAC6 DUP3 DUP3 PUSH2 0x1B87 JUMP JUMPDEST SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x17D0 DUP5 DUP5 DUP5 PUSH2 0x17A2 JUMP JUMPDEST PUSH2 0x17DC DUP5 DUP5 DUP5 DUP5 PUSH2 0x1BC5 JUMP JUMPDEST PUSH2 0x116F JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32ED JUMP JUMPDEST DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE JUMP JUMPDEST PUSH2 0x180B DUP3 DUP3 PUSH2 0x1CFF JUMP JUMPDEST PUSH2 0x1815 DUP3 DUP3 PUSH2 0x1B87 JUMP JUMPDEST PUSH2 0x181E DUP2 PUSH2 0x1DC6 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x182B DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x1847 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33DD JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xC PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP3 MLOAD PUSH2 0xAC6 SWAP3 DUP5 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x1902 JUMPI PUSH2 0x1890 DUP6 DUP6 DUP6 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x1883 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x17A2 JUMP JUMPDEST DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xAFD473AF84DDA5C8298FAFDD930DCCD3FB3CD2559DEF8F86DCBCB134BACB6DD2 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x18DB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP7 PUSH1 0x40 MLOAD PUSH2 0x18F2 SWAP3 SWAP2 SWAP1 PUSH2 0x34AC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG4 PUSH1 0x1 ADD PUSH2 0x1869 JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x1930 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x330D JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND SWAP3 AND SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 PUSH1 0xE DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x199F DUP3 PUSH2 0xCCD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH2 0x19C5 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33FD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x19EB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x332D JUMP JUMPDEST PUSH2 0x19F4 DUP2 PUSH2 0x1E0A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH2 0x1A15 SWAP1 PUSH2 0x1E45 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH2 0x1A36 SWAP1 PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP3 SSTORE SWAP2 MLOAD DUP5 SWAP4 SWAP2 DUP8 AND SWAP2 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 LOG4 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH2 0x1ABC SWAP1 PUSH1 0x1 PUSH4 0xFFFFFFFF PUSH2 0x1E5C AND JUMP JUMPDEST PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP DUP1 DUP3 EQ PUSH2 0x1B57 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 DUP1 SLOAD DUP5 SWAP1 DUP2 LT PUSH2 0x1AF9 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP DUP1 PUSH1 0x5 PUSH1 0x0 DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x1B37 JUMPI INVALID JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 KECCAK256 SWAP1 SWAP2 ADD SWAP3 SWAP1 SWAP3 SSTORE SWAP2 DUP3 MSTORE PUSH1 0x6 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP2 SWAP1 SSTORE JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD SWAP1 PUSH2 0x1B80 SWAP1 PUSH1 0x0 NOT DUP4 ADD PUSH2 0x1FB7 JUMP JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 DUP1 SLOAD DUP7 DUP7 MSTORE PUSH1 0x6 DUP5 MSTORE SWAP2 DUP6 KECCAK256 DUP3 SWAP1 SSTORE SWAP3 DUP3 MSTORE PUSH1 0x1 DUP2 ADD DUP4 SSTORE SWAP2 DUP4 MSTORE SWAP1 SWAP2 KECCAK256 ADD SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1BD9 DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x1E9E JUMP JUMPDEST PUSH2 0x1BE5 JUMPI POP PUSH1 0x1 PUSH2 0x179A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND PUSH4 0xA85BD01 PUSH1 0xE1 SHL PUSH2 0x1C03 PUSH2 0x1719 JUMP JUMPDEST DUP10 DUP9 DUP9 PUSH1 0x40 MLOAD PUSH1 0x24 ADD PUSH2 0x1C19 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x3213 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1F NOT DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 DUP2 MSTORE PUSH1 0x20 DUP3 ADD DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 OR SWAP1 SWAP3 MSTORE SWAP1 MLOAD PUSH2 0x1C57 SWAP2 SWAP1 PUSH2 0x31E1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP7 GAS CALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x1C94 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x1C99 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP SWAP2 POP SWAP2 POP DUP2 PUSH2 0x1CCB JUMPI DUP1 MLOAD ISZERO PUSH2 0x1CB3 JUMPI DUP1 MLOAD DUP1 DUP3 PUSH1 0x20 ADD REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32ED JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD PUSH2 0x1CE1 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x25AD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH4 0xA85BD01 PUSH1 0xE1 SHL EQ SWAP4 POP PUSH2 0x179A SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x1D25 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33BD JUMP JUMPDEST PUSH2 0x1D2E DUP2 PUSH2 0x1656 JUMP JUMPDEST ISZERO PUSH2 0x1D4B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x331D JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE DUP4 MSTORE PUSH1 0x3 SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 PUSH2 0x1D8A SWAP1 PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH1 0x0 SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 DUP3 SWAP1 LOG4 POP POP JUMP JUMPDEST PUSH1 0x7 DUP1 SLOAD PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x8 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 DUP3 SWAP1 SSTORE PUSH1 0x1 DUP3 ADD DUP4 SSTORE SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xA66CC928B5EDB82AF9BD49922954155AB7B0942694BEA4CE44661D9A8736C688 ADD SSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO PUSH2 0x1653 JUMPI PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMP JUMPDEST DUP1 SLOAD PUSH2 0x1E58 SWAP1 PUSH1 0x1 PUSH4 0xFFFFFFFF PUSH2 0x1E5C AND JUMP JUMPDEST SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12F9 DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x1E DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x536166654D6174683A207375627472616374696F6E206F766572666C6F770000 DUP2 MSTORE POP PUSH2 0x1ED7 JUMP JUMPDEST PUSH1 0x0 DUP2 EXTCODEHASH PUSH32 0xC5D2460186F7233C927E7DB2DCC703C0E500B653CA82273B7BFAD8045D85A470 DUP2 DUP2 EQ DUP1 ISZERO SWAP1 PUSH2 0x179A JUMPI POP POP ISZERO ISZERO SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP5 DUP5 GT ISZERO PUSH2 0x1EFB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP2 SWAP1 PUSH2 0x32BC JUMP JUMPDEST POP POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0xC0 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x1F7A JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x1FA7 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x1FA7 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x1FA7 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x1F8C JUMP JUMPDEST POP PUSH2 0x1FB3 SWAP3 SWAP2 POP PUSH2 0x1FD7 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST DUP2 SLOAD DUP2 DUP4 SSTORE DUP2 DUP2 GT ISZERO PUSH2 0xAC6 JUMPI PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x20 SWAP1 KECCAK256 PUSH2 0xAC6 SWAP2 DUP2 ADD SWAP1 DUP4 ADD JUMPDEST PUSH2 0x611 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x1FB3 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x1FDD JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x35E0 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x200E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2025 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0x203D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x2055 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x2068 PUSH2 0x2063 DUP3 PUSH2 0x34F2 JUMP JUMPDEST PUSH2 0x34CC JUMP JUMPDEST SWAP2 POP DUP2 DUP2 DUP4 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP PUSH1 0x20 DUP2 ADD SWAP1 POP DUP4 DUP6 PUSH1 0x20 DUP5 MUL DUP3 ADD GT ISZERO PUSH2 0x208D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x20B9 JUMPI DUP2 PUSH2 0x20A3 DUP9 DUP3 PUSH2 0x20CE JUMP JUMPDEST DUP5 MSTORE POP PUSH1 0x20 SWAP3 DUP4 ADD SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x2090 JUMP JUMPDEST POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x35F4 JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x35FD JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x3606 JUMP JUMPDEST DUP1 MLOAD PUSH2 0xBE1 DUP2 PUSH2 0x3606 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x2101 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2118 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x1 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0x203D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x2141 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x214F PUSH2 0x2063 DUP3 PUSH2 0x3512 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH2 0x216B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2176 DUP4 DUP3 DUP5 PUSH2 0x3587 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x360F JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x219C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x1FF1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x21BB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x21C7 DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x100 DUP12 DUP14 SUB SLT ISZERO PUSH2 0x2202 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x220E DUP14 DUP14 PUSH2 0x1FF1 JUMP JUMPDEST SWAP11 POP POP PUSH1 0x20 PUSH2 0x221F DUP14 DUP3 DUP15 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP10 POP POP PUSH1 0x40 DUP12 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x223B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2247 DUP14 DUP3 DUP15 ADD PUSH2 0x1FFC JUMP JUMPDEST SWAP9 POP SWAP9 POP POP PUSH1 0x60 PUSH2 0x225A DUP14 DUP3 DUP15 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP7 POP POP PUSH1 0x80 DUP12 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2276 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2282 DUP14 DUP3 DUP15 ADD PUSH2 0x20EF JUMP JUMPDEST SWAP6 POP SWAP6 POP POP PUSH1 0xA0 PUSH2 0x2295 DUP14 DUP3 DUP15 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP4 POP POP PUSH1 0xC0 PUSH2 0x22A6 DUP14 DUP3 DUP15 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP3 POP POP PUSH1 0xE0 PUSH2 0x22B7 DUP14 DUP3 DUP15 ADD PUSH2 0x217F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP12 SWAP2 SWAP5 SWAP8 SWAP11 POP SWAP3 SWAP6 SWAP9 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x22DE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x22EA DUP7 DUP7 PUSH2 0x1FF1 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x22FB DUP7 DUP3 DUP8 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 PUSH2 0x230C DUP7 DUP3 DUP8 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x232C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x2338 DUP8 DUP8 PUSH2 0x1FF1 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x20 PUSH2 0x2349 DUP8 DUP3 DUP9 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x40 PUSH2 0x235A DUP8 DUP3 DUP9 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP3 POP POP PUSH1 0x60 DUP6 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2376 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2382 DUP8 DUP3 DUP9 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP2 SWAP5 POP SWAP3 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x23A1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x23AD DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x20C3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x23D1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x23DD DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x23F9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x2130 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x2420 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x242C DUP11 DUP11 PUSH2 0x1FF1 JUMP JUMPDEST SWAP8 POP POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2448 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2454 DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP7 POP POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2470 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x247C DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP6 POP POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2498 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x24A4 DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x80 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x24C0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x24CC DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP4 POP POP PUSH1 0xA0 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x24E8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x24F4 DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP3 POP POP PUSH1 0xC0 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2510 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x251C DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP2 SWAP5 SWAP8 POP SWAP3 SWAP6 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x253E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x254A DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x20CE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x256D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2583 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x179A DUP5 DUP3 DUP6 ADD PUSH2 0x2044 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x25A1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x20D9 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x25BF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x20E4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x25DD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x20CE JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xC0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x2602 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x260E DUP10 DUP10 PUSH2 0x20CE JUMP JUMPDEST SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x262A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2636 DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP6 POP POP PUSH1 0x40 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2652 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x265E DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x60 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x267A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2686 DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x80 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x26A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x26AE DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP3 POP POP PUSH1 0xA0 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x26CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x26D6 DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12F9 DUP4 DUP4 PUSH2 0x30E2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x26FB DUP4 DUP4 PUSH2 0x27F3 JUMP JUMPDEST POP POP PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x3558 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x270C PUSH2 0x271E DUP3 PUSH2 0x3558 JUMP JUMPDEST PUSH2 0x35BF JUMP JUMPDEST PUSH1 0x0 PUSH2 0x272E DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x2738 DUP2 DUP6 PUSH2 0x354F JUMP JUMPDEST SWAP4 POP DUP4 PUSH1 0x20 DUP3 MUL DUP6 ADD PUSH2 0x274A DUP6 PUSH2 0x3539 JUMP JUMPDEST DUP1 PUSH1 0x0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x2784 JUMPI DUP5 DUP5 SUB DUP10 MSTORE DUP2 MLOAD PUSH2 0x2767 DUP6 DUP3 PUSH2 0x26E3 JUMP JUMPDEST SWAP5 POP PUSH2 0x2772 DUP4 PUSH2 0x3539 JUMP JUMPDEST PUSH1 0x20 SWAP11 SWAP1 SWAP11 ADD SWAP10 SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x274E JUMP JUMPDEST POP SWAP2 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x279C DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x27A6 DUP2 DUP6 PUSH2 0x354F JUMP JUMPDEST SWAP4 POP PUSH2 0x27B1 DUP4 PUSH2 0x3539 JUMP JUMPDEST DUP1 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x27DF JUMPI DUP2 MLOAD PUSH2 0x27C9 DUP9 DUP3 PUSH2 0x26EF JUMP JUMPDEST SWAP8 POP PUSH2 0x27D4 DUP4 PUSH2 0x3539 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x27B5 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x3563 JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x611 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2807 DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x2811 DUP2 DUP6 PUSH2 0x354F JUMP JUMPDEST SWAP4 POP PUSH2 0x2821 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x3593 JUMP JUMPDEST PUSH2 0x282A DUP2 PUSH2 0x35D0 JUMP JUMPDEST SWAP1 SWAP4 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x283F DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x2849 DUP2 DUP6 PUSH2 0x578 JUMP JUMPDEST SWAP4 POP PUSH2 0x2859 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x3593 JUMP JUMPDEST SWAP3 SWAP1 SWAP3 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SLOAD PUSH1 0x1 DUP2 AND PUSH1 0x0 DUP2 EQ PUSH2 0x2880 JUMPI PUSH1 0x1 DUP2 EQ PUSH2 0x28A3 JUMPI PUSH2 0x28E2 JUMP JUMPDEST PUSH1 0x7F PUSH1 0x2 DUP4 DIV AND PUSH2 0x2891 DUP2 DUP8 PUSH2 0x578 JUMP JUMPDEST PUSH1 0xFF NOT DUP5 AND DUP2 MSTORE SWAP6 POP DUP6 ADD SWAP3 POP PUSH2 0x28E2 JUMP JUMPDEST PUSH1 0x2 DUP3 DIV PUSH2 0x28B1 DUP2 DUP8 PUSH2 0x578 JUMP JUMPDEST SWAP6 POP PUSH2 0x28BC DUP6 PUSH2 0x353F JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x28DB JUMPI DUP2 SLOAD DUP9 DUP3 ADD MSTORE PUSH1 0x1 SWAP1 SWAP2 ADD SWAP1 PUSH1 0x20 ADD PUSH2 0x28BF JUMP JUMPDEST POP POP DUP6 ADD SWAP3 POP JUMPDEST POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x28F7 PUSH1 0x31 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A204D6574616461746120736574206F6620 DUP2 MSTORE PUSH17 0x3737B732BC34B9BA32B73A103A37B5B2B7 PUSH1 0x79 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x294A PUSH1 0x2B DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x455243373231456E756D657261626C653A206F776E657220696E646578206F75 DUP2 MSTORE PUSH11 0x74206F6620626F756E6473 PUSH1 0xA8 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2997 PUSH1 0x32 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E7366657220746F206E6F6E204552433732315265 DUP2 MSTORE PUSH18 0x31B2B4BB32B91034B6B83632B6B2B73A32B9 PUSH1 0x71 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x29EB PUSH1 0x36 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F6666696369616C206F70657261746F72732061726520616C72656164792072 DUP2 MSTORE PUSH22 0x32B532B1BA32B210313C9036B9B39739B2B73232B917 PUSH1 0x51 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A43 PUSH1 0x26 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 DUP2 MSTORE PUSH6 0x646472657373 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A8B PUSH1 0x1C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20746F6B656E20616C7265616479206D696E74656400000000 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2AC4 PUSH1 0x24 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E7366657220746F20746865207A65726F20616464 DUP2 MSTORE PUSH4 0x72657373 PUSH1 0xE0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B0A PUSH1 0x19 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F766520746F2063616C6C657200000000000000 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B43 PUSH1 0x2A DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x5F6F70657261746F7220697320616C726561647920616E206F6666696369616C DUP2 MSTORE PUSH10 0x1037B832B930BA37B917 PUSH1 0xB1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B8F PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A206F70657261746F7220717565727920666F72206E6F6E6578 DUP2 MSTORE PUSH12 0x34B9BA32B73A103A37B5B2B7 PUSH1 0xA1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2BDD PUSH1 0x36 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F6666696369616C206F70657261746F72732061726520616C72656164792061 DUP2 MSTORE PUSH22 0x31B1B2B83A32B210313C9036B9B39739B2B73232B917 PUSH1 0x51 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C35 PUSH1 0x38 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F76652063616C6C6572206973206E6F74206F77 DUP2 MSTORE PUSH32 0x6E6572206E6F7220617070726F76656420666F7220616C6C0000000000000000 PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C94 PUSH1 0x21 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A206E6F6E6578697374656E7420746F6B65 DUP2 MSTORE PUSH1 0x37 PUSH1 0xF9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2CD7 PUSH1 0x2A DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A2062616C616E636520717565727920666F7220746865207A65 DUP2 MSTORE PUSH10 0x726F2061646472657373 PUSH1 0xB0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2D23 PUSH1 0x29 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A206F776E657220717565727920666F72206E6F6E6578697374 DUP2 MSTORE PUSH9 0x32B73A103A37B5B2B7 PUSH1 0xB9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2D6E PUSH1 0x20 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A206D696E7420746F20746865207A65726F2061646472657373 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2DA7 PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F76656420717565727920666F72206E6F6E6578 DUP2 MSTORE PUSH12 0x34B9BA32B73A103A37B5B2B7 PUSH1 0xA1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2DF5 PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A2055524920736574206F66206E6F6E6578 DUP2 MSTORE PUSH12 0x34B9BA32B73A103A37B5B2B7 PUSH1 0xA1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E43 PUSH1 0x20 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E7C PUSH1 0x29 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E73666572206F6620746F6B656E20746861742069 DUP2 MSTORE PUSH9 0x39903737BA1037BBB7 PUSH1 0xB9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2EC7 PUSH1 0x16 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH22 0x39B2B73232B91034B9903737BA1037B832B930BA37B9 PUSH1 0x51 SHL DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2EF9 PUSH1 0x2F DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A2055524920717565727920666F72206E6F DUP2 MSTORE PUSH15 0x3732BC34B9BA32B73A103A37B5B2B7 PUSH1 0x89 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2F4A PUSH1 0x21 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F76616C20746F2063757272656E74206F776E65 DUP2 MSTORE PUSH1 0x39 PUSH1 0xF9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2F8D PUSH1 0x26 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x5F6F70657261746F72206973206E6F7420616E206F6666696369616C206F7065 DUP2 MSTORE PUSH6 0x3930BA37B917 PUSH1 0xD1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2FD5 PUSH1 0x44 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x5F6E6F6E6365206D7573742062652067726561746572207468616E2074686520 DUP2 MSTORE PUSH32 0x6C6173742075736564206E6F6E6365206F662074686520746F6B656E20686F6C PUSH1 0x20 DUP3 ADD MSTORE PUSH4 0x3232B917 PUSH1 0xE1 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xBE1 PUSH1 0x0 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH1 0x0 PUSH2 0x304E PUSH1 0x31 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E736665722063616C6C6572206973206E6F74206F DUP2 MSTORE PUSH17 0x1DDB995C881B9BDC88185C1C1C9BDD9959 PUSH1 0x7A SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x30A1 PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x455243373231456E756D657261626C653A20676C6F62616C20696E646578206F DUP2 MSTORE PUSH12 0x7574206F6620626F756E6473 PUSH1 0xA0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 PUSH1 0xC0 DUP5 ADD SWAP1 PUSH2 0x30F6 DUP6 DUP3 PUSH2 0x27F3 JUMP JUMPDEST POP PUSH1 0x20 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x20 DUP7 ADD MSTORE PUSH2 0x310E DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0x40 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x40 DUP7 ADD MSTORE PUSH2 0x3128 DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0x60 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x60 DUP7 ADD MSTORE PUSH2 0x3142 DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0x80 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x80 DUP7 ADD MSTORE PUSH2 0x315C DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0xA0 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0xA0 DUP7 ADD MSTORE PUSH2 0x3176 DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x270C PUSH2 0x318B DUP3 PUSH2 0x611 JUMP JUMPDEST PUSH2 0x611 JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x3581 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x31A5 DUP3 DUP8 PUSH2 0x2712 JUMP JUMPDEST PUSH1 0x14 DUP3 ADD SWAP2 POP PUSH2 0x31B5 DUP3 DUP7 PUSH2 0x2712 JUMP JUMPDEST PUSH1 0x14 DUP3 ADD SWAP2 POP PUSH2 0x31C5 DUP3 DUP6 PUSH2 0x2712 JUMP JUMPDEST PUSH1 0x14 DUP3 ADD SWAP2 POP PUSH2 0x31D5 DUP3 DUP5 PUSH2 0x317F JUMP JUMPDEST POP PUSH1 0x20 ADD SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12F9 DUP3 DUP5 PUSH2 0x2834 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x31F9 DUP3 DUP6 PUSH2 0x2863 JUMP JUMPDEST SWAP2 POP PUSH2 0x179A DUP3 DUP5 PUSH2 0x2834 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0xBE1 DUP3 DUP5 PUSH2 0x2703 JUMP JUMPDEST PUSH1 0x80 DUP2 ADD PUSH2 0x3221 DUP3 DUP8 PUSH2 0x2703 JUMP JUMPDEST PUSH2 0x322E PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x2703 JUMP JUMPDEST PUSH2 0x323B PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x27F3 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x60 DUP4 ADD MSTORE PUSH2 0x324D DUP2 DUP5 PUSH2 0x27FC JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x2723 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x2791 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0xBE1 DUP3 DUP5 PUSH2 0x27EA JUMP JUMPDEST PUSH1 0x80 DUP2 ADD PUSH2 0x3295 DUP3 DUP8 PUSH2 0x27F3 JUMP JUMPDEST PUSH2 0x32A2 PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x3190 JUMP JUMPDEST PUSH2 0x32AF PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x27F3 JUMP JUMPDEST PUSH2 0x3176 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x27F3 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x27FC JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x28EA JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x293D JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x298A JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x29DE JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2A36 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2A7E JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2AB7 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2AFD JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2B36 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2B82 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2BD0 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2C28 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2C87 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2CCA JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2D16 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2D61 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2D9A JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2DE8 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2E36 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2E6F JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2EBA JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2EEC JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2F3D JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2F80 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2FC8 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x3034 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x3041 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x3094 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x30E2 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0xBE1 DUP3 DUP5 PUSH2 0x27F3 JUMP JUMPDEST PUSH1 0x40 DUP2 ADD PUSH2 0x34BA DUP3 DUP6 PUSH2 0x27F3 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x179A DUP2 DUP5 PUSH2 0x27FC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x34EA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH2 0x3508 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH2 0x3528 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x1F SWAP2 SWAP1 SWAP2 ADD PUSH1 0x1F NOT AND ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 SWAP1 KECCAK256 SWAP1 JUMP JUMPDEST MLOAD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xBE1 DUP3 PUSH2 0x3575 JUMP JUMPDEST ISZERO ISZERO SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0xFF AND SWAP1 JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x35AE JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x3596 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x116F JUMPI POP POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0xBE1 DUP3 PUSH1 0x0 PUSH2 0xBE1 DUP3 PUSH2 0x35DA JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP1 JUMP JUMPDEST PUSH1 0x60 SHL SWAP1 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3558 JUMP JUMPDEST DUP2 EQ PUSH2 0x1653 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3563 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x611 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3568 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3581 JUMP INVALID LOG3 PUSH6 0x627A7A723158 KECCAK256 DUP5 0xCB BLOCKHASH 0x1E STOP 0xE9 0xFC SWAP2 DUP3 PUSH1 0xAE 0xF9 0xB0 0xB3 0x5D 0xEB 0xD 0xDC 0x4D PUSH30 0x9B4FE6B40326EB59D827FF756C6578706572696D656E74616CF564736F6C PUSH4 0x43000511 STOP BLOCKHASH ",
"sourceMap": "7002:9148:0:-;;;8226:115;8:9:-1;5:2;;;30:1;27;20:12;5:2;8226:115:0;;;;;;;;;;;;;;;;;;;;;8302:9;8313:11;8302:9;8313:11;718:40:3;-1:-1:-1;;;;;;;;718:18:3;:40;:::i;:::-;2262::7;-1:-1:-1;;;;;;;;2262:18:7;:40;:::i;:::-;1357:51:8;-1:-1:-1;;;;;;;;1357:18:8;:51;:::i;:::-;2135:12:0;;;;:5;;:12;;;;;:::i;:::-;-1:-1:-1;2158:16:0;;;;:7;;:16;;;;;:::i;:::-;-1:-1:-1;2265:49:0;-1:-1:-1;;;;;;;;2265:18:0;:49;:::i;:::-;2062:260;;6827:157;;698:17:6;718:12;:10;;;:12;;:::i;:::-;740:6;:18;;-1:-1:-1;;;;;;740:18:6;-1:-1:-1;;;;;740:18:6;;;;;;;;773:43;;740:18;;-1:-1:-1;740:18:6;-1:-1:-1;;773:43:6;;-1:-1:-1;;773:43:6;664:159;8226:115:0;;7002:9148;;1442:190:3;-1:-1:-1;;;;;;1517:25:3;;;;;1509:66;;;;-1:-1:-1;;;1509:66:3;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1585:33:3;:20;:33;;;;;;;;;;:40;;-1:-1:-1;;1585:40:3;1621:4;1585:40;;;1442:190::o;788:96:1:-;867:10;788:96;;:::o;7002:9148:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7002:9148:0;;;-1:-1:-1;7002:9148:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;6:444:-1;;119:3;112:4;104:6;100:17;96:27;86:2;;137:1;134;127:12;86:2;167:6;161:13;189:65;204:49;246:6;204:49;;;189:65;;;180:74;;274:6;267:5;260:21;310:4;302:6;298:17;343:4;336:5;332:16;378:3;369:6;364:3;360:16;357:25;354:2;;;395:1;392;385:12;354:2;405:39;437:6;432:3;427;405:39;;;79:371;;;;;;;;458:597;;;610:2;598:9;589:7;585:23;581:32;578:2;;;626:1;623;616:12;578:2;661:24;;-1:-1;;;;;694:30;;691:2;;;737:1;734;727:12;691:2;757:74;823:7;814:6;803:9;799:22;757:74;;;747:84;;640:197;889:2;878:9;874:18;868:25;-1:-1;;;;;905:6;902:30;899:2;;;945:1;942;935:12;899:2;965:74;1031:7;1022:6;1011:9;1007:22;965:74;;;955:84;;847:198;572:483;;;;;;1063:328;;1223:67;1287:2;1282:3;1223:67;;;1323:30;1303:51;;1382:2;1373:12;;1209:182;-1:-1;;1209:182;1399:407;1590:2;1604:47;;;1575:18;;1665:131;1575:18;1665:131;;;1657:139;1561:245;-1:-1;;1561:245;1813:256;1875:2;1869:9;1901:17;;;-1:-1;;;;;1961:34;;1997:22;;;1958:62;1955:2;;;2033:1;2030;2023:12;1955:2;2049;2042:22;1853:216;;-1:-1;1853:216;2076:322;;-1:-1;;;;;2212:6;2209:30;2206:2;;;2252:1;2249;2242:12;2206:2;-1:-1;2383:4;2319;2296:17;;;;-1:-1;;2292:33;2373:15;;2143:255;2406:163;2509:19;;;2558:4;2549:14;;2502:67;2578:268;2643:1;2650:101;2664:6;2661:1;2658:13;2650:101;;;2731:11;;;2725:18;2712:11;;;2705:39;2686:2;2679:10;2650:101;;;2766:6;2763:1;2760:13;2757:2;;;2831:1;2822:6;2817:3;2813:16;2806:27;2757:2;2627:219;;;;;;7002:9148:0;;;;;;"
},
"deployedBytecode": {
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506004361061021b5760003560e01c80638da5cb5b11610125578063bb7fa584116100ad578063daa4eb531161007c578063daa4eb5314610463578063dba4c55114610476578063e71706be14610489578063e985e9c5146104a9578063f2fde38b146104bc5761021b565b8063bb7fa58414610417578063c87b56dd1461042a578063d0def5211461043d578063d95b6371146104505761021b565b8063a506a0a1116100f4578063a506a0a1146103b6578063a60c2312146103c9578063ace7f8bc146103d1578063b1c4c72b146103f1578063b88d4fde146104045761021b565b80638da5cb5b1461038b5780638f32d59b1461039357806395d89b411461039b578063a22cb465146103a35761021b565b80632f745c59116101a85780635c59ed7b116101775780635c59ed7b1461034d5780636352211e146103555780636c0360eb1461036857806370a0823114610370578063715018a6146103835761021b565b80632f745c59146103015780633e61e9dc1461031457806342842e0e146103275780634f6ccce71461033a5761021b565b8063095ea7b3116101ef578063095ea7b31461029357806311e10cb8146102a657806318160ddd146102c657806323b872dd146102db578063263cfbe0146102ee5761021b565b806223ecc51461022057806301ffc9a71461023557806306fdde031461025e578063081812fc14610273575b600080fd5b61023361022e3660046125e9565b6104cf565b005b61024861024336600461258f565b61055a565b6040516102559190613279565b60405180910390f35b61026661057d565b60405161025591906132bc565b6102866102813660046125cb565b610614565b6040516102559190613205565b6102336102a136600461252b565b610657565b6102b96102b43660046125cb565b61073c565b604051610255919061348d565b6102ce610a88565b604051610255919061349e565b6102336102e93660046122c9565b610a8e565b6102336102fc36600461218a565b610acb565b6102ce61030f36600461252b565b610b86565b6102ce61032236600461218a565b610be7565b6102336103353660046122c9565b610bf9565b6102ce6103483660046125cb565b610c14565b610233610c5b565b6102866103633660046125cb565b610ccd565b610266610d02565b6102ce61037e36600461218a565b610d63565b610233610dac565b610286610e1a565b610248610e29565b610266610e4f565b6102336103b136600461238e565b610eb0565b6102486103c436600461218a565b610f7e565b610233610f9c565b6103e46103df36600461218a565b61100a565b6040516102559190613268565b6102336103ff36600461218a565b61108a565b610233610412366004612316565b611136565b6102ce610425366004612405565b611175565b6102666104383660046125cb565b6111bd565b6102ce61044b3660046123be565b6112cb565b61024861045e3660046121a8565b611300565b61024861047136600461218a565b611361565b6102336104843660046121e2565b611380565b61049c61049736600461255b565b61152b565b6040516102559190613257565b6102486104b73660046121a8565b6115f8565b6102336104ca36600461218a565b611626565b8560006104db82610ccd565b90506104e5610e29565b806104f85750336001600160a01b038216145b61051d5760405162461bcd60e51b81526004016105149061345d565b60405180910390fd5b61052688611656565b6105425760405162461bcd60e51b8152600401610514906132cd565b610550888888888888611673565b5050505050505050565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106095780601f106105de57610100808354040283529160200191610609565b820191906000526020600020905b8154815290600101906020018083116105ec57829003601f168201915b505050505090505b90565b600061061f82611656565b61063b5760405162461bcd60e51b8152600401610514906133cd565b506000908152600260205260409020546001600160a01b031690565b600061066282610ccd565b9050806001600160a01b0316836001600160a01b031614156106965760405162461bcd60e51b81526004016105149061342d565b806001600160a01b03166106a8611719565b6001600160a01b031614806106c457506106c4816104b7611719565b6106e05760405162461bcd60e51b81526004016105149061337d565b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610744611f03565b61074d82611656565b6107695760405162461bcd60e51b8152600401610514906132cd565b600d60008381526020019081526020016000206040518060c001604052908160008201548152602001600182018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561082a5780601f106107ff5761010080835404028352916020019161082a565b820191906000526020600020905b81548152906001019060200180831161080d57829003601f168201915b5050509183525050600282810180546040805160206001841615610100026000190190931694909404601f810183900483028501830190915280845293810193908301828280156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b505050918352505060038201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156109505780601f1061092557610100808354040283529160200191610950565b820191906000526020600020905b81548152906001019060200180831161093357829003601f168201915b505050918352505060048201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156109e45780601f106109b9576101008083540402835291602001916109e4565b820191906000526020600020905b8154815290600101906020018083116109c757829003601f168201915b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015610a785780601f10610a4d57610100808354040283529160200191610a78565b820191906000526020600020905b815481529060010190602001808311610a5b57829003601f168201915b5050505050815250509050919050565b60075490565b610a9f610a99611719565b8261171d565b610abb5760405162461bcd60e51b81526004016105149061346d565b610ac68383836117a2565b505050565b610ad3610e29565b610aef5760405162461bcd60e51b8152600401610514906133ed565b6001600160a01b03811660009081526010602052604090205460ff1615610b285760405162461bcd60e51b81526004016105149061334d565b6001600160a01b03811660009081526010602052604090819020805460ff19166001179055517fcc19abc65009012e41c631da2d8277d8740ebceb112ef974cc784ea191e470a790610b7b908390613205565b60405180910390a150565b6000610b9183610d63565b8210610baf5760405162461bcd60e51b8152600401610514906132dd565b6001600160a01b0383166000908152600560205260409020805483908110610bd357fe5b906000526020600020015490505b92915050565b60126020526000908152604090205481565b610ac683838360405180602001604052806000815250611136565b6000610c1e610a88565b8210610c3c5760405162461bcd60e51b81526004016105149061347d565b60078281548110610c4957fe5b90600052602060002001549050919050565b3360009081526011602052604090205460ff1615610c8b5760405162461bcd60e51b8152600401610514906132fd565b33600081815260116020526040808220805460ff19166001179055517fe41b009a6b640ace2118aefe12476c796e8c6c81a737ff53284b0ffbdefb70ca9190a2565b6000818152600160205260408120546001600160a01b031680610be15760405162461bcd60e51b8152600401610514906133ad565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106095780601f106105de57610100808354040283529160200191610609565b60006001600160a01b038216610d8b5760405162461bcd60e51b81526004016105149061339d565b6001600160a01b0382166000908152600360205260409020610be1906117c1565b610db4610e29565b610dd05760405162461bcd60e51b8152600401610514906133ed565b600e546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80546001600160a01b0319169055565b600e546001600160a01b031690565b600e546000906001600160a01b0316610e40611719565b6001600160a01b031614905090565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106095780601f106105de57610100808354040283529160200191610609565b610eb8611719565b6001600160a01b0316826001600160a01b03161415610ee95760405162461bcd60e51b81526004016105149061333d565b8060046000610ef6611719565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f3a611719565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f729190613279565b60405180910390a35050565b6001600160a01b031660009081526010602052604090205460ff1690565b3360009081526011602052604090205460ff16610fcb5760405162461bcd60e51b81526004016105149061336d565b33600081815260116020526040808220805460ff19169055517fad3793ccba4bf145fba17f6e508c1db7de72afcee73d854cb0d5220cb4022c9f9190a2565b6060600061101783610d63565b9050606081604051908082528060200260200182016040528015611045578160200160208202803883390190505b50905060005b8281101561108257600061105f8683610b86565b90508083838151811061106e57fe5b60209081029190910101525060010161104b565b509392505050565b611092610e29565b6110ae5760405162461bcd60e51b8152600401610514906133ed565b6001600160a01b03811660009081526010602052604090205460ff166110e65760405162461bcd60e51b81526004016105149061343d565b6001600160a01b03811660009081526010602052604090819020805460ff19169055517fdbac57781dae8783301559623b7c269c0945af5afc6741c1eb02d6cbe21e545090610b7b908390613205565b611147611141611719565b8361171d565b6111635760405162461bcd60e51b81526004016105149061346d565b61116f848484846117c5565b50505050565b6000611181600f6117f8565b600061118d600f6117c1565b90506111998982611801565b6111a38189611822565b6111b1818888888888611673565b98975050505050505050565b60606111c882611656565b6111e45760405162461bcd60e51b81526004016105149061341d565b6000828152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156112795780601f1061124e57610100808354040283529160200191611279565b820191906000526020600020905b81548152906001019060200180831161125c57829003601f168201915b505050505090508051600014156112a0575050604080516020810190915260008152610578565b600b816040516020016112b49291906131ed565b604051602081830303815290604052915050610578565b60006112d7600f6117f8565b60006112e3600f6117c1565b90506112ef8482611801565b6112f98184611822565b9392505050565b6000816001600160a01b0316836001600160a01b031614806112f957506001600160a01b03821660009081526011602052604090205460ff161580156112f9575050506001600160a01b031660009081526010602052604090205460ff1690565b6001600160a01b031660009081526011602052604090205460ff161590565b61138a338b611300565b6113a65760405162461bcd60e51b81526004016105149061340d565b60008160ff16601b141580156113c057508160ff16601c14155b611444576001338c8c8a6040516020016113dd9493929190613199565b60405160208183030381529060405280519060200120838686604051600081526020016040526040516114139493929190613287565b6020604051602081039080840390855afa158015611435573d6000803e3d6000fd5b50505060206040510351611447565b60005b6001600160a01b03811660009081526012602052604090205490915087116114815760405162461bcd60e51b81526004016105149061344d565b8660126000836001600160a01b03166001600160a01b031681526020019081526020016000208190555061151e338c8c8c8c8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020601f8f018190048102820181019092528d815292508d91508c908190840183828082843760009201919091525061186692505050565b5050505050505050505050565b606080825160405190808252806020026020018201604052801561156957816020015b611556611f03565b81526020019060019003908161154e5790505b50905060005b83518110156115f15761159484828151811061158757fe5b6020026020010151611656565b6115b05760405162461bcd60e51b8152600401610514906132cd565b60008482815181106115be57fe5b602002602001015190506115d18161073c565b8383815181106115dd57fe5b60209081029190910101525060010161156f565b5092915050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b61162e610e29565b61164a5760405162461bcd60e51b8152600401610514906133ed565b6116538161190a565b50565b6000908152600160205260409020546001600160a01b0316151590565b61167c86611656565b6116985760405162461bcd60e51b81526004016105149061338d565b6000868152600d60209081526040909120878155865190916116c1916001840191890190611f39565b5084516116d79060028301906020880190611f39565b5083516116ed9060038301906020870190611f39565b5082516117039060048301906020860190611f39565b5081516105509060058301906020850190611f39565b3390565b600061172882611656565b6117445760405162461bcd60e51b81526004016105149061335d565b600061174f83610ccd565b9050806001600160a01b0316846001600160a01b0316148061178a5750836001600160a01b031661177f84610614565b6001600160a01b0316145b8061179a575061179a81856115f8565b949350505050565b6117ad83838361198c565b6117b78382611a92565b610ac68282611b87565b5490565b6117d08484846117a2565b6117dc84848484611bc5565b61116f5760405162461bcd60e51b8152600401610514906132ed565b80546001019055565b61180b8282611cff565b6118158282611b87565b61181e81611dc6565b5050565b61182b82611656565b6118475760405162461bcd60e51b8152600401610514906133dd565b6000828152600c602090815260409091208251610ac692840190611f39565b60005b825181101561190257611890858585848151811061188357fe5b60200260200101516117a2565b836001600160a01b0316856001600160a01b0316876001600160a01b03167fafd473af84dda5c8298fafdd930dccd3fb3cd2559def8f86dcbcb134bacb6dd28685815181106118db57fe5b6020026020010151866040516118f29291906134ac565b60405180910390a4600101611869565b505050505050565b6001600160a01b0381166119305760405162461bcd60e51b81526004016105149061330d565b600e546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661199f82610ccd565b6001600160a01b0316146119c55760405162461bcd60e51b8152600401610514906133fd565b6001600160a01b0382166119eb5760405162461bcd60e51b81526004016105149061332d565b6119f481611e0a565b6001600160a01b0383166000908152600360205260409020611a1590611e45565b6001600160a01b0382166000908152600360205260409020611a36906117f8565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260056020526040812054611abc90600163ffffffff611e5c16565b600083815260066020526040902054909150808214611b57576001600160a01b0384166000908152600560205260408120805484908110611af957fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110611b3757fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611b80906000198301611fb7565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6000611bd9846001600160a01b0316611e9e565b611be55750600161179a565b600060606001600160a01b038616630a85bd0160e11b611c03611719565b898888604051602401611c199493929190613213565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611c5791906131e1565b6000604051808303816000865af19150503d8060008114611c94576040519150601f19603f3d011682016040523d82523d6000602084013e611c99565b606091505b509150915081611ccb57805115611cb35780518082602001fd5b60405162461bcd60e51b8152600401610514906132ed565b600081806020019051611ce191908101906125ad565b6001600160e01b031916630a85bd0160e11b14935061179a92505050565b6001600160a01b038216611d255760405162461bcd60e51b8152600401610514906133bd565b611d2e81611656565b15611d4b5760405162461bcd60e51b81526004016105149061331d565b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020611d8a906117f8565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b03161561165357600090815260026020526040902080546001600160a01b0319169055565b8054611e5890600163ffffffff611e5c16565b9055565b60006112f983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ed7565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061179a575050151592915050565b60008184841115611efb5760405162461bcd60e51b815260040161051491906132bc565b505050900390565b6040518060c001604052806000815260200160608152602001606081526020016060815260200160608152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611f7a57805160ff1916838001178555611fa7565b82800160010185558215611fa7579182015b82811115611fa7578251825591602001919060010190611f8c565b50611fb3929150611fd7565b5090565b815481835581811115610ac657600083815260209020610ac69181019083015b61061191905b80821115611fb35760008155600101611fdd565b8035610be1816135e0565b60008083601f84011261200e57600080fd5b5081356001600160401b0381111561202557600080fd5b60208301915083602082028301111561203d57600080fd5b9250929050565b600082601f83011261205557600080fd5b8135612068612063826134f2565b6134cc565b9150818183526020840193506020810190508385602084028201111561208d57600080fd5b60005b838110156120b957816120a388826120ce565b8452506020928301929190910190600101612090565b5050505092915050565b8035610be1816135f4565b8035610be1816135fd565b8035610be181613606565b8051610be181613606565b60008083601f84011261210157600080fd5b5081356001600160401b0381111561211857600080fd5b60208301915083600182028301111561203d57600080fd5b600082601f83011261214157600080fd5b813561214f61206382613512565b9150808252602083016020830185838301111561216b57600080fd5b612176838284613587565b50505092915050565b8035610be18161360f565b60006020828403121561219c57600080fd5b600061179a8484611ff1565b600080604083850312156121bb57600080fd5b60006121c78585611ff1565b92505060206121d885828601611ff1565b9150509250929050565b6000806000806000806000806000806101008b8d03121561220257600080fd5b600061220e8d8d611ff1565b9a5050602061221f8d828e01611ff1565b99505060408b01356001600160401b0381111561223b57600080fd5b6122478d828e01611ffc565b9850985050606061225a8d828e016120ce565b96505060808b01356001600160401b0381111561227657600080fd5b6122828d828e016120ef565b955095505060a06122958d828e016120ce565b93505060c06122a68d828e016120ce565b92505060e06122b78d828e0161217f565b9150509295989b9194979a5092959850565b6000806000606084860312156122de57600080fd5b60006122ea8686611ff1565b93505060206122fb86828701611ff1565b925050604061230c868287016120ce565b9150509250925092565b6000806000806080858703121561232c57600080fd5b60006123388787611ff1565b945050602061234987828801611ff1565b935050604061235a878288016120ce565b92505060608501356001600160401b0381111561237657600080fd5b61238287828801612130565b91505092959194509250565b600080604083850312156123a157600080fd5b60006123ad8585611ff1565b92505060206121d8858286016120c3565b600080604083850312156123d157600080fd5b60006123dd8585611ff1565b92505060208301356001600160401b038111156123f957600080fd5b6121d885828601612130565b600080600080600080600060e0888a03121561242057600080fd5b600061242c8a8a611ff1565b97505060208801356001600160401b0381111561244857600080fd5b6124548a828b01612130565b96505060408801356001600160401b0381111561247057600080fd5b61247c8a828b01612130565b95505060608801356001600160401b0381111561249857600080fd5b6124a48a828b01612130565b94505060808801356001600160401b038111156124c057600080fd5b6124cc8a828b01612130565b93505060a08801356001600160401b038111156124e857600080fd5b6124f48a828b01612130565b92505060c08801356001600160401b0381111561251057600080fd5b61251c8a828b01612130565b91505092959891949750929550565b6000806040838503121561253e57600080fd5b600061254a8585611ff1565b92505060206121d8858286016120ce565b60006020828403121561256d57600080fd5b81356001600160401b0381111561258357600080fd5b61179a84828501612044565b6000602082840312156125a157600080fd5b600061179a84846120d9565b6000602082840312156125bf57600080fd5b600061179a84846120e4565b6000602082840312156125dd57600080fd5b600061179a84846120ce565b60008060008060008060c0878903121561260257600080fd5b600061260e89896120ce565b96505060208701356001600160401b0381111561262a57600080fd5b61263689828a01612130565b95505060408701356001600160401b0381111561265257600080fd5b61265e89828a01612130565b94505060608701356001600160401b0381111561267a57600080fd5b61268689828a01612130565b93505060808701356001600160401b038111156126a257600080fd5b6126ae89828a01612130565b92505060a08701356001600160401b038111156126ca57600080fd5b6126d689828a01612130565b9150509295509295509295565b60006112f983836130e2565b60006126fb83836127f3565b505060200190565b61270c81613558565b82525050565b61270c61271e82613558565b6135bf565b600061272e8261354b565b612738818561354f565b93508360208202850161274a85613539565b8060005b85811015612784578484038952815161276785826126e3565b945061277283613539565b60209a909a019992505060010161274e565b5091979650505050505050565b600061279c8261354b565b6127a6818561354f565b93506127b183613539565b8060005b838110156127df5781516127c988826126ef565b97506127d483613539565b9250506001016127b5565b509495945050505050565b61270c81613563565b61270c81610611565b60006128078261354b565b612811818561354f565b9350612821818560208601613593565b61282a816135d0565b9093019392505050565b600061283f8261354b565b6128498185610578565b9350612859818560208601613593565b9290920192915050565b60008154600181166000811461288057600181146128a3576128e2565b607f60028304166128918187610578565b60ff19841681529550850192506128e2565b600282046128b18187610578565b95506128bc8561353f565b60005b828110156128db578154888201526001909101906020016128bf565b5050850192505b505092915050565b60006128f760318361354f565b7f4552433732314d657461646174613a204d6574616461746120736574206f66208152703737b732bc34b9ba32b73a103a37b5b2b760791b602082015260400192915050565b600061294a602b8361354f565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b600061299760328361354f565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006129eb60368361354f565b7f4f6666696369616c206f70657261746f72732061726520616c7265616479207281527532b532b1ba32b210313c9036b9b39739b2b73232b91760511b602082015260400192915050565b6000612a4360268361354f565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b6000612a8b601c8361354f565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612ac460248361354f565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612b0a60198361354f565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612b43602a8361354f565b7f5f6f70657261746f7220697320616c726561647920616e206f6666696369616c8152691037b832b930ba37b91760b11b602082015260400192915050565b6000612b8f602c8361354f565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612bdd60368361354f565b7f4f6666696369616c206f70657261746f72732061726520616c7265616479206181527531b1b2b83a32b210313c9036b9b39739b2b73232b91760511b602082015260400192915050565b6000612c3560388361354f565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612c9460218361354f565b7f4552433732314d657461646174613a206e6f6e6578697374656e7420746f6b658152603760f91b602082015260400192915050565b6000612cd7602a8361354f565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612d2360298361354f565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612d6e60208361354f565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612da7602c8361354f565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612df5602c8361354f565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612e4360208361354f565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612e7c60298361354f565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612ec760168361354f565b7539b2b73232b91034b9903737ba1037b832b930ba37b960511b815260200192915050565b6000612ef9602f8361354f565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b6000612f4a60218361354f565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000612f8d60268361354f565b7f5f6f70657261746f72206973206e6f7420616e206f6666696369616c206f70658152653930ba37b91760d11b602082015260400192915050565b6000612fd560448361354f565b7f5f6e6f6e6365206d7573742062652067726561746572207468616e207468652081527f6c6173742075736564206e6f6e6365206f662074686520746f6b656e20686f6c6020820152633232b91760e11b604082015260600192915050565b6000610be160008361354f565b600061304e60318361354f565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b60006130a1602c8361354f565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b805160009060c08401906130f685826127f3565b506020830151848203602086015261310e82826127fc565b9150506040830151848203604086015261312882826127fc565b9150506060830151848203606086015261314282826127fc565b9150506080830151848203608086015261315c82826127fc565b91505060a083015184820360a086015261317682826127fc565b95945050505050565b61270c61318b82610611565b610611565b61270c81613581565b60006131a58287612712565b6014820191506131b58286612712565b6014820191506131c58285612712565b6014820191506131d5828461317f565b50602001949350505050565b60006112f98284612834565b60006131f98285612863565b915061179a8284612834565b60208101610be18284612703565b608081016132218287612703565b61322e6020830186612703565b61323b60408301856127f3565b818103606083015261324d81846127fc565b9695505050505050565b602080825281016112f98184612723565b602080825281016112f98184612791565b60208101610be182846127ea565b6080810161329582876127f3565b6132a26020830186613190565b6132af60408301856127f3565b61317660608301846127f3565b602080825281016112f981846127fc565b60208082528101610be1816128ea565b60208082528101610be18161293d565b60208082528101610be18161298a565b60208082528101610be1816129de565b60208082528101610be181612a36565b60208082528101610be181612a7e565b60208082528101610be181612ab7565b60208082528101610be181612afd565b60208082528101610be181612b36565b60208082528101610be181612b82565b60208082528101610be181612bd0565b60208082528101610be181612c28565b60208082528101610be181612c87565b60208082528101610be181612cca565b60208082528101610be181612d16565b60208082528101610be181612d61565b60208082528101610be181612d9a565b60208082528101610be181612de8565b60208082528101610be181612e36565b60208082528101610be181612e6f565b60208082528101610be181612eba565b60208082528101610be181612eec565b60208082528101610be181612f3d565b60208082528101610be181612f80565b60208082528101610be181612fc8565b60208082528101610be181613034565b60208082528101610be181613041565b60208082528101610be181613094565b602080825281016112f981846130e2565b60208101610be182846127f3565b604081016134ba82856127f3565b818103602083015261179a81846127fc565b6040518181016001600160401b03811182821017156134ea57600080fd5b604052919050565b60006001600160401b0382111561350857600080fd5b5060209081020190565b60006001600160401b0382111561352857600080fd5b506020601f91909101601f19160190565b60200190565b60009081526020902090565b5190565b90815260200190565b6000610be182613575565b151590565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b82818337506000910152565b60005b838110156135ae578181015183820152602001613596565b8381111561116f5750506000910152565b6000610be1826000610be1826135da565b601f01601f191690565b60601b90565b6135e981613558565b811461165357600080fd5b6135e981613563565b6135e981610611565b6135e981613568565b6135e98161358156fea365627a7a7231582084cb401e00e9fc918260aef9b0b35deb0ddc4d7d9b4fe6b40326eb59d827ff756c6578706572696d656e74616cf564736f6c63430005110040",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x21B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DA5CB5B GT PUSH2 0x125 JUMPI DUP1 PUSH4 0xBB7FA584 GT PUSH2 0xAD JUMPI DUP1 PUSH4 0xDAA4EB53 GT PUSH2 0x7C JUMPI DUP1 PUSH4 0xDAA4EB53 EQ PUSH2 0x463 JUMPI DUP1 PUSH4 0xDBA4C551 EQ PUSH2 0x476 JUMPI DUP1 PUSH4 0xE71706BE EQ PUSH2 0x489 JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x4A9 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x4BC JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0xBB7FA584 EQ PUSH2 0x417 JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0x42A JUMPI DUP1 PUSH4 0xD0DEF521 EQ PUSH2 0x43D JUMPI DUP1 PUSH4 0xD95B6371 EQ PUSH2 0x450 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0xA506A0A1 GT PUSH2 0xF4 JUMPI DUP1 PUSH4 0xA506A0A1 EQ PUSH2 0x3B6 JUMPI DUP1 PUSH4 0xA60C2312 EQ PUSH2 0x3C9 JUMPI DUP1 PUSH4 0xACE7F8BC EQ PUSH2 0x3D1 JUMPI DUP1 PUSH4 0xB1C4C72B EQ PUSH2 0x3F1 JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x404 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x38B JUMPI DUP1 PUSH4 0x8F32D59B EQ PUSH2 0x393 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x39B JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x3A3 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x2F745C59 GT PUSH2 0x1A8 JUMPI DUP1 PUSH4 0x5C59ED7B GT PUSH2 0x177 JUMPI DUP1 PUSH4 0x5C59ED7B EQ PUSH2 0x34D JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x355 JUMPI DUP1 PUSH4 0x6C0360EB EQ PUSH2 0x368 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x370 JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x383 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x2F745C59 EQ PUSH2 0x301 JUMPI DUP1 PUSH4 0x3E61E9DC EQ PUSH2 0x314 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x327 JUMPI DUP1 PUSH4 0x4F6CCCE7 EQ PUSH2 0x33A JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x95EA7B3 GT PUSH2 0x1EF JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x293 JUMPI DUP1 PUSH4 0x11E10CB8 EQ PUSH2 0x2A6 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x2C6 JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x2DB JUMPI DUP1 PUSH4 0x263CFBE0 EQ PUSH2 0x2EE JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH3 0x23ECC5 EQ PUSH2 0x220 JUMPI DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0x235 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x25E JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0x273 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x233 PUSH2 0x22E CALLDATASIZE PUSH1 0x4 PUSH2 0x25E9 JUMP JUMPDEST PUSH2 0x4CF JUMP JUMPDEST STOP JUMPDEST PUSH2 0x248 PUSH2 0x243 CALLDATASIZE PUSH1 0x4 PUSH2 0x258F JUMP JUMPDEST PUSH2 0x55A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3279 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x266 PUSH2 0x57D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x32BC JUMP JUMPDEST PUSH2 0x286 PUSH2 0x281 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0x614 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3205 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x2A1 CALLDATASIZE PUSH1 0x4 PUSH2 0x252B JUMP JUMPDEST PUSH2 0x657 JUMP JUMPDEST PUSH2 0x2B9 PUSH2 0x2B4 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0x73C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x348D JUMP JUMPDEST PUSH2 0x2CE PUSH2 0xA88 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x349E JUMP JUMPDEST PUSH2 0x233 PUSH2 0x2E9 CALLDATASIZE PUSH1 0x4 PUSH2 0x22C9 JUMP JUMPDEST PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x233 PUSH2 0x2FC CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xACB JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x30F CALLDATASIZE PUSH1 0x4 PUSH2 0x252B JUMP JUMPDEST PUSH2 0xB86 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x322 CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xBE7 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x335 CALLDATASIZE PUSH1 0x4 PUSH2 0x22C9 JUMP JUMPDEST PUSH2 0xBF9 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x348 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0xC14 JUMP JUMPDEST PUSH2 0x233 PUSH2 0xC5B JUMP JUMPDEST PUSH2 0x286 PUSH2 0x363 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0xCCD JUMP JUMPDEST PUSH2 0x266 PUSH2 0xD02 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x37E CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xD63 JUMP JUMPDEST PUSH2 0x233 PUSH2 0xDAC JUMP JUMPDEST PUSH2 0x286 PUSH2 0xE1A JUMP JUMPDEST PUSH2 0x248 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0x266 PUSH2 0xE4F JUMP JUMPDEST PUSH2 0x233 PUSH2 0x3B1 CALLDATASIZE PUSH1 0x4 PUSH2 0x238E JUMP JUMPDEST PUSH2 0xEB0 JUMP JUMPDEST PUSH2 0x248 PUSH2 0x3C4 CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0xF7E JUMP JUMPDEST PUSH2 0x233 PUSH2 0xF9C JUMP JUMPDEST PUSH2 0x3E4 PUSH2 0x3DF CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x100A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3268 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x3FF CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x108A JUMP JUMPDEST PUSH2 0x233 PUSH2 0x412 CALLDATASIZE PUSH1 0x4 PUSH2 0x2316 JUMP JUMPDEST PUSH2 0x1136 JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x425 CALLDATASIZE PUSH1 0x4 PUSH2 0x2405 JUMP JUMPDEST PUSH2 0x1175 JUMP JUMPDEST PUSH2 0x266 PUSH2 0x438 CALLDATASIZE PUSH1 0x4 PUSH2 0x25CB JUMP JUMPDEST PUSH2 0x11BD JUMP JUMPDEST PUSH2 0x2CE PUSH2 0x44B CALLDATASIZE PUSH1 0x4 PUSH2 0x23BE JUMP JUMPDEST PUSH2 0x12CB JUMP JUMPDEST PUSH2 0x248 PUSH2 0x45E CALLDATASIZE PUSH1 0x4 PUSH2 0x21A8 JUMP JUMPDEST PUSH2 0x1300 JUMP JUMPDEST PUSH2 0x248 PUSH2 0x471 CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x1361 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x484 CALLDATASIZE PUSH1 0x4 PUSH2 0x21E2 JUMP JUMPDEST PUSH2 0x1380 JUMP JUMPDEST PUSH2 0x49C PUSH2 0x497 CALLDATASIZE PUSH1 0x4 PUSH2 0x255B JUMP JUMPDEST PUSH2 0x152B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3257 JUMP JUMPDEST PUSH2 0x248 PUSH2 0x4B7 CALLDATASIZE PUSH1 0x4 PUSH2 0x21A8 JUMP JUMPDEST PUSH2 0x15F8 JUMP JUMPDEST PUSH2 0x233 PUSH2 0x4CA CALLDATASIZE PUSH1 0x4 PUSH2 0x218A JUMP JUMPDEST PUSH2 0x1626 JUMP JUMPDEST DUP6 PUSH1 0x0 PUSH2 0x4DB DUP3 PUSH2 0xCCD JUMP JUMPDEST SWAP1 POP PUSH2 0x4E5 PUSH2 0xE29 JUMP JUMPDEST DUP1 PUSH2 0x4F8 JUMPI POP CALLER PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND EQ JUMPDEST PUSH2 0x51D JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x345D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x526 DUP9 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x542 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32CD JUMP JUMPDEST PUSH2 0x550 DUP9 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x1673 JUMP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x9 DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x609 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x5DE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x609 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x5EC JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP JUMPDEST SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x61F DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x63B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33CD JUMP JUMPDEST POP PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x662 DUP3 PUSH2 0xCCD JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0x696 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x342D JUMP JUMPDEST DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x6A8 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ DUP1 PUSH2 0x6C4 JUMPI POP PUSH2 0x6C4 DUP2 PUSH2 0x4B7 PUSH2 0x1719 JUMP JUMPDEST PUSH2 0x6E0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x337D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP3 SSTORE SWAP2 MLOAD DUP6 SWAP4 SWAP2 DUP6 AND SWAP2 PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP2 LOG4 POP POP POP JUMP JUMPDEST PUSH2 0x744 PUSH2 0x1F03 JUMP JUMPDEST PUSH2 0x74D DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x769 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32CD JUMP JUMPDEST PUSH1 0xD PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 PUSH1 0x40 MLOAD DUP1 PUSH1 0xC0 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH1 0x0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV DUP1 ISZERO PUSH2 0x82A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x7FF JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x82A JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x80D JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x2 DUP3 DUP2 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1 DUP5 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP4 AND SWAP5 SWAP1 SWAP5 DIV PUSH1 0x1F DUP2 ADD DUP4 SWAP1 DIV DUP4 MUL DUP6 ADD DUP4 ADD SWAP1 SWAP2 MSTORE DUP1 DUP5 MSTORE SWAP4 DUP2 ADD SWAP4 SWAP1 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x8BC JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x891 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x8BC JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x89F JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x3 DUP3 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP4 DUP3 ADD SWAP4 SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x950 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x925 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x950 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x933 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x4 DUP3 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP4 DUP3 ADD SWAP4 SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x9E4 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x9B9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x9E4 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x9C7 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x5 DUP3 ADD DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x2 PUSH1 0x1 DUP6 AND ISZERO PUSH2 0x100 MUL PUSH1 0x0 NOT ADD SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 DIV PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP3 ADD DUP5 ADD SWAP1 SWAP3 MSTORE DUP2 DUP2 MSTORE SWAP4 DUP3 ADD SWAP4 SWAP3 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xA78 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xA4D JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xA78 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xA5B JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE POP POP SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x7 SLOAD SWAP1 JUMP JUMPDEST PUSH2 0xA9F PUSH2 0xA99 PUSH2 0x1719 JUMP JUMPDEST DUP3 PUSH2 0x171D JUMP JUMPDEST PUSH2 0xABB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x346D JUMP JUMPDEST PUSH2 0xAC6 DUP4 DUP4 DUP4 PUSH2 0x17A2 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH2 0xAD3 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0xAEF JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0xB28 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x334D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE MLOAD PUSH32 0xCC19ABC65009012E41C631DA2D8277D8740EBCEB112EF974CC784EA191E470A7 SWAP1 PUSH2 0xB7B SWAP1 DUP4 SWAP1 PUSH2 0x3205 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xB91 DUP4 PUSH2 0xD63 JUMP JUMPDEST DUP3 LT PUSH2 0xBAF JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32DD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD DUP4 SWAP1 DUP2 LT PUSH2 0xBD3 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x12 PUSH1 0x20 MSTORE PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 JUMP JUMPDEST PUSH2 0xAC6 DUP4 DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE POP PUSH2 0x1136 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xC1E PUSH2 0xA88 JUMP JUMPDEST DUP3 LT PUSH2 0xC3C JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x347D JUMP JUMPDEST PUSH1 0x7 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0xC49 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO PUSH2 0xC8B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32FD JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE MLOAD PUSH32 0xE41B009A6B640ACE2118AEFE12476C796E8C6C81A737FF53284B0FFBDEFB70CA SWAP2 SWAP1 LOG2 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP1 PUSH2 0xBE1 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33AD JUMP JUMPDEST PUSH1 0xB DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x609 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x5DE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x609 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0xD8B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x339D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH2 0xBE1 SWAP1 PUSH2 0x17C1 JUMP JUMPDEST PUSH2 0xDB4 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0xDD0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x40 MLOAD PUSH1 0x0 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 DUP4 SWAP1 LOG3 PUSH1 0xE DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0xE40 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0xA DUP1 SLOAD PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP9 AND ISZERO MUL ADD SWAP1 SWAP6 AND SWAP5 SWAP1 SWAP5 DIV SWAP4 DUP5 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP3 DUP2 MSTORE PUSH1 0x60 SWAP4 SWAP1 SWAP3 SWAP1 SWAP2 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x609 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x5DE JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x609 JUMP JUMPDEST PUSH2 0xEB8 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ ISZERO PUSH2 0xEE9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x333D JUMP JUMPDEST DUP1 PUSH1 0x4 PUSH1 0x0 PUSH2 0xEF6 PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 ADD SWAP4 SWAP1 SWAP4 MSTORE PUSH1 0x40 SWAP2 DUP3 ADD PUSH1 0x0 SWAP1 DUP2 KECCAK256 SWAP2 DUP8 AND DUP1 DUP3 MSTORE SWAP2 SWAP1 SWAP4 MSTORE SWAP2 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP3 ISZERO ISZERO SWAP3 SWAP1 SWAP3 OR SWAP1 SWAP2 SSTORE PUSH2 0xF3A PUSH2 0x1719 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 DUP4 PUSH1 0x40 MLOAD PUSH2 0xF72 SWAP2 SWAP1 PUSH2 0x3279 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST CALLER PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND PUSH2 0xFCB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x336D JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE MLOAD PUSH32 0xAD3793CCBA4BF145FBA17F6E508C1DB7DE72AFCEE73D854CB0D5220CB4022C9F SWAP2 SWAP1 LOG2 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x1017 DUP4 PUSH2 0xD63 JUMP JUMPDEST SWAP1 POP PUSH1 0x60 DUP2 PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1045 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CODESIZE DUP4 CODECOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x1082 JUMPI PUSH1 0x0 PUSH2 0x105F DUP7 DUP4 PUSH2 0xB86 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x106E JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x104B JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH2 0x1092 PUSH2 0xE29 JUMP JUMPDEST PUSH2 0x10AE JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND PUSH2 0x10E6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x343D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 DUP2 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND SWAP1 SSTORE MLOAD PUSH32 0xDBAC57781DAE8783301559623B7C269C0945AF5AFC6741C1EB02D6CBE21E5450 SWAP1 PUSH2 0xB7B SWAP1 DUP4 SWAP1 PUSH2 0x3205 JUMP JUMPDEST PUSH2 0x1147 PUSH2 0x1141 PUSH2 0x1719 JUMP JUMPDEST DUP4 PUSH2 0x171D JUMP JUMPDEST PUSH2 0x1163 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x346D JUMP JUMPDEST PUSH2 0x116F DUP5 DUP5 DUP5 DUP5 PUSH2 0x17C5 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1181 PUSH1 0xF PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x118D PUSH1 0xF PUSH2 0x17C1 JUMP JUMPDEST SWAP1 POP PUSH2 0x1199 DUP10 DUP3 PUSH2 0x1801 JUMP JUMPDEST PUSH2 0x11A3 DUP2 DUP10 PUSH2 0x1822 JUMP JUMPDEST PUSH2 0x11B1 DUP2 DUP9 DUP9 DUP9 DUP9 DUP9 PUSH2 0x1673 JUMP JUMPDEST SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 PUSH2 0x11C8 DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x11E4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x341D JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xC PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 DUP1 SLOAD DUP4 MLOAD PUSH1 0x1F PUSH1 0x2 PUSH1 0x0 NOT PUSH2 0x100 PUSH1 0x1 DUP7 AND ISZERO MUL ADD SWAP1 SWAP4 AND SWAP3 SWAP1 SWAP3 DIV SWAP2 DUP3 ADD DUP5 SWAP1 DIV DUP5 MUL DUP2 ADD DUP5 ADD SWAP1 SWAP5 MSTORE DUP1 DUP5 MSTORE PUSH1 0x60 SWAP4 SWAP3 DUP4 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x1279 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x124E JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x1279 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x125C JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP SWAP1 POP DUP1 MLOAD PUSH1 0x0 EQ ISZERO PUSH2 0x12A0 JUMPI POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP2 ADD SWAP1 SWAP2 MSTORE PUSH1 0x0 DUP2 MSTORE PUSH2 0x578 JUMP JUMPDEST PUSH1 0xB DUP2 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x12B4 SWAP3 SWAP2 SWAP1 PUSH2 0x31ED JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE SWAP2 POP POP PUSH2 0x578 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12D7 PUSH1 0xF PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12E3 PUSH1 0xF PUSH2 0x17C1 JUMP JUMPDEST SWAP1 POP PUSH2 0x12EF DUP5 DUP3 PUSH2 0x1801 JUMP JUMPDEST PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x1822 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ DUP1 PUSH2 0x12F9 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO DUP1 ISZERO PUSH2 0x12F9 JUMPI POP POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x10 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x11 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x138A CALLER DUP12 PUSH2 0x1300 JUMP JUMPDEST PUSH2 0x13A6 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x340D JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0xFF AND PUSH1 0x1B EQ ISZERO DUP1 ISZERO PUSH2 0x13C0 JUMPI POP DUP2 PUSH1 0xFF AND PUSH1 0x1C EQ ISZERO JUMPDEST PUSH2 0x1444 JUMPI PUSH1 0x1 CALLER DUP13 DUP13 DUP11 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x13DD SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x3199 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH1 0x0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD PUSH2 0x1413 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x3287 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 SUB SWAP1 DUP1 DUP5 SUB SWAP1 DUP6 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x1435 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP PUSH1 0x20 PUSH1 0x40 MLOAD SUB MLOAD PUSH2 0x1447 JUMP JUMPDEST PUSH1 0x0 JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x12 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP DUP8 GT PUSH2 0x1481 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x344D JUMP JUMPDEST DUP7 PUSH1 0x12 PUSH1 0x0 DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 DUP2 SWAP1 SSTORE POP PUSH2 0x151E CALLER DUP13 DUP13 DUP13 DUP13 DUP1 DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 PUSH1 0x20 MUL DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F DUP16 ADD DUP2 SWAP1 DIV DUP2 MUL DUP3 ADD DUP2 ADD SWAP1 SWAP3 MSTORE DUP14 DUP2 MSTORE SWAP3 POP DUP14 SWAP2 POP DUP13 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP PUSH2 0x1866 SWAP3 POP POP POP JUMP JUMPDEST POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x60 DUP1 DUP3 MLOAD PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1569 JUMPI DUP2 PUSH1 0x20 ADD JUMPDEST PUSH2 0x1556 PUSH2 0x1F03 JUMP JUMPDEST DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x154E JUMPI SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 JUMPDEST DUP4 MLOAD DUP2 LT ISZERO PUSH2 0x15F1 JUMPI PUSH2 0x1594 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x1587 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x15B0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32CD JUMP JUMPDEST PUSH1 0x0 DUP5 DUP3 DUP2 MLOAD DUP2 LT PUSH2 0x15BE JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD SWAP1 POP PUSH2 0x15D1 DUP2 PUSH2 0x73C JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT PUSH2 0x15DD JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP2 SWAP1 SWAP2 ADD ADD MSTORE POP PUSH1 0x1 ADD PUSH2 0x156F JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH2 0x162E PUSH2 0xE29 JUMP JUMPDEST PUSH2 0x164A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33ED JUMP JUMPDEST PUSH2 0x1653 DUP2 PUSH2 0x190A JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO ISZERO SWAP1 JUMP JUMPDEST PUSH2 0x167C DUP7 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x1698 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x338D JUMP JUMPDEST PUSH1 0x0 DUP7 DUP2 MSTORE PUSH1 0xD PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP8 DUP2 SSTORE DUP7 MLOAD SWAP1 SWAP2 PUSH2 0x16C1 SWAP2 PUSH1 0x1 DUP5 ADD SWAP2 DUP10 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP5 MLOAD PUSH2 0x16D7 SWAP1 PUSH1 0x2 DUP4 ADD SWAP1 PUSH1 0x20 DUP9 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP4 MLOAD PUSH2 0x16ED SWAP1 PUSH1 0x3 DUP4 ADD SWAP1 PUSH1 0x20 DUP8 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP3 MLOAD PUSH2 0x1703 SWAP1 PUSH1 0x4 DUP4 ADD SWAP1 PUSH1 0x20 DUP7 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST POP DUP2 MLOAD PUSH2 0x550 SWAP1 PUSH1 0x5 DUP4 ADD SWAP1 PUSH1 0x20 DUP6 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST CALLER SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1728 DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x1744 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x335D JUMP JUMPDEST PUSH1 0x0 PUSH2 0x174F DUP4 PUSH2 0xCCD JUMP JUMPDEST SWAP1 POP DUP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ DUP1 PUSH2 0x178A JUMPI POP DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x177F DUP5 PUSH2 0x614 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ JUMPDEST DUP1 PUSH2 0x179A JUMPI POP PUSH2 0x179A DUP2 DUP6 PUSH2 0x15F8 JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH2 0x17AD DUP4 DUP4 DUP4 PUSH2 0x198C JUMP JUMPDEST PUSH2 0x17B7 DUP4 DUP3 PUSH2 0x1A92 JUMP JUMPDEST PUSH2 0xAC6 DUP3 DUP3 PUSH2 0x1B87 JUMP JUMPDEST SLOAD SWAP1 JUMP JUMPDEST PUSH2 0x17D0 DUP5 DUP5 DUP5 PUSH2 0x17A2 JUMP JUMPDEST PUSH2 0x17DC DUP5 DUP5 DUP5 DUP5 PUSH2 0x1BC5 JUMP JUMPDEST PUSH2 0x116F JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32ED JUMP JUMPDEST DUP1 SLOAD PUSH1 0x1 ADD SWAP1 SSTORE JUMP JUMPDEST PUSH2 0x180B DUP3 DUP3 PUSH2 0x1CFF JUMP JUMPDEST PUSH2 0x1815 DUP3 DUP3 PUSH2 0x1B87 JUMP JUMPDEST PUSH2 0x181E DUP2 PUSH2 0x1DC6 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x182B DUP3 PUSH2 0x1656 JUMP JUMPDEST PUSH2 0x1847 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33DD JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0xC PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP1 SWAP2 KECCAK256 DUP3 MLOAD PUSH2 0xAC6 SWAP3 DUP5 ADD SWAP1 PUSH2 0x1F39 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP3 MLOAD DUP2 LT ISZERO PUSH2 0x1902 JUMPI PUSH2 0x1890 DUP6 DUP6 DUP6 DUP5 DUP2 MLOAD DUP2 LT PUSH2 0x1883 JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD PUSH2 0x17A2 JUMP JUMPDEST DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP6 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xAFD473AF84DDA5C8298FAFDD930DCCD3FB3CD2559DEF8F86DCBCB134BACB6DD2 DUP7 DUP6 DUP2 MLOAD DUP2 LT PUSH2 0x18DB JUMPI INVALID JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP7 PUSH1 0x40 MLOAD PUSH2 0x18F2 SWAP3 SWAP2 SWAP1 PUSH2 0x34AC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG4 PUSH1 0x1 ADD PUSH2 0x1869 JUMP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH2 0x1930 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x330D JUMP JUMPDEST PUSH1 0xE SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND SWAP3 AND SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 PUSH1 0x0 SWAP1 LOG3 PUSH1 0xE DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x199F DUP3 PUSH2 0xCCD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND EQ PUSH2 0x19C5 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33FD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x19EB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x332D JUMP JUMPDEST PUSH2 0x19F4 DUP2 PUSH2 0x1E0A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH2 0x1A15 SWAP1 PUSH2 0x1E45 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 PUSH2 0x1A36 SWAP1 PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP3 SSTORE SWAP2 MLOAD DUP5 SWAP4 SWAP2 DUP8 AND SWAP2 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP2 LOG4 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 SLOAD PUSH2 0x1ABC SWAP1 PUSH1 0x1 PUSH4 0xFFFFFFFF PUSH2 0x1E5C AND JUMP JUMPDEST PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x6 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 SWAP2 POP DUP1 DUP3 EQ PUSH2 0x1B57 JUMPI PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 DUP1 SLOAD DUP5 SWAP1 DUP2 LT PUSH2 0x1AF9 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP DUP1 PUSH1 0x5 PUSH1 0x0 DUP8 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x0 KECCAK256 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x1B37 JUMPI INVALID JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 DUP1 DUP4 KECCAK256 SWAP1 SWAP2 ADD SWAP3 SWAP1 SWAP3 SSTORE SWAP2 DUP3 MSTORE PUSH1 0x6 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP2 SWAP1 SSTORE JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD SWAP1 PUSH2 0x1B80 SWAP1 PUSH1 0x0 NOT DUP4 ADD PUSH2 0x1FB7 JUMP JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x5 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 DUP1 SLOAD DUP7 DUP7 MSTORE PUSH1 0x6 DUP5 MSTORE SWAP2 DUP6 KECCAK256 DUP3 SWAP1 SSTORE SWAP3 DUP3 MSTORE PUSH1 0x1 DUP2 ADD DUP4 SSTORE SWAP2 DUP4 MSTORE SWAP1 SWAP2 KECCAK256 ADD SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1BD9 DUP5 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x1E9E JUMP JUMPDEST PUSH2 0x1BE5 JUMPI POP PUSH1 0x1 PUSH2 0x179A JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP7 AND PUSH4 0xA85BD01 PUSH1 0xE1 SHL PUSH2 0x1C03 PUSH2 0x1719 JUMP JUMPDEST DUP10 DUP9 DUP9 PUSH1 0x40 MLOAD PUSH1 0x24 ADD PUSH2 0x1C19 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x3213 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1F NOT DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 DUP2 MSTORE PUSH1 0x20 DUP3 ADD DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT SWAP1 SWAP5 AND SWAP4 SWAP1 SWAP4 OR SWAP1 SWAP3 MSTORE SWAP1 MLOAD PUSH2 0x1C57 SWAP2 SWAP1 PUSH2 0x31E1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP7 GAS CALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0x1C94 JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0x1C99 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP SWAP2 POP SWAP2 POP DUP2 PUSH2 0x1CCB JUMPI DUP1 MLOAD ISZERO PUSH2 0x1CB3 JUMPI DUP1 MLOAD DUP1 DUP3 PUSH1 0x20 ADD REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x32ED JUMP JUMPDEST PUSH1 0x0 DUP2 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD PUSH2 0x1CE1 SWAP2 SWAP1 DUP2 ADD SWAP1 PUSH2 0x25AD JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH4 0xA85BD01 PUSH1 0xE1 SHL EQ SWAP4 POP PUSH2 0x179A SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x1D25 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x33BD JUMP JUMPDEST PUSH2 0x1D2E DUP2 PUSH2 0x1656 JUMP JUMPDEST ISZERO PUSH2 0x1D4B JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP1 PUSH2 0x331D JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE DUP4 MSTORE PUSH1 0x3 SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 PUSH2 0x1D8A SWAP1 PUSH2 0x17F8 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 AND SWAP1 PUSH1 0x0 SWAP1 PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF SWAP1 DUP3 SWAP1 LOG4 POP POP JUMP JUMPDEST PUSH1 0x7 DUP1 SLOAD PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x8 PUSH1 0x20 MSTORE PUSH1 0x40 DUP2 KECCAK256 DUP3 SWAP1 SSTORE PUSH1 0x1 DUP3 ADD DUP4 SSTORE SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xA66CC928B5EDB82AF9BD49922954155AB7B0942694BEA4CE44661D9A8736C688 ADD SSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO PUSH2 0x1653 JUMPI PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMP JUMPDEST DUP1 SLOAD PUSH2 0x1E58 SWAP1 PUSH1 0x1 PUSH4 0xFFFFFFFF PUSH2 0x1E5C AND JUMP JUMPDEST SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12F9 DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x1E DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x536166654D6174683A207375627472616374696F6E206F766572666C6F770000 DUP2 MSTORE POP PUSH2 0x1ED7 JUMP JUMPDEST PUSH1 0x0 DUP2 EXTCODEHASH PUSH32 0xC5D2460186F7233C927E7DB2DCC703C0E500B653CA82273B7BFAD8045D85A470 DUP2 DUP2 EQ DUP1 ISZERO SWAP1 PUSH2 0x179A JUMPI POP POP ISZERO ISZERO SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP5 DUP5 GT ISZERO PUSH2 0x1EFB JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x514 SWAP2 SWAP1 PUSH2 0x32BC JUMP JUMPDEST POP POP POP SWAP1 SUB SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0xC0 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x1F7A JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x1FA7 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x1FA7 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x1FA7 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x1F8C JUMP JUMPDEST POP PUSH2 0x1FB3 SWAP3 SWAP2 POP PUSH2 0x1FD7 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST DUP2 SLOAD DUP2 DUP4 SSTORE DUP2 DUP2 GT ISZERO PUSH2 0xAC6 JUMPI PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x20 SWAP1 KECCAK256 PUSH2 0xAC6 SWAP2 DUP2 ADD SWAP1 DUP4 ADD JUMPDEST PUSH2 0x611 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x1FB3 JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x1FDD JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x35E0 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x200E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2025 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0x203D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x2055 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x2068 PUSH2 0x2063 DUP3 PUSH2 0x34F2 JUMP JUMPDEST PUSH2 0x34CC JUMP JUMPDEST SWAP2 POP DUP2 DUP2 DUP4 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP PUSH1 0x20 DUP2 ADD SWAP1 POP DUP4 DUP6 PUSH1 0x20 DUP5 MUL DUP3 ADD GT ISZERO PUSH2 0x208D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x20B9 JUMPI DUP2 PUSH2 0x20A3 DUP9 DUP3 PUSH2 0x20CE JUMP JUMPDEST DUP5 MSTORE POP PUSH1 0x20 SWAP3 DUP4 ADD SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x2090 JUMP JUMPDEST POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x35F4 JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x35FD JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x3606 JUMP JUMPDEST DUP1 MLOAD PUSH2 0xBE1 DUP2 PUSH2 0x3606 JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x2101 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2118 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x1 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0x203D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x2141 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x214F PUSH2 0x2063 DUP3 PUSH2 0x3512 JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH2 0x216B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2176 DUP4 DUP3 DUP5 PUSH2 0x3587 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH2 0xBE1 DUP2 PUSH2 0x360F JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x219C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x1FF1 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x21BB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x21C7 DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0x100 DUP12 DUP14 SUB SLT ISZERO PUSH2 0x2202 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x220E DUP14 DUP14 PUSH2 0x1FF1 JUMP JUMPDEST SWAP11 POP POP PUSH1 0x20 PUSH2 0x221F DUP14 DUP3 DUP15 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP10 POP POP PUSH1 0x40 DUP12 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x223B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2247 DUP14 DUP3 DUP15 ADD PUSH2 0x1FFC JUMP JUMPDEST SWAP9 POP SWAP9 POP POP PUSH1 0x60 PUSH2 0x225A DUP14 DUP3 DUP15 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP7 POP POP PUSH1 0x80 DUP12 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2276 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2282 DUP14 DUP3 DUP15 ADD PUSH2 0x20EF JUMP JUMPDEST SWAP6 POP SWAP6 POP POP PUSH1 0xA0 PUSH2 0x2295 DUP14 DUP3 DUP15 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP4 POP POP PUSH1 0xC0 PUSH2 0x22A6 DUP14 DUP3 DUP15 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP3 POP POP PUSH1 0xE0 PUSH2 0x22B7 DUP14 DUP3 DUP15 ADD PUSH2 0x217F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP12 SWAP2 SWAP5 SWAP8 SWAP11 POP SWAP3 SWAP6 SWAP9 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x22DE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x22EA DUP7 DUP7 PUSH2 0x1FF1 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x22FB DUP7 DUP3 DUP8 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 PUSH2 0x230C DUP7 DUP3 DUP8 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x80 DUP6 DUP8 SUB SLT ISZERO PUSH2 0x232C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x2338 DUP8 DUP8 PUSH2 0x1FF1 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x20 PUSH2 0x2349 DUP8 DUP3 DUP9 ADD PUSH2 0x1FF1 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x40 PUSH2 0x235A DUP8 DUP3 DUP9 ADD PUSH2 0x20CE JUMP JUMPDEST SWAP3 POP POP PUSH1 0x60 DUP6 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2376 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2382 DUP8 DUP3 DUP9 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP2 SWAP5 POP SWAP3 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x23A1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x23AD DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x20C3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x23D1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x23DD DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x23F9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x2130 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xE0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x2420 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x242C DUP11 DUP11 PUSH2 0x1FF1 JUMP JUMPDEST SWAP8 POP POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2448 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2454 DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP7 POP POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2470 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x247C DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP6 POP POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2498 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x24A4 DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x80 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x24C0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x24CC DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP4 POP POP PUSH1 0xA0 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x24E8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x24F4 DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP3 POP POP PUSH1 0xC0 DUP9 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2510 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x251C DUP11 DUP3 DUP12 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 SWAP9 SWAP2 SWAP5 SWAP8 POP SWAP3 SWAP6 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x253E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x254A DUP6 DUP6 PUSH2 0x1FF1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x21D8 DUP6 DUP3 DUP7 ADD PUSH2 0x20CE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x256D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2583 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x179A DUP5 DUP3 DUP6 ADD PUSH2 0x2044 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x25A1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x20D9 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x25BF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x20E4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x25DD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x179A DUP5 DUP5 PUSH2 0x20CE JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xC0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x2602 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH2 0x260E DUP10 DUP10 PUSH2 0x20CE JUMP JUMPDEST SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x262A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2636 DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP6 POP POP PUSH1 0x40 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x2652 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x265E DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP5 POP POP PUSH1 0x60 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x267A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2686 DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x80 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x26A2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x26AE DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP3 POP POP PUSH1 0xA0 DUP8 ADD CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH2 0x26CA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x26D6 DUP10 DUP3 DUP11 ADD PUSH2 0x2130 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12F9 DUP4 DUP4 PUSH2 0x30E2 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x26FB DUP4 DUP4 PUSH2 0x27F3 JUMP JUMPDEST POP POP PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x3558 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x270C PUSH2 0x271E DUP3 PUSH2 0x3558 JUMP JUMPDEST PUSH2 0x35BF JUMP JUMPDEST PUSH1 0x0 PUSH2 0x272E DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x2738 DUP2 DUP6 PUSH2 0x354F JUMP JUMPDEST SWAP4 POP DUP4 PUSH1 0x20 DUP3 MUL DUP6 ADD PUSH2 0x274A DUP6 PUSH2 0x3539 JUMP JUMPDEST DUP1 PUSH1 0x0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x2784 JUMPI DUP5 DUP5 SUB DUP10 MSTORE DUP2 MLOAD PUSH2 0x2767 DUP6 DUP3 PUSH2 0x26E3 JUMP JUMPDEST SWAP5 POP PUSH2 0x2772 DUP4 PUSH2 0x3539 JUMP JUMPDEST PUSH1 0x20 SWAP11 SWAP1 SWAP11 ADD SWAP10 SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x274E JUMP JUMPDEST POP SWAP2 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x279C DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x27A6 DUP2 DUP6 PUSH2 0x354F JUMP JUMPDEST SWAP4 POP PUSH2 0x27B1 DUP4 PUSH2 0x3539 JUMP JUMPDEST DUP1 PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x27DF JUMPI DUP2 MLOAD PUSH2 0x27C9 DUP9 DUP3 PUSH2 0x26EF JUMP JUMPDEST SWAP8 POP PUSH2 0x27D4 DUP4 PUSH2 0x3539 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 ADD PUSH2 0x27B5 JUMP JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x3563 JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x611 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2807 DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x2811 DUP2 DUP6 PUSH2 0x354F JUMP JUMPDEST SWAP4 POP PUSH2 0x2821 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x3593 JUMP JUMPDEST PUSH2 0x282A DUP2 PUSH2 0x35D0 JUMP JUMPDEST SWAP1 SWAP4 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x283F DUP3 PUSH2 0x354B JUMP JUMPDEST PUSH2 0x2849 DUP2 DUP6 PUSH2 0x578 JUMP JUMPDEST SWAP4 POP PUSH2 0x2859 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x3593 JUMP JUMPDEST SWAP3 SWAP1 SWAP3 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SLOAD PUSH1 0x1 DUP2 AND PUSH1 0x0 DUP2 EQ PUSH2 0x2880 JUMPI PUSH1 0x1 DUP2 EQ PUSH2 0x28A3 JUMPI PUSH2 0x28E2 JUMP JUMPDEST PUSH1 0x7F PUSH1 0x2 DUP4 DIV AND PUSH2 0x2891 DUP2 DUP8 PUSH2 0x578 JUMP JUMPDEST PUSH1 0xFF NOT DUP5 AND DUP2 MSTORE SWAP6 POP DUP6 ADD SWAP3 POP PUSH2 0x28E2 JUMP JUMPDEST PUSH1 0x2 DUP3 DIV PUSH2 0x28B1 DUP2 DUP8 PUSH2 0x578 JUMP JUMPDEST SWAP6 POP PUSH2 0x28BC DUP6 PUSH2 0x353F JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x28DB JUMPI DUP2 SLOAD DUP9 DUP3 ADD MSTORE PUSH1 0x1 SWAP1 SWAP2 ADD SWAP1 PUSH1 0x20 ADD PUSH2 0x28BF JUMP JUMPDEST POP POP DUP6 ADD SWAP3 POP JUMPDEST POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x28F7 PUSH1 0x31 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A204D6574616461746120736574206F6620 DUP2 MSTORE PUSH17 0x3737B732BC34B9BA32B73A103A37B5B2B7 PUSH1 0x79 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x294A PUSH1 0x2B DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x455243373231456E756D657261626C653A206F776E657220696E646578206F75 DUP2 MSTORE PUSH11 0x74206F6620626F756E6473 PUSH1 0xA8 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2997 PUSH1 0x32 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E7366657220746F206E6F6E204552433732315265 DUP2 MSTORE PUSH18 0x31B2B4BB32B91034B6B83632B6B2B73A32B9 PUSH1 0x71 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x29EB PUSH1 0x36 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F6666696369616C206F70657261746F72732061726520616C72656164792072 DUP2 MSTORE PUSH22 0x32B532B1BA32B210313C9036B9B39739B2B73232B917 PUSH1 0x51 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A43 PUSH1 0x26 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F776E61626C653A206E6577206F776E657220697320746865207A65726F2061 DUP2 MSTORE PUSH6 0x646472657373 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A8B PUSH1 0x1C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20746F6B656E20616C7265616479206D696E74656400000000 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2AC4 PUSH1 0x24 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E7366657220746F20746865207A65726F20616464 DUP2 MSTORE PUSH4 0x72657373 PUSH1 0xE0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B0A PUSH1 0x19 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F766520746F2063616C6C657200000000000000 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B43 PUSH1 0x2A DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x5F6F70657261746F7220697320616C726561647920616E206F6666696369616C DUP2 MSTORE PUSH10 0x1037B832B930BA37B917 PUSH1 0xB1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2B8F PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A206F70657261746F7220717565727920666F72206E6F6E6578 DUP2 MSTORE PUSH12 0x34B9BA32B73A103A37B5B2B7 PUSH1 0xA1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2BDD PUSH1 0x36 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F6666696369616C206F70657261746F72732061726520616C72656164792061 DUP2 MSTORE PUSH22 0x31B1B2B83A32B210313C9036B9B39739B2B73232B917 PUSH1 0x51 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C35 PUSH1 0x38 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F76652063616C6C6572206973206E6F74206F77 DUP2 MSTORE PUSH32 0x6E6572206E6F7220617070726F76656420666F7220616C6C0000000000000000 PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2C94 PUSH1 0x21 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A206E6F6E6578697374656E7420746F6B65 DUP2 MSTORE PUSH1 0x37 PUSH1 0xF9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2CD7 PUSH1 0x2A DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A2062616C616E636520717565727920666F7220746865207A65 DUP2 MSTORE PUSH10 0x726F2061646472657373 PUSH1 0xB0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2D23 PUSH1 0x29 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A206F776E657220717565727920666F72206E6F6E6578697374 DUP2 MSTORE PUSH9 0x32B73A103A37B5B2B7 PUSH1 0xB9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2D6E PUSH1 0x20 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A206D696E7420746F20746865207A65726F2061646472657373 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2DA7 PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F76656420717565727920666F72206E6F6E6578 DUP2 MSTORE PUSH12 0x34B9BA32B73A103A37B5B2B7 PUSH1 0xA1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2DF5 PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A2055524920736574206F66206E6F6E6578 DUP2 MSTORE PUSH12 0x34B9BA32B73A103A37B5B2B7 PUSH1 0xA1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E43 PUSH1 0x20 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4F776E61626C653A2063616C6C6572206973206E6F7420746865206F776E6572 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2E7C PUSH1 0x29 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E73666572206F6620746F6B656E20746861742069 DUP2 MSTORE PUSH9 0x39903737BA1037BBB7 PUSH1 0xB9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2EC7 PUSH1 0x16 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH22 0x39B2B73232B91034B9903737BA1037B832B930BA37B9 PUSH1 0x51 SHL DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2EF9 PUSH1 0x2F DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732314D657461646174613A2055524920717565727920666F72206E6F DUP2 MSTORE PUSH15 0x3732BC34B9BA32B73A103A37B5B2B7 PUSH1 0x89 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2F4A PUSH1 0x21 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A20617070726F76616C20746F2063757272656E74206F776E65 DUP2 MSTORE PUSH1 0x39 PUSH1 0xF9 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2F8D PUSH1 0x26 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x5F6F70657261746F72206973206E6F7420616E206F6666696369616C206F7065 DUP2 MSTORE PUSH6 0x3930BA37B917 PUSH1 0xD1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2FD5 PUSH1 0x44 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x5F6E6F6E6365206D7573742062652067726561746572207468616E2074686520 DUP2 MSTORE PUSH32 0x6C6173742075736564206E6F6E6365206F662074686520746F6B656E20686F6C PUSH1 0x20 DUP3 ADD MSTORE PUSH4 0x3232B917 PUSH1 0xE1 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xBE1 PUSH1 0x0 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH1 0x0 PUSH2 0x304E PUSH1 0x31 DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x4552433732313A207472616E736665722063616C6C6572206973206E6F74206F DUP2 MSTORE PUSH17 0x1DDB995C881B9BDC88185C1C1C9BDD9959 PUSH1 0x7A SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x30A1 PUSH1 0x2C DUP4 PUSH2 0x354F JUMP JUMPDEST PUSH32 0x455243373231456E756D657261626C653A20676C6F62616C20696E646578206F DUP2 MSTORE PUSH12 0x7574206F6620626F756E6473 PUSH1 0xA0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 PUSH1 0xC0 DUP5 ADD SWAP1 PUSH2 0x30F6 DUP6 DUP3 PUSH2 0x27F3 JUMP JUMPDEST POP PUSH1 0x20 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x20 DUP7 ADD MSTORE PUSH2 0x310E DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0x40 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x40 DUP7 ADD MSTORE PUSH2 0x3128 DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0x60 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x60 DUP7 ADD MSTORE PUSH2 0x3142 DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0x80 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x80 DUP7 ADD MSTORE PUSH2 0x315C DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP2 POP POP PUSH1 0xA0 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0xA0 DUP7 ADD MSTORE PUSH2 0x3176 DUP3 DUP3 PUSH2 0x27FC JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x270C PUSH2 0x318B DUP3 PUSH2 0x611 JUMP JUMPDEST PUSH2 0x611 JUMP JUMPDEST PUSH2 0x270C DUP2 PUSH2 0x3581 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x31A5 DUP3 DUP8 PUSH2 0x2712 JUMP JUMPDEST PUSH1 0x14 DUP3 ADD SWAP2 POP PUSH2 0x31B5 DUP3 DUP7 PUSH2 0x2712 JUMP JUMPDEST PUSH1 0x14 DUP3 ADD SWAP2 POP PUSH2 0x31C5 DUP3 DUP6 PUSH2 0x2712 JUMP JUMPDEST PUSH1 0x14 DUP3 ADD SWAP2 POP PUSH2 0x31D5 DUP3 DUP5 PUSH2 0x317F JUMP JUMPDEST POP PUSH1 0x20 ADD SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x12F9 DUP3 DUP5 PUSH2 0x2834 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x31F9 DUP3 DUP6 PUSH2 0x2863 JUMP JUMPDEST SWAP2 POP PUSH2 0x179A DUP3 DUP5 PUSH2 0x2834 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0xBE1 DUP3 DUP5 PUSH2 0x2703 JUMP JUMPDEST PUSH1 0x80 DUP2 ADD PUSH2 0x3221 DUP3 DUP8 PUSH2 0x2703 JUMP JUMPDEST PUSH2 0x322E PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x2703 JUMP JUMPDEST PUSH2 0x323B PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x27F3 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x60 DUP4 ADD MSTORE PUSH2 0x324D DUP2 DUP5 PUSH2 0x27FC JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x2723 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x2791 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0xBE1 DUP3 DUP5 PUSH2 0x27EA JUMP JUMPDEST PUSH1 0x80 DUP2 ADD PUSH2 0x3295 DUP3 DUP8 PUSH2 0x27F3 JUMP JUMPDEST PUSH2 0x32A2 PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0x3190 JUMP JUMPDEST PUSH2 0x32AF PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0x27F3 JUMP JUMPDEST PUSH2 0x3176 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x27F3 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x27FC JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x28EA JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x293D JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x298A JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x29DE JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2A36 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2A7E JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2AB7 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2AFD JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2B36 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2B82 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2BD0 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2C28 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2C87 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2CCA JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2D16 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2D61 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2D9A JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2DE8 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2E36 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2E6F JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2EBA JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2EEC JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2F3D JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2F80 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x2FC8 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x3034 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x3041 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0xBE1 DUP2 PUSH2 0x3094 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH2 0x12F9 DUP2 DUP5 PUSH2 0x30E2 JUMP JUMPDEST PUSH1 0x20 DUP2 ADD PUSH2 0xBE1 DUP3 DUP5 PUSH2 0x27F3 JUMP JUMPDEST PUSH1 0x40 DUP2 ADD PUSH2 0x34BA DUP3 DUP6 PUSH2 0x27F3 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x179A DUP2 DUP5 PUSH2 0x27FC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH2 0x34EA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH2 0x3508 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 SWAP1 DUP2 MUL ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH2 0x3528 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x1F SWAP2 SWAP1 SWAP2 ADD PUSH1 0x1F NOT AND ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 SWAP1 KECCAK256 SWAP1 JUMP JUMPDEST MLOAD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0xBE1 DUP3 PUSH2 0x3575 JUMP JUMPDEST ISZERO ISZERO SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 JUMP JUMPDEST PUSH1 0xFF AND SWAP1 JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x35AE JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x3596 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x116F JUMPI POP POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 PUSH2 0xBE1 DUP3 PUSH1 0x0 PUSH2 0xBE1 DUP3 PUSH2 0x35DA JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP1 JUMP JUMPDEST PUSH1 0x60 SHL SWAP1 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3558 JUMP JUMPDEST DUP2 EQ PUSH2 0x1653 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3563 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x611 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3568 JUMP JUMPDEST PUSH2 0x35E9 DUP2 PUSH2 0x3581 JUMP INVALID LOG3 PUSH6 0x627A7A723158 KECCAK256 DUP5 0xCB BLOCKHASH 0x1E STOP 0xE9 0xFC SWAP2 DUP3 PUSH1 0xAE 0xF9 0xB0 0xB3 0x5D 0xEB 0xD 0xDC 0x4D PUSH30 0x9B4FE6B40326EB59D827FF756C6578706572696D656E74616CF564736F6C PUSH4 0x43000511 STOP BLOCKHASH ",
"sourceMap": "7002:9148:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7002:9148:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9145:397;;;;;;;;;:::i;:::-;;915:133:3;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2433:85:0;;;:::i;:::-;;;;;;;;4283:200:7;;;;;;;;;:::i;:::-;;;;;;;;3583:415;;;;;;;;;:::i;5061:218:0:-;;;;;;;;;:::i;:::-;;;;;;;;2171:94:8;;;:::i;:::-;;;;;;;;5929:287:7;;;;;;;;;:::i;9735:358:0:-;;;;;;;;;:::i;1789:229:8:-;;;;;;;;;:::i;7277:44:0:-;;;;;;;;;:::i;6865:132:7:-;;;;;;;;;:::i;2603:196:8:-;;;;;;;;;:::i;10582:301:0:-;;;:::i;2939:223:7:-;;;;;;;;;:::i;5835:91:0:-;;;:::i;2513:207:7:-;;;;;;;;;:::i;1684:137:6:-;;;:::i;899:77::-;;;:::i;1250:92::-;;;:::i;2633:89:0:-;;;:::i;4776:249:7:-;;;;;;;;;:::i;11351:125:0:-;;;;;;;;;:::i;10970:301::-;;;:::i;15270:379::-;;;;;;;;;:::i;:::-;;;;;;;;10236:257;;;;;;;;;:::i;7720:269:7:-;;;;;;;;;:::i;8349:501:0:-;;;;;;;;;:::i;3035:557::-;;;;;;;;;:::i;8862:275::-;;;;;;;;;:::i;12065:252::-;;;;;;;;;:::i;11563:155::-;;;;;;;;;:::i;12865:903::-;;;;;;;;;:::i;15663:470::-;;;;;;;;;:::i;:::-;;;;;;;;5347:145:7;;;;;;;;;:::i;1970:107:6:-;;;;;;;;;:::i;9145:397:0:-;9343:7;7966:13;7982:16;7990:7;7982;:16::i;:::-;7966:32;;8022:9;:7;:9::i;:::-;:32;;;-1:-1:-1;8035:10:0;-1:-1:-1;;;;;8035:19:0;;;8022:32;8014:45;;;;-1:-1:-1;;;8014:45:0;;;;;;;;;;;;;;;;;9373:16;9381:7;9373;:16::i;:::-;9365:78;;;;-1:-1:-1;;;9365:78:0;;;;;;;;;9457:76;9470:7;9479:9;9490;9501;9512;9523;9457:12;:76::i;:::-;9145:397;;;;;;;;:::o;915:133:3:-;-1:-1:-1;;;;;;1008:33:3;;985:4;1008:33;;;;;;;;;;;;;915:133;;;;:::o;2433:85:0:-;2505:5;2498:12;;;;;;;;-1:-1:-1;;2498:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2472:13;;2498:12;;2505:5;;2498:12;;2505:5;2498:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2433:85;;:::o;4283:200:7:-;4342:7;4369:16;4377:7;4369;:16::i;:::-;4361:73;;;;-1:-1:-1;;;4361:73:7;;;;;;;;;-1:-1:-1;4452:24:7;;;;:15;:24;;;;;;-1:-1:-1;;;;;4452:24:7;;4283:200::o;3583:415::-;3646:13;3662:16;3670:7;3662;:16::i;:::-;3646:32;;3702:5;-1:-1:-1;;;;;3696:11:7;:2;-1:-1:-1;;;;;3696:11:7;;;3688:57;;;;-1:-1:-1;;;3688:57:7;;;;;;;;;3780:5;-1:-1:-1;;;;;3764:21:7;:12;:10;:12::i;:::-;-1:-1:-1;;;;;3764:21:7;;:62;;;;3789:37;3806:5;3813:12;:10;:12::i;3789:37::-;3756:152;;;;-1:-1:-1;;;3756:152:7;;;;;;;;;3919:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;3919:29:7;-1:-1:-1;;;;;3919:29:7;;;;;;;;;3963:28;;3919:24;;3963:28;;;;;;;3583:415;;;:::o;5061:218:0:-;5117:15;;:::i;:::-;5153:16;5161:7;5153;:16::i;:::-;5145:78;;;;-1:-1:-1;;;5145:78:0;;;;;;;;;5252:9;:18;5262:7;5252:18;;;;;;;;;;;5234:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5234:37:0;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5234:37:0;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5234:37:0;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5234:37:0;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;-1:-1:-1;;5234:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5061:218;;;:::o;2171:94:8:-;2241:10;:17;2171:94;:::o;5929:287:7:-;6071:41;6090:12;:10;:12::i;:::-;6104:7;6071:18;:41::i;:::-;6063:103;;;;-1:-1:-1;;;6063:103:7;;;;;;;;;6177:32;6191:4;6197:2;6201:7;6177:13;:32::i;:::-;5929:287;;;:::o;9735:358:0:-;1103:9:6;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:6;;;;;;;;;-1:-1:-1;;;;;9910:30:0;;;;;;:19;:30;;;;;;;;9909:31;9901:86;;;;-1:-1:-1;;;9901:86:0;;;;;;;;;-1:-1:-1;;;;;10000:30:0;;;;;;:19;:30;;;;;;;:37;;-1:-1:-1;;10000:37:0;10033:4;10000:37;;;10053:32;;;;;10020:9;;10053:32;;;;;;;;;;9735:358;:::o;1789:229:8:-;1869:7;1904:16;1914:5;1904:9;:16::i;:::-;1896:5;:24;1888:80;;;;-1:-1:-1;;;1888:80:8;;;;;;;;;-1:-1:-1;;;;;1985:19:8;;;;;;:12;:19;;;;;:26;;2005:5;;1985:26;;;;;;;;;;;;;;1978:33;;1789:229;;;;;:::o;7277:44:0:-;;;;;;;;;;;;;:::o;6865:132:7:-;6951:39;6968:4;6974:2;6978:7;6951:39;;;;;;;;;;;;:16;:39::i;2603:196:8:-;2661:7;2696:13;:11;:13::i;:::-;2688:5;:21;2680:78;;;;-1:-1:-1;;;2680:78:8;;;;;;;;;2775:10;2786:5;2775:17;;;;;;;;;;;;;;;;2768:24;;2603:196;;;:::o;10582:301:0:-;10685:10;10645:51;;;;:39;:51;;;;;;;;10644:52;10636:119;;;;-1:-1:-1;;;10636:119:0;;;;;;;;;10804:10;10764:51;;;;:39;:51;;;;;;:58;;-1:-1:-1;;10764:58:0;10818:4;10764:58;;;10834:43;;;10764:51;10834:43;10582:301::o;2939:223:7:-;2994:7;3029:20;;;:11;:20;;;;;;-1:-1:-1;;;;;3029:20:7;3067:19;3059:73;;;;-1:-1:-1;;;3059:73:7;;;;;;;;5835:91:0;5910:8;5903:15;;;;;;;;-1:-1:-1;;5903:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5877:13;;5903:15;;5910:8;;5903:15;;5910:8;5903:15;;;;;;;;;;;;;;;;;;;;;;;;2513:207:7;2568:7;-1:-1:-1;;;;;2595:19:7;;2587:74;;;;-1:-1:-1;;;2587:74:7;;;;;;;;;-1:-1:-1;;;;;2679:24:7;;;;;;:17;:24;;;;;:34;;:32;:34::i;1684:137:6:-;1103:9;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:6;;;;;;;;;1766:6;;1745:40;;1782:1;;-1:-1:-1;;;;;1766:6:6;;1745:40;;1782:1;;1745:40;1795:6;:19;;-1:-1:-1;;;;;;1795:19:6;;;1684:137::o;899:77::-;963:6;;-1:-1:-1;;;;;963:6:6;899:77;:::o;1250:92::-;1329:6;;1290:4;;-1:-1:-1;;;;;1329:6:6;1313:12;:10;:12::i;:::-;-1:-1:-1;;;;;1313:22:6;;1306:29;;1250:92;:::o;2633:89:0:-;2707:7;2700:14;;;;;;;;-1:-1:-1;;2700:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2674:13;;2700:14;;2707:7;;2700:14;;2707:7;2700:14;;;;;;;;;;;;;;;;;;;;;;;;4776:249:7;4861:12;:10;:12::i;:::-;-1:-1:-1;;;;;4855:18:7;:2;-1:-1:-1;;;;;4855:18:7;;;4847:56;;;;-1:-1:-1;;;4847:56:7;;;;;;;;;4953:8;4914:18;:32;4933:12;:10;:12::i;:::-;-1:-1:-1;;;;;4914:32:7;;;;;;;;;;;;;;;;;-1:-1:-1;4914:32:7;;;:36;;;;;;;;;;;;:47;;-1:-1:-1;;4914:47:7;;;;;;;;;;;4991:12;:10;:12::i;:::-;-1:-1:-1;;;;;4976:42:7;;5009:8;4976:42;;;;;;;;;;;;;;;4776:249;;:::o;11351:125:0:-;-1:-1:-1;;;;;11440:30:0;11420:4;11440:30;;;:19;:30;;;;;;;;;11351:125::o;10970:301::-;11072:10;11032:51;;;;:39;:51;;;;;;;;11024:118;;;;-1:-1:-1;;;11024:118:0;;;;;;;;;11191:10;11205:5;11151:51;;;:39;:51;;;;;;:59;;-1:-1:-1;;11151:59:0;;;11222:43;;;11205:5;11222:43;10970:301::o;15270:379::-;15338:16;15367;15386;15396:5;15386:9;:16::i;:::-;15367:35;;15414:25;15456:7;15442:22;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;15442:22:0;-1:-1:-1;15414:50:0;-1:-1:-1;15478:6:0;15473:145;15494:7;15490:1;:11;15473:145;;;15521:15;15539:29;15559:5;15565:1;15539:19;:29::i;:::-;15521:47;;15601:7;15588:8;15597:1;15588:11;;;;;;;;;;;;;;;;;:20;-1:-1:-1;15503:3:0;;15473:145;;;-1:-1:-1;15633:8:0;15270:379;-1:-1:-1;;;15270:379:0:o;10236:257::-;1103:9:6;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:6;;;;;;;;;-1:-1:-1;;;;;10321:30:0;;;;;;:19;:30;;;;;;;;10313:81;;;;-1:-1:-1;;;10313:81:0;;;;;;;;;-1:-1:-1;;;;;10403:30:0;;10436:5;10403:30;;;:19;:30;;;;;;;:38;;-1:-1:-1;;10403:38:0;;;10453:34;;;;;10423:9;;10453:34;;7720:269:7;7834:41;7853:12;:10;:12::i;:::-;7867:7;7834:18;:41::i;:::-;7826:103;;;;-1:-1:-1;;;7826:103:7;;;;;;;;;7939:43;7957:4;7963:2;7967:7;7976:5;7939:17;:43::i;:::-;7720:269;;;;:::o;8349:501:0:-;8554:7;8574:21;:9;:19;:21::i;:::-;8608:17;8628:19;:9;:17;:19::i;:::-;8608:39;;8658:24;8664:6;8672:9;8658:5;:24::i;:::-;8693:33;8706:9;8717:8;8693:12;:33::i;:::-;8737:78;8750:9;8761;8772;8783;8794;8805;8737:12;:78::i;:::-;8833:9;8349:501;-1:-1:-1;;;;;;;;8349:501:0:o;3035:557::-;3093:13;3127:16;3135:7;3127;:16::i;:::-;3119:76;;;;-1:-1:-1;;;3119:76:0;;;;;;;;;3234:19;;;;:10;:19;;;;;;;;;3208:45;;;;;;-1:-1:-1;;3208:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;3234:19;3208:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3370:9;3364:23;3391:1;3364:28;3360:225;;;-1:-1:-1;;3409:9:0;;;;;;;;;-1:-1:-1;3409:9:0;;;;3360:225;3552:8;3562:9;3535:37;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;3535:37:0;;;3521:52;;;;;8862:275;8932:7;8952:21;:9;:19;:21::i;:::-;8984:17;9004:19;:9;:17;:19::i;:::-;8984:39;;9034:24;9040:6;9048:9;9034:5;:24::i;:::-;9069:33;9082:9;9093:8;9069:12;:33::i;:::-;9120:9;8862:275;-1:-1:-1;;;8862:275:0:o;12065:252::-;12150:4;12197:12;-1:-1:-1;;;;;12184:25:0;:9;-1:-1:-1;;;;;12184:25:0;;:126;;;-1:-1:-1;;;;;;12222:53:0;;;;;;:39;:53;;;;;;;;12221:54;:88;;;;-1:-1:-1;;;;;;;;12279:30:0;;;;;:19;:30;;;;;;;;;12065:252::o;11563:155::-;-1:-1:-1;;;;;11666:46:0;11645:4;11666:46;;;:39;:46;;;;;;;;11665:47;;11563:155::o;12865:903::-;13196:32;13210:10;13222:5;13196:13;:32::i;:::-;13188:66;;;;-1:-1:-1;;;13188:66:0;;;;;;;;;13267:15;13286:6;:12;;13296:2;13286:12;;:28;;;;;13302:6;:12;;13312:2;13302:12;;13286:28;13285:237;;13345:177;13405:10;13428:5;13446:3;13462:6;13375:104;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;13375:104:0;;;13365:115;;;;;;13491:6;13499;13507;13345:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13345:177:0;;;;;;;;13285:237;;;13333:1;13285:237;-1:-1:-1;;;;;13563:18:0;;;;;;:9;:18;;;;;;13267:255;;-1:-1:-1;13554:27:0;;13538:129;;;;-1:-1:-1;;;13538:129:0;;;;;;;;;13697:6;13676:9;:18;13686:7;-1:-1:-1;;;;;13676:18:0;-1:-1:-1;;;;;13676:18:0;;;;;;;;;;;;:27;;;;13709:53;13716:10;13728:5;13735:3;13740:10;;13709:53;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;13709:53:0;;;;137:4:-1;13709:53:0;;;;;;;;;;;;;;;;;;-1:-1:-1;13752:9:0;;-1:-1:-1;13752:9:0;;;;13709:53;;13752:9;;;;13709:53;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;13709:6:0;;-1:-1:-1;;;13709:53:0:i;:::-;12865:903;;;;;;;;;;;:::o;15663:470::-;15741:17;15785:28;15831:8;:15;15816:31;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;15785:62:0;-1:-1:-1;15861:6:0;15856:243;15877:8;:15;15873:1;:19;15856:243;;;15921:20;15929:8;15938:1;15929:11;;;;;;;;;;;;;;15921:7;:20::i;:::-;15913:82;;;;-1:-1:-1;;;15913:82:0;;;;;;;;;16009:17;16029:8;16038:1;16029:11;;;;;;;;;;;;;;16009:31;;16071:18;16080:8;16071;:18::i;:::-;16057:10;16068:1;16057:13;;;;;;;;;;;;;;;;;:32;-1:-1:-1;15894:3:0;;15856:243;;;-1:-1:-1;16114:10:0;15663:470;-1:-1:-1;;15663:470:0:o;5347:145:7:-;-1:-1:-1;;;;;5450:25:7;;;5427:4;5450:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;5347:145::o;1970:107:6:-;1103:9;:7;:9::i;:::-;1095:54;;;;-1:-1:-1;;;1095:54:6;;;;;;;;;2042:28;2061:8;2042:18;:28::i;:::-;1970:107;:::o;9158:152:7:-;9215:4;9247:20;;;:11;:20;;;;;;-1:-1:-1;;;;;9247:20:7;9284:19;;;9158:152::o;4302:568:0:-;4501:16;4509:7;4501;:16::i;:::-;4493:62;;;;-1:-1:-1;;;4493:62:0;;;;;;;;;4566:27;4596:18;;;:9;:18;;;;;;;;4624:28;;;4662:32;;4596:18;;4662:32;;:20;;;;:32;;;;:::i;:::-;-1:-1:-1;4704:32:0;;;;:20;;;;:32;;;;;:::i;:::-;-1:-1:-1;4746:32:0;;;;:20;;;;:32;;;;;:::i;:::-;-1:-1:-1;4788:32:0;;;;:20;;;;:32;;;;;:::i;:::-;-1:-1:-1;4830:32:0;;;;:20;;;;:32;;;;;:::i;788:96:1:-;867:10;788:96;:::o;9671:329:7:-;9756:4;9780:16;9788:7;9780;:16::i;:::-;9772:73;;;;-1:-1:-1;;;9772:73:7;;;;;;;;;9855:13;9871:16;9879:7;9871;:16::i;:::-;9855:32;;9916:5;-1:-1:-1;;;;;9905:16:7;:7;-1:-1:-1;;;;;9905:16:7;;:51;;;;9949:7;-1:-1:-1;;;;;9925:31:7;:20;9937:7;9925:11;:20::i;:::-;-1:-1:-1;;;;;9925:31:7;;9905:51;:87;;;;9960:32;9977:5;9984:7;9960:16;:32::i;:::-;9897:96;9671:329;-1:-1:-1;;;;9671:329:7:o;3174:239:8:-;3259:38;3279:4;3285:2;3289:7;3259:19;:38::i;:::-;3308:47;3341:4;3347:7;3308:32;:47::i;:::-;3366:40;3394:2;3398:7;3366:27;:40::i;1065:112:2:-;1156:14;;1065:112::o;8694:269:7:-;8803:32;8817:4;8823:2;8827:7;8803:13;:32::i;:::-;8853:48;8876:4;8882:2;8886:7;8895:5;8853:22;:48::i;:::-;8845:111;;;;-1:-1:-1;;;8845:111:7;;;;;;;;1183:178:2;1335:19;;1353:1;1335:19;;;1183:178::o;3670:196:8:-;3733:24;3745:2;3749:7;3733:11;:24::i;:::-;3768:40;3796:2;3800:7;3768:27;:40::i;:::-;3819;3851:7;3819:31;:40::i;:::-;3670:196;;:::o;3927:207:0:-;4019:16;4027:7;4019;:16::i;:::-;4011:73;;;;-1:-1:-1;;;4011:73:0;;;;;;;;;4095:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;14286:343::-;14461:6;14457:167;14477:10;:17;14473:1;:21;14457:167;;;14509:40;14523:5;14530:3;14535:10;14546:1;14535:13;;;;;;;;;;;;;;14509;:40::i;:::-;14585:3;-1:-1:-1;;;;;14562:54:0;14578:5;-1:-1:-1;;;;;14562:54:0;14567:9;-1:-1:-1;;;;;14562:54:0;;14591:10;14602:1;14591:13;;;;;;;;;;;;;;14606:9;14562:54;;;;;;;;;;;;;;;;14496:3;;14457:167;;;;14286:343;;;;;:::o;2178:225:6:-;-1:-1:-1;;;;;2251:22:6;;2243:73;;;;-1:-1:-1;;;2243:73:6;;;;;;;;;2352:6;;2331:38;;-1:-1:-1;;;;;2331:38:6;;;;2352:6;;2331:38;;2352:6;;2331:38;2379:6;:17;;-1:-1:-1;;;;;;2379:17:6;-1:-1:-1;;;;;2379:17:6;;;;;;;;;;2178:225::o;13281:447:7:-;13394:4;-1:-1:-1;;;;;13374:24:7;:16;13382:7;13374;:16::i;:::-;-1:-1:-1;;;;;13374:24:7;;13366:78;;;;-1:-1:-1;;;13366:78:7;;;;;;;;;-1:-1:-1;;;;;13462:16:7;;13454:65;;;;-1:-1:-1;;;13454:65:7;;;;;;;;;13530:23;13545:7;13530:14;:23::i;:::-;-1:-1:-1;;;;;13564:23:7;;;;;;:17;:23;;;;;:35;;:33;:35::i;:::-;-1:-1:-1;;;;;13609:21:7;;;;;;:17;:21;;;;;:33;;:31;:33::i;:::-;13653:20;;;;:11;:20;;;;;;:25;;-1:-1:-1;;;;;;13653:25:7;-1:-1:-1;;;;;13653:25:7;;;;;;;;;13694:27;;13653:20;;13694:27;;;;;;;13281:447;;;:::o;6284:1128:8:-;-1:-1:-1;;;;;6571:18:8;;6546:22;6571:18;;;:12;:18;;;;;:25;:32;;6601:1;6571:32;:29;:32;:::i;:::-;6613:18;6634:26;;;:17;:26;;;;;;6546:57;;-1:-1:-1;6764:28:8;;;6760:323;;-1:-1:-1;;;;;6830:18:8;;6808:19;6830:18;;;:12;:18;;;;;:34;;6849:14;;6830:34;;;;;;;;;;;;;;6808:56;;6912:11;6879:12;:18;6892:4;-1:-1:-1;;;;;6879:18:8;-1:-1:-1;;;;;6879:18:8;;;;;;;;;;;;6898:10;6879:30;;;;;;;;;;;;;;;;;;;:44;;;;6995:30;;;:17;:30;;;;;:43;;;6760:323;-1:-1:-1;;;;;7169:18:8;;;;;;:12;:18;;;;;:27;;;;;-1:-1:-1;;7169:27:8;;;:::i;:::-;;6284:1128;;;;:::o;5128:183::-;-1:-1:-1;;;;;5241:16:8;;;;;;;:12;:16;;;;;;;;:23;;5212:26;;;:17;:26;;;;;:52;;;5274:16;;;39:1:-1;23:18;;45:23;;5274:30:8;;;;;;;;5128:183::o;14367:1051:7:-;14488:4;14513:15;:2;-1:-1:-1;;;;;14513:13:7;;:15::i;:::-;14508:58;;-1:-1:-1;14551:4:7;14544:11;;14508:58;14635:12;14649:23;-1:-1:-1;;;;;14676:7:7;;-1:-1:-1;;;14779:12:7;:10;:12::i;:::-;14805:4;14823:7;14844:5;14684:175;;;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;14684:175:7;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;14684:175:7;;;179:29:-1;;;;160:49;;;14676:184:7;;;;14684:175;14676:184;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;14634:226:7;;;;14875:7;14870:542;;14902:17;;:21;14898:376;;15067:10;15061:17;15127:15;15114:10;15110:2;15106:19;15099:44;15016:145;15199:60;;-1:-1:-1;;;15199:60:7;;;;;;;;14870:542;15304:13;15331:10;15320:32;;;;;;;;;;;;;;-1:-1:-1;;;;;;15374:26:7;-1:-1:-1;;;15374:26:7;;-1:-1:-1;15366:35:7;;-1:-1:-1;;;15366:35:7;11714:327;-1:-1:-1;;;;;11785:16:7;;11777:61;;;;-1:-1:-1;;;11777:61:7;;;;;;;;;11857:16;11865:7;11857;:16::i;:::-;11856:17;11848:58;;;;-1:-1:-1;;;11848:58:7;;;;;;;;;11917:20;;;;:11;:20;;;;;;;;:25;;-1:-1:-1;;;;;;11917:25:7;-1:-1:-1;;;;;11917:25:7;;;;;;;;11952:21;;:17;:21;;;;;:33;;:31;:33::i;:::-;12001;;12026:7;;-1:-1:-1;;;;;12001:33:7;;;12018:1;;12001:33;;12018:1;;12001:33;11714:327;;:::o;5506:161:8:-;5609:10;:17;;5582:24;;;;:15;:24;;;;;:44;;;39:1:-1;23:18;;45:23;;5636:24:8;;;;;;;5506:161::o;15580:171:7:-;15679:1;15643:24;;;:15;:24;;;;;;-1:-1:-1;;;;;15643:24:7;:38;15639:106;;15732:1;15697:24;;;:15;:24;;;;;:37;;-1:-1:-1;;;;;;15697:37:7;;;15580:171::o;1367:108:2:-;1447:14;;:21;;1466:1;1447:21;:18;:21;:::i;:::-;1430:38;;1367:108::o;1274:134:5:-;1332:7;1358:43;1362:1;1365;1358:43;;;;;;;;;;;;;;;;;:3;:43::i;686:610:13:-;746:4;1207:20;;1052:66;1246:23;;;;;;:42;;-1:-1:-1;;1273:15:13;;;1238:51;-1:-1:-1;;686:610:13:o;1732:187:5:-;1818:7;1853:12;1845:6;;;;1837:29;;;;-1:-1:-1;;;1837:29:5;;;;;;;;;;-1:-1:-1;;;1888:5:5;;;1732:187::o;7002:9148:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7002:9148:0;;;-1:-1:-1;7002:9148:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:130:-1;72:20;;97:33;72:20;97:33;;160:352;;;290:3;283:4;275:6;271:17;267:27;257:2;;308:1;305;298:12;257:2;-1:-1;328:20;;-1:-1;;;;;357:30;;354:2;;;400:1;397;390:12;354:2;434:4;426:6;422:17;410:29;;485:3;477:4;469:6;465:17;455:8;451:32;448:41;445:2;;;502:1;499;492:12;445:2;250:262;;;;;;538:707;;655:3;648:4;640:6;636:17;632:27;622:2;;673:1;670;663:12;622:2;710:6;697:20;732:80;747:64;804:6;747:64;;;732:80;;;723:89;;829:5;854:6;847:5;840:21;884:4;876:6;872:17;862:27;;906:4;901:3;897:14;890:21;;959:6;1006:3;998:4;990:6;986:17;981:3;977:27;974:36;971:2;;;1023:1;1020;1013:12;971:2;1048:1;1033:206;1058:6;1055:1;1052:13;1033:206;;;1116:3;1138:37;1171:3;1159:10;1138:37;;;1126:50;;-1:-1;1199:4;1190:14;;;;1218;;;;;1080:1;1073:9;1033:206;;;1037:14;615:630;;;;;;;;1253:124;1317:20;;1342:30;1317:20;1342:30;;1384:130;1451:20;;1476:33;1451:20;1476:33;;1521:128;1587:20;;1612:32;1587:20;1612:32;;1656:132;1733:13;;1751:32;1733:13;1751:32;;1809:336;;;1923:3;1916:4;1908:6;1904:17;1900:27;1890:2;;1941:1;1938;1931:12;1890:2;-1:-1;1961:20;;-1:-1;;;;;1990:30;;1987:2;;;2033:1;2030;2023:12;1987:2;2067:4;2059:6;2055:17;2043:29;;2118:3;2110:4;2102:6;2098:17;2088:8;2084:32;2081:41;2078:2;;;2135:1;2132;2125:12;2154:440;;2255:3;2248:4;2240:6;2236:17;2232:27;2222:2;;2273:1;2270;2263:12;2222:2;2310:6;2297:20;2332:64;2347:48;2388:6;2347:48;;2332:64;2323:73;;2416:6;2409:5;2402:21;2452:4;2444:6;2440:17;2485:4;2478:5;2474:16;2520:3;2511:6;2506:3;2502:16;2499:25;2496:2;;;2537:1;2534;2527:12;2496:2;2547:41;2581:6;2576:3;2571;2547:41;;;2215:379;;;;;;;;3190:126;3255:20;;3280:31;3255:20;3280:31;;3323:241;;3427:2;3415:9;3406:7;3402:23;3398:32;3395:2;;;3443:1;3440;3433:12;3395:2;3478:1;3495:53;3540:7;3520:9;3495:53;;3571:366;;;3692:2;3680:9;3671:7;3667:23;3663:32;3660:2;;;3708:1;3705;3698:12;3660:2;3743:1;3760:53;3805:7;3785:9;3760:53;;;3750:63;;3722:97;3850:2;3868:53;3913:7;3904:6;3893:9;3889:22;3868:53;;;3858:63;;3829:98;3654:283;;;;;;3944:1397;;;;;;;;;;;4219:3;4207:9;4198:7;4194:23;4190:33;4187:2;;;4236:1;4233;4226:12;4187:2;4271:1;4288:53;4333:7;4313:9;4288:53;;;4278:63;;4250:97;4378:2;4396:53;4441:7;4432:6;4421:9;4417:22;4396:53;;;4386:63;;4357:98;4514:2;4503:9;4499:18;4486:32;-1:-1;;;;;4530:6;4527:30;4524:2;;;4570:1;4567;4560:12;4524:2;4598:80;4670:7;4661:6;4650:9;4646:22;4598:80;;;4588:90;;;;4465:219;4715:2;4733:53;4778:7;4769:6;4758:9;4754:22;4733:53;;;4723:63;;4694:98;4851:3;4840:9;4836:19;4823:33;-1:-1;;;;;4868:6;4865:30;4862:2;;;4908:1;4905;4898:12;4862:2;4936:64;4992:7;4983:6;4972:9;4968:22;4936:64;;;4926:74;;;;4802:204;5037:3;5056:53;5101:7;5092:6;5081:9;5077:22;5056:53;;;5046:63;;5016:99;5146:3;5165:53;5210:7;5201:6;5190:9;5186:22;5165:53;;;5155:63;;5125:99;5255:3;5274:51;5317:7;5308:6;5297:9;5293:22;5274:51;;;5264:61;;5234:97;4181:1160;;;;;;;;;;;;;;5348:491;;;;5486:2;5474:9;5465:7;5461:23;5457:32;5454:2;;;5502:1;5499;5492:12;5454:2;5537:1;5554:53;5599:7;5579:9;5554:53;;;5544:63;;5516:97;5644:2;5662:53;5707:7;5698:6;5687:9;5683:22;5662:53;;;5652:63;;5623:98;5752:2;5770:53;5815:7;5806:6;5795:9;5791:22;5770:53;;;5760:63;;5731:98;5448:391;;;;;;5846:721;;;;;6010:3;5998:9;5989:7;5985:23;5981:33;5978:2;;;6027:1;6024;6017:12;5978:2;6062:1;6079:53;6124:7;6104:9;6079:53;;;6069:63;;6041:97;6169:2;6187:53;6232:7;6223:6;6212:9;6208:22;6187:53;;;6177:63;;6148:98;6277:2;6295:53;6340:7;6331:6;6320:9;6316:22;6295:53;;;6285:63;;6256:98;6413:2;6402:9;6398:18;6385:32;-1:-1;;;;;6429:6;6426:30;6423:2;;;6469:1;6466;6459:12;6423:2;6489:62;6543:7;6534:6;6523:9;6519:22;6489:62;;;6479:72;;6364:193;5972:595;;;;;;;;6574:360;;;6692:2;6680:9;6671:7;6667:23;6663:32;6660:2;;;6708:1;6705;6698:12;6660:2;6743:1;6760:53;6805:7;6785:9;6760:53;;;6750:63;;6722:97;6850:2;6868:50;6910:7;6901:6;6890:9;6886:22;6868:50;;6941:472;;;7072:2;7060:9;7051:7;7047:23;7043:32;7040:2;;;7088:1;7085;7078:12;7040:2;7123:1;7140:53;7185:7;7165:9;7140:53;;;7130:63;;7102:97;7258:2;7247:9;7243:18;7230:32;-1:-1;;;;;7274:6;7271:30;7268:2;;;7314:1;7311;7304:12;7268:2;7334:63;7389:7;7380:6;7369:9;7365:22;7334:63;;7420:1631;;;;;;;;7686:3;7674:9;7665:7;7661:23;7657:33;7654:2;;;7703:1;7700;7693:12;7654:2;7738:1;7755:53;7800:7;7780:9;7755:53;;;7745:63;;7717:97;7873:2;7862:9;7858:18;7845:32;-1:-1;;;;;7889:6;7886:30;7883:2;;;7929:1;7926;7919:12;7883:2;7949:63;8004:7;7995:6;7984:9;7980:22;7949:63;;;7939:73;;7824:194;8077:2;8066:9;8062:18;8049:32;-1:-1;;;;;8093:6;8090:30;8087:2;;;8133:1;8130;8123:12;8087:2;8153:63;8208:7;8199:6;8188:9;8184:22;8153:63;;;8143:73;;8028:194;8281:2;8270:9;8266:18;8253:32;-1:-1;;;;;8297:6;8294:30;8291:2;;;8337:1;8334;8327:12;8291:2;8357:63;8412:7;8403:6;8392:9;8388:22;8357:63;;;8347:73;;8232:194;8485:3;8474:9;8470:19;8457:33;-1:-1;;;;;8502:6;8499:30;8496:2;;;8542:1;8539;8532:12;8496:2;8562:63;8617:7;8608:6;8597:9;8593:22;8562:63;;;8552:73;;8436:195;8690:3;8679:9;8675:19;8662:33;-1:-1;;;;;8707:6;8704:30;8701:2;;;8747:1;8744;8737:12;8701:2;8767:63;8822:7;8813:6;8802:9;8798:22;8767:63;;;8757:73;;8641:195;8895:3;8884:9;8880:19;8867:33;-1:-1;;;;;8912:6;8909:30;8906:2;;;8952:1;8949;8942:12;8906:2;8972:63;9027:7;9018:6;9007:9;9003:22;8972:63;;;8962:73;;8846:195;7648:1403;;;;;;;;;;;9058:366;;;9179:2;9167:9;9158:7;9154:23;9150:32;9147:2;;;9195:1;9192;9185:12;9147:2;9230:1;9247:53;9292:7;9272:9;9247:53;;;9237:63;;9209:97;9337:2;9355:53;9400:7;9391:6;9380:9;9376:22;9355:53;;9431:377;;9560:2;9548:9;9539:7;9535:23;9531:32;9528:2;;;9576:1;9573;9566:12;9528:2;9611:31;;-1:-1;;;;;9651:30;;9648:2;;;9694:1;9691;9684:12;9648:2;9714:78;9784:7;9775:6;9764:9;9760:22;9714:78;;9815:239;;9918:2;9906:9;9897:7;9893:23;9889:32;9886:2;;;9934:1;9931;9924:12;9886:2;9969:1;9986:52;10030:7;10010:9;9986:52;;10061:261;;10175:2;10163:9;10154:7;10150:23;10146:32;10143:2;;;10191:1;10188;10181:12;10143:2;10226:1;10243:63;10298:7;10278:9;10243:63;;10329:241;;10433:2;10421:9;10412:7;10408:23;10404:32;10401:2;;;10449:1;10446;10439:12;10401:2;10484:1;10501:53;10546:7;10526:9;10501:53;;10577:1399;;;;;;;10816:3;10804:9;10795:7;10791:23;10787:33;10784:2;;;10833:1;10830;10823:12;10784:2;10868:1;10885:53;10930:7;10910:9;10885:53;;;10875:63;;10847:97;11003:2;10992:9;10988:18;10975:32;-1:-1;;;;;11019:6;11016:30;11013:2;;;11059:1;11056;11049:12;11013:2;11079:63;11134:7;11125:6;11114:9;11110:22;11079:63;;;11069:73;;10954:194;11207:2;11196:9;11192:18;11179:32;-1:-1;;;;;11223:6;11220:30;11217:2;;;11263:1;11260;11253:12;11217:2;11283:63;11338:7;11329:6;11318:9;11314:22;11283:63;;;11273:73;;11158:194;11411:2;11400:9;11396:18;11383:32;-1:-1;;;;;11427:6;11424:30;11421:2;;;11467:1;11464;11457:12;11421:2;11487:63;11542:7;11533:6;11522:9;11518:22;11487:63;;;11477:73;;11362:194;11615:3;11604:9;11600:19;11587:33;-1:-1;;;;;11632:6;11629:30;11626:2;;;11672:1;11669;11662:12;11626:2;11692:63;11747:7;11738:6;11727:9;11723:22;11692:63;;;11682:73;;11566:195;11820:3;11809:9;11805:19;11792:33;-1:-1;;;;;11837:6;11834:30;11831:2;;;11877:1;11874;11867:12;11831:2;11897:63;11952:7;11943:6;11932:9;11928:22;11897:63;;;11887:73;;11771:195;10778:1198;;;;;;;;;11984:237;;12125:90;12211:3;12203:6;12125:90;;12230:173;;12317:46;12359:3;12351:6;12317:46;;;-1:-1;;12392:4;12383:14;;12310:93;12411:137;12510:32;12536:5;12510:32;;;12505:3;12498:45;12492:56;;;12555:184;12672:61;12700:32;12726:5;12700:32;;;12672:61;;13102:1008;;13287:74;13355:5;13287:74;;;13374:106;13473:6;13468:3;13374:106;;;13367:113;;13503:3;13545:4;13537:6;13533:17;13528:3;13524:27;13572:76;13642:5;13572:76;;;13668:7;13696:1;13681:390;13706:6;13703:1;13700:13;13681:390;;;13768:9;13762:4;13758:20;13753:3;13746:33;13813:6;13807:13;13835:104;13934:4;13919:13;13835:104;;;13827:112;;13956:80;14029:6;13956:80;;;14059:4;14050:14;;;;;13946:90;-1:-1;;13728:1;13721:9;13681:390;;;-1:-1;14084:4;;13266:844;-1:-1;;;;;;;13266:844;14149:690;;14294:54;14342:5;14294:54;;;14361:86;14440:6;14435:3;14361:86;;;14354:93;;14468:56;14518:5;14468:56;;;14544:7;14572:1;14557:260;14582:6;14579:1;14576:13;14557:260;;;14649:6;14643:13;14670:63;14729:3;14714:13;14670:63;;;14663:70;;14750:60;14803:6;14750:60;;;14740:70;-1:-1;;14604:1;14597:9;14557:260;;;-1:-1;14830:3;;14273:566;-1:-1;;;;;14273:566;14847:104;14924:21;14939:5;14924:21;;14958:113;15041:24;15059:5;15041:24;;15078:343;;15188:38;15220:5;15188:38;;;15238:70;15301:6;15296:3;15238:70;;;15231:77;;15313:52;15358:6;15353:3;15346:4;15339:5;15335:16;15313:52;;;15386:29;15408:6;15386:29;;;15377:39;;;;15168:253;-1:-1;;;15168:253;15428:356;;15556:38;15588:5;15556:38;;;15606:88;15687:6;15682:3;15606:88;;;15599:95;;15699:52;15744:6;15739:3;15732:4;15725:5;15721:16;15699:52;;;15763:16;;;;;15536:248;-1:-1;;15536:248;16863:884;;17000:5;16994:12;17034:1;17023:9;17019:17;17047:1;17042:268;;;;17321:1;17316:425;;;;17012:729;;17042:268;17120:4;17116:1;17105:9;17101:17;17097:28;17139:89;17221:6;17216:3;17139:89;;;-1:-1;;17247:25;;17235:38;;17132:96;-1:-1;17287:16;;;-1:-1;17042:268;;17316:425;17385:1;17374:9;17370:17;17401:89;17483:6;17478:3;17401:89;;;17394:96;;17512:38;17544:5;17512:38;;;17566:1;17574:130;17588:6;17585:1;17582:13;17574:130;;;17647:14;;17634:11;;;17627:35;17694:1;17681:15;;;;17610:4;17603:12;17574:130;;;-1:-1;;17718:16;;;-1:-1;17012:729;;16970:777;;;;;;17756:386;;17916:67;17980:2;17975:3;17916:67;;;18016:34;17996:55;;-1:-1;;;18080:2;18071:12;;18064:41;18133:2;18124:12;;17902:240;-1:-1;;17902:240;18151:380;;18311:67;18375:2;18370:3;18311:67;;;18411:34;18391:55;;-1:-1;;;18475:2;18466:12;;18459:35;18522:2;18513:12;;18297:234;-1:-1;;18297:234;18540:387;;18700:67;18764:2;18759:3;18700:67;;;18800:34;18780:55;;-1:-1;;;18864:2;18855:12;;18848:42;18918:2;18909:12;;18686:241;-1:-1;;18686:241;18936:391;;19096:67;19160:2;19155:3;19096:67;;;19196:34;19176:55;;-1:-1;;;19260:2;19251:12;;19244:46;19318:2;19309:12;;19082:245;-1:-1;;19082:245;19336:375;;19496:67;19560:2;19555:3;19496:67;;;19596:34;19576:55;;-1:-1;;;19660:2;19651:12;;19644:30;19702:2;19693:12;;19482:229;-1:-1;;19482:229;19720:328;;19880:67;19944:2;19939:3;19880:67;;;19980:30;19960:51;;20039:2;20030:12;;19866:182;-1:-1;;19866:182;20057:373;;20217:67;20281:2;20276:3;20217:67;;;20317:34;20297:55;;-1:-1;;;20381:2;20372:12;;20365:28;20421:2;20412:12;;20203:227;-1:-1;;20203:227;20439:325;;20599:67;20663:2;20658:3;20599:67;;;20699:27;20679:48;;20755:2;20746:12;;20585:179;-1:-1;;20585:179;20773:379;;20933:67;20997:2;20992:3;20933:67;;;21033:34;21013:55;;-1:-1;;;21097:2;21088:12;;21081:34;21143:2;21134:12;;20919:233;-1:-1;;20919:233;21161:381;;21321:67;21385:2;21380:3;21321:67;;;21421:34;21401:55;;-1:-1;;;21485:2;21476:12;;21469:36;21533:2;21524:12;;21307:235;-1:-1;;21307:235;21551:391;;21711:67;21775:2;21770:3;21711:67;;;21811:34;21791:55;;-1:-1;;;21875:2;21866:12;;21859:46;21933:2;21924:12;;21697:245;-1:-1;;21697:245;21951:393;;22111:67;22175:2;22170:3;22111:67;;;22211:34;22191:55;;22280:26;22275:2;22266:12;;22259:48;22335:2;22326:12;;22097:247;-1:-1;;22097:247;22353:370;;22513:67;22577:2;22572:3;22513:67;;;22613:34;22593:55;;-1:-1;;;22677:2;22668:12;;22661:25;22714:2;22705:12;;22499:224;-1:-1;;22499:224;22732:379;;22892:67;22956:2;22951:3;22892:67;;;22992:34;22972:55;;-1:-1;;;23056:2;23047:12;;23040:34;23102:2;23093:12;;22878:233;-1:-1;;22878:233;23120:378;;23280:67;23344:2;23339:3;23280:67;;;23380:34;23360:55;;-1:-1;;;23444:2;23435:12;;23428:33;23489:2;23480:12;;23266:232;-1:-1;;23266:232;23507:332;;23667:67;23731:2;23726:3;23667:67;;;23767:34;23747:55;;23830:2;23821:12;;23653:186;-1:-1;;23653:186;23848:381;;24008:67;24072:2;24067:3;24008:67;;;24108:34;24088:55;;-1:-1;;;24172:2;24163:12;;24156:36;24220:2;24211:12;;23994:235;-1:-1;;23994:235;24238:381;;24398:67;24462:2;24457:3;24398:67;;;24498:34;24478:55;;-1:-1;;;24562:2;24553:12;;24546:36;24610:2;24601:12;;24384:235;-1:-1;;24384:235;24628:332;;24788:67;24852:2;24847:3;24788:67;;;24888:34;24868:55;;24951:2;24942:12;;24774:186;-1:-1;;24774:186;24969:378;;25129:67;25193:2;25188:3;25129:67;;;25229:34;25209:55;;-1:-1;;;25293:2;25284:12;;25277:33;25338:2;25329:12;;25115:232;-1:-1;;25115:232;25356:322;;25516:67;25580:2;25575:3;25516:67;;;-1:-1;;;25596:45;;25669:2;25660:12;;25502:176;-1:-1;;25502:176;25687:384;;25847:67;25911:2;25906:3;25847:67;;;25947:34;25927:55;;-1:-1;;;26011:2;26002:12;;25995:39;26062:2;26053:12;;25833:238;-1:-1;;25833:238;26080:370;;26240:67;26304:2;26299:3;26240:67;;;26340:34;26320:55;;-1:-1;;;26404:2;26395:12;;26388:25;26441:2;26432:12;;26226:224;-1:-1;;26226:224;26459:375;;26619:67;26683:2;26678:3;26619:67;;;26719:34;26699:55;;-1:-1;;;26783:2;26774:12;;26767:30;26825:2;26816:12;;26605:229;-1:-1;;26605:229;26843:442;;27003:67;27067:2;27062:3;27003:67;;;27103:34;27083:55;;27172:34;27167:2;27158:12;;27151:56;-1:-1;;;27236:2;27227:12;;27220:28;27276:2;27267:12;;26989:296;-1:-1;;26989:296;27294:262;;27454:66;27518:1;27513:3;27454:66;;27565:386;;27725:67;27789:2;27784:3;27725:67;;;27825:34;27805:55;;-1:-1;;;27889:2;27880:12;;27873:41;27942:2;27933:12;;27711:240;-1:-1;;27711:240;27960:381;;28120:67;28184:2;28179:3;28120:67;;;28220:34;28200:55;;-1:-1;;;28284:2;28275:12;;28268:36;28332:2;28323:12;;28106:235;-1:-1;;28106:235;28420:1497;28638:23;;28420:1497;;28569:4;28560:14;;;28667:63;28564:3;28638:23;28667:63;;;28589:147;28814:4;28807:5;28803:16;28797:23;28866:3;28860:4;28856:14;28849:4;28844:3;28840:14;28833:38;28886:69;28950:4;28936:12;28886:69;;;28878:77;;28746:221;29045:4;29038:5;29034:16;29028:23;29097:3;29091:4;29087:14;29080:4;29075:3;29071:14;29064:38;29117:69;29181:4;29167:12;29117:69;;;29109:77;;28977:221;29276:4;29269:5;29265:16;29259:23;29328:3;29322:4;29318:14;29311:4;29306:3;29302:14;29295:38;29348:69;29412:4;29398:12;29348:69;;;29340:77;;29208:221;29507:4;29500:5;29496:16;29490:23;29559:3;29553:4;29549:14;29542:4;29537:3;29533:14;29526:38;29579:69;29643:4;29629:12;29579:69;;;29571:77;;29439:221;29738:4;29731:5;29727:16;29721:23;29790:3;29784:4;29780:14;29773:4;29768:3;29764:14;29757:38;29810:69;29874:4;29860:12;29810:69;;;29802:77;28542:1375;-1:-1;;;;;28542:1375;31715:152;31816:45;31836:24;31854:5;31836:24;;;31816:45;;31874:107;31953:22;31969:5;31953:22;;31988:693;;32207:91;32294:3;32285:6;32207:91;;;32320:2;32315:3;32311:12;32304:19;;32334:75;32405:3;32396:6;32334:75;;;32431:2;32426:3;32422:12;32415:19;;32445:75;32516:3;32507:6;32445:75;;;32542:2;32537:3;32533:12;32526:19;;32556:75;32627:3;32618:6;32556:75;;;-1:-1;32653:2;32644:12;;32195:486;-1:-1;;;;32195:486;32688:262;;32832:93;32921:3;32912:6;32832:93;;32957:421;;33148:92;33236:3;33227:6;33148:92;;;33141:99;;33258:95;33349:3;33340:6;33258:95;;33385:213;33503:2;33488:18;;33517:71;33492:9;33561:6;33517:71;;33605:663;33841:3;33826:19;;33856:87;33830:9;33916:6;33856:87;;;33954:72;34022:2;34011:9;34007:18;33998:6;33954:72;;;34037;34105:2;34094:9;34090:18;34081:6;34037:72;;;34157:9;34151:4;34147:20;34142:2;34131:9;34127:18;34120:48;34182:76;34253:4;34244:6;34182:76;;;34174:84;33812:456;-1:-1;;;;;;33812:456;34275:441;34483:2;34497:47;;;34468:18;;34558:148;34468:18;34692:6;34558:148;;34723:361;34891:2;34905:47;;;34876:18;;34966:108;34876:18;35060:6;34966:108;;35091:201;35203:2;35188:18;;35217:65;35192:9;35255:6;35217:65;;35299:539;35497:3;35482:19;;35512:71;35486:9;35556:6;35512:71;;;35594:68;35658:2;35647:9;35643:18;35634:6;35594:68;;;35673:72;35741:2;35730:9;35726:18;35717:6;35673:72;;;35756;35824:2;35813:9;35809:18;35800:6;35756:72;;35845:301;35983:2;35997:47;;;35968:18;;36058:78;35968:18;36122:6;36058:78;;36153:407;36344:2;36358:47;;;36329:18;;36419:131;36329:18;36419:131;;36567:407;36758:2;36772:47;;;36743:18;;36833:131;36743:18;36833:131;;36981:407;37172:2;37186:47;;;37157:18;;37247:131;37157:18;37247:131;;37395:407;37586:2;37600:47;;;37571:18;;37661:131;37571:18;37661:131;;37809:407;38000:2;38014:47;;;37985:18;;38075:131;37985:18;38075:131;;38223:407;38414:2;38428:47;;;38399:18;;38489:131;38399:18;38489:131;;38637:407;38828:2;38842:47;;;38813:18;;38903:131;38813:18;38903:131;;39051:407;39242:2;39256:47;;;39227:18;;39317:131;39227:18;39317:131;;39465:407;39656:2;39670:47;;;39641:18;;39731:131;39641:18;39731:131;;39879:407;40070:2;40084:47;;;40055:18;;40145:131;40055:18;40145:131;;40293:407;40484:2;40498:47;;;40469:18;;40559:131;40469:18;40559:131;;40707:407;40898:2;40912:47;;;40883:18;;40973:131;40883:18;40973:131;;41121:407;41312:2;41326:47;;;41297:18;;41387:131;41297:18;41387:131;;41535:407;41726:2;41740:47;;;41711:18;;41801:131;41711:18;41801:131;;41949:407;42140:2;42154:47;;;42125:18;;42215:131;42125:18;42215:131;;42363:407;42554:2;42568:47;;;42539:18;;42629:131;42539:18;42629:131;;42777:407;42968:2;42982:47;;;42953:18;;43043:131;42953:18;43043:131;;43191:407;43382:2;43396:47;;;43367:18;;43457:131;43367:18;43457:131;;43605:407;43796:2;43810:47;;;43781:18;;43871:131;43781:18;43871:131;;44019:407;44210:2;44224:47;;;44195:18;;44285:131;44195:18;44285:131;;44433:407;44624:2;44638:47;;;44609:18;;44699:131;44609:18;44699:131;;44847:407;45038:2;45052:47;;;45023:18;;45113:131;45023:18;45113:131;;45261:407;45452:2;45466:47;;;45437:18;;45527:131;45437:18;45527:131;;45675:407;45866:2;45880:47;;;45851:18;;45941:131;45851:18;45941:131;;46089:407;46280:2;46294:47;;;46265:18;;46355:131;46265:18;46355:131;;46503:407;46694:2;46708:47;;;46679:18;;46769:131;46679:18;46769:131;;46917:407;47108:2;47122:47;;;47093:18;;47183:131;47093:18;47183:131;;47331:407;47522:2;47536:47;;;47507:18;;47597:131;47507:18;47597:131;;47745:357;47911:2;47925:47;;;47896:18;;47986:106;47896:18;48078:6;47986:106;;48109:213;48227:2;48212:18;;48241:71;48216:9;48285:6;48241:71;;48329:408;48493:2;48478:18;;48507:71;48482:9;48551:6;48507:71;;;48626:9;48620:4;48616:20;48611:2;48600:9;48596:18;48589:48;48651:76;48722:4;48713:6;48651:76;;48744:256;48806:2;48800:9;48832:17;;;-1:-1;;;;;48892:34;;48928:22;;;48889:62;48886:2;;;48964:1;48961;48954:12;48886:2;48980;48973:22;48784:216;;-1:-1;48784:216;49007:304;;-1:-1;;;;;49158:6;49155:30;49152:2;;;49198:1;49195;49188:12;49152:2;-1:-1;49233:4;49221:17;;;49286:15;;49089:222;49318:321;;-1:-1;;;;;49453:6;49450:30;49447:2;;;49493:1;49490;49483:12;49447:2;-1:-1;49624:4;49560;49537:17;;;;-1:-1;;49533:33;49614:15;;49384:255;49975:171;50119:4;50110:14;;50067:79;50311:158;;50406:14;;;50448:4;50435:18;;;50365:104;50476:157;50599:12;;50570:63;51417:198;51555:19;;;51604:4;51595:14;;51548:67;52622:91;;52684:24;52702:5;52684:24;;52826:85;52892:13;52885:21;;52868:43;52997:144;-1:-1;;;;;;53058:78;;53041:100;53148:121;-1:-1;;;;;53210:54;;53193:76;53355:81;53426:4;53415:16;;53398:38;53444:145;53525:6;53520:3;53515;53502:30;-1:-1;53581:1;53563:16;;53556:27;53495:94;53598:268;53663:1;53670:101;53684:6;53681:1;53678:13;53670:101;;;53751:11;;;53745:18;53732:11;;;53725:39;53706:2;53699:10;53670:101;;;53786:6;53783:1;53780:13;53777:2;;;-1:-1;;53851:1;53833:16;;53826:27;53647:219;53874:95;;53938:26;53958:5;54086:89;54150:20;54164:5;54150:20;;54263:97;54351:2;54331:14;-1:-1;;54327:28;;54311:49;54368:94;54442:2;54438:14;;54410:52;54470:117;54539:24;54557:5;54539:24;;;54532:5;54529:35;54519:2;;54578:1;54575;54568:12;54594:111;54660:21;54675:5;54660:21;;54712:117;54781:24;54799:5;54781:24;;54836:115;54904:23;54921:5;54904:23;;55082:113;55149:22;55165:5;55149:22;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "2783000",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"MetaData(uint256)": "infinite",
"acceptAllOfficialOperators()": "23128",
"addOfficialOperator(address)": "infinite",
"approve(address,uint256)": "infinite",
"balanceOf(address)": "infinite",
"baseURI()": "infinite",
"delivery(address,string,string,string,string,string,string)": "infinite",
"getApproved(uint256)": "infinite",
"getMetaDataByTokenIds(uint256[])": "infinite",
"isApprovedForAll(address,address)": "infinite",
"isOfficialOperator(address)": "infinite",
"isOperatorFor(address,address)": "infinite",
"isOwner()": "1252",
"isUserAcceptingAllOfficialOperators(address)": "infinite",
"mint(address,string)": "infinite",
"name()": "infinite",
"operatorSend(address,address,uint256[],uint256,bytes,bytes32,bytes32,uint8)": "infinite",
"owner()": "infinite",
"ownerOf(uint256)": "infinite",
"rejectAllOfficialOperators()": "23115",
"removeOfficialOperator(address)": "infinite",
"renounceOwnership()": "24378",
"safeTransferFrom(address,address,uint256)": "infinite",
"safeTransferFrom(address,address,uint256,bytes)": "infinite",
"setApprovalForAll(address,bool)": "infinite",
"setMetaData(uint256,string,string,string,string,string)": "infinite",
"supportsInterface(bytes4)": "infinite",
"symbol()": "infinite",
"tokenByIndex(uint256)": "infinite",
"tokenIdofOwnerByAddress(address)": "infinite",
"tokenOfOwnerByIndex(address,uint256)": "infinite",
"tokenURI(uint256)": "infinite",
"totalSupply()": "1189",
"transferFrom(address,address,uint256)": "infinite",
"transferOwnership(address)": "infinite",
"usedNonce(address)": "infinite"
},
"internal": {
"_isTokenOwner(address,uint256)": "infinite",
"doSend(address,address,address,uint256[] memory,bytes memory)": "infinite"
}
},
"methodIdentifiers": {
"MetaData(uint256)": "11e10cb8",
"acceptAllOfficialOperators()": "a60c2312",
"addOfficialOperator(address)": "263cfbe0",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"baseURI()": "6c0360eb",
"delivery(address,string,string,string,string,string,string)": "bb7fa584",
"getApproved(uint256)": "081812fc",
"getMetaDataByTokenIds(uint256[])": "e71706be",
"isApprovedForAll(address,address)": "e985e9c5",
"isOfficialOperator(address)": "a506a0a1",
"isOperatorFor(address,address)": "d95b6371",
"isOwner()": "8f32d59b",
"isUserAcceptingAllOfficialOperators(address)": "daa4eb53",
"mint(address,string)": "d0def521",
"name()": "06fdde03",
"operatorSend(address,address,uint256[],uint256,bytes,bytes32,bytes32,uint8)": "dba4c551",
"owner()": "8da5cb5b",
"ownerOf(uint256)": "6352211e",
"rejectAllOfficialOperators()": "5c59ed7b",
"removeOfficialOperator(address)": "b1c4c72b",
"renounceOwnership()": "715018a6",
"safeTransferFrom(address,address,uint256)": "42842e0e",
"safeTransferFrom(address,address,uint256,bytes)": "b88d4fde",
"setApprovalForAll(address,bool)": "a22cb465",
"setMetaData(uint256,string,string,string,string,string)": "0023ecc5",
"supportsInterface(bytes4)": "01ffc9a7",
"symbol()": "95d89b41",
"tokenByIndex(uint256)": "4f6ccce7",
"tokenIdofOwnerByAddress(address)": "ace7f8bc",
"tokenOfOwnerByIndex(address,uint256)": "2f745c59",
"tokenURI(uint256)": "c87b56dd",
"totalSupply()": "18160ddd",
"transferFrom(address,address,uint256)": "23b872dd",
"transferOwnership(address)": "f2fde38b",
"usedNonce(address)": "3e61e9dc"
}
},
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "tokenName",
"type": "string"
},
{
"internalType": "string",
"name": "tokenSymbol",
"type": "string"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OfficialOperatorAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OfficialOperatorRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "OfficialOperatorsAcceptedByUser",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "OfficialOperatorsRejectedByUser",
"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": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "holderData",
"type": "bytes"
}
],
"name": "Sent",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenIdofOwner",
"type": "event"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "MetaData",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"internalType": "struct ERC721Metadata.metadata",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "acceptAllOfficialOperators",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "addOfficialOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "baseURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "player",
"type": "address"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"name": "delivery",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "getMetaDataByTokenIds",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"internalType": "struct ERC721Metadata.metadata[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isOfficialOperator",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "address",
"name": "_tokenHolder",
"type": "address"
}
],
"name": "isOperatorFor",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "isUserAcceptingAllOfficialOperators",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "player",
"type": "address"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
}
],
"name": "mint",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "__tokenIds",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "_nonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_userData",
"type": "bytes"
},
{
"internalType": "bytes32",
"name": "_sig_r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_sig_s",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "_sig_v",
"type": "uint8"
}
],
"name": "operatorSend",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "rejectAllOfficialOperators",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "removeOfficialOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"name": "setMetaData",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "tokenIdofOwnerByAddress",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "usedNonce",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.5.17+commit.d19bba13"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "tokenName",
"type": "string"
},
{
"internalType": "string",
"name": "tokenSymbol",
"type": "string"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OfficialOperatorAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OfficialOperatorRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "OfficialOperatorsAcceptedByUser",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "OfficialOperatorsRejectedByUser",
"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": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "holderData",
"type": "bytes"
}
],
"name": "Sent",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenIdofOwner",
"type": "event"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "MetaData",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"internalType": "struct ERC721Metadata.metadata",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "acceptAllOfficialOperators",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "addOfficialOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "baseURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "player",
"type": "address"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"name": "delivery",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "getMetaDataByTokenIds",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"internalType": "struct ERC721Metadata.metadata[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isOfficialOperator",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "address",
"name": "_tokenHolder",
"type": "address"
}
],
"name": "isOperatorFor",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "isUserAcceptingAllOfficialOperators",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "player",
"type": "address"
},
{
"internalType": "string",
"name": "tokenURI",
"type": "string"
}
],
"name": "mint",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "__tokenIds",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "_nonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_userData",
"type": "bytes"
},
{
"internalType": "bytes32",
"name": "_sig_r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_sig_s",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "_sig_v",
"type": "uint8"
}
],
"name": "operatorSend",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "rejectAllOfficialOperators",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "removeOfficialOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "string",
"name": "property1",
"type": "string"
},
{
"internalType": "string",
"name": "property2",
"type": "string"
},
{
"internalType": "string",
"name": "property3",
"type": "string"
},
{
"internalType": "string",
"name": "property4",
"type": "string"
},
{
"internalType": "string",
"name": "property5",
"type": "string"
}
],
"name": "setMetaData",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "tokenIdofOwnerByAddress",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "usedNonce",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"methods": {
"MetaData(uint256)": {
"details": "Returns the MetaData for a given token ID. May return an empty string. * Reverts if the token ID does not exist. "
},
"addOfficialOperator(address)": {
"params": {
"_operator": "The address of a new official operator. An official operator must be a contract."
}
},
"approve(address,uint256)": {
"details": "Approves another address to transfer the given token ID The zero address indicates there is no approved address. There can only be one approved address per token at a given time. Can only be called by the token owner or an approved operator.",
"params": {
"to": "address to be approved for the given token ID",
"tokenId": "uint256 ID of the token to be approved"
}
},
"balanceOf(address)": {
"details": "Gets the balance of the specified address.",
"params": {
"owner": "address to query the balance of"
},
"return": "uint256 representing the amount owned by the passed address"
},
"baseURI()": {
"details": "Returns the base URI set via {_setBaseURI}. This will be automatically added as a preffix in {tokenURI} to each token's URI, when they are non-empty. * _Available since v2.5.0._"
},
"getApproved(uint256)": {
"details": "Gets the approved address for a token ID, or zero if no address set Reverts if the token ID does not exist.",
"params": {
"tokenId": "uint256 ID of the token to query the approval of"
},
"return": "address currently approved for the given token ID"
},
"isApprovedForAll(address,address)": {
"details": "Tells whether an operator is approved by a given owner.",
"params": {
"operator": "operator address which you want to query the approval of",
"owner": "owner address which you want to query the approval of"
},
"return": "bool whether the given operator is approved by the given owner"
},
"isOfficialOperator(address)": {
"return": "true if the address is an official operator, false if not."
},
"isOperatorFor(address,address)": {
"params": {
"_operator": "address to check if it has the right to manage the tokens",
"_tokenHolder": "address which holds the tokens to be managed"
},
"return": "`true` if `_operator` is authorized for `_tokenHolder`"
},
"isOwner()": {
"details": "Returns true if the caller is the current owner."
},
"isUserAcceptingAllOfficialOperators(address)": {
"return": "true if a user is accepting all official operators, false if not."
},
"name()": {
"details": "Gets the token name.",
"return": "string representing the token name"
},
"operatorSend(address,address,uint256[],uint256,bytes,bytes32,bytes32,uint8)": {
"params": {
"__tokenIds": "The ids of tokens to be sent",
"_from": "The address holding the tokens being sent",
"_nonce": "uint256 Presigned transaction number.",
"_sig_r": "bytes32 The r of the signature.",
"_sig_s": "bytes32 The s of the signature.",
"_sig_v": "uint8 The v of the signature.",
"_to": "The address of the recipient",
"_userData": "bytes Data generated by the user to be sent to the recipient."
}
},
"owner()": {
"details": "Returns the address of the current owner."
},
"ownerOf(uint256)": {
"details": "Gets the owner of the specified token ID.",
"params": {
"tokenId": "uint256 ID of the token to query the owner of"
},
"return": "address currently marked as the owner of the given token ID"
},
"removeOfficialOperator(address)": {
"params": {
"_operator": "The address of an official operator."
}
},
"renounceOwnership()": {
"details": "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."
},
"safeTransferFrom(address,address,uint256)": {
"details": "Safely transfers the ownership of a given token ID to another address If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer, and return the magic value `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`; otherwise, the transfer is reverted. Requires the msg.sender to be the owner, approved, or operator",
"params": {
"from": "current owner of the token",
"to": "address to receive the ownership of the given token ID",
"tokenId": "uint256 ID of the token to be transferred"
}
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "Safely transfers the ownership of a given token ID to another address If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer, and return the magic value `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`; otherwise, the transfer is reverted. Requires the _msgSender() to be the owner, approved, or operator",
"params": {
"_data": "bytes data to send along with a safe transfer check",
"from": "current owner of the token",
"to": "address to receive the ownership of the given token ID",
"tokenId": "uint256 ID of the token to be transferred"
}
},
"setApprovalForAll(address,bool)": {
"details": "Sets or unsets the approval of a given operator An operator is allowed to transfer all tokens of the sender on their behalf.",
"params": {
"approved": "representing the status of the approval to be set",
"to": "operator address to set the approval"
}
},
"supportsInterface(bytes4)": {
"details": "See {IERC165-supportsInterface}. * Time complexity O(1), guaranteed to always use less than 30 000 gas."
},
"symbol()": {
"details": "Gets the token symbol.",
"return": "string representing the token symbol"
},
"tokenByIndex(uint256)": {
"details": "Gets the token ID at a given index of all the tokens in this contract Reverts if the index is greater or equal to the total number of tokens.",
"params": {
"index": "uint256 representing the index to be accessed of the tokens list"
},
"return": "uint256 token ID at the given index of the tokens list"
},
"tokenOfOwnerByIndex(address,uint256)": {
"details": "Gets the token ID at a given index of the tokens list of the requested owner.",
"params": {
"index": "uint256 representing the index to be accessed of the requested tokens list",
"owner": "address owning the tokens list to be accessed"
},
"return": "uint256 token ID at the given index of the tokens list owned by the requested address"
},
"tokenURI(uint256)": {
"details": "Returns the URI for a given token ID. May return an empty string. * If the token's URI is non-empty and a base URI was set (via {_setBaseURI}), it will be added to the token ID's URI as a prefix. * Reverts if the token ID does not exist."
},
"totalSupply()": {
"details": "Gets the total amount of tokens stored by the contract.",
"return": "uint256 representing the total amount of tokens"
},
"transferFrom(address,address,uint256)": {
"details": "Transfers the ownership of a given token ID to another address. Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requires the msg.sender to be the owner, approved, or operator.",
"params": {
"from": "current owner of the token",
"to": "address to receive the ownership of the given token ID",
"tokenId": "uint256 ID of the token to be transferred"
}
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
}
},
"userdoc": {
"methods": {
"acceptAllOfficialOperators()": {
"notice": "Authorize all official operators to manage `msg.sender`'s tokens."
},
"addOfficialOperator(address)": {
"notice": "Add an address into the list of official operators."
},
"isOperatorFor(address,address)": {
"notice": "Check whether the `_operator` address is allowed to manage the tokens held by `_tokenHolder` address."
},
"operatorSend(address,address,uint256[],uint256,bytes,bytes32,bytes32,uint8)": {
"notice": "Helper function actually performing the sending of tokens."
},
"rejectAllOfficialOperators()": {
"notice": "Unauthorize all official operators to manage `msg.sender`'s tokens."
},
"removeOfficialOperator(address)": {
"notice": "Delete an address from the list of official operators."
}
}
}
},
"settings": {
"compilationTarget": {
"contracts/CodeDay.sol": "BaypayItem"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/CodeDay.sol": {
"keccak256": "0x5f49752aab954818451e4a3d666591ce8dbf7b190f8b1ae4679acde371cfa709",
"urls": [
"bzz-raw://aa62e5565b7c2ba1e5a1b7a3401d2cbbdc92c6004f4496376826bd8cc8836496",
"dweb:/ipfs/Qme546ZDWJ2riCoahAYCqprFyRJBdfJ3B4wUUmNkeh1HTH"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/GSN/Context.sol": {
"keccak256": "0x90a3995645af7562d84b9d69363ffa5ae7217714ab61e951bf7bc450f40e4061",
"urls": [
"bzz-raw://216ef9d6b614db4eb46970b4e84903f2534a45572dd30a79f0041f1a5830f436",
"dweb:/ipfs/QmNPrJ4MWKUAWzKXpUqeyKRUfosaoANZAqXgvepdrCwZAG"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/drafts/Counters.sol": {
"keccak256": "0x5be8533c5950173dc2b77b75108fae6e6c5449aedadde3385ba457394aad2384",
"urls": [
"bzz-raw://d429fb04f5b31d909dc759d0f88e28055b80b4dd43e5def4dffc947fa0609229",
"dweb:/ipfs/QmaY9idX5CwLLtjjTQAdiiaDSrncgafkatUZXTbbajpz8b"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/introspection/ERC165.sol": {
"keccak256": "0x01aedbf24e121a744262e04c7815b2a4c8ce604dee4829c5cff00943a594ccf3",
"urls": [
"bzz-raw://999ab32a6498d8ad8db61d47c3774aae2ff919acceebe2aeb50879bef62642c3",
"dweb:/ipfs/QmephAYF5hoymu9qCFK6mURM2kZJCxU4ntUb4KTf1miVPT"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/introspection/IERC165.sol": {
"keccak256": "0xe0ed10f53955c35eecb02724538650a155aa940be3f0a54cd3bde6c6b0c6e48c",
"urls": [
"bzz-raw://7dcfda88e3225987245908c3296f3559752647036804325ebfaa9fd1545161c3",
"dweb:/ipfs/QmXxx5rHfLL57zdgyyyG9MMv4XGN7bpVSc2MuDcaCgto6u"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/math/SafeMath.sol": {
"keccak256": "0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076",
"urls": [
"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f",
"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/ownership/Ownable.sol": {
"keccak256": "0x6fb9d7889769d7cc161225f9ef7a90e468ba9788b253816f8d8b6894d3472c24",
"urls": [
"bzz-raw://cf4c00fc3c37cc5acf0c82ec6fd97bab67d72c2567fdc0ebf023d9c09b30a08e",
"dweb:/ipfs/Qmb7TChG6DsEDX7LooJ4vmxot19f7VXX8S1zUGPeJTWbwZ"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/ERC721.sol": {
"keccak256": "0x1a1c02bc2487c763ad240f6b6440ec9dcb84870879aea3ed2a6b9cd300b637c7",
"urls": [
"bzz-raw://e6351696020fecf1c1b09437a2961cbdc3e1579238a9573b8577b58af463eeb6",
"dweb:/ipfs/QmTg7UxUcuENko38JL2Pb2aqXkWgqW1xPDbJwmfo3RVrrV"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/ERC721Enumerable.sol": {
"keccak256": "0x28f4e41b86db783cd8daf9fdec839ce5930332b60f6dc9ac4992dfb584997e79",
"urls": [
"bzz-raw://6f1b545ec9e1f0284e86ddd4ffff353e1ab5e026bbbfaa2a5d2d791c39d7afd7",
"dweb:/ipfs/Qmf9rVfj6LreiE7NHkkT1S7eLbSQDDY1gKd9XWERx2AN7W"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/IERC721.sol": {
"keccak256": "0x680c11bc8173eef7d5db843baaf64ce499476de2c172f6aea631dbee54bcd2e6",
"urls": [
"bzz-raw://0f314963ab26fb65c6f364d57900f0f1aa8f6aeb4396e327e5e5c646815f060e",
"dweb:/ipfs/Qmf6eSUtRUF4YDxGyhQq7TVDYzuHcYEvk9Us3RVy5iZQVH"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/IERC721Enumerable.sol": {
"keccak256": "0x5c573acd6c7b98d71f3c1c44d63dc17400b0fd7b26a52c9fded43b8b533dc4ec",
"urls": [
"bzz-raw://e23af54444d2dbfae58895339eb7b189e1ba5d0b7abde63716e7ef7da23b2fde",
"dweb:/ipfs/QmZva7dE1SMd1yyizzc6ivSoBXXwpNveLV7iFNATNpq68Y"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/IERC721Metadata.sol": {
"keccak256": "0x2b2b99dc7fe8fcd1f9427d00822b99cbc683dc21f5dd7532bd7e2281fd2c2ca2",
"urls": [
"bzz-raw://a8024c00e34efaf328f9592e76823c79f25fa0f6006bdf4a1e7fea204afd4773",
"dweb:/ipfs/QmZns9jTr7843njq3J2iL2LLoWXK5mdzN1bDGd9GL3ahhD"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/IERC721Receiver.sol": {
"keccak256": "0x042048c375daca04b31e31c91bbae912b84b5eb818c4e31b2deb530fd2305342",
"urls": [
"bzz-raw://d877a87c5e29b9ffca3e334378058c051a4e012fd3635039681003a9376baf1f",
"dweb:/ipfs/QmR45snf93cFXtB71TZcmoGy9DbcMha8CqgkDKaLvhjXZK"
]
},
"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/utils/Address.sol": {
"keccak256": "0x1a8e5072509c5ea7365eb1d48030b9be865140c8fb779968da0a459a0e174a11",
"urls": [
"bzz-raw://03335b7b07c7c8c8d613cfdd8ec39a0b5ec133ee510bf2fe6cc5a496767bef4b",
"dweb:/ipfs/Qmebp4nzPja645c9yXSdJkGq96oU3am3LUnG2K3R7XxyKf"
]
}
},
"version": 1
}
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
// METADATA 是每一個token 都有不同的metadata
// import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/drafts/Counters.sol";
// ERC721Full
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/ERC721Enumerable.sol";
//import "./ERC721Metadata.sol";
// ERC721Metadata
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/GSN/Context.sol";
// import "./ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC721/IERC721Metadata.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/introspection/ERC165.sol";
// import "./ownership.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/ownership/Ownable.sol";
contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
struct metadata {
uint256 tokenId;
string property1;
string property2;
string property3;
string property4;
string property5;
}
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
mapping(uint256 => metadata) private _metadata;
/*
* bytes4(keccak256('name()')) == 0x06fdde03
* bytes4(keccak256('symbol()')) == 0x95d89b41
* bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
*
* => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
*/
bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
/**
* @dev Constructor function
*/
constructor (string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(_INTERFACE_ID_ERC721_METADATA);
}
/**
* @dev Gets the token name.
* @return string representing the token name
*/
function name() external view returns (string memory) {
return _name;
}
/**
* @dev Gets the token symbol.
* @return string representing the token symbol
*/
function symbol() external view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the URI for a given token ID. May return an empty string.
*
* If the token's URI is non-empty and a base URI was set (via
* {_setBaseURI}), it will be added to the token ID's URI as a prefix.
*
* Reverts if the token ID does not exist.
*/
function tokenURI(uint256 tokenId) external view returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
// Even if there is a base URI, it is only appended to non-empty token-specific URIs
if (bytes(_tokenURI).length == 0) {
return "";
} else {
// abi.encodePacked is being used to concatenate strings
return string(abi.encodePacked(_baseURI, _tokenURI));
}
}
/**
* @dev Internal function to set the token URI for a given token.
*
* Reverts if the token ID does not exist.
*
* TIP: if all token IDs share a prefix (e.g. if your URIs look like
* `http://api.myproject.com/token/<id>`), use {_setBaseURI} to store
* it and save gas.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @dev Internal function to set the token metadata for a given token.
*
* Reverts if the token ID does not exist.
*
*/
function _setMetaData(uint256 tokenId, string memory property1, string memory property2,
string memory property3, string memory property4, string memory property5) internal {
require(_exists(tokenId), "ERC721Metadata: nonexistent token");
metadata storage __metadata = _metadata[tokenId];
__metadata.tokenId = tokenId;
__metadata.property1 = property1;
__metadata.property2 = property2;
__metadata.property3 = property3;
__metadata.property4 = property4;
__metadata.property5 = property5;
}
/**
* @dev Returns the MetaData for a given token ID. May return an empty string.
*
* Reverts if the token ID does not exist.
*
*/
function MetaData(uint256 tokenId) public view returns (metadata memory) {
require(_exists(tokenId), "ERC721Metadata: Metadata set of nonexistent token");
return (
_metadata[tokenId]);
}
/**
* @dev Internal function to set the base URI for all token IDs. It is
* automatically added as a prefix to the value returned in {tokenURI}.
*
* _Available since v2.5.0._
*/
function _setBaseURI(string memory baseURI) internal {
_baseURI = baseURI;
}
/**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a preffix in {tokenURI} to each token's URI, when
* they are non-empty.
*
* _Available since v2.5.0._
*/
function baseURI() external view returns (string memory) {
return _baseURI;
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use _burn(uint256) instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned by the msg.sender
*/
function _burn(address owner, uint256 tokenId) internal {
super._burn(owner, tokenId);
// Clear metadata (if any)
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
}
/**
* @title Full ERC721 Token
* @dev This implementation includes all the required and some optional functionality of the ERC721 standard
* Moreover, it includes approve all functionality using operator terminology.
*
* See https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721Full is ERC721Enumerable, ERC721Metadata {
constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
// solhint-disable-previous-line no-empty-blocks
}
}
contract BaypayItem is ERC721Full, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
mapping(address => bool) internal mIsOfficialOperator;
mapping(address => bool) internal mIsUserNotAcceptingAllOfficialOperators;
mapping(address => uint256) public usedNonce;
event OfficialOperatorAdded(address operator);
event OfficialOperatorRemoved(address operator);
event OfficialOperatorsAcceptedByUser(address indexed user);
event OfficialOperatorsRejectedByUser(address indexed user);
event tokenIdofOwner(uint256 index);
event Sent(
address indexed operator,
address indexed from,
address indexed to,
uint256 tokenId,
bytes holderData
);
modifier onlyOwnerOrOperator() {
require(isOwner() || mIsOfficialOperator[msg.sender],"");
_;
}
modifier onlyOwnerOrTokenOwner(uint256 tokenId) {
address owner = ownerOf(tokenId);
require(isOwner() || msg.sender == owner ,"");
_;
}
modifier onlyTokenOwner() {
require(isOwner() || mIsOfficialOperator[msg.sender],"");
_;
}
struct EditionDetails {
// Identifiers
uint256 editionNumber; // the range e.g. 10000
bytes32 editionData; // some data about the edition
uint256 editionType; // e.g. 1 = KODA V1, 2 = KOTA, 3 = Bespoke partnership
// Config
uint256 startDate; // date when the edition goes on sale
uint256 endDate; // date when the edition is available until
address artistAccount; // artists account
uint256 artistCommission; // base artists commission, could be overridden by external contracts
uint256 priceInWei; // base price for edition, could be overridden by external contracts
string tokenURI; // IPFS hash - see base URI
bool active; // Root control - on/off for the edition
// Counters
uint256 totalSupply; // Total purchases or mints
uint256 totalAvailable; // Total number available to be purchased
}
// name, symbol
constructor(string memory tokenName, string memory tokenSymbol) ERC721Full(tokenName, tokenSymbol) public {
}
function delivery(address player, string memory tokenURI, string memory property1, string memory property2,
string memory property3, string memory property4, string memory property5) public returns (uint256) {
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_mint(player, newItemId);
_setTokenURI(newItemId, tokenURI);
_setMetaData(newItemId, property1, property2, property3, property4, property5);
return newItemId;
}
function mint(address player, string memory tokenURI) public returns (uint256) {
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_mint(player, newItemId);
_setTokenURI(newItemId, tokenURI);
return newItemId;
}
function setMetaData(uint256 tokenId, string memory property1, string memory property2,
string memory property3, string memory property4, string memory property5) public onlyOwnerOrTokenOwner(tokenId) {
require(_exists(tokenId), "ERC721Metadata: Metadata set of nonexistent token");
_setMetaData(tokenId, property1, property2, property3, property4, property5);
}
/// @notice Add an address into the list of official operators.
/// @param _operator The address of a new official operator.
/// An official operator must be a contract.
function addOfficialOperator(address _operator) external onlyOwner {
// require(_operator.isContract(), "An official operator must be a contract.");
require(!mIsOfficialOperator[_operator], "_operator is already an official operator.");
mIsOfficialOperator[_operator] = true;
emit OfficialOperatorAdded(_operator);
}
/// @notice Delete an address from the list of official operators.
/// @param _operator The address of an official operator.
function removeOfficialOperator(address _operator) external onlyOwner {
require(mIsOfficialOperator[_operator], "_operator is not an official operator.");
mIsOfficialOperator[_operator] = false;
emit OfficialOperatorRemoved(_operator);
}
/// @notice Unauthorize all official operators to manage `msg.sender`'s tokens.
function rejectAllOfficialOperators() external {
require(!mIsUserNotAcceptingAllOfficialOperators[msg.sender], "Official operators are already rejected by msg.sender.");
mIsUserNotAcceptingAllOfficialOperators[msg.sender] = true;
emit OfficialOperatorsRejectedByUser(msg.sender);
}
/// @notice Authorize all official operators to manage `msg.sender`'s tokens.
function acceptAllOfficialOperators() external {
require(mIsUserNotAcceptingAllOfficialOperators[msg.sender], "Official operators are already accepted by msg.sender.");
mIsUserNotAcceptingAllOfficialOperators[msg.sender] = false;
emit OfficialOperatorsAcceptedByUser(msg.sender);
}
/// @return true if the address is an official operator, false if not.
function isOfficialOperator(address _operator) external view returns(bool) {
return mIsOfficialOperator[_operator];
}
/// @return true if a user is accepting all official operators, false if not.
function isUserAcceptingAllOfficialOperators(address _user) external view returns(bool) {
return !mIsUserNotAcceptingAllOfficialOperators[_user];
}
/// @notice Check whether the `_operator` address is allowed to manage the tokens held by `_tokenHolder` address.
/// @param _operator address to check if it has the right to manage the tokens
/// @param _tokenHolder address which holds the tokens to be managed
/// @return `true` if `_operator` is authorized for `_tokenHolder`
function isOperatorFor(address _operator, address _tokenHolder) public view returns (bool) {
return (
_operator == _tokenHolder
|| (!mIsUserNotAcceptingAllOfficialOperators[_tokenHolder] && mIsOfficialOperator[_operator]));
}
/// @notice Helper function actually performing the sending of tokens.
/// @param _from The address holding the tokens being sent
/// @param _to The address of the recipient
/// @param __tokenIds The ids of tokens to be sent
/// @param _nonce uint256 Presigned transaction number.
/// @param _userData bytes Data generated by the user to be sent to the recipient.
/// @param _sig_r bytes32 The r of the signature.
/// @param _sig_s bytes32 The s of the signature.
/// @param _sig_v uint8 The v of the signature.
function operatorSend(address _from,
address _to,
uint256[] calldata __tokenIds,
uint256 _nonce,
bytes calldata _userData,
bytes32 _sig_r,
bytes32 _sig_s,
uint8 _sig_v) external {
require(isOperatorFor(msg.sender, _from),"sender is not operator");
address _signer = (_sig_v != 27 && _sig_v != 28) ?
address(0) :
ecrecover(
keccak256(abi.encodePacked(
msg.sender,
_from,
_to,
_nonce
)),
_sig_v, _sig_r, _sig_s
);
require(
_nonce > usedNonce[_signer],
"_nonce must be greater than the last used nonce of the token holder."
);
usedNonce[_signer] = _nonce;
doSend(msg.sender, _from, _to, __tokenIds, _userData);
}
/// @notice Helper function actually performing the sending of tokens.
/// @param _operator The address performing the send
/// @param _from The address holding the tokens being sent
/// @param _to The address of the recipient
/// @param __tokenIds The number of tokens to be sent
/// implementing `ERC777TokensRecipient`.
/// ERC777 native Send functions MUST set this parameter to `true`, and backwards compatible ERC20 transfer
/// functions SHOULD set this parameter to `false`.
function doSend(
address _operator,
address _from,
address _to,
uint256[] memory __tokenIds,
bytes memory _userData
)
internal
{
for(uint i = 0; i < __tokenIds.length; i++) {
_transferFrom(_from, _to, __tokenIds[i]);
emit Sent(_operator, _from, _to, __tokenIds[i], _userData);
}
}
/**
* @dev Returns whether the given spender can transfer a given token ID.
* @param spender address of the spender to query
* @param tokenId uint256 ID of the token to be transferred
* @return bool whether the msg.sender is approved for the given token ID,
* is an operator of the owner, or is the owner of the token
*/
function _isTokenOwner(address spender, uint256 tokenId) internal view returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ownerOf(tokenId);
return (spender == owner );
}
function tokenIdofOwnerByAddress(address owner) public view returns(uint256[] memory ){
uint256 balance = balanceOf(owner);
uint256[] memory tokenIds = new uint256[](balance);
for (uint i = 0; i < balance; i++) {
uint256 tokenId = tokenOfOwnerByIndex(owner,i );
tokenIds[i]= tokenId;
}
return tokenIds;
}
function getMetaDataByTokenIds(uint256[] memory tokenIds) public view returns(metadata[] memory) {
metadata[] memory _metadatas = new metadata[](tokenIds.length);
for (uint i = 0; i < tokenIds.length; i++) {
require(_exists(tokenIds[i]), "ERC721Metadata: Metadata set of nonexistent token");
uint256 _tokenID = tokenIds[i];
_metadatas[i]=MetaData(_tokenID);
}
return _metadatas;
}
donate(){
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/access/Ownable.sol";
interface IERC721 {
function transfer(address, uint) external;
function transferFrom(
address,
address,
uint
) external;
}
contract EnglishAuction is Ownable{
event Start();
event Bid(address indexed sender, uint amount);
event Withdraw(address indexed bidder, uint amount);
event End(address winner, uint amount);
event LogCanceled();
IERC721 public nft;
uint public nftId;
address payable public seller;
uint public endAt;
bool public started;
bool public ended;
bool public canceled;
address public highestBidder;
uint public highestBid;
mapping(address => uint) public bids;
constructor(
address _nft,
uint _nftId,
uint _startingBid
) {
nft = IERC721(_nft);
nftId = _nftId;
seller = payable(msg.sender);
highestBid = _startingBid;
}
modifier onlyNotCanceled {
require (canceled == false, "already canceled");
_;
}
modifier onlyNotOwner {
require (msg.sender != seller, "already canceled");
_;
}
modifier onlyBeforeEnd {
require (block.number < endAt,"Already end") ;
_;
}
function start() external {
require(!started, "started");
require(msg.sender == seller, "not seller");
nft.transferFrom(msg.sender, address(this), nftId);
started = true;
canceled = false;
endAt = block.timestamp + 7 days;
emit Start();
}
function bid() external payable onlyNotCanceled onlyNotOwner {
require(started, "not started");
require(block.timestamp < endAt, "ended");
require(msg.value > highestBid, "value < highest");
if (highestBidder != address(0)) {
bids[highestBidder] += highestBid;
}
highestBidder = msg.sender;
highestBid = msg.value;
emit Bid(msg.sender, msg.value);
}
function withdraw() external {
uint bal = bids[msg.sender];
bids[msg.sender] = 0;
payable(msg.sender).transfer(bal);
emit Withdraw(msg.sender, bal);
}
function end() external {
require(started, "not started");
require(block.timestamp >= endAt, "not ended");
require(!ended, "ended");
ended = true;
if (highestBidder != address(0)) {
nft.transfer(highestBidder, nftId);
seller.transfer(highestBid);
} else {
nft.transfer(seller, nftId);
}
emit End(highestBidder, highestBid);
}
function cancelAuction() external
onlyOwner
onlyBeforeEnd
onlyNotCanceled
returns (bool success)
{
canceled = true;
nft.transferFrom(address(this), seller , nftId);
emit LogCanceled();
return true;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
contract ERC721LazyMintWith712 is ERC721, EIP712, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
constructor(string memory name, string memory symbol)
ERC721(name, symbol)
EIP712(name, "1.0.0")
{
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
}
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl) returns (bool) {
return super.supportsInterface(interfaceId);
}
function redeem(address account, uint256 tokenId, bytes calldata signature)
external
{
require(_verify(_hash(account, tokenId), signature), "Invalid signature");
_safeMint(account, tokenId);
}
function _hash(address account, uint256 tokenId)
internal view returns (bytes32)
{
return _hashTypedDataV4(keccak256(abi.encode(
keccak256("NFT(uint256 tokenId,address account)"),
tokenId,
account
)));
}
function _verify(bytes32 digest, bytes memory signature)
internal view returns (bool)
{
return hasRole(MINTER_ROLE, ECDSA.recover(digest, signature));
}
}
pragma solidity ^0.8.3;
pragma abicoder v2; // required to accept structs as function parameters
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface IERC721 {
function transfer(address, uint) external;
function transferFrom(
address,
address,
uint
) external;
}
contract EnglishAuction is EIP712, Ownable {
event Start();
event Bid(address indexed sender, uint amount);
event Withdraw(address indexed bidder, uint amount);
event End(address winner, uint amount);
using SafeMath for uint256;
IERC721 public nft;
uint public nftId;
address payable public seller;
uint public endAt;
bool public started;
bool public ended;
bool public canceled;
address public highestBidder;
uint public highestBid;
mapping(address => uint) public bids;
address payable recipient;
uint256 artistCommission;
string private constant SIGNING_DOMAIN = "FADA";
string private constant SIGNATURE_VERSION = "1";
NFTVDigitalAsset asset;
/// @notice Represents an un-minted NFT, which has not yet been recorded into the blockchain. A signed voucher can be redeemed for a real NFT using the redeem function.
struct NFTVDigitalAsset {
/// @notice The id of the token to be redeemed. Must be unique - if another token with this ID already exists, the redeem function will revert.
uint256 tokenId;
/// @notice The minimum price (in wei) that the NFT creator is willing to accept for the initial sale of this NFT.
uint256 minPrice;
/// @notice the EIP-712 signature of all other fields in the NFTVoucher struct. For a voucher to be valid, it must be signed by an account with the MINTER_ROLE.
bytes signature;
}
constructor(
address _nft,
uint _nftId,
uint _startingBid,
address payable _recipient,
uint256 _artistCommission
) EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION){
nft = IERC721(_nft);
nftId = _nftId;
recipient = payable(_recipient);
artistCommission = _artistCommission;
seller = payable(msg.sender);
highestBid = _startingBid;
}
modifier onlyNotCanceled {
require (canceled, "already canceled");
_;
}
function start() external {
require(!started, "started");
require(msg.sender == seller, "not seller");
nft.transferFrom(msg.sender, address(this), nftId);
started = true;
endAt = block.timestamp + 7 days;
emit Start();
}
function bid() external payable {
require(started, "not started");
require(block.timestamp < endAt, "ended");
require(msg.value > highestBid, "value < highest");
if (highestBidder != address(0)) {
bids[highestBidder] += highestBid;
}
highestBidder = msg.sender;
highestBid = msg.value;
emit Bid(msg.sender, msg.value);
}
function withdraw() external {
uint bal = bids[msg.sender];
bids[msg.sender] = 0;
payable(msg.sender).transfer(bal);
emit Withdraw(msg.sender, bal);
}
function end() external {
require(started, "not started");
require(block.timestamp >= endAt, "not ended");
require(!ended, "ended");
ended = true;
if (highestBidder != address(0)) {
nft.transfer(highestBidder, nftId);
//seller.transfer(highestBid);
uint256 artistPayment = highestBid.div(100).mul(artistCommission);
if (artistPayment > 0) {
payable(seller).transfer(artistPayment);
}
// Send remaining eth to FA
uint256 remainingCommission = highestBid.sub(artistPayment);
seller.transfer(remainingCommission);
} else {
nft.transfer(seller, nftId);
}
emit End(highestBidder, highestBid);
}
function cancelAuction()
onlyOwner
onlyBeforeEnd
onlyNotCanceled
returns (bool success)
{
canceled = true;
LogCanceled();
return true;
}
}
// File: openzeppelin-solidity\contracts\access\rbac\Roles.sol
pragma solidity ^0.4.24;
/**
* @title Roles
* @author Francisco Giordano (@frangio)
* @dev Library for managing addresses assigned to a Role.
* See RBAC.sol for example usage.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an address access to this role
*/
function add(Role storage _role, address _addr)
internal
{
_role.bearer[_addr] = true;
}
/**
* @dev remove an address' access to this role
*/
function remove(Role storage _role, address _addr)
internal
{
_role.bearer[_addr] = false;
}
/**
* @dev check if an address has this role
* // reverts
*/
function check(Role storage _role, address _addr)
internal
view
{
require(has(_role, _addr));
}
/**
* @dev check if an address has this role
* @return bool
*/
function has(Role storage _role, address _addr)
internal
view
returns (bool)
{
return _role.bearer[_addr];
}
}
// File: contracts\AccessControl.sol
/**
* @title Based on OpenZeppelin Whitelist & RBCA contracts
* @dev The AccessControl contract provides different access for addresses, and provides basic authorization control functions.
*/
contract AccessControl {
using Roles for Roles.Role;
uint8 public constant ROLE_FORMOSART = 1;
uint8 public constant ROLE_MINTER = 2;
uint8 public constant ROLE_UNDER_MINTER = 3;
event RoleAdded(address indexed operator, uint8 role);
event RoleRemoved(address indexed operator, uint8 role);
address public owner;
mapping(uint8 => Roles.Role) private roles;
modifier onlyIfFormosart() {
require(msg.sender == owner || hasRole(msg.sender, ROLE_FORMOSART));
_;
}
modifier onlyIfMinter() {
require(msg.sender == owner || hasRole(msg.sender, ROLE_FORMOSART) || hasRole(msg.sender, ROLE_MINTER));
_;
}
modifier onlyIfUnderMinter() {
require(msg.sender == owner || hasRole(msg.sender, ROLE_FORMOSART) || hasRole(msg.sender, ROLE_UNDER_MINTER));
_;
}
constructor() public {
owner = msg.sender;
}
////////////////////////////////////
// Whitelist/RBCA Derived Methods //
////////////////////////////////////
function addAddressToAccessControl(address _operator, uint8 _role)
public
onlyIfFormosart
{
roles[_role].add(_operator);
emit RoleAdded(_operator, _role);
}
function removeAddressFromAccessControl(address _operator, uint8 _role)
public
onlyIfFormosart
{
roles[_role].remove(_operator);
emit RoleRemoved(_operator, _role);
}
function checkRole(address _operator, uint8 _role)
public
view
{
roles[_role].check(_operator);
}
function hasRole(address _operator, uint8 _role)
public
view
returns (bool)
{
return roles[_role].has(_operator);
}
}
// File: node_modules\openzeppelin-solidity\contracts\ownership\Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);
owner = address(0);
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function transferOwnership(address _newOwner) public onlyOwner {
_transferOwnership(_newOwner);
}
/**
* @dev Transfers control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function _transferOwnership(address _newOwner) internal {
require(_newOwner != address(0));
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
}
// File: openzeppelin-solidity\contracts\ownership\HasNoEther.sol
/**
* @title Contracts that should not own Ether
* @author Remco Bloemen <remco@2π.com>
* @dev This tries to block incoming ether to prevent accidental loss of Ether. Should Ether end up
* in the contract, it will allow the owner to reclaim this Ether.
* @notice Ether can still be sent to this contract by:
* calling functions labeled `payable`
* `selfdestruct(contract_address)`
* mining directly to the contract address
*/
contract HasNoEther is Ownable {
/**
* @dev Constructor that rejects incoming Ether
* The `payable` flag is added so we can access `msg.value` without compiler warning. If we
* leave out payable, then Solidity will allow inheriting contracts to implement a payable
* constructor. By doing it this way we prevent a payable constructor from working. Alternatively
* we could use assembly to access msg.value.
*/
constructor() public payable {
require(msg.value == 0);
}
/**
* @dev Disallows direct send by setting a default function without the `payable` flag.
*/
function() external {
}
/**
* @dev Transfer all Ether held by the contract to the owner.
*/
function reclaimEther() external onlyOwner {
owner.transfer(address(this).balance);
}
}
// File: openzeppelin-solidity\contracts\math\SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (_a == 0) {
return 0;
}
c = _a * _b;
assert(c / _a == _b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
// assert(_b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = _a / _b;
// assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold
return _a / _b;
}
/**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
assert(_b <= _a);
return _a - _b;
}
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
c = _a + _b;
assert(c >= _a);
return c;
}
}
// File: openzeppelin-solidity\contracts\lifecycle\Pausable.sol
/**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*/
modifier whenPaused() {
require(paused);
_;
}
/**
* @dev called by the owner to pause, triggers stopped state
*/
function pause() public onlyOwner whenNotPaused {
paused = true;
emit Pause();
}
/**
* @dev called by the owner to unpause, returns to normal state
*/
function unpause() public onlyOwner whenPaused {
paused = false;
emit Unpause();
}
}
// File: node_modules\openzeppelin-solidity\contracts\introspection\ERC165.sol
/**
* @title ERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface ERC165 {
/**
* @notice Query if a contract implements an interface
* @param _interfaceId The interface identifier, as specified in ERC-165
* @dev Interface identification is specified in ERC-165. This function
* uses less than 30,000 gas.
*/
function supportsInterface(bytes4 _interfaceId)
external
view
returns (bool);
}
// File: node_modules\openzeppelin-solidity\contracts\token\ERC721\ERC721Basic.sol
/**
* @title ERC721 Non-Fungible Token Standard basic interface
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Basic is ERC165 {
bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd;
/*
* 0x80ac58cd ===
* bytes4(keccak256('balanceOf(address)')) ^
* bytes4(keccak256('ownerOf(uint256)')) ^
* bytes4(keccak256('approve(address,uint256)')) ^
* bytes4(keccak256('getApproved(uint256)')) ^
* bytes4(keccak256('setApprovalForAll(address,bool)')) ^
* bytes4(keccak256('isApprovedForAll(address,address)')) ^
* bytes4(keccak256('transferFrom(address,address,uint256)')) ^
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
*/
bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79;
/*
* 0x4f558e79 ===
* bytes4(keccak256('exists(uint256)'))
*/
bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63;
/**
* 0x780e9d63 ===
* bytes4(keccak256('totalSupply()')) ^
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
* bytes4(keccak256('tokenByIndex(uint256)'))
*/
bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f;
/**
* 0x5b5e139f ===
* bytes4(keccak256('name()')) ^
* bytes4(keccak256('symbol()')) ^
* bytes4(keccak256('tokenURI(uint256)'))
*/
event Transfer(
address indexed _from,
address indexed _to,
uint256 indexed _tokenId
);
event Approval(
address indexed _owner,
address indexed _approved,
uint256 indexed _tokenId
);
event ApprovalForAll(
address indexed _owner,
address indexed _operator,
bool _approved
);
function balanceOf(address _owner) public view returns (uint256 _balance);
function ownerOf(uint256 _tokenId) public view returns (address _owner);
function exists(uint256 _tokenId) public view returns (bool _exists);
function approve(address _to, uint256 _tokenId) public;
function getApproved(uint256 _tokenId)
public view returns (address _operator);
function setApprovalForAll(address _operator, bool _approved) public;
function isApprovedForAll(address _owner, address _operator)
public view returns (bool);
function transferFrom(address _from, address _to, uint256 _tokenId) public;
function safeTransferFrom(address _from, address _to, uint256 _tokenId)
public;
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
public;
}
// File: node_modules\openzeppelin-solidity\contracts\token\ERC721\ERC721.sol
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Enumerable is ERC721Basic {
function totalSupply() public view returns (uint256);
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
public
view
returns (uint256 _tokenId);
function tokenByIndex(uint256 _index) public view returns (uint256);
}
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Metadata is ERC721Basic {
function name() external view returns (string _name);
function symbol() external view returns (string _symbol);
function tokenURI(uint256 _tokenId) public view returns (string);
}
/**
* @title ERC-721 Non-Fungible Token Standard, full implementation interface
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata {
}
// File: node_modules\openzeppelin-solidity\contracts\token\ERC721\ERC721Receiver.sol
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
contract ERC721Receiver {
/**
* @dev Magic value to be returned upon successful reception of an NFT
* Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`,
* which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
*/
bytes4 internal constant ERC721_RECEIVED = 0x150b7a02;
/**
* @notice Handle the receipt of an NFT
* @dev The ERC721 smart contract calls this function on the recipient
* after a `safetransfer`. This function MAY throw to revert and reject the
* transfer. Return of other than the magic value MUST result in the
* transaction being reverted.
* Note: the contract address is always the message sender.
* @param _operator The address which called `safeTransferFrom` function
* @param _from The address which previously owned the token
* @param _tokenId The NFT identifier which is being transferred
* @param _data Additional data with no specified format
* @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
*/
function onERC721Received(
address _operator,
address _from,
uint256 _tokenId,
bytes _data
)
public
returns(bytes4);
}
// File: node_modules\openzeppelin-solidity\contracts\math\SafeMath.sol
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
/**
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
* as the code is not actually created until after the constructor finishes.
* @param _addr address to check
* @return whether the target address is a contract
*/
function isContract(address _addr) internal view returns (bool) {
uint256 size;
// XXX Currently there is no better way to check if there is a contract in an address
// than to check the size of the code at that address.
// See https://ethereum.stackexchange.com/a/14016/36603
// for more details about how this works.
// TODO Check this again before the Serenity release, because all addresses will be
// contracts then.
// solium-disable-next-line security/no-inline-assembly
assembly { size := extcodesize(_addr) }
return size > 0;
}
}
// File: node_modules\openzeppelin-solidity\contracts\introspection\SupportsInterfaceWithLookup.sol
/**
* @title SupportsInterfaceWithLookup
* @author Matt Condon (@shrugs)
* @dev Implements ERC165 using a lookup table.
*/
contract SupportsInterfaceWithLookup is ERC165 {
bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7;
/**
* 0x01ffc9a7 ===
* bytes4(keccak256('supportsInterface(bytes4)'))
*/
/**
* @dev a mapping of interface id to whether or not it's supported
*/
mapping(bytes4 => bool) internal supportedInterfaces;
/**
* @dev A contract implementing SupportsInterfaceWithLookup
* implement ERC165 itself
*/
constructor()
public
{
_registerInterface(InterfaceId_ERC165);
}
/**
* @dev implement supportsInterface(bytes4) using a lookup table
*/
function supportsInterface(bytes4 _interfaceId)
external
view
returns (bool)
{
return supportedInterfaces[_interfaceId];
}
/**
* @dev private method for registering an interface
*/
function _registerInterface(bytes4 _interfaceId)
internal
{
require(_interfaceId != 0xffffffff);
supportedInterfaces[_interfaceId] = true;
}
}
// File: node_modules\openzeppelin-solidity\contracts\token\ERC721\ERC721BasicToken.sol
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
using SafeMath for uint256;
using AddressUtils for address;
// Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
// which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
bytes4 private constant ERC721_RECEIVED = 0x150b7a02;
// Mapping from token ID to owner
mapping (uint256 => address) internal tokenOwner;
// Mapping from token ID to approved address
mapping (uint256 => address) internal tokenApprovals;
// Mapping from owner to number of owned token
mapping (address => uint256) internal ownedTokensCount;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) internal operatorApprovals;
constructor()
public
{
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(InterfaceId_ERC721);
_registerInterface(InterfaceId_ERC721Exists);
}
/**
* @dev Gets the balance of the specified address
* @param _owner address to query the balance of
* @return uint256 representing the amount owned by the passed address
*/
function balanceOf(address _owner) public view returns (uint256) {
require(_owner != address(0));
return ownedTokensCount[_owner];
}
/**
* @dev Gets the owner of the specified token ID
* @param _tokenId uint256 ID of the token to query the owner of
* @return owner address currently marked as the owner of the given token ID
*/
function ownerOf(uint256 _tokenId) public view returns (address) {
address owner = tokenOwner[_tokenId];
require(owner != address(0));
return owner;
}
/**
* @dev Returns whether the specified token exists
* @param _tokenId uint256 ID of the token to query the existence of
* @return whether the token exists
*/
function exists(uint256 _tokenId) public view returns (bool) {
address owner = tokenOwner[_tokenId];
return owner != address(0);
}
/**
* @dev Approves another address to transfer the given token ID
* The zero address indicates there is no approved address.
* There can only be one approved address per token at a given time.
* Can only be called by the token owner or an approved operator.
* @param _to address to be approved for the given token ID
* @param _tokenId uint256 ID of the token to be approved
*/
function approve(address _to, uint256 _tokenId) public {
address owner = ownerOf(_tokenId);
require(_to != owner);
require(msg.sender == owner || isApprovedForAll(owner, msg.sender));
tokenApprovals[_tokenId] = _to;
emit Approval(owner, _to, _tokenId);
}
/**
* @dev Gets the approved address for a token ID, or zero if no address set
* @param _tokenId uint256 ID of the token to query the approval of
* @return address currently approved for the given token ID
*/
function getApproved(uint256 _tokenId) public view returns (address) {
return tokenApprovals[_tokenId];
}
/**
* @dev Sets or unsets the approval of a given operator
* An operator is allowed to transfer all tokens of the sender on their behalf
* @param _to operator address to set the approval
* @param _approved representing the status of the approval to be set
*/
function setApprovalForAll(address _to, bool _approved) public {
require(_to != msg.sender);
operatorApprovals[msg.sender][_to] = _approved;
emit ApprovalForAll(msg.sender, _to, _approved);
}
/**
* @dev Tells whether an operator is approved by a given owner
* @param _owner owner address which you want to query the approval of
* @param _operator operator address which you want to query the approval of
* @return bool whether the given operator is approved by the given owner
*/
function isApprovedForAll(
address _owner,
address _operator
)
public
view
returns (bool)
{
return operatorApprovals[_owner][_operator];
}
/**
* @dev Transfers the ownership of a given token ID to another address
* Usage of this method is discouraged, use `safeTransferFrom` whenever possible
* Requires the msg sender to be the owner, approved, or operator
* @param _from current owner of the token
* @param _to address to receive the ownership of the given token ID
* @param _tokenId uint256 ID of the token to be transferred
*/
function transferFrom(
address _from,
address _to,
uint256 _tokenId
)
public
{
require(isApprovedOrOwner(msg.sender, _tokenId));
require(_from != address(0));
require(_to != address(0));
clearApproval(_from, _tokenId);
removeTokenFrom(_from, _tokenId);
addTokenTo(_to, _tokenId);
emit Transfer(_from, _to, _tokenId);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
*
* Requires the msg sender to be the owner, approved, or operator
* @param _from current owner of the token
* @param _to address to receive the ownership of the given token ID
* @param _tokenId uint256 ID of the token to be transferred
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId
)
public
{
// solium-disable-next-line arg-overflow
safeTransferFrom(_from, _to, _tokenId, "");
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the msg sender to be the owner, approved, or operator
* @param _from current owner of the token
* @param _to address to receive the ownership of the given token ID
* @param _tokenId uint256 ID of the token to be transferred
* @param _data bytes data to send along with a safe transfer check
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
public
{
transferFrom(_from, _to, _tokenId);
// solium-disable-next-line arg-overflow
require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data));
}
/**
* @dev Returns whether the given spender can transfer a given token ID
* @param _spender address of the spender to query
* @param _tokenId uint256 ID of the token to be transferred
* @return bool whether the msg.sender is approved for the given token ID,
* is an operator of the owner, or is the owner of the token
*/
function isApprovedOrOwner(
address _spender,
uint256 _tokenId
)
internal
view
returns (bool)
{
address owner = ownerOf(_tokenId);
// Disable solium check because of
// https://github.com/duaraghav8/Solium/issues/175
// solium-disable-next-line operator-whitespace
return (
_spender == owner ||
getApproved(_tokenId) == _spender ||
isApprovedForAll(owner, _spender)
);
}
/**
* @dev Internal function to mint a new token
* Reverts if the given token ID already exists
* @param _to The address that will own the minted token
* @param _tokenId uint256 ID of the token to be minted by the msg.sender
*/
function _mint(address _to, uint256 _tokenId) internal {
require(_to != address(0));
addTokenTo(_to, _tokenId);
emit Transfer(address(0), _to, _tokenId);
}
/**
* @dev Internal function to burn a specific token
* Reverts if the token does not exist
* @param _tokenId uint256 ID of the token being burned by the msg.sender
*/
function _burn(address _owner, uint256 _tokenId) internal {
clearApproval(_owner, _tokenId);
removeTokenFrom(_owner, _tokenId);
emit Transfer(_owner, address(0), _tokenId);
}
/**
* @dev Internal function to clear current approval of a given token ID
* Reverts if the given address is not indeed the owner of the token
* @param _owner owner of the token
* @param _tokenId uint256 ID of the token to be transferred
*/
function clearApproval(address _owner, uint256 _tokenId) internal {
require(ownerOf(_tokenId) == _owner);
if (tokenApprovals[_tokenId] != address(0)) {
tokenApprovals[_tokenId] = address(0);
}
}
/**
* @dev Internal function to add a token ID to the list of a given address
* @param _to address representing the new owner of the given token ID
* @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function addTokenTo(address _to, uint256 _tokenId) internal {
require(tokenOwner[_tokenId] == address(0));
tokenOwner[_tokenId] = _to;
ownedTokensCount[_to] = ownedTokensCount[_to].add(1);
}
/**
* @dev Internal function to remove a token ID from the list of a given address
* @param _from address representing the previous owner of the given token ID
* @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function removeTokenFrom(address _from, uint256 _tokenId) internal {
require(ownerOf(_tokenId) == _from);
ownedTokensCount[_from] = ownedTokensCount[_from].sub(1);
tokenOwner[_tokenId] = address(0);
}
/**
* @dev Internal function to invoke `onERC721Received` on a target address
* The call is not executed if the target address is not a contract
* @param _from address representing the previous owner of the given token ID
* @param _to target address that will receive the tokens
* @param _tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return whether the call correctly returned the expected magic value
*/
function checkAndCallSafeTransfer(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
internal
returns (bool)
{
if (!_to.isContract()) {
return true;
}
bytes4 retval = ERC721Receiver(_to).onERC721Received(
msg.sender, _from, _tokenId, _data);
return (retval == ERC721_RECEIVED);
}
}
// File: openzeppelin-solidity\contracts\token\ERC721\ERC721Token.sol
/**
* @title Full ERC721 Token
* This implementation includes all the required and some optional functionality of the ERC721 standard
* Moreover, it includes approve all functionality using operator terminology
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 {
// Token name
string internal name_;
// Token symbol
string internal symbol_;
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) internal ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) internal ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] internal allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) internal allTokensIndex;
// Optional mapping for token URIs
mapping(uint256 => string) internal tokenURIs;
/**
* @dev Constructor function
*/
constructor(string _name, string _symbol) public {
name_ = _name;
symbol_ = _symbol;
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(InterfaceId_ERC721Enumerable);
_registerInterface(InterfaceId_ERC721Metadata);
}
/**
* @dev Gets the token name
* @return string representing the token name
*/
function name() external view returns (string) {
return name_;
}
/**
* @dev Gets the token symbol
* @return string representing the token symbol
*/
function symbol() external view returns (string) {
return symbol_;
}
/**
* @dev Returns an URI for a given token ID
* Throws if the token ID does not exist. May return an empty string.
* @param _tokenId uint256 ID of the token to query
*/
function tokenURI(uint256 _tokenId) public view returns (string) {
require(exists(_tokenId));
return tokenURIs[_tokenId];
}
/**
* @dev Gets the token ID at a given index of the tokens list of the requested owner
* @param _owner address owning the tokens list to be accessed
* @param _index uint256 representing the index to be accessed of the requested tokens list
* @return uint256 token ID at the given index of the tokens list owned by the requested address
*/
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
public
view
returns (uint256)
{
require(_index < balanceOf(_owner));
return ownedTokens[_owner][_index];
}
/**
* @dev Gets the total amount of tokens stored by the contract
* @return uint256 representing the total amount of tokens
*/
function totalSupply() public view returns (uint256) {
return allTokens.length;
}
/**
* @dev Gets the token ID at a given index of all the tokens in this contract
* Reverts if the index is greater or equal to the total number of tokens
* @param _index uint256 representing the index to be accessed of the tokens list
* @return uint256 token ID at the given index of the tokens list
*/
function tokenByIndex(uint256 _index) public view returns (uint256) {
require(_index < totalSupply());
return allTokens[_index];
}
/**
* @dev Internal function to set the token URI for a given token
* Reverts if the token ID does not exist
* @param _tokenId uint256 ID of the token to set its URI
* @param _uri string URI to assign
*/
function _setTokenURI(uint256 _tokenId, string _uri) internal {
require(exists(_tokenId));
tokenURIs[_tokenId] = _uri;
}
/**
* @dev Internal function to add a token ID to the list of a given address
* @param _to address representing the new owner of the given token ID
* @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function addTokenTo(address _to, uint256 _tokenId) internal {
super.addTokenTo(_to, _tokenId);
uint256 length = ownedTokens[_to].length;
ownedTokens[_to].push(_tokenId);
ownedTokensIndex[_tokenId] = length;
}
/**
* @dev Internal function to remove a token ID from the list of a given address
* @param _from address representing the previous owner of the given token ID
* @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function removeTokenFrom(address _from, uint256 _tokenId) internal {
super.removeTokenFrom(_from, _tokenId);
// To prevent a gap in the array, we store the last token in the index of the token to delete, and
// then delete the last slot.
uint256 tokenIndex = ownedTokensIndex[_tokenId];
uint256 lastTokenIndex = ownedTokens[_from].length.sub(1);
uint256 lastToken = ownedTokens[_from][lastTokenIndex];
ownedTokens[_from][tokenIndex] = lastToken;
// This also deletes the contents at the last position of the array
ownedTokens[_from].length--;
// Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to
// be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping
// the lastToken to the first position, and then dropping the element placed in the last position of the list
ownedTokensIndex[_tokenId] = 0;
ownedTokensIndex[lastToken] = tokenIndex;
}
/**
* @dev Internal function to mint a new token
* Reverts if the given token ID already exists
* @param _to address the beneficiary that will own the minted token
* @param _tokenId uint256 ID of the token to be minted by the msg.sender
*/
function _mint(address _to, uint256 _tokenId) internal {
super._mint(_to, _tokenId);
allTokensIndex[_tokenId] = allTokens.length;
allTokens.push(_tokenId);
}
/**
* @dev Internal function to burn a specific token
* Reverts if the token does not exist
* @param _owner owner of the token to burn
* @param _tokenId uint256 ID of the token being burned by the msg.sender
*/
function _burn(address _owner, uint256 _tokenId) internal {
super._burn(_owner, _tokenId);
// Clear metadata (if any)
if (bytes(tokenURIs[_tokenId]).length != 0) {
delete tokenURIs[_tokenId];
}
// Reorg all tokens array
uint256 tokenIndex = allTokensIndex[_tokenId];
uint256 lastTokenIndex = allTokens.length.sub(1);
uint256 lastToken = allTokens[lastTokenIndex];
allTokens[tokenIndex] = lastToken;
allTokens[lastTokenIndex] = 0;
allTokens.length--;
allTokensIndex[_tokenId] = 0;
allTokensIndex[lastToken] = tokenIndex;
}
}
// File: contracts\Strings.sol
pragma solidity ^0.4.19;
library Strings {
// via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
function strConcat(string _a, string _b, string _c, string _d, string _e) internal pure returns (string) {
bytes memory _ba = bytes(_a);
bytes memory _bb = bytes(_b);
bytes memory _bc = bytes(_c);
bytes memory _bd = bytes(_d);
bytes memory _be = bytes(_e);
string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
bytes memory babcde = bytes(abcde);
uint k = 0;
for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
for (i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
for (i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
for (i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
for (i = 0; i < _be.length; i++) babcde[k++] = _be[i];
return string(babcde);
}
function strConcat(string _a, string _b) internal pure returns (string) {
return strConcat(_a, _b, "", "", "");
}
}
// File: contracts\FormosartDigitalAssetV2.sol
// allows for multi-address access controls to different functions
// Prevents stuck ether
// For safe maths operations
// Pause purchasing only in case of emergency/migration
// ERC721
// Utils only
/**
* @title FormosartDigitalAsset - V2
*
* http://www.Formosart.io/
*
* ERC721 compliant digital assets for real-world artwork.
*
* Base NFT Issuance Contract
*
* BE ORIGINAL. BUY ORIGINAL.
*
*/
contract FormosartDigitalAssetV2 is
ERC721Token,
AccessControl,
HasNoEther,
Pausable
{
using SafeMath for uint256;
////////////
// Events //
////////////
// Emitted on purchases from within this contract
event Purchase(
uint256 indexed _tokenId,
uint256 indexed _editionNumber,
address indexed _buyer,
uint256 _priceInWei
);
// Emitted on every mint
event Minted(
uint256 indexed _tokenId,
uint256 indexed _editionNumber,
address indexed _buyer
);
// Emitted on every edition created
event EditionCreated(
uint256 indexed _editionNumber,
bytes32 indexed _editionData,
uint256 indexed _editionType
);
////////////////
// Properties //
////////////////
uint256 constant internal MAX_UINT32 = ~uint32(0);
string public tokenBaseURI = "";
// simple counter to keep track of the highest edition number used
uint256 public highestEditionNumber;
// total wei been processed through the contract
uint256 public totalPurchaseValueInWei;
// number of assets minted of any type
uint256 public totalNumberMinted;
// number of assets available of any type
uint256 public totalNumberAvailable;
// the KO account which can receive commission
address public faCommissionAccount;
// Optional commission split can be defined per edition
mapping(uint256 => CommissionSplit) editionNumberToOptionalCommissionSplit;
// Simple structure providing an optional commission split per edition purchase
struct CommissionSplit {
uint256 rate;
address recipient;
}
// Object for edition details
struct EditionDetails {
// Identifiers
uint256 editionNumber; // the range e.g. 10000
bytes32 editionData; // some data about the edition
uint256 editionType; // e.g. 1 = KODA V1, 2 = KOTA, 3 = Bespoke partnership
// Config
uint256 startDate; // date when the edition goes on sale
uint256 endDate; // date when the edition is available until
address artistAccount; // artists account
uint256 artistCommission; // base artists commission, could be overridden by external contracts
uint256 priceInWei; // base price for edition, could be overridden by external contracts
string tokenURI; // IPFS hash - see base URI
bool active; // Root control - on/off for the edition
// Counters
uint256 totalSupply; // Total purchases or mints
uint256 totalAvailable; // Total number available to be purchased
}
// _editionNumber : EditionDetails
mapping(uint256 => EditionDetails) internal editionNumberToEditionDetails;
// _tokenId : _editionNumber
mapping(uint256 => uint256) internal tokenIdToEditionNumber;
// _editionNumber : [_tokenId, _tokenId]
mapping(uint256 => uint256[]) internal editionNumberToTokenIds;
mapping(uint256 => uint256) internal editionNumberToTokenIdIndex;
// _artistAccount : [_editionNumber, _editionNumber]
mapping(address => uint256[]) internal artistToEditionNumbers;
mapping(uint256 => uint256) internal editionNumberToArtistIndex;
// _editionType : [_editionNumber, _editionNumber]
mapping(uint256 => uint256[]) internal editionTypeToEditionNumber;
mapping(uint256 => uint256) internal editionNumberToTypeIndex;
///////////////
// Modifiers //
///////////////
modifier onlyAvailableEdition(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].totalSupply < editionNumberToEditionDetails[_editionNumber].totalAvailable, "No more editions left to purchase");
_;
}
modifier onlyActiveEdition(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].active, "Edition not active");
_;
}
modifier onlyRealEdition(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].editionNumber > 0, "Edition number invalid");
_;
}
modifier onlyValidTokenId(uint256 _tokenId) {
require(exists(_tokenId), "Token ID does not exist");
_;
}
modifier onlyPurchaseDuringWindow(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].startDate <= block.timestamp, "Edition not available yet");
require(editionNumberToEditionDetails[_editionNumber].endDate >= block.timestamp, "Edition no longer available");
_;
}
/*
* Constructor
*/
constructor () public payable ERC721Token("FormosartDigitalAsset", "FADA") {
// set commission account to contract creator
faCommissionAccount = msg.sender;
}
/**
* @dev Creates an active edition from the given configuration
* @dev Only callable from KO staff/addresses
*/
function createActiveEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalAvailable
)
public
onlyIfFormosart
returns (bool)
{
return _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, true);
}
/**
* @dev Creates an inactive edition from the given configuration
* @dev Only callable from KO staff/addresses
*/
function createInactiveEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalAvailable
)
public
onlyIfFormosart
returns (bool)
{
return _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, false);
}
/**
* @dev Creates an active edition from the given configuration
* @dev The concept of pre0minted editions means we can 'undermint' token IDS, good for holding back editions from public sale
* @dev Only callable from KO staff/addresses
*/
function createActivePreMintedEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalSupply,
uint256 _totalAvailable
)
public
onlyIfFormosart
returns (bool)
{
_createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, true);
updateTotalSupply(_editionNumber, _totalSupply);
return true;
}
/**
* @dev Creates an inactive edition from the given configuration
* @dev The concept of pre0minted editions means we can 'undermint' token IDS, good for holding back editions from public sale
* @dev Only callable from KO staff/addresses
*/
function createInactivePreMintedEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalSupply,
uint256 _totalAvailable
)
public
onlyIfFormosart
returns (bool)
{
_createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, false);
updateTotalSupply(_editionNumber, _totalSupply);
return true;
}
/**
* @dev Internal factory method for building editions
*/
function _createEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalAvailable,
bool _active
)
internal
returns (bool)
{
// Prevent missing edition number
require(_editionNumber != 0, "Edition number not provided");
// Prevent edition number lower than last one used
require(_editionNumber > highestEditionNumber, "Edition number must be greater than previously used");
// Check previously edition plus total available is less than new edition number
require(highestEditionNumber.add(editionNumberToEditionDetails[highestEditionNumber].totalAvailable) < _editionNumber, "Edition number must be greater than previously used plus total available");
// Prevent missing types
require(_editionType != 0, "Edition type not provided");
// Prevent missing token URI
require(bytes(_tokenURI).length != 0, "Token URI is missing");
// Prevent empty artists address
require(_artistAccount != address(0), "Artist account not provided");
// Prevent invalid commissions
require(_artistCommission <= 100 && _artistCommission >= 0, "Artist commission cannot be greater than 100 or less than 0");
// Prevent duplicate editions
require(editionNumberToEditionDetails[_editionNumber].editionNumber == 0, "Edition already in existence");
// Default end date to max uint256
uint256 endDate = _endDate;
if (_endDate == 0) {
endDate = MAX_UINT32;
}
editionNumberToEditionDetails[_editionNumber] = EditionDetails({
editionNumber : _editionNumber,
editionData : _editionData,
editionType : _editionType,
startDate : _startDate,
endDate : endDate,
artistAccount : _artistAccount,
artistCommission : _artistCommission,
priceInWei : _priceInWei,
tokenURI : _tokenURI,
totalSupply : 0, // default to all available
totalAvailable : _totalAvailable,
active : _active
});
// Add to total available count
totalNumberAvailable = totalNumberAvailable.add(_totalAvailable);
// Update mappings
_updateArtistLookupData(_artistAccount, _editionNumber);
_updateEditionTypeLookupData(_editionType, _editionNumber);
emit EditionCreated(_editionNumber, _editionData, _editionType);
// Update the edition pointer if needs be
highestEditionNumber = _editionNumber;
return true;
}
function _updateEditionTypeLookupData(uint256 _editionType, uint256 _editionNumber) internal {
uint256 typeEditionIndex = editionTypeToEditionNumber[_editionType].length;
editionTypeToEditionNumber[_editionType].push(_editionNumber);
editionNumberToTypeIndex[_editionNumber] = typeEditionIndex;
}
function _updateArtistLookupData(address _artistAccount, uint256 _editionNumber) internal {
uint256 artistEditionIndex = artistToEditionNumbers[_artistAccount].length;
artistToEditionNumbers[_artistAccount].push(_editionNumber);
editionNumberToArtistIndex[_editionNumber] = artistEditionIndex;
}
/**
* @dev Public entry point for purchasing an edition
* @dev Reverts if edition is invalid
* @dev Reverts if payment not provided in full
* @dev Reverts if edition is sold out
* @dev Reverts if edition is not active or available
*/
function purchase(uint256 _editionNumber)
public
payable
returns (uint256) {
return purchaseTo(msg.sender, _editionNumber);
}
/**
* @dev Public entry point for purchasing an edition on behalf of someone else
* @dev Reverts if edition is invalid
* @dev Reverts if payment not provided in full
* @dev Reverts if edition is sold out
* @dev Reverts if edition is not active or available
*/
function purchaseTo(address _to, uint256 _editionNumber)
public
payable
whenNotPaused
onlyRealEdition(_editionNumber)
onlyActiveEdition(_editionNumber)
onlyAvailableEdition(_editionNumber)
onlyPurchaseDuringWindow(_editionNumber)
returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
require(msg.value >= _editionDetails.priceInWei, "Value must be greater than price of edition");
// Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
uint256 _tokenId = _nextTokenId(_editionNumber);
// Create the token
_mintToken(_to, _tokenId, _editionNumber, _editionDetails.tokenURI);
// Splice funds and handle commissions
_handleFunds(_editionNumber, _editionDetails.priceInWei, _editionDetails.artistAccount, _editionDetails.artistCommission);
// Broadcast purchase
emit Purchase(_tokenId, _editionNumber, _to, msg.value);
return _tokenId;
}
/**
* @dev Private (KO only) method for minting editions
* @dev Payment not needed for this method
*/
function mint(address _to, uint256 _editionNumber)
public
onlyIfMinter
onlyRealEdition(_editionNumber)
onlyAvailableEdition(_editionNumber)
returns (uint256) {
// Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
uint256 _tokenId = _nextTokenId(_editionNumber);
// Create the token
_mintToken(_to, _tokenId, _editionNumber, editionNumberToEditionDetails[_editionNumber].tokenURI);
// Create the token
return _tokenId;
}
/**
* @dev Private (KO only) method for under minting editions
* @dev Under minting allows for token IDs to be back filled if total supply is not set to zero by default
* @dev Payment not needed for this method
*/
function underMint(address _to, uint256 _editionNumber)
public
onlyIfUnderMinter
onlyRealEdition(_editionNumber)
returns (uint256) {
// Under mint token, meaning it takes one from the already sold version
uint256 _tokenId = _underMintNextTokenId(_editionNumber);
// If the next tokenId generate is more than the available number, abort as we have reached maximum under mint
if (_tokenId > _editionNumber.add(editionNumberToEditionDetails[_editionNumber].totalAvailable)) {
revert("Reached max tokenId, cannot under mint anymore");
}
// Create the token
_mintToken(_to, _tokenId, _editionNumber, editionNumberToEditionDetails[_editionNumber].tokenURI);
// Create the token
return _tokenId;
}
function _nextTokenId(uint256 _editionNumber) internal returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
// Bump number totalSupply
_editionDetails.totalSupply = _editionDetails.totalSupply.add(1);
// Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
return _editionDetails.editionNumber.add(_editionDetails.totalSupply);
}
function _underMintNextTokenId(uint256 _editionNumber) internal returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
// For old editions start the counter as edition + 1
uint256 _tokenId = _editionDetails.editionNumber.add(1);
// Work your way up until you find a free token based on the new _tokenIdd
while (exists(_tokenId)) {
_tokenId = _tokenId.add(1);
}
// Bump number totalSupply if we are now over minting new tokens
if (_tokenId > _editionDetails.editionNumber.add(_editionDetails.totalSupply)) {
_editionDetails.totalSupply = _editionDetails.totalSupply.add(1);
}
return _tokenId;
}
function _mintToken(address _to, uint256 _tokenId, uint256 _editionNumber, string _tokenURI) internal {
// Mint new base token
super._mint(_to, _tokenId);
super._setTokenURI(_tokenId, _tokenURI);
// Maintain mapping for tokenId to edition for lookup
tokenIdToEditionNumber[_tokenId] = _editionNumber;
// Get next insert position for edition to token Id mapping
uint256 currentIndexOfTokenId = editionNumberToTokenIds[_editionNumber].length;
// Maintain mapping of edition to token array for "edition minted tokens"
editionNumberToTokenIds[_editionNumber].push(_tokenId);
// Maintain a position index for the tokenId within the edition number mapping array, used for clean up token burn
editionNumberToTokenIdIndex[_tokenId] = currentIndexOfTokenId;
// Record sale volume
totalNumberMinted = totalNumberMinted.add(1);
// Emit minted event
emit Minted(_tokenId, _editionNumber, _to);
}
function _handleFunds(uint256 _editionNumber, uint256 _priceInWei, address _artistAccount, uint256 _artistCommission) internal {
// Extract the artists commission and send it
uint256 artistPayment = _priceInWei.div(100).mul(_artistCommission);
if (artistPayment > 0) {
_artistAccount.transfer(artistPayment);
}
// Load any commission overrides
CommissionSplit storage commission = editionNumberToOptionalCommissionSplit[_editionNumber];
// Apply optional commission structure
if (commission.rate > 0) {
uint256 rateSplit = _priceInWei.div(100).mul(commission.rate);
commission.recipient.transfer(rateSplit);
}
// Send remaining eth to KO
uint256 remainingCommission = msg.value.sub(artistPayment).sub(rateSplit);
faCommissionAccount.transfer(remainingCommission);
// Record wei sale value
totalPurchaseValueInWei = totalPurchaseValueInWei.add(msg.value);
}
/**
* @dev Private (KO only) method for burning tokens which have been created incorrectly
*/
function burn(uint256 _tokenId) public onlyIfFormosart {
// Clear from parents
super._burn(ownerOf(_tokenId), _tokenId);
// Get hold of the edition for cleanup
uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
// Delete token ID mapping
delete tokenIdToEditionNumber[_tokenId];
// Delete tokens associated to the edition - this will leave a gap in the array of zero
uint256[] storage tokenIdsForEdition = editionNumberToTokenIds[_editionNumber];
uint256 editionTokenIdIndex = editionNumberToTokenIdIndex[_tokenId];
delete tokenIdsForEdition[editionTokenIdIndex];
}
/**
* @dev An extension to the default ERC721 behaviour, derived from ERC-875.
* @dev Allowing for batch transfers from the sender, will fail if from does not own all the tokens
*/
function batchTransfer(address _to, uint256[] _tokenIds) public {
for (uint i = 0; i < _tokenIds.length; i++) {
safeTransferFrom(ownerOf(_tokenIds[i]), _to, _tokenIds[i]);
}
}
/**
* @dev An extension to the default ERC721 behaviour, derived from ERC-875.
* @dev Allowing for batch transfers from the provided address, will fail if from does not own all the tokens
*/
function batchTransferFrom(address _from, address _to, uint256[] _tokenIds) public {
for (uint i = 0; i < _tokenIds.length; i++) {
transferFrom(_from, _to, _tokenIds[i]);
}
}
//////////////////
// Base Updates //
//////////////////
function updateTokenBaseURI(string _newBaseURI)
external
onlyIfFormosart {
require(bytes(_newBaseURI).length != 0, "Base URI invalid");
tokenBaseURI = _newBaseURI;
}
function updateFaCommissionAccount(address _faCommissionAccount)
external
onlyIfFormosart {
require(_faCommissionAccount != address(0), "Invalid address");
faCommissionAccount = _faCommissionAccount;
}
/////////////////////
// Edition Updates //
/////////////////////
function updateEditionTokenURI(uint256 _editionNumber, string _uri)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].tokenURI = _uri;
}
function updatePriceInWei(uint256 _editionNumber, uint256 _priceInWei)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].priceInWei = _priceInWei;
}
function updateArtistCommission(uint256 _editionNumber, uint256 _rate)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].artistCommission = _rate;
}
function updateArtistsAccount(uint256 _editionNumber, address _artistAccount)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
EditionDetails storage _originalEditionDetails = editionNumberToEditionDetails[_editionNumber];
uint256 editionArtistIndex = editionNumberToArtistIndex[_editionNumber];
// Get list of editions old artist works with
uint256[] storage editionNumbersForArtist = artistToEditionNumbers[_originalEditionDetails.artistAccount];
// Remove edition from artists lists
delete editionNumbersForArtist[editionArtistIndex];
// Add new artists to the list
uint256 newArtistsEditionIndex = artistToEditionNumbers[_artistAccount].length;
artistToEditionNumbers[_artistAccount].push(_editionNumber);
editionNumberToArtistIndex[_editionNumber] = newArtistsEditionIndex;
// Update the edition
_originalEditionDetails.artistAccount = _artistAccount;
}
function updateEditionType(uint256 _editionNumber, uint256 _editionType)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
EditionDetails storage _originalEditionDetails = editionNumberToEditionDetails[_editionNumber];
// Get list of editions for old type
uint256[] storage editionNumbersForType = editionTypeToEditionNumber[_originalEditionDetails.editionType];
// Remove edition from old type list
uint256 editionTypeIndex = editionNumberToTypeIndex[_editionNumber];
delete editionNumbersForType[editionTypeIndex];
// Add new type to the list
uint256 newTypeEditionIndex = editionTypeToEditionNumber[_editionType].length;
editionTypeToEditionNumber[_editionType].push(_editionNumber);
editionNumberToTypeIndex[_editionNumber] = newTypeEditionIndex;
// Update the edition
_originalEditionDetails.editionType = _editionType;
}
function updateActive(uint256 _editionNumber, bool _active)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].active = _active;
}
function updateTotalSupply(uint256 _editionNumber, uint256 _totalSupply)
public
onlyIfFormosart
onlyRealEdition(_editionNumber) {
require(tokensOfEdition(_editionNumber).length <= _totalSupply, "Can not lower totalSupply to below the number of tokens already in existence");
editionNumberToEditionDetails[_editionNumber].totalSupply = _totalSupply;
}
function updateTotalAvailable(uint256 _editionNumber, uint256 _totalAvailable)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
require(_editionDetails.totalSupply <= _totalAvailable, "Unable to reduce available amount to the below the number totalSupply");
uint256 originalAvailability = _editionDetails.totalAvailable;
_editionDetails.totalAvailable = _totalAvailable;
totalNumberAvailable = totalNumberAvailable.sub(originalAvailability).add(_totalAvailable);
}
function updateStartDate(uint256 _editionNumber, uint256 _startDate)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].startDate = _startDate;
}
function updateEndDate(uint256 _editionNumber, uint256 _endDate)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].endDate = _endDate;
}
function updateOptionalCommission(uint256 _editionNumber, uint256 _rate, address _recipient)
external
onlyIfFormosart
onlyRealEdition(_editionNumber) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
uint256 artistCommission = _editionDetails.artistCommission;
if (_rate > 0) {
require(_recipient != address(0), "Setting a rate must be accompanied by a valid address");
}
require(artistCommission.add(_rate) <= 100, "Cant set commission greater than 100%");
editionNumberToOptionalCommissionSplit[_editionNumber] = CommissionSplit({rate : _rate, recipient : _recipient});
}
///////////////////
// Token Updates //
///////////////////
function setTokenURI(uint256 _tokenId, string _uri)
external
onlyIfFormosart
onlyValidTokenId(_tokenId) {
_setTokenURI(_tokenId, _uri);
}
///////////////////
// Query Methods //
///////////////////
/**
* @dev Lookup the edition of the provided token ID
* @dev Returns 0 if not valid
*/
function editionOfTokenId(uint256 _tokenId) public view returns (uint256 _editionNumber) {
return tokenIdToEditionNumber[_tokenId];
}
/**
* @dev Lookup all editions added for the given edition type
* @dev Returns array of edition numbers, any zero edition ids can be ignore/stripped
*/
function editionsOfType(uint256 _type) public view returns (uint256[] _editionNumbers) {
return editionTypeToEditionNumber[_type];
}
/**
* @dev Lookup all editions for the given artist account
* @dev Returns empty list if not valid
*/
function artistsEditions(address _artistsAccount) public view returns (uint256[] _editionNumbers) {
return artistToEditionNumbers[_artistsAccount];
}
/**
* @dev Lookup all tokens minted for the given edition number
* @dev Returns array of token IDs, any zero edition ids can be ignore/stripped
*/
function tokensOfEdition(uint256 _editionNumber) public view returns (uint256[] _tokenIds) {
return editionNumberToTokenIds[_editionNumber];
}
/**
* @dev Lookup all owned tokens for the provided address
* @dev Returns array of token IDs
*/
function tokensOf(address _owner) public view returns (uint256[] _tokenIds) {
return ownedTokens[_owner];
}
/**
* @dev Checks to see if the edition exists, assumes edition of zero is invalid
*/
function editionExists(uint256 _editionNumber) public view returns (bool) {
if (_editionNumber == 0) {
return false;
}
EditionDetails storage editionNumber = editionNumberToEditionDetails[_editionNumber];
return editionNumber.editionNumber == _editionNumber;
}
/**
* @dev Lookup any optional commission split set for the edition
* @dev Both values will be zero if not present
*/
function editionOptionalCommission(uint256 _editionNumber) public view returns (uint256 _rate, address _recipient) {
CommissionSplit storage commission = editionNumberToOptionalCommissionSplit[_editionNumber];
return (commission.rate, commission.recipient);
}
/**
* @dev Main entry point for looking up edition config/metadata
* @dev Reverts if invalid edition number provided
*/
function detailsOfEdition(uint256 editionNumber)
public view
onlyRealEdition(editionNumber)
returns (
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalSupply,
uint256 _totalAvailable,
bool _active
) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[editionNumber];
return (
_editionDetails.editionData,
_editionDetails.editionType,
_editionDetails.startDate,
_editionDetails.endDate,
_editionDetails.artistAccount,
_editionDetails.artistCommission,
_editionDetails.priceInWei,
Strings.strConcat(tokenBaseURI, _editionDetails.tokenURI),
_editionDetails.totalSupply,
_editionDetails.totalAvailable,
_editionDetails.active
);
}
/**
* @dev Lookup a tokens common identifying characteristics
* @dev Reverts if invalid token ID provided
*/
function tokenData(uint256 _tokenId)
public view
onlyValidTokenId(_tokenId)
returns (
uint256 _editionNumber,
uint256 _editionType,
bytes32 _editionData,
string _tokenURI,
address _owner
) {
uint256 editionNumber = tokenIdToEditionNumber[_tokenId];
EditionDetails storage editionDetails = editionNumberToEditionDetails[editionNumber];
return (
editionNumber,
editionDetails.editionType,
editionDetails.editionData,
tokenURI(_tokenId),
ownerOf(_tokenId)
);
}
function tokenURI(uint256 _tokenId) public view onlyValidTokenId(_tokenId) returns (string) {
return Strings.strConcat(tokenBaseURI, tokenURIs[_tokenId]);
}
function tokenURISafe(uint256 _tokenId) public view returns (string) {
return Strings.strConcat(tokenBaseURI, tokenURIs[_tokenId]);
}
function purchaseDatesToken(uint256 _tokenId) public view returns (uint256 _startDate, uint256 _endDate) {
uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
return purchaseDatesEdition(_editionNumber);
}
function priceInWeiToken(uint256 _tokenId) public view returns (uint256 _priceInWei) {
uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
return priceInWeiEdition(_editionNumber);
}
//////////////////////////
// Edition config query //
//////////////////////////
function editionData(uint256 _editionNumber) public view returns (bytes32) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.editionData;
}
function editionType(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.editionType;
}
function purchaseDatesEdition(uint256 _editionNumber) public view returns (uint256 _startDate, uint256 _endDate) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return (
_editionDetails.startDate,
_editionDetails.endDate
);
}
function artistCommission(uint256 _editionNumber) public view returns (address _artistAccount, uint256 _artistCommission) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return (
_editionDetails.artistAccount,
_editionDetails.artistCommission
);
}
function priceInWeiEdition(uint256 _editionNumber) public view returns (uint256 _priceInWei) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.priceInWei;
}
function tokenURIEdition(uint256 _editionNumber) public view returns (string) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return Strings.strConcat(tokenBaseURI, _editionDetails.tokenURI);
}
function editionActive(uint256 _editionNumber) public view returns (bool) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.active;
}
function totalRemaining(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.totalAvailable.sub(_editionDetails.totalSupply);
}
function totalAvailableEdition(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.totalAvailable;
}
function totalSupplyEdition(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.totalSupply;
}
}
// contracts/Creatures.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
pragma abicoder v2; // required to accept structs as function parameters
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
contract FormosartDigitalAssetV3 is ERC721, ERC721URIStorage, ERC721Enumerable, ERC721Burnable, EIP712, Ownable, AccessControl {
using SafeMath for uint256;
using Counters for Counters.Counter;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
string private constant SIGNING_DOMAIN = "FADA";
string private constant SIGNATURE_VERSION = "1";
Counters.Counter private _tokenIdTracker;
// total wei been processed through the contract
uint256 public totalPurchaseValueInWei;
// number of assets minted of any type
uint256 public totalNumberMinted;
// string private baseTokenURI;
address payable recipient;
event Purchase(address indexed to, uint256 tokenIds);
event Mint(address indexed to, uint256 tokenId);
constructor(
string memory _contractName,
string memory _tokenSymbol
) ERC721(_contractName, _tokenSymbol)
EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(MINTER_ROLE, msg.sender);
_setupRole(PAUSER_ROLE, msg.sender);
recipient =payable (msg.sender);
// baseTokenURI = _uri;
}
/// @notice Represents an un-minted NFT, which has not yet been recorded into the blockchain. A signed voucher can be redeemed for a real NFT using the redeem function.
struct NFTVDigitalAsset {
/// @notice The id of the token to be redeemed. Must be unique - if another token with this ID already exists, the redeem function will revert.
uint256 tokenId;
/// @notice The minimum price (in wei) that the NFT creator is willing to accept for the initial sale of this NFT.
uint256 minPrice;
/// @notice the EIP-712 signature of all other fields in the NFTVoucher struct. For a voucher to be valid, it must be signed by an account with the MINTER_ROLE.
bytes signature;
}
function mint(address _to, string memory _tokenUri) public {
require(hasRole(MINTER_ROLE, _msgSender()), "Must have minter role to mint");
_mint(_to, _tokenIdTracker.current());
_setTokenURI(_tokenIdTracker.current(), _tokenUri);
emit Mint(msg.sender, _tokenIdTracker.current());
_tokenIdTracker.increment();
}
function setTokenURI(uint256 _tokenId, string calldata _uri) public onlyOwner(){
_setTokenURI(_tokenId, _uri);
}
function setRecipient(address _recipient) public onlyOwner(){
recipient = payable (_recipient);
}
// function _baseURI() internal view override returns (string memory) {
// return baseTokenURI;
// }
// function setBaseURI(string calldata uri) public onlyOwner() {
// baseTokenURI = uri;
// }
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(AccessControl, ERC721, ERC721Enumerable)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function getRecipient() public view onlyOwner returns(address) {
return recipient;
}
function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
super._burn(tokenId);
}
function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
return super.tokenURI(tokenId);
}
function purchase( string memory _tokenUri, uint256 _artistCommission, NFTVDigitalAsset calldata asset)
public
payable
returns (bool) {
require(msg.value > 0, "Number of tokens can not be less than or equal to 0");
require(bytes(_tokenUri).length > 0,"tokenUri is required");
// make sure that the redeemer is paying enough to cover the buyer's cost
require(msg.value >= asset.minPrice, "Insufficient funds to purchase");
address signer = _verify(asset);
require(signer != address(0),"Signature invalid");
// first assign the token to the signer, to establish provenance on-chain
_mint(signer, asset.tokenId);
_setTokenURI(asset.tokenId, _tokenUri);
// transfer the token to the redeemer
_transfer(signer, msg.sender, asset.tokenId);
uint256 _priceInWei = msg.value;
// Extract the artists commission and send it
uint256 artistPayment = _priceInWei.div(100).mul(_artistCommission);
if (artistPayment > 0) {
payable(signer).transfer(artistPayment);
}
// Send remaining eth to FA
uint256 remainingCommission = msg.value.sub(artistPayment);
recipient.transfer(remainingCommission);
// Record wei sale value
totalPurchaseValueInWei = totalPurchaseValueInWei.add(msg.value);
totalNumberMinted = totalNumberMinted.add(1);
emit Purchase(msg.sender, asset.tokenId);
return true;
}
/// @notice Returns a hash of the given NFTVoucher, prepared using EIP712 typed data hashing rules.
/// @param voucher An NFTVoucher to hash.
function _hash(NFTVDigitalAsset calldata voucher) internal view returns (bytes32) {
return _hashTypedDataV4(keccak256(abi.encode(
keccak256("NFTVoucher(uint256 tokenId,uint256 minPrice)"),
voucher.tokenId,
voucher.minPrice
)));
}
/// @notice Returns the chain id of the current blockchain.
/// @dev This is used to workaround an issue with ganache returning different values from the on-chain chainid() function and
/// the eth_chainId RPC method. See https://github.com/protocol/nft-website/issues/121 for context.
function getChainID() external view returns (uint256) {
uint256 id;
assembly {
id := chainid()
}
return id;
}
/// @notice Verifies the signature for a given NFTVoucher, returning the address of the signer.
/// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs.
/// @param voucher An NFTVoucher describing an unminted NFT.
function _verify(NFTVDigitalAsset calldata voucher) internal view returns ( address) {
bytes32 digest = _hash(voucher);
return ECDSA.recover(digest, voucher.signature);
}
}
// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC777/ERC777.sol";
contract GLDToken is ERC777 {
constructor(uint256 initialSupply, address[] memory defaultOperators)
ERC777("Gold", "GLD", defaultOperators)
{
_mint(msg.sender, initialSupply, "", "");
}
}
/**
*Submitted for verification at Etherscan.io on 2018-09-04
*/
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/access/rbac/Roles.sol
/**
* @title Roles
* @author Francisco Giordano (@frangio)
* @dev Library for managing addresses assigned to a Role.
* See RBAC.sol for example usage.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an address access to this role
*/
function add(Role storage _role, address _addr)
internal
{
_role.bearer[_addr] = true;
}
/**
* @dev remove an address' access to this role
*/
function remove(Role storage _role, address _addr)
internal
{
_role.bearer[_addr] = false;
}
/**
* @dev check if an address has this role
* // reverts
*/
function check(Role storage _role, address _addr)
internal
view
{
require(has(_role, _addr));
}
/**
* @dev check if an address has this role
* @return bool
*/
function has(Role storage _role, address _addr)
internal
view
returns (bool)
{
return _role.bearer[_addr];
}
}
// File: contracts/v2/AccessControl.sol
/**
* @title Based on OpenZeppelin Whitelist & RBCA contracts
* @dev The AccessControl contract provides different access for addresses, and provides basic authorization control functions.
*/
contract AccessControl {
using Roles for Roles.Role;
uint8 public constant ROLE_KNOWN_ORIGIN = 1;
uint8 public constant ROLE_MINTER = 2;
uint8 public constant ROLE_UNDER_MINTER = 3;
event RoleAdded(address indexed operator, uint8 role);
event RoleRemoved(address indexed operator, uint8 role);
address public owner;
mapping(uint8 => Roles.Role) private roles;
modifier onlyIfKnownOrigin() {
require(msg.sender == owner || hasRole(msg.sender, ROLE_KNOWN_ORIGIN));
_;
}
modifier onlyIfMinter() {
require(msg.sender == owner || hasRole(msg.sender, ROLE_KNOWN_ORIGIN) || hasRole(msg.sender, ROLE_MINTER));
_;
}
modifier onlyIfUnderMinter() {
require(msg.sender == owner || hasRole(msg.sender, ROLE_KNOWN_ORIGIN) || hasRole(msg.sender, ROLE_UNDER_MINTER));
_;
}
constructor() public {
owner = msg.sender;
}
////////////////////////////////////
// Whitelist/RBCA Derived Methods //
////////////////////////////////////
function addAddressToAccessControl(address _operator, uint8 _role)
public
onlyIfKnownOrigin
{
roles[_role].add(_operator);
emit RoleAdded(_operator, _role);
}
function removeAddressFromAccessControl(address _operator, uint8 _role)
public
onlyIfKnownOrigin
{
roles[_role].remove(_operator);
emit RoleRemoved(_operator, _role);
}
function checkRole(address _operator, uint8 _role)
public
view
{
roles[_role].check(_operator);
}
function hasRole(address _operator, uint8 _role)
public
view
returns (bool)
{
return roles[_role].has(_operator);
}
}
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
/**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipRenounced(owner);
owner = address(0);
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function transferOwnership(address _newOwner) public onlyOwner {
_transferOwnership(_newOwner);
}
/**
* @dev Transfers control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function _transferOwnership(address _newOwner) internal {
require(_newOwner != address(0));
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
}
// File: openzeppelin-solidity/contracts/ownership/HasNoEther.sol
/**
* @title Contracts that should not own Ether
* @author Remco Bloemen <remco@2π.com>
* @dev This tries to block incoming ether to prevent accidental loss of Ether. Should Ether end up
* in the contract, it will allow the owner to reclaim this Ether.
* @notice Ether can still be sent to this contract by:
* calling functions labeled `payable`
* `selfdestruct(contract_address)`
* mining directly to the contract address
*/
contract HasNoEther is Ownable {
/**
* @dev Constructor that rejects incoming Ether
* The `payable` flag is added so we can access `msg.value` without compiler warning. If we
* leave out payable, then Solidity will allow inheriting contracts to implement a payable
* constructor. By doing it this way we prevent a payable constructor from working. Alternatively
* we could use assembly to access msg.value.
*/
constructor() public payable {
require(msg.value == 0);
}
/**
* @dev Disallows direct send by setting a default function without the `payable` flag.
*/
function() external {
}
/**
* @dev Transfer all Ether held by the contract to the owner.
*/
function reclaimEther() external onlyOwner {
owner.transfer(address(this).balance);
}
}
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (_a == 0) {
return 0;
}
c = _a * _b;
assert(c / _a == _b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
// assert(_b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = _a / _b;
// assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold
return _a / _b;
}
/**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
assert(_b <= _a);
return _a - _b;
}
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
c = _a + _b;
assert(c >= _a);
return c;
}
}
// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol
/**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*/
modifier whenPaused() {
require(paused);
_;
}
/**
* @dev called by the owner to pause, triggers stopped state
*/
function pause() public onlyOwner whenNotPaused {
paused = true;
emit Pause();
}
/**
* @dev called by the owner to unpause, returns to normal state
*/
function unpause() public onlyOwner whenPaused {
paused = false;
emit Unpause();
}
}
// File: openzeppelin-solidity/contracts/introspection/ERC165.sol
/**
* @title ERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface ERC165 {
/**
* @notice Query if a contract implements an interface
* @param _interfaceId The interface identifier, as specified in ERC-165
* @dev Interface identification is specified in ERC-165. This function
* uses less than 30,000 gas.
*/
function supportsInterface(bytes4 _interfaceId)
external
view
returns (bool);
}
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol
/**
* @title ERC721 Non-Fungible Token Standard basic interface
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Basic is ERC165 {
bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd;
/*
* 0x80ac58cd ===
* bytes4(keccak256('balanceOf(address)')) ^
* bytes4(keccak256('ownerOf(uint256)')) ^
* bytes4(keccak256('approve(address,uint256)')) ^
* bytes4(keccak256('getApproved(uint256)')) ^
* bytes4(keccak256('setApprovalForAll(address,bool)')) ^
* bytes4(keccak256('isApprovedForAll(address,address)')) ^
* bytes4(keccak256('transferFrom(address,address,uint256)')) ^
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
*/
bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79;
/*
* 0x4f558e79 ===
* bytes4(keccak256('exists(uint256)'))
*/
bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63;
/**
* 0x780e9d63 ===
* bytes4(keccak256('totalSupply()')) ^
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
* bytes4(keccak256('tokenByIndex(uint256)'))
*/
bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f;
/**
* 0x5b5e139f ===
* bytes4(keccak256('name()')) ^
* bytes4(keccak256('symbol()')) ^
* bytes4(keccak256('tokenURI(uint256)'))
*/
event Transfer(
address indexed _from,
address indexed _to,
uint256 indexed _tokenId
);
event Approval(
address indexed _owner,
address indexed _approved,
uint256 indexed _tokenId
);
event ApprovalForAll(
address indexed _owner,
address indexed _operator,
bool _approved
);
function balanceOf(address _owner) public view returns (uint256 _balance);
function ownerOf(uint256 _tokenId) public view returns (address _owner);
function exists(uint256 _tokenId) public view returns (bool _exists);
function approve(address _to, uint256 _tokenId) public;
function getApproved(uint256 _tokenId)
public view returns (address _operator);
function setApprovalForAll(address _operator, bool _approved) public;
function isApprovedForAll(address _owner, address _operator)
public view returns (bool);
function transferFrom(address _from, address _to, uint256 _tokenId) public;
function safeTransferFrom(address _from, address _to, uint256 _tokenId)
public;
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
public;
}
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Enumerable is ERC721Basic {
function totalSupply() public view returns (uint256);
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
public
view
returns (uint256 _tokenId);
function tokenByIndex(uint256 _index) public view returns (uint256);
}
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Metadata is ERC721Basic {
function name() external view returns (string _name);
function symbol() external view returns (string _symbol);
function tokenURI(uint256 _tokenId) public view returns (string);
}
/**
* @title ERC-721 Non-Fungible Token Standard, full implementation interface
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata {
}
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
contract ERC721Receiver {
/**
* @dev Magic value to be returned upon successful reception of an NFT
* Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`,
* which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
*/
bytes4 internal constant ERC721_RECEIVED = 0x150b7a02;
/**
* @notice Handle the receipt of an NFT
* @dev The ERC721 smart contract calls this function on the recipient
* after a `safetransfer`. This function MAY throw to revert and reject the
* transfer. Return of other than the magic value MUST result in the
* transaction being reverted.
* Note: the contract address is always the message sender.
* @param _operator The address which called `safeTransferFrom` function
* @param _from The address which previously owned the token
* @param _tokenId The NFT identifier which is being transferred
* @param _data Additional data with no specified format
* @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
*/
function onERC721Received(
address _operator,
address _from,
uint256 _tokenId,
bytes _data
)
public
returns(bytes4);
}
// File: openzeppelin-solidity/contracts/AddressUtils.sol
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
/**
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
* as the code is not actually created until after the constructor finishes.
* @param _addr address to check
* @return whether the target address is a contract
*/
function isContract(address _addr) internal view returns (bool) {
uint256 size;
// XXX Currently there is no better way to check if there is a contract in an address
// than to check the size of the code at that address.
// See https://ethereum.stackexchange.com/a/14016/36603
// for more details about how this works.
// TODO Check this again before the Serenity release, because all addresses will be
// contracts then.
// solium-disable-next-line security/no-inline-assembly
assembly { size := extcodesize(_addr) }
return size > 0;
}
}
// File: openzeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol
/**
* @title SupportsInterfaceWithLookup
* @author Matt Condon (@shrugs)
* @dev Implements ERC165 using a lookup table.
*/
contract SupportsInterfaceWithLookup is ERC165 {
bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7;
/**
* 0x01ffc9a7 ===
* bytes4(keccak256('supportsInterface(bytes4)'))
*/
/**
* @dev a mapping of interface id to whether or not it's supported
*/
mapping(bytes4 => bool) internal supportedInterfaces;
/**
* @dev A contract implementing SupportsInterfaceWithLookup
* implement ERC165 itself
*/
constructor()
public
{
_registerInterface(InterfaceId_ERC165);
}
/**
* @dev implement supportsInterface(bytes4) using a lookup table
*/
function supportsInterface(bytes4 _interfaceId)
external
view
returns (bool)
{
return supportedInterfaces[_interfaceId];
}
/**
* @dev private method for registering an interface
*/
function _registerInterface(bytes4 _interfaceId)
internal
{
require(_interfaceId != 0xffffffff);
supportedInterfaces[_interfaceId] = true;
}
}
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
using SafeMath for uint256;
using AddressUtils for address;
// Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
// which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
bytes4 private constant ERC721_RECEIVED = 0x150b7a02;
// Mapping from token ID to owner
mapping (uint256 => address) internal tokenOwner;
// Mapping from token ID to approved address
mapping (uint256 => address) internal tokenApprovals;
// Mapping from owner to number of owned token
mapping (address => uint256) internal ownedTokensCount;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) internal operatorApprovals;
constructor()
public
{
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(InterfaceId_ERC721);
_registerInterface(InterfaceId_ERC721Exists);
}
/**
* @dev Gets the balance of the specified address
* @param _owner address to query the balance of
* @return uint256 representing the amount owned by the passed address
*/
function balanceOf(address _owner) public view returns (uint256) {
require(_owner != address(0));
return ownedTokensCount[_owner];
}
/**
* @dev Gets the owner of the specified token ID
* @param _tokenId uint256 ID of the token to query the owner of
* @return owner address currently marked as the owner of the given token ID
*/
function ownerOf(uint256 _tokenId) public view returns (address) {
address owner = tokenOwner[_tokenId];
require(owner != address(0));
return owner;
}
/**
* @dev Returns whether the specified token exists
* @param _tokenId uint256 ID of the token to query the existence of
* @return whether the token exists
*/
function exists(uint256 _tokenId) public view returns (bool) {
address owner = tokenOwner[_tokenId];
return owner != address(0);
}
/**
* @dev Approves another address to transfer the given token ID
* The zero address indicates there is no approved address.
* There can only be one approved address per token at a given time.
* Can only be called by the token owner or an approved operator.
* @param _to address to be approved for the given token ID
* @param _tokenId uint256 ID of the token to be approved
*/
function approve(address _to, uint256 _tokenId) public {
address owner = ownerOf(_tokenId);
require(_to != owner);
require(msg.sender == owner || isApprovedForAll(owner, msg.sender));
tokenApprovals[_tokenId] = _to;
emit Approval(owner, _to, _tokenId);
}
/**
* @dev Gets the approved address for a token ID, or zero if no address set
* @param _tokenId uint256 ID of the token to query the approval of
* @return address currently approved for the given token ID
*/
function getApproved(uint256 _tokenId) public view returns (address) {
return tokenApprovals[_tokenId];
}
/**
* @dev Sets or unsets the approval of a given operator
* An operator is allowed to transfer all tokens of the sender on their behalf
* @param _to operator address to set the approval
* @param _approved representing the status of the approval to be set
*/
function setApprovalForAll(address _to, bool _approved) public {
require(_to != msg.sender);
operatorApprovals[msg.sender][_to] = _approved;
emit ApprovalForAll(msg.sender, _to, _approved);
}
/**
* @dev Tells whether an operator is approved by a given owner
* @param _owner owner address which you want to query the approval of
* @param _operator operator address which you want to query the approval of
* @return bool whether the given operator is approved by the given owner
*/
function isApprovedForAll(
address _owner,
address _operator
)
public
view
returns (bool)
{
return operatorApprovals[_owner][_operator];
}
/**
* @dev Transfers the ownership of a given token ID to another address
* Usage of this method is discouraged, use `safeTransferFrom` whenever possible
* Requires the msg sender to be the owner, approved, or operator
* @param _from current owner of the token
* @param _to address to receive the ownership of the given token ID
* @param _tokenId uint256 ID of the token to be transferred
*/
function transferFrom(
address _from,
address _to,
uint256 _tokenId
)
public
{
require(isApprovedOrOwner(msg.sender, _tokenId));
require(_from != address(0));
require(_to != address(0));
clearApproval(_from, _tokenId);
removeTokenFrom(_from, _tokenId);
addTokenTo(_to, _tokenId);
emit Transfer(_from, _to, _tokenId);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
*
* Requires the msg sender to be the owner, approved, or operator
* @param _from current owner of the token
* @param _to address to receive the ownership of the given token ID
* @param _tokenId uint256 ID of the token to be transferred
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId
)
public
{
// solium-disable-next-line arg-overflow
safeTransferFrom(_from, _to, _tokenId, "");
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the msg sender to be the owner, approved, or operator
* @param _from current owner of the token
* @param _to address to receive the ownership of the given token ID
* @param _tokenId uint256 ID of the token to be transferred
* @param _data bytes data to send along with a safe transfer check
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
public
{
transferFrom(_from, _to, _tokenId);
// solium-disable-next-line arg-overflow
require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data));
}
/**
* @dev Returns whether the given spender can transfer a given token ID
* @param _spender address of the spender to query
* @param _tokenId uint256 ID of the token to be transferred
* @return bool whether the msg.sender is approved for the given token ID,
* is an operator of the owner, or is the owner of the token
*/
function isApprovedOrOwner(
address _spender,
uint256 _tokenId
)
internal
view
returns (bool)
{
address owner = ownerOf(_tokenId);
// Disable solium check because of
// https://github.com/duaraghav8/Solium/issues/175
// solium-disable-next-line operator-whitespace
return (
_spender == owner ||
getApproved(_tokenId) == _spender ||
isApprovedForAll(owner, _spender)
);
}
/**
* @dev Internal function to mint a new token
* Reverts if the given token ID already exists
* @param _to The address that will own the minted token
* @param _tokenId uint256 ID of the token to be minted by the msg.sender
*/
function _mint(address _to, uint256 _tokenId) internal {
require(_to != address(0));
addTokenTo(_to, _tokenId);
emit Transfer(address(0), _to, _tokenId);
}
/**
* @dev Internal function to burn a specific token
* Reverts if the token does not exist
* @param _tokenId uint256 ID of the token being burned by the msg.sender
*/
function _burn(address _owner, uint256 _tokenId) internal {
clearApproval(_owner, _tokenId);
removeTokenFrom(_owner, _tokenId);
emit Transfer(_owner, address(0), _tokenId);
}
/**
* @dev Internal function to clear current approval of a given token ID
* Reverts if the given address is not indeed the owner of the token
* @param _owner owner of the token
* @param _tokenId uint256 ID of the token to be transferred
*/
function clearApproval(address _owner, uint256 _tokenId) internal {
require(ownerOf(_tokenId) == _owner);
if (tokenApprovals[_tokenId] != address(0)) {
tokenApprovals[_tokenId] = address(0);
}
}
/**
* @dev Internal function to add a token ID to the list of a given address
* @param _to address representing the new owner of the given token ID
* @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function addTokenTo(address _to, uint256 _tokenId) internal {
require(tokenOwner[_tokenId] == address(0));
tokenOwner[_tokenId] = _to;
ownedTokensCount[_to] = ownedTokensCount[_to].add(1);
}
/**
* @dev Internal function to remove a token ID from the list of a given address
* @param _from address representing the previous owner of the given token ID
* @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function removeTokenFrom(address _from, uint256 _tokenId) internal {
require(ownerOf(_tokenId) == _from);
ownedTokensCount[_from] = ownedTokensCount[_from].sub(1);
tokenOwner[_tokenId] = address(0);
}
/**
* @dev Internal function to invoke `onERC721Received` on a target address
* The call is not executed if the target address is not a contract
* @param _from address representing the previous owner of the given token ID
* @param _to target address that will receive the tokens
* @param _tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return whether the call correctly returned the expected magic value
*/
function checkAndCallSafeTransfer(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
internal
returns (bool)
{
if (!_to.isContract()) {
return true;
}
bytes4 retval = ERC721Receiver(_to).onERC721Received(
msg.sender, _from, _tokenId, _data);
return (retval == ERC721_RECEIVED);
}
}
// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol
/**
* @title Full ERC721 Token
* This implementation includes all the required and some optional functionality of the ERC721 standard
* Moreover, it includes approve all functionality using operator terminology
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 {
// Token name
string internal name_;
// Token symbol
string internal symbol_;
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) internal ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) internal ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] internal allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) internal allTokensIndex;
// Optional mapping for token URIs
mapping(uint256 => string) internal tokenURIs;
/**
* @dev Constructor function
*/
constructor(string _name, string _symbol) public {
name_ = _name;
symbol_ = _symbol;
// register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(InterfaceId_ERC721Enumerable);
_registerInterface(InterfaceId_ERC721Metadata);
}
/**
* @dev Gets the token name
* @return string representing the token name
*/
function name() external view returns (string) {
return name_;
}
/**
* @dev Gets the token symbol
* @return string representing the token symbol
*/
function symbol() external view returns (string) {
return symbol_;
}
/**
* @dev Returns an URI for a given token ID
* Throws if the token ID does not exist. May return an empty string.
* @param _tokenId uint256 ID of the token to query
*/
function tokenURI(uint256 _tokenId) public view returns (string) {
require(exists(_tokenId));
return tokenURIs[_tokenId];
}
/**
* @dev Gets the token ID at a given index of the tokens list of the requested owner
* @param _owner address owning the tokens list to be accessed
* @param _index uint256 representing the index to be accessed of the requested tokens list
* @return uint256 token ID at the given index of the tokens list owned by the requested address
*/
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
public
view
returns (uint256)
{
require(_index < balanceOf(_owner));
return ownedTokens[_owner][_index];
}
/**
* @dev Gets the total amount of tokens stored by the contract
* @return uint256 representing the total amount of tokens
*/
function totalSupply() public view returns (uint256) {
return allTokens.length;
}
/**
* @dev Gets the token ID at a given index of all the tokens in this contract
* Reverts if the index is greater or equal to the total number of tokens
* @param _index uint256 representing the index to be accessed of the tokens list
* @return uint256 token ID at the given index of the tokens list
*/
function tokenByIndex(uint256 _index) public view returns (uint256) {
require(_index < totalSupply());
return allTokens[_index];
}
/**
* @dev Internal function to set the token URI for a given token
* Reverts if the token ID does not exist
* @param _tokenId uint256 ID of the token to set its URI
* @param _uri string URI to assign
*/
function _setTokenURI(uint256 _tokenId, string _uri) internal {
require(exists(_tokenId));
tokenURIs[_tokenId] = _uri;
}
/**
* @dev Internal function to add a token ID to the list of a given address
* @param _to address representing the new owner of the given token ID
* @param _tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function addTokenTo(address _to, uint256 _tokenId) internal {
super.addTokenTo(_to, _tokenId);
uint256 length = ownedTokens[_to].length;
ownedTokens[_to].push(_tokenId);
ownedTokensIndex[_tokenId] = length;
}
/**
* @dev Internal function to remove a token ID from the list of a given address
* @param _from address representing the previous owner of the given token ID
* @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function removeTokenFrom(address _from, uint256 _tokenId) internal {
super.removeTokenFrom(_from, _tokenId);
// To prevent a gap in the array, we store the last token in the index of the token to delete, and
// then delete the last slot.
uint256 tokenIndex = ownedTokensIndex[_tokenId];
uint256 lastTokenIndex = ownedTokens[_from].length.sub(1);
uint256 lastToken = ownedTokens[_from][lastTokenIndex];
ownedTokens[_from][tokenIndex] = lastToken;
// This also deletes the contents at the last position of the array
ownedTokens[_from].length--;
// Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to
// be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping
// the lastToken to the first position, and then dropping the element placed in the last position of the list
ownedTokensIndex[_tokenId] = 0;
ownedTokensIndex[lastToken] = tokenIndex;
}
/**
* @dev Internal function to mint a new token
* Reverts if the given token ID already exists
* @param _to address the beneficiary that will own the minted token
* @param _tokenId uint256 ID of the token to be minted by the msg.sender
*/
function _mint(address _to, uint256 _tokenId) internal {
super._mint(_to, _tokenId);
allTokensIndex[_tokenId] = allTokens.length;
allTokens.push(_tokenId);
}
/**
* @dev Internal function to burn a specific token
* Reverts if the token does not exist
* @param _owner owner of the token to burn
* @param _tokenId uint256 ID of the token being burned by the msg.sender
*/
function _burn(address _owner, uint256 _tokenId) internal {
super._burn(_owner, _tokenId);
// Clear metadata (if any)
if (bytes(tokenURIs[_tokenId]).length != 0) {
delete tokenURIs[_tokenId];
}
// Reorg all tokens array
uint256 tokenIndex = allTokensIndex[_tokenId];
uint256 lastTokenIndex = allTokens.length.sub(1);
uint256 lastToken = allTokens[lastTokenIndex];
allTokens[tokenIndex] = lastToken;
allTokens[lastTokenIndex] = 0;
allTokens.length--;
allTokensIndex[_tokenId] = 0;
allTokensIndex[lastToken] = tokenIndex;
}
}
// File: contracts/v2/Strings.sol
library Strings {
// via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
function strConcat(string _a, string _b, string _c, string _d, string _e) internal pure returns (string) {
bytes memory _ba = bytes(_a);
bytes memory _bb = bytes(_b);
bytes memory _bc = bytes(_c);
bytes memory _bd = bytes(_d);
bytes memory _be = bytes(_e);
string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
bytes memory babcde = bytes(abcde);
uint k = 0;
for (uint i = 0; i < _ba.length; i++) babcde[k++] = _ba[i];
for (i = 0; i < _bb.length; i++) babcde[k++] = _bb[i];
for (i = 0; i < _bc.length; i++) babcde[k++] = _bc[i];
for (i = 0; i < _bd.length; i++) babcde[k++] = _bd[i];
for (i = 0; i < _be.length; i++) babcde[k++] = _be[i];
return string(babcde);
}
function strConcat(string _a, string _b) internal pure returns (string) {
return strConcat(_a, _b, "", "", "");
}
}
// File: contracts/v2/KnownOriginDigitalAssetV2.sol
// allows for multi-address access controls to different functions
// Prevents stuck ether
// For safe maths operations
// Pause purchasing only in case of emergency/migration
// ERC721
// Utils only
/**
* @title KnownOriginDigitalAsset - V2
*
* http://www.knownorigin.io/
*
* ERC721 compliant digital assets for real-world artwork.
*
* Base NFT Issuance Contract
*
* BE ORIGINAL. BUY ORIGINAL.
*
*/
contract KnownOriginDigitalAssetV2 is
ERC721Token,
AccessControl,
HasNoEther,
Pausable
{
using SafeMath for uint256;
////////////
// Events //
////////////
// Emitted on purchases from within this contract
event Purchase(
uint256 indexed _tokenId,
uint256 indexed _editionNumber,
address indexed _buyer,
uint256 _priceInWei
);
// Emitted on every mint
event Minted(
uint256 indexed _tokenId,
uint256 indexed _editionNumber,
address indexed _buyer
);
// Emitted on every edition created
event EditionCreated(
uint256 indexed _editionNumber,
bytes32 indexed _editionData,
uint256 indexed _editionType
);
////////////////
// Properties //
////////////////
uint256 constant internal MAX_UINT32 = ~uint32(0);
string public tokenBaseURI = "https://ipfs.infura.io/ipfs/";
// simple counter to keep track of the highest edition number used
uint256 public highestEditionNumber;
// total wei been processed through the contract
uint256 public totalPurchaseValueInWei;
// number of assets minted of any type
uint256 public totalNumberMinted;
// number of assets available of any type
uint256 public totalNumberAvailable;
// the KO account which can receive commission
address public koCommissionAccount;
// Optional commission split can be defined per edition
mapping(uint256 => CommissionSplit) editionNumberToOptionalCommissionSplit;
// Simple structure providing an optional commission split per edition purchase
struct CommissionSplit {
uint256 rate;
address recipient;
}
// Object for edition details
struct EditionDetails {
// Identifiers
uint256 editionNumber; // the range e.g. 10000
bytes32 editionData; // some data about the edition
uint256 editionType; // e.g. 1 = KODA V1, 2 = KOTA, 3 = Bespoke partnership
// Config
uint256 startDate; // date when the edition goes on sale
uint256 endDate; // date when the edition is available until
address artistAccount; // artists account
uint256 artistCommission; // base artists commission, could be overridden by external contracts
uint256 priceInWei; // base price for edition, could be overridden by external contracts
string tokenURI; // IPFS hash - see base URI
bool active; // Root control - on/off for the edition
// Counters
uint256 totalSupply; // Total purchases or mints
uint256 totalAvailable; // Total number available to be purchased
}
// _editionNumber : EditionDetails
mapping(uint256 => EditionDetails) internal editionNumberToEditionDetails;
// _tokenId : _editionNumber
mapping(uint256 => uint256) internal tokenIdToEditionNumber;
// _editionNumber : [_tokenId, _tokenId]
mapping(uint256 => uint256[]) internal editionNumberToTokenIds;
mapping(uint256 => uint256) internal editionNumberToTokenIdIndex;
// _artistAccount : [_editionNumber, _editionNumber]
mapping(address => uint256[]) internal artistToEditionNumbers;
mapping(uint256 => uint256) internal editionNumberToArtistIndex;
// _editionType : [_editionNumber, _editionNumber]
mapping(uint256 => uint256[]) internal editionTypeToEditionNumber;
mapping(uint256 => uint256) internal editionNumberToTypeIndex;
///////////////
// Modifiers //
///////////////
modifier onlyAvailableEdition(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].totalSupply < editionNumberToEditionDetails[_editionNumber].totalAvailable, "No more editions left to purchase");
_;
}
modifier onlyActiveEdition(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].active, "Edition not active");
_;
}
modifier onlyRealEdition(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].editionNumber > 0, "Edition number invalid");
_;
}
modifier onlyValidTokenId(uint256 _tokenId) {
require(exists(_tokenId), "Token ID does not exist");
_;
}
modifier onlyPurchaseDuringWindow(uint256 _editionNumber) {
require(editionNumberToEditionDetails[_editionNumber].startDate <= block.timestamp, "Edition not available yet");
require(editionNumberToEditionDetails[_editionNumber].endDate >= block.timestamp, "Edition no longer available");
_;
}
/*
* Constructor
*/
constructor () public payable ERC721Token("KnownOriginDigitalAsset", "KODA") {
// set commission account to contract creator
koCommissionAccount = msg.sender;
}
/**
* @dev Creates an active edition from the given configuration
* @dev Only callable from KO staff/addresses
*/
function createActiveEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalAvailable
)
public
onlyIfKnownOrigin
returns (bool)
{
return _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, true);
}
/**
* @dev Creates an inactive edition from the given configuration
* @dev Only callable from KO staff/addresses
*/
function createInactiveEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalAvailable
)
public
onlyIfKnownOrigin
returns (bool)
{
return _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, false);
}
/**
* @dev Creates an active edition from the given configuration
* @dev The concept of pre0minted editions means we can 'undermint' token IDS, good for holding back editions from public sale
* @dev Only callable from KO staff/addresses
*/
function createActivePreMintedEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalSupply,
uint256 _totalAvailable
)
public
onlyIfKnownOrigin
returns (bool)
{
_createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, true);
updateTotalSupply(_editionNumber, _totalSupply);
return true;
}
/**
* @dev Creates an inactive edition from the given configuration
* @dev The concept of pre0minted editions means we can 'undermint' token IDS, good for holding back editions from public sale
* @dev Only callable from KO staff/addresses
*/
function createInactivePreMintedEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalSupply,
uint256 _totalAvailable
)
public
onlyIfKnownOrigin
returns (bool)
{
_createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, false);
updateTotalSupply(_editionNumber, _totalSupply);
return true;
}
/**
* @dev Internal factory method for building editions
*/
function _createEdition(
uint256 _editionNumber,
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalAvailable,
bool _active
)
internal
returns (bool)
{
// Prevent missing edition number
require(_editionNumber != 0, "Edition number not provided");
// Prevent edition number lower than last one used
require(_editionNumber > highestEditionNumber, "Edition number must be greater than previously used");
// Check previously edition plus total available is less than new edition number
require(highestEditionNumber.add(editionNumberToEditionDetails[highestEditionNumber].totalAvailable) < _editionNumber, "Edition number must be greater than previously used plus total available");
// Prevent missing types
require(_editionType != 0, "Edition type not provided");
// Prevent missing token URI
require(bytes(_tokenURI).length != 0, "Token URI is missing");
// Prevent empty artists address
require(_artistAccount != address(0), "Artist account not provided");
// Prevent invalid commissions
require(_artistCommission <= 100 && _artistCommission >= 0, "Artist commission cannot be greater than 100 or less than 0");
// Prevent duplicate editions
require(editionNumberToEditionDetails[_editionNumber].editionNumber == 0, "Edition already in existence");
// Default end date to max uint256
uint256 endDate = _endDate;
if (_endDate == 0) {
endDate = MAX_UINT32;
}
editionNumberToEditionDetails[_editionNumber] = EditionDetails({
editionNumber : _editionNumber,
editionData : _editionData,
editionType : _editionType,
startDate : _startDate,
endDate : endDate,
artistAccount : _artistAccount,
artistCommission : _artistCommission,
priceInWei : _priceInWei,
tokenURI : _tokenURI,
totalSupply : 0, // default to all available
totalAvailable : _totalAvailable,
active : _active
});
// Add to total available count
totalNumberAvailable = totalNumberAvailable.add(_totalAvailable);
// Update mappings
_updateArtistLookupData(_artistAccount, _editionNumber);
_updateEditionTypeLookupData(_editionType, _editionNumber);
emit EditionCreated(_editionNumber, _editionData, _editionType);
// Update the edition pointer if needs be
highestEditionNumber = _editionNumber;
return true;
}
function _updateEditionTypeLookupData(uint256 _editionType, uint256 _editionNumber) internal {
uint256 typeEditionIndex = editionTypeToEditionNumber[_editionType].length;
editionTypeToEditionNumber[_editionType].push(_editionNumber);
editionNumberToTypeIndex[_editionNumber] = typeEditionIndex;
}
function _updateArtistLookupData(address _artistAccount, uint256 _editionNumber) internal {
uint256 artistEditionIndex = artistToEditionNumbers[_artistAccount].length;
artistToEditionNumbers[_artistAccount].push(_editionNumber);
editionNumberToArtistIndex[_editionNumber] = artistEditionIndex;
}
/**
* @dev Public entry point for purchasing an edition
* @dev Reverts if edition is invalid
* @dev Reverts if payment not provided in full
* @dev Reverts if edition is sold out
* @dev Reverts if edition is not active or available
*/
function purchase(uint256 _editionNumber)
public
payable
returns (uint256) {
return purchaseTo(msg.sender, _editionNumber);
}
/**
* @dev Public entry point for purchasing an edition on behalf of someone else
* @dev Reverts if edition is invalid
* @dev Reverts if payment not provided in full
* @dev Reverts if edition is sold out
* @dev Reverts if edition is not active or available
*/
function purchaseTo(address _to, uint256 _editionNumber)
public
payable
whenNotPaused
onlyRealEdition(_editionNumber)
onlyActiveEdition(_editionNumber)
onlyAvailableEdition(_editionNumber)
onlyPurchaseDuringWindow(_editionNumber)
returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
require(msg.value >= _editionDetails.priceInWei, "Value must be greater than price of edition");
// Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
uint256 _tokenId = _nextTokenId(_editionNumber);
// Create the token
_mintToken(_to, _tokenId, _editionNumber, _editionDetails.tokenURI);
// Splice funds and handle commissions
_handleFunds(_editionNumber, _editionDetails.priceInWei, _editionDetails.artistAccount, _editionDetails.artistCommission);
// Broadcast purchase
emit Purchase(_tokenId, _editionNumber, _to, msg.value);
return _tokenId;
}
/**
* @dev Private (KO only) method for minting editions
* @dev Payment not needed for this method
*/
function mint(address _to, uint256 _editionNumber)
public
onlyIfMinter
onlyRealEdition(_editionNumber)
onlyAvailableEdition(_editionNumber)
returns (uint256) {
// Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
uint256 _tokenId = _nextTokenId(_editionNumber);
// Create the token
_mintToken(_to, _tokenId, _editionNumber, editionNumberToEditionDetails[_editionNumber].tokenURI);
// Create the token
return _tokenId;
}
/**
* @dev Private (KO only) method for under minting editions
* @dev Under minting allows for token IDs to be back filled if total supply is not set to zero by default
* @dev Payment not needed for this method
*/
function underMint(address _to, uint256 _editionNumber)
public
onlyIfUnderMinter
onlyRealEdition(_editionNumber)
returns (uint256) {
// Under mint token, meaning it takes one from the already sold version
uint256 _tokenId = _underMintNextTokenId(_editionNumber);
// If the next tokenId generate is more than the available number, abort as we have reached maximum under mint
if (_tokenId > _editionNumber.add(editionNumberToEditionDetails[_editionNumber].totalAvailable)) {
revert("Reached max tokenId, cannot under mint anymore");
}
// Create the token
_mintToken(_to, _tokenId, _editionNumber, editionNumberToEditionDetails[_editionNumber].tokenURI);
// Create the token
return _tokenId;
}
function _nextTokenId(uint256 _editionNumber) internal returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
// Bump number totalSupply
_editionDetails.totalSupply = _editionDetails.totalSupply.add(1);
// Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
return _editionDetails.editionNumber.add(_editionDetails.totalSupply);
}
function _underMintNextTokenId(uint256 _editionNumber) internal returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
// For old editions start the counter as edition + 1
uint256 _tokenId = _editionDetails.editionNumber.add(1);
// Work your way up until you find a free token based on the new _tokenIdd
while (exists(_tokenId)) {
_tokenId = _tokenId.add(1);
}
// Bump number totalSupply if we are now over minting new tokens
if (_tokenId > _editionDetails.editionNumber.add(_editionDetails.totalSupply)) {
_editionDetails.totalSupply = _editionDetails.totalSupply.add(1);
}
return _tokenId;
}
function _mintToken(address _to, uint256 _tokenId, uint256 _editionNumber, string _tokenURI) internal {
// Mint new base token
super._mint(_to, _tokenId);
super._setTokenURI(_tokenId, _tokenURI);
// Maintain mapping for tokenId to edition for lookup
tokenIdToEditionNumber[_tokenId] = _editionNumber;
// Get next insert position for edition to token Id mapping
uint256 currentIndexOfTokenId = editionNumberToTokenIds[_editionNumber].length;
// Maintain mapping of edition to token array for "edition minted tokens"
editionNumberToTokenIds[_editionNumber].push(_tokenId);
// Maintain a position index for the tokenId within the edition number mapping array, used for clean up token burn
editionNumberToTokenIdIndex[_tokenId] = currentIndexOfTokenId;
// Record sale volume
totalNumberMinted = totalNumberMinted.add(1);
// Emit minted event
emit Minted(_tokenId, _editionNumber, _to);
}
function _handleFunds(uint256 _editionNumber, uint256 _priceInWei, address _artistAccount, uint256 _artistCommission) internal {
// Extract the artists commission and send it
uint256 artistPayment = _priceInWei.div(100).mul(_artistCommission);
if (artistPayment > 0) {
_artistAccount.transfer(artistPayment);
}
// Load any commission overrides
CommissionSplit storage commission = editionNumberToOptionalCommissionSplit[_editionNumber];
// Apply optional commission structure
if (commission.rate > 0) {
uint256 rateSplit = _priceInWei.div(100).mul(commission.rate);
commission.recipient.transfer(rateSplit);
}
// Send remaining eth to KO
uint256 remainingCommission = msg.value.sub(artistPayment).sub(rateSplit);
koCommissionAccount.transfer(remainingCommission);
// Record wei sale value
totalPurchaseValueInWei = totalPurchaseValueInWei.add(msg.value);
}
/**
* @dev Private (KO only) method for burning tokens which have been created incorrectly
*/
function burn(uint256 _tokenId) public onlyIfKnownOrigin {
// Clear from parents
super._burn(ownerOf(_tokenId), _tokenId);
// Get hold of the edition for cleanup
uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
// Delete token ID mapping
delete tokenIdToEditionNumber[_tokenId];
// Delete tokens associated to the edition - this will leave a gap in the array of zero
uint256[] storage tokenIdsForEdition = editionNumberToTokenIds[_editionNumber];
uint256 editionTokenIdIndex = editionNumberToTokenIdIndex[_tokenId];
delete tokenIdsForEdition[editionTokenIdIndex];
}
/**
* @dev An extension to the default ERC721 behaviour, derived from ERC-875.
* @dev Allowing for batch transfers from the sender, will fail if from does not own all the tokens
*/
function batchTransfer(address _to, uint256[] _tokenIds) public {
for (uint i = 0; i < _tokenIds.length; i++) {
safeTransferFrom(ownerOf(_tokenIds[i]), _to, _tokenIds[i]);
}
}
/**
* @dev An extension to the default ERC721 behaviour, derived from ERC-875.
* @dev Allowing for batch transfers from the provided address, will fail if from does not own all the tokens
*/
function batchTransferFrom(address _from, address _to, uint256[] _tokenIds) public {
for (uint i = 0; i < _tokenIds.length; i++) {
transferFrom(_from, _to, _tokenIds[i]);
}
}
//////////////////
// Base Updates //
//////////////////
function updateTokenBaseURI(string _newBaseURI)
external
onlyIfKnownOrigin {
require(bytes(_newBaseURI).length != 0, "Base URI invalid");
tokenBaseURI = _newBaseURI;
}
function updateKoCommissionAccount(address _koCommissionAccount)
external
onlyIfKnownOrigin {
require(_koCommissionAccount != address(0), "Invalid address");
koCommissionAccount = _koCommissionAccount;
}
/////////////////////
// Edition Updates //
/////////////////////
function updateEditionTokenURI(uint256 _editionNumber, string _uri)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].tokenURI = _uri;
}
function updatePriceInWei(uint256 _editionNumber, uint256 _priceInWei)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].priceInWei = _priceInWei;
}
function updateArtistCommission(uint256 _editionNumber, uint256 _rate)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].artistCommission = _rate;
}
function updateArtistsAccount(uint256 _editionNumber, address _artistAccount)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
EditionDetails storage _originalEditionDetails = editionNumberToEditionDetails[_editionNumber];
uint256 editionArtistIndex = editionNumberToArtistIndex[_editionNumber];
// Get list of editions old artist works with
uint256[] storage editionNumbersForArtist = artistToEditionNumbers[_originalEditionDetails.artistAccount];
// Remove edition from artists lists
delete editionNumbersForArtist[editionArtistIndex];
// Add new artists to the list
uint256 newArtistsEditionIndex = artistToEditionNumbers[_artistAccount].length;
artistToEditionNumbers[_artistAccount].push(_editionNumber);
editionNumberToArtistIndex[_editionNumber] = newArtistsEditionIndex;
// Update the edition
_originalEditionDetails.artistAccount = _artistAccount;
}
function updateEditionType(uint256 _editionNumber, uint256 _editionType)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
EditionDetails storage _originalEditionDetails = editionNumberToEditionDetails[_editionNumber];
// Get list of editions for old type
uint256[] storage editionNumbersForType = editionTypeToEditionNumber[_originalEditionDetails.editionType];
// Remove edition from old type list
uint256 editionTypeIndex = editionNumberToTypeIndex[_editionNumber];
delete editionNumbersForType[editionTypeIndex];
// Add new type to the list
uint256 newTypeEditionIndex = editionTypeToEditionNumber[_editionType].length;
editionTypeToEditionNumber[_editionType].push(_editionNumber);
editionNumberToTypeIndex[_editionNumber] = newTypeEditionIndex;
// Update the edition
_originalEditionDetails.editionType = _editionType;
}
function updateActive(uint256 _editionNumber, bool _active)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].active = _active;
}
function updateTotalSupply(uint256 _editionNumber, uint256 _totalSupply)
public
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
require(tokensOfEdition(_editionNumber).length <= _totalSupply, "Can not lower totalSupply to below the number of tokens already in existence");
editionNumberToEditionDetails[_editionNumber].totalSupply = _totalSupply;
}
function updateTotalAvailable(uint256 _editionNumber, uint256 _totalAvailable)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
require(_editionDetails.totalSupply <= _totalAvailable, "Unable to reduce available amount to the below the number totalSupply");
uint256 originalAvailability = _editionDetails.totalAvailable;
_editionDetails.totalAvailable = _totalAvailable;
totalNumberAvailable = totalNumberAvailable.sub(originalAvailability).add(_totalAvailable);
}
function updateStartDate(uint256 _editionNumber, uint256 _startDate)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].startDate = _startDate;
}
function updateEndDate(uint256 _editionNumber, uint256 _endDate)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
editionNumberToEditionDetails[_editionNumber].endDate = _endDate;
}
function updateOptionalCommission(uint256 _editionNumber, uint256 _rate, address _recipient)
external
onlyIfKnownOrigin
onlyRealEdition(_editionNumber) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
uint256 artistCommission = _editionDetails.artistCommission;
if (_rate > 0) {
require(_recipient != address(0), "Setting a rate must be accompanied by a valid address");
}
require(artistCommission.add(_rate) <= 100, "Cant set commission greater than 100%");
editionNumberToOptionalCommissionSplit[_editionNumber] = CommissionSplit({rate : _rate, recipient : _recipient});
}
///////////////////
// Token Updates //
///////////////////
function setTokenURI(uint256 _tokenId, string _uri)
external
onlyIfKnownOrigin
onlyValidTokenId(_tokenId) {
_setTokenURI(_tokenId, _uri);
}
///////////////////
// Query Methods //
///////////////////
/**
* @dev Lookup the edition of the provided token ID
* @dev Returns 0 if not valid
*/
function editionOfTokenId(uint256 _tokenId) public view returns (uint256 _editionNumber) {
return tokenIdToEditionNumber[_tokenId];
}
/**
* @dev Lookup all editions added for the given edition type
* @dev Returns array of edition numbers, any zero edition ids can be ignore/stripped
*/
function editionsOfType(uint256 _type) public view returns (uint256[] _editionNumbers) {
return editionTypeToEditionNumber[_type];
}
/**
* @dev Lookup all editions for the given artist account
* @dev Returns empty list if not valid
*/
function artistsEditions(address _artistsAccount) public view returns (uint256[] _editionNumbers) {
return artistToEditionNumbers[_artistsAccount];
}
/**
* @dev Lookup all tokens minted for the given edition number
* @dev Returns array of token IDs, any zero edition ids can be ignore/stripped
*/
function tokensOfEdition(uint256 _editionNumber) public view returns (uint256[] _tokenIds) {
return editionNumberToTokenIds[_editionNumber];
}
/**
* @dev Lookup all owned tokens for the provided address
* @dev Returns array of token IDs
*/
function tokensOf(address _owner) public view returns (uint256[] _tokenIds) {
return ownedTokens[_owner];
}
/**
* @dev Checks to see if the edition exists, assumes edition of zero is invalid
*/
function editionExists(uint256 _editionNumber) public view returns (bool) {
if (_editionNumber == 0) {
return false;
}
EditionDetails storage editionNumber = editionNumberToEditionDetails[_editionNumber];
return editionNumber.editionNumber == _editionNumber;
}
/**
* @dev Lookup any optional commission split set for the edition
* @dev Both values will be zero if not present
*/
function editionOptionalCommission(uint256 _editionNumber) public view returns (uint256 _rate, address _recipient) {
CommissionSplit storage commission = editionNumberToOptionalCommissionSplit[_editionNumber];
return (commission.rate, commission.recipient);
}
/**
* @dev Main entry point for looking up edition config/metadata
* @dev Reverts if invalid edition number provided
*/
function detailsOfEdition(uint256 editionNumber)
public view
onlyRealEdition(editionNumber)
returns (
bytes32 _editionData,
uint256 _editionType,
uint256 _startDate,
uint256 _endDate,
address _artistAccount,
uint256 _artistCommission,
uint256 _priceInWei,
string _tokenURI,
uint256 _totalSupply,
uint256 _totalAvailable,
bool _active
) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[editionNumber];
return (
_editionDetails.editionData,
_editionDetails.editionType,
_editionDetails.startDate,
_editionDetails.endDate,
_editionDetails.artistAccount,
_editionDetails.artistCommission,
_editionDetails.priceInWei,
Strings.strConcat(tokenBaseURI, _editionDetails.tokenURI),
_editionDetails.totalSupply,
_editionDetails.totalAvailable,
_editionDetails.active
);
}
/**
* @dev Lookup a tokens common identifying characteristics
* @dev Reverts if invalid token ID provided
*/
function tokenData(uint256 _tokenId)
public view
onlyValidTokenId(_tokenId)
returns (
uint256 _editionNumber,
uint256 _editionType,
bytes32 _editionData,
string _tokenURI,
address _owner
) {
uint256 editionNumber = tokenIdToEditionNumber[_tokenId];
EditionDetails storage editionDetails = editionNumberToEditionDetails[editionNumber];
return (
editionNumber,
editionDetails.editionType,
editionDetails.editionData,
tokenURI(_tokenId),
ownerOf(_tokenId)
);
}
function tokenURI(uint256 _tokenId) public view onlyValidTokenId(_tokenId) returns (string) {
return Strings.strConcat(tokenBaseURI, tokenURIs[_tokenId]);
}
function tokenURISafe(uint256 _tokenId) public view returns (string) {
return Strings.strConcat(tokenBaseURI, tokenURIs[_tokenId]);
}
function purchaseDatesToken(uint256 _tokenId) public view returns (uint256 _startDate, uint256 _endDate) {
uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
return purchaseDatesEdition(_editionNumber);
}
function priceInWeiToken(uint256 _tokenId) public view returns (uint256 _priceInWei) {
uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
return priceInWeiEdition(_editionNumber);
}
//////////////////////////
// Edition config query //
//////////////////////////
function editionData(uint256 _editionNumber) public view returns (bytes32) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.editionData;
}
function editionType(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.editionType;
}
function purchaseDatesEdition(uint256 _editionNumber) public view returns (uint256 _startDate, uint256 _endDate) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return (
_editionDetails.startDate,
_editionDetails.endDate
);
}
function artistCommission(uint256 _editionNumber) public view returns (address _artistAccount, uint256 _artistCommission) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return (
_editionDetails.artistAccount,
_editionDetails.artistCommission
);
}
function priceInWeiEdition(uint256 _editionNumber) public view returns (uint256 _priceInWei) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.priceInWei;
}
function tokenURIEdition(uint256 _editionNumber) public view returns (string) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return Strings.strConcat(tokenBaseURI, _editionDetails.tokenURI);
}
function editionActive(uint256 _editionNumber) public view returns (bool) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.active;
}
function totalRemaining(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.totalAvailable.sub(_editionDetails.totalSupply);
}
function totalAvailableEdition(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.totalAvailable;
}
function totalSupplyEdition(uint256 _editionNumber) public view returns (uint256) {
EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
return _editionDetails.totalSupply;
}
}
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
pragma abicoder v2; // required to accept structs as function parameters
import "hardhat/console.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
contract LazyNFT is ERC721URIStorage, ERC721Enumerable, EIP712, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
string private constant SIGNING_DOMAIN = "LazyNFT-Voucher";
string private constant SIGNATURE_VERSION = "1";
mapping (address => uint256) pendingWithdrawals;
constructor(address payable minter)
ERC721("LazyNFT", "LAZ")
EIP712(SIGNING_DOMAIN, SIGNATURE_VERSION) {
_setupRole(MINTER_ROLE, minter);
}
/// @notice Represents an un-minted NFT, which has not yet been recorded into the blockchain. A signed voucher can be redeemed for a real NFT using the redeem function.
struct NFTVoucher {
/// @notice The id of the token to be redeemed. Must be unique - if another token with this ID already exists, the redeem function will revert.
uint256 tokenId;
/// @notice The minimum price (in wei) that the NFT creator is willing to accept for the initial sale of this NFT.
uint256 minPrice;
/// @notice The metadata URI to associate with this token.
string uri;
/// @notice the EIP-712 signature of all other fields in the NFTVoucher struct. For a voucher to be valid, it must be signed by an account with the MINTER_ROLE.
bytes signature;
}
/// @notice Redeems an NFTVoucher for an actual NFT, creating it in the process.
/// @param redeemer The address of the account which will receive the NFT upon success.
/// @param voucher A signed NFTVoucher that describes the NFT to be redeemed.
function redeem(address redeemer, NFTVoucher calldata voucher) public payable returns (uint256) {
// make sure signature is valid and get the address of the signer
address signer = _verify(voucher);
// make sure that the signer is authorized to mint NFTs
require(hasRole(MINTER_ROLE, signer), "Signature invalid or unauthorized");
// make sure that the redeemer is paying enough to cover the buyer's cost
require(msg.value >= voucher.minPrice, "Insufficient funds to redeem");
// first assign the token to the signer, to establish provenance on-chain
_mint(signer, voucher.tokenId);
_setTokenURI(voucher.tokenId, voucher.uri);
// transfer the token to the redeemer
_transfer(signer, redeemer, voucher.tokenId);
// record payment to signer's withdrawal balance
pendingWithdrawals[signer] += msg.value;
return voucher.tokenId;
}
/// @notice Transfers all pending withdrawal balance to the caller. Reverts if the caller is not an authorized minter.
function withdraw() public {
require(hasRole(MINTER_ROLE, msg.sender), "Only authorized minters can withdraw");
// IMPORTANT: casting msg.sender to a payable address is only safe if ALL members of the minter role are payable addresses.
address payable receiver = payable(msg.sender);
uint amount = pendingWithdrawals[receiver];
// zero account before transfer to prevent re-entrancy attack
pendingWithdrawals[receiver] = 0;
receiver.transfer(amount);
}
/// @notice Retuns the amount of Ether available to the caller to withdraw.
function availableToWithdraw() public view returns (uint256) {
return pendingWithdrawals[msg.sender];
}
/// @notice Returns a hash of the given NFTVoucher, prepared using EIP712 typed data hashing rules.
/// @param voucher An NFTVoucher to hash.
function _hash(NFTVoucher calldata voucher) internal view returns (bytes32) {
return _hashTypedDataV4(keccak256(abi.encode(
keccak256("NFTVoucher(uint256 tokenId,uint256 minPrice,string uri)"),
voucher.tokenId,
voucher.minPrice,
keccak256(bytes(voucher.uri))
)));
}
/// @notice Returns the chain id of the current blockchain.
/// @dev This is used to workaround an issue with ganache returning different values from the on-chain chainid() function and
/// the eth_chainId RPC method. See https://github.com/protocol/nft-website/issues/121 for context.
function getChainID() external view returns (uint256) {
uint256 id;
assembly {
id := chainid()
}
return id;
}
/// @notice Verifies the signature for a given NFTVoucher, returning the address of the signer.
/// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs.
/// @param voucher An NFTVoucher describing an unminted NFT.
function _verify(NFTVoucher calldata voucher) internal view returns (address) {
bytes32 digest = _hash(voucher);
return ECDSA.recover(digest, voucher.signature);
}
function supportsInterface(bytes4 interfaceId) public view virtual override (AccessControl, ERC721, ERC721Enumerable) returns (bool) {
return ERC721.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
return super.tokenURI(tokenId);
}
function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
super._burn(tokenId);
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an
* explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.
*/
contract ProxyAdmin is Ownable {
/**
* @dev Returns the current implementation of `proxy`.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function getProxyImplementation(TransparentUpgradeableProxy proxy) public view virtual returns (address) {
// We need to manually run the static call since the getter cannot be flagged as view
// bytes4(keccak256("implementation()")) == 0x5c60da1b
(bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b");
require(success);
return abi.decode(returndata, (address));
}
/**
* @dev Returns the current admin of `proxy`.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function getProxyAdmin(TransparentUpgradeableProxy proxy) public view virtual returns (address) {
// We need to manually run the static call since the getter cannot be flagged as view
// bytes4(keccak256("admin()")) == 0xf851a440
(bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440");
require(success);
return abi.decode(returndata, (address));
}
/**
* @dev Changes the admin of `proxy` to `newAdmin`.
*
* Requirements:
*
* - This contract must be the current admin of `proxy`.
*/
function changeProxyAdmin(TransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner {
proxy.changeAdmin(newAdmin);
}
/**
* @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function upgrade(TransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner {
proxy.upgradeTo(implementation);
}
/**
* @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See
* {TransparentUpgradeableProxy-upgradeToAndCall}.
*
* Requirements:
*
* - This contract must be the admin of `proxy`.
*/
function upgradeAndCall(
TransparentUpgradeableProxy proxy,
address implementation,
bytes memory data
) public payable virtual onlyOwner {
proxy.upgradeToAndCall{value: msg.value}(implementation, data);
}
}
// this line is added to create a gist. Empty file is not allowed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

This file has been truncated, but you can view the full file.
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"linkReferences": {},
"object": "60806040523480156200001157600080fd5b5060405162003b3138038062003b3183398101604081905262000034916200029a565b81818181620000536301ffc9a760e01b6001600160e01b036200013c16565b6200006e6380ac58cd60e01b6001600160e01b036200013c16565b6200008963780e9d6360e01b6001600160e01b036200013c16565b81516200009e9060099060208501906200019c565b508051620000b490600a9060208401906200019c565b50620000d0635b5e139f60e01b6001600160e01b036200013c16565b505050506000620000e66200019760201b60201c565b600e80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505050620003e6565b6001600160e01b03198082161415620001725760405162461bcd60e51b8152600401620001699062000343565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001df57805160ff19168380011785556200020f565b828001600101855582156200020f579182015b828111156200020f578251825591602001919060010190620001f2565b506200021d92915062000221565b5090565b6200019991905b808211156200021d576000815560010162000228565b600082601f8301126200025057600080fd5b815162000267620002618262000382565b6200035b565b915080825260208301602083018583830111156200028457600080fd5b62000291838284620003b3565b50505092915050565b60008060408385031215620002ae57600080fd5b82516001600160401b03811115620002c557600080fd5b620002d3858286016200023e565b92505060208301516001600160401b03811115620002f057600080fd5b620002fe858286016200023e565b9150509250929050565b600062000317601c83620003aa565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000815260200192915050565b60208082528101620003558162000308565b92915050565b6040518181016001600160401b03811182821017156200037a57600080fd5b604052919050565b60006001600160401b038211156200039957600080fd5b506020601f91909101601f19160190565b90815260200190565b60005b83811015620003d0578181015183820152602001620003b6565b83811115620003e0576000848401525b50505050565b61373b80620003f66000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c8063715018a611610125578063b88d4fde116100ad578063d95b63711161007c578063d95b637114610474578063daa4eb5314610487578063e71706be1461049a578063e985e9c5146104ba578063f2fde38b146104cd5761021b565b8063b88d4fde14610428578063bb7fa5841461043b578063c87b56dd1461044e578063d0def521146104615761021b565b8063a22cb465116100f4578063a22cb465146103c7578063a506a0a1146103da578063a60c2312146103ed578063ace7f8bc146103f5578063b1c4c72b146104155761021b565b8063715018a6146103a75780638da5cb5b146103af5780638f32d59b146103b757806395d89b41146103bf5761021b565b8063263cfbe0116101a85780635c59ed7b116101775780635c59ed7b1461035157806361eba552146103595780636352211e146103795780636c0360eb1461038c57806370a08231146103945761021b565b8063263cfbe0146103055780632f745c591461031857806342842e0e1461032b5780634f6ccce71461033e5761021b565b8063095ea7b3116101ef578063095ea7b31461029357806311e10cb8146102a657806318160ddd146102ca57806319e97704146102df57806323b872dd146102f25761021b565b806223ecc51461022057806301ffc9a71461023557806306fdde031461025e578063081812fc14610273575b600080fd5b61023361022e3660046127a7565b6104e0565b005b61024861024336600461274d565b61056b565b6040516102559190613358565b60405180910390f35b61026661058e565b6040516102559190613366565b610286610281366004612789565b610625565b60405161025591906132e4565b6102336102a13660046126e9565b610668565b6102b96102b4366004612789565b61074d565b604051610255959493929190613377565b6102d2610a79565b60405161025591906135a4565b6102336102ed3660046123f0565b610a7f565b610233610300366004612487565b610b20565b610233610313366004612398565b610b5d565b6102d26103263660046126e9565b610c18565b610233610339366004612487565b610c79565b6102d261034c366004612789565b610c94565b610233610cdb565b61036c610367366004612789565b610d4d565b6040516102559190613593565b610286610387366004612789565b611099565b6102666110ce565b6102d26103a2366004612398565b61112f565b610233611178565b6102866111e6565b6102486111f5565b61026661121b565b6102336103d536600461254c565b61127c565b6102486103e8366004612398565b61134a565b610233611368565b610408610403366004612398565b6113d6565b6040516102559190613347565b610233610423366004612398565b611456565b6102336104363660046124d4565b611502565b6102d26104493660046125c3565b611541565b61026661045c366004612789565b611589565b6102d261046f36600461257c565b611697565b6102486104823660046123b6565b6116cc565b610248610495366004612398565b61172d565b6104ad6104a8366004612719565b61174c565b6040516102559190613336565b6102486104c83660046123b6565b611819565b6102336104db366004612398565b611847565b8560006104ec82611099565b90506104f66111f5565b806105095750336001600160a01b038216145b61052e5760405162461bcd60e51b815260040161052590613563565b60405180910390fd5b61053788611877565b6105535760405162461bcd60e51b8152600401610525906133e3565b610561888888888888611894565b5050505050505050565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061a5780601f106105ef5761010080835404028352916020019161061a565b820191906000526020600020905b8154815290600101906020018083116105fd57829003601f168201915b505050505090505b90565b600061063082611877565b61064c5760405162461bcd60e51b8152600401610525906134e3565b506000908152600260205260409020546001600160a01b031690565b600061067382611099565b9050806001600160a01b0316836001600160a01b031614156106a75760405162461bcd60e51b815260040161052590613543565b806001600160a01b03166106b961193a565b6001600160a01b031614806106d557506106d5816104c861193a565b6106f15760405162461bcd60e51b815260040161052590613493565b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b606080606080606061075e86611877565b61077a5760405162461bcd60e51b8152600401610525906133e3565b6000868152600d60209081526040918290206001808201805485516002938216156101000260001901909116839004601f810186900486028201860190965285815290949183019360038401936004810193600590910192918791908301828280156108275780601f106107fc57610100808354040283529160200191610827565b820191906000526020600020905b81548152906001019060200180831161080a57829003601f168201915b5050875460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959a50899450925084019050828280156108b55780601f1061088a576101008083540402835291602001916108b5565b820191906000526020600020905b81548152906001019060200180831161089857829003601f168201915b5050865460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959950889450925084019050828280156109435780601f1061091857610100808354040283529160200191610943565b820191906000526020600020905b81548152906001019060200180831161092657829003601f168201915b5050855460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959850879450925084019050828280156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b5050845460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815295975086945092508401905082828015610a5f5780601f10610a3457610100808354040283529160200191610a5f565b820191906000526020600020905b815481529060010190602001808311610a4257829003601f168201915b505050505090509450945094509450945091939590929450565b60075490565b610a8933876116cc565b610aa55760405162461bcd60e51b815260040161052590613523565b610b1833878787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061193e92505050565b505050505050565b610b31610b2b61193a565b826119da565b610b4d5760405162461bcd60e51b815260040161052590613573565b610b58838383611a5f565b505050565b610b656111f5565b610b815760405162461bcd60e51b815260040161052590613503565b6001600160a01b03811660009081526010602052604090205460ff1615610bba5760405162461bcd60e51b815260040161052590613463565b6001600160a01b03811660009081526010602052604090819020805460ff19166001179055517fcc19abc65009012e41c631da2d8277d8740ebceb112ef974cc784ea191e470a790610c0d9083906132e4565b60405180910390a150565b6000610c238361112f565b8210610c415760405162461bcd60e51b8152600401610525906133f3565b6001600160a01b0383166000908152600560205260409020805483908110610c6557fe5b906000526020600020015490505b92915050565b610b5883838360405180602001604052806000815250611502565b6000610c9e610a79565b8210610cbc5760405162461bcd60e51b815260040161052590613583565b60078281548110610cc957fe5b90600052602060002001549050919050565b3360009081526011602052604090205460ff1615610d0b5760405162461bcd60e51b815260040161052590613413565b33600081815260116020526040808220805460ff19166001179055517fe41b009a6b640ace2118aefe12476c796e8c6c81a737ff53284b0ffbdefb70ca9190a2565b610d5561211c565b610d5e82611877565b610d7a5760405162461bcd60e51b8152600401610525906133e3565b600d60008381526020019081526020016000206040518060c001604052908160008201548152602001600182018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e3b5780601f10610e1057610100808354040283529160200191610e3b565b820191906000526020600020905b815481529060010190602001808311610e1e57829003601f168201915b5050509183525050600282810180546040805160206001841615610100026000190190931694909404601f81018390048302850183019091528084529381019390830182828015610ecd5780601f10610ea257610100808354040283529160200191610ecd565b820191906000526020600020905b815481529060010190602001808311610eb057829003601f168201915b505050918352505060038201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015610f615780601f10610f3657610100808354040283529160200191610f61565b820191906000526020600020905b815481529060010190602001808311610f4457829003601f168201915b505050918352505060048201805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152938201939291830182828015610ff55780601f10610fca57610100808354040283529160200191610ff5565b820191906000526020600020905b815481529060010190602001808311610fd857829003601f168201915b505050918352505060058201805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529382019392918301828280156110895780601f1061105e57610100808354040283529160200191611089565b820191906000526020600020905b81548152906001019060200180831161106c57829003601f168201915b5050505050815250509050919050565b6000818152600160205260408120546001600160a01b031680610c735760405162461bcd60e51b8152600401610525906134c3565b600b8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061a5780601f106105ef5761010080835404028352916020019161061a565b60006001600160a01b0382166111575760405162461bcd60e51b8152600401610525906134b3565b6001600160a01b0382166000908152600360205260409020610c7390611a7e565b6111806111f5565b61119c5760405162461bcd60e51b815260040161052590613503565b600e546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600e80546001600160a01b0319169055565b600e546001600160a01b031690565b600e546000906001600160a01b031661120c61193a565b6001600160a01b031614905090565b600a8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561061a5780601f106105ef5761010080835404028352916020019161061a565b61128461193a565b6001600160a01b0316826001600160a01b031614156112b55760405162461bcd60e51b815260040161052590613453565b80600460006112c261193a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561130661193a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161133e9190613358565b60405180910390a35050565b6001600160a01b031660009081526010602052604090205460ff1690565b3360009081526011602052604090205460ff166113975760405162461bcd60e51b815260040161052590613483565b33600081815260116020526040808220805460ff19169055517fad3793ccba4bf145fba17f6e508c1db7de72afcee73d854cb0d5220cb4022c9f9190a2565b606060006113e38361112f565b9050606081604051908082528060200260200182016040528015611411578160200160208202803883390190505b50905060005b8281101561144e57600061142b8683610c18565b90508083838151811061143a57fe5b602090810291909101015250600101611417565b509392505050565b61145e6111f5565b61147a5760405162461bcd60e51b815260040161052590613503565b6001600160a01b03811660009081526010602052604090205460ff166114b25760405162461bcd60e51b815260040161052590613553565b6001600160a01b03811660009081526010602052604090819020805460ff19169055517fdbac57781dae8783301559623b7c269c0945af5afc6741c1eb02d6cbe21e545090610c0d9083906132e4565b61151361150d61193a565b836119da565b61152f5760405162461bcd60e51b815260040161052590613573565b61153b84848484611a82565b50505050565b600061154d600f611ab5565b6000611559600f611a7e565b90506115658982611abe565b61156f8189611adf565b61157d818888888888611894565b98975050505050505050565b606061159482611877565b6115b05760405162461bcd60e51b815260040161052590613533565b6000828152600c602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156116455780601f1061161a57610100808354040283529160200191611645565b820191906000526020600020905b81548152906001019060200180831161162857829003601f168201915b5050505050905080516000141561166c575050604080516020810190915260008152610589565b600b816040516020016116809291906132cc565b604051602081830303815290604052915050610589565b60006116a3600f611ab5565b60006116af600f611a7e565b90506116bb8482611abe565b6116c58184611adf565b9392505050565b6000816001600160a01b0316836001600160a01b031614806116c557506001600160a01b03821660009081526011602052604090205460ff161580156116c5575050506001600160a01b031660009081526010602052604090205460ff1690565b6001600160a01b031660009081526011602052604090205460ff161590565b606080825160405190808252806020026020018201604052801561178a57816020015b61177761211c565b81526020019060019003908161176f5790505b50905060005b8351811015611812576117b58482815181106117a857fe5b6020026020010151611877565b6117d15760405162461bcd60e51b8152600401610525906133e3565b60008482815181106117df57fe5b602002602001015190506117f281610d4d565b8383815181106117fe57fe5b602090810291909101015250600101611790565b5092915050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b61184f6111f5565b61186b5760405162461bcd60e51b815260040161052590613503565b61187481611b23565b50565b6000908152600160205260409020546001600160a01b0316151590565b61189d86611877565b6118b95760405162461bcd60e51b8152600401610525906134a3565b6000868152600d60209081526040909120878155865190916118e2916001840191890190612152565b5084516118f89060028301906020880190612152565b50835161190e9060038301906020870190612152565b5082516119249060048301906020860190612152565b5081516105619060058301906020850190612152565b3390565b60005b8251811015610b1857611968858585848151811061195b57fe5b6020026020010151611a5f565b836001600160a01b0316856001600160a01b0316876001600160a01b03167fafd473af84dda5c8298fafdd930dccd3fb3cd2559def8f86dcbcb134bacb6dd28685815181106119b357fe5b6020026020010151866040516119ca9291906135b2565b60405180910390a4600101611941565b60006119e582611877565b611a015760405162461bcd60e51b815260040161052590613473565b6000611a0c83611099565b9050806001600160a01b0316846001600160a01b03161480611a475750836001600160a01b0316611a3c84610625565b6001600160a01b0316145b80611a575750611a578185611819565b949350505050565b611a6a838383611ba5565b611a748382611cab565b610b588282611da0565b5490565b611a8d848484611a5f565b611a9984848484611dde565b61153b5760405162461bcd60e51b815260040161052590613403565b80546001019055565b611ac88282611f18565b611ad28282611da0565b611adb81611fdf565b5050565b611ae882611877565b611b045760405162461bcd60e51b8152600401610525906134f3565b6000828152600c602090815260409091208251610b5892840190612152565b6001600160a01b038116611b495760405162461bcd60e51b815260040161052590613423565b600e546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b0316611bb882611099565b6001600160a01b031614611bde5760405162461bcd60e51b815260040161052590613513565b6001600160a01b038216611c045760405162461bcd60e51b815260040161052590613443565b611c0d81612023565b6001600160a01b0383166000908152600360205260409020611c2e9061205e565b6001600160a01b0382166000908152600360205260409020611c4f90611ab5565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260056020526040812054611cd590600163ffffffff61207516565b600083815260066020526040902054909150808214611d70576001600160a01b0384166000908152600560205260408120805484908110611d1257fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110611d5057fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611d999060001983016121d0565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6000611df2846001600160a01b03166120b7565b611dfe57506001611a57565b600060606001600160a01b038616630a85bd0160e11b611e1c61193a565b898888604051602401611e3294939291906132f2565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611e7091906132c0565b6000604051808303816000865af19150503d8060008114611ead576040519150601f19603f3d011682016040523d82523d6000602084013e611eb2565b606091505b509150915081611ee457805115611ecc5780518082602001fd5b60405162461bcd60e51b815260040161052590613403565b600081806020019051611efa919081019061276b565b6001600160e01b031916630a85bd0160e11b149350611a5792505050565b6001600160a01b038216611f3e5760405162461bcd60e51b8152600401610525906134d3565b611f4781611877565b15611f645760405162461bcd60e51b815260040161052590613433565b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020611fa390611ab5565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000818152600260205260409020546001600160a01b03161561187457600090815260026020526040902080546001600160a01b0319169055565b805461207190600163ffffffff61207516565b9055565b60006116c583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120f0565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611a57575050151592915050565b600081848411156121145760405162461bcd60e51b81526004016105259190613366565b505050900390565b6040518060c001604052806000815260200160608152602001606081526020016060815260200160608152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061219357805160ff19168380011785556121c0565b828001600101855582156121c0579182015b828111156121c05782518255916020019190600101906121a5565b506121cc9291506121f0565b5090565b815481835581811115610b5857600083815260209020610b589181019083015b61062291905b808211156121cc57600081556001016121f6565b8035610c73816136c9565b60008083601f84011261222757600080fd5b5081356001600160401b0381111561223e57600080fd5b60208301915083602082028301111561225657600080fd5b9250929050565b600082601f83011261226e57600080fd5b813561228161227c826135f8565b6135d2565b915081818352602084019350602081019050838560208402820111156122a657600080fd5b60005b838110156122d257816122bc888261238d565b84525060209283019291909101906001016122a9565b5050505092915050565b8035610c73816136dd565b8035610c73816136e6565b8051610c73816136e6565b60008083601f84011261230f57600080fd5b5081356001600160401b0381111561232657600080fd5b60208301915083600182028301111561225657600080fd5b600082601f83011261234f57600080fd5b813561235d61227c82613618565b9150808252602083016020830185838301111561237957600080fd5b612384838284613687565b50505092915050565b8035610c73816136ef565b6000602082840312156123aa57600080fd5b6000611a57848461220a565b600080604083850312156123c957600080fd5b60006123d5858561220a565b92505060206123e68582860161220a565b9150509250929050565b6000806000806000806080878903121561240957600080fd5b6000612415898961220a565b965050602061242689828a0161220a565b95505060408701356001600160401b0381111561244257600080fd5b61244e89828a01612215565b945094505060608701356001600160401b0381111561246c57600080fd5b61247889828a016122fd565b92509250509295509295509295565b60008060006060848603121561249c57600080fd5b60006124a8868661220a565b93505060206124b98682870161220a565b92505060406124ca8682870161238d565b9150509250925092565b600080600080608085870312156124ea57600080fd5b60006124f6878761220a565b94505060206125078782880161220a565b93505060406125188782880161238d565b92505060608501356001600160401b0381111561253457600080fd5b6125408782880161233e565b91505092959194509250565b6000806040838503121561255f57600080fd5b600061256b858561220a565b92505060206123e6858286016122dc565b6000806040838503121561258f57600080fd5b600061259b858561220a565b92505060208301356001600160401b038111156125b757600080fd5b6123e68582860161233e565b600080600080600080600060e0888a0312156125de57600080fd5b60006125ea8a8a61220a565b97505060208801356001600160401b0381111561260657600080fd5b6126128a828b0161233e565b96505060408801356001600160401b0381111561262e57600080fd5b61263a8a828b0161233e565b95505060608801356001600160401b0381111561265657600080fd5b6126628a828b0161233e565b94505060808801356001600160401b0381111561267e57600080fd5b61268a8a828b0161233e565b93505060a08801356001600160401b038111156126a657600080fd5b6126b28a828b0161233e565b92505060c08801356001600160401b038111156126ce57600080fd5b6126da8a828b0161233e565b91505092959891949750929550565b600080604083850312156126fc57600080fd5b6000612708858561220a565b92505060206123e68582860161238d565b60006020828403121561272b57600080fd5b81356001600160401b0381111561274157600080fd5b611a578482850161225d565b60006020828403121561275f57600080fd5b6000611a5784846122e7565b60006020828403121561277d57600080fd5b6000611a5784846122f2565b60006020828403121561279b57600080fd5b6000611a57848461238d565b60008060008060008060c087890312156127c057600080fd5b60006127cc898961238d565b96505060208701356001600160401b038111156127e857600080fd5b6127f489828a0161233e565b95505060408701356001600160401b0381111561281057600080fd5b61281c89828a0161233e565b94505060608701356001600160401b0381111561283857600080fd5b61284489828a0161233e565b93505060808701356001600160401b0381111561286057600080fd5b61286c89828a0161233e565b92505060a08701356001600160401b0381111561288857600080fd5b61289489828a0161233e565b9150509295509295509295565b60006116c5838361321a565b60006128b983836132b7565b505060200190565b6128ca8161365e565b82525050565b60006128db82613651565b6128e58185613655565b9350836020820285016128f78561363f565b8060005b85811015612931578484038952815161291485826128a1565b945061291f8361363f565b60209a909a01999250506001016128fb565b5091979650505050505050565b600061294982613651565b6129538185613655565b935061295e8361363f565b8060005b8381101561298c57815161297688826128ad565b97506129818361363f565b925050600101612962565b509495945050505050565b6128ca81613669565b60006129ab82613651565b6129b58185613655565b93506129c5818560208601613693565b6129ce816136bf565b9093019392505050565b60006129e382613651565b6129ed8185610589565b93506129fd818560208601613693565b9290920192915050565b600081546001811660008114612a245760018114612a4757612a86565b607f6002830416612a358187610589565b60ff1984168152955085019250612a86565b60028204612a558187610589565b9550612a6085613645565b60005b82811015612a7f57815488820152600190910190602001612a63565b5050850192505b505092915050565b6000612a9b603183613655565b7f4552433732314d657461646174613a204d6574616461746120736574206f66208152703737b732bc34b9ba32b73a103a37b5b2b760791b602082015260400192915050565b6000612aee602b83613655565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b6000612b3b603283613655565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b6000612b8f603683613655565b7f4f6666696369616c206f70657261746f72732061726520616c7265616479207281527532b532b1ba32b210313c9036b9b39739b2b73232b91760511b602082015260400192915050565b6000612be7602683613655565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b6000612c2f601c83613655565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612c68602483613655565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612cae601983613655565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000612ce7602a83613655565b7f5f6f70657261746f7220697320616c726561647920616e206f6666696369616c8152691037b832b930ba37b91760b11b602082015260400192915050565b6000612d33602c83613655565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612d81603683613655565b7f4f6666696369616c206f70657261746f72732061726520616c7265616479206181527531b1b2b83a32b210313c9036b9b39739b2b73232b91760511b602082015260400192915050565b6000612dd9603883613655565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000612e38602183613655565b7f4552433732314d657461646174613a206e6f6e6578697374656e7420746f6b658152603760f91b602082015260400192915050565b6000612e7b602a83613655565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612ec7602983613655565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612f12602083613655565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612f4b602c83613655565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612f99602c83613655565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612fe7602083613655565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000613020602983613655565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b600061306b601683613655565b7539b2b73232b91034b9903737ba1037b832b930ba37b960511b815260200192915050565b600061309d602f83613655565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b60006130ee602183613655565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613131602683613655565b7f5f6f70657261746f72206973206e6f7420616e206f6666696369616c206f70658152653930ba37b91760d11b602082015260400192915050565b6000610c73600083613655565b6000613186603183613655565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b60006131d9602c83613655565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b805160009060c084019061322e85826132b7565b506020830151848203602086015261324682826129a0565b9150506040830151848203604086015261326082826129a0565b9150506060830151848203606086015261327a82826129a0565b9150506080830151848203608086015261329482826129a0565b91505060a083015184820360a08601526132ae82826129a0565b95945050505050565b6128ca81610622565b60006116c582846129d8565b60006132d88285612a07565b9150611a5782846129d8565b60208101610c7382846128c1565b6080810161330082876128c1565b61330d60208301866128c1565b61331a60408301856132b7565b818103606083015261332c81846129a0565b9695505050505050565b602080825281016116c581846128d0565b602080825281016116c5818461293e565b60208101610c738284612997565b602080825281016116c581846129a0565b60a0808252810161338881886129a0565b9050818103602083015261339c81876129a0565b905081810360408301526133b081866129a0565b905081810360608301526133c481856129a0565b905081810360808301526133d881846129a0565b979650505050505050565b60208082528101610c7381612a8e565b60208082528101610c7381612ae1565b60208082528101610c7381612b2e565b60208082528101610c7381612b82565b60208082528101610c7381612bda565b60208082528101610c7381612c22565b60208082528101610c7381612c5b565b60208082528101610c7381612ca1565b60208082528101610c7381612cda565b60208082528101610c7381612d26565b60208082528101610c7381612d74565b60208082528101610c7381612dcc565b60208082528101610c7381612e2b565b60208082528101610c7381612e6e565b60208082528101610c7381612eba565b60208082528101610c7381612f05565b60208082528101610c7381612f3e565b60208082528101610c7381612f8c565b60208082528101610c7381612fda565b60208082528101610c7381613013565b60208082528101610c738161305e565b60208082528101610c7381613090565b60208082528101610c73816130e1565b60208082528101610c7381613124565b60208082528101610c738161316c565b60208082528101610c7381613179565b60208082528101610c73816131cc565b602080825281016116c5818461321a565b60208101610c7382846132b7565b604081016135c082856132b7565b8181036020830152611a5781846129a0565b6040518181016001600160401b03811182821017156135f057600080fd5b604052919050565b60006001600160401b0382111561360e57600080fd5b5060209081020190565b60006001600160401b0382111561362e57600080fd5b506020601f91909101601f19160190565b60200190565b60009081526020902090565b5190565b90815260200190565b6000610c738261367b565b151590565b6001600160e01b03191690565b6001600160a01b031690565b82818337506000910152565b60005b838110156136ae578181015183820152602001613696565b8381111561153b5750506000910152565b601f01601f191690565b6136d28161365e565b811461187457600080fd5b6136d281613669565b6136d28161366e565b6136d28161062256fea365627a7a723158204352711ea7113c25867516e3896a6570a05effc5d540edc2c5af2734743649f96c6578706572696d656e74616cf564736f6c63430005110040",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x3B31 CODESIZE SUB DUP1 PUSH3 0x3B31 DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x34 SWAP2 PUSH3 0x29A JUMP JUMPDEST DUP2 DUP2 DUP2 DUP2 PUSH3 0x53 PUSH4 0x1FFC9A7 PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST PUSH3 0x6E PUSH4 0x80AC58CD PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST PUSH3 0x89 PUSH4 0x780E9D63 PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST DUP2 MLOAD PUSH3 0x9E SWAP1 PUSH1 0x9 SWAP1 PUSH1 0x20 DUP6 ADD SWAP1 PUSH3 0x19C JUMP JUMPDEST POP DUP1 MLOAD PUSH3 0xB4 SWAP1 PUSH1 0xA SWAP1 PUSH1 0x20 DUP5 ADD SWAP1 PUSH3 0x19C JUMP JUMPDEST POP PUSH3 0xD0 PUSH4 0x5B5E139F PUSH1 0xE0 SHL PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB PUSH3 0x13C AND JUMP JUMPDEST POP POP POP POP PUSH1 0x0 PUSH3 0xE6 PUSH3 0x197 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST PUSH1 0xE DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE PUSH1 0x40 MLOAD SWAP2 SWAP3 POP SWAP1 PUSH1 0x0 SWAP1 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP1 DUP3 SWAP1 LOG3 POP POP POP PUSH3 0x3E6 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP1 DUP3 AND EQ ISZERO PUSH3 0x172 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH3 0x169 SWAP1 PUSH3 0x343 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE JUMP JUMPDEST CALLER JUMPDEST SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH3 0x1DF JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x20F JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x20F JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x20F JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x1F2 JUMP JUMPDEST POP PUSH3 0x21D SWAP3 SWAP2 POP PUSH3 0x221 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH3 0x199 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x21D JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x228 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x250 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH3 0x267 PUSH3 0x261 DUP3 PUSH3 0x382 JUMP JUMPDEST PUSH3 0x35B JUMP JUMPDEST SWAP2 POP DUP1 DUP3 MSTORE PUSH1 0x20 DUP4 ADD PUSH1 0x20 DUP4 ADD DUP6 DUP4 DUP4 ADD GT ISZERO PUSH3 0x284 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x291 DUP4 DUP3 DUP5 PUSH3 0x3B3 JUMP JUMPDEST POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH3 0x2AE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x2C5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x2D3 DUP6 DUP3 DUP7 ADD PUSH3 0x23E JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT ISZERO PUSH3 0x2F0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x2FE DUP6 DUP3 DUP7 ADD PUSH3 0x23E JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x317 PUSH1 0x1C DUP4 PUSH3 0x3AA JUMP JUMPDEST PUSH32 0x4552433136353A20696E76616C696420696E7465726661636520696400000000 DUP2 MSTORE PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 ADD PUSH3 0x355 DUP2 PUSH3 0x308 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP2 GT DUP3 DUP3 LT OR ISZERO PUSH3 0x37A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MSTORE SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1 PUSH1 0x1 PUSH1 0x40 SHL SUB DUP3 GT ISZERO PUSH3 0x399 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x20 PUSH1 0x1F SWAP2 SWAP1 SWAP2 ADD PUSH1 0x1F NOT AND ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0x3D0 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH3 0x3B6 JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH3 0x3E0 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH2 0x373B DUP1 PUSH3 0x3F6 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x21B JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x715018A6 GT PUSH2 0x125 JUMPI DUP1 PUSH4 0xB88D4FDE GT PUSH2 0xAD JUMPI DUP1 PUSH4 0xD95B6371 GT PUSH2 0x7C JUMPI DUP1 PUSH4 0xD95B6371 EQ PUSH2 0x474 JUMPI DUP1 PUSH4 0xDAA4EB53 EQ PUSH2 0x487 JUMPI DUP1 PUSH4 0xE71706BE EQ PUSH2 0x49A JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x4BA JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x4CD JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x428 JUMPI DUP1 PUSH4 0xBB7FA584 EQ PUSH2 0x43B JUMPI DUP1 PUSH4 0xC87B56DD EQ PUSH2 0x44E JUMPI DUP1 PUSH4 0xD0DEF521 EQ PUSH2 0x461 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0xA22CB465 GT PUSH2 0xF4 JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x3C7 JUMPI DUP1 PUSH4 0xA506A0A1 EQ PUSH2 0x3DA JUMPI DUP1 PUSH4 0xA60C2312 EQ PUSH2 0x3ED JUMPI DUP1 PUSH4 0xACE7F8BC EQ PUSH2 0x3F5 JUMPI DUP1 PUSH4 0xB1C4C72B EQ PUSH2 0x415 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x715018A6 EQ PUSH2 0x3A7 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x3AF JUMPI DUP1 PUSH4 0x8F32D59B EQ PUSH2 0x3B7 JUMPI DUP1 PUSH4 0x95D89B41 EQ PUSH2 0x3BF JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x263CFBE0 GT PUSH2 0x1A8 JUMPI DUP1 PUSH4 0x5C59ED7B GT PUSH2 0x177 JUMPI DUP1 PUSH4 0x5C59ED7B EQ PUSH2 0x351 JUMPI DUP1 PUSH4 0x61EBA552 EQ PUSH2 0x359 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x379 JUMPI DUP1 PUSH4 0x6C0360EB EQ PUSH2 0x38C JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x394 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x263CFBE0 EQ PUSH2 0x305 JUMPI DUP1 PUSH4 0x2F745C59 EQ PUSH2 0x318 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x32B JUMPI DUP1 PUSH4 0x4F6CCCE7 EQ PUSH2 0x33E JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH4 0x95EA7B3 GT PUSH2 0x1EF JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0x293 JUMPI DUP1 PUSH4 0x11E10CB8 EQ PUSH2 0x2A6 JUMPI DUP1 PUSH4 0x18160DDD EQ PUSH2 0x2CA JUMPI DUP1 PUSH4 0x19E97704 EQ PUSH2 0x2DF JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x2F2 JUMPI PUSH2 0x21B JUMP JUMPDEST DUP1 PUSH3 0x23ECC5 EQ PUSH2 0x220 JUMPI DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0x235 JUMPI DUP1 PUSH4 0x6FDDE03 EQ PUSH2 0x25E JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0x273 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x233 PUSH2 0x22E CALLDATASIZE PUSH1 0x4 PUSH2 0x27A7 JUMP JUMPDEST PUSH2 0x4E0 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x248 PUSH2 0x243 CALLDATASIZE PUSH1 0x4 PUSH2 0x274D JUMP JUMPDEST PUSH2 0x56B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x255 SWAP2 SWAP1 PUSH2 0x3358 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment