Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SushiToken
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.6.12;
import "./ERC20.sol";
import "../interfaces/IMisoToken.sol";
import "../OpenZeppelin/access/AccessControl.sol";
// ---------------------------------------------------------------------
//
// SushiToken with Governance.
//
// From the MISO Token Factory
// Made for Sushi.com
//
// Enjoy. (c) Chef Gonpachi 2021
// <https://github.com/chefgonpachi/MISO/>
//
// ---------------------------------------------------------------------
// SPDX-License-Identifier: GPL-3.0
// ---------------------------------------------------------------------
contract SushiToken is IMisoToken, AccessControl, ERC20 {
/// @notice Miso template id for the token factory.
/// @dev For different token types, this must be incremented.
uint256 public constant override tokenTemplate = 3;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
function initToken(string memory _name, string memory _symbol, address _owner, uint256 _initialSupply) public {
_initERC20(_name, _symbol);
_setupRole(DEFAULT_ADMIN_ROLE, _owner);
_setupRole(MINTER_ROLE, _owner);
_mint(msg.sender, _initialSupply);
}
function init(bytes calldata _data) external override payable {}
function initToken(
bytes calldata _data
) public override {
(string memory _name,
string memory _symbol,
address _owner,
uint256 _initialSupply) = abi.decode(_data, (string, string, address, uint256));
initToken(_name,_symbol,_owner,_initialSupply);
}
/**
* @dev Generates init data for Token Factory
* @param _name - Token name
* @param _symbol - Token symbol
* @param _owner - Contract owner
* @param _initialSupply Amount of tokens minted on creation
*/
function getInitData(
string calldata _name,
string calldata _symbol,
address _owner,
uint256 _initialSupply
)
external
pure
returns (bytes memory _data)
{
return abi.encode(_name, _symbol, _owner, _initialSupply);
}
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
function mint(address _to, uint256 _amount) public {
require(hasRole(MINTER_ROLE, _msgSender()), "SushiToken: must have minter role to mint");
_mint(_to, _amount);
// _moveDelegates(address(0), _delegates[_to], _amount);
}
// Copied and modified from YAM code:
// https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
// https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
// Which is copied and modified from COMPOUND:
// https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol
/// @notice A record of each accounts delegate
mapping (address => address) internal _delegates;
/// @notice A checkpoint for marking number of votes from a given block
struct Checkpoint {
uint32 fromBlock;
uint256 votes;
}
/// @notice A record of votes checkpoints for each account, by index
mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;
/// @notice The number of checkpoints for each account
mapping (address => uint32) public numCheckpoints;
/// @notice The EIP-712 typehash for the contract's domain
bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");
/// @notice The EIP-712 typehash for the delegation struct used by the contract
bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
/// @notice A record of states for signing / validating signatures
mapping (address => uint) public sigNonces;
/// @notice An event thats emitted when an account changes its delegate
event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);
/// @notice An event thats emitted when a delegate account's vote balance changes
event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);
/**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegator The address to get delegatee for
*/
function delegates(address delegator)
external
view
returns (address)
{
return _delegates[delegator];
}
/**
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegatee The address to delegate votes to
*/
function delegate(address delegatee) external {
return _delegate(msg.sender, delegatee);
}
/**
* @notice Delegates votes from signatory to `delegatee`
* @param delegatee The address to delegate votes to
* @param nonce The contract state required to match the signature
* @param expiry The time at which to expire the signature
* @param v The recovery byte of the signature
* @param r Half of the ECDSA signature pair
* @param s Half of the ECDSA signature pair
*/
function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())),
getChainId(),
address(this)
)
);
bytes32 structHash = keccak256(
abi.encode(
DELEGATION_TYPEHASH,
delegatee,
nonce,
expiry
)
);
bytes32 digest = keccak256(
abi.encodePacked(
"\x19\x01",
domainSeparator,
structHash
)
);
address signatory = ecrecover(digest, v, r, s);
require(signatory != address(0), "SUSHI::delegateBySig: invalid signature");
require(nonce == sigNonces[signatory]++, "SUSHI::delegateBySig: invalid nonce");
require(now <= expiry, "SUSHI::delegateBySig: signature expired");
return _delegate(signatory, delegatee);
}
/**
* @notice Gets the current votes balance for `account`
* @param account The address to get votes balance
* @return The number of current votes for `account`
*/
function getCurrentVotes(address account)
external
view
returns (uint256)
{
uint32 nCheckpoints = numCheckpoints[account];
return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
}
/**
* @notice Determine the prior number of votes for an account as of a block number
* @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
* @param account The address of the account to check
* @param blockNumber The block number to get the vote balance at
* @return The number of votes the account had as of the given block
*/
function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "SUSHI::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return 0;
}
// First check most recent balance
if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
return checkpoints[account][nCheckpoints - 1].votes;
}
// Next check implicit zero balance
if (checkpoints[account][0].fromBlock > blockNumber) {
return 0;
}
uint32 lower = 0;
uint32 upper = nCheckpoints - 1;
while (upper > lower) {
uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
Checkpoint memory cp = checkpoints[account][center];
if (cp.fromBlock == blockNumber) {
return cp.votes;
} else if (cp.fromBlock < blockNumber) {
lower = center;
} else {
upper = center - 1;
}
}
return checkpoints[account][lower].votes;
}
function _delegate(address delegator, address delegatee)
internal
{
address currentDelegate = _delegates[delegator];
if (currentDelegate != delegatee){
uint256 delegatorBalance = balanceOf(delegator); // balance of underlying SUSHIs (not scaled);
_delegates[delegator] = delegatee;
emit DelegateChanged(delegator, currentDelegate, delegatee);
_moveDelegates(currentDelegate, delegatee, delegatorBalance);
}
}
function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
if (srcRep != dstRep && amount > 0) {
if (srcRep != address(0)) {
// decrease old representative
uint32 srcRepNum = numCheckpoints[srcRep];
uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
uint256 srcRepNew = srcRepOld.sub(amount);
_writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
}
if (dstRep != address(0)) {
// increase new representative
uint32 dstRepNum = numCheckpoints[dstRep];
uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
uint256 dstRepNew = dstRepOld.add(amount);
_writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
}
}
}
function _writeCheckpoint(
address delegatee,
uint32 nCheckpoints,
uint256 oldVotes,
uint256 newVotes
)
internal
{
uint32 blockNumber = safe32(block.number, "SUSHI::_writeCheckpoint: block number exceeds 32 bits");
if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
} else {
checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
numCheckpoints[delegatee] = nCheckpoints + 1;
}
emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
}
function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
require(n < 2**32, errorMessage);
return uint32(n);
}
function getChainId() internal pure returns (uint) {
uint256 chainId;
assembly { chainId := chainid() }
return chainId;
}
/**
* @inheritdoc ERC20
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal override {
_moveDelegates(_delegates[from], _delegates[to], amount);
super._afterTokenTransfer(from, to, amount);
}
}pragma solidity 0.6.12;
import "../OpenZeppelin/GSN/Context.sol";
import "../OpenZeppelin/math/SafeMath.sol";
import "../interfaces/IERC20.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 guidelines: functions revert instead
* of 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 IERC20, Context {
using SafeMath for uint256;
bytes32 public DOMAIN_SEPARATOR;
mapping (address => uint256) private _balances;
mapping(address => uint256) public nonces;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
bool private _initialized;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
function _initERC20(string memory name_, string memory symbol_) internal {
require(!_initialized, "ERC20: token has already been initialized!");
_name = name_;
_symbol = symbol_;
_decimals = 18;
uint256 chainId;
assembly {
chainId := chainid()
}
DOMAIN_SEPARATOR = keccak256(abi.encode(keccak256("EIP712Domain(uint256 chainId,address verifyingContract)"), chainId, address(this)));
_initialized = true;
}
/**
* @dev Returns the name of the token.
*/
function name() public view override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view 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 {_setupDecimals} is
* called.
*
* 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 override returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual returns (bool) {
_transfer(_msgSender(), recipient, 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}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
// See https://eips.ethereum.org/EIPS/eip-191
string private constant EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA = "\x19\x01";
// keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 private constant PERMIT_SIGNATURE_HASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
/// @notice Approves `value` from `owner_` to be spend by `spender`.
/// @param owner_ Address of the owner.
/// @param spender The address of the spender that gets approved to draw from `owner_`.
/// @param value The maximum collective amount that `spender` can draw.
/// @param deadline This permit must be redeemed before this deadline (UTC timestamp in seconds).
function permit(
address owner_,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external override {
require(owner_ != address(0), "ERC20: Owner cannot be 0");
require(block.timestamp < deadline, "ERC20: Expired");
bytes32 digest =
keccak256(
abi.encodePacked(
EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA,
DOMAIN_SEPARATOR,
keccak256(abi.encode(PERMIT_SIGNATURE_HASH, owner_, spender, value, nonces[owner_]++, deadline))
)
);
address recoveredAddress = ecrecover(digest, v, r, s);
require(recoveredAddress == owner_, "ERC20: Invalid Signature");
_approve(owner_, spender, value);
}
/**
* @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};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public override virtual returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is 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:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
_afterTokenTransfer(sender, recipient, amount);
emit Transfer(sender, recipient, 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
*
* - `to` 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 = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
_afterTokenTransfer(address(0), account, amount);
emit Transfer(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);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
_afterTokenTransfer(account, address(0), amount);
emit Transfer(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 Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
/**
* @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 to 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 { }
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}pragma solidity 0.6.12;
interface IMisoToken {
function init(bytes calldata data) external payable;
function initToken( bytes calldata data ) external;
function tokenTemplate() external view returns (uint256);
}pragma solidity 0.6.12;
import "../utils/EnumerableSet.sol";
import "../utils/Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
* 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 {
using EnumerableSet for EnumerableSet.AddressSet;
struct RoleData {
EnumerableSet.AddressSet members;
bytes32 adminRole;
}
mapping (bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @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 {_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) public view returns (bool) {
return _roles[role].members.contains(account);
}
/**
* @dev Returns the number of accounts that have `role`. Can be used
* together with {getRoleMember} to enumerate all bearers of a role.
*/
function getRoleMemberCount(bytes32 role) public view returns (uint256) {
return _roles[role].members.length();
}
/**
* @dev Returns one of the accounts that have `role`. `index` must be a
* value between 0 and {getRoleMemberCount}, non-inclusive.
*
* Role bearers are not sorted in any particular way, and their ordering may
* change at any point.
*
* WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
* you perform all queries on the same block. See the following
* https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
* for more information.
*/
function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
return _roles[role].members.at(index);
}
/**
* @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 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 {
require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");
_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 {
require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");
_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 granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual {
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}.
* ====
*/
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 {
emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
_roles[role].adminRole = adminRole;
}
function _grantRole(bytes32 role, address account) private {
if (_roles[role].members.add(account)) {
emit RoleGranted(role, account, _msgSender());
}
}
function _revokeRole(bytes32 role, address account) private {
if (_roles[role].members.remove(account)) {
emit RoleRevoked(role, account, _msgSender());
}
}
}pragma solidity 0.6.12; import "../utils/Context.sol";
pragma solidity 0.6.12;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
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) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
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) {
// 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) {
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) {
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) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @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) {
require(b <= a, "SafeMath: subtraction overflow");
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) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @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. 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) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
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) {
require(b > 0, "SafeMath: modulo by zero");
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) {
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.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* 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) {
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) {
require(b > 0, errorMessage);
return a % b;
}
}pragma solidity 0.6.12;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
}pragma solidity 0.6.12;
/*
* @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 GSN 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 payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}pragma solidity 0.6.12;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","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":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","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":"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":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","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":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"name":"getInitData","outputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"init","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"name":"initToken","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":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","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":"","type":"address"}],"name":"sigNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenTemplate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50612c04806100206000396000f3fe6080604052600436106102305760003560e01c8063782d6fe11161012e578063c3cda520116100ab578063dd62ed3e1161006f578063dd62ed3e14610aec578063e7a324dc14610b27578063f1127ed814610b3c578063f21f007c14610b9b578063f990ccd714610c7557610230565b8063c3cda520146109c2578063ca15c87314610a16578063d505accf14610a40578063d539139314610a9e578063d547741f14610ab357610230565b806395d89b41116100f257806395d89b41146108f3578063a217fddf14610908578063a457c2d71461091d578063a9059cbb14610956578063b4b5ea571461098f57610230565b8063782d6fe1146106da5780637ecebe00146107135780638dc7df72146107465780639010d07c1461088a57806391d14854146108ba57610230565b80633644e515116101bc578063587cde1e11610180578063587cde1e1461055e5780635c19a95c146105ad57806360b1cc80146105e05780636fcfff451461065b57806370a08231146106a757610230565b80633644e5151461043057806336568abe14610445578063395093511461047e57806340c10f19146104b75780634ddf47d4146104f057610230565b806320606b701161020357806320606b701461034857806323b872dd1461035d578063248a9ca3146103a05780632f2ff15d146103ca578063313ce5671461040557610230565b806306fdde03146102355780630814d3dd146102bf578063095ea7b3146102e657806318160ddd14610333575b600080fd5b34801561024157600080fd5b5061024a610ca8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028457818101518382015260200161026c565b50505050905090810190601f1680156102b15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102cb57600080fd5b506102d4610d3e565b60408051918252519081900360200190f35b3480156102f257600080fd5b5061031f6004803603604081101561030957600080fd5b506001600160a01b038135169060200135610d43565b604080519115158252519081900360200190f35b34801561033f57600080fd5b506102d4610d61565b34801561035457600080fd5b506102d4610d67565b34801561036957600080fd5b5061031f6004803603606081101561038057600080fd5b506001600160a01b03813581169160208101359091169060400135610d8b565b3480156103ac57600080fd5b506102d4600480360360208110156103c357600080fd5b5035610e12565b3480156103d657600080fd5b50610403600480360360408110156103ed57600080fd5b50803590602001356001600160a01b0316610e27565b005b34801561041157600080fd5b5061041a610e93565b6040805160ff9092168252519081900360200190f35b34801561043c57600080fd5b506102d4610e9c565b34801561045157600080fd5b506104036004803603604081101561046857600080fd5b50803590602001356001600160a01b0316610ea2565b34801561048a57600080fd5b5061031f600480360360408110156104a157600080fd5b506001600160a01b038135169060200135610f03565b3480156104c357600080fd5b50610403600480360360408110156104da57600080fd5b506001600160a01b038135169060200135610f51565b6104036004803603602081101561050657600080fd5b810190602081018135600160201b81111561052057600080fd5b82018360208201111561053257600080fd5b803590602001918460018302840111600160201b8311171561055357600080fd5b509092509050610e8f565b34801561056a57600080fd5b506105916004803603602081101561058157600080fd5b50356001600160a01b0316610fc2565b604080516001600160a01b039092168252519081900360200190f35b3480156105b957600080fd5b50610403600480360360208110156105d057600080fd5b50356001600160a01b0316610fe0565b3480156105ec57600080fd5b506104036004803603602081101561060357600080fd5b810190602081018135600160201b81111561061d57600080fd5b82018360208201111561062f57600080fd5b803590602001918460018302840111600160201b8311171561065057600080fd5b509092509050610fed565b34801561066757600080fd5b5061068e6004803603602081101561067e57600080fd5b50356001600160a01b031661113d565b6040805163ffffffff9092168252519081900360200190f35b3480156106b357600080fd5b506102d4600480360360208110156106ca57600080fd5b50356001600160a01b0316611155565b3480156106e657600080fd5b506102d4600480360360408110156106fd57600080fd5b506001600160a01b038135169060200135611170565b34801561071f57600080fd5b506102d46004803603602081101561073657600080fd5b50356001600160a01b0316611378565b34801561075257600080fd5b506104036004803603608081101561076957600080fd5b810190602081018135600160201b81111561078357600080fd5b82018360208201111561079557600080fd5b803590602001918460018302840111600160201b831117156107b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080857600080fd5b82018360208201111561081a57600080fd5b803590602001918460018302840111600160201b8311171561083b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b03833516935050506020013561138a565b34801561089657600080fd5b50610591600480360360408110156108ad57600080fd5b50803590602001356113d9565b3480156108c657600080fd5b5061031f600480360360408110156108dd57600080fd5b50803590602001356001600160a01b03166113f8565b3480156108ff57600080fd5b5061024a611410565b34801561091457600080fd5b506102d4611471565b34801561092957600080fd5b5061031f6004803603604081101561094057600080fd5b506001600160a01b038135169060200135611476565b34801561096257600080fd5b5061031f6004803603604081101561097957600080fd5b506001600160a01b0381351690602001356114de565b34801561099b57600080fd5b506102d4600480360360208110156109b257600080fd5b50356001600160a01b03166114f2565b3480156109ce57600080fd5b50610403600480360360c08110156109e557600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611555565b348015610a2257600080fd5b506102d460048036036020811015610a3957600080fd5b50356117c7565b348015610a4c57600080fd5b50610403600480360360e0811015610a6357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356117de565b348015610aaa57600080fd5b506102d4611a7a565b348015610abf57600080fd5b5061040360048036036040811015610ad657600080fd5b50803590602001356001600160a01b0316611a9e565b348015610af857600080fd5b506102d460048036036040811015610b0f57600080fd5b506001600160a01b0381358116916020013516611af7565b348015610b3357600080fd5b506102d4611b22565b348015610b4857600080fd5b50610b7b60048036036040811015610b5f57600080fd5b5080356001600160a01b0316906020013563ffffffff16611b46565b6040805163ffffffff909316835260208301919091528051918290030190f35b348015610ba757600080fd5b5061024a60048036036080811015610bbe57600080fd5b810190602081018135600160201b811115610bd857600080fd5b820183602082011115610bea57600080fd5b803590602001918460018302840111600160201b83111715610c0b57600080fd5b919390929091602081019035600160201b811115610c2857600080fd5b820183602082011115610c3a57600080fd5b803590602001918460018302840111600160201b83111715610c5b57600080fd5b91935091506001600160a01b038135169060200135611b73565b348015610c8157600080fd5b506102d460048036036020811015610c9857600080fd5b50356001600160a01b0316611c10565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d345780601f10610d0957610100808354040283529160200191610d34565b820191906000526020600020905b815481529060010190602001808311610d1757829003601f168201915b5050505050905090565b600381565b6000610d57610d50611c22565b8484611c26565b5060015b92915050565b60055490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6000610d98848484611d12565b610e0884610da4611c22565b610e0385604051806060016040528060288152602001612ac0602891396001600160a01b038a16600090815260046020526040812090610de2611c22565b6001600160a01b031681526020810191909152604001600020549190611e87565b611c26565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610e4a90610e45611c22565b6113f8565b610e855760405162461bcd60e51b815260040180806020018281038252602f815260200180612942602f913960400191505060405180910390fd5b610e8f8282611f1e565b5050565b60085460ff1690565b60015481565b610eaa611c22565b6001600160a01b0316816001600160a01b031614610ef95760405162461bcd60e51b815260040180806020018281038252602f815260200180612ba0602f913960400191505060405180910390fd5b610e8f8282611f87565b6000610d57610f10611c22565b84610e038560046000610f21611c22565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ff0565b610f7d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e45611c22565b610fb85760405162461bcd60e51b81526004018080602001828103825260298152602001806129716029913960400191505060405180910390fd5b610e8f828261204a565b6001600160a01b039081166000908152600960205260409020541690565b610fea3382612150565b50565b6060806000808585608081101561100357600080fd5b810190602081018135600160201b81111561101d57600080fd5b82018360208201111561102f57600080fd5b803590602001918460018302840111600160201b8311171561105057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156110a257600080fd5b8201836020820111156110b457600080fd5b803590602001918460018302840111600160201b831117156110d557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250969a50919850506001600160a01b038235169650506020013593506111359250869150859050848461138a565b505050505050565b600b6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526002602052604090205490565b60004382106111b05760405162461bcd60e51b8152600401808060200182810382526028815260200180612a986028913960400191505060405180910390fd5b6001600160a01b0383166000908152600b602052604090205463ffffffff16806111de576000915050610d5b565b6001600160a01b0384166000908152600a6020908152604080832063ffffffff60001986018116855292529091205416831061124d576001600160a01b0384166000908152600a602090815260408083206000199490940163ffffffff16835292905220600101549050610d5b565b6001600160a01b0384166000908152600a6020908152604080832083805290915290205463ffffffff16831015611288576000915050610d5b565b600060001982015b8163ffffffff168163ffffffff16111561134157600282820363ffffffff160481036112ba612852565b506001600160a01b0387166000908152600a6020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561131c57602001519450610d5b9350505050565b805163ffffffff168711156113335781935061133a565b6001820392505b5050611290565b506001600160a01b0385166000908152600a6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60036020526000908152604090205481565b61139484846121ed565b61139f600083610e85565b6113c97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683610e85565b6113d3338261204a565b50505050565b60008281526020819052604081206113f190836122cf565b9392505050565b60008281526020819052604081206113f190836122db565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d345780601f10610d0957610100808354040283529160200191610d34565b600081565b6000610d57611483611c22565b84610e0385604051806060016040528060258152602001612b7b60259139600460006114ad611c22565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611e87565b6000610d576114eb611c22565b8484611d12565b6001600160a01b0381166000908152600b602052604081205463ffffffff168061151d5760006113f1565b6001600160a01b0383166000908152600a6020908152604080832063ffffffff60001986011684529091529020600101549392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611580610ca8565b8051906020012061158f6122f0565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa1580156116c2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117145760405162461bcd60e51b8152600401808060200182810382526027815260200180612b0b6027913960400191505060405180910390fd5b6001600160a01b0381166000908152600c6020526040902080546001810190915589146117725760405162461bcd60e51b8152600401808060200182810382526023815260200180612ae86023913960400191505060405180910390fd5b874211156117b15760405162461bcd60e51b815260040180806020018281038252602781526020018061299a6027913960400191505060405180910390fd5b6117bb818b612150565b50505050505050505050565b6000818152602081905260408120610d5b906122f4565b6001600160a01b038716611839576040805162461bcd60e51b815260206004820152601860248201527f45524332303a204f776e65722063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b83421061187e576040805162461bcd60e51b815260206004820152600e60248201526d115490cc8c0e88115e1c1a5c995960921b604482015290519081900360640190fd5b6040805180820182526002815261190160f01b6020808301918252600180546001600160a01b03808e166000818152600386528881208054958601905588517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981880152808a0192909252918e166060820152608081018d905260a081019390935260c08084018c90528751808503909101815260e084019097528651969093019590952084519295939092610100909201918291908083835b602083106119575780518252601f199092019160209182019101611938565b51815160209384036101000a6000190180199092169116179052920194855250838101929092525060408051808403830181528184018083528151918401919091206000918290526060850180845281905260ff8a16608086015260a0850189905260c085018890529151919550935060019260e08082019392601f1981019281900390910190855afa1580156119f2573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b031614611a64576040805162461bcd60e51b815260206004820152601860248201527f45524332303a20496e76616c6964205369676e61747572650000000000000000604482015290519081900360640190fd5b611a6f898989611c26565b505050505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154611abc90610e45611c22565b610ef95760405162461bcd60e51b8152600401808060200182810382526030815260200180612a336030913960400191505060405180910390fd5b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600a6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6060868686868686604051602001808060200180602001856001600160a01b031681526020018481526020018381038352898982818152602001925080828437600083820152601f01601f19169091018481038352878152602001905087878082843760008382015260408051601f909201601f199081169094018281039094018252929092525099505050505050505050509695505050505050565b600c6020526000908152604090205481565b3390565b6001600160a01b038316611c6b5760405162461bcd60e51b8152600401808060200182810382526024815260200180612b576024913960400191505060405180910390fd5b6001600160a01b038216611cb05760405162461bcd60e51b81526004018080602001828103825260228152602001806129c16022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611d575760405162461bcd60e51b8152600401808060200182810382526025815260200180612b326025913960400191505060405180910390fd5b6001600160a01b038216611d9c5760405162461bcd60e51b815260040180806020018281038252602381526020018061291f6023913960400191505060405180910390fd5b611da78383836121e8565b611de4816040518060600160405280602681526020016129e3602691396001600160a01b0386166000908152600260205260409020549190611e87565b6001600160a01b038085166000908152600260205260408082209390935590841681522054611e139082611ff0565b6001600160a01b038316600090815260026020526040902055611e378383836122ff565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008184841115611f165760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611edb578181015183820152602001611ec3565b50505050905090810190601f168015611f085780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020611f36908261233c565b15610e8f57611f43611c22565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611f9f9082612351565b15610e8f57611fac611c22565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156113f1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166120a5576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6120b1600083836121e8565b6005546120be9082611ff0565b6005556001600160a01b0382166000908152600260205260409020546120e49082611ff0565b6001600160a01b03831660009081526002602052604081209190915561210b9083836122ff565b6040805182815290516001600160a01b038416916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03808316600090815260096020526040902054811690821681146121e857600061218084611155565b6001600160a01b0385811660008181526009602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46113d3828483612366565b505050565b600854610100900460ff16156122345760405162461bcd60e51b815260040180806020018281038252602a815260200180612a09602a913960400191505060405180910390fd5b8151612247906006906020850190612869565b50805161225b906007906020840190612869565b505060088054604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218602080830191909152468284015230606080840191909152835180840390910181526080909201909252805191012060015561ff001960ff199091166012171661010017905550565b60006113f183836124a3565b60006113f1836001600160a01b038416612507565b4690565b6000610d5b8261251f565b6001600160a01b0380841660009081526009602052604080822054858416835291205461233192918216911683612366565b6121e88383836121e8565b60006113f1836001600160a01b038416612523565b60006113f1836001600160a01b03841661256d565b816001600160a01b0316836001600160a01b0316141580156123885750600081115b156121e8576001600160a01b0383161561241a576001600160a01b0383166000908152600b602052604081205463ffffffff1690816123c85760006123fa565b6001600160a01b0385166000908152600a6020908152604080832063ffffffff60001987011684529091529020600101545b905060006124088285612633565b905061241686848484612690565b5050505b6001600160a01b038216156121e8576001600160a01b0382166000908152600b602052604081205463ffffffff169081612455576000612487565b6001600160a01b0384166000908152600a6020908152604080832063ffffffff60001987011684529091529020600101545b905060006124958285611ff0565b905061113585848484612690565b815460009082106124e55760405162461bcd60e51b81526004018080602001828103825260228152602001806128fd6022913960400191505060405180910390fd5b8260000182815481106124f457fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600061252f8383612507565b61256557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d5b565b506000610d5b565b6000818152600183016020526040812054801561262957835460001980830191908101906000908790839081106125a057fe5b90600052602060002001549050808760000184815481106125bd57fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806125ed57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d5b565b6000915050610d5b565b60008282111561268a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006126b443604051806060016040528060358152602001612a63603591396127f5565b905060008463ffffffff161180156126fd57506001600160a01b0385166000908152600a6020908152604080832063ffffffff6000198901811685529252909120548282169116145b1561273a576001600160a01b0385166000908152600a6020908152604080832063ffffffff600019890116845290915290206001018290556127ab565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600a84528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600b9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b600081600160201b841061284a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611edb578181015183820152602001611ec3565b509192915050565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106128aa57805160ff19168380011785556128d7565b828001600101855582156128d7579182015b828111156128d75782518255916020019190600101906128bc565b506128e39291506128e7565b5090565b5b808211156128e357600081556001016128e856fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e745375736869546f6b656e3a206d7573742068617665206d696e74657220726f6c6520746f206d696e7453555348493a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a20746f6b656e2068617320616c7265616479206265656e20696e697469616c697a656421416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6553555348493a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747353555348493a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636553555348493a3a64656c656761746542795369673a20696e76616c6964206e6f6e636553555348493a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208d5a5cfaf0db28d8f384c364a97ae6adab8aa872aa4c5bee48a87f1f0031880564736f6c634300060c0033
Deployed Bytecode
0x6080604052600436106102305760003560e01c8063782d6fe11161012e578063c3cda520116100ab578063dd62ed3e1161006f578063dd62ed3e14610aec578063e7a324dc14610b27578063f1127ed814610b3c578063f21f007c14610b9b578063f990ccd714610c7557610230565b8063c3cda520146109c2578063ca15c87314610a16578063d505accf14610a40578063d539139314610a9e578063d547741f14610ab357610230565b806395d89b41116100f257806395d89b41146108f3578063a217fddf14610908578063a457c2d71461091d578063a9059cbb14610956578063b4b5ea571461098f57610230565b8063782d6fe1146106da5780637ecebe00146107135780638dc7df72146107465780639010d07c1461088a57806391d14854146108ba57610230565b80633644e515116101bc578063587cde1e11610180578063587cde1e1461055e5780635c19a95c146105ad57806360b1cc80146105e05780636fcfff451461065b57806370a08231146106a757610230565b80633644e5151461043057806336568abe14610445578063395093511461047e57806340c10f19146104b75780634ddf47d4146104f057610230565b806320606b701161020357806320606b701461034857806323b872dd1461035d578063248a9ca3146103a05780632f2ff15d146103ca578063313ce5671461040557610230565b806306fdde03146102355780630814d3dd146102bf578063095ea7b3146102e657806318160ddd14610333575b600080fd5b34801561024157600080fd5b5061024a610ca8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028457818101518382015260200161026c565b50505050905090810190601f1680156102b15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102cb57600080fd5b506102d4610d3e565b60408051918252519081900360200190f35b3480156102f257600080fd5b5061031f6004803603604081101561030957600080fd5b506001600160a01b038135169060200135610d43565b604080519115158252519081900360200190f35b34801561033f57600080fd5b506102d4610d61565b34801561035457600080fd5b506102d4610d67565b34801561036957600080fd5b5061031f6004803603606081101561038057600080fd5b506001600160a01b03813581169160208101359091169060400135610d8b565b3480156103ac57600080fd5b506102d4600480360360208110156103c357600080fd5b5035610e12565b3480156103d657600080fd5b50610403600480360360408110156103ed57600080fd5b50803590602001356001600160a01b0316610e27565b005b34801561041157600080fd5b5061041a610e93565b6040805160ff9092168252519081900360200190f35b34801561043c57600080fd5b506102d4610e9c565b34801561045157600080fd5b506104036004803603604081101561046857600080fd5b50803590602001356001600160a01b0316610ea2565b34801561048a57600080fd5b5061031f600480360360408110156104a157600080fd5b506001600160a01b038135169060200135610f03565b3480156104c357600080fd5b50610403600480360360408110156104da57600080fd5b506001600160a01b038135169060200135610f51565b6104036004803603602081101561050657600080fd5b810190602081018135600160201b81111561052057600080fd5b82018360208201111561053257600080fd5b803590602001918460018302840111600160201b8311171561055357600080fd5b509092509050610e8f565b34801561056a57600080fd5b506105916004803603602081101561058157600080fd5b50356001600160a01b0316610fc2565b604080516001600160a01b039092168252519081900360200190f35b3480156105b957600080fd5b50610403600480360360208110156105d057600080fd5b50356001600160a01b0316610fe0565b3480156105ec57600080fd5b506104036004803603602081101561060357600080fd5b810190602081018135600160201b81111561061d57600080fd5b82018360208201111561062f57600080fd5b803590602001918460018302840111600160201b8311171561065057600080fd5b509092509050610fed565b34801561066757600080fd5b5061068e6004803603602081101561067e57600080fd5b50356001600160a01b031661113d565b6040805163ffffffff9092168252519081900360200190f35b3480156106b357600080fd5b506102d4600480360360208110156106ca57600080fd5b50356001600160a01b0316611155565b3480156106e657600080fd5b506102d4600480360360408110156106fd57600080fd5b506001600160a01b038135169060200135611170565b34801561071f57600080fd5b506102d46004803603602081101561073657600080fd5b50356001600160a01b0316611378565b34801561075257600080fd5b506104036004803603608081101561076957600080fd5b810190602081018135600160201b81111561078357600080fd5b82018360208201111561079557600080fd5b803590602001918460018302840111600160201b831117156107b657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561080857600080fd5b82018360208201111561081a57600080fd5b803590602001918460018302840111600160201b8311171561083b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b03833516935050506020013561138a565b34801561089657600080fd5b50610591600480360360408110156108ad57600080fd5b50803590602001356113d9565b3480156108c657600080fd5b5061031f600480360360408110156108dd57600080fd5b50803590602001356001600160a01b03166113f8565b3480156108ff57600080fd5b5061024a611410565b34801561091457600080fd5b506102d4611471565b34801561092957600080fd5b5061031f6004803603604081101561094057600080fd5b506001600160a01b038135169060200135611476565b34801561096257600080fd5b5061031f6004803603604081101561097957600080fd5b506001600160a01b0381351690602001356114de565b34801561099b57600080fd5b506102d4600480360360208110156109b257600080fd5b50356001600160a01b03166114f2565b3480156109ce57600080fd5b50610403600480360360c08110156109e557600080fd5b506001600160a01b038135169060208101359060408101359060ff6060820135169060808101359060a00135611555565b348015610a2257600080fd5b506102d460048036036020811015610a3957600080fd5b50356117c7565b348015610a4c57600080fd5b50610403600480360360e0811015610a6357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356117de565b348015610aaa57600080fd5b506102d4611a7a565b348015610abf57600080fd5b5061040360048036036040811015610ad657600080fd5b50803590602001356001600160a01b0316611a9e565b348015610af857600080fd5b506102d460048036036040811015610b0f57600080fd5b506001600160a01b0381358116916020013516611af7565b348015610b3357600080fd5b506102d4611b22565b348015610b4857600080fd5b50610b7b60048036036040811015610b5f57600080fd5b5080356001600160a01b0316906020013563ffffffff16611b46565b6040805163ffffffff909316835260208301919091528051918290030190f35b348015610ba757600080fd5b5061024a60048036036080811015610bbe57600080fd5b810190602081018135600160201b811115610bd857600080fd5b820183602082011115610bea57600080fd5b803590602001918460018302840111600160201b83111715610c0b57600080fd5b919390929091602081019035600160201b811115610c2857600080fd5b820183602082011115610c3a57600080fd5b803590602001918460018302840111600160201b83111715610c5b57600080fd5b91935091506001600160a01b038135169060200135611b73565b348015610c8157600080fd5b506102d460048036036020811015610c9857600080fd5b50356001600160a01b0316611c10565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d345780601f10610d0957610100808354040283529160200191610d34565b820191906000526020600020905b815481529060010190602001808311610d1757829003601f168201915b5050505050905090565b600381565b6000610d57610d50611c22565b8484611c26565b5060015b92915050565b60055490565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6000610d98848484611d12565b610e0884610da4611c22565b610e0385604051806060016040528060288152602001612ac0602891396001600160a01b038a16600090815260046020526040812090610de2611c22565b6001600160a01b031681526020810191909152604001600020549190611e87565b611c26565b5060019392505050565b60009081526020819052604090206002015490565b600082815260208190526040902060020154610e4a90610e45611c22565b6113f8565b610e855760405162461bcd60e51b815260040180806020018281038252602f815260200180612942602f913960400191505060405180910390fd5b610e8f8282611f1e565b5050565b60085460ff1690565b60015481565b610eaa611c22565b6001600160a01b0316816001600160a01b031614610ef95760405162461bcd60e51b815260040180806020018281038252602f815260200180612ba0602f913960400191505060405180910390fd5b610e8f8282611f87565b6000610d57610f10611c22565b84610e038560046000610f21611c22565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611ff0565b610f7d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e45611c22565b610fb85760405162461bcd60e51b81526004018080602001828103825260298152602001806129716029913960400191505060405180910390fd5b610e8f828261204a565b6001600160a01b039081166000908152600960205260409020541690565b610fea3382612150565b50565b6060806000808585608081101561100357600080fd5b810190602081018135600160201b81111561101d57600080fd5b82018360208201111561102f57600080fd5b803590602001918460018302840111600160201b8311171561105057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156110a257600080fd5b8201836020820111156110b457600080fd5b803590602001918460018302840111600160201b831117156110d557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250969a50919850506001600160a01b038235169650506020013593506111359250869150859050848461138a565b505050505050565b600b6020526000908152604090205463ffffffff1681565b6001600160a01b031660009081526002602052604090205490565b60004382106111b05760405162461bcd60e51b8152600401808060200182810382526028815260200180612a986028913960400191505060405180910390fd5b6001600160a01b0383166000908152600b602052604090205463ffffffff16806111de576000915050610d5b565b6001600160a01b0384166000908152600a6020908152604080832063ffffffff60001986018116855292529091205416831061124d576001600160a01b0384166000908152600a602090815260408083206000199490940163ffffffff16835292905220600101549050610d5b565b6001600160a01b0384166000908152600a6020908152604080832083805290915290205463ffffffff16831015611288576000915050610d5b565b600060001982015b8163ffffffff168163ffffffff16111561134157600282820363ffffffff160481036112ba612852565b506001600160a01b0387166000908152600a6020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529087141561131c57602001519450610d5b9350505050565b805163ffffffff168711156113335781935061133a565b6001820392505b5050611290565b506001600160a01b0385166000908152600a6020908152604080832063ffffffff9094168352929052206001015491505092915050565b60036020526000908152604090205481565b61139484846121ed565b61139f600083610e85565b6113c97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a683610e85565b6113d3338261204a565b50505050565b60008281526020819052604081206113f190836122cf565b9392505050565b60008281526020819052604081206113f190836122db565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610d345780601f10610d0957610100808354040283529160200191610d34565b600081565b6000610d57611483611c22565b84610e0385604051806060016040528060258152602001612b7b60259139600460006114ad611c22565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611e87565b6000610d576114eb611c22565b8484611d12565b6001600160a01b0381166000908152600b602052604081205463ffffffff168061151d5760006113f1565b6001600160a01b0383166000908152600a6020908152604080832063ffffffff60001986011684529091529020600101549392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611580610ca8565b8051906020012061158f6122f0565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a9052825180850390910181526101408401835280519085012061190160f01b6101608501526101628401829052610182808501829052835180860390910181526101a285018085528151918701919091206000918290526101c2860180865281905260ff8b166101e287015261020286018a90526102228601899052935192965090949293909260019261024280840193601f198301929081900390910190855afa1580156116c2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166117145760405162461bcd60e51b8152600401808060200182810382526027815260200180612b0b6027913960400191505060405180910390fd5b6001600160a01b0381166000908152600c6020526040902080546001810190915589146117725760405162461bcd60e51b8152600401808060200182810382526023815260200180612ae86023913960400191505060405180910390fd5b874211156117b15760405162461bcd60e51b815260040180806020018281038252602781526020018061299a6027913960400191505060405180910390fd5b6117bb818b612150565b50505050505050505050565b6000818152602081905260408120610d5b906122f4565b6001600160a01b038716611839576040805162461bcd60e51b815260206004820152601860248201527f45524332303a204f776e65722063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b83421061187e576040805162461bcd60e51b815260206004820152600e60248201526d115490cc8c0e88115e1c1a5c995960921b604482015290519081900360640190fd5b6040805180820182526002815261190160f01b6020808301918252600180546001600160a01b03808e166000818152600386528881208054958601905588517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981880152808a0192909252918e166060820152608081018d905260a081019390935260c08084018c90528751808503909101815260e084019097528651969093019590952084519295939092610100909201918291908083835b602083106119575780518252601f199092019160209182019101611938565b51815160209384036101000a6000190180199092169116179052920194855250838101929092525060408051808403830181528184018083528151918401919091206000918290526060850180845281905260ff8a16608086015260a0850189905260c085018890529151919550935060019260e08082019392601f1981019281900390910190855afa1580156119f2573d6000803e3d6000fd5b505050602060405103519050886001600160a01b0316816001600160a01b031614611a64576040805162461bcd60e51b815260206004820152601860248201527f45524332303a20496e76616c6964205369676e61747572650000000000000000604482015290519081900360640190fd5b611a6f898989611c26565b505050505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154611abc90610e45611c22565b610ef95760405162461bcd60e51b8152600401808060200182810382526030815260200180612a336030913960400191505060405180910390fd5b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b600a6020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6060868686868686604051602001808060200180602001856001600160a01b031681526020018481526020018381038352898982818152602001925080828437600083820152601f01601f19169091018481038352878152602001905087878082843760008382015260408051601f909201601f199081169094018281039094018252929092525099505050505050505050509695505050505050565b600c6020526000908152604090205481565b3390565b6001600160a01b038316611c6b5760405162461bcd60e51b8152600401808060200182810382526024815260200180612b576024913960400191505060405180910390fd5b6001600160a01b038216611cb05760405162461bcd60e51b81526004018080602001828103825260228152602001806129c16022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316611d575760405162461bcd60e51b8152600401808060200182810382526025815260200180612b326025913960400191505060405180910390fd5b6001600160a01b038216611d9c5760405162461bcd60e51b815260040180806020018281038252602381526020018061291f6023913960400191505060405180910390fd5b611da78383836121e8565b611de4816040518060600160405280602681526020016129e3602691396001600160a01b0386166000908152600260205260409020549190611e87565b6001600160a01b038085166000908152600260205260408082209390935590841681522054611e139082611ff0565b6001600160a01b038316600090815260026020526040902055611e378383836122ff565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008184841115611f165760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611edb578181015183820152602001611ec3565b50505050905090810190601f168015611f085780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828152602081905260409020611f36908261233c565b15610e8f57611f43611c22565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611f9f9082612351565b15610e8f57611fac611c22565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000828201838110156113f1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166120a5576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6120b1600083836121e8565b6005546120be9082611ff0565b6005556001600160a01b0382166000908152600260205260409020546120e49082611ff0565b6001600160a01b03831660009081526002602052604081209190915561210b9083836122ff565b6040805182815290516001600160a01b038416916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03808316600090815260096020526040902054811690821681146121e857600061218084611155565b6001600160a01b0385811660008181526009602052604080822080546001600160a01b031916898616908117909155905194955093928616927f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a46113d3828483612366565b505050565b600854610100900460ff16156122345760405162461bcd60e51b815260040180806020018281038252602a815260200180612a09602a913960400191505060405180910390fd5b8151612247906006906020850190612869565b50805161225b906007906020840190612869565b505060088054604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218602080830191909152468284015230606080840191909152835180840390910181526080909201909252805191012060015561ff001960ff199091166012171661010017905550565b60006113f183836124a3565b60006113f1836001600160a01b038416612507565b4690565b6000610d5b8261251f565b6001600160a01b0380841660009081526009602052604080822054858416835291205461233192918216911683612366565b6121e88383836121e8565b60006113f1836001600160a01b038416612523565b60006113f1836001600160a01b03841661256d565b816001600160a01b0316836001600160a01b0316141580156123885750600081115b156121e8576001600160a01b0383161561241a576001600160a01b0383166000908152600b602052604081205463ffffffff1690816123c85760006123fa565b6001600160a01b0385166000908152600a6020908152604080832063ffffffff60001987011684529091529020600101545b905060006124088285612633565b905061241686848484612690565b5050505b6001600160a01b038216156121e8576001600160a01b0382166000908152600b602052604081205463ffffffff169081612455576000612487565b6001600160a01b0384166000908152600a6020908152604080832063ffffffff60001987011684529091529020600101545b905060006124958285611ff0565b905061113585848484612690565b815460009082106124e55760405162461bcd60e51b81526004018080602001828103825260228152602001806128fd6022913960400191505060405180910390fd5b8260000182815481106124f457fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b600061252f8383612507565b61256557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d5b565b506000610d5b565b6000818152600183016020526040812054801561262957835460001980830191908101906000908790839081106125a057fe5b90600052602060002001549050808760000184815481106125bd57fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806125ed57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d5b565b6000915050610d5b565b60008282111561268a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006126b443604051806060016040528060358152602001612a63603591396127f5565b905060008463ffffffff161180156126fd57506001600160a01b0385166000908152600a6020908152604080832063ffffffff6000198901811685529252909120548282169116145b1561273a576001600160a01b0385166000908152600a6020908152604080832063ffffffff600019890116845290915290206001018290556127ab565b60408051808201825263ffffffff808416825260208083018681526001600160a01b038a166000818152600a84528681208b8616825284528681209551865490861663ffffffff199182161787559251600196870155908152600b9092529390208054928801909116919092161790555b604080518481526020810184905281516001600160a01b038816927fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724928290030190a25050505050565b600081600160201b841061284a5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611edb578181015183820152602001611ec3565b509192915050565b604080518082019091526000808252602082015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106128aa57805160ff19168380011785556128d7565b828001600101855582156128d7579182015b828111156128d75782518255916020019190600101906128bc565b506128e39291506128e7565b5090565b5b808211156128e357600081556001016128e856fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e745375736869546f6b656e3a206d7573742068617665206d696e74657220726f6c6520746f206d696e7453555348493a3a64656c656761746542795369673a207369676e6174757265206578706972656445524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a20746f6b656e2068617320616c7265616479206265656e20696e697469616c697a656421416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6553555348493a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747353555348493a3a6765745072696f72566f7465733a206e6f74207965742064657465726d696e656445524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636553555348493a3a64656c656761746542795369673a20696e76616c6964206e6f6e636553555348493a3a64656c656761746542795369673a20696e76616c6964207369676e617475726545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212208d5a5cfaf0db28d8f384c364a97ae6adab8aa872aa4c5bee48a87f1f0031880564736f6c634300060c0033
Loading...
Loading
Loading...
Loading
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.