Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
TokenTracker
Multichain Info
N/A
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer From | 2839375 | 9 days ago | IN | 0 ETH | 0.00000117 | ||||
Burn | 2839322 | 9 days ago | IN | 0 ETH | 0.00000136 | ||||
Burn | 2839307 | 9 days ago | IN | 0 ETH | 0.00000112 | ||||
Burn | 2839299 | 9 days ago | IN | 0 ETH | 0.00000112 | ||||
Mint | 2839278 | 9 days ago | IN | 0 ETH | 0.00000262 | ||||
Mint | 2839161 | 9 days ago | IN | 0 ETH | 0.00000342 | ||||
Initialize | 2839137 | 9 days ago | IN | 0 ETH | 0.00000662 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MartinToken
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-11-29 */ // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/token/ERC20/IERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/token/ERC20/extensions/IERC20MetadataUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/utils/ContextUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/token/ERC20/ERC20Upgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[45] private __gap; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.7.0/contracts/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: contracts/Token.sol pragma solidity ^0.8.22; contract MartinToken is ERC20Upgradeable, OwnableUpgradeable { uint256 public cap; function initialize( string memory name, string memory symbol, uint256 _cap, address initialOwner ) public initializer { __ERC20_init(name, symbol); __Ownable_init(); cap = _cap; transferOwnership(initialOwner); } function mint(address to, uint256 amount) public onlyOwner { require(totalSupply() + amount <= cap, "MartinToken: cap exceeded"); _mint(to, amount); } function burn(uint256 amount) public { _burn(msg.sender, amount); } }
[{"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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"address","name":"initialOwner","type":"address"}],"name":"initialize","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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f80fd5b506111768061001d5f395ff3fe608060405234801561000f575f80fd5b50600436106100e4575f3560e01c806306fdde03146100e8578063095ea7b31461010657806318160ddd1461012957806323b872dd1461013b578063313ce5671461014e578063355274ea1461015d578063395093511461016657806340c10f191461017957806342966c681461018e57806370a08231146101a1578063715018a6146101c95780638da5cb5b146101d157806395d89b41146101f1578063a457c2d7146101f9578063a9059cbb1461020c578063bd3a13f61461021f578063dd62ed3e14610232578063f2fde38b14610245575b5f80fd5b6100f0610258565b6040516100fd9190610d1c565b60405180910390f35b610119610114366004610d83565b6102e8565b60405190151581526020016100fd565b6035545b6040519081526020016100fd565b610119610149366004610dab565b610301565b604051601281526020016100fd565b61012d60975481565b610119610174366004610d83565b610324565b61018c610187366004610d83565b610345565b005b61018c61019c366004610de4565b6103c1565b61012d6101af366004610dfb565b6001600160a01b03165f9081526033602052604090205490565b61018c6103ce565b6101d96103e1565b6040516001600160a01b0390911681526020016100fd565b6100f06103f0565b610119610207366004610d83565b6103ff565b61011961021a366004610d83565b610479565b61018c61022d366004610eb7565b610486565b61012d610240366004610f2f565b6105ad565b61018c610253366004610dfb565b6105d7565b60606036805461026790610f60565b80601f016020809104026020016040519081016040528092919081815260200182805461029390610f60565b80156102de5780601f106102b5576101008083540402835291602001916102de565b820191905f5260205f20905b8154815290600101906020018083116102c157829003601f168201915b5050505050905090565b5f336102f581858561064d565b60019150505b92915050565b5f3361030e858285610771565b6103198585856107e9565b506001949350505050565b5f336102f581858561033683836105ad565b6103409190610fac565b61064d565b61034d6109a2565b6097548161035a60355490565b6103649190610fac565b11156103b35760405162461bcd60e51b815260206004820152601960248201527813585c9d1a5b951bdad95b8e8818d85c08195e18d959591959603a1b60448201526064015b60405180910390fd5b6103bd8282610a01565b5050565b6103cb3382610aca565b50565b6103d66109a2565b6103df5f610bff565b565b6065546001600160a01b031690565b60606037805461026790610f60565b5f338161040c82866105ad565b90508381101561046c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103aa565b610319828686840361064d565b5f336102f58185856107e9565b5f54610100900460ff16158080156104a457505f54600160ff909116105b806104bd5750303b1580156104bd57505f5460ff166001145b6105205760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103aa565b5f805460ff191660011790558015610541575f805461ff0019166101001790555b61054b8585610c50565b610553610c80565b6097839055610561826105d7565b80156105a6575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6001600160a01b039182165f90815260346020908152604080832093909416825291909152205490565b6105df6109a2565b6001600160a01b0381166106445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103aa565b6103cb81610bff565b6001600160a01b0383166106af5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103aa565b6001600160a01b0382166107105760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103aa565b6001600160a01b038381165f8181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b5f61077c84846105ad565b90505f1981146107e357818110156107d65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103aa565b6107e3848484840361064d565b50505050565b6001600160a01b03831661084d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103aa565b6001600160a01b0382166108af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103aa565b6001600160a01b0383165f90815260336020526040902054818110156109265760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103aa565b6001600160a01b038085165f9081526033602052604080822085850390559185168152908120805484929061095c908490610fac565b92505081905550826001600160a01b0316846001600160a01b03165f805160206111218339815191528460405161099591815260200190565b60405180910390a36107e3565b336109ab6103e1565b6001600160a01b0316146103df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103aa565b6001600160a01b038216610a575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103aa565b8060355f828254610a689190610fac565b90915550506001600160a01b0382165f9081526033602052604081208054839290610a94908490610fac565b90915550506040518181526001600160a01b038316905f905f805160206111218339815191529060200160405180910390a35050565b6001600160a01b038216610b2a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103aa565b6001600160a01b0382165f9081526033602052604090205481811015610b9d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103aa565b6001600160a01b0383165f908152603360205260408120838303905560358054849290610bcb908490610fbf565b90915550506040518281525f906001600160a01b038516905f8051602061112183398151915290602001610764565b505050565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f54610100900460ff16610c765760405162461bcd60e51b81526004016103aa90610fd2565b6103bd8282610cae565b5f54610100900460ff16610ca65760405162461bcd60e51b81526004016103aa90610fd2565b6103df610ced565b5f54610100900460ff16610cd45760405162461bcd60e51b81526004016103aa90610fd2565b6036610ce08382611061565b506037610bfa8282611061565b5f54610100900460ff16610d135760405162461bcd60e51b81526004016103aa90610fd2565b6103df33610bff565b5f602080835283518060208501525f5b81811015610d4857858101830151858201604001528201610d2c565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d7e575f80fd5b919050565b5f8060408385031215610d94575f80fd5b610d9d83610d68565b946020939093013593505050565b5f805f60608486031215610dbd575f80fd5b610dc684610d68565b9250610dd460208501610d68565b9150604084013590509250925092565b5f60208284031215610df4575f80fd5b5035919050565b5f60208284031215610e0b575f80fd5b610e1482610d68565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610e3e575f80fd5b81356001600160401b0380821115610e5857610e58610e1b565b604051601f8301601f19908116603f01168101908282118183101715610e8057610e80610e1b565b81604052838152866020858801011115610e98575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f805f8060808587031215610eca575f80fd5b84356001600160401b0380821115610ee0575f80fd5b610eec88838901610e2f565b95506020870135915080821115610f01575f80fd5b50610f0e87828801610e2f565b93505060408501359150610f2460608601610d68565b905092959194509250565b5f8060408385031215610f40575f80fd5b610f4983610d68565b9150610f5760208401610d68565b90509250929050565b600181811c90821680610f7457607f821691505b602082108103610f9257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156102fb576102fb610f98565b818103818111156102fb576102fb610f98565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b601f821115610bfa57805f5260205f20601f840160051c810160208510156110425750805b601f840160051c820191505b818110156105a6575f815560010161104e565b81516001600160401b0381111561107a5761107a610e1b565b61108e816110888454610f60565b8461101d565b602080601f8311600181146110c1575f84156110aa5750858301515b5f19600386901b1c1916600185901b178555611118565b5f85815260208120601f198616915b828110156110ef578886015182559484019460019091019084016110d0565b508582101561110c57878501515f19600388901b60f8161c191681555b505060018460011b0185555b50505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207368752420f6d80d6f4eefc8a73627657e2a2b7bbc4c8799581e8b21c761f2b864736f6c63430008160033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100e4575f3560e01c806306fdde03146100e8578063095ea7b31461010657806318160ddd1461012957806323b872dd1461013b578063313ce5671461014e578063355274ea1461015d578063395093511461016657806340c10f191461017957806342966c681461018e57806370a08231146101a1578063715018a6146101c95780638da5cb5b146101d157806395d89b41146101f1578063a457c2d7146101f9578063a9059cbb1461020c578063bd3a13f61461021f578063dd62ed3e14610232578063f2fde38b14610245575b5f80fd5b6100f0610258565b6040516100fd9190610d1c565b60405180910390f35b610119610114366004610d83565b6102e8565b60405190151581526020016100fd565b6035545b6040519081526020016100fd565b610119610149366004610dab565b610301565b604051601281526020016100fd565b61012d60975481565b610119610174366004610d83565b610324565b61018c610187366004610d83565b610345565b005b61018c61019c366004610de4565b6103c1565b61012d6101af366004610dfb565b6001600160a01b03165f9081526033602052604090205490565b61018c6103ce565b6101d96103e1565b6040516001600160a01b0390911681526020016100fd565b6100f06103f0565b610119610207366004610d83565b6103ff565b61011961021a366004610d83565b610479565b61018c61022d366004610eb7565b610486565b61012d610240366004610f2f565b6105ad565b61018c610253366004610dfb565b6105d7565b60606036805461026790610f60565b80601f016020809104026020016040519081016040528092919081815260200182805461029390610f60565b80156102de5780601f106102b5576101008083540402835291602001916102de565b820191905f5260205f20905b8154815290600101906020018083116102c157829003601f168201915b5050505050905090565b5f336102f581858561064d565b60019150505b92915050565b5f3361030e858285610771565b6103198585856107e9565b506001949350505050565b5f336102f581858561033683836105ad565b6103409190610fac565b61064d565b61034d6109a2565b6097548161035a60355490565b6103649190610fac565b11156103b35760405162461bcd60e51b815260206004820152601960248201527813585c9d1a5b951bdad95b8e8818d85c08195e18d959591959603a1b60448201526064015b60405180910390fd5b6103bd8282610a01565b5050565b6103cb3382610aca565b50565b6103d66109a2565b6103df5f610bff565b565b6065546001600160a01b031690565b60606037805461026790610f60565b5f338161040c82866105ad565b90508381101561046c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103aa565b610319828686840361064d565b5f336102f58185856107e9565b5f54610100900460ff16158080156104a457505f54600160ff909116105b806104bd5750303b1580156104bd57505f5460ff166001145b6105205760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103aa565b5f805460ff191660011790558015610541575f805461ff0019166101001790555b61054b8585610c50565b610553610c80565b6097839055610561826105d7565b80156105a6575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6001600160a01b039182165f90815260346020908152604080832093909416825291909152205490565b6105df6109a2565b6001600160a01b0381166106445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103aa565b6103cb81610bff565b6001600160a01b0383166106af5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103aa565b6001600160a01b0382166107105760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103aa565b6001600160a01b038381165f8181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b5f61077c84846105ad565b90505f1981146107e357818110156107d65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103aa565b6107e3848484840361064d565b50505050565b6001600160a01b03831661084d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103aa565b6001600160a01b0382166108af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103aa565b6001600160a01b0383165f90815260336020526040902054818110156109265760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103aa565b6001600160a01b038085165f9081526033602052604080822085850390559185168152908120805484929061095c908490610fac565b92505081905550826001600160a01b0316846001600160a01b03165f805160206111218339815191528460405161099591815260200190565b60405180910390a36107e3565b336109ab6103e1565b6001600160a01b0316146103df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103aa565b6001600160a01b038216610a575760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103aa565b8060355f828254610a689190610fac565b90915550506001600160a01b0382165f9081526033602052604081208054839290610a94908490610fac565b90915550506040518181526001600160a01b038316905f905f805160206111218339815191529060200160405180910390a35050565b6001600160a01b038216610b2a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103aa565b6001600160a01b0382165f9081526033602052604090205481811015610b9d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103aa565b6001600160a01b0383165f908152603360205260408120838303905560358054849290610bcb908490610fbf565b90915550506040518281525f906001600160a01b038516905f8051602061112183398151915290602001610764565b505050565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f54610100900460ff16610c765760405162461bcd60e51b81526004016103aa90610fd2565b6103bd8282610cae565b5f54610100900460ff16610ca65760405162461bcd60e51b81526004016103aa90610fd2565b6103df610ced565b5f54610100900460ff16610cd45760405162461bcd60e51b81526004016103aa90610fd2565b6036610ce08382611061565b506037610bfa8282611061565b5f54610100900460ff16610d135760405162461bcd60e51b81526004016103aa90610fd2565b6103df33610bff565b5f602080835283518060208501525f5b81811015610d4857858101830151858201604001528201610d2c565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d7e575f80fd5b919050565b5f8060408385031215610d94575f80fd5b610d9d83610d68565b946020939093013593505050565b5f805f60608486031215610dbd575f80fd5b610dc684610d68565b9250610dd460208501610d68565b9150604084013590509250925092565b5f60208284031215610df4575f80fd5b5035919050565b5f60208284031215610e0b575f80fd5b610e1482610d68565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610e3e575f80fd5b81356001600160401b0380821115610e5857610e58610e1b565b604051601f8301601f19908116603f01168101908282118183101715610e8057610e80610e1b565b81604052838152866020858801011115610e98575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f805f8060808587031215610eca575f80fd5b84356001600160401b0380821115610ee0575f80fd5b610eec88838901610e2f565b95506020870135915080821115610f01575f80fd5b50610f0e87828801610e2f565b93505060408501359150610f2460608601610d68565b905092959194509250565b5f8060408385031215610f40575f80fd5b610f4983610d68565b9150610f5760208401610d68565b90509250929050565b600181811c90821680610f7457607f821691505b602082108103610f9257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156102fb576102fb610f98565b818103818111156102fb576102fb610f98565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b601f821115610bfa57805f5260205f20601f840160051c810160208510156110425750805b601f840160051c820191505b818110156105a6575f815560010161104e565b81516001600160401b0381111561107a5761107a610e1b565b61108e816110888454610f60565b8461101d565b602080601f8311600181146110c1575f84156110aa5750858301515b5f19600386901b1c1916600185901b178555611118565b5f85815260208120601f198616915b828110156110ef578886015182559484019460019091019084016110d0565b508582101561110c57878501515f19600388901b60f8161c191681555b505060018460011b0185555b50505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207368752420f6d80d6f4eefc8a73627657e2a2b7bbc4c8799581e8b21c761f2b864736f6c63430008160033
Deployed Bytecode Sourcemap
35669:663:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21253:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23604:201;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;23604:201:0;1004:187:1;22373:108:0;22461:12;;22373:108;;;1342:25:1;;;1330:2;1315:18;22373:108:0;1196:177:1;24385:295:0;;;;;;:::i;:::-;;:::i;22215:93::-;;;22298:2;1853:36:1;;1841:2;1826:18;22215:93:0;1711:184:1;35737:18:0;;;;;;25089:238;;;;;;:::i;:::-;;:::i;36067:173::-;;;;;;:::i;:::-;;:::i;:::-;;36248:81;;;;;;:::i;:::-;;:::i;22544:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;22645:18:0;22618:7;22645:18;;;:9;:18;;;;;;;22544:127;34488:103;;;:::i;33840:87::-;;;:::i;:::-;;;-1:-1:-1;;;;;2440:32:1;;;2422:51;;2410:2;2395:18;33840:87:0;2276:203:1;21472:104:0;;;:::i;25830:436::-;;;;;;:::i;:::-;;:::i;22877:193::-;;;;;;:::i;:::-;;:::i;35764:295::-;;;;;;:::i;:::-;;:::i;23133:151::-;;;;;;:::i;:::-;;:::i;34746:201::-;;;;;;:::i;:::-;;:::i;21253:100::-;21307:13;21340:5;21333:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21253:100;:::o;23604:201::-;23687:4;18335:10;23743:32;18335:10;23759:7;23768:6;23743:8;:32::i;:::-;23793:4;23786:11;;;23604:201;;;;;:::o;24385:295::-;24516:4;18335:10;24574:38;24590:4;18335:10;24605:6;24574:15;:38::i;:::-;24623:27;24633:4;24639:2;24643:6;24623:9;:27::i;:::-;-1:-1:-1;24668:4:0;;24385:295;-1:-1:-1;;;;24385:295:0:o;25089:238::-;25177:4;18335:10;25233:64;18335:10;25249:7;25286:10;25258:25;18335:10;25249:7;25258:9;:25::i;:::-;:38;;;;:::i;:::-;25233:8;:64::i;36067:173::-;33726:13;:11;:13::i;:::-;36171:3:::1;;36161:6;36145:13;22461:12:::0;;;22373:108;36145:13:::1;:22;;;;:::i;:::-;:29;;36137:67;;;::::0;-1:-1:-1;;;36137:67:0;;5145:2:1;36137:67:0::1;::::0;::::1;5127:21:1::0;5184:2;5164:18;;;5157:30;-1:-1:-1;;;5203:18:1;;;5196:55;5268:18;;36137:67:0::1;;;;;;;;;36215:17;36221:2;36225:6;36215:5;:17::i;:::-;36067:173:::0;;:::o;36248:81::-;36296:25;36302:10;36314:6;36296:5;:25::i;:::-;36248:81;:::o;34488:103::-;33726:13;:11;:13::i;:::-;34553:30:::1;34580:1;34553:18;:30::i;:::-;34488:103::o:0;33840:87::-;33913:6;;-1:-1:-1;;;;;33913:6:0;;33840:87::o;21472:104::-;21528:13;21561:7;21554:14;;;;;:::i;25830:436::-;25923:4;18335:10;25923:4;26006:25;18335:10;26023:7;26006:9;:25::i;:::-;25979:52;;26070:15;26050:16;:35;;26042:85;;;;-1:-1:-1;;;26042:85:0;;5499:2:1;26042:85:0;;;5481:21:1;5538:2;5518:18;;;5511:30;5577:34;5557:18;;;5550:62;-1:-1:-1;;;5628:18:1;;;5621:35;5673:19;;26042:85:0;5297:401:1;26042:85:0;26163:60;26172:5;26179:7;26207:15;26188:16;:34;26163:8;:60::i;22877:193::-;22956:4;18335:10;23012:28;18335:10;23029:2;23033:6;23012:9;:28::i;35764:295::-;14705:19;14728:13;;;;;;14727:14;;14775:34;;;;-1:-1:-1;14793:12:0;;14808:1;14793:12;;;;:16;14775:34;14774:108;;;-1:-1:-1;14854:4:0;5414:19;:23;;;14815:66;;-1:-1:-1;14864:12:0;;;;;:17;14815:66;14752:204;;;;-1:-1:-1;;;14752:204:0;;5905:2:1;14752:204:0;;;5887:21:1;5944:2;5924:18;;;5917:30;5983:34;5963:18;;;5956:62;-1:-1:-1;;;6034:18:1;;;6027:44;6088:19;;14752:204:0;5703:410:1;14752:204:0;14967:12;:16;;-1:-1:-1;;14967:16:0;14982:1;14967:16;;;14994:67;;;;15029:13;:20;;-1:-1:-1;;15029:20:0;;;;;14994:67;35935:26:::1;35948:4;35954:6;35935:12;:26::i;:::-;35972:16;:14;:16::i;:::-;35999:3;:10:::0;;;36020:31:::1;36038:12:::0;36020:17:::1;:31::i;:::-;15087:14:::0;15083:102;;;15134:5;15118:21;;-1:-1:-1;;15118:21:0;;;15159:14;;-1:-1:-1;1853:36:1;;15159:14:0;;1841:2:1;1826:18;15159:14:0;;;;;;;15083:102;14694:498;35764:295;;;;:::o;23133:151::-;-1:-1:-1;;;;;23249:18:0;;;23222:7;23249:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;23133:151::o;34746:201::-;33726:13;:11;:13::i;:::-;-1:-1:-1;;;;;34835:22:0;::::1;34827:73;;;::::0;-1:-1:-1;;;34827:73:0;;6519:2:1;34827:73:0::1;::::0;::::1;6501:21:1::0;6558:2;6538:18;;;6531:30;6597:34;6577:18;;;6570:62;-1:-1:-1;;;6648:18:1;;;6641:36;6694:19;;34827:73:0::1;6317:402:1::0;34827:73:0::1;34911:28;34930:8;34911:18;:28::i;29455:380::-:0;-1:-1:-1;;;;;29591:19:0;;29583:68;;;;-1:-1:-1;;;29583:68:0;;6926:2:1;29583:68:0;;;6908:21:1;6965:2;6945:18;;;6938:30;7004:34;6984:18;;;6977:62;-1:-1:-1;;;7055:18:1;;;7048:34;7099:19;;29583:68:0;6724:400:1;29583:68:0;-1:-1:-1;;;;;29670:21:0;;29662:68;;;;-1:-1:-1;;;29662:68:0;;7331:2:1;29662:68:0;;;7313:21:1;7370:2;7350:18;;;7343:30;7409:34;7389:18;;;7382:62;-1:-1:-1;;;7460:18:1;;;7453:32;7502:19;;29662:68:0;7129:398:1;29662:68:0;-1:-1:-1;;;;;29743:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;29795:32;;1342:25:1;;;29795:32:0;;1315:18:1;29795:32:0;;;;;;;;29455:380;;;:::o;30126:453::-;30261:24;30288:25;30298:5;30305:7;30288:9;:25::i;:::-;30261:52;;-1:-1:-1;;30328:16:0;:37;30324:248;;30410:6;30390:16;:26;;30382:68;;;;-1:-1:-1;;;30382:68:0;;7734:2:1;30382:68:0;;;7716:21:1;7773:2;7753:18;;;7746:30;7812:31;7792:18;;;7785:59;7861:18;;30382:68:0;7532:353:1;30382:68:0;30494:51;30503:5;30510:7;30538:6;30519:16;:25;30494:8;:51::i;:::-;30250:329;30126:453;;;:::o;26736:671::-;-1:-1:-1;;;;;26867:18:0;;26859:68;;;;-1:-1:-1;;;26859:68:0;;8092:2:1;26859:68:0;;;8074:21:1;8131:2;8111:18;;;8104:30;8170:34;8150:18;;;8143:62;-1:-1:-1;;;8221:18:1;;;8214:35;8266:19;;26859:68:0;7890:401:1;26859:68:0;-1:-1:-1;;;;;26946:16:0;;26938:64;;;;-1:-1:-1;;;26938:64:0;;8498:2:1;26938:64:0;;;8480:21:1;8537:2;8517:18;;;8510:30;8576:34;8556:18;;;8549:62;-1:-1:-1;;;8627:18:1;;;8620:33;8670:19;;26938:64:0;8296:399:1;26938:64:0;-1:-1:-1;;;;;27088:15:0;;27066:19;27088:15;;;:9;:15;;;;;;27122:21;;;;27114:72;;;;-1:-1:-1;;;27114:72:0;;8902:2:1;27114:72:0;;;8884:21:1;8941:2;8921:18;;;8914:30;8980:34;8960:18;;;8953:62;-1:-1:-1;;;9031:18:1;;;9024:36;9077:19;;27114:72:0;8700:402:1;27114:72:0;-1:-1:-1;;;;;27222:15:0;;;;;;;:9;:15;;;;;;27240:20;;;27222:38;;27282:13;;;;;;;;:23;;27254:6;;27222:15;27282:23;;27254:6;;27282:23;:::i;:::-;;;;;;;;27338:2;-1:-1:-1;;;;;27323:26:0;27332:4;-1:-1:-1;;;;;27323:26:0;-1:-1:-1;;;;;;;;;;;27342:6:0;27323:26;;;;1342:25:1;;1330:2;1315:18;;1196:177;27323:26:0;;;;;;;;27362:37;28426:591;34005:132;18335:10;34069:7;:5;:7::i;:::-;-1:-1:-1;;;;;34069:23:0;;34061:68;;;;-1:-1:-1;;;34061:68:0;;9309:2:1;34061:68:0;;;9291:21:1;;;9328:18;;;9321:30;9387:34;9367:18;;;9360:62;9439:18;;34061:68:0;9107:356:1;27694:399:0;-1:-1:-1;;;;;27778:21:0;;27770:65;;;;-1:-1:-1;;;27770:65:0;;9670:2:1;27770:65:0;;;9652:21:1;9709:2;9689:18;;;9682:30;9748:33;9728:18;;;9721:61;9799:18;;27770:65:0;9468:355:1;27770:65:0;27926:6;27910:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;27943:18:0;;;;;;:9;:18;;;;;:28;;27965:6;;27943:18;:28;;27965:6;;27943:28;:::i;:::-;;;;-1:-1:-1;;27987:37:0;;1342:25:1;;;-1:-1:-1;;;;;27987:37:0;;;28004:1;;-1:-1:-1;;;;;;;;;;;27987:37:0;1330:2:1;1315:18;27987:37:0;;;;;;;36067:173;;:::o;28426:591::-;-1:-1:-1;;;;;28510:21:0;;28502:67;;;;-1:-1:-1;;;28502:67:0;;10030:2:1;28502:67:0;;;10012:21:1;10069:2;10049:18;;;10042:30;10108:34;10088:18;;;10081:62;-1:-1:-1;;;10159:18:1;;;10152:31;10200:19;;28502:67:0;9828:397:1;28502:67:0;-1:-1:-1;;;;;28669:18:0;;28644:22;28669:18;;;:9;:18;;;;;;28706:24;;;;28698:71;;;;-1:-1:-1;;;28698:71:0;;10432:2:1;28698:71:0;;;10414:21:1;10471:2;10451:18;;;10444:30;10510:34;10490:18;;;10483:62;-1:-1:-1;;;10561:18:1;;;10554:32;10603:19;;28698:71:0;10230:398:1;28698:71:0;-1:-1:-1;;;;;28805:18:0;;;;;;:9;:18;;;;;28826:23;;;28805:44;;28871:12;:22;;28843:6;;28805:18;28871:22;;28843:6;;28871:22;:::i;:::-;;;;-1:-1:-1;;28911:37:0;;1342:25:1;;;28937:1:0;;-1:-1:-1;;;;;28911:37:0;;;-1:-1:-1;;;;;;;;;;;28911:37:0;1330:2:1;1315:18;28911:37:0;1196:177:1;28961:48:0;28491:526;28426:591;;:::o;35107:191::-;35200:6;;;-1:-1:-1;;;;;35217:17:0;;;-1:-1:-1;;;;;;35217:17:0;;;;;;;35250:40;;35200:6;;;35217:17;35200:6;;35250:40;;35181:16;;35250:40;35170:128;35107:191;:::o;20864:149::-;16546:13;;;;;;;16538:69;;;;-1:-1:-1;;;16538:69:0;;;;;;;:::i;:::-;20967:38:::1;20990:5;20997:7;20967:22;:38::i;33383:97::-:0;16546:13;;;;;;;16538:69;;;;-1:-1:-1;;;16538:69:0;;;;;;;:::i;:::-;33446:26:::1;:24;:26::i;21021:162::-:0;16546:13;;;;;;;16538:69;;;;-1:-1:-1;;;16538:69:0;;;;;;;:::i;:::-;21134:5:::1;:13;21142:5:::0;21134;:13:::1;:::i;:::-;-1:-1:-1::0;21158:7:0::1;:17;21168:7:::0;21158;:17:::1;:::i;33488:113::-:0;16546:13;;;;;;;16538:69;;;;-1:-1:-1;;;16538:69:0;;;;;;;:::i;:::-;33561:32:::1;18335:10:::0;33561:18:::1;:32::i;14:548:1:-:0;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:180::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;-1:-1:-1;2051:23:1;;1900:180;-1:-1:-1;1900:180:1:o;2085:186::-;2144:6;2197:2;2185:9;2176:7;2172:23;2168:32;2165:52;;;2213:1;2210;2203:12;2165:52;2236:29;2255:9;2236:29;:::i;:::-;2226:39;2085:186;-1:-1:-1;;;2085:186:1:o;2484:127::-;2545:10;2540:3;2536:20;2533:1;2526:31;2576:4;2573:1;2566:15;2600:4;2597:1;2590:15;2616:719;2659:5;2712:3;2705:4;2697:6;2693:17;2689:27;2679:55;;2730:1;2727;2720:12;2679:55;2753:20;;-1:-1:-1;;;;;2822:10:1;;;2819:36;;;2835:18;;:::i;:::-;2910:2;2904:9;2878:2;2964:13;;-1:-1:-1;;2960:22:1;;;2984:2;2956:31;2952:40;2940:53;;;3008:18;;;3028:22;;;3005:46;3002:72;;;3054:18;;:::i;:::-;3094:10;3090:2;3083:22;3129:2;3121:6;3114:18;3175:3;3168:4;3163:2;3155:6;3151:15;3147:26;3144:35;3141:55;;;3192:1;3189;3182:12;3141:55;3256:2;3249:4;3241:6;3237:17;3230:4;3222:6;3218:17;3205:54;3303:1;3296:4;3291:2;3283:6;3279:15;3275:26;3268:37;3323:6;3314:15;;;;;;2616:719;;;;:::o;3340:686::-;3446:6;3454;3462;3470;3523:3;3511:9;3502:7;3498:23;3494:33;3491:53;;;3540:1;3537;3530:12;3491:53;3567:23;;-1:-1:-1;;;;;3639:14:1;;;3636:34;;;3666:1;3663;3656:12;3636:34;3689:50;3731:7;3722:6;3711:9;3707:22;3689:50;:::i;:::-;3679:60;;3792:2;3781:9;3777:18;3764:32;3748:48;;3821:2;3811:8;3808:16;3805:36;;;3837:1;3834;3827:12;3805:36;;3860:52;3904:7;3893:8;3882:9;3878:24;3860:52;:::i;:::-;3850:62;;;3959:2;3948:9;3944:18;3931:32;3921:42;;3982:38;4016:2;4005:9;4001:18;3982:38;:::i;:::-;3972:48;;3340:686;;;;;;;:::o;4031:260::-;4099:6;4107;4160:2;4148:9;4139:7;4135:23;4131:32;4128:52;;;4176:1;4173;4166:12;4128:52;4199:29;4218:9;4199:29;:::i;:::-;4189:39;;4247:38;4281:2;4270:9;4266:18;4247:38;:::i;:::-;4237:48;;4031:260;;;;;:::o;4296:380::-;4375:1;4371:12;;;;4418;;;4439:61;;4493:4;4485:6;4481:17;4471:27;;4439:61;4546:2;4538:6;4535:14;4515:18;4512:38;4509:161;;4592:10;4587:3;4583:20;4580:1;4573:31;4627:4;4624:1;4617:15;4655:4;4652:1;4645:15;4509:161;;4296:380;;;:::o;4681:127::-;4742:10;4737:3;4733:20;4730:1;4723:31;4773:4;4770:1;4763:15;4797:4;4794:1;4787:15;4813:125;4878:9;;;4899:10;;;4896:36;;;4912:18;;:::i;10633:128::-;10700:9;;;10721:11;;;10718:37;;;10735:18;;:::i;10766:407::-;10968:2;10950:21;;;11007:2;10987:18;;;10980:30;11046:34;11041:2;11026:18;;11019:62;-1:-1:-1;;;11112:2:1;11097:18;;11090:41;11163:3;11148:19;;10766:407::o;11304:518::-;11406:2;11401:3;11398:11;11395:421;;;11442:5;11439:1;11432:16;11486:4;11483:1;11473:18;11556:2;11544:10;11540:19;11537:1;11533:27;11527:4;11523:38;11592:4;11580:10;11577:20;11574:47;;;-1:-1:-1;11615:4:1;11574:47;11670:2;11665:3;11661:12;11658:1;11654:20;11648:4;11644:31;11634:41;;11725:81;11743:2;11736:5;11733:13;11725:81;;;11802:1;11788:16;;11769:1;11758:13;11725:81;;11998:1345;12118:10;;-1:-1:-1;;;;;12140:30:1;;12137:56;;;12173:18;;:::i;:::-;12202:97;12292:6;12252:38;12284:4;12278:11;12252:38;:::i;:::-;12246:4;12202:97;:::i;:::-;12354:4;;12411:2;12400:14;;12428:1;12423:663;;;;13130:1;13147:6;13144:89;;;-1:-1:-1;13199:19:1;;;13193:26;13144:89;-1:-1:-1;;11955:1:1;11951:11;;;11947:24;11943:29;11933:40;11979:1;11975:11;;;11930:57;13246:81;;12393:944;;12423:663;11251:1;11244:14;;;11288:4;11275:18;;-1:-1:-1;;12459:20:1;;;12577:236;12591:7;12588:1;12585:14;12577:236;;;12680:19;;;12674:26;12659:42;;12772:27;;;;12740:1;12728:14;;;;12607:19;;12577:236;;;12581:3;12841:6;12832:7;12829:19;12826:201;;;12902:19;;;12896:26;-1:-1:-1;;12985:1:1;12981:14;;;12997:3;12977:24;12973:37;12969:42;12954:58;12939:74;;12826:201;;;13073:1;13064:6;13061:1;13057:14;13053:22;13047:4;13040:36;12393:944;;;;;11998:1345;;:::o
Swarm Source
ipfs://7368752420f6d80d6f4eefc8a73627657e2a2b7bbc4c8799581e8b21c761f2b8
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.