Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 2,035 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 24416681 | 20 days ago | IN | 0 ETH | 0.0000033 | ||||
| Approve | 23993010 | 79 days ago | IN | 0 ETH | 0.00001513 | ||||
| Approve | 23809738 | 105 days ago | IN | 0 ETH | 0.00000472 | ||||
| Approve | 22278347 | 319 days ago | IN | 0 ETH | 0.0000368 | ||||
| Approve | 22227976 | 326 days ago | IN | 0 ETH | 0.00008833 | ||||
| Permit | 21436163 | 437 days ago | IN | 0 ETH | 0.00065682 | ||||
| Claim | 20761011 | 531 days ago | IN | 0 ETH | 0.00063572 | ||||
| Claim | 20589038 | 555 days ago | IN | 0 ETH | 0.00054615 | ||||
| Approve | 20585286 | 556 days ago | IN | 0 ETH | 0.0002456 | ||||
| Claim | 20129139 | 620 days ago | IN | 0 ETH | 0.00070618 | ||||
| Claim | 19892905 | 653 days ago | IN | 0 ETH | 0.00044975 | ||||
| Permit | 19866953 | 656 days ago | IN | 0 ETH | 0.00045352 | ||||
| Claim | 19827088 | 662 days ago | IN | 0 ETH | 0.00075882 | ||||
| Claim | 19627323 | 690 days ago | IN | 0 ETH | 0.00296957 | ||||
| Approve | 19407113 | 721 days ago | IN | 0 ETH | 0.00352894 | ||||
| Claim | 19066020 | 768 days ago | IN | 0 ETH | 0.00150405 | ||||
| Claim | 18940157 | 786 days ago | IN | 0 ETH | 0.00262446 | ||||
| Claim | 18917715 | 789 days ago | IN | 0 ETH | 0.00131654 | ||||
| Claim | 18864766 | 797 days ago | IN | 0 ETH | 0.00293391 | ||||
| Permit | 18828774 | 802 days ago | IN | 0 ETH | 0.0035524 | ||||
| Claim | 18601661 | 834 days ago | IN | 0 ETH | 0.00181868 | ||||
| Permit | 18516267 | 846 days ago | IN | 0 ETH | 0.00245346 | ||||
| Claim | 18426586 | 858 days ago | IN | 0 ETH | 0.0019538 | ||||
| Claim | 18365663 | 867 days ago | IN | 0 ETH | 0.00206124 | ||||
| Claim | 18281272 | 878 days ago | IN | 0 ETH | 0.0010771 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
DegenToken
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
interface IERC721 {
function ownerOf(uint256 tokenId) external view returns (address owner);
}
contract DegenToken is ERC20, ERC20Burnable, Pausable, Ownable, ERC20Permit, ReentrancyGuard {
using SafeERC20 for IERC20;
struct TokenInfo {
uint256 lastClaimTs; // last claim timestamp
uint256 claimedTokensNum; // how many tokens were already claimed for this NFT
}
struct Claimable {
address addr;
bool active;
uint256 maxDegensPerToken;
uint256 claimNumPerInterval;
uint256 claimTimeInterval;
mapping(uint256 => TokenInfo) tokens;
}
struct UserClaim {
address addr;
uint256[] tokens;
}
struct UserClaimLog {
address addr;
uint256 token;
}
event TokensClaimed(address indexed token, uint256[] tokens);
event NewTokenAdded(
address indexed token,
uint256 maxDegensPerToken,
uint256 claimNumPerInterval,
uint256 claimTimeInterval,
bool initInPast
);
event ClaimActiveChanged(address indexed token, bool active);
event ClaimAttributesChanged(address indexed token, ClaimContractAttribute attribute, uint256 value);
Claimable[] claims;
constructor() ERC20("DegenLabsToken", "DEGLAB") ERC20Permit("DegenLabsToken") {
_mint(address(this), 1000000 * (10**decimals()));
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function addNewContractForClaims(
address _addr,
bool _active,
uint256 _maxDegensPerToken,
uint256 _claimNumPerInterval,
uint256 _claimTimeInterval,
bool _initInPast
) public onlyOwner {
for (uint256 i = 0; i < claims.length; i++) {
require(claims[i].addr != _addr, "already added");
}
Claimable storage newC = claims.push();
newC.addr = _addr;
newC.active = _active;
newC.maxDegensPerToken = _maxDegensPerToken;
newC.claimNumPerInterval = _claimNumPerInterval;
newC.claimTimeInterval = _claimTimeInterval;
emit NewTokenAdded(
_addr,
newC.maxDegensPerToken,
newC.claimNumPerInterval,
newC.claimTimeInterval,
_initInPast
);
}
function setClaimContractActive(address _addr, bool _active) public onlyOwner {
for (uint256 i = 0; i < claims.length; i++) {
if (claims[i].addr == _addr) {
claims[i].active = _active;
emit ClaimActiveChanged(_addr, _active);
return;
}
}
revert("contract not found");
}
enum ClaimContractAttribute {
MAX_DEGENS_PER_TOKEN, // 0
CLAIM_NUM_PER_INTERVAL, // 1
CLAIM_TIME_INTERVAL // 2
}
function setClaimContractAttributes(
address _addr,
ClaimContractAttribute _attributeType,
uint256 _value
) public onlyOwner {
for (uint256 i = 0; i < claims.length; i++) {
if (claims[i].addr == _addr) {
if (_attributeType == ClaimContractAttribute.MAX_DEGENS_PER_TOKEN) {
claims[i].maxDegensPerToken = _value;
} else if (_attributeType == ClaimContractAttribute.CLAIM_NUM_PER_INTERVAL) {
claims[i].claimNumPerInterval = _value;
} else if (_attributeType == ClaimContractAttribute.CLAIM_TIME_INTERVAL) {
claims[i].claimTimeInterval = _value;
} else {
revert("invalid attribute");
}
emit ClaimAttributesChanged(_addr, _attributeType, _value);
return;
}
}
revert("contract not found");
}
function isTokenFullyClaimed(address _addr, uint256 _tokenID) external view returns (bool) {
for (uint256 i = 0; i < claims.length; i++) {
if (claims[i].addr == _addr) {
return claims[i].tokens[_tokenID].claimedTokensNum >= claims[i].maxDegensPerToken;
}
}
revert("contract not found");
}
function getClaimedDegensForToken(address _addr, uint256 _tokenID) external view returns (uint256) {
for (uint256 i = 0; i < claims.length; i++) {
if (claims[i].addr == _addr) {
return claims[i].tokens[_tokenID].claimedTokensNum;
}
}
revert("contract not found");
}
function getLastTimeTokenWasClaimed(address _addr, uint256 _tokenID) external view returns (uint256) {
for (uint256 i = 0; i < claims.length; i++) {
if (claims[i].addr == _addr) {
return claims[i].tokens[_tokenID].lastClaimTs;
}
}
revert("contract not found");
}
function getClaimContractAttributes(address _addr)
external
view
returns (
bool active,
uint256 maxDegensPerToken,
uint256 claimNumPerInterval,
uint256 claimTimeInterval
)
{
for (uint256 i = 0; i < claims.length; i++) {
if (claims[i].addr == _addr) {
return (
claims[i].active,
claims[i].maxDegensPerToken,
claims[i].claimNumPerInterval,
claims[i].claimTimeInterval
);
}
}
revert("contract not found");
}
function claim(UserClaim[] calldata _toClaim) external nonReentrant whenNotPaused {
require(_toClaim.length > 0, "empty params");
for (uint256 i = 0; i < _toClaim.length; i++) {
require(_toClaim[i].tokens.length > 0, "empty tokens");
}
uint256 claimableTokensNum = 0;
uint256 possibleTokensToClaim = 0;
uint256 totalRewardsNum = 0;
for (uint256 i = 0; i < _toClaim.length; i++) {
possibleTokensToClaim += _toClaim[i].tokens.length;
}
UserClaimLog[] memory claimedTokens = new UserClaimLog[](possibleTokensToClaim);
for (uint256 i = 0; i < _toClaim.length; i++) {
for (uint256 j = 0; j < claims.length; j++) {
if (!claims[j].active) {
continue;
}
if (claims[j].addr == _toClaim[i].addr) {
for (uint256 k = 0; k < _toClaim[i].tokens.length; k++) {
uint256 tokenID = _toClaim[i].tokens[k];
if (
(claims[j].tokens[tokenID].claimedTokensNum == 0 &&
claims[j].tokens[tokenID].lastClaimTs == 0) ||
(claims[j].tokens[tokenID].claimedTokensNum < claims[j].maxDegensPerToken &&
block.timestamp >= claims[j].tokens[tokenID].lastClaimTs + claims[j].claimTimeInterval)
) {
// not set, check if owner of token
if (IERC721(claims[j].addr).ownerOf(tokenID) == msg.sender) {
claims[j].tokens[tokenID].claimedTokensNum += claims[j].claimNumPerInterval;
claims[j].tokens[tokenID].lastClaimTs = block.timestamp;
claimedTokens[totalRewardsNum] = UserClaimLog(claims[j].addr, tokenID);
claimableTokensNum += claims[j].claimNumPerInterval;
totalRewardsNum++;
}
}
}
}
}
}
require(claimableTokensNum > 0, "nothing to claim");
IERC20(this).transfer(msg.sender, claimableTokensNum);
// emit logs for every collection
for (uint256 i = 0; i < claims.length; i++) {
// count tokens for current collection, needed to get size for allocating dynamic array used in log
uint256 tokensNum = 0;
for (uint256 j = 0; j < claimedTokens.length; j++) {
if (claimedTokens[j].addr == claims[i].addr) {
tokensNum++;
}
}
// skip if no tokens for that collection
if (tokensNum == 0) {
continue;
}
uint256[] memory claimedForAddr = new uint256[](tokensNum);
uint256 currentlogLength = 0;
for (uint256 j = 0; j < claimedTokens.length; j++) {
if (claimedTokens[j].addr == claims[i].addr) {
claimedForAddr[currentlogLength] = claimedTokens[j].token;
currentlogLength++;
}
}
if (claimedForAddr.length > 0) {
emit TokensClaimed(claims[i].addr, claimedForAddr);
}
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal override whenNotPaused {
super._beforeTokenTransfer(from, to, amount);
}
function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
IERC20(tokenAddress).safeTransfer(msg.sender, tokenAmount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)
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:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, 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}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, 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}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, 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) {
address owner = _msgSender();
_approve(owner, spender, _allowances[owner][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) {
address owner = _msgSender();
uint256 currentAllowance = _allowances[owner][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, 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:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
}
_balances[to] += amount;
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, 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 Spend `amount` form the allowance of `owner` toward `spender`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - 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
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
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() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol)
pragma solidity ^0.8.0;
import "./draft-IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/draft-EIP712.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/Counters.sol";
/**
* @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* _Available since v3.4._
*/
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
using Counters for Counters.Counter;
mapping(address => Counters.Counter) private _nonces;
// solhint-disable-next-line var-name-mixedcase
bytes32 private immutable _PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
/**
* @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
*
* It's a good idea to use the same `name` that is defined as the ERC20 token name.
*/
constructor(string memory name) EIP712(name, "1") {}
/**
* @dev See {IERC20Permit-permit}.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual override {
require(block.timestamp <= deadline, "ERC20Permit: expired deadline");
bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));
bytes32 hash = _hashTypedDataV4(structHash);
address signer = ECDSA.recover(hash, v, r, s);
require(signer == owner, "ERC20Permit: invalid signature");
_approve(owner, spender, value);
}
/**
* @dev See {IERC20Permit-nonces}.
*/
function nonces(address owner) public view virtual override returns (uint256) {
return _nonces[owner].current();
}
/**
* @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view override returns (bytes32) {
return _domainSeparatorV4();
}
/**
* @dev "Consume a nonce": return the current value and increment.
*
* _Available since v4.1._
*/
function _useNonce(address owner) internal virtual returns (uint256 current) {
Counters.Counter storage nonce = _nonces[owner];
current = nonce.current();
nonce.increment();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @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
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
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
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev 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
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)
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;
address private immutable _CACHED_THIS;
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);
_CACHED_THIS = address(this);
_TYPE_HASH = typeHash;
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (address(this) == _CACHED_THIS && 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
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @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
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
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
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"ClaimActiveChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"enum DegenToken.ClaimContractAttribute","name":"attribute","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ClaimAttributesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxDegensPerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimNumPerInterval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimTimeInterval","type":"uint256"},{"indexed":false,"internalType":"bool","name":"initInPast","type":"bool"}],"name":"NewTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_active","type":"bool"},{"internalType":"uint256","name":"_maxDegensPerToken","type":"uint256"},{"internalType":"uint256","name":"_claimNumPerInterval","type":"uint256"},{"internalType":"uint256","name":"_claimTimeInterval","type":"uint256"},{"internalType":"bool","name":"_initInPast","type":"bool"}],"name":"addNewContractForClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"internalType":"struct DegenToken.UserClaim[]","name":"_toClaim","type":"tuple[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getClaimContractAttributes","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"maxDegensPerToken","type":"uint256"},{"internalType":"uint256","name":"claimNumPerInterval","type":"uint256"},{"internalType":"uint256","name":"claimTimeInterval","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"getClaimedDegensForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"getLastTimeTokenWasClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"isTokenFullyClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setClaimContractActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"enum DegenToken.ClaimContractAttribute","name":"_attributeType","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setClaimContractAttributes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140908152503480156200003a57600080fd5b506040518060400160405280600e81526020017f446567656e4c616273546f6b656e000000000000000000000000000000000000815250806040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152506040518060400160405280600e81526020017f446567656e4c616273546f6b656e0000000000000000000000000000000000008152506040518060400160405280600681526020017f4445474c4142000000000000000000000000000000000000000000000000000081525081600390816200012591906200080b565b5080600490816200013791906200080b565b5050506000600560006101000a81548160ff02191690831515021790555062000175620001696200027560201b60201c565b6200027d60201b60201c565b60008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a08181525050620001de8184846200034360201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505080610120818152505050505050505060016007819055506200026f30620002456200037f60201b60201c565b600a62000253919062000a82565b620f424062000263919062000ad3565b6200038860201b60201c565b62000d71565b600033905090565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600083838346306040516020016200036095949392919062000ba5565b6040516020818303038152906040528051906020012090509392505050565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003f19062000c63565b60405180910390fd5b6200040e600083836200050060201b60201c565b806002600082825462000422919062000c85565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000479919062000c85565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620004e0919062000ce2565b60405180910390a3620004fc600083836200057060201b60201c565b5050565b620005106200057560201b60201c565b1562000553576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200054a9062000d4f565b60405180910390fd5b6200056b8383836200058c60201b6200277b1760201c565b505050565b505050565b6000600560009054906101000a900460ff16905090565b505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200061357607f821691505b602082108103620006295762000628620005cb565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000654565b6200069f868362000654565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006ec620006e6620006e084620006b7565b620006c1565b620006b7565b9050919050565b6000819050919050565b6200070883620006cb565b620007206200071782620006f3565b84845462000661565b825550505050565b600090565b6200073762000728565b62000744818484620006fd565b505050565b5b818110156200076c57620007606000826200072d565b6001810190506200074a565b5050565b601f821115620007bb5762000785816200062f565b620007908462000644565b81016020851015620007a0578190505b620007b8620007af8562000644565b83018262000749565b50505b505050565b600082821c905092915050565b6000620007e060001984600802620007c0565b1980831691505092915050565b6000620007fb8383620007cd565b9150826002028217905092915050565b620008168262000591565b67ffffffffffffffff8111156200083257620008316200059c565b5b6200083e8254620005fa565b6200084b82828562000770565b600060209050601f8311600181146200088357600084156200086e578287015190505b6200087a8582620007ed565b865550620008ea565b601f19841662000893866200062f565b60005b82811015620008bd5784890151825560018201915060208501945060208101905062000896565b86831015620008dd5784890151620008d9601f891682620007cd565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b60018511156200098057808604811115620009585762000957620008f2565b5b6001851615620009685780820291505b8081029050620009788562000921565b945062000938565b94509492505050565b6000826200099b576001905062000a6e565b81620009ab576000905062000a6e565b8160018114620009c45760028114620009cf5762000a05565b600191505062000a6e565b60ff841115620009e457620009e3620008f2565b5b8360020a915084821115620009fe57620009fd620008f2565b5b5062000a6e565b5060208310610133831016604e8410600b841016171562000a3f5782820a90508381111562000a395762000a38620008f2565b5b62000a6e565b62000a4e84848460016200092e565b9250905081840481111562000a685762000a67620008f2565b5b81810290505b9392505050565b600060ff82169050919050565b600062000a8f82620006b7565b915062000a9c8362000a75565b925062000acb7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000989565b905092915050565b600062000ae082620006b7565b915062000aed83620006b7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000b295762000b28620008f2565b5b828202905092915050565b6000819050919050565b62000b498162000b34565b82525050565b62000b5a81620006b7565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b8d8262000b60565b9050919050565b62000b9f8162000b80565b82525050565b600060a08201905062000bbc600083018862000b3e565b62000bcb602083018762000b3e565b62000bda604083018662000b3e565b62000be9606083018562000b4f565b62000bf8608083018462000b94565b9695505050505050565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600062000c4b601f8362000c02565b915062000c588262000c13565b602082019050919050565b6000602082019050818103600083015262000c7e8162000c3c565b9050919050565b600062000c9282620006b7565b915062000c9f83620006b7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000cd75762000cd6620008f2565b5b828201905092915050565b600060208201905062000cf9600083018462000b4f565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000d3760108362000c02565b915062000d448262000cff565b602082019050919050565b6000602082019050818103600083015262000d6a8162000d28565b9050919050565b60805160a05160c05160e05161010051610120516101405161550162000dcc600039600061196301526000612d0a01526000612d4c01526000612d2b01526000612c6001526000612cb601526000612cdf01526155016000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806379cc67901161010f578063a9059cbb116100a2578063d505accf11610071578063d505accf14610595578063dbdc7148146105b1578063dd62ed3e146105cd578063f2fde38b146105fd576101e5565b8063a9059cbb146104e6578063ac9eec6f14610516578063aefc2a5b14610549578063c455867314610565576101e5565b80638980f11f116100de5780638980f11f1461045e5780638da5cb5b1461047a57806395d89b4114610498578063a457c2d7146104b6576101e5565b806379cc6790146103d85780637ecebe00146103f45780638456cb591461042457806387178dc51461042e576101e5565b80633644e515116101875780635c975abb116101565780635c975abb14610350578063649526901461036e57806370a082311461039e578063715018a6146103ce576101e5565b80633644e515146102dc57806339509351146102fa5780633f4ba83a1461032a57806342966c6814610334576101e5565b806318160ddd116101c357806318160ddd14610254578063212e92b61461027257806323b872dd1461028e578063313ce567146102be576101e5565b806305814416146101ea57806306fdde0314610206578063095ea7b314610224575b600080fd5b61020460048036038101906101ff9190613993565b610619565b005b61020e610801565b60405161021b9190613a6c565b60405180910390f35b61023e60048036038101906102399190613ac4565b610893565b60405161024b9190613b13565b60405180910390f35b61025c6108b6565b6040516102699190613b3d565b60405180910390f35b61028c60048036038101906102879190613b58565b6108c0565b005b6102a860048036038101906102a39190613be5565b610b1a565b6040516102b59190613b13565b60405180910390f35b6102c6610b49565b6040516102d39190613c54565b60405180910390f35b6102e4610b52565b6040516102f19190613c88565b60405180910390f35b610314600480360381019061030f9190613ac4565b610b61565b6040516103219190613b13565b60405180910390f35b610332610c0b565b005b61034e60048036038101906103499190613ca3565b610c91565b005b610358610ca5565b6040516103659190613b13565b60405180910390f35b61038860048036038101906103839190613ac4565b610cbc565b6040516103959190613b13565b60405180910390f35b6103b860048036038101906103b39190613cd0565b610e08565b6040516103c59190613b3d565b60405180910390f35b6103d6610e50565b005b6103f260048036038101906103ed9190613ac4565b610ed8565b005b61040e60048036038101906104099190613cd0565b610ef8565b60405161041b9190613b3d565b60405180910390f35b61042c610f48565b005b61044860048036038101906104439190613ac4565b610fce565b6040516104559190613b3d565b60405180910390f35b61047860048036038101906104739190613ac4565b6110f2565b005b61048261119d565b60405161048f9190613d0c565b60405180910390f35b6104a06111c7565b6040516104ad9190613a6c565b60405180910390f35b6104d060048036038101906104cb9190613ac4565b611259565b6040516104dd9190613b13565b60405180910390f35b61050060048036038101906104fb9190613ac4565b611343565b60405161050d9190613b13565b60405180910390f35b610530600480360381019061052b9190613cd0565b611366565b6040516105409493929190613d27565b60405180910390f35b610563600480360381019061055e9190613d91565b6114fd565b005b61057f600480360381019061057a9190613ac4565b6117f8565b60405161058c9190613b3d565b60405180910390f35b6105af60048036038101906105aa9190613e3c565b61191c565b005b6105cb60048036038101906105c69190613f43565b611a5e565b005b6105e760048036038101906105e29190613f90565b6125fd565b6040516105f49190613b3d565b60405180910390f35b61061760048036038101906106129190613cd0565b612684565b005b610621612780565b73ffffffffffffffffffffffffffffffffffffffff1661063f61119d565b73ffffffffffffffffffffffffffffffffffffffff1614610695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068c9061401c565b60405180910390fd5b60005b6008805490508110156107c1578273ffffffffffffffffffffffffffffffffffffffff16600882815481106106d0576106cf61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036107ae5781600882815481106107325761073161403c565b5b906000526020600020906005020160000160146101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff167fcfac0d114d14393344fe66cb124151c2877a3634ed09c8ee2994553274cbc256836040516107a09190613b13565b60405180910390a2506107fd565b80806107b99061409a565b915050610698565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f49061412e565b60405180910390fd5b5050565b6060600380546108109061417d565b80601f016020809104026020016040519081016040528092919081815260200182805461083c9061417d565b80156108895780601f1061085e57610100808354040283529160200191610889565b820191906000526020600020905b81548152906001019060200180831161086c57829003601f168201915b5050505050905090565b60008061089e612780565b90506108ab818585612788565b600191505092915050565b6000600254905090565b6108c8612780565b73ffffffffffffffffffffffffffffffffffffffff166108e661119d565b73ffffffffffffffffffffffffffffffffffffffff161461093c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109339061401c565b60405180910390fd5b60005b600880549050811015610a12578673ffffffffffffffffffffffffffffffffffffffff16600882815481106109775761097661403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036109ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f6906141fa565b60405180910390fd5b8080610a0a9061409a565b91505061093f565b50600060086001816001815401808255809150500390600052602060002090600502019050868160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858160000160146101000a81548160ff0219169083151502179055508481600101819055508381600201819055508281600301819055508673ffffffffffffffffffffffffffffffffffffffff167f04375369b566d2cee124326d50369a849c19965a32d314d8a693f362f25af4b182600101548360020154846003015486604051610b09949392919061421a565b60405180910390a250505050505050565b600080610b25612780565b9050610b32858285612951565b610b3d8585856129dd565b60019150509392505050565b60006012905090565b6000610b5c612c5c565b905090565b600080610b6c612780565b9050610c00818585600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfb919061425f565b612788565b600191505092915050565b610c13612780565b73ffffffffffffffffffffffffffffffffffffffff16610c3161119d565b73ffffffffffffffffffffffffffffffffffffffff1614610c87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7e9061401c565b60405180910390fd5b610c8f612d76565b565b610ca2610c9c612780565b82612e18565b50565b6000600560009054906101000a900460ff16905090565b600080600090505b600880549050811015610dc6578373ffffffffffffffffffffffffffffffffffffffff1660088281548110610cfc57610cfb61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610db35760088181548110610d5d57610d5c61403c565b5b90600052602060002090600502016001015460088281548110610d8357610d8261403c565b5b90600052602060002090600502016004016000858152602001908152602001600020600101541015915050610e02565b8080610dbe9061409a565b915050610cc4565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df99061412e565b60405180910390fd5b92915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e58612780565b73ffffffffffffffffffffffffffffffffffffffff16610e7661119d565b73ffffffffffffffffffffffffffffffffffffffff1614610ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec39061401c565b60405180910390fd5b610ed66000612fee565b565b610eea82610ee4612780565b83612951565b610ef48282612e18565b5050565b6000610f41600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206130b4565b9050919050565b610f50612780565b73ffffffffffffffffffffffffffffffffffffffff16610f6e61119d565b73ffffffffffffffffffffffffffffffffffffffff1614610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb9061401c565b60405180910390fd5b610fcc6130c2565b565b600080600090505b6008805490508110156110b0578373ffffffffffffffffffffffffffffffffffffffff166008828154811061100e5761100d61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361109d576008818154811061106f5761106e61403c565b5b90600052602060002090600502016004016000848152602001908152602001600020600101549150506110ec565b80806110a89061409a565b915050610fd6565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e39061412e565b60405180910390fd5b92915050565b6110fa612780565b73ffffffffffffffffffffffffffffffffffffffff1661111861119d565b73ffffffffffffffffffffffffffffffffffffffff161461116e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111659061401c565b60405180910390fd5b61119933828473ffffffffffffffffffffffffffffffffffffffff166131659092919063ffffffff16565b5050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546111d69061417d565b80601f01602080910402602001604051908101604052809291908181526020018280546112029061417d565b801561124f5780601f106112245761010080835404028352916020019161124f565b820191906000526020600020905b81548152906001019060200180831161123257829003601f168201915b5050505050905090565b600080611264612780565b90506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561132a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132190614327565b60405180910390fd5b6113378286868403612788565b60019250505092915050565b60008061134e612780565b905061135b8185856129dd565b600191505092915050565b60008060008060005b6008805490508110156114ba578573ffffffffffffffffffffffffffffffffffffffff16600882815481106113a7576113a661403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036114a757600881815481106114085761140761403c565b5b906000526020600020906005020160000160149054906101000a900460ff166008828154811061143b5761143a61403c565b5b906000526020600020906005020160010154600883815481106114615761146061403c565b5b906000526020600020906005020160020154600884815481106114875761148661403c565b5b9060005260206000209060050201600301549450945094509450506114f6565b80806114b29061409a565b91505061136f565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ed9061412e565b60405180910390fd5b9193509193565b611505612780565b73ffffffffffffffffffffffffffffffffffffffff1661152361119d565b73ffffffffffffffffffffffffffffffffffffffff1614611579576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115709061401c565b60405180910390fd5b60005b6008805490508110156117b7578373ffffffffffffffffffffffffffffffffffffffff16600882815481106115b4576115b361403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036117a4576000600281111561161557611614614347565b5b83600281111561162857611627614347565b5b0361165c5781600882815481106116425761164161403c565b5b90600052602060002090600502016001018190555061174e565b600160028111156116705761166f614347565b5b83600281111561168357611682614347565b5b036116b757816008828154811061169d5761169c61403c565b5b90600052602060002090600502016002018190555061174d565b6002808111156116ca576116c9614347565b5b8360028111156116dd576116dc614347565b5b036117115781600882815481106116f7576116f661403c565b5b90600052602060002090600502016003018190555061174c565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611743906143c2565b60405180910390fd5b5b5b8373ffffffffffffffffffffffffffffffffffffffff167ffb0a0f2b17404f00ba6cb0934ec8f76603d4274b77dd7cab674b30a6eab1e3c5848460405161179692919061442a565b60405180910390a2506117f3565b80806117af9061409a565b91505061157c565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ea9061412e565b60405180910390fd5b505050565b600080600090505b6008805490508110156118da578373ffffffffffffffffffffffffffffffffffffffff16600882815481106118385761183761403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036118c757600881815481106118995761189861403c565b5b9060005260206000209060050201600401600084815260200190815260200160002060000154915050611916565b80806118d29061409a565b915050611800565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d9061412e565b60405180910390fd5b92915050565b8342111561195f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119569061449f565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000088888861198e8c6131eb565b896040516020016119a4969594939291906144bf565b60405160208183030381529060405280519060200120905060006119c782613249565b905060006119d782878787613263565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061456c565b60405180910390fd5b611a528a8a8a612788565b50505050505050505050565b600260075403611aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9a906145d8565b60405180910390fd5b6002600781905550611ab3610ca5565b15611af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aea90614644565b60405180910390fd5b60008282905011611b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b30906146b0565b60405180910390fd5b60005b82829050811015611bd2576000838383818110611b5c57611b5b61403c565b5b9050602002810190611b6e91906146df565b8060200190611b7d9190614707565b905011611bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb6906147b6565b60405180910390fd5b8080611bca9061409a565b915050611b3c565b506000806000805b85859050811015611c3b57858582818110611bf857611bf761403c565b5b9050602002810190611c0a91906146df565b8060200190611c199190614707565b905083611c26919061425f565b92508080611c339061409a565b915050611bda565b5060008267ffffffffffffffff811115611c5857611c576147d6565b5b604051908082528060200260200182016040528015611c9157816020015b611c7e6138c3565b815260200190600190039081611c765790505b50905060005b8686905081101561223f5760005b60088054905081101561222b5760088181548110611cc657611cc561403c565b5b906000526020600020906005020160000160149054906101000a900460ff161561221857878783818110611cfd57611cfc61403c565b5b9050602002810190611d0f91906146df565b6000016020810190611d219190613cd0565b73ffffffffffffffffffffffffffffffffffffffff1660088281548110611d4b57611d4a61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036122175760005b888884818110611dae57611dad61403c565b5b9050602002810190611dc091906146df565b8060200190611dcf9190614707565b9050811015612215576000898985818110611ded57611dec61403c565b5b9050602002810190611dff91906146df565b8060200190611e0e9190614707565b83818110611e1f57611e1e61403c565b5b905060200201359050600060088481548110611e3e57611e3d61403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060010154148015611eaa5750600060088481548110611e8257611e8161403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060000154145b80611f87575060088381548110611ec457611ec361403c565b5b90600052602060002090600502016001015460088481548110611eea57611ee961403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060010154108015611f86575060088381548110611f2c57611f2b61403c565b5b90600052602060002090600502016003015460088481548110611f5257611f5161403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060000154611f82919061425f565b4210155b5b15612201573373ffffffffffffffffffffffffffffffffffffffff1660088481548110611fb757611fb661403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016120219190613b3d565b602060405180830381865afa15801561203e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612062919061481a565b73ffffffffffffffffffffffffffffffffffffffff160361220057600883815481106120915761209061403c565b5b906000526020600020906005020160020154600884815481106120b7576120b661403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060010160008282546120eb919061425f565b9250508190555042600884815481106121075761210661403c565b5b906000526020600020906005020160040160008381526020019081526020016000206000018190555060405180604001604052806008858154811061214f5761214e61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152508587815181106121b3576121b261403c565b5b6020026020010181905250600883815481106121d2576121d161403c565b5b906000526020600020906005020160020154886121ef919061425f565b975085806121fc9061409a565b9650505b5b50808061220d9061409a565b915050611d9b565b505b5b80806122239061409a565b915050611ca5565b5080806122379061409a565b915050611c97565b5060008411612283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227a90614893565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff1660e01b81526004016122be9291906148b3565b6020604051808303816000875af11580156122dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230191906148f1565b5060005b6008805490508110156125ec576000805b83518110156123d757600883815481106123335761233261403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1684828151811061238e5761238d61403c565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16036123c45781806123c09061409a565b9250505b80806123cf9061409a565b915050612316565b50600081036123e657506125d9565b60008167ffffffffffffffff811115612402576124016147d6565b5b6040519080825280602002602001820160405280156124305781602001602082028036833780820191505090505b5090506000805b855181101561253657600885815481106124545761245361403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168682815181106124af576124ae61403c565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1603612523578581815181106124e9576124e861403c565b5b6020026020010151602001518383815181106125085761250761403c565b5b602002602001018181525050818061251f9061409a565b9250505b808061252e9061409a565b915050612437565b506000825111156125d557600884815481106125555761255461403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2ed48368de79b173beedca1e8032871f3f17b79b90846860673ab50f234273e1836040516125cc91906149dc565b60405180910390a25b5050505b80806125e49061409a565b915050612305565b505050505060016007819055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61268c612780565b73ffffffffffffffffffffffffffffffffffffffff166126aa61119d565b73ffffffffffffffffffffffffffffffffffffffff1614612700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f79061401c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361276f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276690614a70565b60405180910390fd5b61277881612fee565b50565b505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ee90614b02565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285d90614b94565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516129449190613b3d565b60405180910390a3505050565b600061295d84846125fd565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146129d757818110156129c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c090614c00565b60405180910390fd5b6129d68484848403612788565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4390614c92565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab290614d24565b60405180910390fd5b612ac683838361328e565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4390614db6565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bdf919061425f565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c439190613b3d565b60405180910390a3612c568484846132e6565b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015612cd857507f000000000000000000000000000000000000000000000000000000000000000046145b15612d05577f00000000000000000000000000000000000000000000000000000000000000009050612d73565b612d707f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006132eb565b90505b90565b612d7e610ca5565b612dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db490614e22565b60405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612e01612780565b604051612e0e9190613d0c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7e90614eb4565b60405180910390fd5b612e938260008361328e565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1090614f46565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254612f709190614f66565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612fd59190613b3d565b60405180910390a3612fe9836000846132e6565b505050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b6130ca610ca5565b1561310a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310190614644565b60405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861314e612780565b60405161315b9190613d0c565b60405180910390a1565b6131e68363a9059cbb60e01b84846040516024016131849291906148b3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613325565b505050565b600080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050613238816130b4565b9150613243816133ec565b50919050565b600061325c613256612c5c565b83613402565b9050919050565b600080600061327487878787613435565b9150915061328181613541565b8192505050949350505050565b613296610ca5565b156132d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cd90614644565b60405180910390fd5b6132e183838361277b565b505050565b505050565b60008383834630604051602001613306959493929190614f9a565b6040516020818303038152906040528051906020012090509392505050565b6000613387826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661370d9092919063ffffffff16565b90506000815111156133e757808060200190518101906133a791906148f1565b6133e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133dd9061505f565b60405180910390fd5b5b505050565b6001816000016000828254019250508190555050565b600082826040516020016134179291906150f7565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613470576000600391509150613538565b601b8560ff16141580156134885750601c8560ff1614155b1561349a576000600491509150613538565b6000600187878787604051600081526020016040526040516134bf949392919061512e565b6020604051602081039080840390855afa1580156134e1573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361352f57600060019250925050613538565b80600092509250505b94509492505050565b6000600481111561355557613554614347565b5b81600481111561356857613567614347565b5b031561370a576001600481111561358257613581614347565b5b81600481111561359557613594614347565b5b036135d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cc906151bf565b60405180910390fd5b600260048111156135e9576135e8614347565b5b8160048111156135fc576135fb614347565b5b0361363c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136339061522b565b60405180910390fd5b600360048111156136505761364f614347565b5b81600481111561366357613662614347565b5b036136a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369a906152bd565b60405180910390fd5b6004808111156136b6576136b5614347565b5b8160048111156136c9576136c8614347565b5b03613709576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137009061534f565b60405180910390fd5b5b50565b606061371c8484600085613725565b90509392505050565b60608247101561376a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613761906153e1565b60405180910390fd5b61377385613839565b6137b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a99061544d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516137db91906154b4565b60006040518083038185875af1925050503d8060008114613818576040519150601f19603f3d011682016040523d82523d6000602084013e61381d565b606091505b509150915061382d82828661385c565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561386c578290506138bc565b60008351111561387f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138b39190613a6c565b60405180910390fd5b9392505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613928826138fd565b9050919050565b6139388161391d565b811461394357600080fd5b50565b6000813590506139558161392f565b92915050565b60008115159050919050565b6139708161395b565b811461397b57600080fd5b50565b60008135905061398d81613967565b92915050565b600080604083850312156139aa576139a96138f3565b5b60006139b885828601613946565b92505060206139c98582860161397e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a0d5780820151818401526020810190506139f2565b83811115613a1c576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a3e826139d3565b613a4881856139de565b9350613a588185602086016139ef565b613a6181613a22565b840191505092915050565b60006020820190508181036000830152613a868184613a33565b905092915050565b6000819050919050565b613aa181613a8e565b8114613aac57600080fd5b50565b600081359050613abe81613a98565b92915050565b60008060408385031215613adb57613ada6138f3565b5b6000613ae985828601613946565b9250506020613afa85828601613aaf565b9150509250929050565b613b0d8161395b565b82525050565b6000602082019050613b286000830184613b04565b92915050565b613b3781613a8e565b82525050565b6000602082019050613b526000830184613b2e565b92915050565b60008060008060008060c08789031215613b7557613b746138f3565b5b6000613b8389828a01613946565b9650506020613b9489828a0161397e565b9550506040613ba589828a01613aaf565b9450506060613bb689828a01613aaf565b9350506080613bc789828a01613aaf565b92505060a0613bd889828a0161397e565b9150509295509295509295565b600080600060608486031215613bfe57613bfd6138f3565b5b6000613c0c86828701613946565b9350506020613c1d86828701613946565b9250506040613c2e86828701613aaf565b9150509250925092565b600060ff82169050919050565b613c4e81613c38565b82525050565b6000602082019050613c696000830184613c45565b92915050565b6000819050919050565b613c8281613c6f565b82525050565b6000602082019050613c9d6000830184613c79565b92915050565b600060208284031215613cb957613cb86138f3565b5b6000613cc784828501613aaf565b91505092915050565b600060208284031215613ce657613ce56138f3565b5b6000613cf484828501613946565b91505092915050565b613d068161391d565b82525050565b6000602082019050613d216000830184613cfd565b92915050565b6000608082019050613d3c6000830187613b04565b613d496020830186613b2e565b613d566040830185613b2e565b613d636060830184613b2e565b95945050505050565b60038110613d7957600080fd5b50565b600081359050613d8b81613d6c565b92915050565b600080600060608486031215613daa57613da96138f3565b5b6000613db886828701613946565b9350506020613dc986828701613d7c565b9250506040613dda86828701613aaf565b9150509250925092565b613ded81613c38565b8114613df857600080fd5b50565b600081359050613e0a81613de4565b92915050565b613e1981613c6f565b8114613e2457600080fd5b50565b600081359050613e3681613e10565b92915050565b600080600080600080600060e0888a031215613e5b57613e5a6138f3565b5b6000613e698a828b01613946565b9750506020613e7a8a828b01613946565b9650506040613e8b8a828b01613aaf565b9550506060613e9c8a828b01613aaf565b9450506080613ead8a828b01613dfb565b93505060a0613ebe8a828b01613e27565b92505060c0613ecf8a828b01613e27565b91505092959891949750929550565b600080fd5b600080fd5b600080fd5b60008083601f840112613f0357613f02613ede565b5b8235905067ffffffffffffffff811115613f2057613f1f613ee3565b5b602083019150836020820283011115613f3c57613f3b613ee8565b5b9250929050565b60008060208385031215613f5a57613f596138f3565b5b600083013567ffffffffffffffff811115613f7857613f776138f8565b5b613f8485828601613eed565b92509250509250929050565b60008060408385031215613fa757613fa66138f3565b5b6000613fb585828601613946565b9250506020613fc685828601613946565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140066020836139de565b915061401182613fd0565b602082019050919050565b6000602082019050818103600083015261403581613ff9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140a582613a8e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036140d7576140d661406b565b5b600182019050919050565b7f636f6e7472616374206e6f7420666f756e640000000000000000000000000000600082015250565b60006141186012836139de565b9150614123826140e2565b602082019050919050565b600060208201905081810360008301526141478161410b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061419557607f821691505b6020821081036141a8576141a761414e565b5b50919050565b7f616c726561647920616464656400000000000000000000000000000000000000600082015250565b60006141e4600d836139de565b91506141ef826141ae565b602082019050919050565b60006020820190508181036000830152614213816141d7565b9050919050565b600060808201905061422f6000830187613b2e565b61423c6020830186613b2e565b6142496040830185613b2e565b6142566060830184613b04565b95945050505050565b600061426a82613a8e565b915061427583613a8e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156142aa576142a961406b565b5b828201905092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006143116025836139de565b915061431c826142b5565b604082019050919050565b6000602082019050818103600083015261434081614304565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f696e76616c696420617474726962757465000000000000000000000000000000600082015250565b60006143ac6011836139de565b91506143b782614376565b602082019050919050565b600060208201905081810360008301526143db8161439f565b9050919050565b600381106143f3576143f2614347565b5b50565b6000819050614404826143e2565b919050565b6000614414826143f6565b9050919050565b61442481614409565b82525050565b600060408201905061443f600083018561441b565b61444c6020830184613b2e565b9392505050565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b6000614489601d836139de565b915061449482614453565b602082019050919050565b600060208201905081810360008301526144b88161447c565b9050919050565b600060c0820190506144d46000830189613c79565b6144e16020830188613cfd565b6144ee6040830187613cfd565b6144fb6060830186613b2e565b6145086080830185613b2e565b61451560a0830184613b2e565b979650505050505050565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b6000614556601e836139de565b915061456182614520565b602082019050919050565b6000602082019050818103600083015261458581614549565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006145c2601f836139de565b91506145cd8261458c565b602082019050919050565b600060208201905081810360008301526145f1816145b5565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061462e6010836139de565b9150614639826145f8565b602082019050919050565b6000602082019050818103600083015261465d81614621565b9050919050565b7f656d70747920706172616d730000000000000000000000000000000000000000600082015250565b600061469a600c836139de565b91506146a582614664565b602082019050919050565b600060208201905081810360008301526146c98161468d565b9050919050565b600080fd5b600080fd5b600080fd5b6000823560016040038336030381126146fb576146fa6146d0565b5b80830191505092915050565b60008083356001602003843603038112614724576147236146d0565b5b80840192508235915067ffffffffffffffff821115614746576147456146d5565b5b602083019250602082023603831315614762576147616146da565b5b509250929050565b7f656d70747920746f6b656e730000000000000000000000000000000000000000600082015250565b60006147a0600c836139de565b91506147ab8261476a565b602082019050919050565b600060208201905081810360008301526147cf81614793565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000815190506148148161392f565b92915050565b6000602082840312156148305761482f6138f3565b5b600061483e84828501614805565b91505092915050565b7f6e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b600061487d6010836139de565b915061488882614847565b602082019050919050565b600060208201905081810360008301526148ac81614870565b9050919050565b60006040820190506148c86000830185613cfd565b6148d56020830184613b2e565b9392505050565b6000815190506148eb81613967565b92915050565b600060208284031215614907576149066138f3565b5b6000614915848285016148dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61495381613a8e565b82525050565b6000614965838361494a565b60208301905092915050565b6000602082019050919050565b60006149898261491e565b6149938185614929565b935061499e8361493a565b8060005b838110156149cf5781516149b68882614959565b97506149c183614971565b9250506001810190506149a2565b5085935050505092915050565b600060208201905081810360008301526149f6818461497e565b905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a5a6026836139de565b9150614a65826149fe565b604082019050919050565b60006020820190508181036000830152614a8981614a4d565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614aec6024836139de565b9150614af782614a90565b604082019050919050565b60006020820190508181036000830152614b1b81614adf565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b7e6022836139de565b9150614b8982614b22565b604082019050919050565b60006020820190508181036000830152614bad81614b71565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614bea601d836139de565b9150614bf582614bb4565b602082019050919050565b60006020820190508181036000830152614c1981614bdd565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614c7c6025836139de565b9150614c8782614c20565b604082019050919050565b60006020820190508181036000830152614cab81614c6f565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d0e6023836139de565b9150614d1982614cb2565b604082019050919050565b60006020820190508181036000830152614d3d81614d01565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614da06026836139de565b9150614dab82614d44565b604082019050919050565b60006020820190508181036000830152614dcf81614d93565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614e0c6014836139de565b9150614e1782614dd6565b602082019050919050565b60006020820190508181036000830152614e3b81614dff565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e9e6021836139de565b9150614ea982614e42565b604082019050919050565b60006020820190508181036000830152614ecd81614e91565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f306022836139de565b9150614f3b82614ed4565b604082019050919050565b60006020820190508181036000830152614f5f81614f23565b9050919050565b6000614f7182613a8e565b9150614f7c83613a8e565b925082821015614f8f57614f8e61406b565b5b828203905092915050565b600060a082019050614faf6000830188613c79565b614fbc6020830187613c79565b614fc96040830186613c79565b614fd66060830185613b2e565b614fe36080830184613cfd565b9695505050505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615049602a836139de565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006150c060028361507f565b91506150cb8261508a565b600282019050919050565b6000819050919050565b6150f16150ec82613c6f565b6150d6565b82525050565b6000615102826150b3565b915061510e82856150e0565b60208201915061511e82846150e0565b6020820191508190509392505050565b60006080820190506151436000830187613c79565b6151506020830186613c45565b61515d6040830185613c79565b61516a6060830184613c79565b95945050505050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006151a96018836139de565b91506151b482615173565b602082019050919050565b600060208201905081810360008301526151d88161519c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615215601f836139de565b9150615220826151df565b602082019050919050565b6000602082019050818103600083015261524481615208565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006152a76022836139de565b91506152b28261524b565b604082019050919050565b600060208201905081810360008301526152d68161529a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006153396022836139de565b9150615344826152dd565b604082019050919050565b600060208201905081810360008301526153688161532c565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006153cb6026836139de565b91506153d68261536f565b604082019050919050565b600060208201905081810360008301526153fa816153be565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615437601d836139de565b915061544282615401565b602082019050919050565b600060208201905081810360008301526154668161542a565b9050919050565b600081519050919050565b600081905092915050565b600061548e8261546d565b6154988185615478565b93506154a88185602086016139ef565b80840191505092915050565b60006154c08284615483565b91508190509291505056fea26469706673582212208567e614fe1aa5a362e59f8942774b8aad510ea85d9eeacdbea815885d59c1ea64736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c806379cc67901161010f578063a9059cbb116100a2578063d505accf11610071578063d505accf14610595578063dbdc7148146105b1578063dd62ed3e146105cd578063f2fde38b146105fd576101e5565b8063a9059cbb146104e6578063ac9eec6f14610516578063aefc2a5b14610549578063c455867314610565576101e5565b80638980f11f116100de5780638980f11f1461045e5780638da5cb5b1461047a57806395d89b4114610498578063a457c2d7146104b6576101e5565b806379cc6790146103d85780637ecebe00146103f45780638456cb591461042457806387178dc51461042e576101e5565b80633644e515116101875780635c975abb116101565780635c975abb14610350578063649526901461036e57806370a082311461039e578063715018a6146103ce576101e5565b80633644e515146102dc57806339509351146102fa5780633f4ba83a1461032a57806342966c6814610334576101e5565b806318160ddd116101c357806318160ddd14610254578063212e92b61461027257806323b872dd1461028e578063313ce567146102be576101e5565b806305814416146101ea57806306fdde0314610206578063095ea7b314610224575b600080fd5b61020460048036038101906101ff9190613993565b610619565b005b61020e610801565b60405161021b9190613a6c565b60405180910390f35b61023e60048036038101906102399190613ac4565b610893565b60405161024b9190613b13565b60405180910390f35b61025c6108b6565b6040516102699190613b3d565b60405180910390f35b61028c60048036038101906102879190613b58565b6108c0565b005b6102a860048036038101906102a39190613be5565b610b1a565b6040516102b59190613b13565b60405180910390f35b6102c6610b49565b6040516102d39190613c54565b60405180910390f35b6102e4610b52565b6040516102f19190613c88565b60405180910390f35b610314600480360381019061030f9190613ac4565b610b61565b6040516103219190613b13565b60405180910390f35b610332610c0b565b005b61034e60048036038101906103499190613ca3565b610c91565b005b610358610ca5565b6040516103659190613b13565b60405180910390f35b61038860048036038101906103839190613ac4565b610cbc565b6040516103959190613b13565b60405180910390f35b6103b860048036038101906103b39190613cd0565b610e08565b6040516103c59190613b3d565b60405180910390f35b6103d6610e50565b005b6103f260048036038101906103ed9190613ac4565b610ed8565b005b61040e60048036038101906104099190613cd0565b610ef8565b60405161041b9190613b3d565b60405180910390f35b61042c610f48565b005b61044860048036038101906104439190613ac4565b610fce565b6040516104559190613b3d565b60405180910390f35b61047860048036038101906104739190613ac4565b6110f2565b005b61048261119d565b60405161048f9190613d0c565b60405180910390f35b6104a06111c7565b6040516104ad9190613a6c565b60405180910390f35b6104d060048036038101906104cb9190613ac4565b611259565b6040516104dd9190613b13565b60405180910390f35b61050060048036038101906104fb9190613ac4565b611343565b60405161050d9190613b13565b60405180910390f35b610530600480360381019061052b9190613cd0565b611366565b6040516105409493929190613d27565b60405180910390f35b610563600480360381019061055e9190613d91565b6114fd565b005b61057f600480360381019061057a9190613ac4565b6117f8565b60405161058c9190613b3d565b60405180910390f35b6105af60048036038101906105aa9190613e3c565b61191c565b005b6105cb60048036038101906105c69190613f43565b611a5e565b005b6105e760048036038101906105e29190613f90565b6125fd565b6040516105f49190613b3d565b60405180910390f35b61061760048036038101906106129190613cd0565b612684565b005b610621612780565b73ffffffffffffffffffffffffffffffffffffffff1661063f61119d565b73ffffffffffffffffffffffffffffffffffffffff1614610695576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068c9061401c565b60405180910390fd5b60005b6008805490508110156107c1578273ffffffffffffffffffffffffffffffffffffffff16600882815481106106d0576106cf61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036107ae5781600882815481106107325761073161403c565b5b906000526020600020906005020160000160146101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff167fcfac0d114d14393344fe66cb124151c2877a3634ed09c8ee2994553274cbc256836040516107a09190613b13565b60405180910390a2506107fd565b80806107b99061409a565b915050610698565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f49061412e565b60405180910390fd5b5050565b6060600380546108109061417d565b80601f016020809104026020016040519081016040528092919081815260200182805461083c9061417d565b80156108895780601f1061085e57610100808354040283529160200191610889565b820191906000526020600020905b81548152906001019060200180831161086c57829003601f168201915b5050505050905090565b60008061089e612780565b90506108ab818585612788565b600191505092915050565b6000600254905090565b6108c8612780565b73ffffffffffffffffffffffffffffffffffffffff166108e661119d565b73ffffffffffffffffffffffffffffffffffffffff161461093c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109339061401c565b60405180910390fd5b60005b600880549050811015610a12578673ffffffffffffffffffffffffffffffffffffffff16600882815481106109775761097661403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036109ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f6906141fa565b60405180910390fd5b8080610a0a9061409a565b91505061093f565b50600060086001816001815401808255809150500390600052602060002090600502019050868160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550858160000160146101000a81548160ff0219169083151502179055508481600101819055508381600201819055508281600301819055508673ffffffffffffffffffffffffffffffffffffffff167f04375369b566d2cee124326d50369a849c19965a32d314d8a693f362f25af4b182600101548360020154846003015486604051610b09949392919061421a565b60405180910390a250505050505050565b600080610b25612780565b9050610b32858285612951565b610b3d8585856129dd565b60019150509392505050565b60006012905090565b6000610b5c612c5c565b905090565b600080610b6c612780565b9050610c00818585600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610bfb919061425f565b612788565b600191505092915050565b610c13612780565b73ffffffffffffffffffffffffffffffffffffffff16610c3161119d565b73ffffffffffffffffffffffffffffffffffffffff1614610c87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7e9061401c565b60405180910390fd5b610c8f612d76565b565b610ca2610c9c612780565b82612e18565b50565b6000600560009054906101000a900460ff16905090565b600080600090505b600880549050811015610dc6578373ffffffffffffffffffffffffffffffffffffffff1660088281548110610cfc57610cfb61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610db35760088181548110610d5d57610d5c61403c565b5b90600052602060002090600502016001015460088281548110610d8357610d8261403c565b5b90600052602060002090600502016004016000858152602001908152602001600020600101541015915050610e02565b8080610dbe9061409a565b915050610cc4565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df99061412e565b60405180910390fd5b92915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e58612780565b73ffffffffffffffffffffffffffffffffffffffff16610e7661119d565b73ffffffffffffffffffffffffffffffffffffffff1614610ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec39061401c565b60405180910390fd5b610ed66000612fee565b565b610eea82610ee4612780565b83612951565b610ef48282612e18565b5050565b6000610f41600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206130b4565b9050919050565b610f50612780565b73ffffffffffffffffffffffffffffffffffffffff16610f6e61119d565b73ffffffffffffffffffffffffffffffffffffffff1614610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb9061401c565b60405180910390fd5b610fcc6130c2565b565b600080600090505b6008805490508110156110b0578373ffffffffffffffffffffffffffffffffffffffff166008828154811061100e5761100d61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361109d576008818154811061106f5761106e61403c565b5b90600052602060002090600502016004016000848152602001908152602001600020600101549150506110ec565b80806110a89061409a565b915050610fd6565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e39061412e565b60405180910390fd5b92915050565b6110fa612780565b73ffffffffffffffffffffffffffffffffffffffff1661111861119d565b73ffffffffffffffffffffffffffffffffffffffff161461116e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111659061401c565b60405180910390fd5b61119933828473ffffffffffffffffffffffffffffffffffffffff166131659092919063ffffffff16565b5050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546111d69061417d565b80601f01602080910402602001604051908101604052809291908181526020018280546112029061417d565b801561124f5780601f106112245761010080835404028352916020019161124f565b820191906000526020600020905b81548152906001019060200180831161123257829003601f168201915b5050505050905090565b600080611264612780565b90506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561132a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132190614327565b60405180910390fd5b6113378286868403612788565b60019250505092915050565b60008061134e612780565b905061135b8185856129dd565b600191505092915050565b60008060008060005b6008805490508110156114ba578573ffffffffffffffffffffffffffffffffffffffff16600882815481106113a7576113a661403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036114a757600881815481106114085761140761403c565b5b906000526020600020906005020160000160149054906101000a900460ff166008828154811061143b5761143a61403c565b5b906000526020600020906005020160010154600883815481106114615761146061403c565b5b906000526020600020906005020160020154600884815481106114875761148661403c565b5b9060005260206000209060050201600301549450945094509450506114f6565b80806114b29061409a565b91505061136f565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ed9061412e565b60405180910390fd5b9193509193565b611505612780565b73ffffffffffffffffffffffffffffffffffffffff1661152361119d565b73ffffffffffffffffffffffffffffffffffffffff1614611579576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115709061401c565b60405180910390fd5b60005b6008805490508110156117b7578373ffffffffffffffffffffffffffffffffffffffff16600882815481106115b4576115b361403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036117a4576000600281111561161557611614614347565b5b83600281111561162857611627614347565b5b0361165c5781600882815481106116425761164161403c565b5b90600052602060002090600502016001018190555061174e565b600160028111156116705761166f614347565b5b83600281111561168357611682614347565b5b036116b757816008828154811061169d5761169c61403c565b5b90600052602060002090600502016002018190555061174d565b6002808111156116ca576116c9614347565b5b8360028111156116dd576116dc614347565b5b036117115781600882815481106116f7576116f661403c565b5b90600052602060002090600502016003018190555061174c565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611743906143c2565b60405180910390fd5b5b5b8373ffffffffffffffffffffffffffffffffffffffff167ffb0a0f2b17404f00ba6cb0934ec8f76603d4274b77dd7cab674b30a6eab1e3c5848460405161179692919061442a565b60405180910390a2506117f3565b80806117af9061409a565b91505061157c565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ea9061412e565b60405180910390fd5b505050565b600080600090505b6008805490508110156118da578373ffffffffffffffffffffffffffffffffffffffff16600882815481106118385761183761403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036118c757600881815481106118995761189861403c565b5b9060005260206000209060050201600401600084815260200190815260200160002060000154915050611916565b80806118d29061409a565b915050611800565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190d9061412e565b60405180910390fd5b92915050565b8342111561195f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119569061449f565b60405180910390fd5b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861198e8c6131eb565b896040516020016119a4969594939291906144bf565b60405160208183030381529060405280519060200120905060006119c782613249565b905060006119d782878787613263565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3e9061456c565b60405180910390fd5b611a528a8a8a612788565b50505050505050505050565b600260075403611aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9a906145d8565b60405180910390fd5b6002600781905550611ab3610ca5565b15611af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aea90614644565b60405180910390fd5b60008282905011611b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b30906146b0565b60405180910390fd5b60005b82829050811015611bd2576000838383818110611b5c57611b5b61403c565b5b9050602002810190611b6e91906146df565b8060200190611b7d9190614707565b905011611bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb6906147b6565b60405180910390fd5b8080611bca9061409a565b915050611b3c565b506000806000805b85859050811015611c3b57858582818110611bf857611bf761403c565b5b9050602002810190611c0a91906146df565b8060200190611c199190614707565b905083611c26919061425f565b92508080611c339061409a565b915050611bda565b5060008267ffffffffffffffff811115611c5857611c576147d6565b5b604051908082528060200260200182016040528015611c9157816020015b611c7e6138c3565b815260200190600190039081611c765790505b50905060005b8686905081101561223f5760005b60088054905081101561222b5760088181548110611cc657611cc561403c565b5b906000526020600020906005020160000160149054906101000a900460ff161561221857878783818110611cfd57611cfc61403c565b5b9050602002810190611d0f91906146df565b6000016020810190611d219190613cd0565b73ffffffffffffffffffffffffffffffffffffffff1660088281548110611d4b57611d4a61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036122175760005b888884818110611dae57611dad61403c565b5b9050602002810190611dc091906146df565b8060200190611dcf9190614707565b9050811015612215576000898985818110611ded57611dec61403c565b5b9050602002810190611dff91906146df565b8060200190611e0e9190614707565b83818110611e1f57611e1e61403c565b5b905060200201359050600060088481548110611e3e57611e3d61403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060010154148015611eaa5750600060088481548110611e8257611e8161403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060000154145b80611f87575060088381548110611ec457611ec361403c565b5b90600052602060002090600502016001015460088481548110611eea57611ee961403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060010154108015611f86575060088381548110611f2c57611f2b61403c565b5b90600052602060002090600502016003015460088481548110611f5257611f5161403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060000154611f82919061425f565b4210155b5b15612201573373ffffffffffffffffffffffffffffffffffffffff1660088481548110611fb757611fb661403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016120219190613b3d565b602060405180830381865afa15801561203e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612062919061481a565b73ffffffffffffffffffffffffffffffffffffffff160361220057600883815481106120915761209061403c565b5b906000526020600020906005020160020154600884815481106120b7576120b661403c565b5b9060005260206000209060050201600401600083815260200190815260200160002060010160008282546120eb919061425f565b9250508190555042600884815481106121075761210661403c565b5b906000526020600020906005020160040160008381526020019081526020016000206000018190555060405180604001604052806008858154811061214f5761214e61403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152508587815181106121b3576121b261403c565b5b6020026020010181905250600883815481106121d2576121d161403c565b5b906000526020600020906005020160020154886121ef919061425f565b975085806121fc9061409a565b9650505b5b50808061220d9061409a565b915050611d9b565b505b5b80806122239061409a565b915050611ca5565b5080806122379061409a565b915050611c97565b5060008411612283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227a90614893565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff1660e01b81526004016122be9291906148b3565b6020604051808303816000875af11580156122dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230191906148f1565b5060005b6008805490508110156125ec576000805b83518110156123d757600883815481106123335761233261403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1684828151811061238e5761238d61403c565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16036123c45781806123c09061409a565b9250505b80806123cf9061409a565b915050612316565b50600081036123e657506125d9565b60008167ffffffffffffffff811115612402576124016147d6565b5b6040519080825280602002602001820160405280156124305781602001602082028036833780820191505090505b5090506000805b855181101561253657600885815481106124545761245361403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168682815181106124af576124ae61403c565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1603612523578581815181106124e9576124e861403c565b5b6020026020010151602001518383815181106125085761250761403c565b5b602002602001018181525050818061251f9061409a565b9250505b808061252e9061409a565b915050612437565b506000825111156125d557600884815481106125555761255461403c565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f2ed48368de79b173beedca1e8032871f3f17b79b90846860673ab50f234273e1836040516125cc91906149dc565b60405180910390a25b5050505b80806125e49061409a565b915050612305565b505050505060016007819055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61268c612780565b73ffffffffffffffffffffffffffffffffffffffff166126aa61119d565b73ffffffffffffffffffffffffffffffffffffffff1614612700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f79061401c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361276f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276690614a70565b60405180910390fd5b61277881612fee565b50565b505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ee90614b02565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285d90614b94565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516129449190613b3d565b60405180910390a3505050565b600061295d84846125fd565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146129d757818110156129c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c090614c00565b60405180910390fd5b6129d68484848403612788565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4390614c92565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab290614d24565b60405180910390fd5b612ac683838361328e565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4390614db6565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bdf919061425f565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c439190613b3d565b60405180910390a3612c568484846132e6565b50505050565b60007f000000000000000000000000d6efcd22f0e3a4a9c35a8aabff52350dfb0c262173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015612cd857507f000000000000000000000000000000000000000000000000000000000000000146145b15612d05577f3b2f96737b462049f4fbe2671a28b346596506e8d9bfe1de52ec7b3b8ee28e059050612d73565b612d707f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fd446e9fd6ee0fd13757b68d76d0ea87e70be950923b2d81be00f2d778d07807f7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66132eb565b90505b90565b612d7e610ca5565b612dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db490614e22565b60405180910390fd5b6000600560006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612e01612780565b604051612e0e9190613d0c565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7e90614eb4565b60405180910390fd5b612e938260008361328e565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1090614f46565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254612f709190614f66565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612fd59190613b3d565b60405180910390a3612fe9836000846132e6565b505050565b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b6130ca610ca5565b1561310a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310190614644565b60405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861314e612780565b60405161315b9190613d0c565b60405180910390a1565b6131e68363a9059cbb60e01b84846040516024016131849291906148b3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613325565b505050565b600080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050613238816130b4565b9150613243816133ec565b50919050565b600061325c613256612c5c565b83613402565b9050919050565b600080600061327487878787613435565b9150915061328181613541565b8192505050949350505050565b613296610ca5565b156132d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cd90614644565b60405180910390fd5b6132e183838361277b565b505050565b505050565b60008383834630604051602001613306959493929190614f9a565b6040516020818303038152906040528051906020012090509392505050565b6000613387826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661370d9092919063ffffffff16565b90506000815111156133e757808060200190518101906133a791906148f1565b6133e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133dd9061505f565b60405180910390fd5b5b505050565b6001816000016000828254019250508190555050565b600082826040516020016134179291906150f7565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613470576000600391509150613538565b601b8560ff16141580156134885750601c8560ff1614155b1561349a576000600491509150613538565b6000600187878787604051600081526020016040526040516134bf949392919061512e565b6020604051602081039080840390855afa1580156134e1573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361352f57600060019250925050613538565b80600092509250505b94509492505050565b6000600481111561355557613554614347565b5b81600481111561356857613567614347565b5b031561370a576001600481111561358257613581614347565b5b81600481111561359557613594614347565b5b036135d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cc906151bf565b60405180910390fd5b600260048111156135e9576135e8614347565b5b8160048111156135fc576135fb614347565b5b0361363c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136339061522b565b60405180910390fd5b600360048111156136505761364f614347565b5b81600481111561366357613662614347565b5b036136a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369a906152bd565b60405180910390fd5b6004808111156136b6576136b5614347565b5b8160048111156136c9576136c8614347565b5b03613709576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137009061534f565b60405180910390fd5b5b50565b606061371c8484600085613725565b90509392505050565b60608247101561376a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613761906153e1565b60405180910390fd5b61377385613839565b6137b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a99061544d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516137db91906154b4565b60006040518083038185875af1925050503d8060008114613818576040519150601f19603f3d011682016040523d82523d6000602084013e61381d565b606091505b509150915061382d82828661385c565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561386c578290506138bc565b60008351111561387f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138b39190613a6c565b60405180910390fd5b9392505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613928826138fd565b9050919050565b6139388161391d565b811461394357600080fd5b50565b6000813590506139558161392f565b92915050565b60008115159050919050565b6139708161395b565b811461397b57600080fd5b50565b60008135905061398d81613967565b92915050565b600080604083850312156139aa576139a96138f3565b5b60006139b885828601613946565b92505060206139c98582860161397e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a0d5780820151818401526020810190506139f2565b83811115613a1c576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a3e826139d3565b613a4881856139de565b9350613a588185602086016139ef565b613a6181613a22565b840191505092915050565b60006020820190508181036000830152613a868184613a33565b905092915050565b6000819050919050565b613aa181613a8e565b8114613aac57600080fd5b50565b600081359050613abe81613a98565b92915050565b60008060408385031215613adb57613ada6138f3565b5b6000613ae985828601613946565b9250506020613afa85828601613aaf565b9150509250929050565b613b0d8161395b565b82525050565b6000602082019050613b286000830184613b04565b92915050565b613b3781613a8e565b82525050565b6000602082019050613b526000830184613b2e565b92915050565b60008060008060008060c08789031215613b7557613b746138f3565b5b6000613b8389828a01613946565b9650506020613b9489828a0161397e565b9550506040613ba589828a01613aaf565b9450506060613bb689828a01613aaf565b9350506080613bc789828a01613aaf565b92505060a0613bd889828a0161397e565b9150509295509295509295565b600080600060608486031215613bfe57613bfd6138f3565b5b6000613c0c86828701613946565b9350506020613c1d86828701613946565b9250506040613c2e86828701613aaf565b9150509250925092565b600060ff82169050919050565b613c4e81613c38565b82525050565b6000602082019050613c696000830184613c45565b92915050565b6000819050919050565b613c8281613c6f565b82525050565b6000602082019050613c9d6000830184613c79565b92915050565b600060208284031215613cb957613cb86138f3565b5b6000613cc784828501613aaf565b91505092915050565b600060208284031215613ce657613ce56138f3565b5b6000613cf484828501613946565b91505092915050565b613d068161391d565b82525050565b6000602082019050613d216000830184613cfd565b92915050565b6000608082019050613d3c6000830187613b04565b613d496020830186613b2e565b613d566040830185613b2e565b613d636060830184613b2e565b95945050505050565b60038110613d7957600080fd5b50565b600081359050613d8b81613d6c565b92915050565b600080600060608486031215613daa57613da96138f3565b5b6000613db886828701613946565b9350506020613dc986828701613d7c565b9250506040613dda86828701613aaf565b9150509250925092565b613ded81613c38565b8114613df857600080fd5b50565b600081359050613e0a81613de4565b92915050565b613e1981613c6f565b8114613e2457600080fd5b50565b600081359050613e3681613e10565b92915050565b600080600080600080600060e0888a031215613e5b57613e5a6138f3565b5b6000613e698a828b01613946565b9750506020613e7a8a828b01613946565b9650506040613e8b8a828b01613aaf565b9550506060613e9c8a828b01613aaf565b9450506080613ead8a828b01613dfb565b93505060a0613ebe8a828b01613e27565b92505060c0613ecf8a828b01613e27565b91505092959891949750929550565b600080fd5b600080fd5b600080fd5b60008083601f840112613f0357613f02613ede565b5b8235905067ffffffffffffffff811115613f2057613f1f613ee3565b5b602083019150836020820283011115613f3c57613f3b613ee8565b5b9250929050565b60008060208385031215613f5a57613f596138f3565b5b600083013567ffffffffffffffff811115613f7857613f776138f8565b5b613f8485828601613eed565b92509250509250929050565b60008060408385031215613fa757613fa66138f3565b5b6000613fb585828601613946565b9250506020613fc685828601613946565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140066020836139de565b915061401182613fd0565b602082019050919050565b6000602082019050818103600083015261403581613ff9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140a582613a8e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036140d7576140d661406b565b5b600182019050919050565b7f636f6e7472616374206e6f7420666f756e640000000000000000000000000000600082015250565b60006141186012836139de565b9150614123826140e2565b602082019050919050565b600060208201905081810360008301526141478161410b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061419557607f821691505b6020821081036141a8576141a761414e565b5b50919050565b7f616c726561647920616464656400000000000000000000000000000000000000600082015250565b60006141e4600d836139de565b91506141ef826141ae565b602082019050919050565b60006020820190508181036000830152614213816141d7565b9050919050565b600060808201905061422f6000830187613b2e565b61423c6020830186613b2e565b6142496040830185613b2e565b6142566060830184613b04565b95945050505050565b600061426a82613a8e565b915061427583613a8e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156142aa576142a961406b565b5b828201905092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006143116025836139de565b915061431c826142b5565b604082019050919050565b6000602082019050818103600083015261434081614304565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f696e76616c696420617474726962757465000000000000000000000000000000600082015250565b60006143ac6011836139de565b91506143b782614376565b602082019050919050565b600060208201905081810360008301526143db8161439f565b9050919050565b600381106143f3576143f2614347565b5b50565b6000819050614404826143e2565b919050565b6000614414826143f6565b9050919050565b61442481614409565b82525050565b600060408201905061443f600083018561441b565b61444c6020830184613b2e565b9392505050565b7f45524332305065726d69743a206578706972656420646561646c696e65000000600082015250565b6000614489601d836139de565b915061449482614453565b602082019050919050565b600060208201905081810360008301526144b88161447c565b9050919050565b600060c0820190506144d46000830189613c79565b6144e16020830188613cfd565b6144ee6040830187613cfd565b6144fb6060830186613b2e565b6145086080830185613b2e565b61451560a0830184613b2e565b979650505050505050565b7f45524332305065726d69743a20696e76616c6964207369676e61747572650000600082015250565b6000614556601e836139de565b915061456182614520565b602082019050919050565b6000602082019050818103600083015261458581614549565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006145c2601f836139de565b91506145cd8261458c565b602082019050919050565b600060208201905081810360008301526145f1816145b5565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061462e6010836139de565b9150614639826145f8565b602082019050919050565b6000602082019050818103600083015261465d81614621565b9050919050565b7f656d70747920706172616d730000000000000000000000000000000000000000600082015250565b600061469a600c836139de565b91506146a582614664565b602082019050919050565b600060208201905081810360008301526146c98161468d565b9050919050565b600080fd5b600080fd5b600080fd5b6000823560016040038336030381126146fb576146fa6146d0565b5b80830191505092915050565b60008083356001602003843603038112614724576147236146d0565b5b80840192508235915067ffffffffffffffff821115614746576147456146d5565b5b602083019250602082023603831315614762576147616146da565b5b509250929050565b7f656d70747920746f6b656e730000000000000000000000000000000000000000600082015250565b60006147a0600c836139de565b91506147ab8261476a565b602082019050919050565b600060208201905081810360008301526147cf81614793565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000815190506148148161392f565b92915050565b6000602082840312156148305761482f6138f3565b5b600061483e84828501614805565b91505092915050565b7f6e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b600061487d6010836139de565b915061488882614847565b602082019050919050565b600060208201905081810360008301526148ac81614870565b9050919050565b60006040820190506148c86000830185613cfd565b6148d56020830184613b2e565b9392505050565b6000815190506148eb81613967565b92915050565b600060208284031215614907576149066138f3565b5b6000614915848285016148dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61495381613a8e565b82525050565b6000614965838361494a565b60208301905092915050565b6000602082019050919050565b60006149898261491e565b6149938185614929565b935061499e8361493a565b8060005b838110156149cf5781516149b68882614959565b97506149c183614971565b9250506001810190506149a2565b5085935050505092915050565b600060208201905081810360008301526149f6818461497e565b905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a5a6026836139de565b9150614a65826149fe565b604082019050919050565b60006020820190508181036000830152614a8981614a4d565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614aec6024836139de565b9150614af782614a90565b604082019050919050565b60006020820190508181036000830152614b1b81614adf565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b7e6022836139de565b9150614b8982614b22565b604082019050919050565b60006020820190508181036000830152614bad81614b71565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614bea601d836139de565b9150614bf582614bb4565b602082019050919050565b60006020820190508181036000830152614c1981614bdd565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614c7c6025836139de565b9150614c8782614c20565b604082019050919050565b60006020820190508181036000830152614cab81614c6f565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d0e6023836139de565b9150614d1982614cb2565b604082019050919050565b60006020820190508181036000830152614d3d81614d01565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614da06026836139de565b9150614dab82614d44565b604082019050919050565b60006020820190508181036000830152614dcf81614d93565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614e0c6014836139de565b9150614e1782614dd6565b602082019050919050565b60006020820190508181036000830152614e3b81614dff565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614e9e6021836139de565b9150614ea982614e42565b604082019050919050565b60006020820190508181036000830152614ecd81614e91565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f306022836139de565b9150614f3b82614ed4565b604082019050919050565b60006020820190508181036000830152614f5f81614f23565b9050919050565b6000614f7182613a8e565b9150614f7c83613a8e565b925082821015614f8f57614f8e61406b565b5b828203905092915050565b600060a082019050614faf6000830188613c79565b614fbc6020830187613c79565b614fc96040830186613c79565b614fd66060830185613b2e565b614fe36080830184613cfd565b9695505050505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615049602a836139de565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006150c060028361507f565b91506150cb8261508a565b600282019050919050565b6000819050919050565b6150f16150ec82613c6f565b6150d6565b82525050565b6000615102826150b3565b915061510e82856150e0565b60208201915061511e82846150e0565b6020820191508190509392505050565b60006080820190506151436000830187613c79565b6151506020830186613c45565b61515d6040830185613c79565b61516a6060830184613c79565b95945050505050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006151a96018836139de565b91506151b482615173565b602082019050919050565b600060208201905081810360008301526151d88161519c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615215601f836139de565b9150615220826151df565b602082019050919050565b6000602082019050818103600083015261524481615208565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006152a76022836139de565b91506152b28261524b565b604082019050919050565b600060208201905081810360008301526152d68161529a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006153396022836139de565b9150615344826152dd565b604082019050919050565b600060208201905081810360008301526153688161532c565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006153cb6026836139de565b91506153d68261536f565b604082019050919050565b600060208201905081810360008301526153fa816153be565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615437601d836139de565b915061544282615401565b602082019050919050565b600060208201905081810360008301526154668161542a565b9050919050565b600081519050919050565b600081905092915050565b600061548e8261546d565b6154988185615478565b93506154a88185602086016139ef565b80840191505092915050565b60006154c08284615483565b91508190509291505056fea26469706673582212208567e614fe1aa5a362e59f8942774b8aad510ea85d9eeacdbea815885d59c1ea64736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.