ERC-20
Network
Overview
Max Total Supply
147,808.030214484 wTAO
Holders
10,633 ( 0.075%)
Market
Price
$467.33 @ 0.137510 ETH (+0.62%)
Onchain Market Cap
$69,075,126.76
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 9 Decimals)
Balance
0.000000001 wTAOValue
$0.00 ( ~0 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
wTAO
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// import openzeppelin-solidity/contracts/token/ERC20/ERC20.sol; // import openzeppelin-solidity/contracts/math/SafeMath.sol; // import ownable as well // import access controls pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; contract wTAO is ERC20, Ownable, AccessControl { using SafeMath for uint256; // Roles // access role to call bridgedTo bytes32 public constant BRIDGE_ROLE = keccak256("BRIDGE_ROLE"); uint256 public _nonce = 0; uint256 public BITTENSOR_FEE = 125000145; // 0.1251 wTAO uint256 public cumulative_bridged = 0; uint256 public cumulative_bridged_back = 0; // events event Mint(address indexed to, uint256 amount); event BridgedTo(string from, address indexed to, uint256 amount, uint256 nonce); // burn events include a signed message of where to bridge funds to event BridgedBack(address indexed from, uint256 amount, string to, uint256 nonce); event BridgeSet(address indexed bridge); constructor() ERC20("Wrapped TAO", "wTAO") { // set owner as admin _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function decimals() public view virtual override returns (uint8) { return 9; } function setBridge(address _bridge) public onlyOwner returns(bool) { _setupRole(BRIDGE_ROLE, _bridge); return true; } function bridgedTo(string[] memory _froms, address[] memory _tos, uint256[] memory _amounts) public returns(bool) { require(hasRole(BRIDGE_ROLE, _msgSender()), "Caller is not the bridge"); // require all arrays are the same length require(_froms.length == _tos.length && _froms.length == _amounts.length, "Arrays are not the same length"); // loop through arrays and mint for (uint256 i = 0; i < _froms.length; i++) { _mint(_tos[i], _amounts[i]); cumulative_bridged = cumulative_bridged.add(_amounts[i]); emit BridgedTo(_froms[i], _tos[i], _amounts[i], _nonce); _nonce++; } return true; } function bridgeBack(uint256 _amount, string memory _to) public returns(bool) { require(_amount <= balanceOf(_msgSender()), "Not enough balance"); // require greater than 0.1251 wTAO for gas purposes. require(_amount > BITTENSOR_FEE, "Does not meet minimum amount for gas (0.125000144 wTAO)"); _burn(msg.sender, _amount); _nonce++; cumulative_bridged_back = cumulative_bridged_back.add(_amount); emit BridgedBack(_msgSender(), _amount, _to, _nonce); return true; } function deployer() public view returns (address) { return owner(); } // reclaim stuck sent tokens function reclaimToken(address _token) public onlyOwner { ERC20 token = ERC20(_token); uint256 balance = token.balanceOf(address(this)); token.transfer(owner(), balance); payable(owner()).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bridge","type":"address"}],"name":"BridgeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"to","type":"string"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BridgedBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"from","type":"string"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"BridgedTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BITTENSOR_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BRIDGE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"},{"internalType":"string","name":"_to","type":"string"}],"name":"bridgeBack","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_froms","type":"string[]"},{"internalType":"address[]","name":"_tos","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"bridgedTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cumulative_bridged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cumulative_bridged_back","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"deployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_token","type":"address"}],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060075563077359d160085560006009556000600a553480156200002857600080fd5b506040518060400160405280600b81526020017f577261707065642054414f0000000000000000000000000000000000000000008152506040518060400160405280600481526020017f7754414f000000000000000000000000000000000000000000000000000000008152508160039081620000a69190620005c0565b508060049081620000b89190620005c0565b505050620000db620000cf6200010560201b60201c565b6200010d60201b60201c565b620000ff6000801b620000f36200010560201b60201c565b620001d360201b60201c565b620006a7565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001e58282620001e960201b60201c565b5050565b620001fb8282620002db60201b60201c565b620002d75760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200027c6200010560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003c857607f821691505b602082108103620003de57620003dd62000380565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004487fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000409565b62000454868362000409565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004a16200049b62000495846200046c565b62000476565b6200046c565b9050919050565b6000819050919050565b620004bd8362000480565b620004d5620004cc82620004a8565b84845462000416565b825550505050565b600090565b620004ec620004dd565b620004f9818484620004b2565b505050565b5b81811015620005215762000515600082620004e2565b600181019050620004ff565b5050565b601f82111562000570576200053a81620003e4565b6200054584620003f9565b8101602085101562000555578190505b6200056d6200056485620003f9565b830182620004fe565b50505b505050565b600082821c905092915050565b6000620005956000198460080262000575565b1980831691505092915050565b6000620005b0838362000582565b9150826002028217905092915050565b620005cb8262000346565b67ffffffffffffffff811115620005e757620005e662000351565b5b620005f38254620003af565b6200060082828562000525565b600060209050601f83116001811462000638576000841562000623578287015190505b6200062f8582620005a2565b8655506200069f565b601f1984166200064886620003e4565b60005b8281101562000672578489015182556001820191506020850194506020810190506200064b565b868310156200069257848901516200068e601f89168262000582565b8355505b6001600288020188555050505b505050505050565b61365f80620006b76000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80635d1222aa1161010f578063a457c2d7116100a2578063d5f3948811610071578063d5f39488146105d0578063dd0200fa146105ee578063dd62ed3e1461060c578063f2fde38b1461063c576101e5565b8063a457c2d714610536578063a9059cbb14610566578063b5bfddea14610596578063d547741f146105b4576101e5565b80638dd14802116100de5780638dd148021461049a57806391d14854146104ca57806395d89b41146104fa578063a217fddf14610518576101e5565b80635d1222aa1461042457806370a0823114610442578063715018a6146104725780638da5cb5b1461047c576101e5565b806323b872dd11610187578063313ce56711610156578063313ce5671461039c57806332f9c069146103ba57806336568abe146103d857806339509351146103f4576101e5565b806323b872dd146102f0578063248a9ca3146103205780632a383090146103505780632f2ff15d14610380576101e5565b8063095ea7b3116101c3578063095ea7b3146102565780631264612a1461028657806317ffc320146102b657806318160ddd146102d2576101e5565b806301ffc9a7146101ea57806306fdde031461021a5780630705d87d14610238575b600080fd5b61020460048036038101906101ff9190612057565b610658565b604051610211919061209f565b60405180910390f35b6102226106d2565b60405161022f919061214a565b60405180910390f35b610240610764565b60405161024d9190612185565b60405180910390f35b610270600480360381019061026b919061222a565b61076a565b60405161027d919061209f565b60405180910390f35b6102a0600480360381019061029b919061260b565b61078d565b6040516102ad919061209f565b60405180910390f35b6102d060048036038101906102cb91906126b2565b6109a8565b005b6102da610b0c565b6040516102e79190612185565b60405180910390f35b61030a600480360381019061030591906126df565b610b16565b604051610317919061209f565b60405180910390f35b61033a60048036038101906103359190612768565b610b45565b60405161034791906127a4565b60405180910390f35b61036a600480360381019061036591906127bf565b610b65565b604051610377919061209f565b60405180910390f35b61039a6004803603810190610395919061281b565b610c9f565b005b6103a4610cc0565b6040516103b19190612877565b60405180910390f35b6103c2610cc9565b6040516103cf9190612185565b60405180910390f35b6103f260048036038101906103ed919061281b565b610ccf565b005b61040e6004803603810190610409919061222a565b610d52565b60405161041b919061209f565b60405180910390f35b61042c610d89565b6040516104399190612185565b60405180910390f35b61045c600480360381019061045791906126b2565b610d8f565b6040516104699190612185565b60405180910390f35b61047a610dd7565b005b610484610deb565b60405161049191906128a1565b60405180910390f35b6104b460048036038101906104af91906126b2565b610e15565b6040516104c1919061209f565b60405180910390f35b6104e460048036038101906104df919061281b565b610e52565b6040516104f1919061209f565b60405180910390f35b610502610ebd565b60405161050f919061214a565b60405180910390f35b610520610f4f565b60405161052d91906127a4565b60405180910390f35b610550600480360381019061054b919061222a565b610f56565b60405161055d919061209f565b60405180910390f35b610580600480360381019061057b919061222a565b610fcd565b60405161058d919061209f565b60405180910390f35b61059e610ff0565b6040516105ab91906127a4565b60405180910390f35b6105ce60048036038101906105c9919061281b565b611014565b005b6105d8611035565b6040516105e591906128a1565b60405180910390f35b6105f6611044565b6040516106039190612185565b60405180910390f35b610626600480360381019061062191906128bc565b61104a565b6040516106339190612185565b60405180910390f35b610656600480360381019061065191906126b2565b6110d1565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106cb57506106ca82611154565b5b9050919050565b6060600380546106e19061292b565b80601f016020809104026020016040519081016040528092919081815260200182805461070d9061292b565b801561075a5780601f1061072f5761010080835404028352916020019161075a565b820191906000526020600020905b81548152906001019060200180831161073d57829003601f168201915b5050505050905090565b60095481565b6000806107756111be565b90506107828185856111c6565b600191505092915050565b60006107c07f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f6107bb6111be565b610e52565b6107ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f6906129a8565b60405180910390fd5b82518451148015610811575081518451145b610850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084790612a14565b60405180910390fd5b60005b845181101561099c5761089a84828151811061087257610871612a34565b5b602002602001015184838151811061088d5761088c612a34565b5b602002602001015161138f565b6108c98382815181106108b0576108af612a34565b5b60200260200101516009546114e590919063ffffffff16565b6009819055508381815181106108e2576108e1612a34565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f0fbbc01bbb8a23dcd9d7a3574a59cfc1d9666fe58f809db2f15c8b4c947af5b786838151811061093457610933612a34565b5b602002602001015185848151811061094f5761094e612a34565b5b602002602001015160075460405161096993929190612a63565b60405180910390a26007600081548092919061098490612ad0565b9190505550808061099490612ad0565b915050610853565b50600190509392505050565b6109b06114fb565b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109f091906128a1565b602060405180830381865afa158015610a0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a319190612b2d565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610a57610deb565b836040518363ffffffff1660e01b8152600401610a75929190612b5a565b6020604051808303816000875af1158015610a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab89190612baf565b50610ac1610deb565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610b06573d6000803e3d6000fd5b50505050565b6000600254905090565b600080610b216111be565b9050610b2e858285611579565b610b39858585611605565b60019150509392505050565b600060066000838152602001908152602001600020600101549050919050565b6000610b77610b726111be565b610d8f565b831115610bb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb090612c28565b60405180910390fd5b6008548311610bfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf490612cba565b60405180910390fd5b610c07338461187b565b60076000815480929190610c1a90612ad0565b9190505550610c3483600a546114e590919063ffffffff16565b600a81905550610c426111be565b73ffffffffffffffffffffffffffffffffffffffff167f4afd1bdc25334c0d6cc44e4d4d5d27197d8904b74146e9bb318349fc67db1afc8484600754604051610c8d93929190612cda565b60405180910390a26001905092915050565b610ca882610b45565b610cb181611a48565b610cbb8383611a5c565b505050565b60006009905090565b60085481565b610cd76111be565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b90612d8a565b60405180910390fd5b610d4e8282611b3d565b5050565b600080610d5d6111be565b9050610d7e818585610d6f858961104a565b610d799190612daa565b6111c6565b600191505092915050565b60075481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ddf6114fb565b610de96000611c1f565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610e1f6114fb565b610e497f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f83611ce5565b60019050919050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054610ecc9061292b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef89061292b565b8015610f455780601f10610f1a57610100808354040283529160200191610f45565b820191906000526020600020905b815481529060010190602001808311610f2857829003601f168201915b5050505050905090565b6000801b81565b600080610f616111be565b90506000610f6f828661104a565b905083811015610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90612e50565b60405180910390fd5b610fc182868684036111c6565b60019250505092915050565b600080610fd86111be565b9050610fe5818585611605565b600191505092915050565b7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f81565b61101d82610b45565b61102681611a48565b6110308383611b3d565b505050565b600061103f610deb565b905090565b600a5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6110d96114fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113f90612ee2565b60405180910390fd5b61115181611c1f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c90612f74565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129b90613006565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516113829190612185565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f590613072565b60405180910390fd5b61140a60008383611cf3565b806002600082825461141c9190612daa565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114cd9190612185565b60405180910390a36114e160008383611cf8565b5050565b600081836114f39190612daa565b905092915050565b6115036111be565b73ffffffffffffffffffffffffffffffffffffffff16611521610deb565b73ffffffffffffffffffffffffffffffffffffffff1614611577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156e906130de565b60405180910390fd5b565b6000611585848461104a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146115ff57818110156115f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e89061314a565b60405180910390fd5b6115fe84848484036111c6565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166b906131dc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116da9061326e565b60405180910390fd5b6116ee838383611cf3565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176b90613300565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516118629190612185565b60405180910390a3611875848484611cf8565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e190613392565b60405180910390fd5b6118f682600083611cf3565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561197c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197390613424565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a2f9190612185565b60405180910390a3611a4383600084611cf8565b505050565b611a5981611a546111be565b611cfd565b50565b611a668282610e52565b611b395760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611ade6111be565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611b478282610e52565b15611c1b5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611bc06111be565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611cef8282611a5c565b5050565b505050565b505050565b611d078282610e52565b611d7e57611d1481611d82565b611d228360001c6020611daf565b604051602001611d33929190613518565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d75919061214a565b60405180910390fd5b5050565b6060611da88273ffffffffffffffffffffffffffffffffffffffff16601460ff16611daf565b9050919050565b606060006002836002611dc29190613552565b611dcc9190612daa565b67ffffffffffffffff811115611de557611de461226f565b5b6040519080825280601f01601f191660200182016040528015611e175781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e4f57611e4e612a34565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611eb357611eb2612a34565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611ef39190613552565b611efd9190612daa565b90505b6001811115611f9d577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611f3f57611f3e612a34565b5b1a60f81b828281518110611f5657611f55612a34565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611f9690613594565b9050611f00565b5060008414611fe1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd890613609565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61203481611fff565b811461203f57600080fd5b50565b6000813590506120518161202b565b92915050565b60006020828403121561206d5761206c611ff5565b5b600061207b84828501612042565b91505092915050565b60008115159050919050565b61209981612084565b82525050565b60006020820190506120b46000830184612090565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156120f45780820151818401526020810190506120d9565b60008484015250505050565b6000601f19601f8301169050919050565b600061211c826120ba565b61212681856120c5565b93506121368185602086016120d6565b61213f81612100565b840191505092915050565b600060208201905081810360008301526121648184612111565b905092915050565b6000819050919050565b61217f8161216c565b82525050565b600060208201905061219a6000830184612176565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006121cb826121a0565b9050919050565b6121db816121c0565b81146121e657600080fd5b50565b6000813590506121f8816121d2565b92915050565b6122078161216c565b811461221257600080fd5b50565b600081359050612224816121fe565b92915050565b6000806040838503121561224157612240611ff5565b5b600061224f858286016121e9565b925050602061226085828601612215565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6122a782612100565b810181811067ffffffffffffffff821117156122c6576122c561226f565b5b80604052505050565b60006122d9611feb565b90506122e5828261229e565b919050565b600067ffffffffffffffff8211156123055761230461226f565b5b602082029050602081019050919050565b600080fd5b600080fd5b600067ffffffffffffffff82111561233b5761233a61226f565b5b61234482612100565b9050602081019050919050565b82818337600083830152505050565b600061237361236e84612320565b6122cf565b90508281526020810184848401111561238f5761238e61231b565b5b61239a848285612351565b509392505050565b600082601f8301126123b7576123b661226a565b5b81356123c7848260208601612360565b91505092915050565b60006123e36123de846122ea565b6122cf565b9050808382526020820190506020840283018581111561240657612405612316565b5b835b8181101561244d57803567ffffffffffffffff81111561242b5761242a61226a565b5b80860161243889826123a2565b85526020850194505050602081019050612408565b5050509392505050565b600082601f83011261246c5761246b61226a565b5b813561247c8482602086016123d0565b91505092915050565b600067ffffffffffffffff8211156124a05761249f61226f565b5b602082029050602081019050919050565b60006124c46124bf84612485565b6122cf565b905080838252602082019050602084028301858111156124e7576124e6612316565b5b835b8181101561251057806124fc88826121e9565b8452602084019350506020810190506124e9565b5050509392505050565b600082601f83011261252f5761252e61226a565b5b813561253f8482602086016124b1565b91505092915050565b600067ffffffffffffffff8211156125635761256261226f565b5b602082029050602081019050919050565b600061258761258284612548565b6122cf565b905080838252602082019050602084028301858111156125aa576125a9612316565b5b835b818110156125d357806125bf8882612215565b8452602084019350506020810190506125ac565b5050509392505050565b600082601f8301126125f2576125f161226a565b5b8135612602848260208601612574565b91505092915050565b60008060006060848603121561262457612623611ff5565b5b600084013567ffffffffffffffff81111561264257612641611ffa565b5b61264e86828701612457565b935050602084013567ffffffffffffffff81111561266f5761266e611ffa565b5b61267b8682870161251a565b925050604084013567ffffffffffffffff81111561269c5761269b611ffa565b5b6126a8868287016125dd565b9150509250925092565b6000602082840312156126c8576126c7611ff5565b5b60006126d6848285016121e9565b91505092915050565b6000806000606084860312156126f8576126f7611ff5565b5b6000612706868287016121e9565b9350506020612717868287016121e9565b925050604061272886828701612215565b9150509250925092565b6000819050919050565b61274581612732565b811461275057600080fd5b50565b6000813590506127628161273c565b92915050565b60006020828403121561277e5761277d611ff5565b5b600061278c84828501612753565b91505092915050565b61279e81612732565b82525050565b60006020820190506127b96000830184612795565b92915050565b600080604083850312156127d6576127d5611ff5565b5b60006127e485828601612215565b925050602083013567ffffffffffffffff81111561280557612804611ffa565b5b612811858286016123a2565b9150509250929050565b6000806040838503121561283257612831611ff5565b5b600061284085828601612753565b9250506020612851858286016121e9565b9150509250929050565b600060ff82169050919050565b6128718161285b565b82525050565b600060208201905061288c6000830184612868565b92915050565b61289b816121c0565b82525050565b60006020820190506128b66000830184612892565b92915050565b600080604083850312156128d3576128d2611ff5565b5b60006128e1858286016121e9565b92505060206128f2858286016121e9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061294357607f821691505b602082108103612956576129556128fc565b5b50919050565b7f43616c6c6572206973206e6f7420746865206272696467650000000000000000600082015250565b60006129926018836120c5565b915061299d8261295c565b602082019050919050565b600060208201905081810360008301526129c181612985565b9050919050565b7f41727261797320617265206e6f74207468652073616d65206c656e6774680000600082015250565b60006129fe601e836120c5565b9150612a09826129c8565b602082019050919050565b60006020820190508181036000830152612a2d816129f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006060820190508181036000830152612a7d8186612111565b9050612a8c6020830185612176565b612a996040830184612176565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612adb8261216c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b0d57612b0c612aa1565b5b600182019050919050565b600081519050612b27816121fe565b92915050565b600060208284031215612b4357612b42611ff5565b5b6000612b5184828501612b18565b91505092915050565b6000604082019050612b6f6000830185612892565b612b7c6020830184612176565b9392505050565b612b8c81612084565b8114612b9757600080fd5b50565b600081519050612ba981612b83565b92915050565b600060208284031215612bc557612bc4611ff5565b5b6000612bd384828501612b9a565b91505092915050565b7f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b6000612c126012836120c5565b9150612c1d82612bdc565b602082019050919050565b60006020820190508181036000830152612c4181612c05565b9050919050565b7f446f6573206e6f74206d656574206d696e696d756d20616d6f756e7420666f7260008201527f206761732028302e313235303030313434207754414f29000000000000000000602082015250565b6000612ca46037836120c5565b9150612caf82612c48565b604082019050919050565b60006020820190508181036000830152612cd381612c97565b9050919050565b6000606082019050612cef6000830186612176565b8181036020830152612d018185612111565b9050612d106040830184612176565b949350505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612d74602f836120c5565b9150612d7f82612d18565b604082019050919050565b60006020820190508181036000830152612da381612d67565b9050919050565b6000612db58261216c565b9150612dc08361216c565b9250828201905080821115612dd857612dd7612aa1565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612e3a6025836120c5565b9150612e4582612dde565b604082019050919050565b60006020820190508181036000830152612e6981612e2d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ecc6026836120c5565b9150612ed782612e70565b604082019050919050565b60006020820190508181036000830152612efb81612ebf565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612f5e6024836120c5565b9150612f6982612f02565b604082019050919050565b60006020820190508181036000830152612f8d81612f51565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ff06022836120c5565b9150612ffb82612f94565b604082019050919050565b6000602082019050818103600083015261301f81612fe3565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061305c601f836120c5565b915061306782613026565b602082019050919050565b6000602082019050818103600083015261308b8161304f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006130c86020836120c5565b91506130d382613092565b602082019050919050565b600060208201905081810360008301526130f7816130bb565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613134601d836120c5565b915061313f826130fe565b602082019050919050565b6000602082019050818103600083015261316381613127565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006131c66025836120c5565b91506131d18261316a565b604082019050919050565b600060208201905081810360008301526131f5816131b9565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006132586023836120c5565b9150613263826131fc565b604082019050919050565b600060208201905081810360008301526132878161324b565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006132ea6026836120c5565b91506132f58261328e565b604082019050919050565b60006020820190508181036000830152613319816132dd565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061337c6021836120c5565b915061338782613320565b604082019050919050565b600060208201905081810360008301526133ab8161336f565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061340e6022836120c5565b9150613419826133b2565b604082019050919050565b6000602082019050818103600083015261343d81613401565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613485601783613444565b91506134908261344f565b601782019050919050565b60006134a6826120ba565b6134b08185613444565b93506134c08185602086016120d6565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613502601183613444565b915061350d826134cc565b601182019050919050565b600061352382613478565b915061352f828561349b565b915061353a826134f5565b9150613546828461349b565b91508190509392505050565b600061355d8261216c565b91506135688361216c565b92508282026135768161216c565b9150828204841483151761358d5761358c612aa1565b5b5092915050565b600061359f8261216c565b9150600082036135b2576135b1612aa1565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006135f36020836120c5565b91506135fe826135bd565b602082019050919050565b60006020820190508181036000830152613622816135e6565b905091905056fea26469706673582212204aecb0f21bd1299b4b80821d74117b652b6862cf2b70fc0e5d689ad63e9a85fd64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80635d1222aa1161010f578063a457c2d7116100a2578063d5f3948811610071578063d5f39488146105d0578063dd0200fa146105ee578063dd62ed3e1461060c578063f2fde38b1461063c576101e5565b8063a457c2d714610536578063a9059cbb14610566578063b5bfddea14610596578063d547741f146105b4576101e5565b80638dd14802116100de5780638dd148021461049a57806391d14854146104ca57806395d89b41146104fa578063a217fddf14610518576101e5565b80635d1222aa1461042457806370a0823114610442578063715018a6146104725780638da5cb5b1461047c576101e5565b806323b872dd11610187578063313ce56711610156578063313ce5671461039c57806332f9c069146103ba57806336568abe146103d857806339509351146103f4576101e5565b806323b872dd146102f0578063248a9ca3146103205780632a383090146103505780632f2ff15d14610380576101e5565b8063095ea7b3116101c3578063095ea7b3146102565780631264612a1461028657806317ffc320146102b657806318160ddd146102d2576101e5565b806301ffc9a7146101ea57806306fdde031461021a5780630705d87d14610238575b600080fd5b61020460048036038101906101ff9190612057565b610658565b604051610211919061209f565b60405180910390f35b6102226106d2565b60405161022f919061214a565b60405180910390f35b610240610764565b60405161024d9190612185565b60405180910390f35b610270600480360381019061026b919061222a565b61076a565b60405161027d919061209f565b60405180910390f35b6102a0600480360381019061029b919061260b565b61078d565b6040516102ad919061209f565b60405180910390f35b6102d060048036038101906102cb91906126b2565b6109a8565b005b6102da610b0c565b6040516102e79190612185565b60405180910390f35b61030a600480360381019061030591906126df565b610b16565b604051610317919061209f565b60405180910390f35b61033a60048036038101906103359190612768565b610b45565b60405161034791906127a4565b60405180910390f35b61036a600480360381019061036591906127bf565b610b65565b604051610377919061209f565b60405180910390f35b61039a6004803603810190610395919061281b565b610c9f565b005b6103a4610cc0565b6040516103b19190612877565b60405180910390f35b6103c2610cc9565b6040516103cf9190612185565b60405180910390f35b6103f260048036038101906103ed919061281b565b610ccf565b005b61040e6004803603810190610409919061222a565b610d52565b60405161041b919061209f565b60405180910390f35b61042c610d89565b6040516104399190612185565b60405180910390f35b61045c600480360381019061045791906126b2565b610d8f565b6040516104699190612185565b60405180910390f35b61047a610dd7565b005b610484610deb565b60405161049191906128a1565b60405180910390f35b6104b460048036038101906104af91906126b2565b610e15565b6040516104c1919061209f565b60405180910390f35b6104e460048036038101906104df919061281b565b610e52565b6040516104f1919061209f565b60405180910390f35b610502610ebd565b60405161050f919061214a565b60405180910390f35b610520610f4f565b60405161052d91906127a4565b60405180910390f35b610550600480360381019061054b919061222a565b610f56565b60405161055d919061209f565b60405180910390f35b610580600480360381019061057b919061222a565b610fcd565b60405161058d919061209f565b60405180910390f35b61059e610ff0565b6040516105ab91906127a4565b60405180910390f35b6105ce60048036038101906105c9919061281b565b611014565b005b6105d8611035565b6040516105e591906128a1565b60405180910390f35b6105f6611044565b6040516106039190612185565b60405180910390f35b610626600480360381019061062191906128bc565b61104a565b6040516106339190612185565b60405180910390f35b610656600480360381019061065191906126b2565b6110d1565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106cb57506106ca82611154565b5b9050919050565b6060600380546106e19061292b565b80601f016020809104026020016040519081016040528092919081815260200182805461070d9061292b565b801561075a5780601f1061072f5761010080835404028352916020019161075a565b820191906000526020600020905b81548152906001019060200180831161073d57829003601f168201915b5050505050905090565b60095481565b6000806107756111be565b90506107828185856111c6565b600191505092915050565b60006107c07f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f6107bb6111be565b610e52565b6107ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f6906129a8565b60405180910390fd5b82518451148015610811575081518451145b610850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084790612a14565b60405180910390fd5b60005b845181101561099c5761089a84828151811061087257610871612a34565b5b602002602001015184838151811061088d5761088c612a34565b5b602002602001015161138f565b6108c98382815181106108b0576108af612a34565b5b60200260200101516009546114e590919063ffffffff16565b6009819055508381815181106108e2576108e1612a34565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f0fbbc01bbb8a23dcd9d7a3574a59cfc1d9666fe58f809db2f15c8b4c947af5b786838151811061093457610933612a34565b5b602002602001015185848151811061094f5761094e612a34565b5b602002602001015160075460405161096993929190612a63565b60405180910390a26007600081548092919061098490612ad0565b9190505550808061099490612ad0565b915050610853565b50600190509392505050565b6109b06114fb565b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109f091906128a1565b602060405180830381865afa158015610a0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a319190612b2d565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610a57610deb565b836040518363ffffffff1660e01b8152600401610a75929190612b5a565b6020604051808303816000875af1158015610a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab89190612baf565b50610ac1610deb565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610b06573d6000803e3d6000fd5b50505050565b6000600254905090565b600080610b216111be565b9050610b2e858285611579565b610b39858585611605565b60019150509392505050565b600060066000838152602001908152602001600020600101549050919050565b6000610b77610b726111be565b610d8f565b831115610bb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb090612c28565b60405180910390fd5b6008548311610bfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf490612cba565b60405180910390fd5b610c07338461187b565b60076000815480929190610c1a90612ad0565b9190505550610c3483600a546114e590919063ffffffff16565b600a81905550610c426111be565b73ffffffffffffffffffffffffffffffffffffffff167f4afd1bdc25334c0d6cc44e4d4d5d27197d8904b74146e9bb318349fc67db1afc8484600754604051610c8d93929190612cda565b60405180910390a26001905092915050565b610ca882610b45565b610cb181611a48565b610cbb8383611a5c565b505050565b60006009905090565b60085481565b610cd76111be565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3b90612d8a565b60405180910390fd5b610d4e8282611b3d565b5050565b600080610d5d6111be565b9050610d7e818585610d6f858961104a565b610d799190612daa565b6111c6565b600191505092915050565b60075481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ddf6114fb565b610de96000611c1f565b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610e1f6114fb565b610e497f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f83611ce5565b60019050919050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054610ecc9061292b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef89061292b565b8015610f455780601f10610f1a57610100808354040283529160200191610f45565b820191906000526020600020905b815481529060010190602001808311610f2857829003601f168201915b5050505050905090565b6000801b81565b600080610f616111be565b90506000610f6f828661104a565b905083811015610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90612e50565b60405180910390fd5b610fc182868684036111c6565b60019250505092915050565b600080610fd86111be565b9050610fe5818585611605565b600191505092915050565b7f52ba824bfabc2bcfcdf7f0edbb486ebb05e1836c90e78047efeb949990f72e5f81565b61101d82610b45565b61102681611a48565b6110308383611b3d565b505050565b600061103f610deb565b905090565b600a5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6110d96114fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113f90612ee2565b60405180910390fd5b61115181611c1f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c90612f74565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129b90613006565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516113829190612185565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f590613072565b60405180910390fd5b61140a60008383611cf3565b806002600082825461141c9190612daa565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114cd9190612185565b60405180910390a36114e160008383611cf8565b5050565b600081836114f39190612daa565b905092915050565b6115036111be565b73ffffffffffffffffffffffffffffffffffffffff16611521610deb565b73ffffffffffffffffffffffffffffffffffffffff1614611577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156e906130de565b60405180910390fd5b565b6000611585848461104a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146115ff57818110156115f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e89061314a565b60405180910390fd5b6115fe84848484036111c6565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166b906131dc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116da9061326e565b60405180910390fd5b6116ee838383611cf3565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176b90613300565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516118629190612185565b60405180910390a3611875848484611cf8565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e190613392565b60405180910390fd5b6118f682600083611cf3565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561197c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197390613424565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a2f9190612185565b60405180910390a3611a4383600084611cf8565b505050565b611a5981611a546111be565b611cfd565b50565b611a668282610e52565b611b395760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611ade6111be565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611b478282610e52565b15611c1b5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611bc06111be565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611cef8282611a5c565b5050565b505050565b505050565b611d078282610e52565b611d7e57611d1481611d82565b611d228360001c6020611daf565b604051602001611d33929190613518565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d75919061214a565b60405180910390fd5b5050565b6060611da88273ffffffffffffffffffffffffffffffffffffffff16601460ff16611daf565b9050919050565b606060006002836002611dc29190613552565b611dcc9190612daa565b67ffffffffffffffff811115611de557611de461226f565b5b6040519080825280601f01601f191660200182016040528015611e175781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e4f57611e4e612a34565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611eb357611eb2612a34565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611ef39190613552565b611efd9190612daa565b90505b6001811115611f9d577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611f3f57611f3e612a34565b5b1a60f81b828281518110611f5657611f55612a34565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611f9690613594565b9050611f00565b5060008414611fe1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd890613609565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61203481611fff565b811461203f57600080fd5b50565b6000813590506120518161202b565b92915050565b60006020828403121561206d5761206c611ff5565b5b600061207b84828501612042565b91505092915050565b60008115159050919050565b61209981612084565b82525050565b60006020820190506120b46000830184612090565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156120f45780820151818401526020810190506120d9565b60008484015250505050565b6000601f19601f8301169050919050565b600061211c826120ba565b61212681856120c5565b93506121368185602086016120d6565b61213f81612100565b840191505092915050565b600060208201905081810360008301526121648184612111565b905092915050565b6000819050919050565b61217f8161216c565b82525050565b600060208201905061219a6000830184612176565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006121cb826121a0565b9050919050565b6121db816121c0565b81146121e657600080fd5b50565b6000813590506121f8816121d2565b92915050565b6122078161216c565b811461221257600080fd5b50565b600081359050612224816121fe565b92915050565b6000806040838503121561224157612240611ff5565b5b600061224f858286016121e9565b925050602061226085828601612215565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6122a782612100565b810181811067ffffffffffffffff821117156122c6576122c561226f565b5b80604052505050565b60006122d9611feb565b90506122e5828261229e565b919050565b600067ffffffffffffffff8211156123055761230461226f565b5b602082029050602081019050919050565b600080fd5b600080fd5b600067ffffffffffffffff82111561233b5761233a61226f565b5b61234482612100565b9050602081019050919050565b82818337600083830152505050565b600061237361236e84612320565b6122cf565b90508281526020810184848401111561238f5761238e61231b565b5b61239a848285612351565b509392505050565b600082601f8301126123b7576123b661226a565b5b81356123c7848260208601612360565b91505092915050565b60006123e36123de846122ea565b6122cf565b9050808382526020820190506020840283018581111561240657612405612316565b5b835b8181101561244d57803567ffffffffffffffff81111561242b5761242a61226a565b5b80860161243889826123a2565b85526020850194505050602081019050612408565b5050509392505050565b600082601f83011261246c5761246b61226a565b5b813561247c8482602086016123d0565b91505092915050565b600067ffffffffffffffff8211156124a05761249f61226f565b5b602082029050602081019050919050565b60006124c46124bf84612485565b6122cf565b905080838252602082019050602084028301858111156124e7576124e6612316565b5b835b8181101561251057806124fc88826121e9565b8452602084019350506020810190506124e9565b5050509392505050565b600082601f83011261252f5761252e61226a565b5b813561253f8482602086016124b1565b91505092915050565b600067ffffffffffffffff8211156125635761256261226f565b5b602082029050602081019050919050565b600061258761258284612548565b6122cf565b905080838252602082019050602084028301858111156125aa576125a9612316565b5b835b818110156125d357806125bf8882612215565b8452602084019350506020810190506125ac565b5050509392505050565b600082601f8301126125f2576125f161226a565b5b8135612602848260208601612574565b91505092915050565b60008060006060848603121561262457612623611ff5565b5b600084013567ffffffffffffffff81111561264257612641611ffa565b5b61264e86828701612457565b935050602084013567ffffffffffffffff81111561266f5761266e611ffa565b5b61267b8682870161251a565b925050604084013567ffffffffffffffff81111561269c5761269b611ffa565b5b6126a8868287016125dd565b9150509250925092565b6000602082840312156126c8576126c7611ff5565b5b60006126d6848285016121e9565b91505092915050565b6000806000606084860312156126f8576126f7611ff5565b5b6000612706868287016121e9565b9350506020612717868287016121e9565b925050604061272886828701612215565b9150509250925092565b6000819050919050565b61274581612732565b811461275057600080fd5b50565b6000813590506127628161273c565b92915050565b60006020828403121561277e5761277d611ff5565b5b600061278c84828501612753565b91505092915050565b61279e81612732565b82525050565b60006020820190506127b96000830184612795565b92915050565b600080604083850312156127d6576127d5611ff5565b5b60006127e485828601612215565b925050602083013567ffffffffffffffff81111561280557612804611ffa565b5b612811858286016123a2565b9150509250929050565b6000806040838503121561283257612831611ff5565b5b600061284085828601612753565b9250506020612851858286016121e9565b9150509250929050565b600060ff82169050919050565b6128718161285b565b82525050565b600060208201905061288c6000830184612868565b92915050565b61289b816121c0565b82525050565b60006020820190506128b66000830184612892565b92915050565b600080604083850312156128d3576128d2611ff5565b5b60006128e1858286016121e9565b92505060206128f2858286016121e9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061294357607f821691505b602082108103612956576129556128fc565b5b50919050565b7f43616c6c6572206973206e6f7420746865206272696467650000000000000000600082015250565b60006129926018836120c5565b915061299d8261295c565b602082019050919050565b600060208201905081810360008301526129c181612985565b9050919050565b7f41727261797320617265206e6f74207468652073616d65206c656e6774680000600082015250565b60006129fe601e836120c5565b9150612a09826129c8565b602082019050919050565b60006020820190508181036000830152612a2d816129f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006060820190508181036000830152612a7d8186612111565b9050612a8c6020830185612176565b612a996040830184612176565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612adb8261216c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b0d57612b0c612aa1565b5b600182019050919050565b600081519050612b27816121fe565b92915050565b600060208284031215612b4357612b42611ff5565b5b6000612b5184828501612b18565b91505092915050565b6000604082019050612b6f6000830185612892565b612b7c6020830184612176565b9392505050565b612b8c81612084565b8114612b9757600080fd5b50565b600081519050612ba981612b83565b92915050565b600060208284031215612bc557612bc4611ff5565b5b6000612bd384828501612b9a565b91505092915050565b7f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b6000612c126012836120c5565b9150612c1d82612bdc565b602082019050919050565b60006020820190508181036000830152612c4181612c05565b9050919050565b7f446f6573206e6f74206d656574206d696e696d756d20616d6f756e7420666f7260008201527f206761732028302e313235303030313434207754414f29000000000000000000602082015250565b6000612ca46037836120c5565b9150612caf82612c48565b604082019050919050565b60006020820190508181036000830152612cd381612c97565b9050919050565b6000606082019050612cef6000830186612176565b8181036020830152612d018185612111565b9050612d106040830184612176565b949350505050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612d74602f836120c5565b9150612d7f82612d18565b604082019050919050565b60006020820190508181036000830152612da381612d67565b9050919050565b6000612db58261216c565b9150612dc08361216c565b9250828201905080821115612dd857612dd7612aa1565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612e3a6025836120c5565b9150612e4582612dde565b604082019050919050565b60006020820190508181036000830152612e6981612e2d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ecc6026836120c5565b9150612ed782612e70565b604082019050919050565b60006020820190508181036000830152612efb81612ebf565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612f5e6024836120c5565b9150612f6982612f02565b604082019050919050565b60006020820190508181036000830152612f8d81612f51565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ff06022836120c5565b9150612ffb82612f94565b604082019050919050565b6000602082019050818103600083015261301f81612fe3565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061305c601f836120c5565b915061306782613026565b602082019050919050565b6000602082019050818103600083015261308b8161304f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006130c86020836120c5565b91506130d382613092565b602082019050919050565b600060208201905081810360008301526130f7816130bb565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b6000613134601d836120c5565b915061313f826130fe565b602082019050919050565b6000602082019050818103600083015261316381613127565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006131c66025836120c5565b91506131d18261316a565b604082019050919050565b600060208201905081810360008301526131f5816131b9565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006132586023836120c5565b9150613263826131fc565b604082019050919050565b600060208201905081810360008301526132878161324b565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006132ea6026836120c5565b91506132f58261328e565b604082019050919050565b60006020820190508181036000830152613319816132dd565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061337c6021836120c5565b915061338782613320565b604082019050919050565b600060208201905081810360008301526133ab8161336f565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b600061340e6022836120c5565b9150613419826133b2565b604082019050919050565b6000602082019050818103600083015261343d81613401565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613485601783613444565b91506134908261344f565b601782019050919050565b60006134a6826120ba565b6134b08185613444565b93506134c08185602086016120d6565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613502601183613444565b915061350d826134cc565b601182019050919050565b600061352382613478565b915061352f828561349b565b915061353a826134f5565b9150613546828461349b565b91508190509392505050565b600061355d8261216c565b91506135688361216c565b92508282026135768161216c565b9150828204841483151761358d5761358c612aa1565b5b5092915050565b600061359f8261216c565b9150600082036135b2576135b1612aa1565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006135f36020836120c5565b91506135fe826135bd565b602082019050919050565b60006020820190508181036000830152613622816135e6565b905091905056fea26469706673582212204aecb0f21bd1299b4b80821d74117b652b6862cf2b70fc0e5d689ad63e9a85fd64736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.