Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BurnMintERC677
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IBurnMintERC20} from "../ERC20/IBurnMintERC20.sol";
import {IERC677} from "./IERC677.sol";
import {ERC677} from "./ERC677.sol";
import {OwnerIsCreator} from "../../access/OwnerIsCreator.sol";
import {ERC20Burnable} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import {EnumerableSet} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableSet.sol";
import {IERC165} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol";
import {IERC20} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
/// @notice A basic ERC677 compatible token contract with burn and minting roles.
/// @dev The total supply can be limited during deployment.
contract BurnMintERC677 is IBurnMintERC20, ERC677, IERC165, ERC20Burnable, OwnerIsCreator {
using EnumerableSet for EnumerableSet.AddressSet;
error SenderNotMinter(address sender);
error SenderNotBurner(address sender);
error MaxSupplyExceeded(uint256 supplyAfterMint);
event MintAccessGranted(address indexed minter);
event BurnAccessGranted(address indexed burner);
event MintAccessRevoked(address indexed minter);
event BurnAccessRevoked(address indexed burner);
// @dev the allowed minter addresses
EnumerableSet.AddressSet internal s_minters;
// @dev the allowed burner addresses
EnumerableSet.AddressSet internal s_burners;
/// @dev The number of decimals for the token
uint8 internal immutable i_decimals;
/// @dev The maximum supply of the token, 0 if unlimited
uint256 internal immutable i_maxSupply;
constructor(string memory name, string memory symbol, uint8 decimals_, uint256 maxSupply_) ERC677(name, symbol) {
i_decimals = decimals_;
i_maxSupply = maxSupply_;
}
function supportsInterface(bytes4 interfaceId) public pure virtual override returns (bool) {
return
interfaceId == type(IERC20).interfaceId ||
interfaceId == type(IERC677).interfaceId ||
interfaceId == type(IBurnMintERC20).interfaceId ||
interfaceId == type(IERC165).interfaceId;
}
// ================================================================
// | ERC20 |
// ================================================================
/// @dev Returns the number of decimals used in its user representation.
function decimals() public view virtual override returns (uint8) {
return i_decimals;
}
/// @dev Returns the max supply of the token, 0 if unlimited.
function maxSupply() public view virtual returns (uint256) {
return i_maxSupply;
}
/// @dev Uses OZ ERC20 _transfer to disallow sending to address(0).
/// @dev Disallows sending to address(this)
function _transfer(address from, address to, uint256 amount) internal virtual override validAddress(to) {
super._transfer(from, to, amount);
}
/// @dev Uses OZ ERC20 _approve to disallow approving for address(0).
/// @dev Disallows approving for address(this)
function _approve(address owner, address spender, uint256 amount) internal virtual override validAddress(spender) {
super._approve(owner, spender, amount);
}
/// @dev Exists to be backwards compatible with the older naming convention.
function decreaseApproval(address spender, uint256 subtractedValue) external returns (bool success) {
return decreaseAllowance(spender, subtractedValue);
}
/// @dev Exists to be backwards compatible with the older naming convention.
function increaseApproval(address spender, uint256 addedValue) external {
increaseAllowance(spender, addedValue);
}
/// @notice Check if recipient is valid (not this contract address).
/// @param recipient the account we transfer/approve to.
/// @dev Reverts with an empty revert to be compatible with the existing link token when
/// the recipient is this contract address.
modifier validAddress(address recipient) virtual {
// solhint-disable-next-line reason-string, gas-custom-errors
if (recipient == address(this)) revert();
_;
}
// ================================================================
// | Burning & minting |
// ================================================================
/// @inheritdoc ERC20Burnable
/// @dev Uses OZ ERC20 _burn to disallow burning from address(0).
/// @dev Decreases the total supply.
function burn(uint256 amount) public override(IBurnMintERC20, ERC20Burnable) onlyBurner {
super.burn(amount);
}
/// @inheritdoc IBurnMintERC20
/// @dev Alias for BurnFrom for compatibility with the older naming convention.
/// @dev Uses burnFrom for all validation & logic.
function burn(address account, uint256 amount) public virtual override {
burnFrom(account, amount);
}
/// @inheritdoc ERC20Burnable
/// @dev Uses OZ ERC20 _burn to disallow burning from address(0).
/// @dev Decreases the total supply.
function burnFrom(address account, uint256 amount) public override(IBurnMintERC20, ERC20Burnable) onlyBurner {
super.burnFrom(account, amount);
}
/// @inheritdoc IBurnMintERC20
/// @dev Uses OZ ERC20 _mint to disallow minting to address(0).
/// @dev Disallows minting to address(this)
/// @dev Increases the total supply.
function mint(address account, uint256 amount) external override onlyMinter validAddress(account) {
if (i_maxSupply != 0 && totalSupply() + amount > i_maxSupply) revert MaxSupplyExceeded(totalSupply() + amount);
_mint(account, amount);
}
// ================================================================
// | Roles |
// ================================================================
/// @notice grants both mint and burn roles to `burnAndMinter`.
/// @dev calls public functions so this function does not require
/// access controls. This is handled in the inner functions.
function grantMintAndBurnRoles(address burnAndMinter) external {
grantMintRole(burnAndMinter);
grantBurnRole(burnAndMinter);
}
/// @notice Grants mint role to the given address.
/// @dev only the owner can call this function.
function grantMintRole(address minter) public onlyOwner {
if (s_minters.add(minter)) {
emit MintAccessGranted(minter);
}
}
/// @notice Grants burn role to the given address.
/// @dev only the owner can call this function.
function grantBurnRole(address burner) public onlyOwner {
if (s_burners.add(burner)) {
emit BurnAccessGranted(burner);
}
}
/// @notice Revokes mint role for the given address.
/// @dev only the owner can call this function.
function revokeMintRole(address minter) public onlyOwner {
if (s_minters.remove(minter)) {
emit MintAccessRevoked(minter);
}
}
/// @notice Revokes burn role from the given address.
/// @dev only the owner can call this function
function revokeBurnRole(address burner) public onlyOwner {
if (s_burners.remove(burner)) {
emit BurnAccessRevoked(burner);
}
}
/// @notice Returns all permissioned minters
function getMinters() public view returns (address[] memory) {
return s_minters.values();
}
/// @notice Returns all permissioned burners
function getBurners() public view returns (address[] memory) {
return s_burners.values();
}
// ================================================================
// | Access |
// ================================================================
/// @notice Checks whether a given address is a minter for this token.
/// @return true if the address is allowed to mint.
function isMinter(address minter) public view returns (bool) {
return s_minters.contains(minter);
}
/// @notice Checks whether a given address is a burner for this token.
/// @return true if the address is allowed to burn.
function isBurner(address burner) public view returns (bool) {
return s_burners.contains(burner);
}
/// @notice Checks whether the msg.sender is a permissioned minter for this token
/// @dev Reverts with a SenderNotMinter if the check fails
modifier onlyMinter() {
if (!isMinter(msg.sender)) revert SenderNotMinter(msg.sender);
_;
}
/// @notice Checks whether the msg.sender is a permissioned burner for this token
/// @dev Reverts with a SenderNotBurner if the check fails
modifier onlyBurner() {
if (!isBurner(msg.sender)) revert SenderNotBurner(msg.sender);
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
// solhint-disable no-unused-import
import {BurnMintERC677} from "@chainlink/[email protected]/src/v0.8/shared/token/ERC677/BurnMintERC677.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// 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/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys `amount` tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
/**
* @dev Destroys `amount` tokens from `account`, deducting from the caller's
* allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `amount`.
*/
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {ConfirmedOwner} from "./ConfirmedOwner.sol";
/// @title The OwnerIsCreator contract
/// @notice A contract with helpers for basic contract ownership.
contract OwnerIsCreator is ConfirmedOwner {
constructor() ConfirmedOwner(msg.sender) {}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import {IERC677} from "./IERC677.sol";
import {IERC677Receiver} from "../../interfaces/IERC677Receiver.sol";
import {ERC20} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol";
contract ERC677 is IERC677, ERC20 {
constructor(string memory name, string memory symbol) ERC20(name, symbol) {}
/// @inheritdoc IERC677
function transferAndCall(address to, uint256 amount, bytes memory data) public returns (bool success) {
super.transfer(to, amount);
emit Transfer(msg.sender, to, amount, data);
if (to.code.length > 0) {
IERC677Receiver(to).onTokenTransfer(msg.sender, amount, data);
}
return true;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC677 {
event Transfer(address indexed from, address indexed to, uint256 value, bytes data);
/// @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
/// @param to The address which you want to transfer to
/// @param amount The amount of tokens to be transferred
/// @param data bytes Additional data with no specified format, sent in call to `to`
/// @return true unless throwing
function transferAndCall(address to, uint256 amount, bytes memory data) external returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
interface IBurnMintERC20 is IERC20 {
/// @notice Mints new tokens for a given address.
/// @param account The address to mint the new tokens to.
/// @param amount The number of tokens to be minted.
/// @dev this function increases the total supply.
function mint(address account, uint256 amount) external;
/// @notice Burns tokens from the sender.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burn(uint256 amount) external;
/// @notice Burns tokens from a given address..
/// @param account The address to burn tokens from.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burn(address account, uint256 amount) external;
/// @notice Burns tokens from a given address..
/// @param account The address to burn tokens from.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burnFrom(address account, uint256 amount) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
interface IERC677Receiver {
function onTokenTransfer(address sender, uint256 amount, bytes calldata data) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {ConfirmedOwnerWithProposal} from "./ConfirmedOwnerWithProposal.sol";
/// @title The ConfirmedOwner contract
/// @notice A contract with helpers for basic contract ownership.
contract ConfirmedOwner is ConfirmedOwnerWithProposal {
constructor(address newOwner) ConfirmedOwnerWithProposal(newOwner, address(0)) {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IOwnable} from "../interfaces/IOwnable.sol";
/// @title The ConfirmedOwner contract
/// @notice A contract with helpers for basic contract ownership.
contract ConfirmedOwnerWithProposal is IOwnable {
address private s_owner;
address private s_pendingOwner;
event OwnershipTransferRequested(address indexed from, address indexed to);
event OwnershipTransferred(address indexed from, address indexed to);
constructor(address newOwner, address pendingOwner) {
// solhint-disable-next-line gas-custom-errors
require(newOwner != address(0), "Cannot set owner to zero");
s_owner = newOwner;
if (pendingOwner != address(0)) {
_transferOwnership(pendingOwner);
}
}
/// @notice Allows an owner to begin transferring ownership to a new address.
function transferOwnership(address to) public override onlyOwner {
_transferOwnership(to);
}
/// @notice Allows an ownership transfer to be completed by the recipient.
function acceptOwnership() external override {
// solhint-disable-next-line gas-custom-errors
require(msg.sender == s_pendingOwner, "Must be proposed owner");
address oldOwner = s_owner;
s_owner = msg.sender;
s_pendingOwner = address(0);
emit OwnershipTransferred(oldOwner, msg.sender);
}
/// @notice Get the current owner
function owner() public view override returns (address) {
return s_owner;
}
/// @notice validate, transfer ownership, and emit relevant events
function _transferOwnership(address to) private {
// solhint-disable-next-line gas-custom-errors
require(to != msg.sender, "Cannot transfer to self");
s_pendingOwner = to;
emit OwnershipTransferRequested(s_owner, to);
}
/// @notice validate access
function _validateOwnership() internal view {
// solhint-disable-next-line gas-custom-errors
require(msg.sender == s_owner, "Only callable by owner");
}
/// @notice Reverts if called by anyone other than the contract owner.
modifier onlyOwner() {
_validateOwnership();
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IOwnable {
function owner() external returns (address);
function transferOwnership(address recipient) external;
function acceptOwnership() external;
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"supplyAfterMint","type":"uint256"}],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotBurner","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotMinter","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"}],"name":"BurnAccessGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"}],"name":"BurnAccessRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MintAccessGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"}],"name":"MintAccessRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBurners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"grantBurnRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burnAndMinter","type":"address"}],"name":"grantMintAndBurnRoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"grantMintRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"isBurner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"revokeBurnRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"revokeMintRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c060405234801562000010575f80fd5b506040516200378a3803806200378a8339818101604052810190620000369190620004a6565b33805f8686818181600390816200004e919062000781565b50806004908162000060919062000781565b50505050505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620000d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000cd90620008c3565b60405180910390fd5b8160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146200015c576200015b816200017f60201b60201c565b5b5050508160ff1660808160ff16815250508060a081815250505050505062000951565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001f0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e79062000931565b60405180910390fd5b8060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127860405160405180910390a350565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200030f82620002c7565b810181811067ffffffffffffffff82111715620003315762000330620002d7565b5b80604052505050565b5f62000345620002ae565b905062000353828262000304565b919050565b5f67ffffffffffffffff821115620003755762000374620002d7565b5b6200038082620002c7565b9050602081019050919050565b5f5b83811015620003ac5780820151818401526020810190506200038f565b5f8484015250505050565b5f620003cd620003c78462000358565b6200033a565b905082815260208101848484011115620003ec57620003eb620002c3565b5b620003f98482856200038d565b509392505050565b5f82601f830112620004185762000417620002bf565b5b81516200042a848260208601620003b7565b91505092915050565b5f60ff82169050919050565b6200044a8162000433565b811462000455575f80fd5b50565b5f8151905062000468816200043f565b92915050565b5f819050919050565b62000482816200046e565b81146200048d575f80fd5b50565b5f81519050620004a08162000477565b92915050565b5f805f8060808587031215620004c157620004c0620002b7565b5b5f85015167ffffffffffffffff811115620004e157620004e0620002bb565b5b620004ef8782880162000401565b945050602085015167ffffffffffffffff811115620005135762000512620002bb565b5b620005218782880162000401565b9350506040620005348782880162000458565b9250506060620005478782880162000490565b91505092959194509250565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620005a257607f821691505b602082108103620005b857620005b76200055d565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200061c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005df565b620006288683620005df565b95508019841693508086168417925050509392505050565b5f819050919050565b5f62000669620006636200065d846200046e565b62000640565b6200046e565b9050919050565b5f819050919050565b620006848362000649565b6200069c620006938262000670565b848454620005eb565b825550505050565b5f90565b620006b2620006a4565b620006bf81848462000679565b505050565b5b81811015620006e657620006da5f82620006a8565b600181019050620006c5565b5050565b601f8211156200073557620006ff81620005be565b6200070a84620005d0565b810160208510156200071a578190505b620007326200072985620005d0565b830182620006c4565b50505b505050565b5f82821c905092915050565b5f620007575f19846008026200073a565b1980831691505092915050565b5f62000771838362000746565b9150826002028217905092915050565b6200078c8262000553565b67ffffffffffffffff811115620007a857620007a7620002d7565b5b620007b482546200058a565b620007c1828285620006ea565b5f60209050601f831160018114620007f7575f8415620007e2578287015190505b620007ee858262000764565b8655506200085d565b601f1984166200080786620005be565b5f5b82811015620008305784890151825560018201915060208501945060208101905062000809565b868310156200085057848901516200084c601f89168262000746565b8355505b6001600288020188555050505b505050505050565b5f82825260208201905092915050565b7f43616e6e6f7420736574206f776e657220746f207a65726f00000000000000005f82015250565b5f620008ab60188362000865565b9150620008b88262000875565b602082019050919050565b5f6020820190508181035f830152620008dc816200089d565b9050919050565b7f43616e6e6f74207472616e7366657220746f2073656c660000000000000000005f82015250565b5f6200091960178362000865565b91506200092682620008e3565b602082019050919050565b5f6020820190508181035f8301526200094a816200090b565b9050919050565b60805160a051612e09620009815f395f8181610ad401528181610afe015261113301525f6108ed0152612e095ff3fe608060405234801561000f575f80fd5b50600436106101ee575f3560e01c806379cc67901161010d578063c2e3273d116100a0578063d73dd6231161006f578063d73dd623146105dc578063dd62ed3e146105f8578063f2fde38b14610628578063f81094f314610644576101ee565b8063c2e3273d1461056a578063c630948d14610586578063c64d0ebc146105a2578063d5abeb01146105be576101ee565b80639dc29fac116100dc5780639dc29fac146104be578063a457c2d7146104da578063a9059cbb1461050a578063aa271e1a1461053a576101ee565b806379cc67901461044857806386fe8b43146104645780638da5cb5b1461048257806395d89b41146104a0576101ee565b806340c10f1911610185578063661884631161015457806366188463146103c05780636b32810b146103f057806370a082311461040e57806379ba50971461043e576101ee565b806340c10f191461033c57806342966c68146103585780634334614a146103745780634f5632f8146103a4576101ee565b806323b872dd116101c157806323b872dd1461028e578063313ce567146102be57806339509351146102dc5780634000aea01461030c576101ee565b806301ffc9a7146101f257806306fdde0314610222578063095ea7b31461024057806318160ddd14610270575b5f80fd5b61020c60048036038101906102079190611fab565b610660565b6040516102199190611ff0565b60405180910390f35b61022a610801565b6040516102379190612093565b60405180910390f35b61025a60048036038101906102559190612140565b610891565b6040516102679190611ff0565b60405180910390f35b6102786108b3565b604051610285919061218d565b60405180910390f35b6102a860048036038101906102a391906121a6565b6108bc565b6040516102b59190611ff0565b60405180910390f35b6102c66108ea565b6040516102d39190612211565b60405180910390f35b6102f660048036038101906102f19190612140565b610911565b6040516103039190611ff0565b60405180910390f35b61032660048036038101906103219190612356565b610947565b6040516103339190611ff0565b60405180910390f35b61035660048036038101906103519190612140565b610a4f565b005b610372600480360381019061036d91906123c2565b610b95565b005b61038e600480360381019061038991906123ed565b610beb565b60405161039b9190611ff0565b60405180910390f35b6103be60048036038101906103b991906123ed565b610c07565b005b6103da60048036038101906103d59190612140565b610c6f565b6040516103e79190611ff0565b60405180910390f35b6103f8610c82565b60405161040591906124cf565b60405180910390f35b610428600480360381019061042391906123ed565b610c93565b604051610435919061218d565b60405180910390f35b610446610cd8565b005b610462600480360381019061045d9190612140565b610e69565b005b61046c610ec1565b60405161047991906124cf565b60405180910390f35b61048a610ed2565b60405161049791906124fe565b60405180910390f35b6104a8610efa565b6040516104b59190612093565b60405180910390f35b6104d860048036038101906104d39190612140565b610f8a565b005b6104f460048036038101906104ef9190612140565b610f98565b6040516105019190611ff0565b60405180910390f35b610524600480360381019061051f9190612140565b61100d565b6040516105319190611ff0565b60405180910390f35b610554600480360381019061054f91906123ed565b61102f565b6040516105619190611ff0565b60405180910390f35b610584600480360381019061057f91906123ed565b61104b565b005b6105a0600480360381019061059b91906123ed565b6110b3565b005b6105bc60048036038101906105b791906123ed565b6110c8565b005b6105c6611130565b6040516105d3919061218d565b60405180910390f35b6105f660048036038101906105f19190612140565b611157565b005b610612600480360381019061060d9190612517565b611166565b60405161061f919061218d565b60405180910390f35b610642600480360381019061063d91906123ed565b6111e8565b005b61065e600480360381019061065991906123ed565b6111fc565b005b5f7f36372b07000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072a57507f4000aea0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061079257507fe6599b4d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107fa57507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461081090612582565b80601f016020809104026020016040519081016040528092919081815260200182805461083c90612582565b80156108875780601f1061085e57610100808354040283529160200191610887565b820191905f5260205f20905b81548152906001019060200180831161086a57829003601f168201915b5050505050905090565b5f8061089b611264565b90506108a881858561126b565b600191505092915050565b5f600254905090565b5f806108c6611264565b90506108d38582856112b4565b6108de85858561133f565b60019150509392505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b5f8061091b611264565b905061093c81858561092d8589611166565b61093791906125df565b61126b565b600191505092915050565b5f610952848461100d565b508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c1685856040516109b2929190612664565b60405180910390a35f8473ffffffffffffffffffffffffffffffffffffffff163b1115610a44578373ffffffffffffffffffffffffffffffffffffffff1663a4c0ed363385856040518463ffffffff1660e01b8152600401610a1693929190612692565b5f604051808303815f87803b158015610a2d575f80fd5b505af1158015610a3f573d5f803e3d5ffd5b505050505b600190509392505050565b610a583361102f565b610a9957336040517fe2c8c9d5000000000000000000000000000000000000000000000000000000008152600401610a9091906124fe565b60405180910390fd5b813073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ad1575f80fd5b5f7f000000000000000000000000000000000000000000000000000000000000000014158015610b3257507f000000000000000000000000000000000000000000000000000000000000000082610b266108b3565b610b3091906125df565b115b15610b865781610b406108b3565b610b4a91906125df565b6040517fcbbf1113000000000000000000000000000000000000000000000000000000008152600401610b7d919061218d565b60405180910390fd5b610b908383611388565b505050565b610b9e33610beb565b610bdf57336040517fc820b10b000000000000000000000000000000000000000000000000000000008152600401610bd691906124fe565b60405180910390fd5b610be8816114d6565b50565b5f610c008260096114ea90919063ffffffff16565b9050919050565b610c0f611517565b610c238160096115a890919063ffffffff16565b15610c6c578073ffffffffffffffffffffffffffffffffffffffff167f0a675452746933cefe3d74182e78db7afe57ba60eaa4234b5d85e9aa41b0610c60405160405180910390a25b50565b5f610c7a8383610f98565b905092915050565b6060610c8e60076115d5565b905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e90612718565b60405180910390fd5b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690503360055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350565b610e7233610beb565b610eb357336040517fc820b10b000000000000000000000000000000000000000000000000000000008152600401610eaa91906124fe565b60405180910390fd5b610ebd82826115f4565b5050565b6060610ecd60096115d5565b905090565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610f0990612582565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3590612582565b8015610f805780601f10610f5757610100808354040283529160200191610f80565b820191905f5260205f20905b815481529060010190602001808311610f6357829003601f168201915b5050505050905090565b610f948282610e69565b5050565b5f80610fa2611264565b90505f610faf8286611166565b905083811015610ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610feb906127a6565b60405180910390fd5b611001828686840361126b565b60019250505092915050565b5f80611017611264565b905061102481858561133f565b600191505092915050565b5f6110448260076114ea90919063ffffffff16565b9050919050565b611053611517565b61106781600761161490919063ffffffff16565b156110b0578073ffffffffffffffffffffffffffffffffffffffff167fe46fef8bbff1389d9010703cf8ebb363fb3daf5bf56edc27080b67bc8d9251ea60405160405180910390a25b50565b6110bc8161104b565b6110c5816110c8565b50565b6110d0611517565b6110e481600961161490919063ffffffff16565b1561112d578073ffffffffffffffffffffffffffffffffffffffff167f92308bb7573b2a3d17ddb868b39d8ebec433f3194421abc22d084f89658c9bad60405160405180910390a25b50565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b6111618282610911565b505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6111f0611517565b6111f981611641565b50565b611204611517565b6112188160076115a890919063ffffffff16565b15611261578073ffffffffffffffffffffffffffffffffffffffff167fed998b960f6340d045f620c119730f7aa7995e7425c2401d3a5b64ff998a59e960405160405180910390a25b50565b5f33905090565b813073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112a3575f80fd5b6112ae84848461176d565b50505050565b5f6112bf8484611166565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611339578181101561132b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113229061280e565b60405180910390fd5b611338848484840361126b565b5b50505050565b813073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611377575f80fd5b611382848484611930565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ed90612876565b60405180910390fd5b6114015f8383611b9c565b8060025f82825461141291906125df565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114bf919061218d565b60405180910390a36114d25f8383611ba1565b5050565b6114e76114e1611264565b82611ba6565b50565b5f61150f835f018373ffffffffffffffffffffffffffffffffffffffff165f1b611d69565b905092915050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d906128de565b60405180910390fd5b565b5f6115cd835f018373ffffffffffffffffffffffffffffffffffffffff165f1b611d89565b905092915050565b60605f6115e3835f01611e85565b905060608190508092505050919050565b61160682611600611264565b836112b4565b6116108282611ba6565b5050565b5f611639835f018373ffffffffffffffffffffffffffffffffffffffff165f1b611ede565b905092915050565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a690612946565b60405180910390fd5b8060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127860405160405180910390a350565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d2906129d4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184090612a62565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611923919061218d565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361199e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199590612af0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0390612b7e565b60405180910390fd5b611a17838383611b9c565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190612c0c565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b83919061218d565b60405180910390a3611b96848484611ba1565b50505050565b505050565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0b90612c9a565b60405180910390fd5b611c1f825f83611b9c565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9990612d28565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d51919061218d565b60405180910390a3611d64835f84611ba1565b505050565b5f80836001015f8481526020019081526020015f20541415905092915050565b5f80836001015f8481526020019081526020015f205490505f8114611e7a575f600182611db69190612d46565b90505f6001865f0180549050611dcc9190612d46565b9050818114611e32575f865f018281548110611deb57611dea612d79565b5b905f5260205f200154905080875f018481548110611e0c57611e0b612d79565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f01805480611e4557611e44612da6565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050611e7f565b5f9150505b92915050565b6060815f01805480602002602001604051908101604052809291908181526020018280548015611ed257602002820191905f5260205f20905b815481526020019060010190808311611ebe575b50505050509050919050565b5f611ee98383611d69565b611f3b57825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050611f3f565b5f90505b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611f8a81611f56565b8114611f94575f80fd5b50565b5f81359050611fa581611f81565b92915050565b5f60208284031215611fc057611fbf611f4e565b5b5f611fcd84828501611f97565b91505092915050565b5f8115159050919050565b611fea81611fd6565b82525050565b5f6020820190506120035f830184611fe1565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612040578082015181840152602081019050612025565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61206582612009565b61206f8185612013565b935061207f818560208601612023565b6120888161204b565b840191505092915050565b5f6020820190508181035f8301526120ab818461205b565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6120dc826120b3565b9050919050565b6120ec816120d2565b81146120f6575f80fd5b50565b5f81359050612107816120e3565b92915050565b5f819050919050565b61211f8161210d565b8114612129575f80fd5b50565b5f8135905061213a81612116565b92915050565b5f806040838503121561215657612155611f4e565b5b5f612163858286016120f9565b92505060206121748582860161212c565b9150509250929050565b6121878161210d565b82525050565b5f6020820190506121a05f83018461217e565b92915050565b5f805f606084860312156121bd576121bc611f4e565b5b5f6121ca868287016120f9565b93505060206121db868287016120f9565b92505060406121ec8682870161212c565b9150509250925092565b5f60ff82169050919050565b61220b816121f6565b82525050565b5f6020820190506122245f830184612202565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6122688261204b565b810181811067ffffffffffffffff8211171561228757612286612232565b5b80604052505050565b5f612299611f45565b90506122a5828261225f565b919050565b5f67ffffffffffffffff8211156122c4576122c3612232565b5b6122cd8261204b565b9050602081019050919050565b828183375f83830152505050565b5f6122fa6122f5846122aa565b612290565b9050828152602081018484840111156123165761231561222e565b5b6123218482856122da565b509392505050565b5f82601f83011261233d5761233c61222a565b5b813561234d8482602086016122e8565b91505092915050565b5f805f6060848603121561236d5761236c611f4e565b5b5f61237a868287016120f9565b935050602061238b8682870161212c565b925050604084013567ffffffffffffffff8111156123ac576123ab611f52565b5b6123b886828701612329565b9150509250925092565b5f602082840312156123d7576123d6611f4e565b5b5f6123e48482850161212c565b91505092915050565b5f6020828403121561240257612401611f4e565b5b5f61240f848285016120f9565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61244a816120d2565b82525050565b5f61245b8383612441565b60208301905092915050565b5f602082019050919050565b5f61247d82612418565b6124878185612422565b935061249283612432565b805f5b838110156124c25781516124a98882612450565b97506124b483612467565b925050600181019050612495565b5085935050505092915050565b5f6020820190508181035f8301526124e78184612473565b905092915050565b6124f8816120d2565b82525050565b5f6020820190506125115f8301846124ef565b92915050565b5f806040838503121561252d5761252c611f4e565b5b5f61253a858286016120f9565b925050602061254b858286016120f9565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061259957607f821691505b6020821081036125ac576125ab612555565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6125e98261210d565b91506125f48361210d565b925082820190508082111561260c5761260b6125b2565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f61263682612612565b612640818561261c565b9350612650818560208601612023565b6126598161204b565b840191505092915050565b5f6040820190506126775f83018561217e565b8181036020830152612689818461262c565b90509392505050565b5f6060820190506126a55f8301866124ef565b6126b2602083018561217e565b81810360408301526126c4818461262c565b9050949350505050565b7f4d7573742062652070726f706f736564206f776e6572000000000000000000005f82015250565b5f612702601683612013565b915061270d826126ce565b602082019050919050565b5f6020820190508181035f83015261272f816126f6565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612790602583612013565b915061279b82612736565b604082019050919050565b5f6020820190508181035f8301526127bd81612784565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f6127f8601d83612013565b9150612803826127c4565b602082019050919050565b5f6020820190508181035f830152612825816127ec565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f612860601f83612013565b915061286b8261282c565b602082019050919050565b5f6020820190508181035f83015261288d81612854565b9050919050565b7f4f6e6c792063616c6c61626c65206279206f776e6572000000000000000000005f82015250565b5f6128c8601683612013565b91506128d382612894565b602082019050919050565b5f6020820190508181035f8301526128f5816128bc565b9050919050565b7f43616e6e6f74207472616e7366657220746f2073656c660000000000000000005f82015250565b5f612930601783612013565b915061293b826128fc565b602082019050919050565b5f6020820190508181035f83015261295d81612924565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6129be602483612013565b91506129c982612964565b604082019050919050565b5f6020820190508181035f8301526129eb816129b2565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612a4c602283612013565b9150612a57826129f2565b604082019050919050565b5f6020820190508181035f830152612a7981612a40565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612ada602583612013565b9150612ae582612a80565b604082019050919050565b5f6020820190508181035f830152612b0781612ace565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612b68602383612013565b9150612b7382612b0e565b604082019050919050565b5f6020820190508181035f830152612b9581612b5c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612bf6602683612013565b9150612c0182612b9c565b604082019050919050565b5f6020820190508181035f830152612c2381612bea565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f612c84602183612013565b9150612c8f82612c2a565b604082019050919050565b5f6020820190508181035f830152612cb181612c78565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f612d12602283612013565b9150612d1d82612cb8565b604082019050919050565b5f6020820190508181035f830152612d3f81612d06565b9050919050565b5f612d508261210d565b9150612d5b8361210d565b9250828203905081811115612d7357612d726125b2565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea264697066735822122089b536667157e69aa21d1476029a31dee2ac84bf6593868dfe8aafe569d7117f64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000054f529ca52576bc6892000000000000000000000000000000000000000000000000000000000000000000000c417075204170757374616a61000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034150550000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101ee575f3560e01c806379cc67901161010d578063c2e3273d116100a0578063d73dd6231161006f578063d73dd623146105dc578063dd62ed3e146105f8578063f2fde38b14610628578063f81094f314610644576101ee565b8063c2e3273d1461056a578063c630948d14610586578063c64d0ebc146105a2578063d5abeb01146105be576101ee565b80639dc29fac116100dc5780639dc29fac146104be578063a457c2d7146104da578063a9059cbb1461050a578063aa271e1a1461053a576101ee565b806379cc67901461044857806386fe8b43146104645780638da5cb5b1461048257806395d89b41146104a0576101ee565b806340c10f1911610185578063661884631161015457806366188463146103c05780636b32810b146103f057806370a082311461040e57806379ba50971461043e576101ee565b806340c10f191461033c57806342966c68146103585780634334614a146103745780634f5632f8146103a4576101ee565b806323b872dd116101c157806323b872dd1461028e578063313ce567146102be57806339509351146102dc5780634000aea01461030c576101ee565b806301ffc9a7146101f257806306fdde0314610222578063095ea7b31461024057806318160ddd14610270575b5f80fd5b61020c60048036038101906102079190611fab565b610660565b6040516102199190611ff0565b60405180910390f35b61022a610801565b6040516102379190612093565b60405180910390f35b61025a60048036038101906102559190612140565b610891565b6040516102679190611ff0565b60405180910390f35b6102786108b3565b604051610285919061218d565b60405180910390f35b6102a860048036038101906102a391906121a6565b6108bc565b6040516102b59190611ff0565b60405180910390f35b6102c66108ea565b6040516102d39190612211565b60405180910390f35b6102f660048036038101906102f19190612140565b610911565b6040516103039190611ff0565b60405180910390f35b61032660048036038101906103219190612356565b610947565b6040516103339190611ff0565b60405180910390f35b61035660048036038101906103519190612140565b610a4f565b005b610372600480360381019061036d91906123c2565b610b95565b005b61038e600480360381019061038991906123ed565b610beb565b60405161039b9190611ff0565b60405180910390f35b6103be60048036038101906103b991906123ed565b610c07565b005b6103da60048036038101906103d59190612140565b610c6f565b6040516103e79190611ff0565b60405180910390f35b6103f8610c82565b60405161040591906124cf565b60405180910390f35b610428600480360381019061042391906123ed565b610c93565b604051610435919061218d565b60405180910390f35b610446610cd8565b005b610462600480360381019061045d9190612140565b610e69565b005b61046c610ec1565b60405161047991906124cf565b60405180910390f35b61048a610ed2565b60405161049791906124fe565b60405180910390f35b6104a8610efa565b6040516104b59190612093565b60405180910390f35b6104d860048036038101906104d39190612140565b610f8a565b005b6104f460048036038101906104ef9190612140565b610f98565b6040516105019190611ff0565b60405180910390f35b610524600480360381019061051f9190612140565b61100d565b6040516105319190611ff0565b60405180910390f35b610554600480360381019061054f91906123ed565b61102f565b6040516105619190611ff0565b60405180910390f35b610584600480360381019061057f91906123ed565b61104b565b005b6105a0600480360381019061059b91906123ed565b6110b3565b005b6105bc60048036038101906105b791906123ed565b6110c8565b005b6105c6611130565b6040516105d3919061218d565b60405180910390f35b6105f660048036038101906105f19190612140565b611157565b005b610612600480360381019061060d9190612517565b611166565b60405161061f919061218d565b60405180910390f35b610642600480360381019061063d91906123ed565b6111e8565b005b61065e600480360381019061065991906123ed565b6111fc565b005b5f7f36372b07000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072a57507f4000aea0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061079257507fe6599b4d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107fa57507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461081090612582565b80601f016020809104026020016040519081016040528092919081815260200182805461083c90612582565b80156108875780601f1061085e57610100808354040283529160200191610887565b820191905f5260205f20905b81548152906001019060200180831161086a57829003601f168201915b5050505050905090565b5f8061089b611264565b90506108a881858561126b565b600191505092915050565b5f600254905090565b5f806108c6611264565b90506108d38582856112b4565b6108de85858561133f565b60019150509392505050565b5f7f0000000000000000000000000000000000000000000000000000000000000012905090565b5f8061091b611264565b905061093c81858561092d8589611166565b61093791906125df565b61126b565b600191505092915050565b5f610952848461100d565b508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c1685856040516109b2929190612664565b60405180910390a35f8473ffffffffffffffffffffffffffffffffffffffff163b1115610a44578373ffffffffffffffffffffffffffffffffffffffff1663a4c0ed363385856040518463ffffffff1660e01b8152600401610a1693929190612692565b5f604051808303815f87803b158015610a2d575f80fd5b505af1158015610a3f573d5f803e3d5ffd5b505050505b600190509392505050565b610a583361102f565b610a9957336040517fe2c8c9d5000000000000000000000000000000000000000000000000000000008152600401610a9091906124fe565b60405180910390fd5b813073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ad1575f80fd5b5f7f00000000000000000000000000000000000000054f529ca52576bc689200000014158015610b3257507f00000000000000000000000000000000000000054f529ca52576bc689200000082610b266108b3565b610b3091906125df565b115b15610b865781610b406108b3565b610b4a91906125df565b6040517fcbbf1113000000000000000000000000000000000000000000000000000000008152600401610b7d919061218d565b60405180910390fd5b610b908383611388565b505050565b610b9e33610beb565b610bdf57336040517fc820b10b000000000000000000000000000000000000000000000000000000008152600401610bd691906124fe565b60405180910390fd5b610be8816114d6565b50565b5f610c008260096114ea90919063ffffffff16565b9050919050565b610c0f611517565b610c238160096115a890919063ffffffff16565b15610c6c578073ffffffffffffffffffffffffffffffffffffffff167f0a675452746933cefe3d74182e78db7afe57ba60eaa4234b5d85e9aa41b0610c60405160405180910390a25b50565b5f610c7a8383610f98565b905092915050565b6060610c8e60076115d5565b905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e90612718565b60405180910390fd5b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690503360055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350565b610e7233610beb565b610eb357336040517fc820b10b000000000000000000000000000000000000000000000000000000008152600401610eaa91906124fe565b60405180910390fd5b610ebd82826115f4565b5050565b6060610ecd60096115d5565b905090565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610f0990612582565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3590612582565b8015610f805780601f10610f5757610100808354040283529160200191610f80565b820191905f5260205f20905b815481529060010190602001808311610f6357829003601f168201915b5050505050905090565b610f948282610e69565b5050565b5f80610fa2611264565b90505f610faf8286611166565b905083811015610ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610feb906127a6565b60405180910390fd5b611001828686840361126b565b60019250505092915050565b5f80611017611264565b905061102481858561133f565b600191505092915050565b5f6110448260076114ea90919063ffffffff16565b9050919050565b611053611517565b61106781600761161490919063ffffffff16565b156110b0578073ffffffffffffffffffffffffffffffffffffffff167fe46fef8bbff1389d9010703cf8ebb363fb3daf5bf56edc27080b67bc8d9251ea60405160405180910390a25b50565b6110bc8161104b565b6110c5816110c8565b50565b6110d0611517565b6110e481600961161490919063ffffffff16565b1561112d578073ffffffffffffffffffffffffffffffffffffffff167f92308bb7573b2a3d17ddb868b39d8ebec433f3194421abc22d084f89658c9bad60405160405180910390a25b50565b5f7f00000000000000000000000000000000000000054f529ca52576bc6892000000905090565b6111618282610911565b505050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6111f0611517565b6111f981611641565b50565b611204611517565b6112188160076115a890919063ffffffff16565b15611261578073ffffffffffffffffffffffffffffffffffffffff167fed998b960f6340d045f620c119730f7aa7995e7425c2401d3a5b64ff998a59e960405160405180910390a25b50565b5f33905090565b813073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112a3575f80fd5b6112ae84848461176d565b50505050565b5f6112bf8484611166565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611339578181101561132b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113229061280e565b60405180910390fd5b611338848484840361126b565b5b50505050565b813073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611377575f80fd5b611382848484611930565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ed90612876565b60405180910390fd5b6114015f8383611b9c565b8060025f82825461141291906125df565b92505081905550805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508173ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114bf919061218d565b60405180910390a36114d25f8383611ba1565b5050565b6114e76114e1611264565b82611ba6565b50565b5f61150f835f018373ffffffffffffffffffffffffffffffffffffffff165f1b611d69565b905092915050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d906128de565b60405180910390fd5b565b5f6115cd835f018373ffffffffffffffffffffffffffffffffffffffff165f1b611d89565b905092915050565b60605f6115e3835f01611e85565b905060608190508092505050919050565b61160682611600611264565b836112b4565b6116108282611ba6565b5050565b5f611639835f018373ffffffffffffffffffffffffffffffffffffffff165f1b611ede565b905092915050565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a690612946565b60405180910390fd5b8060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127860405160405180910390a350565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d2906129d4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184090612a62565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611923919061218d565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361199e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199590612af0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0390612b7e565b60405180910390fd5b611a17838383611b9c565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190612c0c565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611b83919061218d565b60405180910390a3611b96848484611ba1565b50505050565b505050565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0b90612c9a565b60405180910390fd5b611c1f825f83611b9c565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9990612d28565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d51919061218d565b60405180910390a3611d64835f84611ba1565b505050565b5f80836001015f8481526020019081526020015f20541415905092915050565b5f80836001015f8481526020019081526020015f205490505f8114611e7a575f600182611db69190612d46565b90505f6001865f0180549050611dcc9190612d46565b9050818114611e32575f865f018281548110611deb57611dea612d79565b5b905f5260205f200154905080875f018481548110611e0c57611e0b612d79565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f01805480611e4557611e44612da6565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050611e7f565b5f9150505b92915050565b6060815f01805480602002602001604051908101604052809291908181526020018280548015611ed257602002820191905f5260205f20905b815481526020019060010190808311611ebe575b50505050509050919050565b5f611ee98383611d69565b611f3b57825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050611f3f565b5f90505b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611f8a81611f56565b8114611f94575f80fd5b50565b5f81359050611fa581611f81565b92915050565b5f60208284031215611fc057611fbf611f4e565b5b5f611fcd84828501611f97565b91505092915050565b5f8115159050919050565b611fea81611fd6565b82525050565b5f6020820190506120035f830184611fe1565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612040578082015181840152602081019050612025565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61206582612009565b61206f8185612013565b935061207f818560208601612023565b6120888161204b565b840191505092915050565b5f6020820190508181035f8301526120ab818461205b565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6120dc826120b3565b9050919050565b6120ec816120d2565b81146120f6575f80fd5b50565b5f81359050612107816120e3565b92915050565b5f819050919050565b61211f8161210d565b8114612129575f80fd5b50565b5f8135905061213a81612116565b92915050565b5f806040838503121561215657612155611f4e565b5b5f612163858286016120f9565b92505060206121748582860161212c565b9150509250929050565b6121878161210d565b82525050565b5f6020820190506121a05f83018461217e565b92915050565b5f805f606084860312156121bd576121bc611f4e565b5b5f6121ca868287016120f9565b93505060206121db868287016120f9565b92505060406121ec8682870161212c565b9150509250925092565b5f60ff82169050919050565b61220b816121f6565b82525050565b5f6020820190506122245f830184612202565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6122688261204b565b810181811067ffffffffffffffff8211171561228757612286612232565b5b80604052505050565b5f612299611f45565b90506122a5828261225f565b919050565b5f67ffffffffffffffff8211156122c4576122c3612232565b5b6122cd8261204b565b9050602081019050919050565b828183375f83830152505050565b5f6122fa6122f5846122aa565b612290565b9050828152602081018484840111156123165761231561222e565b5b6123218482856122da565b509392505050565b5f82601f83011261233d5761233c61222a565b5b813561234d8482602086016122e8565b91505092915050565b5f805f6060848603121561236d5761236c611f4e565b5b5f61237a868287016120f9565b935050602061238b8682870161212c565b925050604084013567ffffffffffffffff8111156123ac576123ab611f52565b5b6123b886828701612329565b9150509250925092565b5f602082840312156123d7576123d6611f4e565b5b5f6123e48482850161212c565b91505092915050565b5f6020828403121561240257612401611f4e565b5b5f61240f848285016120f9565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61244a816120d2565b82525050565b5f61245b8383612441565b60208301905092915050565b5f602082019050919050565b5f61247d82612418565b6124878185612422565b935061249283612432565b805f5b838110156124c25781516124a98882612450565b97506124b483612467565b925050600181019050612495565b5085935050505092915050565b5f6020820190508181035f8301526124e78184612473565b905092915050565b6124f8816120d2565b82525050565b5f6020820190506125115f8301846124ef565b92915050565b5f806040838503121561252d5761252c611f4e565b5b5f61253a858286016120f9565b925050602061254b858286016120f9565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061259957607f821691505b6020821081036125ac576125ab612555565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6125e98261210d565b91506125f48361210d565b925082820190508082111561260c5761260b6125b2565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f61263682612612565b612640818561261c565b9350612650818560208601612023565b6126598161204b565b840191505092915050565b5f6040820190506126775f83018561217e565b8181036020830152612689818461262c565b90509392505050565b5f6060820190506126a55f8301866124ef565b6126b2602083018561217e565b81810360408301526126c4818461262c565b9050949350505050565b7f4d7573742062652070726f706f736564206f776e6572000000000000000000005f82015250565b5f612702601683612013565b915061270d826126ce565b602082019050919050565b5f6020820190508181035f83015261272f816126f6565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612790602583612013565b915061279b82612736565b604082019050919050565b5f6020820190508181035f8301526127bd81612784565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f6127f8601d83612013565b9150612803826127c4565b602082019050919050565b5f6020820190508181035f830152612825816127ec565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f2061646472657373005f82015250565b5f612860601f83612013565b915061286b8261282c565b602082019050919050565b5f6020820190508181035f83015261288d81612854565b9050919050565b7f4f6e6c792063616c6c61626c65206279206f776e6572000000000000000000005f82015250565b5f6128c8601683612013565b91506128d382612894565b602082019050919050565b5f6020820190508181035f8301526128f5816128bc565b9050919050565b7f43616e6e6f74207472616e7366657220746f2073656c660000000000000000005f82015250565b5f612930601783612013565b915061293b826128fc565b602082019050919050565b5f6020820190508181035f83015261295d81612924565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6129be602483612013565b91506129c982612964565b604082019050919050565b5f6020820190508181035f8301526129eb816129b2565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612a4c602283612013565b9150612a57826129f2565b604082019050919050565b5f6020820190508181035f830152612a7981612a40565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612ada602583612013565b9150612ae582612a80565b604082019050919050565b5f6020820190508181035f830152612b0781612ace565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612b68602383612013565b9150612b7382612b0e565b604082019050919050565b5f6020820190508181035f830152612b9581612b5c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612bf6602683612013565b9150612c0182612b9c565b604082019050919050565b5f6020820190508181035f830152612c2381612bea565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f612c84602183612013565b9150612c8f82612c2a565b604082019050919050565b5f6020820190508181035f830152612cb181612c78565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f612d12602283612013565b9150612d1d82612cb8565b604082019050919050565b5f6020820190508181035f830152612d3f81612d06565b9050919050565b5f612d508261210d565b9150612d5b8361210d565b9250828203905081811115612d7357612d726125b2565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea264697066735822122089b536667157e69aa21d1476029a31dee2ac84bf6593868dfe8aafe569d7117f64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000054f529ca52576bc6892000000000000000000000000000000000000000000000000000000000000000000000c417075204170757374616a61000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034150550000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Apu Apustaja
Arg [1] : symbol (string): APU
Arg [2] : decimals_ (uint8): 18
Arg [3] : maxSupply_ (uint256): 420690000000000000000000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000054f529ca52576bc6892000000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [5] : 417075204170757374616a610000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4150550000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.