Overview
ETH Balance
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 855349 | 455 days ago | IN | 0 ETH | 0.0002027 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11969474 | 91 days ago | 0 ETH | ||||
9618605 | 146 days ago | 0 ETH | ||||
9568945 | 147 days ago | 0 ETH | ||||
1806950 | 384 days ago | 0 ETH | ||||
1806942 | 384 days ago | 0 ETH | ||||
1806902 | 384 days ago | 0 ETH | ||||
1723057 | 389 days ago | 0 ETH | ||||
1723049 | 389 days ago | 0 ETH | ||||
855357 | 455 days ago | 0 ETH | ||||
855357 | 455 days ago | 0 ETH | ||||
855357 | 455 days ago | 0 ETH | ||||
855357 | 455 days ago | 0 ETH | ||||
855357 | 455 days ago | 0 ETH | ||||
855357 | 455 days ago | 0 ETH | ||||
855349 | 455 days ago | 0 ETH | ||||
855349 | 455 days ago | 0 ETH | ||||
855349 | 455 days ago | 0 ETH | ||||
847917 | 456 days ago | 0 ETH | ||||
847917 | 456 days ago | 0 ETH | ||||
847917 | 456 days ago | 0 ETH | ||||
847917 | 456 days ago | 0 ETH | ||||
847917 | 456 days ago | 0 ETH | ||||
847917 | 456 days ago | 0 ETH | ||||
847851 | 456 days ago | 0 ETH | ||||
847851 | 456 days ago | 0 ETH |
Loading...
Loading
Contract Name:
KUMABondToken
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.17; import {IBlacklist} from "./interfaces/IBlacklist.sol"; import {Counters} from "lib/openzeppelin-contracts/contracts/utils/Counters.sol"; import {ERC721} from "lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; import {IERC721} from "lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol"; import {Errors} from "./libraries/Errors.sol"; import {IAccessControl} from "lib/openzeppelin-contracts/contracts/access/IAccessControl.sol"; import {IKUMABondToken} from "./interfaces/IKUMABondToken.sol"; import {Pausable} from "lib/openzeppelin-contracts/contracts/security/Pausable.sol"; import {Roles} from "./libraries/Roles.sol"; /** * @title KUMA Bonds NFT * @author Mimo Labs * @notice KUMA Bond NFTs are NFTs who's yield is backed by real-world assets */ contract KUMABondToken is ERC721, Pausable, IKUMABondToken { using Counters for Counters.Counter; uint256 public constant MIN_COUPON = 1e27; IAccessControl public immutable accessController; IBlacklist public immutable blacklist; uint256 private _maxCoupon; Counters.Counter private _tncCounter; Counters.Counter private _tokenIdCounter; string private _uri; mapping(uint256 => Bond) private _bonds; mapping(uint256 => string) private _tncUrls; /** * @dev Modifier to make a function callable only when the caller has a specific role * @param role The role required to call the function */ modifier onlyRole(bytes32 role) { if (!accessController.hasRole(role, msg.sender)) { revert Errors.ACCESS_CONTROL_ACCOUNT_IS_MISSING_ROLE(msg.sender, role); } _; } /** * @dev Throws if argument account is blacklisted * @param account The address to check */ modifier notBlacklisted(address account) { if (blacklist.isBlacklisted(account)) { revert Errors.BLACKLIST_ACCOUNT_IS_BLACKLISTED(account); } _; } constructor(IAccessControl _accessController, IBlacklist _blacklist, uint256 maxCoupon) ERC721("KUMA Bonds", "KUMA") { if (address(_accessController) == address(0) || address(_blacklist) == address(0)) { revert Errors.CANNOT_SET_TO_ADDRESS_ZERO(); } if (maxCoupon < MIN_COUPON) { revert Errors.INVALID_MAX_COUPON(); } accessController = _accessController; blacklist = _blacklist; _maxCoupon = maxCoupon; emit AccessControllerSet(address(_accessController)); emit BlacklistSet(address(_blacklist)); emit MaxCouponSet(0, maxCoupon); } /** * @notice Mints a bond NFT to the specified address. * @dev Can only be called under specific conditions : * - Caller must have MCAG_MINT_ROLE * - Receiver must not be blacklisted * - This contract must not be paused * - Bond metadata must be valid * @param to Bond NFT receiver * @param bond Bond struct storing metadata */ function issueBond(address to, Bond calldata bond) external onlyRole(Roles.MCAG_MINT_ROLE) notBlacklisted(to) whenNotPaused { if (bond.cusip == bytes16(0) && bond.isin == bytes16(0)) { revert Errors.EMPTY_CUSIP_AND_ISIN(); } if (bond.currency == bytes4(0) || bond.issuer == bytes32(0) || bond.term == 0) { revert Errors.INVALID_RISK_CATEGORY(); } if (bond.maturity < bond.issuance) { revert Errors.MATURITY_LESS_THAN_ISSUANCE(bond.maturity, bond.issuance); } if (keccak256(abi.encode(bond.currency, bond.issuer, bond.term)) != bond.riskCategory) { revert Errors.RISK_CATEGORY_MISMATCH(bond.currency, bond.issuer, bond.term, bond.riskCategory); } if (bytes(_tncUrls[bond.tncId]).length == 0) { revert Errors.TERMS_AND_CONDITIONS_URL_DOES_NOT_EXIST(bond.tncId); } if (bond.coupon < MIN_COUPON || bond.coupon > _maxCoupon) { revert Errors.INVALID_COUPON(bond.coupon, MIN_COUPON, _maxCoupon); } _tokenIdCounter.increment(); uint256 tokenId = _tokenIdCounter.current(); _bonds[tokenId] = bond; _safeMint(to, tokenId); emit BondIssued(tokenId, bond); } /** * @notice Burns a bond NFT * @dev Can only be called under specific conditions : * - Caller must have MCAG_BURN_ROLE and must be the owner of the bond. * - This contract must not be paused * @param tokenId Id of the token to redeem */ function redeem(uint256 tokenId) external onlyRole(Roles.MCAG_BURN_ROLE) whenNotPaused { if (_ownerOf(tokenId) != msg.sender) { revert Errors.ERC721_CALLER_IS_NOT_TOKEN_OWNER(); } delete _bonds[tokenId]; _burn(tokenId); emit BondRedeemed(tokenId); } /** * @notice Sets a new base uri for all KUMA Bonds NFTs of this contract * @dev Can only be called by `MCAG_SET_URI_ROLE` * @param newUri New base uri */ function setUri(string memory newUri) external onlyRole(Roles.MCAG_SET_URI_ROLE) { emit UriSet(_uri, newUri); _uri = newUri; } /** * @notice Adds a new terms and conditions version * @dev Can only be called by `MCAG_SET_TERM_ROLE` * @param url URL link to the new terms and conditions */ function addTnc(string memory url) external onlyRole(Roles.MCAG_SET_TNC_ROLE) { _tncCounter.increment(); uint256 tncId = _tncCounter.current(); _tncUrls[tncId] = url; emit TncAdded(tncId, url); } /** * @notice Updates a terms and conditions version * @dev Can only be called by `MCAG_SET_TERM_ROLE` * @param tncId Id of the terms and conditions to update * @param newUrl New URL link to the terms and conditions */ function updateTncUrl(uint32 tncId, string memory newUrl) external onlyRole(Roles.MCAG_SET_TNC_ROLE) { if (bytes(_tncUrls[tncId]).length == 0) { revert Errors.TERMS_AND_CONDITIONS_URL_DOES_NOT_EXIST(tncId); } emit TncUrlUpdated(tncId, _tncUrls[tncId], newUrl); _tncUrls[tncId] = newUrl; } /** * @notice Updates the terms and conditions of a bond * @dev Can only be called by `MCAG_SET_TERM_ROLE` * @param tokenId Id of the bond to update * @param tncId Id of the new terms and conditions to link to the token */ function updateTncForToken(uint256 tokenId, uint32 tncId) external onlyRole(Roles.MCAG_SET_TNC_ROLE) { if (_ownerOf(tokenId) == address(0)) { revert Errors.ERC721_INVALID_TOKEN_ID(); } if (bytes(_tncUrls[tncId]).length == 0) { revert Errors.TERMS_AND_CONDITIONS_URL_DOES_NOT_EXIST(tncId); } emit TokenTncUpdated(tokenId, _bonds[tokenId].tncId, tncId); _bonds[tokenId].tncId = tncId; } /** * @notice Sets the max allowable coupon for newly issued bonds * @dev Can only be called by `MCAG_SET_MAX_COUPON_ROLE` * @param newMaxCoupon New max coupon, formatted as a per-second cumulative yield in RAY */ function setMaxCoupon(uint256 newMaxCoupon) external onlyRole(Roles.MCAG_SET_MAX_COUPON_ROLE) { if (newMaxCoupon < MIN_COUPON) { revert Errors.INVALID_MAX_COUPON(); } emit MaxCouponSet(_maxCoupon, newMaxCoupon); _maxCoupon = newMaxCoupon; } /** * @dev See {Pausable-_pause}. * @dev can only be called by `MCAG_PAUSE_ROLE` */ function pause() external onlyRole(Roles.MCAG_PAUSE_ROLE) { _pause(); } /** * @dev See {Pausable-_unpause}. * @dev can only be called by `MCAG_UNPAUSE_ROLE` */ function unpause() external onlyRole(Roles.MCAG_UNPAUSE_ROLE) { _unpause(); } /** * @return Current max allowable coupon of newly issued bonds, formatted as per-second cumulative yield in RAY */ function getMaxCoupon() external view returns (uint256) { return _maxCoupon; } /** * @return Counter for terms and conditions */ function getTncCounter() external view returns (uint256) { return _tncCounter.current(); } /** * @return Number of KUMA Bonds NFTs issued */ function getTokenIdCounter() external view returns (uint256) { return _tokenIdCounter.current(); } /** * @return Current base uri */ function getBaseURI() external view returns (string memory) { return _uri; } /** * @param tokenId Bond id * @return Bond struct storing metadata of the given bond id */ function getBond(uint256 tokenId) external view returns (Bond memory) { if (_ownerOf(tokenId) == address(0)) { revert Errors.ERC721_INVALID_TOKEN_ID(); } return _bonds[tokenId]; } /** * @param id Terms and conditions id * @return URL link to the terms and conditions of the given TNC id */ function getTncUrl(uint256 id) external view returns (string memory) { return _tncUrls[id]; } /** * @dev See {IERC721-approve}. * @dev Adds the following conditions to the call : * - Caller, spender, and token owner must not be blacklisted * - Contract must not be paused */ function approve(address to, uint256 tokenId) public override(ERC721, IERC721) whenNotPaused notBlacklisted(to) notBlacklisted(msg.sender) notBlacklisted(ownerOf(tokenId)) { address owner = ERC721.ownerOf(tokenId); if (to == owner) { revert Errors.ERC721_APPROVAL_TO_CURRENT_OWNER(); } if (msg.sender != owner && !isApprovedForAll(owner, msg.sender)) { revert Errors.ERC721_APPROVE_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED_FOR_ALL(); } _approve(to, tokenId); } /** * @dev See {IERC721-setApprovalForAll}. * @dev Adds the following conditions to the call : * - Caller and operator must not be blacklisted * - Contract must not be paused */ function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) whenNotPaused notBlacklisted(msg.sender) notBlacklisted(operator) { _setApprovalForAll(msg.sender, operator, approved); } /** * @dev See {IERC721-_beforeTokenTransfer}. * @dev Adds the following conditions to the call : * - Caller, from and to must not be blacklisted * - Contract must not be paused */ function _beforeTokenTransfer(address from, address to, uint256, uint256) internal override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(from) notBlacklisted(to) {} /** * @dev See {IERC721-_baseUri}. */ function _baseURI() internal view override returns (string memory) { return _uri; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; import {IAccessControl} from "lib/openzeppelin-contracts/contracts/access/IAccessControl.sol"; interface IBlacklist { event AccessControllerSet(address accesController); event Blacklisted(address indexed account); event UnBlacklisted(address indexed account); function blacklist(address account) external; function unBlacklist(address account) external; function accessController() external view returns (IAccessControl); function isBlacklisted(address account) external view returns (bool); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.17; import {IAccessControl} from "lib/openzeppelin-contracts/contracts/access/IAccessControl.sol"; import {IBlacklist} from "./IBlacklist.sol"; import {IERC721} from "lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol"; interface IKUMABondToken is IERC721 { event AccessControllerSet(address accesController); event BlacklistSet(address blacklist); event BondIssued(uint256 id, Bond bond); event BondRedeemed(uint256 id); event MaxCouponSet(uint256 oldMaxCoupon, uint256 newMaxCoupon); event TokenTncUpdated(uint256 indexed tokenId, uint256 oldTermId, uint256 newTermId); event TncAdded(uint256 indexed termId, string url); event TncUrlUpdated(uint256 indexed termId, string oldUrl, string newUrl); event UriSet(string oldUri, string newUri); /** * @param cusip Bond CUISP number. * @param isin Bond ISIN number. * @param currency Currency of the bond - example : USD * @param term Lifetime of the bond ie maturity in seconds - example : 31449600 (52 weeks) * @param issuance Bond issuance date - timestamp in seconds * @param maturity Date on which the principal amount becomes due - timestamp is seconds * @param coupon Annual interest rate paid on the bond per - rate per second * @param principal Bond face value ie redeemable amount * @param issuer Bond issuer - example : US * @param riskCategory Unique risk category identifier computed with keccack256(abi.encode(currency, issuer, term)) */ struct Bond { bytes16 cusip; bytes16 isin; bytes4 currency; uint64 issuance; uint64 maturity; uint64 term; uint32 tncId; uint256 coupon; uint256 principal; bytes32 issuer; bytes32 riskCategory; } function issueBond(address to, Bond calldata bond) external; function redeem(uint256 tokenId) external; function setUri(string memory newUri) external; function setMaxCoupon(uint256 newMaxCoupon) external; function addTnc(string memory url) external; function updateTncUrl(uint32 tncId, string memory newUrl) external; function updateTncForToken(uint256 tokenId, uint32 tncId) external; function pause() external; function unpause() external; function accessController() external view returns (IAccessControl); function blacklist() external view returns (IBlacklist); function getMaxCoupon() external view returns (uint256); function getTncCounter() external view returns (uint256); function getTokenIdCounter() external view returns (uint256); function getBaseURI() external view returns (string memory); function getBond(uint256) external view returns (Bond memory); function getTncUrl(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; library Errors { error CANNOT_SET_TO_ADDRESS_ZERO(); error ERC721_APPROVAL_TO_CURRENT_OWNER(); error ERC721_APPROVE_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED_FOR_ALL(); error ERC721_INVALID_TOKEN_ID(); error ERC721_CALLER_IS_NOT_TOKEN_OWNER(); error ACCESS_CONTROL_ACCOUNT_IS_MISSING_ROLE(address account, bytes32 role); error BLACKLIST_CALLER_IS_NOT_BLACKLISTER(); error BLACKLIST_ACCOUNT_IS_NOT_BLACKLISTED(address account); error BLACKLIST_ACCOUNT_IS_BLACKLISTED(address account); error TRANSMITTED_ANSWER_TOO_HIGH(int256 answer, int256 maxAnswer); error TRANSMITTED_ANSWER_TOO_LOW(int256 answer, int256 minAnswer); error TOKEN_IS_NOT_TRANSFERABLE(); error KYC_DATA_OWNER_MISMATCH(address to, address owner); error RATE_TOO_VOLATILE(uint256 absoluteRateChange, uint256 volatilityThreshold); error INVALID_VOLATILITY_THRESHOLD(); error TERMS_AND_CONDITIONS_URL_DOES_NOT_EXIST(uint256 tncId); error TERM_TOO_LOW(uint256 term, uint256 minTerm); error RISK_CATEGORY_MISMATCH(bytes4 currency, bytes32 name, uint64 term, bytes32 riskCategory); error MATURITY_LESS_THAN_ISSUANCE(uint64 maturity, uint64 issuance); error INVALID_RISK_CATEGORY(); error EMPTY_CUSIP_AND_ISIN(); error INVALID_MAX_COUPON(); error INVALID_COUPON(uint256 coupon, uint256 minCoupon, uint256 maxCoupon); error ANSWER_VARIATION_TOO_HIGH(); error CANNOT_SET_NEGATIVE_MAX_ANSWER(); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; library Roles { bytes32 public constant MCAG_MINT_ROLE = keccak256("MCAG_MINT_ROLE"); bytes32 public constant MCAG_BURN_ROLE = keccak256("MCAG_BURN_ROLE"); bytes32 public constant MCAG_BLACKLIST_ROLE = keccak256("MCAG_BLACKLIST_ROLE"); bytes32 public constant MCAG_PAUSE_ROLE = keccak256("MCAG_PAUSE_ROLE"); bytes32 public constant MCAG_UNPAUSE_ROLE = keccak256("MCAG_UNPAUSE_ROLE"); bytes32 public constant MCAG_TRANSMITTER_ROLE = keccak256("MCAG_TRANSMITTER_ROLE"); bytes32 public constant MCAG_MANAGER_ROLE = keccak256("MCAG_MANAGER_ROLE"); bytes32 public constant MCAG_SET_URI_ROLE = keccak256("MCAG_SET_URI_ROLE"); bytes32 public constant MCAG_SET_TNC_ROLE = keccak256("MCAG_SET_TNC_ROLE"); bytes32 public constant MCAG_SET_MAX_COUPON_ROLE = keccak256("MCAG_SET_MAX_COUPON_ROLE"); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @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(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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 10, 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 * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.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 `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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IAccessControl","name":"_accessController","type":"address"},{"internalType":"contract IBlacklist","name":"_blacklist","type":"address"},{"internalType":"uint256","name":"maxCoupon","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"ACCESS_CONTROL_ACCOUNT_IS_MISSING_ROLE","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"BLACKLIST_ACCOUNT_IS_BLACKLISTED","type":"error"},{"inputs":[],"name":"CANNOT_SET_TO_ADDRESS_ZERO","type":"error"},{"inputs":[],"name":"EMPTY_CUSIP_AND_ISIN","type":"error"},{"inputs":[],"name":"ERC721_APPROVAL_TO_CURRENT_OWNER","type":"error"},{"inputs":[],"name":"ERC721_APPROVE_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED_FOR_ALL","type":"error"},{"inputs":[],"name":"ERC721_CALLER_IS_NOT_TOKEN_OWNER","type":"error"},{"inputs":[],"name":"ERC721_INVALID_TOKEN_ID","type":"error"},{"inputs":[{"internalType":"uint256","name":"coupon","type":"uint256"},{"internalType":"uint256","name":"minCoupon","type":"uint256"},{"internalType":"uint256","name":"maxCoupon","type":"uint256"}],"name":"INVALID_COUPON","type":"error"},{"inputs":[],"name":"INVALID_MAX_COUPON","type":"error"},{"inputs":[],"name":"INVALID_RISK_CATEGORY","type":"error"},{"inputs":[{"internalType":"uint64","name":"maturity","type":"uint64"},{"internalType":"uint64","name":"issuance","type":"uint64"}],"name":"MATURITY_LESS_THAN_ISSUANCE","type":"error"},{"inputs":[{"internalType":"bytes4","name":"currency","type":"bytes4"},{"internalType":"bytes32","name":"name","type":"bytes32"},{"internalType":"uint64","name":"term","type":"uint64"},{"internalType":"bytes32","name":"riskCategory","type":"bytes32"}],"name":"RISK_CATEGORY_MISMATCH","type":"error"},{"inputs":[{"internalType":"uint256","name":"tncId","type":"uint256"}],"name":"TERMS_AND_CONDITIONS_URL_DOES_NOT_EXIST","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"accesController","type":"address"}],"name":"AccessControllerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"blacklist","type":"address"}],"name":"BlacklistSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"bytes16","name":"cusip","type":"bytes16"},{"internalType":"bytes16","name":"isin","type":"bytes16"},{"internalType":"bytes4","name":"currency","type":"bytes4"},{"internalType":"uint64","name":"issuance","type":"uint64"},{"internalType":"uint64","name":"maturity","type":"uint64"},{"internalType":"uint64","name":"term","type":"uint64"},{"internalType":"uint32","name":"tncId","type":"uint32"},{"internalType":"uint256","name":"coupon","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"bytes32","name":"issuer","type":"bytes32"},{"internalType":"bytes32","name":"riskCategory","type":"bytes32"}],"indexed":false,"internalType":"struct IKUMABondToken.Bond","name":"bond","type":"tuple"}],"name":"BondIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"BondRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldMaxCoupon","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxCoupon","type":"uint256"}],"name":"MaxCouponSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"termId","type":"uint256"},{"indexed":false,"internalType":"string","name":"url","type":"string"}],"name":"TncAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"termId","type":"uint256"},{"indexed":false,"internalType":"string","name":"oldUrl","type":"string"},{"indexed":false,"internalType":"string","name":"newUrl","type":"string"}],"name":"TncUrlUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldTermId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTermId","type":"uint256"}],"name":"TokenTncUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oldUri","type":"string"},{"indexed":false,"internalType":"string","name":"newUri","type":"string"}],"name":"UriSet","type":"event"},{"inputs":[],"name":"MIN_COUPON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accessController","outputs":[{"internalType":"contract IAccessControl","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"addTnc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blacklist","outputs":[{"internalType":"contract IBlacklist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBond","outputs":[{"components":[{"internalType":"bytes16","name":"cusip","type":"bytes16"},{"internalType":"bytes16","name":"isin","type":"bytes16"},{"internalType":"bytes4","name":"currency","type":"bytes4"},{"internalType":"uint64","name":"issuance","type":"uint64"},{"internalType":"uint64","name":"maturity","type":"uint64"},{"internalType":"uint64","name":"term","type":"uint64"},{"internalType":"uint32","name":"tncId","type":"uint32"},{"internalType":"uint256","name":"coupon","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"bytes32","name":"issuer","type":"bytes32"},{"internalType":"bytes32","name":"riskCategory","type":"bytes32"}],"internalType":"struct IKUMABondToken.Bond","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxCoupon","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTncCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getTncUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"bytes16","name":"cusip","type":"bytes16"},{"internalType":"bytes16","name":"isin","type":"bytes16"},{"internalType":"bytes4","name":"currency","type":"bytes4"},{"internalType":"uint64","name":"issuance","type":"uint64"},{"internalType":"uint64","name":"maturity","type":"uint64"},{"internalType":"uint64","name":"term","type":"uint64"},{"internalType":"uint32","name":"tncId","type":"uint32"},{"internalType":"uint256","name":"coupon","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"bytes32","name":"issuer","type":"bytes32"},{"internalType":"bytes32","name":"riskCategory","type":"bytes32"}],"internalType":"struct IKUMABondToken.Bond","name":"bond","type":"tuple"}],"name":"issueBond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxCoupon","type":"uint256"}],"name":"setMaxCoupon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"tncId","type":"uint32"}],"name":"updateTncForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"tncId","type":"uint32"},{"internalType":"string","name":"newUrl","type":"string"}],"name":"updateTncUrl","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506040516200669a3803806200669a8339818101604052810190620000379190620003ef565b6040518060400160405280600a81526020017f4b554d4120426f6e6473000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4b554d41000000000000000000000000000000000000000000000000000000008152508160009081620000b49190620006bb565b508060019081620000c69190620006bb565b5050506000600660006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806200014c5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1562000184576040517f6a8403ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6b033b2e3c9fd0803ce8000000811015620001cb576040517fbb9d95ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050806007819055507fd0761a673d8d97d3dd1e8beb78920467f6482d897a3d1a77d0749f20c653130d836040516200026b9190620007b3565b60405180910390a17f585afaef1fbbe00d4095086e85523c627777356daf8ea104de32a797ee1a9f1982604051620002a49190620007b3565b60405180910390a17f173455032cff2774f5fdcf519c01a2f47d5fb5ea8d9428c9097e827ef0920fe4600082604051620002e092919062000824565b60405180910390a150505062000851565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032382620002f6565b9050919050565b6000620003378262000316565b9050919050565b62000349816200032a565b81146200035557600080fd5b50565b60008151905062000369816200033e565b92915050565b60006200037c8262000316565b9050919050565b6200038e816200036f565b81146200039a57600080fd5b50565b600081519050620003ae8162000383565b92915050565b6000819050919050565b620003c981620003b4565b8114620003d557600080fd5b50565b600081519050620003e981620003be565b92915050565b6000806000606084860312156200040b576200040a620002f1565b5b60006200041b8682870162000358565b93505060206200042e868287016200039d565b92505060406200044186828701620003d8565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004cd57607f821691505b602082108103620004e357620004e262000485565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200054d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200050e565b6200055986836200050e565b95508019841693508086168417925050509392505050565b6000819050919050565b60006200059c620005966200059084620003b4565b62000571565b620003b4565b9050919050565b6000819050919050565b620005b8836200057b565b620005d0620005c782620005a3565b8484546200051b565b825550505050565b600090565b620005e7620005d8565b620005f4818484620005ad565b505050565b5b818110156200061c5762000610600082620005dd565b600181019050620005fa565b5050565b601f8211156200066b576200063581620004e9565b6200064084620004fe565b8101602085101562000650578190505b620006686200065f85620004fe565b830182620005f9565b50505b505050565b600082821c905092915050565b6000620006906000198460080262000670565b1980831691505092915050565b6000620006ab83836200067d565b9150826002028217905092915050565b620006c6826200044b565b67ffffffffffffffff811115620006e257620006e162000456565b5b620006ee8254620004b4565b620006fb82828562000620565b600060209050601f8311600181146200073357600084156200071e578287015190505b6200072a85826200069d565b8655506200079a565b601f1984166200074386620004e9565b60005b828110156200076d5784890151825560018201915060208501945060208101905062000746565b868310156200078d578489015162000789601f8916826200067d565b8355505b6001600288020188555050505b505050505050565b620007ad8162000316565b82525050565b6000602082019050620007ca6000830184620007a2565b92915050565b6000819050919050565b6000620007fb620007f5620007ef84620007d0565b62000571565b620003b4565b9050919050565b6200080d81620007da565b82525050565b6200081e81620003b4565b82525050565b60006040820190506200083b600083018562000802565b6200084a602083018462000813565b9392505050565b60805160a051615da5620008f5600039600081816107ca015281816108a70152818161098c0152818161155a01528181611637015281816118b0015281816122ee0152818161343e0152818161351b01526135f8015260008181610c0801528181610d33015281816111110152818161121c0152818161142401528181611745015281816118f501528181611ba801528181611f49015261220e0152615da56000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80639503b7f61161010f578063bc43cbaf116100a2578063db006a7511610071578063db006a751461057f578063dbfd4b981461059b578063e3613a63146105b9578063e985e9c5146105d5576101f0565b8063bc43cbaf146104d1578063c87b56dd146104ef578063d7bf5ed01461051f578063d8fe76421461054f576101f0565b8063a4a33838116100de578063a4a338381461045f578063a4b5fa561461047b578063af7c542714610499578063b88d4fde146104b5576101f0565b80639503b7f6146103ed57806395d89b41146104095780639b642de114610427578063a22cb46514610443576101f0565b806342842e0e1161018757806370a082311161015657806370a0823114610377578063714c5398146103a75780637edd13c5146103c55780638456cb59146103e3576101f0565b806342842e0e146102f1578063432033c61461030d5780635c975abb146103295780636352211e14610347576101f0565b806323b872dd116101c357806323b872dd1461028f578063273ed315146102ab57806335d64dae146102c95780633f4ba83a146102e7576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190613dd4565b610605565b60405161021c9190613e1c565b60405180910390f35b61022d6106e7565b60405161023a9190613ec7565b60405180910390f35b61025d60048036038101906102589190613f1f565b610779565b60405161026a9190613f8d565b60405180910390f35b61028d60048036038101906102889190613fd4565b6107bf565b005b6102a960048036038101906102a49190614014565b610b64565b005b6102b3610bc4565b6040516102c09190614076565b60405180910390f35b6102d1610bd4565b6040516102de9190614076565b60405180910390f35b6102ef610be5565b005b61030b60048036038101906103069190614014565b610cf0565b005b61032760048036038101906103229190614202565b610d10565b005b610331610efe565b60405161033e9190613e1c565b60405180910390f35b610361600480360381019061035c9190613f1f565b610f15565b60405161036e9190613f8d565b60405180910390f35b610391600480360381019061038c919061425e565b610f9b565b60405161039e9190614076565b60405180910390f35b6103af611052565b6040516103bc9190613ec7565b60405180910390f35b6103cd6110e4565b6040516103da9190614076565b60405180910390f35b6103eb6110ee565b005b6104076004803603810190610402919061428b565b6111f9565b005b61041161136f565b60405161041e9190613ec7565b60405180910390f35b610441600480360381019061043c919061428b565b611401565b005b61045d60048036038101906104589190614300565b61154f565b005b61047960048036038101906104749190613f1f565b611722565b005b6104836118ae565b604051610490919061439f565b60405180910390f35b6104b360048036038101906104ae91906143ba565b6118d2565b005b6104cf60048036038101906104ca919061449b565b611b44565b005b6104d9611ba6565b6040516104e6919061453f565b60405180910390f35b61050960048036038101906105049190613f1f565b611bca565b6040516105169190613ec7565b60405180910390f35b61053960048036038101906105349190613f1f565b611c32565b6040516105469190613ec7565b60405180910390f35b61056960048036038101906105649190613f1f565b611cd7565b60405161057691906146df565b60405180910390f35b61059960048036038101906105949190613f1f565b611f26565b005b6105a36121da565b6040516105b09190614076565b60405180910390f35b6105d360048036038101906105ce9190614720565b6121eb565b005b6105ef60048036038101906105ea9190614761565b612855565b6040516105fc9190613e1c565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106d057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106e057506106df826128e9565b5b9050919050565b6060600080546106f6906147d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610722906147d0565b801561076f5780601f106107445761010080835404028352916020019161076f565b820191906000526020600020905b81548152906001019060200180831161075257829003601f168201915b5050505050905090565b600061078482612953565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6107c761299e565b817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016108219190613f8d565b602060405180830381865afa15801561083e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108629190614816565b156108a457806040517f9c6aaf2900000000000000000000000000000000000000000000000000000000815260040161089b9190613f8d565b60405180910390fd5b337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016108fe9190613f8d565b602060405180830381865afa15801561091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093f9190614816565b1561098157806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016109789190613f8d565b60405180910390fd5b61098a83610f15565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016109e39190613f8d565b602060405180830381865afa158015610a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190614816565b15610a6657806040517f9c6aaf29000000000000000000000000000000000000000000000000000000008152600401610a5d9190613f8d565b60405180910390fd5b6000610a7185610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603610ad8576040517f17e707cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610b1b5750610b198133612855565b155b15610b52576040517fde841cbe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5c86866129e8565b505050505050565b610b75610b6f612aa1565b82612aa9565b610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab906148b5565b60405180910390fd5b610bbf838383612b3e565b505050565b6b033b2e3c9fd0803ce800000081565b6000610be06008612e37565b905090565b7f19e6747ba2734e64f81db64447941a832f966b06ebbd4e9b7c505c5a73846d027f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b8152600401610c619291906148e4565b602060405180830381865afa158015610c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca29190614816565b610ce55733816040517f5dcee3bb000000000000000000000000000000000000000000000000000000008152600401610cdc92919061490d565b60405180910390fd5b610ced612e45565b50565b610d0b83838360405180602001604052806000815250611b44565b505050565b7f7f08efd90273319d2c74ab573f1929a6c88b66064ed6e26afdfd1f8f32282d037f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b8152600401610d8c9291906148e4565b602060405180830381865afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcd9190614816565b610e105733816040517f5dcee3bb000000000000000000000000000000000000000000000000000000008152600401610e0792919061490d565b60405180910390fd5b6000600c60008563ffffffff1681526020019081526020016000208054610e36906147d0565b905003610e7a57826040517ffe3650dd000000000000000000000000000000000000000000000000000000008152600401610e719190614967565b60405180910390fd5b8263ffffffff167f1408973400c627deba86da82d54b13f55bec3a0cace5120f8f61a0a40a3d1bc7600c60008663ffffffff16815260200190815260200160002084604051610eca929190614a1b565b60405180910390a281600c60008563ffffffff1681526020019081526020016000209081610ef89190614bdf565b50505050565b6000600660009054906101000a900460ff16905090565b600080610f2183612ea8565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8990614cfd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361100b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100290614d8f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600a8054611061906147d0565b80601f016020809104026020016040519081016040528092919081815260200182805461108d906147d0565b80156110da5780601f106110af576101008083540402835291602001916110da565b820191906000526020600020905b8154815290600101906020018083116110bd57829003601f168201915b5050505050905090565b6000600754905090565b7fdc712106d37f47f926091bd7881532ee5c2909077629285707043572309971f97f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161116a9291906148e4565b602060405180830381865afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614816565b6111ee5733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016111e592919061490d565b60405180910390fd5b6111f6612ee5565b50565b7f7f08efd90273319d2c74ab573f1929a6c88b66064ed6e26afdfd1f8f32282d037f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b81526004016112759291906148e4565b602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190614816565b6112f95733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016112f092919061490d565b60405180910390fd5b6113036008612f48565b600061130f6008612e37565b905082600c600083815260200190815260200160002090816113319190614bdf565b50807fb9e610b9f7a30a2b0b3a7e276515ddbed388eb70e3c84bd25913d8ce0add9d7d846040516113629190613ec7565b60405180910390a2505050565b60606001805461137e906147d0565b80601f01602080910402602001604051908101604052809291908181526020018280546113aa906147d0565b80156113f75780601f106113cc576101008083540402835291602001916113f7565b820191906000526020600020905b8154815290600101906020018083116113da57829003601f168201915b5050505050905090565b7f89638d42a59fa1375df68ac34660e4601316db7f590ed978b30441dd920a5f0b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161147d9291906148e4565b602060405180830381865afa15801561149a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114be9190614816565b6115015733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016114f892919061490d565b60405180910390fd5b7ff90abac8a72a0a37d79d5980ffec7ff4c7eb4696095570aa399afce36f79c927600a83604051611533929190614a1b565b60405180910390a181600a908161154a9190614bdf565b505050565b61155761299e565b337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016115b19190613f8d565b602060405180830381865afa1580156115ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f29190614816565b1561163457806040517f9c6aaf2900000000000000000000000000000000000000000000000000000000815260040161162b9190613f8d565b60405180910390fd5b827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b815260040161168e9190613f8d565b602060405180830381865afa1580156116ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cf9190614816565b1561171157806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016117089190613f8d565b60405180910390fd5b61171c338585612f5e565b50505050565b7f6df3d8e9a995c2f7dc8ae00552630997af7c4ee42a057b5bcf32f4f665aaab067f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161179e9291906148e4565b602060405180830381865afa1580156117bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117df9190614816565b6118225733816040517f5dcee3bb00000000000000000000000000000000000000000000000000000000815260040161181992919061490d565b60405180910390fd5b6b033b2e3c9fd0803ce8000000821015611868576040517fbb9d95ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f173455032cff2774f5fdcf519c01a2f47d5fb5ea8d9428c9097e827ef0920fe46007548360405161189b929190614daf565b60405180910390a1816007819055505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f7f08efd90273319d2c74ab573f1929a6c88b66064ed6e26afdfd1f8f32282d037f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161194e9291906148e4565b602060405180830381865afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f9190614816565b6119d25733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016119c992919061490d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166119f384612ea8565b73ffffffffffffffffffffffffffffffffffffffff1603611a40576040517fc10d0dfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008463ffffffff1681526020019081526020016000208054611a66906147d0565b905003611aaa57816040517ffe3650dd000000000000000000000000000000000000000000000000000000008152600401611aa19190614967565b60405180910390fd5b827f535531dda48fec487c5e778afa5a9258ebf6fc9516f6081e39abc83bbfd5ebfe600b6000868152602001908152602001600020600101601c9054906101000a900463ffffffff1684604051611b02929190614dd8565b60405180910390a281600b6000858152602001908152602001600020600101601c6101000a81548163ffffffff021916908363ffffffff160217905550505050565b611b55611b4f612aa1565b83612aa9565b611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b906148b5565b60405180910390fd5b611ba0848484846130ca565b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060611bd582612953565b6000611bdf613126565b90506000815111611bff5760405180602001604052806000815250611c2a565b80611c09846131b8565b604051602001611c1a929190614e3d565b6040516020818303038152906040525b915050919050565b6060600c60008381526020019081526020016000208054611c52906147d0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7e906147d0565b8015611ccb5780601f10611ca057610100808354040283529160200191611ccb565b820191906000526020600020905b815481529060010190602001808311611cae57829003601f168201915b50505050509050919050565b611cdf613c9f565b600073ffffffffffffffffffffffffffffffffffffffff16611d0083612ea8565b73ffffffffffffffffffffffffffffffffffffffff1603611d4d576040517fc10d0dfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b6000838152602001908152602001600020604051806101600160405290816000820160009054906101000a900460801b6fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff191681526020016000820160109054906101000a900460801b6fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff191681526020016001820160009054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020016001820160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160018201600c9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016001820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160018201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050919050565b7f9b1678ccfb2c629942c48b3c8662fb447d324c6989f8b31e59eb55fb27efde567f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b8152600401611fa29291906148e4565b602060405180830381865afa158015611fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe39190614816565b6120265733816040517f5dcee3bb00000000000000000000000000000000000000000000000000000000815260040161201d92919061490d565b60405180910390fd5b61202e61299e565b3373ffffffffffffffffffffffffffffffffffffffff1661204e83612ea8565b73ffffffffffffffffffffffffffffffffffffffff161461209b576040517f399979fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b6000838152602001908152602001600020600080820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556000820160106101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160006101000a81549063ffffffff02191690556001820160046101000a81549067ffffffffffffffff021916905560018201600c6101000a81549067ffffffffffffffff02191690556001820160146101000a81549067ffffffffffffffff021916905560018201601c6101000a81549063ffffffff02191690556002820160009055600382016000905560048201600090556005820160009055505061219f82613286565b7fbd82a9940f188699a12ca8792f7c5e518188780cbb457b8d81e8c72fc0c12a9b826040516121ce9190614076565b60405180910390a15050565b60006121e66009612e37565b905090565b7f397dbbbf805bea51aca828394ff5b2bbdf15062605da9376c7a6c26fba26c0b37f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b81526004016122679291906148e4565b602060405180830381865afa158015612284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a89190614816565b6122eb5733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016122e292919061490d565b60405180910390fd5b827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016123459190613f8d565b602060405180830381865afa158015612362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123869190614816565b156123c857806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016123bf9190613f8d565b60405180910390fd5b6123d061299e565b600060801b6fffffffffffffffffffffffffffffffff19168360000160208101906123fb9190614e8d565b6fffffffffffffffffffffffffffffffff19161480156124565750600060801b6fffffffffffffffffffffffffffffffff19168360200160208101906124419190614e8d565b6fffffffffffffffffffffffffffffffff1916145b1561248d576040517f7a8d7ad600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168360400160208101906124c49190613dd4565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124f657506000801b836101200135145b8061251d575060008360a00160208101906125119190614ee6565b67ffffffffffffffff16145b15612554576040517f47e22d9000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260600160208101906125679190614ee6565b67ffffffffffffffff168360800160208101906125849190614ee6565b67ffffffffffffffff1610156125f7578260800160208101906125a79190614ee6565b8360600160208101906125ba9190614ee6565b6040517fab48f9760000000000000000000000000000000000000000000000000000000081526004016125ee929190614f22565b60405180910390fd5b8261014001358360400160208101906126109190613dd4565b8461012001358560a00160208101906126299190614ee6565b60405160200161263b93929190614f5a565b60405160208183030381529060405280519060200120146126c7578260400160208101906126699190613dd4565b8361012001358460a00160208101906126829190614ee6565b8561014001356040517fe18243920000000000000000000000000000000000000000000000000000000081526004016126be9493929190614f91565b60405180910390fd5b6000600c60008560c00160208101906126e09190614fd6565b63ffffffff16815260200190815260200160002080546126ff906147d0565b905003612755578260c00160208101906127199190614fd6565b6040517ffe3650dd00000000000000000000000000000000000000000000000000000000815260040161274c9190614967565b60405180910390fd5b6b033b2e3c9fd0803ce80000008360e00135108061277857506007548360e00135115b156127d0578260e001356b033b2e3c9fd0803ce80000006007546040517f31c211990000000000000000000000000000000000000000000000000000000081526004016127c793929190615003565b60405180910390fd5b6127da6009612f48565b60006127e66009612e37565b905083600b60008381526020019081526020016000208181612808919061567b565b90505061281585826133d4565b7f0553fe25da06a64b6a2b2d3575429e20802d48ab081eea66e6466871343658778185604051612846929190615861565b60405180910390a15050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61295c816133f2565b61299b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299290614cfd565b60405180910390fd5b50565b6129a6610efe565b156129e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129dd906158d7565b60405180910390fd5b565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a5b83610f15565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600033905090565b600080612ab583610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612af75750612af68185612855565b5b80612b3557508373ffffffffffffffffffffffffffffffffffffffff16612b1d84610779565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b5e82610f15565b73ffffffffffffffffffffffffffffffffffffffff1614612bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bab90615969565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a906159fb565b60405180910390fd5b612c308383836001613433565b8273ffffffffffffffffffffffffffffffffffffffff16612c5082610f15565b73ffffffffffffffffffffffffffffffffffffffff1614612ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9d90615969565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e3283838360016136db565b505050565b600081600001549050919050565b612e4d6136e1565b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612e91612aa1565b604051612e9e9190613f8d565b60405180910390a1565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b612eed61299e565b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f31612aa1565b604051612f3e9190613f8d565b60405180910390a1565b6001816000016000828254019250508190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc390615a67565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130bd9190613e1c565b60405180910390a3505050565b6130d5848484612b3e565b6130e18484848461372a565b613120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311790615af9565b60405180910390fd5b50505050565b6060600a8054613135906147d0565b80601f0160208091040260200160405190810160405280929190818152602001828054613161906147d0565b80156131ae5780601f10613183576101008083540402835291602001916131ae565b820191906000526020600020905b81548152906001019060200180831161319157829003601f168201915b5050505050905090565b6060600060016131c7846138b1565b01905060008167ffffffffffffffff8111156131e6576131e56140d7565b5b6040519080825280601f01601f1916602001820160405280156132185781602001600182028036833780820191505090505b509050600082602001820190505b60011561327b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161326f5761326e615b19565b5b04945060008503613226575b819350505050919050565b600061329182610f15565b90506132a1816000846001613433565b6132aa82610f15565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133d08160008460016136db565b5050565b6133ee828260405180602001604052806000815250613a04565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff1661341483612ea8565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61343b61299e565b337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016134959190613f8d565b602060405180830381865afa1580156134b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d69190614816565b1561351857806040517f9c6aaf2900000000000000000000000000000000000000000000000000000000815260040161350f9190613f8d565b60405180910390fd5b847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016135729190613f8d565b602060405180830381865afa15801561358f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135b39190614816565b156135f557806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016135ec9190613f8d565b60405180910390fd5b847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b815260040161364f9190613f8d565b602060405180830381865afa15801561366c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136909190614816565b156136d257806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016136c99190613f8d565b60405180910390fd5b50505050505050565b50505050565b6136e9610efe565b613728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161371f90615b94565b60405180910390fd5b565b600061374b8473ffffffffffffffffffffffffffffffffffffffff16613a5f565b156138a4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613774612aa1565b8786866040518563ffffffff1660e01b81526004016137969493929190615c09565b6020604051808303816000875af19250505080156137d257506040513d601f19601f820116820180604052508101906137cf9190615c6a565b60015b613854573d8060008114613802576040519150601f19603f3d011682016040523d82523d6000602084013e613807565b606091505b50600081510361384c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384390615af9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506138a9565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061390f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161390557613904615b19565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061394c576d04ee2d6d415b85acef8100000000838161394257613941615b19565b5b0492506020810190505b662386f26fc10000831061397b57662386f26fc10000838161397157613970615b19565b5b0492506010810190505b6305f5e10083106139a4576305f5e100838161399a57613999615b19565b5b0492506008810190505b61271083106139c95761271083816139bf576139be615b19565b5b0492506004810190505b606483106139ec57606483816139e2576139e1615b19565b5b0492506002810190505b600a83106139fb576001810190505b80915050919050565b613a0e8383613a82565b613a1b600084848461372a565b613a5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5190615af9565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ae890615ce3565b60405180910390fd5b613afa816133f2565b15613b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b3190615d4f565b60405180910390fd5b613b48600083836001613433565b613b51816133f2565b15613b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8890615d4f565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c9b6000838360016136db565b5050565b60405180610160016040528060006fffffffffffffffffffffffffffffffff1916815260200160006fffffffffffffffffffffffffffffffff1916815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600081526020016000815260200160008019168152602001600080191681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613db181613d7c565b8114613dbc57600080fd5b50565b600081359050613dce81613da8565b92915050565b600060208284031215613dea57613de9613d72565b5b6000613df884828501613dbf565b91505092915050565b60008115159050919050565b613e1681613e01565b82525050565b6000602082019050613e316000830184613e0d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e71578082015181840152602081019050613e56565b60008484015250505050565b6000601f19601f8301169050919050565b6000613e9982613e37565b613ea38185613e42565b9350613eb3818560208601613e53565b613ebc81613e7d565b840191505092915050565b60006020820190508181036000830152613ee18184613e8e565b905092915050565b6000819050919050565b613efc81613ee9565b8114613f0757600080fd5b50565b600081359050613f1981613ef3565b92915050565b600060208284031215613f3557613f34613d72565b5b6000613f4384828501613f0a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f7782613f4c565b9050919050565b613f8781613f6c565b82525050565b6000602082019050613fa26000830184613f7e565b92915050565b613fb181613f6c565b8114613fbc57600080fd5b50565b600081359050613fce81613fa8565b92915050565b60008060408385031215613feb57613fea613d72565b5b6000613ff985828601613fbf565b925050602061400a85828601613f0a565b9150509250929050565b60008060006060848603121561402d5761402c613d72565b5b600061403b86828701613fbf565b935050602061404c86828701613fbf565b925050604061405d86828701613f0a565b9150509250925092565b61407081613ee9565b82525050565b600060208201905061408b6000830184614067565b92915050565b600063ffffffff82169050919050565b6140aa81614091565b81146140b557600080fd5b50565b6000813590506140c7816140a1565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61410f82613e7d565b810181811067ffffffffffffffff8211171561412e5761412d6140d7565b5b80604052505050565b6000614141613d68565b905061414d8282614106565b919050565b600067ffffffffffffffff82111561416d5761416c6140d7565b5b61417682613e7d565b9050602081019050919050565b82818337600083830152505050565b60006141a56141a084614152565b614137565b9050828152602081018484840111156141c1576141c06140d2565b5b6141cc848285614183565b509392505050565b600082601f8301126141e9576141e86140cd565b5b81356141f9848260208601614192565b91505092915050565b6000806040838503121561421957614218613d72565b5b6000614227858286016140b8565b925050602083013567ffffffffffffffff81111561424857614247613d77565b5b614254858286016141d4565b9150509250929050565b60006020828403121561427457614273613d72565b5b600061428284828501613fbf565b91505092915050565b6000602082840312156142a1576142a0613d72565b5b600082013567ffffffffffffffff8111156142bf576142be613d77565b5b6142cb848285016141d4565b91505092915050565b6142dd81613e01565b81146142e857600080fd5b50565b6000813590506142fa816142d4565b92915050565b6000806040838503121561431757614316613d72565b5b600061432585828601613fbf565b9250506020614336858286016142eb565b9150509250929050565b6000819050919050565b600061436561436061435b84613f4c565b614340565b613f4c565b9050919050565b60006143778261434a565b9050919050565b60006143898261436c565b9050919050565b6143998161437e565b82525050565b60006020820190506143b46000830184614390565b92915050565b600080604083850312156143d1576143d0613d72565b5b60006143df85828601613f0a565b92505060206143f0858286016140b8565b9150509250929050565b600067ffffffffffffffff821115614415576144146140d7565b5b61441e82613e7d565b9050602081019050919050565b600061443e614439846143fa565b614137565b90508281526020810184848401111561445a576144596140d2565b5b614465848285614183565b509392505050565b600082601f830112614482576144816140cd565b5b813561449284826020860161442b565b91505092915050565b600080600080608085870312156144b5576144b4613d72565b5b60006144c387828801613fbf565b94505060206144d487828801613fbf565b93505060406144e587828801613f0a565b925050606085013567ffffffffffffffff81111561450657614505613d77565b5b6145128782880161446d565b91505092959194509250565b60006145298261436c565b9050919050565b6145398161451e565b82525050565b60006020820190506145546000830184614530565b92915050565b60007fffffffffffffffffffffffffffffffff0000000000000000000000000000000082169050919050565b61458f8161455a565b82525050565b61459e81613d7c565b82525050565b600067ffffffffffffffff82169050919050565b6145c1816145a4565b82525050565b6145d081614091565b82525050565b6145df81613ee9565b82525050565b6000819050919050565b6145f8816145e5565b82525050565b610160820160008201516146156000850182614586565b5060208201516146286020850182614586565b50604082015161463b6040850182614595565b50606082015161464e60608501826145b8565b50608082015161466160808501826145b8565b5060a082015161467460a08501826145b8565b5060c082015161468760c08501826145c7565b5060e082015161469a60e08501826145d6565b506101008201516146af6101008501826145d6565b506101208201516146c46101208501826145ef565b506101408201516146d96101408501826145ef565b50505050565b6000610160820190506146f560008301846145fe565b92915050565b600080fd5b60006101608284031215614717576147166146fb565b5b81905092915050565b600080610180838503121561473857614737613d72565b5b600061474685828601613fbf565b925050602061475785828601614700565b9150509250929050565b6000806040838503121561477857614777613d72565b5b600061478685828601613fbf565b925050602061479785828601613fbf565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e857607f821691505b6020821081036147fb576147fa6147a1565b5b50919050565b600081519050614810816142d4565b92915050565b60006020828403121561482c5761482b613d72565b5b600061483a84828501614801565b91505092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061489f602d83613e42565b91506148aa82614843565b604082019050919050565b600060208201905081810360008301526148ce81614892565b9050919050565b6148de816145e5565b82525050565b60006040820190506148f960008301856148d5565b6149066020830184613f7e565b9392505050565b60006040820190506149226000830185613f7e565b61492f60208301846148d5565b9392505050565b600061495161494c61494784614091565b614340565b613ee9565b9050919050565b61496181614936565b82525050565b600060208201905061497c6000830184614958565b92915050565b60008190508160005260206000209050919050565b600081546149a4816147d0565b6149ae8186613e42565b945060018216600081146149c957600181146149df57614a12565b60ff198316865281151560200286019350614a12565b6149e885614982565b60005b83811015614a0a578154818901526001820191506020810190506149eb565b808801955050505b50505092915050565b60006040820190508181036000830152614a358185614997565b90508181036020830152614a498184613e8e565b90509392505050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614a9f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614a62565b614aa98683614a62565b95508019841693508086168417925050509392505050565b6000614adc614ad7614ad284613ee9565b614340565b613ee9565b9050919050565b6000819050919050565b614af683614ac1565b614b0a614b0282614ae3565b848454614a6f565b825550505050565b600090565b614b1f614b12565b614b2a818484614aed565b505050565b5b81811015614b4e57614b43600082614b17565b600181019050614b30565b5050565b601f821115614b9357614b6481614982565b614b6d84614a52565b81016020851015614b7c578190505b614b90614b8885614a52565b830182614b2f565b50505b505050565b600082821c905092915050565b6000614bb660001984600802614b98565b1980831691505092915050565b6000614bcf8383614ba5565b9150826002028217905092915050565b614be882613e37565b67ffffffffffffffff811115614c0157614c006140d7565b5b614c0b82546147d0565b614c16828285614b52565b600060209050601f831160018114614c495760008415614c37578287015190505b614c418582614bc3565b865550614ca9565b601f198416614c5786614982565b60005b82811015614c7f57848901518255600182019150602085019450602081019050614c5a565b86831015614c9c5784890151614c98601f891682614ba5565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614ce7601883613e42565b9150614cf282614cb1565b602082019050919050565b60006020820190508181036000830152614d1681614cda565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614d79602983613e42565b9150614d8482614d1d565b604082019050919050565b60006020820190508181036000830152614da881614d6c565b9050919050565b6000604082019050614dc46000830185614067565b614dd16020830184614067565b9392505050565b6000604082019050614ded6000830185614958565b614dfa6020830184614958565b9392505050565b600081905092915050565b6000614e1782613e37565b614e218185614e01565b9350614e31818560208601613e53565b80840191505092915050565b6000614e498285614e0c565b9150614e558284614e0c565b91508190509392505050565b614e6a8161455a565b8114614e7557600080fd5b50565b600081359050614e8781614e61565b92915050565b600060208284031215614ea357614ea2613d72565b5b6000614eb184828501614e78565b91505092915050565b614ec3816145a4565b8114614ece57600080fd5b50565b600081359050614ee081614eba565b92915050565b600060208284031215614efc57614efb613d72565b5b6000614f0a84828501614ed1565b91505092915050565b614f1c816145a4565b82525050565b6000604082019050614f376000830185614f13565b614f446020830184614f13565b9392505050565b614f5481613d7c565b82525050565b6000606082019050614f6f6000830186614f4b565b614f7c60208301856148d5565b614f896040830184614f13565b949350505050565b6000608082019050614fa66000830187614f4b565b614fb360208301866148d5565b614fc06040830185614f13565b614fcd60608301846148d5565b95945050505050565b600060208284031215614fec57614feb613d72565b5b6000614ffa848285016140b8565b91505092915050565b60006060820190506150186000830186614067565b6150256020830185614067565b6150326040830184614067565b949350505050565b6000813561504781614e61565b80915050919050565b60008160001b9050919050565b60006fffffffffffffffffffffffffffffffff61507984615050565b9350801983169250808416831791505092915050565b600061509a8261455a565b9050919050565b60008160801c9050919050565b60006150b9826150a1565b9050919050565b6150c98261508f565b6150dc6150d5826150ae565b835461505d565b8255505050565b60008160801b9050919050565b60007fffffffffffffffffffffffffffffffff0000000000000000000000000000000061511c846150e3565b9350801983169250808416831791505092915050565b61513b8261508f565b61514e615147826150ae565b83546150f0565b8255505050565b6000813561516281613da8565b80915050919050565b600063ffffffff61517b84615050565b9350801983169250808416831791505092915050565b600061519c82613d7c565b9050919050565b60008160e01c9050919050565b60006151bb826151a3565b9050919050565b6151cb82615191565b6151de6151d7826151b0565b835461516b565b8255505050565b600081356151f281614eba565b80915050919050565b60008160201b9050919050565b60006bffffffffffffffff00000000615220846151fb565b9350801983169250808416831791505092915050565b600061525161524c615247846145a4565b614340565b6145a4565b9050919050565b6000819050919050565b61526b82615236565b61527e61527782615258565b8354615208565b8255505050565b60008160601b9050919050565b600073ffffffffffffffff0000000000000000000000006152b284615285565b9350801983169250808416831791505092915050565b6152d182615236565b6152e46152dd82615258565b8354615292565b8255505050565b60008160a01b9050919050565b60007bffffffffffffffff0000000000000000000000000000000000000000615320846152eb565b9350801983169250808416831791505092915050565b61533f82615236565b61535261534b82615258565b83546152f8565b8255505050565b60008135615366816140a1565b80915050919050565b60008160e01b9050919050565b60007fffffffff000000000000000000000000000000000000000000000000000000006153a88461536f565b9350801983169250808416831791505092915050565b60006153d96153d46153cf84614091565b614340565b614091565b9050919050565b6000819050919050565b6153f3826153be565b6154066153ff826153e0565b835461537c565b8255505050565b6000813561541a81613ef3565b80915050919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61544f84615050565b9350801983169250808416831791505092915050565b61546e82614ac1565b61548161547a82614ae3565b8354615423565b8255505050565b615491816145e5565b811461549c57600080fd5b50565b600081356154ac81615488565b80915050919050565b60006154c0826145e5565b9050919050565b60008160001c9050919050565b60006154df826154c7565b9050919050565b6154ef826154b5565b6155026154fb826154d4565b8354615423565b8255505050565b60008101600083018061551b8161503a565b905061552781846150c0565b50505060008101602083018061553c8161503a565b90506155488184615132565b50505060018101604083018061555d81615155565b905061556981846151c2565b50505060018101606083018061557e816151e5565b905061558a8184615262565b50505060018101608083018061559f816151e5565b90506155ab81846152c8565b5050506001810160a08301806155c0816151e5565b90506155cc8184615336565b5050506001810160c08301806155e181615359565b90506155ed81846153ea565b5050506002810160e08301806156028161540d565b905061560e8184615465565b505050600381016101008301806156248161540d565b90506156308184615465565b505050600481016101208301806156468161549f565b905061565281846154e6565b505050600581016101408301806156688161549f565b905061567481846154e6565b5050505050565b6156858282615509565b5050565b60006156986020840184614e78565b905092915050565b60006156af6020840184613dbf565b905092915050565b60006156c66020840184614ed1565b905092915050565b60006156dd60208401846140b8565b905092915050565b60006156f46020840184613f0a565b905092915050565b60008135905061570b81615488565b92915050565b600061572060208401846156fc565b905092915050565b610160820161573a6000830183615689565b6157476000850182614586565b506157556020830183615689565b6157626020850182614586565b5061577060408301836156a0565b61577d6040850182614595565b5061578b60608301836156b7565b61579860608501826145b8565b506157a660808301836156b7565b6157b360808501826145b8565b506157c160a08301836156b7565b6157ce60a08501826145b8565b506157dc60c08301836156ce565b6157e960c08501826145c7565b506157f760e08301836156e5565b61580460e08501826145d6565b506158136101008301836156e5565b6158216101008501826145d6565b50615830610120830183615711565b61583e6101208501826145ef565b5061584d610140830183615711565b61585b6101408501826145ef565b50505050565b6000610180820190506158776000830185614067565b6158846020830184615728565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006158c1601083613e42565b91506158cc8261588b565b602082019050919050565b600060208201905081810360008301526158f0816158b4565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615953602583613e42565b915061595e826158f7565b604082019050919050565b6000602082019050818103600083015261598281615946565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006159e5602483613e42565b91506159f082615989565b604082019050919050565b60006020820190508181036000830152615a14816159d8565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615a51601983613e42565b9150615a5c82615a1b565b602082019050919050565b60006020820190508181036000830152615a8081615a44565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615ae3603283613e42565b9150615aee82615a87565b604082019050919050565b60006020820190508181036000830152615b1281615ad6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615b7e601483613e42565b9150615b8982615b48565b602082019050919050565b60006020820190508181036000830152615bad81615b71565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bdb82615bb4565b615be58185615bbf565b9350615bf5818560208601613e53565b615bfe81613e7d565b840191505092915050565b6000608082019050615c1e6000830187613f7e565b615c2b6020830186613f7e565b615c386040830185614067565b8181036060830152615c4a8184615bd0565b905095945050505050565b600081519050615c6481613da8565b92915050565b600060208284031215615c8057615c7f613d72565b5b6000615c8e84828501615c55565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615ccd602083613e42565b9150615cd882615c97565b602082019050919050565b60006020820190508181036000830152615cfc81615cc0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615d39601c83613e42565b9150615d4482615d03565b602082019050919050565b60006020820190508181036000830152615d6881615d2c565b905091905056fea26469706673582212209704cbcec5f3e372b2f9d5e78fdc1d193f3578f7530c0eddabb98d1b7a4c324164736f6c6343000811003300000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a40000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e0000000000000000000000000000000000000000033b2e3d13968f764b9ffda5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80639503b7f61161010f578063bc43cbaf116100a2578063db006a7511610071578063db006a751461057f578063dbfd4b981461059b578063e3613a63146105b9578063e985e9c5146105d5576101f0565b8063bc43cbaf146104d1578063c87b56dd146104ef578063d7bf5ed01461051f578063d8fe76421461054f576101f0565b8063a4a33838116100de578063a4a338381461045f578063a4b5fa561461047b578063af7c542714610499578063b88d4fde146104b5576101f0565b80639503b7f6146103ed57806395d89b41146104095780639b642de114610427578063a22cb46514610443576101f0565b806342842e0e1161018757806370a082311161015657806370a0823114610377578063714c5398146103a75780637edd13c5146103c55780638456cb59146103e3576101f0565b806342842e0e146102f1578063432033c61461030d5780635c975abb146103295780636352211e14610347576101f0565b806323b872dd116101c357806323b872dd1461028f578063273ed315146102ab57806335d64dae146102c95780633f4ba83a146102e7576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190613dd4565b610605565b60405161021c9190613e1c565b60405180910390f35b61022d6106e7565b60405161023a9190613ec7565b60405180910390f35b61025d60048036038101906102589190613f1f565b610779565b60405161026a9190613f8d565b60405180910390f35b61028d60048036038101906102889190613fd4565b6107bf565b005b6102a960048036038101906102a49190614014565b610b64565b005b6102b3610bc4565b6040516102c09190614076565b60405180910390f35b6102d1610bd4565b6040516102de9190614076565b60405180910390f35b6102ef610be5565b005b61030b60048036038101906103069190614014565b610cf0565b005b61032760048036038101906103229190614202565b610d10565b005b610331610efe565b60405161033e9190613e1c565b60405180910390f35b610361600480360381019061035c9190613f1f565b610f15565b60405161036e9190613f8d565b60405180910390f35b610391600480360381019061038c919061425e565b610f9b565b60405161039e9190614076565b60405180910390f35b6103af611052565b6040516103bc9190613ec7565b60405180910390f35b6103cd6110e4565b6040516103da9190614076565b60405180910390f35b6103eb6110ee565b005b6104076004803603810190610402919061428b565b6111f9565b005b61041161136f565b60405161041e9190613ec7565b60405180910390f35b610441600480360381019061043c919061428b565b611401565b005b61045d60048036038101906104589190614300565b61154f565b005b61047960048036038101906104749190613f1f565b611722565b005b6104836118ae565b604051610490919061439f565b60405180910390f35b6104b360048036038101906104ae91906143ba565b6118d2565b005b6104cf60048036038101906104ca919061449b565b611b44565b005b6104d9611ba6565b6040516104e6919061453f565b60405180910390f35b61050960048036038101906105049190613f1f565b611bca565b6040516105169190613ec7565b60405180910390f35b61053960048036038101906105349190613f1f565b611c32565b6040516105469190613ec7565b60405180910390f35b61056960048036038101906105649190613f1f565b611cd7565b60405161057691906146df565b60405180910390f35b61059960048036038101906105949190613f1f565b611f26565b005b6105a36121da565b6040516105b09190614076565b60405180910390f35b6105d360048036038101906105ce9190614720565b6121eb565b005b6105ef60048036038101906105ea9190614761565b612855565b6040516105fc9190613e1c565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106d057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106e057506106df826128e9565b5b9050919050565b6060600080546106f6906147d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610722906147d0565b801561076f5780601f106107445761010080835404028352916020019161076f565b820191906000526020600020905b81548152906001019060200180831161075257829003601f168201915b5050505050905090565b600061078482612953565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6107c761299e565b817f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016108219190613f8d565b602060405180830381865afa15801561083e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108629190614816565b156108a457806040517f9c6aaf2900000000000000000000000000000000000000000000000000000000815260040161089b9190613f8d565b60405180910390fd5b337f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016108fe9190613f8d565b602060405180830381865afa15801561091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093f9190614816565b1561098157806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016109789190613f8d565b60405180910390fd5b61098a83610f15565b7f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016109e39190613f8d565b602060405180830381865afa158015610a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190614816565b15610a6657806040517f9c6aaf29000000000000000000000000000000000000000000000000000000008152600401610a5d9190613f8d565b60405180910390fd5b6000610a7185610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603610ad8576040517f17e707cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610b1b5750610b198133612855565b155b15610b52576040517fde841cbe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5c86866129e8565b505050505050565b610b75610b6f612aa1565b82612aa9565b610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab906148b5565b60405180910390fd5b610bbf838383612b3e565b505050565b6b033b2e3c9fd0803ce800000081565b6000610be06008612e37565b905090565b7f19e6747ba2734e64f81db64447941a832f966b06ebbd4e9b7c505c5a73846d027f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b8152600401610c619291906148e4565b602060405180830381865afa158015610c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca29190614816565b610ce55733816040517f5dcee3bb000000000000000000000000000000000000000000000000000000008152600401610cdc92919061490d565b60405180910390fd5b610ced612e45565b50565b610d0b83838360405180602001604052806000815250611b44565b505050565b7f7f08efd90273319d2c74ab573f1929a6c88b66064ed6e26afdfd1f8f32282d037f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b8152600401610d8c9291906148e4565b602060405180830381865afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcd9190614816565b610e105733816040517f5dcee3bb000000000000000000000000000000000000000000000000000000008152600401610e0792919061490d565b60405180910390fd5b6000600c60008563ffffffff1681526020019081526020016000208054610e36906147d0565b905003610e7a57826040517ffe3650dd000000000000000000000000000000000000000000000000000000008152600401610e719190614967565b60405180910390fd5b8263ffffffff167f1408973400c627deba86da82d54b13f55bec3a0cace5120f8f61a0a40a3d1bc7600c60008663ffffffff16815260200190815260200160002084604051610eca929190614a1b565b60405180910390a281600c60008563ffffffff1681526020019081526020016000209081610ef89190614bdf565b50505050565b6000600660009054906101000a900460ff16905090565b600080610f2183612ea8565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8990614cfd565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361100b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100290614d8f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600a8054611061906147d0565b80601f016020809104026020016040519081016040528092919081815260200182805461108d906147d0565b80156110da5780601f106110af576101008083540402835291602001916110da565b820191906000526020600020905b8154815290600101906020018083116110bd57829003601f168201915b5050505050905090565b6000600754905090565b7fdc712106d37f47f926091bd7881532ee5c2909077629285707043572309971f97f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161116a9291906148e4565b602060405180830381865afa158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190614816565b6111ee5733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016111e592919061490d565b60405180910390fd5b6111f6612ee5565b50565b7f7f08efd90273319d2c74ab573f1929a6c88b66064ed6e26afdfd1f8f32282d037f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b81526004016112759291906148e4565b602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190614816565b6112f95733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016112f092919061490d565b60405180910390fd5b6113036008612f48565b600061130f6008612e37565b905082600c600083815260200190815260200160002090816113319190614bdf565b50807fb9e610b9f7a30a2b0b3a7e276515ddbed388eb70e3c84bd25913d8ce0add9d7d846040516113629190613ec7565b60405180910390a2505050565b60606001805461137e906147d0565b80601f01602080910402602001604051908101604052809291908181526020018280546113aa906147d0565b80156113f75780601f106113cc576101008083540402835291602001916113f7565b820191906000526020600020905b8154815290600101906020018083116113da57829003601f168201915b5050505050905090565b7f89638d42a59fa1375df68ac34660e4601316db7f590ed978b30441dd920a5f0b7f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161147d9291906148e4565b602060405180830381865afa15801561149a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114be9190614816565b6115015733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016114f892919061490d565b60405180910390fd5b7ff90abac8a72a0a37d79d5980ffec7ff4c7eb4696095570aa399afce36f79c927600a83604051611533929190614a1b565b60405180910390a181600a908161154a9190614bdf565b505050565b61155761299e565b337f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016115b19190613f8d565b602060405180830381865afa1580156115ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f29190614816565b1561163457806040517f9c6aaf2900000000000000000000000000000000000000000000000000000000815260040161162b9190613f8d565b60405180910390fd5b827f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b815260040161168e9190613f8d565b602060405180830381865afa1580156116ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116cf9190614816565b1561171157806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016117089190613f8d565b60405180910390fd5b61171c338585612f5e565b50505050565b7f6df3d8e9a995c2f7dc8ae00552630997af7c4ee42a057b5bcf32f4f665aaab067f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161179e9291906148e4565b602060405180830381865afa1580156117bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117df9190614816565b6118225733816040517f5dcee3bb00000000000000000000000000000000000000000000000000000000815260040161181992919061490d565b60405180910390fd5b6b033b2e3c9fd0803ce8000000821015611868576040517fbb9d95ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f173455032cff2774f5fdcf519c01a2f47d5fb5ea8d9428c9097e827ef0920fe46007548360405161189b929190614daf565b60405180910390a1816007819055505050565b7f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e81565b7f7f08efd90273319d2c74ab573f1929a6c88b66064ed6e26afdfd1f8f32282d037f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b815260040161194e9291906148e4565b602060405180830381865afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f9190614816565b6119d25733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016119c992919061490d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166119f384612ea8565b73ffffffffffffffffffffffffffffffffffffffff1603611a40576040517fc10d0dfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008463ffffffff1681526020019081526020016000208054611a66906147d0565b905003611aaa57816040517ffe3650dd000000000000000000000000000000000000000000000000000000008152600401611aa19190614967565b60405180910390fd5b827f535531dda48fec487c5e778afa5a9258ebf6fc9516f6081e39abc83bbfd5ebfe600b6000868152602001908152602001600020600101601c9054906101000a900463ffffffff1684604051611b02929190614dd8565b60405180910390a281600b6000858152602001908152602001600020600101601c6101000a81548163ffffffff021916908363ffffffff160217905550505050565b611b55611b4f612aa1565b83612aa9565b611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b906148b5565b60405180910390fd5b611ba0848484846130ca565b50505050565b7f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4081565b6060611bd582612953565b6000611bdf613126565b90506000815111611bff5760405180602001604052806000815250611c2a565b80611c09846131b8565b604051602001611c1a929190614e3d565b6040516020818303038152906040525b915050919050565b6060600c60008381526020019081526020016000208054611c52906147d0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7e906147d0565b8015611ccb5780601f10611ca057610100808354040283529160200191611ccb565b820191906000526020600020905b815481529060010190602001808311611cae57829003601f168201915b50505050509050919050565b611cdf613c9f565b600073ffffffffffffffffffffffffffffffffffffffff16611d0083612ea8565b73ffffffffffffffffffffffffffffffffffffffff1603611d4d576040517fc10d0dfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b6000838152602001908152602001600020604051806101600160405290816000820160009054906101000a900460801b6fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff191681526020016000820160109054906101000a900460801b6fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff191681526020016001820160009054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020016001820160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160018201600c9054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff1681526020016001820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160018201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050919050565b7f9b1678ccfb2c629942c48b3c8662fb447d324c6989f8b31e59eb55fb27efde567f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b8152600401611fa29291906148e4565b602060405180830381865afa158015611fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe39190614816565b6120265733816040517f5dcee3bb00000000000000000000000000000000000000000000000000000000815260040161201d92919061490d565b60405180910390fd5b61202e61299e565b3373ffffffffffffffffffffffffffffffffffffffff1661204e83612ea8565b73ffffffffffffffffffffffffffffffffffffffff161461209b576040517f399979fc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b6000838152602001908152602001600020600080820160006101000a8154906fffffffffffffffffffffffffffffffff02191690556000820160106101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160006101000a81549063ffffffff02191690556001820160046101000a81549067ffffffffffffffff021916905560018201600c6101000a81549067ffffffffffffffff02191690556001820160146101000a81549067ffffffffffffffff021916905560018201601c6101000a81549063ffffffff02191690556002820160009055600382016000905560048201600090556005820160009055505061219f82613286565b7fbd82a9940f188699a12ca8792f7c5e518188780cbb457b8d81e8c72fc0c12a9b826040516121ce9190614076565b60405180910390a15050565b60006121e66009612e37565b905090565b7f397dbbbf805bea51aca828394ff5b2bbdf15062605da9376c7a6c26fba26c0b37f00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a4073ffffffffffffffffffffffffffffffffffffffff166391d1485482336040518363ffffffff1660e01b81526004016122679291906148e4565b602060405180830381865afa158015612284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a89190614816565b6122eb5733816040517f5dcee3bb0000000000000000000000000000000000000000000000000000000081526004016122e292919061490d565b60405180910390fd5b827f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016123459190613f8d565b602060405180830381865afa158015612362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123869190614816565b156123c857806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016123bf9190613f8d565b60405180910390fd5b6123d061299e565b600060801b6fffffffffffffffffffffffffffffffff19168360000160208101906123fb9190614e8d565b6fffffffffffffffffffffffffffffffff19161480156124565750600060801b6fffffffffffffffffffffffffffffffff19168360200160208101906124419190614e8d565b6fffffffffffffffffffffffffffffffff1916145b1561248d576040517f7a8d7ad600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168360400160208101906124c49190613dd4565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124f657506000801b836101200135145b8061251d575060008360a00160208101906125119190614ee6565b67ffffffffffffffff16145b15612554576040517f47e22d9000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260600160208101906125679190614ee6565b67ffffffffffffffff168360800160208101906125849190614ee6565b67ffffffffffffffff1610156125f7578260800160208101906125a79190614ee6565b8360600160208101906125ba9190614ee6565b6040517fab48f9760000000000000000000000000000000000000000000000000000000081526004016125ee929190614f22565b60405180910390fd5b8261014001358360400160208101906126109190613dd4565b8461012001358560a00160208101906126299190614ee6565b60405160200161263b93929190614f5a565b60405160208183030381529060405280519060200120146126c7578260400160208101906126699190613dd4565b8361012001358460a00160208101906126829190614ee6565b8561014001356040517fe18243920000000000000000000000000000000000000000000000000000000081526004016126be9493929190614f91565b60405180910390fd5b6000600c60008560c00160208101906126e09190614fd6565b63ffffffff16815260200190815260200160002080546126ff906147d0565b905003612755578260c00160208101906127199190614fd6565b6040517ffe3650dd00000000000000000000000000000000000000000000000000000000815260040161274c9190614967565b60405180910390fd5b6b033b2e3c9fd0803ce80000008360e00135108061277857506007548360e00135115b156127d0578260e001356b033b2e3c9fd0803ce80000006007546040517f31c211990000000000000000000000000000000000000000000000000000000081526004016127c793929190615003565b60405180910390fd5b6127da6009612f48565b60006127e66009612e37565b905083600b60008381526020019081526020016000208181612808919061567b565b90505061281585826133d4565b7f0553fe25da06a64b6a2b2d3575429e20802d48ab081eea66e6466871343658778185604051612846929190615861565b60405180910390a15050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61295c816133f2565b61299b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299290614cfd565b60405180910390fd5b50565b6129a6610efe565b156129e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129dd906158d7565b60405180910390fd5b565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a5b83610f15565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600033905090565b600080612ab583610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612af75750612af68185612855565b5b80612b3557508373ffffffffffffffffffffffffffffffffffffffff16612b1d84610779565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b5e82610f15565b73ffffffffffffffffffffffffffffffffffffffff1614612bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bab90615969565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a906159fb565b60405180910390fd5b612c308383836001613433565b8273ffffffffffffffffffffffffffffffffffffffff16612c5082610f15565b73ffffffffffffffffffffffffffffffffffffffff1614612ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9d90615969565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e3283838360016136db565b505050565b600081600001549050919050565b612e4d6136e1565b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612e91612aa1565b604051612e9e9190613f8d565b60405180910390a1565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b612eed61299e565b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f31612aa1565b604051612f3e9190613f8d565b60405180910390a1565b6001816000016000828254019250508190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc390615a67565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130bd9190613e1c565b60405180910390a3505050565b6130d5848484612b3e565b6130e18484848461372a565b613120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311790615af9565b60405180910390fd5b50505050565b6060600a8054613135906147d0565b80601f0160208091040260200160405190810160405280929190818152602001828054613161906147d0565b80156131ae5780601f10613183576101008083540402835291602001916131ae565b820191906000526020600020905b81548152906001019060200180831161319157829003601f168201915b5050505050905090565b6060600060016131c7846138b1565b01905060008167ffffffffffffffff8111156131e6576131e56140d7565b5b6040519080825280601f01601f1916602001820160405280156132185781602001600182028036833780820191505090505b509050600082602001820190505b60011561327b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161326f5761326e615b19565b5b04945060008503613226575b819350505050919050565b600061329182610f15565b90506132a1816000846001613433565b6132aa82610f15565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133d08160008460016136db565b5050565b6133ee828260405180602001604052806000815250613a04565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff1661341483612ea8565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61343b61299e565b337f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016134959190613f8d565b602060405180830381865afa1580156134b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d69190614816565b1561351857806040517f9c6aaf2900000000000000000000000000000000000000000000000000000000815260040161350f9190613f8d565b60405180910390fd5b847f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b81526004016135729190613f8d565b602060405180830381865afa15801561358f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135b39190614816565b156135f557806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016135ec9190613f8d565b60405180910390fd5b847f000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e73ffffffffffffffffffffffffffffffffffffffff1663fe575a87826040518263ffffffff1660e01b815260040161364f9190613f8d565b602060405180830381865afa15801561366c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136909190614816565b156136d257806040517f9c6aaf290000000000000000000000000000000000000000000000000000000081526004016136c99190613f8d565b60405180910390fd5b50505050505050565b50505050565b6136e9610efe565b613728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161371f90615b94565b60405180910390fd5b565b600061374b8473ffffffffffffffffffffffffffffffffffffffff16613a5f565b156138a4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613774612aa1565b8786866040518563ffffffff1660e01b81526004016137969493929190615c09565b6020604051808303816000875af19250505080156137d257506040513d601f19601f820116820180604052508101906137cf9190615c6a565b60015b613854573d8060008114613802576040519150601f19603f3d011682016040523d82523d6000602084013e613807565b606091505b50600081510361384c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384390615af9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506138a9565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061390f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161390557613904615b19565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061394c576d04ee2d6d415b85acef8100000000838161394257613941615b19565b5b0492506020810190505b662386f26fc10000831061397b57662386f26fc10000838161397157613970615b19565b5b0492506010810190505b6305f5e10083106139a4576305f5e100838161399a57613999615b19565b5b0492506008810190505b61271083106139c95761271083816139bf576139be615b19565b5b0492506004810190505b606483106139ec57606483816139e2576139e1615b19565b5b0492506002810190505b600a83106139fb576001810190505b80915050919050565b613a0e8383613a82565b613a1b600084848461372a565b613a5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5190615af9565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ae890615ce3565b60405180910390fd5b613afa816133f2565b15613b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b3190615d4f565b60405180910390fd5b613b48600083836001613433565b613b51816133f2565b15613b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8890615d4f565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c9b6000838360016136db565b5050565b60405180610160016040528060006fffffffffffffffffffffffffffffffff1916815260200160006fffffffffffffffffffffffffffffffff1916815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600081526020016000815260200160008019168152602001600080191681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613db181613d7c565b8114613dbc57600080fd5b50565b600081359050613dce81613da8565b92915050565b600060208284031215613dea57613de9613d72565b5b6000613df884828501613dbf565b91505092915050565b60008115159050919050565b613e1681613e01565b82525050565b6000602082019050613e316000830184613e0d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e71578082015181840152602081019050613e56565b60008484015250505050565b6000601f19601f8301169050919050565b6000613e9982613e37565b613ea38185613e42565b9350613eb3818560208601613e53565b613ebc81613e7d565b840191505092915050565b60006020820190508181036000830152613ee18184613e8e565b905092915050565b6000819050919050565b613efc81613ee9565b8114613f0757600080fd5b50565b600081359050613f1981613ef3565b92915050565b600060208284031215613f3557613f34613d72565b5b6000613f4384828501613f0a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f7782613f4c565b9050919050565b613f8781613f6c565b82525050565b6000602082019050613fa26000830184613f7e565b92915050565b613fb181613f6c565b8114613fbc57600080fd5b50565b600081359050613fce81613fa8565b92915050565b60008060408385031215613feb57613fea613d72565b5b6000613ff985828601613fbf565b925050602061400a85828601613f0a565b9150509250929050565b60008060006060848603121561402d5761402c613d72565b5b600061403b86828701613fbf565b935050602061404c86828701613fbf565b925050604061405d86828701613f0a565b9150509250925092565b61407081613ee9565b82525050565b600060208201905061408b6000830184614067565b92915050565b600063ffffffff82169050919050565b6140aa81614091565b81146140b557600080fd5b50565b6000813590506140c7816140a1565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61410f82613e7d565b810181811067ffffffffffffffff8211171561412e5761412d6140d7565b5b80604052505050565b6000614141613d68565b905061414d8282614106565b919050565b600067ffffffffffffffff82111561416d5761416c6140d7565b5b61417682613e7d565b9050602081019050919050565b82818337600083830152505050565b60006141a56141a084614152565b614137565b9050828152602081018484840111156141c1576141c06140d2565b5b6141cc848285614183565b509392505050565b600082601f8301126141e9576141e86140cd565b5b81356141f9848260208601614192565b91505092915050565b6000806040838503121561421957614218613d72565b5b6000614227858286016140b8565b925050602083013567ffffffffffffffff81111561424857614247613d77565b5b614254858286016141d4565b9150509250929050565b60006020828403121561427457614273613d72565b5b600061428284828501613fbf565b91505092915050565b6000602082840312156142a1576142a0613d72565b5b600082013567ffffffffffffffff8111156142bf576142be613d77565b5b6142cb848285016141d4565b91505092915050565b6142dd81613e01565b81146142e857600080fd5b50565b6000813590506142fa816142d4565b92915050565b6000806040838503121561431757614316613d72565b5b600061432585828601613fbf565b9250506020614336858286016142eb565b9150509250929050565b6000819050919050565b600061436561436061435b84613f4c565b614340565b613f4c565b9050919050565b60006143778261434a565b9050919050565b60006143898261436c565b9050919050565b6143998161437e565b82525050565b60006020820190506143b46000830184614390565b92915050565b600080604083850312156143d1576143d0613d72565b5b60006143df85828601613f0a565b92505060206143f0858286016140b8565b9150509250929050565b600067ffffffffffffffff821115614415576144146140d7565b5b61441e82613e7d565b9050602081019050919050565b600061443e614439846143fa565b614137565b90508281526020810184848401111561445a576144596140d2565b5b614465848285614183565b509392505050565b600082601f830112614482576144816140cd565b5b813561449284826020860161442b565b91505092915050565b600080600080608085870312156144b5576144b4613d72565b5b60006144c387828801613fbf565b94505060206144d487828801613fbf565b93505060406144e587828801613f0a565b925050606085013567ffffffffffffffff81111561450657614505613d77565b5b6145128782880161446d565b91505092959194509250565b60006145298261436c565b9050919050565b6145398161451e565b82525050565b60006020820190506145546000830184614530565b92915050565b60007fffffffffffffffffffffffffffffffff0000000000000000000000000000000082169050919050565b61458f8161455a565b82525050565b61459e81613d7c565b82525050565b600067ffffffffffffffff82169050919050565b6145c1816145a4565b82525050565b6145d081614091565b82525050565b6145df81613ee9565b82525050565b6000819050919050565b6145f8816145e5565b82525050565b610160820160008201516146156000850182614586565b5060208201516146286020850182614586565b50604082015161463b6040850182614595565b50606082015161464e60608501826145b8565b50608082015161466160808501826145b8565b5060a082015161467460a08501826145b8565b5060c082015161468760c08501826145c7565b5060e082015161469a60e08501826145d6565b506101008201516146af6101008501826145d6565b506101208201516146c46101208501826145ef565b506101408201516146d96101408501826145ef565b50505050565b6000610160820190506146f560008301846145fe565b92915050565b600080fd5b60006101608284031215614717576147166146fb565b5b81905092915050565b600080610180838503121561473857614737613d72565b5b600061474685828601613fbf565b925050602061475785828601614700565b9150509250929050565b6000806040838503121561477857614777613d72565b5b600061478685828601613fbf565b925050602061479785828601613fbf565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147e857607f821691505b6020821081036147fb576147fa6147a1565b5b50919050565b600081519050614810816142d4565b92915050565b60006020828403121561482c5761482b613d72565b5b600061483a84828501614801565b91505092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061489f602d83613e42565b91506148aa82614843565b604082019050919050565b600060208201905081810360008301526148ce81614892565b9050919050565b6148de816145e5565b82525050565b60006040820190506148f960008301856148d5565b6149066020830184613f7e565b9392505050565b60006040820190506149226000830185613f7e565b61492f60208301846148d5565b9392505050565b600061495161494c61494784614091565b614340565b613ee9565b9050919050565b61496181614936565b82525050565b600060208201905061497c6000830184614958565b92915050565b60008190508160005260206000209050919050565b600081546149a4816147d0565b6149ae8186613e42565b945060018216600081146149c957600181146149df57614a12565b60ff198316865281151560200286019350614a12565b6149e885614982565b60005b83811015614a0a578154818901526001820191506020810190506149eb565b808801955050505b50505092915050565b60006040820190508181036000830152614a358185614997565b90508181036020830152614a498184613e8e565b90509392505050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614a9f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614a62565b614aa98683614a62565b95508019841693508086168417925050509392505050565b6000614adc614ad7614ad284613ee9565b614340565b613ee9565b9050919050565b6000819050919050565b614af683614ac1565b614b0a614b0282614ae3565b848454614a6f565b825550505050565b600090565b614b1f614b12565b614b2a818484614aed565b505050565b5b81811015614b4e57614b43600082614b17565b600181019050614b30565b5050565b601f821115614b9357614b6481614982565b614b6d84614a52565b81016020851015614b7c578190505b614b90614b8885614a52565b830182614b2f565b50505b505050565b600082821c905092915050565b6000614bb660001984600802614b98565b1980831691505092915050565b6000614bcf8383614ba5565b9150826002028217905092915050565b614be882613e37565b67ffffffffffffffff811115614c0157614c006140d7565b5b614c0b82546147d0565b614c16828285614b52565b600060209050601f831160018114614c495760008415614c37578287015190505b614c418582614bc3565b865550614ca9565b601f198416614c5786614982565b60005b82811015614c7f57848901518255600182019150602085019450602081019050614c5a565b86831015614c9c5784890151614c98601f891682614ba5565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614ce7601883613e42565b9150614cf282614cb1565b602082019050919050565b60006020820190508181036000830152614d1681614cda565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614d79602983613e42565b9150614d8482614d1d565b604082019050919050565b60006020820190508181036000830152614da881614d6c565b9050919050565b6000604082019050614dc46000830185614067565b614dd16020830184614067565b9392505050565b6000604082019050614ded6000830185614958565b614dfa6020830184614958565b9392505050565b600081905092915050565b6000614e1782613e37565b614e218185614e01565b9350614e31818560208601613e53565b80840191505092915050565b6000614e498285614e0c565b9150614e558284614e0c565b91508190509392505050565b614e6a8161455a565b8114614e7557600080fd5b50565b600081359050614e8781614e61565b92915050565b600060208284031215614ea357614ea2613d72565b5b6000614eb184828501614e78565b91505092915050565b614ec3816145a4565b8114614ece57600080fd5b50565b600081359050614ee081614eba565b92915050565b600060208284031215614efc57614efb613d72565b5b6000614f0a84828501614ed1565b91505092915050565b614f1c816145a4565b82525050565b6000604082019050614f376000830185614f13565b614f446020830184614f13565b9392505050565b614f5481613d7c565b82525050565b6000606082019050614f6f6000830186614f4b565b614f7c60208301856148d5565b614f896040830184614f13565b949350505050565b6000608082019050614fa66000830187614f4b565b614fb360208301866148d5565b614fc06040830185614f13565b614fcd60608301846148d5565b95945050505050565b600060208284031215614fec57614feb613d72565b5b6000614ffa848285016140b8565b91505092915050565b60006060820190506150186000830186614067565b6150256020830185614067565b6150326040830184614067565b949350505050565b6000813561504781614e61565b80915050919050565b60008160001b9050919050565b60006fffffffffffffffffffffffffffffffff61507984615050565b9350801983169250808416831791505092915050565b600061509a8261455a565b9050919050565b60008160801c9050919050565b60006150b9826150a1565b9050919050565b6150c98261508f565b6150dc6150d5826150ae565b835461505d565b8255505050565b60008160801b9050919050565b60007fffffffffffffffffffffffffffffffff0000000000000000000000000000000061511c846150e3565b9350801983169250808416831791505092915050565b61513b8261508f565b61514e615147826150ae565b83546150f0565b8255505050565b6000813561516281613da8565b80915050919050565b600063ffffffff61517b84615050565b9350801983169250808416831791505092915050565b600061519c82613d7c565b9050919050565b60008160e01c9050919050565b60006151bb826151a3565b9050919050565b6151cb82615191565b6151de6151d7826151b0565b835461516b565b8255505050565b600081356151f281614eba565b80915050919050565b60008160201b9050919050565b60006bffffffffffffffff00000000615220846151fb565b9350801983169250808416831791505092915050565b600061525161524c615247846145a4565b614340565b6145a4565b9050919050565b6000819050919050565b61526b82615236565b61527e61527782615258565b8354615208565b8255505050565b60008160601b9050919050565b600073ffffffffffffffff0000000000000000000000006152b284615285565b9350801983169250808416831791505092915050565b6152d182615236565b6152e46152dd82615258565b8354615292565b8255505050565b60008160a01b9050919050565b60007bffffffffffffffff0000000000000000000000000000000000000000615320846152eb565b9350801983169250808416831791505092915050565b61533f82615236565b61535261534b82615258565b83546152f8565b8255505050565b60008135615366816140a1565b80915050919050565b60008160e01b9050919050565b60007fffffffff000000000000000000000000000000000000000000000000000000006153a88461536f565b9350801983169250808416831791505092915050565b60006153d96153d46153cf84614091565b614340565b614091565b9050919050565b6000819050919050565b6153f3826153be565b6154066153ff826153e0565b835461537c565b8255505050565b6000813561541a81613ef3565b80915050919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61544f84615050565b9350801983169250808416831791505092915050565b61546e82614ac1565b61548161547a82614ae3565b8354615423565b8255505050565b615491816145e5565b811461549c57600080fd5b50565b600081356154ac81615488565b80915050919050565b60006154c0826145e5565b9050919050565b60008160001c9050919050565b60006154df826154c7565b9050919050565b6154ef826154b5565b6155026154fb826154d4565b8354615423565b8255505050565b60008101600083018061551b8161503a565b905061552781846150c0565b50505060008101602083018061553c8161503a565b90506155488184615132565b50505060018101604083018061555d81615155565b905061556981846151c2565b50505060018101606083018061557e816151e5565b905061558a8184615262565b50505060018101608083018061559f816151e5565b90506155ab81846152c8565b5050506001810160a08301806155c0816151e5565b90506155cc8184615336565b5050506001810160c08301806155e181615359565b90506155ed81846153ea565b5050506002810160e08301806156028161540d565b905061560e8184615465565b505050600381016101008301806156248161540d565b90506156308184615465565b505050600481016101208301806156468161549f565b905061565281846154e6565b505050600581016101408301806156688161549f565b905061567481846154e6565b5050505050565b6156858282615509565b5050565b60006156986020840184614e78565b905092915050565b60006156af6020840184613dbf565b905092915050565b60006156c66020840184614ed1565b905092915050565b60006156dd60208401846140b8565b905092915050565b60006156f46020840184613f0a565b905092915050565b60008135905061570b81615488565b92915050565b600061572060208401846156fc565b905092915050565b610160820161573a6000830183615689565b6157476000850182614586565b506157556020830183615689565b6157626020850182614586565b5061577060408301836156a0565b61577d6040850182614595565b5061578b60608301836156b7565b61579860608501826145b8565b506157a660808301836156b7565b6157b360808501826145b8565b506157c160a08301836156b7565b6157ce60a08501826145b8565b506157dc60c08301836156ce565b6157e960c08501826145c7565b506157f760e08301836156e5565b61580460e08501826145d6565b506158136101008301836156e5565b6158216101008501826145d6565b50615830610120830183615711565b61583e6101208501826145ef565b5061584d610140830183615711565b61585b6101408501826145ef565b50505050565b6000610180820190506158776000830185614067565b6158846020830184615728565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006158c1601083613e42565b91506158cc8261588b565b602082019050919050565b600060208201905081810360008301526158f0816158b4565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615953602583613e42565b915061595e826158f7565b604082019050919050565b6000602082019050818103600083015261598281615946565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006159e5602483613e42565b91506159f082615989565b604082019050919050565b60006020820190508181036000830152615a14816159d8565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615a51601983613e42565b9150615a5c82615a1b565b602082019050919050565b60006020820190508181036000830152615a8081615a44565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615ae3603283613e42565b9150615aee82615a87565b604082019050919050565b60006020820190508181036000830152615b1281615ad6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615b7e601483613e42565b9150615b8982615b48565b602082019050919050565b60006020820190508181036000830152615bad81615b71565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bdb82615bb4565b615be58185615bbf565b9350615bf5818560208601613e53565b615bfe81613e7d565b840191505092915050565b6000608082019050615c1e6000830187613f7e565b615c2b6020830186613f7e565b615c386040830185614067565b8181036060830152615c4a8184615bd0565b905095945050505050565b600081519050615c6481613da8565b92915050565b600060208284031215615c8057615c7f613d72565b5b6000615c8e84828501615c55565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615ccd602083613e42565b9150615cd882615c97565b602082019050919050565b60006020820190508181036000830152615cfc81615cc0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615d39601c83613e42565b9150615d4482615d03565b602082019050919050565b60006020820190508181036000830152615d6881615d2c565b905091905056fea26469706673582212209704cbcec5f3e372b2f9d5e78fdc1d193f3578f7530c0eddabb98d1b7a4c324164736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a40000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e0000000000000000000000000000000000000000033b2e3d13968f764b9ffda5
-----Decoded View---------------
Arg [0] : _accessController (address): 0x80A31CE83B1Eb76Ec4c550D713136EfA29701A40
Arg [1] : _blacklist (address): 0xd34A77c963da4C16ECCBEE6D0A246047d086DA1E
Arg [2] : maxCoupon (uint256): 1000000008342372098909404581
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000080a31ce83b1eb76ec4c550d713136efa29701a40
Arg [1] : 000000000000000000000000d34a77c963da4c16eccbee6d0a246047d086da1e
Arg [2] : 0000000000000000000000000000000000000000033b2e3d13968f764b9ffda5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.