Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- CCoin
- Optimization enabled
- false
- Compiler version
- v0.8.19+commit.7dd6d404
- Verified at
- 2023-07-26T20:27:08.159202Z
contracts/CCoin.sol
// SPDX-License-Identifier: MIT pragma solidity =0.8.19; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./common/structs.sol"; import "./lib/ListableMap.sol"; import "./interfaces/IERC20Memo.sol"; import "./extensions/BlackListable.sol"; import "./extensions/MetaTransactionExtension.sol"; import "./access/Ownable.sol"; import "./access/Pausable.sol"; contract CCoin is Context, ERC20, Ownable, Pausable, BlackListable, IERC20Memo, MetaTransactionExtension { event Mint(uint256 timestamp, address to, uint256 amount); mapping(address => uint256) private _tx_nonces; uint256 public immutable _deployBlock; uint256 public immutable _deployAt; constructor() ERC20("CCoin", "CCOIN") EIP712("CCoin", "1") { _deployBlock = block.number; _deployAt = block.timestamp; } function mint(address to, uint256 amount) public onlyOwner { emit Mint(block.timestamp, to, amount); _mint(to, amount); } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { require(owner != address(0), "ERC20: transfer from the zero address"); require(spender != address(0), "ERC20: transfer to the zero address"); return super.allowance(owner, spender); } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual whenNotPaused { _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 whenNotPaused { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } /** * @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 whenNotPaused returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * 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 override { if( owner != spender ) { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } } /** * @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 override whenNotPaused returns (bool success) { success = super.increaseAllowance( spender, addedValue ); } /** * @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 override whenNotPaused returns (bool success) { success = super.decreaseAllowance(spender, subtractedValue); } function transferWithMemo(address to, uint256 amount, string memory memo) public virtual override returns (bool success) { emit Memo("transfer",block.timestamp, memo); success = transfer(to, amount); } function transferFromWithMemo(address from, address to, uint256 amount, string memory memo) public virtual override returns (bool success) { emit Memo("transferFrom", block.timestamp, memo); success = transferFrom(from, to, amount); } function _sum_account_values(AccountValue[] memory list) internal pure returns( uint256 result ) { for(uint i=0; i< list.length; i++){ result+=list[i].value; } } function _batchSend(address from, address[] memory list, uint256 amount ) internal returns ( bool success) { for(uint i=0; i< list.length; i++){ _transfer(from, list[i], amount ); } success = true; } function _batchTransfer(address from, AccountValue[] memory list) internal returns ( bool success) { for(uint i=0; i< list.length; i++){ _transfer(from, list[i].account, list[i].value ); } success = true; } function _prepare_batch_transfer( bytes32 tag, address account, uint256 amount, string memory memo ) internal{ require( balanceOf(account) >= amount, "ERC20: transfer amount exceeds balance" ); emit Memo(tag, block.timestamp, memo); } function batchSend(address[] memory list, uint256 amount, string memory memo ) public whenNotPaused returns ( bool success) { address _from = _msgSender(); _prepare_batch_transfer("batchSend", _from, amount * list.length, memo ); success = _batchSend(_from, list, amount); } function batchSendFrom(address from, address[] memory list, uint256 amount, string memory memo ) public whenNotPaused returns ( bool success) { address spender = _msgSender(); uint256 _requireAmount = amount * list.length; _spendAllowance(from, spender, _requireAmount); _prepare_batch_transfer( "batchSendFrom", from, _requireAmount , memo ); success = _batchSend(from, list, amount); } function batchTransfer(AccountValue[] memory list, string memory memo ) public whenNotPaused returns ( bool success) { address _from = _msgSender(); uint256 _requireAmount = _sum_account_values(list); _prepare_batch_transfer( "batchTransfer", _from, _requireAmount , memo ); success = _batchTransfer( _from, list ); } function batchTransferFrom(address from, AccountValue[] memory list, string memory memo ) public whenNotPaused returns ( bool success) { address spender = _msgSender(); uint256 _requireAmount = _sum_account_values(list); _prepare_batch_transfer( "batchTransferFrom", from, _requireAmount, memo ); _spendAllowance(from, spender, _requireAmount); success = _batchTransfer( from, list); } function adminTransfer(address from, address to, uint256 amount, string memory reason) public onlyOwner returns ( bool success) { emit Memo( "adminTransfer", block.timestamp, reason); _transfer(from, to, amount); success = true; } function adminBatchSend(address _from, address[] memory list, uint256 amount, string memory memo) public onlyOwner returns ( bool success) { uint256 _requireAmount = amount * list.length; _prepare_batch_transfer( "adminBatchSend", _from, _requireAmount, memo ); for(uint i=0; i< list.length; i++){ _transfer(_from, list[i], amount); } success = true; } function adminBatchTransfer(address _from, AccountValue[] memory list, string memory memo) public onlyOwner returns ( bool success) { uint256 _requireAmount = _sum_account_values(list); _prepare_batch_transfer( "adminBatchTransfer", _from, _requireAmount, memo ); for(uint i=0; i< list.length; i++){ _transfer(_from, list[i].account, list[i].value ); } success = true; } function _beforeTokenTransfer(address from, address to, uint256 amount) internal override { if( owner() != _msgSender() ) { require(!paused(), "Pausable: paused"); require(getBlackListStatus(from) == 0 , "Blacklist: account has been blacklisted"); require(getBlackListStatus(to) == 0 , "Blacklist: destination account is blacklisted"); } super._beforeTokenTransfer(from, to, amount); } function _msgSender() internal view virtual override returns (address sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = msg.sender; } } }
@openzeppelin/contracts/interfaces/IERC5267.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); }
@openzeppelin/contracts/token/ERC20/ERC20.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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, allowance(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 = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * 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; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _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; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _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; // Overflow not possible: amount <= accountBalance <= totalSupply. _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 Updates `owner` s allowance for `spender` based on spent `amount`. * * 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 {} }
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// 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); }
@openzeppelin/contracts/utils/Context.sol
// 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; } }
@openzeppelin/contracts/utils/ShortStrings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) pragma solidity ^0.8.8; import "./StorageSlot.sol"; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } }
@openzeppelin/contracts/utils/StorageSlot.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
@openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
@openzeppelin/contracts/utils/cryptography/ECDSA.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 // Deprecated in v4.8 } 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"); } } /** * @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) { 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. /// @solidity memory-safe-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 { 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 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 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @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 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } }
@openzeppelin/contracts/utils/cryptography/EIP712.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; import "./ECDSA.sol"; import "../ShortStrings.sol"; import "../../interfaces/IERC5267.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]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // 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 _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @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) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, 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); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } }
@openzeppelin/contracts/utils/math/Math.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
@openzeppelin/contracts/utils/math/SignedMath.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor(){ _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership(address _self_address, address _confirm_address) public virtual onlyOwner { require( _self_address == address(this) && _confirm_address == owner(), "Ownable: bad request"); _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); } }
contracts/access/Pausable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; import "./Ownable.sol"; abstract contract Pausable is Context, Ownable { event Paused(address account); event Unpaused(address account); /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } bool private _paused; /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require( !(paused() && msg.sender != owner()) , "Pausable: paused"); } function pause(address self) public onlyOwner { require( self == address(this), "Pushable: bad request"); _paused = true; emit Paused(_msgSender()); } function unpause(address self) public onlyOwner { require( self == address(this), "Pushable: bad request"); _paused = false; emit Unpaused(_msgSender()); } }
contracts/common/structs.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; struct AccountValue { address account; uint256 value; } struct Uint256ValueIndex{ uint256 value; uint256 index; } struct MapAddressWithValue { mapping( address => Uint256ValueIndex ) map; address[] keys; }
contracts/extensions/BlackListable.sol
// SPDX-License-Identifier: MIT pragma solidity >=0.8.8 < 0.9.0; import "@openzeppelin/contracts/utils/Context.sol"; import "../common/structs.sol"; import "../lib/ListableMap.sol"; import "../access/Ownable.sol"; contract BlackListable is Ownable{ using ListableMap for MapAddressWithValue; event BlacklistAdd(uint256 indexed timestamp, address indexed account, string memo); event BlacklistRemove(uint256 indexed timestamp, address indexed account, string memo); MapAddressWithValue internal _blackList; /////// Getters to allow the same blacklist to be used also by other contracts /////// function getBlackListStatus(address _addr) public view returns (uint256 timestamp) { timestamp = _blackList.get(_addr); } function getBlacklistAccounts( uint256 page, uint256 perPage) public view returns( AccountValue[] memory ) { return _blackList.getList( page, perPage); } function addToBlacklist(address _addr, string memory memo) public onlyOwner returns( bool added) { if( added = _blackList.add(_addr, block.timestamp)) { emit BlacklistAdd(block.timestamp, _addr, memo); } } function removeFromBlacklist(address _addr, string memory memo) public onlyOwner returns( bool removed) { if( removed = _blackList.remove(_addr)) { emit BlacklistRemove(block.timestamp, _addr, memo); } } }
contracts/extensions/MetaTransactionExtension.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.8; import "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "../utils/Nonces.sol"; /** * @dev Context variant compatible with ERC2771 support. */ abstract contract MetaTransactionExtension is EIP712, Context, Nonces { // solhint-disable-next-line var-name-mixedcase bytes32 private constant _METATRANSACTION_TYPEHASH = keccak256("MetaTransaction(uint256 nonce,address from,bytes functionSignature)"); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function _hashStuctMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32){ return keccak256( abi.encode( _METATRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) )); } function _verifyMetatransaction( address owner, MetaTransaction memory mtx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view { bytes32 structHash = _hashStuctMetaTransaction(mtx); address signer = ECDSA.recover(_hashTypedDataV4(structHash), sigV, sigR, sigS); require( signer == owner, "MetaTX: invalid signer" ); } function _revert(bytes memory returnData ) internal pure returns ( string memory) { if( returnData.length > 0) { /// @solidity memory-safe-assembly assembly { let returnData_size := mload(returnData) revert(add(32, returnData), returnData_size) } } revert( "MetaTX: call not successful with unknown error" ); } function executeMetaTransaction( address from, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { require( functionSignature.length > 3, "MetaTX: invalid signature" ); MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces(from), from: from, functionSignature: functionSignature }); _verifyMetatransaction(from, metaTx, sigR, sigS, sigV); // increase nonce for user (to avoid re-use) _useCheckedNonce(from, metaTx.nonce); emit MetaTransactionExecuted( from, payable(msg.sender), functionSignature); // Append account and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, from) ); if( !success ) { _revert( returnData ); } return returnData; } }
contracts/interfaces/IERC20Memo.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC20Memo{ event Memo(bytes32 indexed tag, uint256 indexed timestamp, string memo ); function transferFromWithMemo(address from, address to, uint256 amount, string memory memo) external returns (bool); function transferWithMemo(address to, uint256 amount, string memory memo) external returns (bool); }
contracts/lib/ListableMap.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../common/structs.sol"; /** * using ListableMap for ListableMap.AddressBool; * ListableMap.AddressBool a; * */ library ListableMap { function calculateListOffset(uint256 currentLength, uint256 page, uint256 perPage) internal pure returns( uint256 _size, uint256 _startOffset){ require( page > 0, "List: page lo low" ); require( perPage > 0, "List: perPage lo low" ); require( perPage < 100001, "List: exceed limit" ); _startOffset = (page - 1) * perPage; if( currentLength == 0 || _startOffset > currentLength - 1 ){ return (0, 0); } uint256 _endOffset = page * perPage; if( _endOffset > currentLength ){ _endOffset = currentLength; } _size = _endOffset - _startOffset; } function exists(MapAddressWithValue storage self, address key) internal view returns (bool) { return self.map[key].value != 0; } function get(MapAddressWithValue storage self, address key) internal view returns (uint256) { return self.map[key].value; } function add(MapAddressWithValue storage self, address key, uint256 value) internal returns (bool) { require( value > 0, "Listable: value is not empty"); if( self.map[key].value != 0 ) { return false; } uint256 index = self.keys.length; self.keys.push(key); self.map[key].value = value; self.map[key].index = index; return true; } function remove(MapAddressWithValue storage self, address key) internal returns ( bool ){ if( self.map[key].value == 0 ) { return false; } uint256 lastIndex = self.keys.length -1; uint256 elmIndex = self.map[key].index; if( elmIndex != lastIndex ) { address _target = self.keys[ self.keys.length -1]; self.keys[elmIndex] = _target; self.map[_target].index = elmIndex; } self.keys.pop(); delete self.map[key]; return true; } function count(MapAddressWithValue storage self) internal view returns ( uint256 ){ return self.keys.length; } function getList(MapAddressWithValue storage self, uint256 page, uint256 perPage ) internal view returns (AccountValue[] memory) { (uint256 _size, uint256 _startOffset) = calculateListOffset(self.keys.length, page, perPage); AccountValue[] memory result = new AccountValue[](_size); for(uint256 i = 0; i< result.length; i++){ address _key = self.keys[_startOffset + i]; result[i].account = _key; result[i].value = self.map[_key].value; } return result; } }
contracts/utils/Nonces.sol
// SPDX-License-Identifier: MIT // @ref OpenZeppelin Contracts (pre 5.0) (/utils/Nonces.sol) pragma solidity ^0.8.19; /** * @dev Provides tracking nonces for addresses. Nonces will only increment. */ abstract contract Nonces { /** * @dev The nonce used for an `account` is not the expected current nonce. */ error InvalidAccountNonce(address account, uint256 currentNonce); mapping(address => uint256) private _nonces; /** * @dev Returns an the next unused nonce for an address. */ function nonces(address owner) public view virtual returns (uint256) { return _nonces[owner]; } /** * @dev Consumes a nonce. * * Returns the current value and increments nonce. */ function _useNonce(address owner) internal virtual returns (uint256) { // For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be // decremented or reset. This guarantees that the nonce never overflows. unchecked { // It is important to do x++ and not ++x here. return _nonces[owner]++; } } /** * @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`. */ function _useCheckedNonce(address owner, uint256 nonce) internal virtual returns (uint256) { uint256 current = _useNonce(owner); if (nonce != current) { revert InvalidAccountNonce(owner, current); } return current; } }
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":200,"enabled":false},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"InvalidAccountNonce","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"currentNonce","internalType":"uint256"}]},{"type":"error","name":"InvalidShortString","inputs":[]},{"type":"error","name":"StringTooLong","inputs":[{"type":"string","name":"str","internalType":"string"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BlacklistAdd","inputs":[{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"string","name":"memo","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"BlacklistRemove","inputs":[{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"string","name":"memo","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"EIP712DomainChanged","inputs":[],"anonymous":false},{"type":"event","name":"Memo","inputs":[{"type":"bytes32","name":"tag","internalType":"bytes32","indexed":true},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":true},{"type":"string","name":"memo","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"MetaTransactionExecuted","inputs":[{"type":"address","name":"userAddress","internalType":"address","indexed":false},{"type":"address","name":"relayerAddress","internalType":"address payable","indexed":false},{"type":"bytes","name":"functionSignature","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false},{"type":"address","name":"to","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_deployAt","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_deployBlock","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"added","internalType":"bool"}],"name":"addToBlacklist","inputs":[{"type":"address","name":"_addr","internalType":"address"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"adminBatchSend","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"address[]","name":"list","internalType":"address[]"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"adminBatchTransfer","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"tuple[]","name":"list","internalType":"struct AccountValue[]","components":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"adminTransfer","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"reason","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"batchSend","inputs":[{"type":"address[]","name":"list","internalType":"address[]"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"batchSendFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address[]","name":"list","internalType":"address[]"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"batchTransfer","inputs":[{"type":"tuple[]","name":"list","internalType":"struct AccountValue[]","components":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"batchTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"tuple[]","name":"list","internalType":"struct AccountValue[]","components":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burnFrom","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes1","name":"fields","internalType":"bytes1"},{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"version","internalType":"string"},{"type":"uint256","name":"chainId","internalType":"uint256"},{"type":"address","name":"verifyingContract","internalType":"address"},{"type":"bytes32","name":"salt","internalType":"bytes32"},{"type":"uint256[]","name":"extensions","internalType":"uint256[]"}],"name":"eip712Domain","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[{"type":"bytes","name":"","internalType":"bytes"}],"name":"executeMetaTransaction","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"bytes","name":"functionSignature","internalType":"bytes"},{"type":"bytes32","name":"sigR","internalType":"bytes32"},{"type":"bytes32","name":"sigS","internalType":"bytes32"},{"type":"uint8","name":"sigV","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"timestamp","internalType":"uint256"}],"name":"getBlackListStatus","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct AccountValue[]","components":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]}],"name":"getBlacklistAccounts","inputs":[{"type":"uint256","name":"page","internalType":"uint256"},{"type":"uint256","name":"perPage","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[{"type":"address","name":"self","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"removed","internalType":"bool"}],"name":"removeFromBlacklist","inputs":[{"type":"address","name":"_addr","internalType":"address"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[{"type":"address","name":"_self_address","internalType":"address"},{"type":"address","name":"_confirm_address","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"transferFromWithMemo","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"success","internalType":"bool"}],"name":"transferWithMemo","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"memo","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[{"type":"address","name":"self","internalType":"address"}]}]
Contract Creation Code
0x6101a06040523480156200001257600080fd5b506040518060400160405280600581526020017f43436f696e0000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f43434f494e0000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f43436f696e0000000000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525062000101600083620001f960201b90919060201c565b61012081815250506200011f600182620001f960201b90919060201c565b6101408181525050818051906020012060e08181525050808051906020012061010081815250504660a081815250506200015e6200025160201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505050508160059081620001ac919062000717565b508060069081620001be919062000717565b505050620001e1620001d5620002ae60201b60201c565b6200036060201b60201c565b43610160818152505042610180818152505062000a21565b60006020835110156200021f5762000217836200042660201b60201c565b90506200024b565b8262000231836200049360201b60201c565b600001908162000242919062000717565b5060ff60001b90505b92915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60e051610100514630604051602001620002939594939291906200086f565b60405160208183030381529060405280519060200120905090565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16036200035957600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506200035d565b3390505b90565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080829050601f815111156200047657826040517f305a27a90000000000000000000000000000000000000000000000000000000081526004016200046d91906200095b565b60405180910390fd5b8051816200048490620009b1565b60001c1760001b915050919050565b6000819050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200051f57607f821691505b602082108103620005355762000534620004d7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200059f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000560565b620005ab868362000560565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005f8620005f2620005ec84620005c3565b620005cd565b620005c3565b9050919050565b6000819050919050565b6200061483620005d7565b6200062c6200062382620005ff565b8484546200056d565b825550505050565b600090565b6200064362000634565b6200065081848462000609565b505050565b5b8181101562000678576200066c60008262000639565b60018101905062000656565b5050565b601f821115620006c75762000691816200053b565b6200069c8462000550565b81016020851015620006ac578190505b620006c4620006bb8562000550565b83018262000655565b50505b505050565b600082821c905092915050565b6000620006ec60001984600802620006cc565b1980831691505092915050565b6000620007078383620006d9565b9150826002028217905092915050565b62000722826200049d565b67ffffffffffffffff8111156200073e576200073d620004a8565b5b6200074a825462000506565b620007578282856200067c565b600060209050601f8311600181146200078f57600084156200077a578287015190505b620007868582620006f9565b865550620007f6565b601f1984166200079f866200053b565b60005b82811015620007c957848901518255600182019150602085019450602081019050620007a2565b86831015620007e95784890151620007e5601f891682620006d9565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6200081381620007fe565b82525050565b6200082481620005c3565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000857826200082a565b9050919050565b62000869816200084a565b82525050565b600060a08201905062000886600083018862000808565b62000895602083018762000808565b620008a4604083018662000808565b620008b3606083018562000819565b620008c260808301846200085e565b9695505050505050565b600082825260208201905092915050565b60005b83811015620008fd578082015181840152602081019050620008e0565b60008484015250505050565b6000601f19601f8301169050919050565b600062000927826200049d565b620009338185620008cc565b935062000945818560208601620008dd565b620009508162000909565b840191505092915050565b600060208201905081810360008301526200097781846200091a565b905092915050565b600081519050919050565b6000819050602082019050919050565b6000620009a88251620007fe565b80915050919050565b6000620009be826200097f565b82620009ca846200098a565b9050620009d7816200099a565b9250602082101562000a1a5762000a157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8360200360080262000560565b831692505b5050919050565b60805160a05160c05160e051610100516101205161014051610160516101805161582262000a926000396000610fe10152600061104e015260006112bc01526000611288015260006136e9015260006136c801526000613312015260006133680152600061339101526158226000f3fe6080604052600436106102255760003560e01c806376a67a5111610123578063a9059cbb116100ab578063dd62ed3e1161006f578063dd62ed3e146108e6578063ea0f7bf614610923578063f2fde38b14610960578063f7334ee214610989578063f8cd5ff1146109c657610225565b8063a9059cbb146107b5578063ab8cab33146107f2578063ad9d0bb21461082f578063b24a3e701461086c578063d05a5c71146108a957610225565b806384b0196e116100f257806384b0196e146106b457806386fd15b5146106e55780638da5cb5b1461072257806395d89b411461074d578063a457c2d71461077857610225565b806376a67a51146105fc57806379cc6790146106255780637ecebe001461064e57806382fc83891461068b57610225565b806340c10f19116101b157806359f017ed1161017557806359f017ed146105015780635c975abb1461053e57806363b48d841461056957806370a0823114610594578063746d714c146105d157610225565b806340c10f191461040c57806341017c321461043557806342966c681461047257806357b001f91461049b57806359bf1abe146104c457610225565b806318160ddd116101f857806318160ddd146102ff57806323b872dd1461032a578063313ce567146103675780633691920e1461039257806339509351146103cf57610225565b806306fdde031461022a578063095ea7b3146102555780630c53c51c1461029257806315c18ad8146102c2575b600080fd5b34801561023657600080fd5b5061023f610a03565b60405161024c91906137f9565b60405180910390f35b34801561026157600080fd5b5061027c600480360381019061027791906138c3565b610a95565b604051610289919061391e565b60405180910390f35b6102ac60048036038101906102a79190613add565b610ac1565b6040516102b99190613bc9565b60405180910390f35b3480156102ce57600080fd5b506102e960048036038101906102e49190613da9565b610c4a565b6040516102f6919061391e565b60405180910390f35b34801561030b57600080fd5b50610314610d00565b6040516103219190613e43565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c9190613e5e565b610d0a565b60405161035e919061391e565b60405180910390f35b34801561037357600080fd5b5061037c610d39565b6040516103899190613ec0565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b49190613edb565b610d42565b6040516103c6919061391e565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f191906138c3565b610dc0565b604051610403919061391e565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e91906138c3565b610ddc565b005b34801561044157600080fd5b5061045c60048036038101906104579190613f37565b610e2d565b604051610469919061391e565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190613fba565b610e9d565b005b3480156104a757600080fd5b506104c260048036038101906104bd9190613fe7565b610eb9565b005b3480156104d057600080fd5b506104eb60048036038101906104e69190613fe7565b610f8b565b6040516104f89190613e43565b60405180910390f35b34801561050d57600080fd5b5061052860048036038101906105239190614014565b610fa8565b6040516105359190614150565b60405180910390f35b34801561054a57600080fd5b50610553610fc8565b604051610560919061391e565b60405180910390f35b34801561057557600080fd5b5061057e610fdf565b60405161058b9190613e43565b60405180910390f35b3480156105a057600080fd5b506105bb60048036038101906105b69190613fe7565b611003565b6040516105c89190613e43565b60405180910390f35b3480156105dd57600080fd5b506105e661104c565b6040516105f39190613e43565b60405180910390f35b34801561060857600080fd5b50610623600480360381019061061e9190613fe7565b611070565b005b34801561063157600080fd5b5061064c600480360381019061064791906138c3565b611142565b005b34801561065a57600080fd5b5061067560048036038101906106709190613fe7565b61116a565b6040516106829190613e43565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190614172565b6111b3565b005b3480156106c057600080fd5b506106c9611275565b6040516106dc97969594939291906142ba565b60405180910390f35b3480156106f157600080fd5b5061070c60048036038101906107079190614401565b611377565b604051610719919061391e565b60405180910390f35b34801561072e57600080fd5b50610737611410565b60405161074491906144a0565b60405180910390f35b34801561075957600080fd5b5061076261143a565b60405161076f91906137f9565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a91906138c3565b6114cc565b6040516107ac919061391e565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d791906138c3565b6114e8565b6040516107e9919061391e565b60405180910390f35b3480156107fe57600080fd5b50610819600480360381019061081491906144bb565b61150b565b604051610826919061391e565b60405180910390f35b34801561083b57600080fd5b5061085660048036038101906108519190613edb565b61156e565b604051610863919061391e565b60405180910390f35b34801561087857600080fd5b50610893600480360381019061088e9190613da9565b6115ea565b6040516108a0919061391e565b60405180910390f35b3480156108b557600080fd5b506108d060048036038101906108cb9190614533565b611659565b6040516108dd919061391e565b60405180910390f35b3480156108f257600080fd5b5061090d60048036038101906109089190614172565b6116bc565b60405161091a9190613e43565b60405180910390f35b34801561092f57600080fd5b5061094a60048036038101906109459190614401565b6117ad565b604051610957919061391e565b60405180910390f35b34801561096c57600080fd5b5061098760048036038101906109829190613fe7565b611822565b005b34801561099557600080fd5b506109b060048036038101906109ab91906145be565b6118a5565b6040516109bd919061391e565b60405180910390f35b3480156109d257600080fd5b506109ed60048036038101906109e89190613f37565b611913565b6040516109fa919061391e565b60405180910390f35b606060058054610a129061465c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3e9061465c565b8015610a8b5780601f10610a6057610100808354040283529160200191610a8b565b820191906000526020600020905b815481529060010190602001808311610a6e57829003601f168201915b5050505050905090565b6000610a9f61198d565b6000610aa9611a16565b9050610ab6818585611ac6565b600191505092915050565b60606003855111610b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afe906146d9565b60405180910390fd5b60006040518060600160405280610b1d8961116a565b81526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610b518782878787611c8f565b610b5f878260000151611d2b565b507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610b939392919061471a565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610bc89291906147dc565b604051602081830303815290604052604051610be49190614804565b6000604051808303816000865af19150503d8060008114610c21576040519150601f19603f3d011682016040523d82523d6000602084013e610c26565b606091505b509150915081610c3b57610c3981611d89565b505b80935050505095945050505050565b6000610c54611dd9565b6000610c5f84611e57565b9050610c8d7f61646d696e42617463685472616e736665720000000000000000000000000000868386611ead565b60005b8451811015610cf357610ce086868381518110610cb057610caf61481b565b5b602002602001015160000151878481518110610ccf57610cce61481b565b5b602002602001015160200151611f37565b8080610ceb90614879565b915050610c90565b5060019150509392505050565b6000600454905090565b600080610d15611a16565b9050610d228582856121b0565b610d2d858585611f37565b60019150509392505050565b60006012905090565b6000610d4c611dd9565b610d62834260086122709092919063ffffffff16565b90508015610dba578273ffffffffffffffffffffffffffffffffffffffff16427fa5a06656d5328e1d6e92b125fbec9f97f1efb79de9f0365283aedb8259f9270c84604051610db191906137f9565b60405180910390a35b92915050565b6000610dca61198d565b610dd48383612419565b905092915050565b610de4611dd9565b7f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f6428383604051610e17939291906148c1565b60405180910390a1610e298282612450565b5050565b6000427f7472616e7366657246726f6d00000000000000000000000000000000000000007f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c184604051610e8091906137f9565b60405180910390a3610e93858585610d0a565b9050949350505050565b610ea561198d565b610eb6610eb0611a16565b826125a7565b50565b610ec1611dd9565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2690614944565b60405180910390fd5b6000600760146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610f73611a16565b604051610f8091906144a0565b60405180910390a150565b6000610fa182600861277690919063ffffffff16565b9050919050565b6060610fc0838360086127c59092919063ffffffff16565b905092915050565b6000600760149054906101000a900460ff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611078611dd9565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90614944565b60405180910390fd5b6001600760146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861112a611a16565b60405161113791906144a0565b60405180910390a150565b61114a61198d565b61115c82611156611a16565b836121b0565b61116682826125a7565b5050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111bb611dd9565b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614801561122857506111f9611410565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125e906149b0565b60405180910390fd5b6112716000612970565b5050565b6000606080600080600060606112b560007f0000000000000000000000000000000000000000000000000000000000000000612a3690919063ffffffff16565b6112e960017f0000000000000000000000000000000000000000000000000000000000000000612a3690919063ffffffff16565b46306000801b600067ffffffffffffffff81111561130a57611309613943565b5b6040519080825280602002602001820160405280156113385781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6000611381611dd9565b600084518461139091906149d0565b90506113be7f61646d696e426174636853656e64000000000000000000000000000000000000878386611ead565b60005b8551811015611402576113ef878783815181106113e1576113e061481b565b5b602002602001015187611f37565b80806113fa90614879565b9150506113c1565b506001915050949350505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600680546114499061465c565b80601f01602080910402602001604051908101604052809291908181526020018280546114759061465c565b80156114c25780601f10611497576101008083540402835291602001916114c2565b820191906000526020600020905b8154815290600101906020018083116114a557829003601f168201915b5050505050905090565b60006114d661198d565b6114e08383612ae6565b905092915050565b6000806114f3611a16565b9050611500818585611f37565b600191505092915050565b600061151561198d565b600061151f611a16565b9050600061152c85611e57565b905061155a7f62617463685472616e7366657200000000000000000000000000000000000000838387611ead565b6115648286612b5d565b9250505092915050565b6000611578611dd9565b61158c836008612bd390919063ffffffff16565b905080156115e4578273ffffffffffffffffffffffffffffffffffffffff16427f5fb3e4bdc9d8e29a1bdb227fa1be1af117acf15be57c033deb8a94ec93375827846040516115db91906137f9565b60405180910390a35b92915050565b60006115f461198d565b60006115fe611a16565b9050600061160b85611e57565b90506116397f62617463685472616e7366657246726f6d000000000000000000000000000000878387611ead565b6116448683836121b0565b61164e8686612b5d565b925050509392505050565b600061166361198d565b600061166d611a16565b90506116a77f626174636853656e640000000000000000000000000000000000000000000000828751876116a191906149d0565b86611ead565b6116b2818686612e3d565b9150509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361172c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172390614a84565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361179b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179290614b16565b60405180910390fd5b6117a58383612e92565b905092915050565b60006117b761198d565b60006117c1611a16565b905060008551856117d291906149d0565b90506117df8783836121b0565b61180b7f626174636853656e6446726f6d00000000000000000000000000000000000000888387611ead565b611816878787612e3d565b92505050949350505050565b61182a611dd9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189090614ba8565b60405180910390fd5b6118a281612970565b50565b6000427f7472616e736665720000000000000000000000000000000000000000000000007f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c1846040516118f891906137f9565b60405180910390a361190a84846114e8565b90509392505050565b600061191d611dd9565b427f61646d696e5472616e73666572000000000000000000000000000000000000007f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c18460405161196e91906137f9565b60405180910390a3611981858585611f37565b60019050949350505050565b611995610fc8565b80156119d457506119a4611410565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b90614c14565b60405180910390fd5b565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603611abf57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611ac3565b3390505b90565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2c90614ca6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9b90614d38565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611c829190613e43565b60405180910390a3505050565b6000611c9a85612f19565b90506000611cb2611caa83612f82565b848787612f9c565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1990614da4565b60405180910390fd5b50505050505050565b600080611d3784612fc7565b9050808314611d7f5783816040517f752d88c0000000000000000000000000000000000000000000000000000000008152600401611d76929190614dc4565b60405180910390fd5b8091505092915050565b6060600082511115611d9e5781518083602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd090614e5f565b60405180910390fd5b611de1611a16565b73ffffffffffffffffffffffffffffffffffffffff16611dff611410565b73ffffffffffffffffffffffffffffffffffffffff1614611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90614ecb565b60405180910390fd5b565b600080600090505b8251811015611ea757828181518110611e7b57611e7a61481b565b5b60200260200101516020015182611e929190614eeb565b91508080611e9f90614879565b915050611e5f565b50919050565b81611eb784611003565b1015611ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eef90614f91565b60405180910390fd5b42847f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c183604051611f2991906137f9565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9d90614a84565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200c90614b16565b60405180910390fd5b61202083838361301e565b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e90614f91565b60405180910390fd5b818103600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516121979190613e43565b60405180910390a36121aa84848461314e565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461226b5760006121ef84846116bc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612269578181101561225b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225290614ffd565b60405180910390fd5b6122688484848403611ac6565b5b505b505050565b60008082116122b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ab90615069565b60405180910390fd5b60008460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154146123095760009050612412565b60008460010180549050905084600101849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828560000160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550808560000160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555060019150505b9392505050565b600080612424611a16565b905061244581858561243685896116bc565b6124409190614eeb565b611ac6565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b6906150d5565b60405180910390fd5b6124cb6000838361301e565b80600460008282546124dd9190614eeb565b9250508190555080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161258f9190613e43565b60405180910390a36125a36000838361314e565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260d90615167565b60405180910390fd5b6126228260008361301e565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156126a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a0906151f9565b60405180910390fd5b818103600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600460008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161275d9190613e43565b60405180910390a36127718360008461314e565b505050565b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154905092915050565b60606000806127dc86600101805490508686613153565b9150915060008267ffffffffffffffff8111156127fc576127fb613943565b5b60405190808252806020026020018201604052801561283557816020015b612822613739565b81526020019060019003908161281a5790505b50905060005b81518110156129625760008860010182856128569190614eeb565b815481106128675761286661481b565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050808383815181106128a8576128a761481b565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508860000160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015483838151811061293e5761293d61481b565b5b6020026020010151602001818152505050808061295a90614879565b91505061283b565b508093505050509392505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060ff60001b8314612a5357612a4c8361329a565b9050612ae0565b818054612a5f9061465c565b80601f0160208091040260200160405190810160405280929190818152602001828054612a8b9061465c565b8015612ad85780601f10612aad57610100808354040283529160200191612ad8565b820191906000526020600020905b815481529060010190602001808311612abb57829003601f168201915b505050505090505b92915050565b600080612af1611a16565b90506000612aff82866116bc565b905083811015612b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3b9061528b565b60405180910390fd5b612b518286868403611ac6565b60019250505092915050565b600080600090505b8251811015612bc857612bb584848381518110612b8557612b8461481b565b5b602002602001015160000151858481518110612ba457612ba361481b565b5b602002602001015160200151611f37565b8080612bc090614879565b915050612b65565b506001905092915050565b6000808360000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015403612c295760009050612e37565b600060018460010180549050612c3f91906152ab565b905060008460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050818114612d935760008560010160018760010180549050612cab91906152ab565b81548110612cbc57612cbb61481b565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905080866001018381548110612d0057612cff61481b565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818660000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550505b84600101805480612da757612da66152df565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590558460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160009055600182016000905550506001925050505b92915050565b600080600090505b8351811015612e8657612e7385858381518110612e6557612e6461481b565b5b602002602001015185611f37565b8080612e7e90614879565b915050612e45565b50600190509392505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f23d10def3caacba2e4042e0c75d44a42d2558aabcf5ce951d0642a8032e1e65382600001518360200151846040015180519060200120604051602001612f65949392919061530e565b604051602081830303815290604052805190602001209050919050565b6000612f95612f8f61330e565b836133c5565b9050919050565b6000806000612fad87878787613406565b91509150612fba816134e8565b8192505050949350505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050559050919050565b613026611a16565b73ffffffffffffffffffffffffffffffffffffffff16613044611410565b73ffffffffffffffffffffffffffffffffffffffff161461313e57613067610fc8565b156130a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309e90614c14565b60405180910390fd5b60006130b284610f8b565b146130f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e9906153c5565b60405180910390fd5b60006130fd83610f8b565b1461313d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313490615457565b60405180910390fd5b5b61314983838361364e565b505050565b505050565b60008060008411613199576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613190906154c3565b60405180910390fd5b600083116131dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d39061552f565b60405180910390fd5b620186a18310613221576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132189061559b565b60405180910390fd5b8260018561322f91906152ab565b61323991906149d0565b90506000851480613255575060018561325291906152ab565b81115b156132665760008091509150613292565b6000838561327491906149d0565b905085811115613282578590505b818161328e91906152ab565b9250505b935093915050565b606060006132a783613653565b90506000602067ffffffffffffffff8111156132c6576132c5613943565b5b6040519080825280601f01601f1916602001820160405280156132f85781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561338a57507f000000000000000000000000000000000000000000000000000000000000000046145b156133b7577f000000000000000000000000000000000000000000000000000000000000000090506133c2565b6133bf6136a3565b90505b90565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156134415760006003915091506134df565b60006001878787876040516000815260200160405260405161346694939291906155bb565b6020604051602081039080840390855afa158015613488573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036134d6576000600192509250506134df565b80600092509250505b94509492505050565b600060048111156134fc576134fb615600565b5b81600481111561350f5761350e615600565b5b031561364b576001600481111561352957613528615600565b5b81600481111561353c5761353b615600565b5b0361357c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135739061567b565b60405180910390fd5b600260048111156135905761358f615600565b5b8160048111156135a3576135a2615600565b5b036135e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135da906156e7565b60405180910390fd5b600360048111156135f7576135f6615600565b5b81600481111561360a57613609615600565b5b0361364a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364190615779565b60405180910390fd5b5b50565b505050565b60008060ff8360001c169050601f81111561369a576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000463060405160200161371e959493929190615799565b60405160208183030381529060405280519060200120905090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b600081519050919050565b600082825260208201905092915050565b60005b838110156137a3578082015181840152602081019050613788565b60008484015250505050565b6000601f19601f8301169050919050565b60006137cb82613769565b6137d58185613774565b93506137e5818560208601613785565b6137ee816137af565b840191505092915050565b6000602082019050818103600083015261381381846137c0565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061385a8261382f565b9050919050565b61386a8161384f565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b6000819050919050565b6138a08161388d565b81146138ab57600080fd5b50565b6000813590506138bd81613897565b92915050565b600080604083850312156138da576138d9613825565b5b60006138e885828601613878565b92505060206138f9858286016138ae565b9150509250929050565b60008115159050919050565b61391881613903565b82525050565b6000602082019050613933600083018461390f565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61397b826137af565b810181811067ffffffffffffffff8211171561399a57613999613943565b5b80604052505050565b60006139ad61381b565b90506139b98282613972565b919050565b600067ffffffffffffffff8211156139d9576139d8613943565b5b6139e2826137af565b9050602081019050919050565b82818337600083830152505050565b6000613a11613a0c846139be565b6139a3565b905082815260208101848484011115613a2d57613a2c61393e565b5b613a388482856139ef565b509392505050565b600082601f830112613a5557613a54613939565b5b8135613a658482602086016139fe565b91505092915050565b6000819050919050565b613a8181613a6e565b8114613a8c57600080fd5b50565b600081359050613a9e81613a78565b92915050565b600060ff82169050919050565b613aba81613aa4565b8114613ac557600080fd5b50565b600081359050613ad781613ab1565b92915050565b600080600080600060a08688031215613af957613af8613825565b5b6000613b0788828901613878565b955050602086013567ffffffffffffffff811115613b2857613b2761382a565b5b613b3488828901613a40565b9450506040613b4588828901613a8f565b9350506060613b5688828901613a8f565b9250506080613b6788828901613ac8565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613b9b82613b74565b613ba58185613b7f565b9350613bb5818560208601613785565b613bbe816137af565b840191505092915050565b60006020820190508181036000830152613be38184613b90565b905092915050565b600067ffffffffffffffff821115613c0657613c05613943565b5b602082029050602081019050919050565b600080fd5b600080fd5b600060408284031215613c3757613c36613c1c565b5b613c4160406139a3565b90506000613c5184828501613878565b6000830152506020613c65848285016138ae565b60208301525092915050565b6000613c84613c7f84613beb565b6139a3565b90508083825260208201905060408402830185811115613ca757613ca6613c17565b5b835b81811015613cd05780613cbc8882613c21565b845260208401935050604081019050613ca9565b5050509392505050565b600082601f830112613cef57613cee613939565b5b8135613cff848260208601613c71565b91505092915050565b600067ffffffffffffffff821115613d2357613d22613943565b5b613d2c826137af565b9050602081019050919050565b6000613d4c613d4784613d08565b6139a3565b905082815260208101848484011115613d6857613d6761393e565b5b613d738482856139ef565b509392505050565b600082601f830112613d9057613d8f613939565b5b8135613da0848260208601613d39565b91505092915050565b600080600060608486031215613dc257613dc1613825565b5b6000613dd086828701613878565b935050602084013567ffffffffffffffff811115613df157613df061382a565b5b613dfd86828701613cda565b925050604084013567ffffffffffffffff811115613e1e57613e1d61382a565b5b613e2a86828701613d7b565b9150509250925092565b613e3d8161388d565b82525050565b6000602082019050613e586000830184613e34565b92915050565b600080600060608486031215613e7757613e76613825565b5b6000613e8586828701613878565b9350506020613e9686828701613878565b9250506040613ea7868287016138ae565b9150509250925092565b613eba81613aa4565b82525050565b6000602082019050613ed56000830184613eb1565b92915050565b60008060408385031215613ef257613ef1613825565b5b6000613f0085828601613878565b925050602083013567ffffffffffffffff811115613f2157613f2061382a565b5b613f2d85828601613d7b565b9150509250929050565b60008060008060808587031215613f5157613f50613825565b5b6000613f5f87828801613878565b9450506020613f7087828801613878565b9350506040613f81878288016138ae565b925050606085013567ffffffffffffffff811115613fa257613fa161382a565b5b613fae87828801613d7b565b91505092959194509250565b600060208284031215613fd057613fcf613825565b5b6000613fde848285016138ae565b91505092915050565b600060208284031215613ffd57613ffc613825565b5b600061400b84828501613878565b91505092915050565b6000806040838503121561402b5761402a613825565b5b6000614039858286016138ae565b925050602061404a858286016138ae565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140898161384f565b82525050565b6140988161388d565b82525050565b6040820160008201516140b46000850182614080565b5060208201516140c7602085018261408f565b50505050565b60006140d9838361409e565b60408301905092915050565b6000602082019050919050565b60006140fd82614054565b614107818561405f565b935061411283614070565b8060005b8381101561414357815161412a88826140cd565b9750614135836140e5565b925050600181019050614116565b5085935050505092915050565b6000602082019050818103600083015261416a81846140f2565b905092915050565b6000806040838503121561418957614188613825565b5b600061419785828601613878565b92505060206141a885828601613878565b9150509250929050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6141e7816141b2565b82525050565b6141f68161384f565b82525050565b61420581613a6e565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000614243838361408f565b60208301905092915050565b6000602082019050919050565b60006142678261420b565b6142718185614216565b935061427c83614227565b8060005b838110156142ad5781516142948882614237565b975061429f8361424f565b925050600181019050614280565b5085935050505092915050565b600060e0820190506142cf600083018a6141de565b81810360208301526142e181896137c0565b905081810360408301526142f581886137c0565b90506143046060830187613e34565b61431160808301866141ed565b61431e60a08301856141fc565b81810360c0830152614330818461425c565b905098975050505050505050565b600067ffffffffffffffff82111561435957614358613943565b5b602082029050602081019050919050565b600061437d6143788461433e565b6139a3565b905080838252602082019050602084028301858111156143a05761439f613c17565b5b835b818110156143c957806143b58882613878565b8452602084019350506020810190506143a2565b5050509392505050565b600082601f8301126143e8576143e7613939565b5b81356143f884826020860161436a565b91505092915050565b6000806000806080858703121561441b5761441a613825565b5b600061442987828801613878565b945050602085013567ffffffffffffffff81111561444a5761444961382a565b5b614456878288016143d3565b9350506040614467878288016138ae565b925050606085013567ffffffffffffffff8111156144885761448761382a565b5b61449487828801613d7b565b91505092959194509250565b60006020820190506144b560008301846141ed565b92915050565b600080604083850312156144d2576144d1613825565b5b600083013567ffffffffffffffff8111156144f0576144ef61382a565b5b6144fc85828601613cda565b925050602083013567ffffffffffffffff81111561451d5761451c61382a565b5b61452985828601613d7b565b9150509250929050565b60008060006060848603121561454c5761454b613825565b5b600084013567ffffffffffffffff81111561456a5761456961382a565b5b614576868287016143d3565b9350506020614587868287016138ae565b925050604084013567ffffffffffffffff8111156145a8576145a761382a565b5b6145b486828701613d7b565b9150509250925092565b6000806000606084860312156145d7576145d6613825565b5b60006145e586828701613878565b93505060206145f6868287016138ae565b925050604084013567ffffffffffffffff8111156146175761461661382a565b5b61462386828701613d7b565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061467457607f821691505b6020821081036146875761468661462d565b5b50919050565b7f4d65746154583a20696e76616c6964207369676e617475726500000000000000600082015250565b60006146c3601983613774565b91506146ce8261468d565b602082019050919050565b600060208201905081810360008301526146f2816146b6565b9050919050565b60006147048261382f565b9050919050565b614714816146f9565b82525050565b600060608201905061472f60008301866141ed565b61473c602083018561470b565b818103604083015261474e8184613b90565b9050949350505050565b600081905092915050565b600061476e82613b74565b6147788185614758565b9350614788818560208601613785565b80840191505092915050565b60008160601b9050919050565b60006147ac82614794565b9050919050565b60006147be826147a1565b9050919050565b6147d66147d18261384f565b6147b3565b82525050565b60006147e88285614763565b91506147f482846147c5565b6014820191508190509392505050565b60006148108284614763565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148848261388d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036148b6576148b561484a565b5b600182019050919050565b60006060820190506148d66000830186613e34565b6148e360208301856141ed565b6148f06040830184613e34565b949350505050565b7f5075736861626c653a2062616420726571756573740000000000000000000000600082015250565b600061492e601583613774565b9150614939826148f8565b602082019050919050565b6000602082019050818103600083015261495d81614921565b9050919050565b7f4f776e61626c653a206261642072657175657374000000000000000000000000600082015250565b600061499a601483613774565b91506149a582614964565b602082019050919050565b600060208201905081810360008301526149c98161498d565b9050919050565b60006149db8261388d565b91506149e68361388d565b92508282026149f48161388d565b91508282048414831517614a0b57614a0a61484a565b5b5092915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614a6e602583613774565b9150614a7982614a12565b604082019050919050565b60006020820190508181036000830152614a9d81614a61565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614b00602383613774565b9150614b0b82614aa4565b604082019050919050565b60006020820190508181036000830152614b2f81614af3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b92602683613774565b9150614b9d82614b36565b604082019050919050565b60006020820190508181036000830152614bc181614b85565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614bfe601083613774565b9150614c0982614bc8565b602082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614c90602483613774565b9150614c9b82614c34565b604082019050919050565b60006020820190508181036000830152614cbf81614c83565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d22602283613774565b9150614d2d82614cc6565b604082019050919050565b60006020820190508181036000830152614d5181614d15565b9050919050565b7f4d65746154583a20696e76616c6964207369676e657200000000000000000000600082015250565b6000614d8e601683613774565b9150614d9982614d58565b602082019050919050565b60006020820190508181036000830152614dbd81614d81565b9050919050565b6000604082019050614dd960008301856141ed565b614de66020830184613e34565b9392505050565b7f4d65746154583a2063616c6c206e6f74207375636365737366756c207769746860008201527f20756e6b6e6f776e206572726f72000000000000000000000000000000000000602082015250565b6000614e49602e83613774565b9150614e5482614ded565b604082019050919050565b60006020820190508181036000830152614e7881614e3c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614eb5602083613774565b9150614ec082614e7f565b602082019050919050565b60006020820190508181036000830152614ee481614ea8565b9050919050565b6000614ef68261388d565b9150614f018361388d565b9250828201905080821115614f1957614f1861484a565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614f7b602683613774565b9150614f8682614f1f565b604082019050919050565b60006020820190508181036000830152614faa81614f6e565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614fe7601d83613774565b9150614ff282614fb1565b602082019050919050565b6000602082019050818103600083015261501681614fda565b9050919050565b7f4c69737461626c653a2076616c7565206973206e6f7420656d70747900000000600082015250565b6000615053601c83613774565b915061505e8261501d565b602082019050919050565b6000602082019050818103600083015261508281615046565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b60006150bf601f83613774565b91506150ca82615089565b602082019050919050565b600060208201905081810360008301526150ee816150b2565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615151602183613774565b915061515c826150f5565b604082019050919050565b6000602082019050818103600083015261518081615144565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006151e3602283613774565b91506151ee82615187565b604082019050919050565b60006020820190508181036000830152615212816151d6565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000615275602583613774565b915061528082615219565b604082019050919050565b600060208201905081810360008301526152a481615268565b9050919050565b60006152b68261388d565b91506152c18361388d565b92508282039050818111156152d9576152d861484a565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060808201905061532360008301876141fc565b6153306020830186613e34565b61533d60408301856141ed565b61534a60608301846141fc565b95945050505050565b7f426c61636b6c6973743a206163636f756e7420686173206265656e20626c616360008201527f6b6c697374656400000000000000000000000000000000000000000000000000602082015250565b60006153af602783613774565b91506153ba82615353565b604082019050919050565b600060208201905081810360008301526153de816153a2565b9050919050565b7f426c61636b6c6973743a2064657374696e6174696f6e206163636f756e74206960008201527f7320626c61636b6c697374656400000000000000000000000000000000000000602082015250565b6000615441602d83613774565b915061544c826153e5565b604082019050919050565b6000602082019050818103600083015261547081615434565b9050919050565b7f4c6973743a2070616765206c6f206c6f77000000000000000000000000000000600082015250565b60006154ad601183613774565b91506154b882615477565b602082019050919050565b600060208201905081810360008301526154dc816154a0565b9050919050565b7f4c6973743a2070657250616765206c6f206c6f77000000000000000000000000600082015250565b6000615519601483613774565b9150615524826154e3565b602082019050919050565b600060208201905081810360008301526155488161550c565b9050919050565b7f4c6973743a20657863656564206c696d69740000000000000000000000000000600082015250565b6000615585601283613774565b91506155908261554f565b602082019050919050565b600060208201905081810360008301526155b481615578565b9050919050565b60006080820190506155d060008301876141fc565b6155dd6020830186613eb1565b6155ea60408301856141fc565b6155f760608301846141fc565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615665601883613774565b91506156708261562f565b602082019050919050565b6000602082019050818103600083015261569481615658565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006156d1601f83613774565b91506156dc8261569b565b602082019050919050565b60006020820190508181036000830152615700816156c4565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615763602283613774565b915061576e82615707565b604082019050919050565b6000602082019050818103600083015261579281615756565b9050919050565b600060a0820190506157ae60008301886141fc565b6157bb60208301876141fc565b6157c860408301866141fc565b6157d56060830185613e34565b6157e260808301846141ed565b969550505050505056fea26469706673582212207a1fbb9da1aa6a94615c0d4a1acd0b873b34290f2eb7c34cc0307b511e98eeb264736f6c63430008130033
Deployed ByteCode
0x6080604052600436106102255760003560e01c806376a67a5111610123578063a9059cbb116100ab578063dd62ed3e1161006f578063dd62ed3e146108e6578063ea0f7bf614610923578063f2fde38b14610960578063f7334ee214610989578063f8cd5ff1146109c657610225565b8063a9059cbb146107b5578063ab8cab33146107f2578063ad9d0bb21461082f578063b24a3e701461086c578063d05a5c71146108a957610225565b806384b0196e116100f257806384b0196e146106b457806386fd15b5146106e55780638da5cb5b1461072257806395d89b411461074d578063a457c2d71461077857610225565b806376a67a51146105fc57806379cc6790146106255780637ecebe001461064e57806382fc83891461068b57610225565b806340c10f19116101b157806359f017ed1161017557806359f017ed146105015780635c975abb1461053e57806363b48d841461056957806370a0823114610594578063746d714c146105d157610225565b806340c10f191461040c57806341017c321461043557806342966c681461047257806357b001f91461049b57806359bf1abe146104c457610225565b806318160ddd116101f857806318160ddd146102ff57806323b872dd1461032a578063313ce567146103675780633691920e1461039257806339509351146103cf57610225565b806306fdde031461022a578063095ea7b3146102555780630c53c51c1461029257806315c18ad8146102c2575b600080fd5b34801561023657600080fd5b5061023f610a03565b60405161024c91906137f9565b60405180910390f35b34801561026157600080fd5b5061027c600480360381019061027791906138c3565b610a95565b604051610289919061391e565b60405180910390f35b6102ac60048036038101906102a79190613add565b610ac1565b6040516102b99190613bc9565b60405180910390f35b3480156102ce57600080fd5b506102e960048036038101906102e49190613da9565b610c4a565b6040516102f6919061391e565b60405180910390f35b34801561030b57600080fd5b50610314610d00565b6040516103219190613e43565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c9190613e5e565b610d0a565b60405161035e919061391e565b60405180910390f35b34801561037357600080fd5b5061037c610d39565b6040516103899190613ec0565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b49190613edb565b610d42565b6040516103c6919061391e565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f191906138c3565b610dc0565b604051610403919061391e565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e91906138c3565b610ddc565b005b34801561044157600080fd5b5061045c60048036038101906104579190613f37565b610e2d565b604051610469919061391e565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190613fba565b610e9d565b005b3480156104a757600080fd5b506104c260048036038101906104bd9190613fe7565b610eb9565b005b3480156104d057600080fd5b506104eb60048036038101906104e69190613fe7565b610f8b565b6040516104f89190613e43565b60405180910390f35b34801561050d57600080fd5b5061052860048036038101906105239190614014565b610fa8565b6040516105359190614150565b60405180910390f35b34801561054a57600080fd5b50610553610fc8565b604051610560919061391e565b60405180910390f35b34801561057557600080fd5b5061057e610fdf565b60405161058b9190613e43565b60405180910390f35b3480156105a057600080fd5b506105bb60048036038101906105b69190613fe7565b611003565b6040516105c89190613e43565b60405180910390f35b3480156105dd57600080fd5b506105e661104c565b6040516105f39190613e43565b60405180910390f35b34801561060857600080fd5b50610623600480360381019061061e9190613fe7565b611070565b005b34801561063157600080fd5b5061064c600480360381019061064791906138c3565b611142565b005b34801561065a57600080fd5b5061067560048036038101906106709190613fe7565b61116a565b6040516106829190613e43565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190614172565b6111b3565b005b3480156106c057600080fd5b506106c9611275565b6040516106dc97969594939291906142ba565b60405180910390f35b3480156106f157600080fd5b5061070c60048036038101906107079190614401565b611377565b604051610719919061391e565b60405180910390f35b34801561072e57600080fd5b50610737611410565b60405161074491906144a0565b60405180910390f35b34801561075957600080fd5b5061076261143a565b60405161076f91906137f9565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a91906138c3565b6114cc565b6040516107ac919061391e565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d791906138c3565b6114e8565b6040516107e9919061391e565b60405180910390f35b3480156107fe57600080fd5b50610819600480360381019061081491906144bb565b61150b565b604051610826919061391e565b60405180910390f35b34801561083b57600080fd5b5061085660048036038101906108519190613edb565b61156e565b604051610863919061391e565b60405180910390f35b34801561087857600080fd5b50610893600480360381019061088e9190613da9565b6115ea565b6040516108a0919061391e565b60405180910390f35b3480156108b557600080fd5b506108d060048036038101906108cb9190614533565b611659565b6040516108dd919061391e565b60405180910390f35b3480156108f257600080fd5b5061090d60048036038101906109089190614172565b6116bc565b60405161091a9190613e43565b60405180910390f35b34801561092f57600080fd5b5061094a60048036038101906109459190614401565b6117ad565b604051610957919061391e565b60405180910390f35b34801561096c57600080fd5b5061098760048036038101906109829190613fe7565b611822565b005b34801561099557600080fd5b506109b060048036038101906109ab91906145be565b6118a5565b6040516109bd919061391e565b60405180910390f35b3480156109d257600080fd5b506109ed60048036038101906109e89190613f37565b611913565b6040516109fa919061391e565b60405180910390f35b606060058054610a129061465c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3e9061465c565b8015610a8b5780601f10610a6057610100808354040283529160200191610a8b565b820191906000526020600020905b815481529060010190602001808311610a6e57829003601f168201915b5050505050905090565b6000610a9f61198d565b6000610aa9611a16565b9050610ab6818585611ac6565b600191505092915050565b60606003855111610b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afe906146d9565b60405180910390fd5b60006040518060600160405280610b1d8961116a565b81526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610b518782878787611c8f565b610b5f878260000151611d2b565b507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610b939392919061471a565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610bc89291906147dc565b604051602081830303815290604052604051610be49190614804565b6000604051808303816000865af19150503d8060008114610c21576040519150601f19603f3d011682016040523d82523d6000602084013e610c26565b606091505b509150915081610c3b57610c3981611d89565b505b80935050505095945050505050565b6000610c54611dd9565b6000610c5f84611e57565b9050610c8d7f61646d696e42617463685472616e736665720000000000000000000000000000868386611ead565b60005b8451811015610cf357610ce086868381518110610cb057610caf61481b565b5b602002602001015160000151878481518110610ccf57610cce61481b565b5b602002602001015160200151611f37565b8080610ceb90614879565b915050610c90565b5060019150509392505050565b6000600454905090565b600080610d15611a16565b9050610d228582856121b0565b610d2d858585611f37565b60019150509392505050565b60006012905090565b6000610d4c611dd9565b610d62834260086122709092919063ffffffff16565b90508015610dba578273ffffffffffffffffffffffffffffffffffffffff16427fa5a06656d5328e1d6e92b125fbec9f97f1efb79de9f0365283aedb8259f9270c84604051610db191906137f9565b60405180910390a35b92915050565b6000610dca61198d565b610dd48383612419565b905092915050565b610de4611dd9565b7f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f6428383604051610e17939291906148c1565b60405180910390a1610e298282612450565b5050565b6000427f7472616e7366657246726f6d00000000000000000000000000000000000000007f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c184604051610e8091906137f9565b60405180910390a3610e93858585610d0a565b9050949350505050565b610ea561198d565b610eb6610eb0611a16565b826125a7565b50565b610ec1611dd9565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2690614944565b60405180910390fd5b6000600760146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610f73611a16565b604051610f8091906144a0565b60405180910390a150565b6000610fa182600861277690919063ffffffff16565b9050919050565b6060610fc0838360086127c59092919063ffffffff16565b905092915050565b6000600760149054906101000a900460ff16905090565b7f0000000000000000000000000000000000000000000000000000000064c1812581565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f0000000000000000000000000000000000000000000000000000000000dcbb8681565b611078611dd9565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90614944565b60405180910390fd5b6001600760146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861112a611a16565b60405161113791906144a0565b60405180910390a150565b61114a61198d565b61115c82611156611a16565b836121b0565b61116682826125a7565b5050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111bb611dd9565b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614801561122857506111f9611410565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125e906149b0565b60405180910390fd5b6112716000612970565b5050565b6000606080600080600060606112b560007f43436f696e000000000000000000000000000000000000000000000000000005612a3690919063ffffffff16565b6112e960017f3100000000000000000000000000000000000000000000000000000000000001612a3690919063ffffffff16565b46306000801b600067ffffffffffffffff81111561130a57611309613943565b5b6040519080825280602002602001820160405280156113385781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6000611381611dd9565b600084518461139091906149d0565b90506113be7f61646d696e426174636853656e64000000000000000000000000000000000000878386611ead565b60005b8551811015611402576113ef878783815181106113e1576113e061481b565b5b602002602001015187611f37565b80806113fa90614879565b9150506113c1565b506001915050949350505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600680546114499061465c565b80601f01602080910402602001604051908101604052809291908181526020018280546114759061465c565b80156114c25780601f10611497576101008083540402835291602001916114c2565b820191906000526020600020905b8154815290600101906020018083116114a557829003601f168201915b5050505050905090565b60006114d661198d565b6114e08383612ae6565b905092915050565b6000806114f3611a16565b9050611500818585611f37565b600191505092915050565b600061151561198d565b600061151f611a16565b9050600061152c85611e57565b905061155a7f62617463685472616e7366657200000000000000000000000000000000000000838387611ead565b6115648286612b5d565b9250505092915050565b6000611578611dd9565b61158c836008612bd390919063ffffffff16565b905080156115e4578273ffffffffffffffffffffffffffffffffffffffff16427f5fb3e4bdc9d8e29a1bdb227fa1be1af117acf15be57c033deb8a94ec93375827846040516115db91906137f9565b60405180910390a35b92915050565b60006115f461198d565b60006115fe611a16565b9050600061160b85611e57565b90506116397f62617463685472616e7366657246726f6d000000000000000000000000000000878387611ead565b6116448683836121b0565b61164e8686612b5d565b925050509392505050565b600061166361198d565b600061166d611a16565b90506116a77f626174636853656e640000000000000000000000000000000000000000000000828751876116a191906149d0565b86611ead565b6116b2818686612e3d565b9150509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361172c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172390614a84565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361179b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179290614b16565b60405180910390fd5b6117a58383612e92565b905092915050565b60006117b761198d565b60006117c1611a16565b905060008551856117d291906149d0565b90506117df8783836121b0565b61180b7f626174636853656e6446726f6d00000000000000000000000000000000000000888387611ead565b611816878787612e3d565b92505050949350505050565b61182a611dd9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189090614ba8565b60405180910390fd5b6118a281612970565b50565b6000427f7472616e736665720000000000000000000000000000000000000000000000007f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c1846040516118f891906137f9565b60405180910390a361190a84846114e8565b90509392505050565b600061191d611dd9565b427f61646d696e5472616e73666572000000000000000000000000000000000000007f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c18460405161196e91906137f9565b60405180910390a3611981858585611f37565b60019050949350505050565b611995610fc8565b80156119d457506119a4611410565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b90614c14565b60405180910390fd5b565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603611abf57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611ac3565b3390505b90565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2c90614ca6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9b90614d38565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611c829190613e43565b60405180910390a3505050565b6000611c9a85612f19565b90506000611cb2611caa83612f82565b848787612f9c565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1990614da4565b60405180910390fd5b50505050505050565b600080611d3784612fc7565b9050808314611d7f5783816040517f752d88c0000000000000000000000000000000000000000000000000000000008152600401611d76929190614dc4565b60405180910390fd5b8091505092915050565b6060600082511115611d9e5781518083602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd090614e5f565b60405180910390fd5b611de1611a16565b73ffffffffffffffffffffffffffffffffffffffff16611dff611410565b73ffffffffffffffffffffffffffffffffffffffff1614611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90614ecb565b60405180910390fd5b565b600080600090505b8251811015611ea757828181518110611e7b57611e7a61481b565b5b60200260200101516020015182611e929190614eeb565b91508080611e9f90614879565b915050611e5f565b50919050565b81611eb784611003565b1015611ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eef90614f91565b60405180910390fd5b42847f88b948122e3656f22e52cacbbee57bf3cbc89ab471ae37148390f258bc5559c183604051611f2991906137f9565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9d90614a84565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200c90614b16565b60405180910390fd5b61202083838361301e565b6000600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e90614f91565b60405180910390fd5b818103600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516121979190613e43565b60405180910390a36121aa84848461314e565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461226b5760006121ef84846116bc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114612269578181101561225b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225290614ffd565b60405180910390fd5b6122688484848403611ac6565b5b505b505050565b60008082116122b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ab90615069565b60405180910390fd5b60008460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154146123095760009050612412565b60008460010180549050905084600101849080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828560000160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550808560000160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555060019150505b9392505050565b600080612424611a16565b905061244581858561243685896116bc565b6124409190614eeb565b611ac6565b600191505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b6906150d5565b60405180910390fd5b6124cb6000838361301e565b80600460008282546124dd9190614eeb565b9250508190555080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161258f9190613e43565b60405180910390a36125a36000838361314e565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260d90615167565b60405180910390fd5b6126228260008361301e565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156126a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a0906151f9565b60405180910390fd5b818103600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600460008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161275d9190613e43565b60405180910390a36127718360008461314e565b505050565b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154905092915050565b60606000806127dc86600101805490508686613153565b9150915060008267ffffffffffffffff8111156127fc576127fb613943565b5b60405190808252806020026020018201604052801561283557816020015b612822613739565b81526020019060019003908161281a5790505b50905060005b81518110156129625760008860010182856128569190614eeb565b815481106128675761286661481b565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050808383815181106128a8576128a761481b565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508860000160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015483838151811061293e5761293d61481b565b5b6020026020010151602001818152505050808061295a90614879565b91505061283b565b508093505050509392505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060ff60001b8314612a5357612a4c8361329a565b9050612ae0565b818054612a5f9061465c565b80601f0160208091040260200160405190810160405280929190818152602001828054612a8b9061465c565b8015612ad85780601f10612aad57610100808354040283529160200191612ad8565b820191906000526020600020905b815481529060010190602001808311612abb57829003601f168201915b505050505090505b92915050565b600080612af1611a16565b90506000612aff82866116bc565b905083811015612b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3b9061528b565b60405180910390fd5b612b518286868403611ac6565b60019250505092915050565b600080600090505b8251811015612bc857612bb584848381518110612b8557612b8461481b565b5b602002602001015160000151858481518110612ba457612ba361481b565b5b602002602001015160200151611f37565b8080612bc090614879565b915050612b65565b506001905092915050565b6000808360000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015403612c295760009050612e37565b600060018460010180549050612c3f91906152ab565b905060008460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050818114612d935760008560010160018760010180549050612cab91906152ab565b81548110612cbc57612cbb61481b565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905080866001018381548110612d0057612cff61481b565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818660000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550505b84600101805480612da757612da66152df565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590558460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160009055600182016000905550506001925050505b92915050565b600080600090505b8351811015612e8657612e7385858381518110612e6557612e6461481b565b5b602002602001015185611f37565b8080612e7e90614879565b915050612e45565b50600190509392505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f23d10def3caacba2e4042e0c75d44a42d2558aabcf5ce951d0642a8032e1e65382600001518360200151846040015180519060200120604051602001612f65949392919061530e565b604051602081830303815290604052805190602001209050919050565b6000612f95612f8f61330e565b836133c5565b9050919050565b6000806000612fad87878787613406565b91509150612fba816134e8565b8192505050949350505050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050559050919050565b613026611a16565b73ffffffffffffffffffffffffffffffffffffffff16613044611410565b73ffffffffffffffffffffffffffffffffffffffff161461313e57613067610fc8565b156130a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309e90614c14565b60405180910390fd5b60006130b284610f8b565b146130f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e9906153c5565b60405180910390fd5b60006130fd83610f8b565b1461313d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313490615457565b60405180910390fd5b5b61314983838361364e565b505050565b505050565b60008060008411613199576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613190906154c3565b60405180910390fd5b600083116131dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d39061552f565b60405180910390fd5b620186a18310613221576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132189061559b565b60405180910390fd5b8260018561322f91906152ab565b61323991906149d0565b90506000851480613255575060018561325291906152ab565b81115b156132665760008091509150613292565b6000838561327491906149d0565b905085811115613282578590505b818161328e91906152ab565b9250505b935093915050565b606060006132a783613653565b90506000602067ffffffffffffffff8111156132c6576132c5613943565b5b6040519080825280601f01601f1916602001820160405280156132f85781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f000000000000000000000000678bd1263107b67477b657a68dad0e296f91000d73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614801561338a57507f00000000000000000000000000000000000000000000000000000000000004de46145b156133b7577f958d612e8846205eb001744ae1382069ff20e0f9245b1c3a1d92b222d453112d90506133c2565b6133bf6136a3565b90505b90565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156134415760006003915091506134df565b60006001878787876040516000815260200160405260405161346694939291906155bb565b6020604051602081039080840390855afa158015613488573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036134d6576000600192509250506134df565b80600092509250505b94509492505050565b600060048111156134fc576134fb615600565b5b81600481111561350f5761350e615600565b5b031561364b576001600481111561352957613528615600565b5b81600481111561353c5761353b615600565b5b0361357c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135739061567b565b60405180910390fd5b600260048111156135905761358f615600565b5b8160048111156135a3576135a2615600565b5b036135e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135da906156e7565b60405180910390fd5b600360048111156135f7576135f6615600565b5b81600481111561360a57613609615600565b5b0361364a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364190615779565b60405180910390fd5b5b50565b505050565b60008060ff8360001c169050601f81111561369a576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f5ebb06d0b1cff85314fc1ffeab546e3af2d723b8bc138d476b25d7c3d8cdb9bd7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6463060405160200161371e959493929190615799565b60405160208183030381529060405280519060200120905090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b600081519050919050565b600082825260208201905092915050565b60005b838110156137a3578082015181840152602081019050613788565b60008484015250505050565b6000601f19601f8301169050919050565b60006137cb82613769565b6137d58185613774565b93506137e5818560208601613785565b6137ee816137af565b840191505092915050565b6000602082019050818103600083015261381381846137c0565b905092915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061385a8261382f565b9050919050565b61386a8161384f565b811461387557600080fd5b50565b60008135905061388781613861565b92915050565b6000819050919050565b6138a08161388d565b81146138ab57600080fd5b50565b6000813590506138bd81613897565b92915050565b600080604083850312156138da576138d9613825565b5b60006138e885828601613878565b92505060206138f9858286016138ae565b9150509250929050565b60008115159050919050565b61391881613903565b82525050565b6000602082019050613933600083018461390f565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61397b826137af565b810181811067ffffffffffffffff8211171561399a57613999613943565b5b80604052505050565b60006139ad61381b565b90506139b98282613972565b919050565b600067ffffffffffffffff8211156139d9576139d8613943565b5b6139e2826137af565b9050602081019050919050565b82818337600083830152505050565b6000613a11613a0c846139be565b6139a3565b905082815260208101848484011115613a2d57613a2c61393e565b5b613a388482856139ef565b509392505050565b600082601f830112613a5557613a54613939565b5b8135613a658482602086016139fe565b91505092915050565b6000819050919050565b613a8181613a6e565b8114613a8c57600080fd5b50565b600081359050613a9e81613a78565b92915050565b600060ff82169050919050565b613aba81613aa4565b8114613ac557600080fd5b50565b600081359050613ad781613ab1565b92915050565b600080600080600060a08688031215613af957613af8613825565b5b6000613b0788828901613878565b955050602086013567ffffffffffffffff811115613b2857613b2761382a565b5b613b3488828901613a40565b9450506040613b4588828901613a8f565b9350506060613b5688828901613a8f565b9250506080613b6788828901613ac8565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000613b9b82613b74565b613ba58185613b7f565b9350613bb5818560208601613785565b613bbe816137af565b840191505092915050565b60006020820190508181036000830152613be38184613b90565b905092915050565b600067ffffffffffffffff821115613c0657613c05613943565b5b602082029050602081019050919050565b600080fd5b600080fd5b600060408284031215613c3757613c36613c1c565b5b613c4160406139a3565b90506000613c5184828501613878565b6000830152506020613c65848285016138ae565b60208301525092915050565b6000613c84613c7f84613beb565b6139a3565b90508083825260208201905060408402830185811115613ca757613ca6613c17565b5b835b81811015613cd05780613cbc8882613c21565b845260208401935050604081019050613ca9565b5050509392505050565b600082601f830112613cef57613cee613939565b5b8135613cff848260208601613c71565b91505092915050565b600067ffffffffffffffff821115613d2357613d22613943565b5b613d2c826137af565b9050602081019050919050565b6000613d4c613d4784613d08565b6139a3565b905082815260208101848484011115613d6857613d6761393e565b5b613d738482856139ef565b509392505050565b600082601f830112613d9057613d8f613939565b5b8135613da0848260208601613d39565b91505092915050565b600080600060608486031215613dc257613dc1613825565b5b6000613dd086828701613878565b935050602084013567ffffffffffffffff811115613df157613df061382a565b5b613dfd86828701613cda565b925050604084013567ffffffffffffffff811115613e1e57613e1d61382a565b5b613e2a86828701613d7b565b9150509250925092565b613e3d8161388d565b82525050565b6000602082019050613e586000830184613e34565b92915050565b600080600060608486031215613e7757613e76613825565b5b6000613e8586828701613878565b9350506020613e9686828701613878565b9250506040613ea7868287016138ae565b9150509250925092565b613eba81613aa4565b82525050565b6000602082019050613ed56000830184613eb1565b92915050565b60008060408385031215613ef257613ef1613825565b5b6000613f0085828601613878565b925050602083013567ffffffffffffffff811115613f2157613f2061382a565b5b613f2d85828601613d7b565b9150509250929050565b60008060008060808587031215613f5157613f50613825565b5b6000613f5f87828801613878565b9450506020613f7087828801613878565b9350506040613f81878288016138ae565b925050606085013567ffffffffffffffff811115613fa257613fa161382a565b5b613fae87828801613d7b565b91505092959194509250565b600060208284031215613fd057613fcf613825565b5b6000613fde848285016138ae565b91505092915050565b600060208284031215613ffd57613ffc613825565b5b600061400b84828501613878565b91505092915050565b6000806040838503121561402b5761402a613825565b5b6000614039858286016138ae565b925050602061404a858286016138ae565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140898161384f565b82525050565b6140988161388d565b82525050565b6040820160008201516140b46000850182614080565b5060208201516140c7602085018261408f565b50505050565b60006140d9838361409e565b60408301905092915050565b6000602082019050919050565b60006140fd82614054565b614107818561405f565b935061411283614070565b8060005b8381101561414357815161412a88826140cd565b9750614135836140e5565b925050600181019050614116565b5085935050505092915050565b6000602082019050818103600083015261416a81846140f2565b905092915050565b6000806040838503121561418957614188613825565b5b600061419785828601613878565b92505060206141a885828601613878565b9150509250929050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6141e7816141b2565b82525050565b6141f68161384f565b82525050565b61420581613a6e565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000614243838361408f565b60208301905092915050565b6000602082019050919050565b60006142678261420b565b6142718185614216565b935061427c83614227565b8060005b838110156142ad5781516142948882614237565b975061429f8361424f565b925050600181019050614280565b5085935050505092915050565b600060e0820190506142cf600083018a6141de565b81810360208301526142e181896137c0565b905081810360408301526142f581886137c0565b90506143046060830187613e34565b61431160808301866141ed565b61431e60a08301856141fc565b81810360c0830152614330818461425c565b905098975050505050505050565b600067ffffffffffffffff82111561435957614358613943565b5b602082029050602081019050919050565b600061437d6143788461433e565b6139a3565b905080838252602082019050602084028301858111156143a05761439f613c17565b5b835b818110156143c957806143b58882613878565b8452602084019350506020810190506143a2565b5050509392505050565b600082601f8301126143e8576143e7613939565b5b81356143f884826020860161436a565b91505092915050565b6000806000806080858703121561441b5761441a613825565b5b600061442987828801613878565b945050602085013567ffffffffffffffff81111561444a5761444961382a565b5b614456878288016143d3565b9350506040614467878288016138ae565b925050606085013567ffffffffffffffff8111156144885761448761382a565b5b61449487828801613d7b565b91505092959194509250565b60006020820190506144b560008301846141ed565b92915050565b600080604083850312156144d2576144d1613825565b5b600083013567ffffffffffffffff8111156144f0576144ef61382a565b5b6144fc85828601613cda565b925050602083013567ffffffffffffffff81111561451d5761451c61382a565b5b61452985828601613d7b565b9150509250929050565b60008060006060848603121561454c5761454b613825565b5b600084013567ffffffffffffffff81111561456a5761456961382a565b5b614576868287016143d3565b9350506020614587868287016138ae565b925050604084013567ffffffffffffffff8111156145a8576145a761382a565b5b6145b486828701613d7b565b9150509250925092565b6000806000606084860312156145d7576145d6613825565b5b60006145e586828701613878565b93505060206145f6868287016138ae565b925050604084013567ffffffffffffffff8111156146175761461661382a565b5b61462386828701613d7b565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061467457607f821691505b6020821081036146875761468661462d565b5b50919050565b7f4d65746154583a20696e76616c6964207369676e617475726500000000000000600082015250565b60006146c3601983613774565b91506146ce8261468d565b602082019050919050565b600060208201905081810360008301526146f2816146b6565b9050919050565b60006147048261382f565b9050919050565b614714816146f9565b82525050565b600060608201905061472f60008301866141ed565b61473c602083018561470b565b818103604083015261474e8184613b90565b9050949350505050565b600081905092915050565b600061476e82613b74565b6147788185614758565b9350614788818560208601613785565b80840191505092915050565b60008160601b9050919050565b60006147ac82614794565b9050919050565b60006147be826147a1565b9050919050565b6147d66147d18261384f565b6147b3565b82525050565b60006147e88285614763565b91506147f482846147c5565b6014820191508190509392505050565b60006148108284614763565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148848261388d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036148b6576148b561484a565b5b600182019050919050565b60006060820190506148d66000830186613e34565b6148e360208301856141ed565b6148f06040830184613e34565b949350505050565b7f5075736861626c653a2062616420726571756573740000000000000000000000600082015250565b600061492e601583613774565b9150614939826148f8565b602082019050919050565b6000602082019050818103600083015261495d81614921565b9050919050565b7f4f776e61626c653a206261642072657175657374000000000000000000000000600082015250565b600061499a601483613774565b91506149a582614964565b602082019050919050565b600060208201905081810360008301526149c98161498d565b9050919050565b60006149db8261388d565b91506149e68361388d565b92508282026149f48161388d565b91508282048414831517614a0b57614a0a61484a565b5b5092915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614a6e602583613774565b9150614a7982614a12565b604082019050919050565b60006020820190508181036000830152614a9d81614a61565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614b00602383613774565b9150614b0b82614aa4565b604082019050919050565b60006020820190508181036000830152614b2f81614af3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b92602683613774565b9150614b9d82614b36565b604082019050919050565b60006020820190508181036000830152614bc181614b85565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614bfe601083613774565b9150614c0982614bc8565b602082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614c90602483613774565b9150614c9b82614c34565b604082019050919050565b60006020820190508181036000830152614cbf81614c83565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d22602283613774565b9150614d2d82614cc6565b604082019050919050565b60006020820190508181036000830152614d5181614d15565b9050919050565b7f4d65746154583a20696e76616c6964207369676e657200000000000000000000600082015250565b6000614d8e601683613774565b9150614d9982614d58565b602082019050919050565b60006020820190508181036000830152614dbd81614d81565b9050919050565b6000604082019050614dd960008301856141ed565b614de66020830184613e34565b9392505050565b7f4d65746154583a2063616c6c206e6f74207375636365737366756c207769746860008201527f20756e6b6e6f776e206572726f72000000000000000000000000000000000000602082015250565b6000614e49602e83613774565b9150614e5482614ded565b604082019050919050565b60006020820190508181036000830152614e7881614e3c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614eb5602083613774565b9150614ec082614e7f565b602082019050919050565b60006020820190508181036000830152614ee481614ea8565b9050919050565b6000614ef68261388d565b9150614f018361388d565b9250828201905080821115614f1957614f1861484a565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614f7b602683613774565b9150614f8682614f1f565b604082019050919050565b60006020820190508181036000830152614faa81614f6e565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000614fe7601d83613774565b9150614ff282614fb1565b602082019050919050565b6000602082019050818103600083015261501681614fda565b9050919050565b7f4c69737461626c653a2076616c7565206973206e6f7420656d70747900000000600082015250565b6000615053601c83613774565b915061505e8261501d565b602082019050919050565b6000602082019050818103600083015261508281615046565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b60006150bf601f83613774565b91506150ca82615089565b602082019050919050565b600060208201905081810360008301526150ee816150b2565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000615151602183613774565b915061515c826150f5565b604082019050919050565b6000602082019050818103600083015261518081615144565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006151e3602283613774565b91506151ee82615187565b604082019050919050565b60006020820190508181036000830152615212816151d6565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000615275602583613774565b915061528082615219565b604082019050919050565b600060208201905081810360008301526152a481615268565b9050919050565b60006152b68261388d565b91506152c18361388d565b92508282039050818111156152d9576152d861484a565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060808201905061532360008301876141fc565b6153306020830186613e34565b61533d60408301856141ed565b61534a60608301846141fc565b95945050505050565b7f426c61636b6c6973743a206163636f756e7420686173206265656e20626c616360008201527f6b6c697374656400000000000000000000000000000000000000000000000000602082015250565b60006153af602783613774565b91506153ba82615353565b604082019050919050565b600060208201905081810360008301526153de816153a2565b9050919050565b7f426c61636b6c6973743a2064657374696e6174696f6e206163636f756e74206960008201527f7320626c61636b6c697374656400000000000000000000000000000000000000602082015250565b6000615441602d83613774565b915061544c826153e5565b604082019050919050565b6000602082019050818103600083015261547081615434565b9050919050565b7f4c6973743a2070616765206c6f206c6f77000000000000000000000000000000600082015250565b60006154ad601183613774565b91506154b882615477565b602082019050919050565b600060208201905081810360008301526154dc816154a0565b9050919050565b7f4c6973743a2070657250616765206c6f206c6f77000000000000000000000000600082015250565b6000615519601483613774565b9150615524826154e3565b602082019050919050565b600060208201905081810360008301526155488161550c565b9050919050565b7f4c6973743a20657863656564206c696d69740000000000000000000000000000600082015250565b6000615585601283613774565b91506155908261554f565b602082019050919050565b600060208201905081810360008301526155b481615578565b9050919050565b60006080820190506155d060008301876141fc565b6155dd6020830186613eb1565b6155ea60408301856141fc565b6155f760608301846141fc565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615665601883613774565b91506156708261562f565b602082019050919050565b6000602082019050818103600083015261569481615658565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006156d1601f83613774565b91506156dc8261569b565b602082019050919050565b60006020820190508181036000830152615700816156c4565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615763602283613774565b915061576e82615707565b604082019050919050565b6000602082019050818103600083015261579281615756565b9050919050565b600060a0820190506157ae60008301886141fc565b6157bb60208301876141fc565b6157c860408301866141fc565b6157d56060830185613e34565b6157e260808301846141ed565b969550505050505056fea26469706673582212207a1fbb9da1aa6a94615c0d4a1acd0b873b34290f2eb7c34cc0307b511e98eeb264736f6c63430008130033