Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
TokenTracker
Multichain Info
N/A
Latest 25 from a total of 879 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Faucet | 6721988 | 26 days ago | IN | 0 ETH | 0.00135784 | ||||
Faucet | 6678141 | 33 days ago | IN | 0 ETH | 0.00299362 | ||||
Approve | 6652091 | 37 days ago | IN | 0 ETH | 0.00004416 | ||||
Approve | 6651901 | 37 days ago | IN | 0 ETH | 0.00004066 | ||||
Approve | 6651890 | 37 days ago | IN | 0 ETH | 0.00004084 | ||||
Approve | 6651808 | 37 days ago | IN | 0 ETH | 0.00007535 | ||||
Faucet | 6604856 | 45 days ago | IN | 0 ETH | 0.0004359 | ||||
Approve | 6600742 | 46 days ago | IN | 0 ETH | 0.00330098 | ||||
Increase Allowan... | 6600726 | 46 days ago | IN | 0 ETH | 0.00313102 | ||||
Transfer | 6600567 | 46 days ago | IN | 0 ETH | 0.00145933 | ||||
Approve | 6600558 | 46 days ago | IN | 0 ETH | 0.00186445 | ||||
Approve | 6600553 | 46 days ago | IN | 0 ETH | 0.0020798 | ||||
Approve | 6543057 | 55 days ago | IN | 0 ETH | 0.00115463 | ||||
Increase Allowan... | 6542721 | 55 days ago | IN | 0 ETH | 0.00030324 | ||||
Mint | 6542720 | 55 days ago | IN | 0 ETH | 0.00035374 | ||||
Grant Role | 6542718 | 55 days ago | IN | 0 ETH | 0.00043378 | ||||
Approve | 6424682 | 73 days ago | IN | 0 ETH | 0.00007691 | ||||
Faucet | 6424676 | 73 days ago | IN | 0 ETH | 0.0001262 | ||||
Approve | 6321432 | 91 days ago | IN | 0 ETH | 0.00010386 | ||||
Faucet | 6147398 | 117 days ago | IN | 0 ETH | 0.00009288 | ||||
Approve | 5964862 | 144 days ago | IN | 0 ETH | 0.00006949 | ||||
Faucet | 5964856 | 144 days ago | IN | 0 ETH | 0.00009031 | ||||
Faucet | 5949099 | 146 days ago | IN | 0 ETH | 0.00030409 | ||||
Approve | 5804694 | 168 days ago | IN | 0 ETH | 0.00003652 | ||||
Approve | 5799684 | 169 days ago | IN | 0 ETH | 0.00003663 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x26223f9C...cB8FBDb9b The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokenBase
Compiler Version
v0.8.16+commit.07a7930e
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./ERC20.sol"; import "./AccessControl.sol"; import "./IERC20_Bridge_Logic.sol"; import "./IStake.sol"; contract TokenBase is ERC20, AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint8 private _decimals; uint256 public faucetAmount; uint256 public faucetCallLimit; bool public burnEnabled; mapping(address => uint256) lastFaucetCall; constructor(string memory name_, string memory symbol_, uint8 decimals_, uint256 totalSupply_) ERC20(name_, symbol_) { _decimals = decimals_; faucetAmount = 10 ** _decimals; faucetCallLimit = 86400; // in seconds burnEnabled = true; _mint(msg.sender, totalSupply_); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); } function setFaucetAmount(uint256 faucetAmount_) public onlyRole(MINTER_ROLE) { faucetAmount = faucetAmount_; } function setFaucetCallLimit(uint256 faucetCallLimit_) public onlyRole(MINTER_ROLE) { faucetCallLimit = faucetCallLimit_; } function setBurnEnabled(bool burnEnabled_) public onlyRole(MINTER_ROLE) { burnEnabled = burnEnabled_; } function faucet() public { require(faucetAmount > 0, "faucet is disabled"); require(lastFaucetCall[msg.sender] + faucetCallLimit <= block.timestamp, "must wait faucetCallLimit between faucet calls"); lastFaucetCall[msg.sender] = block.timestamp; _mint(_msgSender(), faucetAmount); } function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) { _mint(to, amount); } function burn(uint256 amount) public virtual { require(burnEnabled, "burn is disabled"); _burn(_msgSender(), amount); } function burnFrom(address account, uint256 amount) public virtual onlyRole(MINTER_ROLE) { _burn(account, amount); } /** * @dev See {ERC20-decimals}. */ function decimals() public view virtual override returns (uint8) { return _decimals; } function hasMinterRole(address account) public view returns (bool) { return hasRole(MINTER_ROLE, account); } /** * Backward compatiblity */ function isOwner() public view returns (bool) { return hasMinterRole(msg.sender); } function issue(address account, uint256 value) public onlyRole(MINTER_ROLE) { _mint(account, value); } function admin_deposit_single(uint256 amount, address bridge_address, bytes32 vega_public_key) public onlyRole(MINTER_ROLE) { _mint(msg.sender, amount); increaseAllowance(bridge_address, amount); IERC20_Bridge_Logic(bridge_address).deposit_asset(msg.sender, amount, vega_public_key); } function admin_deposit_bulk(uint256 amount, address bridge_address, bytes32[] memory vega_public_keys) public onlyRole(MINTER_ROLE) { uint256 total_amount = amount * vega_public_keys.length; _mint(msg.sender, total_amount); increaseAllowance(bridge_address, total_amount); for(uint8 key_idx = 0; key_idx < vega_public_keys.length; key_idx++){ IERC20_Bridge_Logic(bridge_address).deposit_asset(msg.sender, amount, vega_public_keys[key_idx]); } } function admin_stake_bulk(uint256 amount, address staking_bridge_address, bytes32[] memory vega_public_keys) public onlyRole(MINTER_ROLE) { uint256 total_amount = amount * vega_public_keys.length; _mint(msg.sender, total_amount); increaseAllowance(staking_bridge_address, total_amount); for(uint8 key_idx = 0; key_idx < vega_public_keys.length; key_idx++){ IStake(staking_bridge_address).stake(amount, vega_public_keys[key_idx]); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "./Context.sol"; import "./Strings.sol"; import "./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, _msgSender()); _; } /** * @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 `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(uint160(account), 20), " 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. */ 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. */ 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`. */ 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. * * [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. */ 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. */ 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 (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 (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 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.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.8; /// @title ERC20 Bridge Logic Interface /// @author Vega Protocol /// @notice Implementations of this interface are used by Vega network users to deposit and withdraw ERC20 tokens to/from Vega. // @notice All funds deposited/withdrawn are to/from the ERC20_Asset_Pool abstract contract IERC20_Bridge_Logic { /***************************EVENTS****************************/ event Asset_Withdrawn(address indexed user_address, address indexed asset_source, uint256 amount, uint256 nonce); event Asset_Deposited( address indexed user_address, address indexed asset_source, uint256 amount, bytes32 vega_public_key ); event Asset_Listed(address indexed asset_source, bytes32 indexed vega_asset_id, uint256 nonce); event Asset_Removed(address indexed asset_source, uint256 nonce); event Asset_Limits_Updated(address indexed asset_source, uint256 lifetime_limit, uint256 withdraw_threshold); event Bridge_Withdraw_Delay_Set(uint256 withdraw_delay); event Bridge_Stopped(); event Bridge_Resumed(); event Depositor_Exempted(address indexed depositor); event Depositor_Exemption_Revoked(address indexed depositor); /***************************FUNCTIONS*************************/ /// @notice This function lists the given ERC20 token contract as valid for deposit to this bridge /// @param asset_source Contract address for given ERC20 token /// @param vega_asset_id Vega-generated asset ID for internal use in Vega Core /// @param lifetime_limit Initial lifetime deposit limit *RESTRICTION FEATURE* /// @param withdraw_threshold Amount at which the withdraw delay goes into effect *RESTRICTION FEATURE* /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order /// @notice See MultisigControl for more about signatures /// @dev MUST emit Asset_Listed if successful function list_asset( address asset_source, bytes32 vega_asset_id, uint256 lifetime_limit, uint256 withdraw_threshold, uint256 nonce, bytes memory signatures ) external virtual; /// @notice This function removes from listing the given ERC20 token contract. This marks the token as invalid for deposit to this bridge /// @param asset_source Contract address for given ERC20 token /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order /// @notice See MultisigControl for more about signatures /// @dev MUST emit Asset_Removed if successful function remove_asset( address asset_source, uint256 nonce, bytes memory signatures ) external virtual; /// @notice This function sets the lifetime maximum deposit for a given asset /// @param asset_source Contract address for given ERC20 token /// @param lifetime_limit Deposit limit for a given ethereum address /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order /// @dev asset must first be listed function set_asset_limits( address asset_source, uint256 lifetime_limit, uint256 threshold, uint256 nonce, bytes calldata signatures ) external virtual; /// @notice This function sets the withdraw delay for withdrawals over the per-asset set thresholds /// @param delay Amount of time to delay a withdrawal /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order function set_withdraw_delay( uint256 delay, uint256 nonce, bytes calldata signatures ) external virtual; /// @notice This function triggers the global bridge stop that halts all withdrawals and deposits until it is resumed /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order /// @dev bridge must not be stopped already /// @dev MUST emit Bridge_Stopped if successful function global_stop(uint256 nonce, bytes calldata signatures) external virtual; /// @notice This function resumes bridge operations from the stopped state /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order /// @dev bridge must be stopped /// @dev MUST emit Bridge_Resumed if successful function global_resume(uint256 nonce, bytes calldata signatures) external virtual; /// @notice this function allows the exemption_lister to exempt a depositor from the deposit limits /// @notice this feature is specifically for liquidity and rewards providers /// @dev MUST emit Depositor_Exempted if successful function exempt_depositor() external virtual; /// @notice this function allows the exemption_lister to revoke a depositor's exemption from deposit limits /// @notice this feature is specifically for liquidity and rewards providers /// @dev MUST emit Depositor_Exemption_Revoked if successful function revoke_exempt_depositor() external virtual; /// @notice This function withdrawals assets to the target Ethereum address /// @param asset_source Contract address for given ERC20 token /// @param amount Amount of ERC20 tokens to withdraw /// @param target Target Ethereum address to receive withdrawn ERC20 tokens /// @param creation Timestamp of when requestion was created *RESTRICTION FEATURE* /// @param nonce Vega-assigned single-use number that provides replay attack protection /// @param signatures Vega-supplied signature bundle of a validator-signed order /// @notice See MultisigControl for more about signatures /// @dev MUST emit Asset_Withdrawn if successful function withdraw_asset( address asset_source, uint256 amount, address target, uint256 creation, uint256 nonce, bytes memory signatures ) external virtual; /// @notice this view returns true if the given despoitor address has been exempted from deposit limits /// @param depositor The depositor to check /// @return true if depositor is exempt function is_exempt_depositor(address depositor) external view virtual returns (bool); /// @notice This function allows a user to deposit given ERC20 tokens into Vega /// @param asset_source Contract address for given ERC20 token /// @param amount Amount of tokens to be deposited into Vega /// @param vega_public_key Target Vega public key to be credited with this deposit /// @dev MUST emit Asset_Deposited if successful /// @dev ERC20 approve function should be run before running this /// @notice ERC20 approve function should be run before running this function deposit_asset( address asset_source, uint256 amount, bytes32 vega_public_key ) external virtual; /***************************VIEWS*****************************/ /// @notice This view returns true if the given ERC20 token contract has been listed valid for deposit /// @param asset_source Contract address for given ERC20 token /// @return True if asset is listed function is_asset_listed(address asset_source) external view virtual returns (bool); /// @notice This view returns the lifetime deposit limit for the given asset /// @param asset_source Contract address for given ERC20 token /// @return Lifetime limit for the given asset function get_asset_deposit_lifetime_limit(address asset_source) external view virtual returns (uint256); /// @notice This view returns the given token's withdraw threshold above which the withdraw delay goes into effect /// @param asset_source Contract address for given ERC20 token /// @return Withdraw threshold function get_withdraw_threshold(address asset_source) external view virtual returns (uint256); /// @return current multisig_control_address function get_multisig_control_address() external view virtual returns (address); /// @param asset_source Contract address for given ERC20 token /// @return The assigned Vega Asset ID for given ERC20 token function get_vega_asset_id(address asset_source) external view virtual returns (bytes32); /// @param vega_asset_id Vega-assigned asset ID for which you want the ERC20 token address /// @return The ERC20 token contract address for a given Vega Asset ID function get_asset_source(bytes32 vega_asset_id) external view virtual returns (address); } /** MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMWEMMMMMMMMMMMMMMMMMMMMMMMMMM...............MMMMMMMMMMMMM MMMMMMLOVEMMMMMMMMMMMMMMMMMMMMMM...............MMMMMMMMMMMMM MMMMMMMMMMHIXELMMMMMMMMMMMM....................MMMMMNNMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMM....................MMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMM88=........................+MMMMMMMMMM MMMMMMMMMMMMMMMMM....................MMMMM...MMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMM....................MMMMM...MMMMMMMMMMMMMMM MMMMMMMMMMMM.........................MM+..MMM....+MMMMMMMMMM MMMMMMMMMNMM...................... ..MM?..MMM.. .+MMMMMMMMMM MMMMNDDMM+........................+MM........MM..+MMMMMMMMMM MMMMZ.............................+MM....................MMM MMMMZ.............................+MM....................MMM MMMMZ.............................+MM....................DDD MMMMZ.............................+MM..ZMMMMMMMMMMMMMMMMMMMM MMMMZ.............................+MM..ZMMMMMMMMMMMMMMMMMMMM MM..............................MMZ....ZMMMMMMMMMMMMMMMMMMMM MM............................MM.......ZMMMMMMMMMMMMMMMMMMMM MM............................MM.......ZMMMMMMMMMMMMMMMMMMMM MM......................ZMMMMM.......MMMMMMMMMMMMMMMMMMMMMMM MM............... ......ZMMMMM.... ..MMMMMMMMMMMMMMMMMMMMMMM MM...............MMMMM88~.........+MM..ZMMMMMMMMMMMMMMMMMMMM MM.......$DDDDDDD.......$DDDDD..DDNMM..ZMMMMMMMMMMMMMMMMMMMM MM.......$DDDDDDD.......$DDDDD..DDNMM..ZMMMMMMMMMMMMMMMMMMMM MM.......ZMMMMMMM.......ZMMMMM..MMMMM..ZMMMMMMMMMMMMMMMMMMMM MMMMMMMMM+.......MMMMM88NMMMMM..MMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMM+.......MMMMM88NMMMMM..MMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM*/
//SPDX-License-Identifier: MIT pragma solidity ^0.8.8; interface IStake { event Stake_Deposited(address indexed user, uint256 amount, bytes32 indexed vega_public_key); event Stake_Removed(address indexed user, uint256 amount, bytes32 indexed vega_public_key); event Stake_Transferred(address indexed from, uint256 amount, address indexed to, bytes32 indexed vega_public_key); /// @return the address of the token that is able to be staked function staking_token() external view returns (address); /// @param target Target address to check /// @param vega_public_key Target vega public key to check /// @return the number of tokens staked for that address->vega_public_key pair function stake_balance(address target, bytes32 vega_public_key) external view returns (uint256); /// @return total tokens staked on contract function total_staked() external view returns (uint256); function stake(uint256 amount, bytes32 vega_public_key) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"}],"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":"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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"bridge_address","type":"address"},{"internalType":"bytes32[]","name":"vega_public_keys","type":"bytes32[]"}],"name":"admin_deposit_bulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"bridge_address","type":"address"},{"internalType":"bytes32","name":"vega_public_key","type":"bytes32"}],"name":"admin_deposit_single","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"staking_bridge_address","type":"address"},{"internalType":"bytes32[]","name":"vega_public_keys","type":"bytes32[]"}],"name":"admin_stake_bulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"faucet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"faucetAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"faucetCallLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"}],"name":"hasMinterRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"issue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"bool","name":"burnEnabled_","type":"bool"}],"name":"setBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"faucetAmount_","type":"uint256"}],"name":"setFaucetAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"faucetCallLimit_","type":"uint256"}],"name":"setFaucetCallLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102115760003560e01c80637b2c835f11610125578063a9059cbb116100ad578063d547741f1161007c578063d547741f1461044e578063d779cae814610461578063dd62ed3e14610474578063de5f72fd146104ad578063ee496cf0146104b557600080fd5b8063a9059cbb14610400578063b777374c14610413578063bc36878e14610426578063d53913931461043957600080fd5b806391d14854116100f457806391d14854146103c157806395d89b41146103d45780639c281430146103dc578063a217fddf146103e5578063a457c2d7146103ed57600080fd5b80637b2c835f1461039357806381d2fd9c146103a6578063867904b4146103115780638f32d59b146103b957600080fd5b8063313ce567116101a857806342966c681161017757806342966c68146103245780635dc96d161461033757806361106b6b1461034457806370a082311461035757806379cc67901461038057600080fd5b8063313ce567146102d657806336568abe146102eb57806339509351146102fe57806340c10f191461031157600080fd5b806318160ddd116101e457806318160ddd1461027957806323b872dd1461028b578063248a9ca31461029e5780632f2ff15d146102c157600080fd5b806301ffc9a71461021657806306fdde031461023e578063095ea7b314610253578063099db01714610266575b600080fd5b6102296102243660046114ed565b6104be565b60405190151581526020015b60405180910390f35b6102466104f5565b604051610235919061153b565b61022961026136600461158a565b610587565b6102296102743660046115b4565b61059f565b6002545b604051908152602001610235565b6102296102993660046115cf565b6105b9565b61027d6102ac36600461160b565b60009081526005602052604090206001015490565b6102d46102cf366004611624565b6105dd565b005b60065460405160ff9091168152602001610235565b6102d46102f9366004611624565b610608565b61022961030c36600461158a565b61068b565b6102d461031f36600461158a565b6106ca565b6102d461033236600461160b565b6106ed565b6009546102299060ff1681565b6102d461035236600461160b565b61073f565b61027d6103653660046115b4565b6001600160a01b031660009081526020819052604090205490565b6102d461038e36600461158a565b61075e565b6102d46103a1366004611650565b610781565b6102d46103b436600461160b565b6107ae565b6102296107cd565b6102296103cf366004611624565b6107dd565b610246610808565b61027d60075481565b61027d600081565b6102296103fb36600461158a565b610817565b61022961040e36600461158a565b6108a9565b6102d4610421366004611672565b6108b7565b6102d46104343660046116ad565b610952565b61027d60008051602061190883398151915281565b6102d461045c366004611624565b610a52565b6102d461046f3660046116ad565b610a78565b61027d610482366004611787565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102d4610b5e565b61027d60085481565b60006001600160e01b03198216637965db0b60e01b14806104ef57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610504906117b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610530906117b1565b801561057d5780601f106105525761010080835404028352916020019161057d565b820191906000526020600020905b81548152906001019060200180831161056057829003601f168201915b5050505050905090565b600033610595818585610c48565b5060019392505050565b60006104ef600080516020611908833981519152836107dd565b6000336105c7858285610d6c565b6105d2858585610dfe565b506001949350505050565b6000828152600560205260409020600101546105f98133610fcc565b6106038383611030565b505050565b6001600160a01b038116331461067d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61068782826110b6565b5050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061059590829086906106c5908790611801565b610c48565b6000805160206119088339815191526106e38133610fcc565b610603838361111d565b60095460ff166107325760405162461bcd60e51b815260206004820152601060248201526f189d5c9b881a5cc8191a5cd8589b195960821b6044820152606401610674565b61073c33826111fc565b50565b6000805160206119088339815191526107588133610fcc565b50600855565b6000805160206119088339815191526107778133610fcc565b61060383836111fc565b60008051602061190883398151915261079a8133610fcc565b506009805460ff1916911515919091179055565b6000805160206119088339815191526107c78133610fcc565b50600755565b60006107d83361059f565b905090565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060048054610504906117b1565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561089c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610674565b6105d28286868403610c48565b600033610595818585610dfe565b6000805160206119088339815191526108d08133610fcc565b6108da338561111d565b6108e4838561068b565b50604051637bb41c9960e11b815233600482015260248101859052604481018390526001600160a01b0384169063f768393290606401600060405180830381600087803b15801561093457600080fd5b505af1158015610948573d6000803e3d6000fd5b5050505050505050565b60008051602061190883398151915261096b8133610fcc565b600082518561097a9190611814565b9050610986338261111d565b610990848261068b565b5060005b83518160ff161015610a4a57846001600160a01b031663f76839323388878560ff16815181106109c6576109c6611833565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401600060405180830381600087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b505050508080610a4290611849565b915050610994565b505050505050565b600082815260056020526040902060010154610a6e8133610fcc565b61060383836110b6565b600080516020611908833981519152610a918133610fcc565b6000825185610aa09190611814565b9050610aac338261111d565b610ab6848261068b565b5060005b83518160ff161015610a4a57846001600160a01b03166383c592cf87868460ff1681518110610aeb57610aeb611833565b60200260200101516040518363ffffffff1660e01b8152600401610b19929190918252602082015260400190565b600060405180830381600087803b158015610b3357600080fd5b505af1158015610b47573d6000803e3d6000fd5b505050508080610b5690611849565b915050610aba565b600060075411610ba55760405162461bcd60e51b815260206004820152601260248201527119985d58d95d081a5cc8191a5cd8589b195960721b6044820152606401610674565b600854336000908152600a60205260409020544291610bc391611801565b1115610c285760405162461bcd60e51b815260206004820152602e60248201527f6d75737420776169742066617563657443616c6c4c696d69742062657477656560448201526d6e206661756365742063616c6c7360901b6064820152608401610674565b336000818152600a60205260409020429055610c469060075461111d565b565b6001600160a01b038316610caa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610674565b6001600160a01b038216610d0b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610674565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610df85781811015610deb5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610674565b610df88484848403610c48565b50505050565b6001600160a01b038316610e625760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610674565b6001600160a01b038216610ec45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610674565b6001600160a01b03831660009081526020819052604090205481811015610f3c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610674565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610f73908490611801565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610fbf91815260200190565b60405180910390a3610df8565b610fd682826107dd565b61068757610fee816001600160a01b0316601461134a565b610ff983602061134a565b60405160200161100a929190611868565b60408051601f198184030181529082905262461bcd60e51b82526106749160040161153b565b61103a82826107dd565b6106875760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556110723390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110c082826107dd565b156106875760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166111735760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610674565b80600260008282546111859190611801565b90915550506001600160a01b038216600090815260208190526040812080548392906111b2908490611801565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661125c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610674565b6001600160a01b038216600090815260208190526040902054818110156112d05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610674565b6001600160a01b03831660009081526020819052604081208383039055600280548492906112ff9084906118dd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60606000611359836002611814565b611364906002611801565b67ffffffffffffffff81111561137c5761137c611697565b6040519080825280601f01601f1916602001820160405280156113a6576020820181803683370190505b509050600360fc1b816000815181106113c1576113c1611833565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106113f0576113f0611833565b60200101906001600160f81b031916908160001a9053506000611414846002611814565b61141f906001611801565b90505b6001811115611497576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061145357611453611833565b1a60f81b82828151811061146957611469611833565b60200101906001600160f81b031916908160001a90535060049490941c93611490816118f0565b9050611422565b5083156114e65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610674565b9392505050565b6000602082840312156114ff57600080fd5b81356001600160e01b0319811681146114e657600080fd5b60005b8381101561153257818101518382015260200161151a565b50506000910152565b602081526000825180602084015261155a816040850160208701611517565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461158557600080fd5b919050565b6000806040838503121561159d57600080fd5b6115a68361156e565b946020939093013593505050565b6000602082840312156115c657600080fd5b6114e68261156e565b6000806000606084860312156115e457600080fd5b6115ed8461156e565b92506115fb6020850161156e565b9150604084013590509250925092565b60006020828403121561161d57600080fd5b5035919050565b6000806040838503121561163757600080fd5b823591506116476020840161156e565b90509250929050565b60006020828403121561166257600080fd5b813580151581146114e657600080fd5b60008060006060848603121561168757600080fd5b833592506115fb6020850161156e565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156116c257600080fd5b8335925060206116d381860161156e565b9250604085013567ffffffffffffffff808211156116f057600080fd5b818701915087601f83011261170457600080fd5b81358181111561171657611716611697565b8060051b604051601f19603f8301168101818110858211171561173b5761173b611697565b60405291825284820192508381018501918a83111561175957600080fd5b938501935b828510156117775784358452938501939285019261175e565b8096505050505050509250925092565b6000806040838503121561179a57600080fd5b6117a38361156e565b91506116476020840161156e565b600181811c908216806117c557607f821691505b6020821081036117e557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104ef576104ef6117eb565b600081600019048311821515161561182e5761182e6117eb565b500290565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff810361185f5761185f6117eb565b60010192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516118a0816017850160208801611517565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516118d1816028840160208801611517565b01602801949350505050565b818103818111156104ef576104ef6117eb565b6000816118ff576118ff6117eb565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220464c471f75d6b4dbc8345814976a24e12cb04d260142537e957635f696775fe364736f6c63430008100033
Deployed Bytecode Sourcemap
169:3677:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2585:202:0;;;;;;:::i;:::-;;:::i;:::-;;;470:14:12;;463:22;445:41;;433:2;418:18;2585:202:0;;;;;;;;2135:98:3;;;:::i;:::-;;;;;;;:::i;4412:197::-;;;;;;:::i;:::-;;:::i;2135:120:11:-;;;;;;:::i;:::-;;:::i;3223:106:3:-;3310:12;;3223:106;;;1927:25:12;;;1915:2;1900:18;3223:106:3;1781:177:12;5171:286:3;;;;;;:::i;:::-;;:::i;3973:129:0:-;;;;;;:::i;:::-;4047:7;4073:12;;;:6;:12;;;;;:22;;;;3973:129;4352:145;;;;;;:::i;:::-;;:::i;:::-;;2030:98:11;2112:9;;2030:98;;2112:9;;;;3064:36:12;;3052:2;3037:18;2030:98:11;2922:184:12;5369:214:0;;;;;;:::i;:::-;;:::i;5852:236:3:-;;;;;;:::i;:::-;;:::i;1591:105:11:-;;;;;;:::i;:::-;;:::i;1702:139::-;;;;;;:::i;:::-;;:::i;385:23::-;;;;;;;;;1006:134;;;;;;:::i;:::-;;:::i;3387:125:3:-;;;;;;:::i;:::-;-1:-1:-1;;;;;3487:18:3;3461:7;3487:18;;;;;;;;;;;;3387:125;1847:127:11;;;;;;:::i;:::-;;:::i;1146:115::-;;;;;;:::i;:::-;;:::i;878:122::-;;;;;;:::i;:::-;;:::i;2306:95::-;;;:::i;2874:145:0:-;;;;;;:::i;:::-;;:::i;2346:102:3:-;;;:::i;316:27:11:-;;;;;;1992:49:0;;2037:4;1992:49;;6575:429:3;;;;;;:::i;:::-;;:::i;3708:189::-;;;;;;:::i;:::-;;:::i;2527:314:11:-;;;;;;:::i;:::-;;:::i;2847:501::-;;;;;;:::i;:::-;;:::i;218:62::-;;-1:-1:-1;;;;;;;;;;;218:62:11;;4731:147:0;;;;;;:::i;:::-;;:::i;3354:490:11:-;;;;;;:::i;:::-;;:::i;3955:149:3:-;;;;;;:::i;:::-;-1:-1:-1;;;;;4070:18:3;;;4044:7;4070:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3955:149;1267:318:11;;;:::i;349:30::-;;;;;;2585:202:0;2670:4;-1:-1:-1;;;;;;2693:47:0;;-1:-1:-1;;;2693:47:0;;:87;;-1:-1:-1;;;;;;;;;;937:40:2;;;2744:36:0;2686:94;2585:202;-1:-1:-1;;2585:202:0:o;2135:98:3:-;2189:13;2221:5;2214:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2135:98;:::o;4412:197::-;4495:4;719:10:1;4549:32:3;719:10:1;4565:7:3;4574:6;4549:8;:32::i;:::-;-1:-1:-1;4598:4:3;;4412:197;-1:-1:-1;;;4412:197:3:o;2135:120:11:-;2196:4;2219:29;-1:-1:-1;;;;;;;;;;;2240:7:11;2219;:29::i;5171:286:3:-;5298:4;719:10:1;5354:38:3;5370:4;719:10:1;5385:6:3;5354:15;:38::i;:::-;5402:27;5412:4;5418:2;5422:6;5402:9;:27::i;:::-;-1:-1:-1;5446:4:3;;5171:286;-1:-1:-1;;;;5171:286:3:o;4352:145:0:-;4047:7;4073:12;;;:6;:12;;;;;:22;;;2470:30;2481:4;719:10:1;2470::0;:30::i;:::-;4465:25:::1;4476:4;4482:7;4465:10;:25::i;:::-;4352:145:::0;;;:::o;5369:214::-;-1:-1:-1;;;;;5464:23:0;;719:10:1;5464:23:0;5456:83;;;;-1:-1:-1;;;5456:83:0;;6147:2:12;5456:83:0;;;6129:21:12;6186:2;6166:18;;;6159:30;6225:34;6205:18;;;6198:62;-1:-1:-1;;;6276:18:12;;;6269:45;6331:19;;5456:83:0;;;;;;;;;5550:26;5562:4;5568:7;5550:11;:26::i;:::-;5369:214;;:::o;5852:236:3:-;719:10:1;5940:4:3;6019:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;6019:27:3;;;;;;;;;;5940:4;;719:10:1;5994:66:3;;719:10:1;;6019:27:3;;:40;;6049:10;;6019:40;:::i;:::-;5994:8;:66::i;1591:105:11:-;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;1672:17:11::1;1678:2;1682:6;1672:5;:17::i;1702:139::-:0;1765:11;;;;1757:40;;;;-1:-1:-1;;;1757:40:11;;6825:2:12;1757:40:11;;;6807:21:12;6864:2;6844:18;;;6837:30;-1:-1:-1;;;6883:18:12;;;6876:46;6939:18;;1757:40:11;6623:340:12;1757:40:11;1807:27;719:10:1;1827:6:11;1807:5;:27::i;:::-;1702:139;:::o;1006:134::-;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;-1:-1:-1;1099:15:11::1;:34:::0;1006:134::o;1847:127::-;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;1945:22:11::1;1951:7;1960:6;1945:5;:22::i;1146:115::-:0;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;-1:-1:-1;1228:11:11::1;:26:::0;;-1:-1:-1;;1228:26:11::1;::::0;::::1;;::::0;;;::::1;::::0;;1146:115::o;878:122::-;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;-1:-1:-1;965:12:11::1;:28:::0;878:122::o;2306:95::-;2346:4;2369:25;2383:10;2369:13;:25::i;:::-;2362:32;;2306:95;:::o;2874:145:0:-;2960:4;2983:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;2983:29:0;;;;;;;;;;;;;;;2874:145::o;2346:102:3:-;2402:13;2434:7;2427:14;;;;;:::i;6575:429::-;719:10:1;6668:4:3;6749:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;6749:27:3;;;;;;;;;;6668:4;;719:10:1;6794:35:3;;;;6786:85;;;;-1:-1:-1;;;6786:85:3;;7170:2:12;6786:85:3;;;7152:21:12;7209:2;7189:18;;;7182:30;7248:34;7228:18;;;7221:62;-1:-1:-1;;;7299:18:12;;;7292:35;7344:19;;6786:85:3;6968:401:12;6786:85:3;6905:60;6914:5;6921:7;6949:15;6930:16;:34;6905:8;:60::i;3708:189::-;3787:4;719:10:1;3841:28:3;719:10:1;3858:2:3;3862:6;3841:9;:28::i;2527:314:11:-;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;2662:25:11::1;2668:10;2680:6;2662:5;:25::i;:::-;2697:41;2715:14;2731:6;2697:17;:41::i;:::-;-1:-1:-1::0;2748:86:11::1;::::0;-1:-1:-1;;;2748:86:11;;2798:10:::1;2748:86;::::0;::::1;7576:51:12::0;7643:18;;;7636:34;;;7686:18;;;7679:34;;;-1:-1:-1;;;;;2748:49:11;::::1;::::0;::::1;::::0;7549:18:12;;2748:86:11::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;2527:314:::0;;;;:::o;2847:501::-;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;2990:20:11::1;3022:16;:23;3013:6;:32;;;;:::i;:::-;2990:55;;3055:31;3061:10;3073:12;3055:5;:31::i;:::-;3096:47;3114:14;3130:12;3096:17;:47::i;:::-;;3157:13;3153:189;3186:16;:23;3176:7;:33;;;3153:189;;;3255:14;-1:-1:-1::0;;;;;3235:49:11::1;;3285:10;3297:6;3305:16;3322:7;3305:25;;;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;3235:96:::1;::::0;-1:-1:-1;;;;;;3235:96:11::1;::::0;;;;;;-1:-1:-1;;;;;7594:32:12;;;3235:96:11::1;::::0;::::1;7576:51:12::0;7643:18;;;7636:34;;;;7686:18;;;7679:34;7549:18;;3235:96:11::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;3211:9;;;;;:::i;:::-;;;;3153:189;;;;2980:368;2847:501:::0;;;;:::o;4731:147:0:-;4047:7;4073:12;;;:6;:12;;;;;:22;;;2470:30;2481:4;719:10:1;2470::0;:30::i;:::-;4845:26:::1;4857:4;4863:7;4845:11;:26::i;3354:490:11:-:0;-1:-1:-1;;;;;;;;;;;2470:30:0;256:24:11;719:10:1;2470::0;:30::i;:::-;3503:20:11::1;3535:16;:23;3526:6;:32;;;;:::i;:::-;3503:55;;3568:31;3574:10;3586:12;3568:5;:31::i;:::-;3609:55;3627:22;3651:12;3609:17;:55::i;:::-;;3678:13;3674:164;3707:16;:23;3697:7;:33;;;3674:164;;;3763:22;-1:-1:-1::0;;;;;3756:36:11::1;;3793:6;3801:16;3818:7;3801:25;;;;;;;;;;:::i;:::-;;;;;;;3756:71;;;;;;;;;;;;;;;8383:25:12::0;;;8439:2;8424:18;;8417:34;8371:2;8356:18;;8209:248;3756:71:11::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;3732:9;;;;;:::i;:::-;;;;3674:164;;1267:318:::0;1325:1;1310:12;;:16;1302:47;;;;-1:-1:-1;;;1302:47:11;;8664:2:12;1302:47:11;;;8646:21:12;8703:2;8683:18;;;8676:30;-1:-1:-1;;;8722:18:12;;;8715:48;8780:18;;1302:47:11;8462:342:12;1302:47:11;1396:15;;1382:10;1367:26;;;;:14;:26;;;;;;1415:15;;1367:44;;;:::i;:::-;:63;;1359:122;;;;-1:-1:-1;;;1359:122:11;;9011:2:12;1359:122:11;;;8993:21:12;9050:2;9030:18;;;9023:30;9089:34;9069:18;;;9062:62;-1:-1:-1;;;9140:18:12;;;9133:44;9194:19;;1359:122:11;8809:410:12;1359:122:11;1506:10;1491:26;;;;:14;:26;;;;;1520:15;1491:44;;1545:33;;1565:12;;1545:5;:33::i;:::-;1267:318::o;10102:370:3:-;-1:-1:-1;;;;;10233:19:3;;10225:68;;;;-1:-1:-1;;;10225:68:3;;9426:2:12;10225:68:3;;;9408:21:12;9465:2;9445:18;;;9438:30;9504:34;9484:18;;;9477:62;-1:-1:-1;;;9555:18:12;;;9548:34;9599:19;;10225:68:3;9224:400:12;10225:68:3;-1:-1:-1;;;;;10311:21:3;;10303:68;;;;-1:-1:-1;;;10303:68:3;;9831:2:12;10303:68:3;;;9813:21:12;9870:2;9850:18;;;9843:30;9909:34;9889:18;;;9882:62;-1:-1:-1;;;9960:18:12;;;9953:32;10002:19;;10303:68:3;9629:398:12;10303:68:3;-1:-1:-1;;;;;10382:18:3;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10433:32;;1927:25:12;;;10433:32:3;;1900:18:12;10433:32:3;;;;;;;10102:370;;;:::o;10749:441::-;-1:-1:-1;;;;;4070:18:3;;;10879:24;4070:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;10945:37:3;;10941:243;;11026:6;11006:16;:26;;10998:68;;;;-1:-1:-1;;;10998:68:3;;10234:2:12;10998:68:3;;;10216:21:12;10273:2;10253:18;;;10246:30;10312:31;10292:18;;;10285:59;10361:18;;10998:68:3;10032:353:12;10998:68:3;11108:51;11117:5;11124:7;11152:6;11133:16;:25;11108:8;:51::i;:::-;10869:321;10749:441;;;:::o;7467:651::-;-1:-1:-1;;;;;7593:18:3;;7585:68;;;;-1:-1:-1;;;7585:68:3;;10592:2:12;7585:68:3;;;10574:21:12;10631:2;10611:18;;;10604:30;10670:34;10650:18;;;10643:62;-1:-1:-1;;;10721:18:12;;;10714:35;10766:19;;7585:68:3;10390:401:12;7585:68:3;-1:-1:-1;;;;;7671:16:3;;7663:64;;;;-1:-1:-1;;;7663:64:3;;10998:2:12;7663:64:3;;;10980:21:12;11037:2;11017:18;;;11010:30;11076:34;11056:18;;;11049:62;-1:-1:-1;;;11127:18:12;;;11120:33;11170:19;;7663:64:3;10796:399:12;7663:64:3;-1:-1:-1;;;;;7809:15:3;;7787:19;7809:15;;;;;;;;;;;7842:21;;;;7834:72;;;;-1:-1:-1;;;7834:72:3;;11402:2:12;7834:72:3;;;11384:21:12;11441:2;11421:18;;;11414:30;11480:34;11460:18;;;11453:62;-1:-1:-1;;;11531:18:12;;;11524:36;11577:19;;7834:72:3;11200:402:12;7834:72:3;-1:-1:-1;;;;;7940:15:3;;;:9;:15;;;;;;;;;;;7958:20;;;7940:38;;7998:13;;;;;;;;:23;;7972:6;;7940:9;7998:23;;7972:6;;7998:23;:::i;:::-;;;;;;;;8052:2;-1:-1:-1;;;;;8037:26:3;8046:4;-1:-1:-1;;;;;8037:26:3;;8056:6;8037:26;;;;1927:25:12;;1915:2;1900:18;;1781:177;8037:26:3;;;;;;;;8074:37;4352:145:0;3300:492;3388:22;3396:4;3402:7;3388;:22::i;:::-;3383:403;;3571:41;3599:7;-1:-1:-1;;;;;3571:41:0;3609:2;3571:19;:41::i;:::-;3683:38;3711:4;3718:2;3683:19;:38::i;:::-;3478:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3478:265:0;;;;;;;;;;-1:-1:-1;;;3426:349:0;;;;;;;:::i;6826:233::-;6909:22;6917:4;6923:7;6909;:22::i;:::-;6904:149;;6947:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;6947:29:0;;;;;;;;;:36;;-1:-1:-1;;6947:36:0;6979:4;6947:36;;;7029:12;719:10:1;;640:96;7029:12:0;-1:-1:-1;;;;;7002:40:0;7020:7;-1:-1:-1;;;;;7002:40:0;7014:4;7002:40;;;;;;;;;;6826:233;;:::o;7184:234::-;7267:22;7275:4;7281:7;7267;:22::i;:::-;7263:149;;;7337:5;7305:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7305:29:0;;;;;;;;;;:37;;-1:-1:-1;;7305:37:0;;;7361:40;719:10:1;;7305:12:0;;7361:40;;7337:5;7361:40;7184:234;;:::o;8394:389:3:-;-1:-1:-1;;;;;8477:21:3;;8469:65;;;;-1:-1:-1;;;8469:65:3;;12626:2:12;8469:65:3;;;12608:21:12;12665:2;12645:18;;;12638:30;12704:33;12684:18;;;12677:61;12755:18;;8469:65:3;12424:355:12;8469:65:3;8621:6;8605:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;8637:18:3;;:9;:18;;;;;;;;;;:28;;8659:6;;8637:9;:28;;8659:6;;8637:28;:::i;:::-;;;;-1:-1:-1;;8680:37:3;;1927:25:12;;;-1:-1:-1;;;;;8680:37:3;;;8697:1;;8680:37;;1915:2:12;1900:18;8680:37:3;;;;;;;5369:214:0;;:::o;9103:576:3:-;-1:-1:-1;;;;;9186:21:3;;9178:67;;;;-1:-1:-1;;;9178:67:3;;12986:2:12;9178:67:3;;;12968:21:12;13025:2;13005:18;;;12998:30;13064:34;13044:18;;;13037:62;-1:-1:-1;;;13115:18:12;;;13108:31;13156:19;;9178:67:3;12784:397:12;9178:67:3;-1:-1:-1;;;;;9341:18:3;;9316:22;9341:18;;;;;;;;;;;9377:24;;;;9369:71;;;;-1:-1:-1;;;9369:71:3;;13388:2:12;9369:71:3;;;13370:21:12;13427:2;13407:18;;;13400:30;13466:34;13446:18;;;13439:62;-1:-1:-1;;;13517:18:12;;;13510:32;13559:19;;9369:71:3;13186:398:12;9369:71:3;-1:-1:-1;;;;;9474:18:3;;:9;:18;;;;;;;;;;9495:23;;;9474:44;;9538:12;:22;;9512:6;;9474:9;9538:22;;9512:6;;9538:22;:::i;:::-;;;;-1:-1:-1;;9576:37:3;;1927:25:12;;;9602:1:3;;-1:-1:-1;;;;;9576:37:3;;;;;1915:2:12;1900:18;9576:37:3;;;;;;;4352:145:0;;;:::o;1588:441:10:-;1663:13;1688:19;1720:10;1724:6;1720:1;:10;:::i;:::-;:14;;1733:1;1720:14;:::i;:::-;1710:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1710:25:10;;1688:47;;-1:-1:-1;;;1745:6:10;1752:1;1745:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1745:15:10;;;;;;;;;-1:-1:-1;;;1770:6:10;1777:1;1770:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1770:15:10;;;;;;;;-1:-1:-1;1800:9:10;1812:10;1816:6;1812:1;:10;:::i;:::-;:14;;1825:1;1812:14;:::i;:::-;1800:26;;1795:132;1832:1;1828;:5;1795:132;;;-1:-1:-1;;;1879:5:10;1887:3;1879:11;1866:25;;;;;;;:::i;:::-;;;;1854:6;1861:1;1854:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;1854:37:10;;;;;;;;-1:-1:-1;1915:1:10;1905:11;;;;;1835:3;;;:::i;:::-;;;1795:132;;;-1:-1:-1;1944:10:10;;1936:55;;;;-1:-1:-1;;;1936:55:10;;14065:2:12;1936:55:10;;;14047:21:12;;;14084:18;;;14077:30;14143:34;14123:18;;;14116:62;14195:18;;1936:55:10;13863:356:12;1936:55:10;2015:6;1588:441;-1:-1:-1;;;1588:441:10:o;14:286:12:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:12;;209:43;;199:71;;266:1;263;256:12;497:250;582:1;592:113;606:6;603:1;600:13;592:113;;;682:11;;;676:18;663:11;;;656:39;628:2;621:10;592:113;;;-1:-1:-1;;739:1:12;721:16;;714:27;497:250::o;752:396::-;901:2;890:9;883:21;864:4;933:6;927:13;976:6;971:2;960:9;956:18;949:34;992:79;1064:6;1059:2;1048:9;1044:18;1039:2;1031:6;1027:15;992:79;:::i;:::-;1132:2;1111:15;-1:-1:-1;;1107:29:12;1092:45;;;;1139:2;1088:54;;752:396;-1:-1:-1;;752:396:12:o;1153:173::-;1221:20;;-1:-1:-1;;;;;1270:31:12;;1260:42;;1250:70;;1316:1;1313;1306:12;1250:70;1153:173;;;:::o;1331:254::-;1399:6;1407;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;1499:29;1518:9;1499:29;:::i;:::-;1489:39;1575:2;1560:18;;;;1547:32;;-1:-1:-1;;;1331:254:12:o;1590:186::-;1649:6;1702:2;1690:9;1681:7;1677:23;1673:32;1670:52;;;1718:1;1715;1708:12;1670:52;1741:29;1760:9;1741:29;:::i;1963:328::-;2040:6;2048;2056;2109:2;2097:9;2088:7;2084:23;2080:32;2077:52;;;2125:1;2122;2115:12;2077:52;2148:29;2167:9;2148:29;:::i;:::-;2138:39;;2196:38;2230:2;2219:9;2215:18;2196:38;:::i;:::-;2186:48;;2281:2;2270:9;2266:18;2253:32;2243:42;;1963:328;;;;;:::o;2296:180::-;2355:6;2408:2;2396:9;2387:7;2383:23;2379:32;2376:52;;;2424:1;2421;2414:12;2376:52;-1:-1:-1;2447:23:12;;2296:180;-1:-1:-1;2296:180:12:o;2663:254::-;2731:6;2739;2792:2;2780:9;2771:7;2767:23;2763:32;2760:52;;;2808:1;2805;2798:12;2760:52;2844:9;2831:23;2821:33;;2873:38;2907:2;2896:9;2892:18;2873:38;:::i;:::-;2863:48;;2663:254;;;;;:::o;3296:273::-;3352:6;3405:2;3393:9;3384:7;3380:23;3376:32;3373:52;;;3421:1;3418;3411:12;3373:52;3460:9;3447:23;3513:5;3506:13;3499:21;3492:5;3489:32;3479:60;;3535:1;3532;3525:12;3574:322;3651:6;3659;3667;3720:2;3708:9;3699:7;3695:23;3691:32;3688:52;;;3736:1;3733;3726:12;3688:52;3772:9;3759:23;3749:33;;3801:38;3835:2;3824:9;3820:18;3801:38;:::i;3901:127::-;3962:10;3957:3;3953:20;3950:1;3943:31;3993:4;3990:1;3983:15;4017:4;4014:1;4007:15;4033:1257;4135:6;4143;4151;4204:2;4192:9;4183:7;4179:23;4175:32;4172:52;;;4220:1;4217;4210:12;4172:52;4256:9;4243:23;4233:33;;4285:2;4306:38;4340:2;4329:9;4325:18;4306:38;:::i;:::-;4296:48;;4395:2;4384:9;4380:18;4367:32;4418:18;4459:2;4451:6;4448:14;4445:34;;;4475:1;4472;4465:12;4445:34;4513:6;4502:9;4498:22;4488:32;;4558:7;4551:4;4547:2;4543:13;4539:27;4529:55;;4580:1;4577;4570:12;4529:55;4616:2;4603:16;4638:2;4634;4631:10;4628:36;;;4644:18;;:::i;:::-;4690:2;4687:1;4683:10;4722:2;4716:9;4785:2;4781:7;4776:2;4772;4768:11;4764:25;4756:6;4752:38;4840:6;4828:10;4825:22;4820:2;4808:10;4805:18;4802:46;4799:72;;;4851:18;;:::i;:::-;4887:2;4880:22;4937:18;;;4971:15;;;;-1:-1:-1;5013:11:12;;;5009:20;;;5041:19;;;5038:39;;;5073:1;5070;5063:12;5038:39;5097:11;;;;5117:142;5133:6;5128:3;5125:15;5117:142;;;5199:17;;5187:30;;5150:12;;;;5237;;;;5117:142;;;5278:6;5268:16;;;;;;;;4033:1257;;;;;:::o;5295:260::-;5363:6;5371;5424:2;5412:9;5403:7;5399:23;5395:32;5392:52;;;5440:1;5437;5430:12;5392:52;5463:29;5482:9;5463:29;:::i;:::-;5453:39;;5511:38;5545:2;5534:9;5530:18;5511:38;:::i;5560:380::-;5639:1;5635:12;;;;5682;;;5703:61;;5757:4;5749:6;5745:17;5735:27;;5703:61;5810:2;5802:6;5799:14;5779:18;5776:38;5773:161;;5856:10;5851:3;5847:20;5844:1;5837:31;5891:4;5888:1;5881:15;5919:4;5916:1;5909:15;5773:161;;5560:380;;;:::o;6361:127::-;6422:10;6417:3;6413:20;6410:1;6403:31;6453:4;6450:1;6443:15;6477:4;6474:1;6467:15;6493:125;6558:9;;;6579:10;;;6576:36;;;6592:18;;:::i;7724:168::-;7764:7;7830:1;7826;7822:6;7818:14;7815:1;7812:21;7807:1;7800:9;7793:17;7789:45;7786:71;;;7837:18;;:::i;:::-;-1:-1:-1;7877:9:12;;7724:168::o;7897:127::-;7958:10;7953:3;7949:20;7946:1;7939:31;7989:4;7986:1;7979:15;8013:4;8010:1;8003:15;8029:175;8066:3;8110:4;8103:5;8099:16;8139:4;8130:7;8127:17;8124:43;;8147:18;;:::i;:::-;8196:1;8183:15;;8029:175;-1:-1:-1;;8029:175:12:o;11607:812::-;12018:25;12013:3;12006:38;11988:3;12073:6;12067:13;12089:75;12157:6;12152:2;12147:3;12143:12;12136:4;12128:6;12124:17;12089:75;:::i;:::-;-1:-1:-1;;;12223:2:12;12183:16;;;12215:11;;;12208:40;12273:13;;12295:76;12273:13;12357:2;12349:11;;12342:4;12330:17;;12295:76;:::i;:::-;12391:17;12410:2;12387:26;;11607:812;-1:-1:-1;;;;11607:812:12:o;13589:128::-;13656:9;;;13677:11;;;13674:37;;;13691:18;;:::i;13722:136::-;13761:3;13789:5;13779:39;;13798:18;;:::i;:::-;-1:-1:-1;;;13834:18:12;;13722:136::o
Swarm Source
ipfs://464c471f75d6b4dbc8345814976a24e12cb04d260142537e957635f696775fe3
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.