Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 680 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 16767261 | 511 days ago | IN | 0 ETH | 0.00083922 | ||||
Mint | 16766808 | 511 days ago | IN | 0 ETH | 0.00153017 | ||||
Mint | 16766808 | 511 days ago | IN | 0 ETH | 0.00153017 | ||||
Mint | 16766808 | 511 days ago | IN | 0 ETH | 0.00153017 | ||||
Mint | 16766808 | 511 days ago | IN | 0 ETH | 0.00153017 | ||||
Mint | 16766808 | 511 days ago | IN | 0 ETH | 0.0034953 | ||||
Mint | 15970197 | 622 days ago | IN | 0 ETH | 0.00182303 | ||||
Mint | 15970183 | 622 days ago | IN | 0 ETH | 0.00213414 | ||||
Mint | 15866828 | 637 days ago | IN | 0 ETH | 0.00065478 | ||||
Mint | 15866400 | 637 days ago | IN | 0 ETH | 0.00076733 | ||||
Mint | 15775009 | 649 days ago | IN | 0 ETH | 0.00492914 | ||||
Mint | 15690968 | 661 days ago | IN | 0 ETH | 0.00208021 | ||||
Mint | 15644708 | 668 days ago | IN | 0 ETH | 0.00122699 | ||||
Mint | 15563720 | 679 days ago | IN | 0 ETH | 0.00112944 | ||||
Mint | 15562451 | 679 days ago | IN | 0 ETH | 0.00310941 | ||||
Mint | 15297273 | 721 days ago | IN | 0 ETH | 0.00166646 | ||||
Mint | 15287365 | 723 days ago | IN | 0 ETH | 0.00099378 | ||||
Mint | 15287193 | 723 days ago | IN | 0 ETH | 0.00084757 | ||||
Mint | 15233624 | 731 days ago | IN | 0 ETH | 0.00302614 | ||||
Mint | 15118067 | 749 days ago | IN | 0 ETH | 0.00115359 | ||||
Mint | 15113357 | 750 days ago | IN | 0 ETH | 0.00366641 | ||||
Mint | 15105883 | 751 days ago | IN | 0 ETH | 0.00412306 | ||||
Mint | 15105875 | 751 days ago | IN | 0 ETH | 0.00344925 | ||||
Mint | 15087048 | 754 days ago | IN | 0 ETH | 0.00219852 | ||||
Mint | 15086606 | 754 days ago | IN | 0 ETH | 0.00487481 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
FeudalzElvezOffchainSales
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface IFeudalzElvez { function mint(uint quantity, address receiver) external; } contract FeudalzElvezOffchainSales is Ownable, EIP712 { IFeudalzElvez elvez = IFeudalzElvez(0x894e37f02249B922b14561f234D228410cf754E2); bool public isSalesActive = true; mapping (address => uint) public accountToMintedTokens; address _signerAddress; constructor() EIP712("ELVEZ", "1.0.0") { _signerAddress = 0x42bC5465F5b5D4BAa633550e205A1d7D81e6cACf; } function mint(uint quantity, uint maxMints, bytes calldata signature) external { require(isSalesActive, "sale is not active"); require(recoverAddress(msg.sender, maxMints, signature) == _signerAddress, "invalid signature"); require(quantity + accountToMintedTokens[msg.sender] <= maxMints, "quantity exceeds allowance"); elvez.mint(quantity, msg.sender); accountToMintedTokens[msg.sender] += quantity; } function toggleSales() external onlyOwner { isSalesActive = !isSalesActive; } function _hash(address account, uint maxMints) internal view returns (bytes32) { return _hashTypedDataV4( keccak256( abi.encode( keccak256("Elvez(uint256 maxMints,address account)"), maxMints, account ) ) ); } function recoverAddress(address account, uint maxMints, bytes calldata signature) public view returns(address) { return ECDSA.recover(_hash(account, maxMints), signature); } function setSignerAddress(address signerAddress) external onlyOwner { _signerAddress = signerAddress; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountToMintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSalesActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610140604052600180546001600160a81b0319167401894e37f02249b922b14561f234d228410cf754e217905534801561003857600080fd5b506040518060400160405280600581526020016422a62b22ad60d91b815250604051806040016040528060058152602001640312e302e360dc1b81525061008b61008661014b60201b60201c565b61014f565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060601b60c052610120525050600380546001600160a01b0319167342bc5465f5b5d4baa633550e205a1d7d81e6cacf1790555061019f9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60805160a05160c05160601c60e0516101005161012051610c446101f160003960006108cc0152600061091b015260006108f60152600061084f01526000610879015260006108a30152610c446000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b146100f8578063a43279e614610109578063daa81cdd14610137578063dbd30ae01461015b578063f2fde38b1461016357600080fd5b8063046dc1661461009857806308dc9f42146100ad5780637055831a146100c0578063715018a6146100f0575b600080fd5b6100ab6100a6366004610aed565b610176565b005b6100ab6100bb366004610b62565b6101cb565b6100d36100ce366004610b08565b610374565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ab6103c8565b6000546001600160a01b03166100d3565b610129610117366004610aed565b60026020526000908152604090205481565b6040519081526020016100e7565b60015461014b90600160a01b900460ff1681565b60405190151581526020016100e7565b6100ab6103fe565b6100ab610171366004610aed565b610449565b6000546001600160a01b031633146101a95760405162461bcd60e51b81526004016101a090610b9d565b60405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600154600160a01b900460ff166102195760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b60448201526064016101a0565b6003546001600160a01b031661023133858585610374565b6001600160a01b03161461027b5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b60448201526064016101a0565b3360009081526002602052604090205483906102979086610bd2565b11156102e55760405162461bcd60e51b815260206004820152601a60248201527f7175616e74697479206578636565647320616c6c6f77616e636500000000000060448201526064016101a0565b6001546040516394bf804d60e01b8152600481018690523360248201526001600160a01b03909116906394bf804d90604401600060405180830381600087803b15801561033157600080fd5b505af1158015610345573d6000803e3d6000fd5b50503360009081526002602052604081208054889450909250610369908490610bd2565b909155505050505050565b60006103bf61038386866104e4565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061054f92505050565b95945050505050565b6000546001600160a01b031633146103f25760405162461bcd60e51b81526004016101a090610b9d565b6103fc6000610573565b565b6000546001600160a01b031633146104285760405162461bcd60e51b81526004016101a090610b9d565b6001805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031633146104735760405162461bcd60e51b81526004016101a090610b9d565b6001600160a01b0381166104d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101a0565b6104e181610573565b50565b604080517f7d3cb7ead65f0aa15c4a8729400a67eac364f587847baec2e8f1f0c3069b362760208201529081018290526001600160a01b038316606082015260009061054890608001604051602081830303815290604052805190602001206105c3565b9392505050565b600080600061055e8585610617565b9150915061056b81610687565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006106116105d0610842565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b60008082516041141561064e5760208301516040840151606085015160001a61064287828585610969565b94509450505050610680565b825160401415610678576020830151604084015161066d868383610a56565b935093505050610680565b506000905060025b9250929050565b600081600481111561069b5761069b610bf8565b14156106a45750565b60018160048111156106b8576106b8610bf8565b14156107065760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016101a0565b600281600481111561071a5761071a610bf8565b14156107685760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016101a0565b600381600481111561077c5761077c610bf8565b14156107d55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016101a0565b60048160048111156107e9576107e9610bf8565b14156104e15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016101a0565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561089b57507f000000000000000000000000000000000000000000000000000000000000000046145b156108c557507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156109a05750600090506003610a4d565b8460ff16601b141580156109b857508460ff16601c14155b156109c95750600090506004610a4d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610a1d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610a4657600060019250925050610a4d565b9150600090505b94509492505050565b6000806001600160ff1b03831681610a7360ff86901c601b610bd2565b9050610a8187828885610969565b935093505050935093915050565b80356001600160a01b0381168114610aa657600080fd5b919050565b60008083601f840112610abd57600080fd5b50813567ffffffffffffffff811115610ad557600080fd5b60208301915083602082850101111561068057600080fd5b600060208284031215610aff57600080fd5b61054882610a8f565b60008060008060608587031215610b1e57600080fd5b610b2785610a8f565b935060208501359250604085013567ffffffffffffffff811115610b4a57600080fd5b610b5687828801610aab565b95989497509550505050565b60008060008060608587031215610b7857600080fd5b8435935060208501359250604085013567ffffffffffffffff811115610b4a57600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610bf357634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a0e059762ee1e260dc6e8bc78719e656400cc6177c31af246033c660239a135d64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638da5cb5b116100665780638da5cb5b146100f8578063a43279e614610109578063daa81cdd14610137578063dbd30ae01461015b578063f2fde38b1461016357600080fd5b8063046dc1661461009857806308dc9f42146100ad5780637055831a146100c0578063715018a6146100f0575b600080fd5b6100ab6100a6366004610aed565b610176565b005b6100ab6100bb366004610b62565b6101cb565b6100d36100ce366004610b08565b610374565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ab6103c8565b6000546001600160a01b03166100d3565b610129610117366004610aed565b60026020526000908152604090205481565b6040519081526020016100e7565b60015461014b90600160a01b900460ff1681565b60405190151581526020016100e7565b6100ab6103fe565b6100ab610171366004610aed565b610449565b6000546001600160a01b031633146101a95760405162461bcd60e51b81526004016101a090610b9d565b60405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600154600160a01b900460ff166102195760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b60448201526064016101a0565b6003546001600160a01b031661023133858585610374565b6001600160a01b03161461027b5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b60448201526064016101a0565b3360009081526002602052604090205483906102979086610bd2565b11156102e55760405162461bcd60e51b815260206004820152601a60248201527f7175616e74697479206578636565647320616c6c6f77616e636500000000000060448201526064016101a0565b6001546040516394bf804d60e01b8152600481018690523360248201526001600160a01b03909116906394bf804d90604401600060405180830381600087803b15801561033157600080fd5b505af1158015610345573d6000803e3d6000fd5b50503360009081526002602052604081208054889450909250610369908490610bd2565b909155505050505050565b60006103bf61038386866104e4565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061054f92505050565b95945050505050565b6000546001600160a01b031633146103f25760405162461bcd60e51b81526004016101a090610b9d565b6103fc6000610573565b565b6000546001600160a01b031633146104285760405162461bcd60e51b81526004016101a090610b9d565b6001805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031633146104735760405162461bcd60e51b81526004016101a090610b9d565b6001600160a01b0381166104d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101a0565b6104e181610573565b50565b604080517f7d3cb7ead65f0aa15c4a8729400a67eac364f587847baec2e8f1f0c3069b362760208201529081018290526001600160a01b038316606082015260009061054890608001604051602081830303815290604052805190602001206105c3565b9392505050565b600080600061055e8585610617565b9150915061056b81610687565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006106116105d0610842565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b60008082516041141561064e5760208301516040840151606085015160001a61064287828585610969565b94509450505050610680565b825160401415610678576020830151604084015161066d868383610a56565b935093505050610680565b506000905060025b9250929050565b600081600481111561069b5761069b610bf8565b14156106a45750565b60018160048111156106b8576106b8610bf8565b14156107065760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016101a0565b600281600481111561071a5761071a610bf8565b14156107685760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016101a0565b600381600481111561077c5761077c610bf8565b14156107d55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016101a0565b60048160048111156107e9576107e9610bf8565b14156104e15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016101a0565b6000306001600160a01b037f00000000000000000000000057dde565952382f3ada01b650dca73d78962eade1614801561089b57507f000000000000000000000000000000000000000000000000000000000000000146145b156108c557507f76a2d5487a5babb7780cd568535517a8cc96880a437f9ff3482141a2df4777d790565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f1ac8fbe66697c66ea3511b2dcc9f289c6a8b5fcbf1e2a2b28f24f447a929e3e6828401527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156109a05750600090506003610a4d565b8460ff16601b141580156109b857508460ff16601c14155b156109c95750600090506004610a4d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610a1d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610a4657600060019250925050610a4d565b9150600090505b94509492505050565b6000806001600160ff1b03831681610a7360ff86901c601b610bd2565b9050610a8187828885610969565b935093505050935093915050565b80356001600160a01b0381168114610aa657600080fd5b919050565b60008083601f840112610abd57600080fd5b50813567ffffffffffffffff811115610ad557600080fd5b60208301915083602082850101111561068057600080fd5b600060208284031215610aff57600080fd5b61054882610a8f565b60008060008060608587031215610b1e57600080fd5b610b2785610a8f565b935060208501359250604085013567ffffffffffffffff811115610b4a57600080fd5b610b5687828801610aab565b95989497509550505050565b60008060008060608587031215610b7857600080fd5b8435935060208501359250604085013567ffffffffffffffff811115610b4a57600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610bf357634e487b7160e01b600052601160045260246000fd5b500190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220a0e059762ee1e260dc6e8bc78719e656400cc6177c31af246033c660239a135d64736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.