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 494 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Play | 14381399 | 869 days ago | IN | 0 ETH | 0.00139711 | ||||
Play | 14381229 | 869 days ago | IN | 0 ETH | 0.00274108 | ||||
Play | 14381225 | 869 days ago | IN | 0 ETH | 0.00287125 | ||||
Play | 14381215 | 869 days ago | IN | 0 ETH | 0.00278132 | ||||
Play | 14381211 | 869 days ago | IN | 0 ETH | 0.00303048 | ||||
Play | 14381072 | 869 days ago | IN | 0 ETH | 0.00152292 | ||||
Play | 14380855 | 869 days ago | IN | 0 ETH | 0.00202578 | ||||
Play | 14380851 | 869 days ago | IN | 0 ETH | 0.00490796 | ||||
Play | 14380851 | 869 days ago | IN | 0 ETH | 0.00406053 | ||||
Play | 14380847 | 869 days ago | IN | 0 ETH | 0.00454221 | ||||
Play | 14380845 | 869 days ago | IN | 0 ETH | 0.00336552 | ||||
Play | 14380843 | 869 days ago | IN | 0 ETH | 0.00287004 | ||||
Play | 14380839 | 869 days ago | IN | 0 ETH | 0.00301887 | ||||
Play | 14380839 | 869 days ago | IN | 0 ETH | 0.00384305 | ||||
Play | 14380839 | 869 days ago | IN | 0 ETH | 0.00301957 | ||||
Play | 14380838 | 869 days ago | IN | 0 ETH | 0.00271099 | ||||
Play | 14380837 | 869 days ago | IN | 0 ETH | 0.00278371 | ||||
Play | 14380836 | 869 days ago | IN | 0 ETH | 0.00287648 | ||||
Play | 14380833 | 869 days ago | IN | 0 ETH | 0.00315595 | ||||
Play | 14380825 | 869 days ago | IN | 0 ETH | 0.00273963 | ||||
Play | 14380819 | 869 days ago | IN | 0 ETH | 0.0024745 | ||||
Play | 14380811 | 869 days ago | IN | 0 ETH | 0.00219278 | ||||
Play | 14380805 | 869 days ago | IN | 0 ETH | 0.00232598 | ||||
Play | 14380790 | 869 days ago | IN | 0 ETH | 0.00185665 | ||||
Play | 14380790 | 869 days ago | IN | 0 ETH | 0.00199546 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MTGGame
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; interface IArcada { function balanceOf(address account) external view returns (uint256); function transferFrom( address from, address to, uint256 amount ) external; } contract MTGGame is Ownable { using ECDSA for bytes32; using MerkleProof for bytes32[]; IArcada public Arcada; address private signerAddress = 0x8fD406D0B1a95D52C0E2D85dE41e11F5FCE94373; address public ArcadaAddress = 0x22d811658Dc32293fbB5680EC5df85Cc2B605dC7; uint256 public totalChancesToWin = 100; bytes32 playerSnapshotRoot; mapping(address => uint) public playingRecords; event GameWon(address indexed player); event GameLost(address indexed player); constructor() { Arcada = IArcada(ArcadaAddress); } function getSignerAddress(uint256 seed, bytes calldata signature) private pure returns (address) { bytes32 messagehash = keccak256(abi.encodePacked(seed)); return messagehash.toEthSignedMessageHash().recover(signature); } function generateRandom(uint256 seed) private view returns (uint256) { return SafeMath.mod( uint256( keccak256( abi.encodePacked( block.difficulty, tx.origin, blockhash(block.number - 1), block.timestamp, seed ) ) ), 5 ) + 1; } function setPlayerSnapshotRoot(bytes32 root) external onlyOwner { playerSnapshotRoot = root; } function setSignerAddress(address signer) external onlyOwner { signerAddress = signer; } function setArcadaContract(address operator) external onlyOwner { Arcada = IArcada(operator); } function setTotalChancesToWin(uint number) external onlyOwner { totalChancesToWin = number; } function isAllowedToPlay(bytes32[] memory proof, address player, uint numberOfMaxWins) public view returns (bool) { return proof.verify(playerSnapshotRoot, keccak256(abi.encodePacked(player, numberOfMaxWins))); } function play(uint256 seed, bytes calldata signature, uint256 numberOfMaxWins, bytes32[] memory proof) external returns (bool) { require(signerAddress == getSignerAddress(seed, signature), "Invalid signature."); require(Arcada.balanceOf(_msgSender()) >= 400 ether, "Not enough balance."); require(totalChancesToWin > 0, "No more games."); require(isAllowedToPlay(proof, _msgSender(), numberOfMaxWins), "Not included in the game."); require(playingRecords[_msgSender()] < numberOfMaxWins, "Not included in the game."); // burn the token Arcada.transferFrom( _msgSender(), address(0x000000000000000000000000000000000000dEaD), 400 ether ); if (1 == generateRandom(seed)) { emit GameWon(_msgSender()); playingRecords[_msgSender()]++; totalChancesToWin--; return true; } emit GameLost(_msgSender()); return false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 (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/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); } }
// 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; } }
{ "optimizer": { "enabled": false, "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":"player","type":"address"}],"name":"GameLost","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"}],"name":"GameWon","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"},{"inputs":[],"name":"Arcada","outputs":[{"internalType":"contract IArcada","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ArcadaAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"player","type":"address"},{"internalType":"uint256","name":"numberOfMaxWins","type":"uint256"}],"name":"isAllowedToPlay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfMaxWins","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"play","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"playingRecords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"setArcadaContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPlayerSnapshotRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"setTotalChancesToWin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalChancesToWin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052738fd406d0b1a95d52c0e2d85de41e11f5fce94373600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507322d811658dc32293fbb5680ec5df85cc2b605dc7600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060646004553480156100bf57600080fd5b506100dc6100d161014460201b60201c565b61014c60201b60201c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610210565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61214580620002206000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063a15fd6d21161008c578063e757087311610066578063e757087314610202578063f2fde38b1461021e578063fbfe1bb41461023a578063fde29d6214610256576100cf565b8063a15fd6d214610196578063c17ab704146101b4578063c3d1d7a2146101e4576100cf565b8063046dc166146100d45780630d4917af146100f05780634d058811146101205780635ffd3aa014610150578063715018a61461016e5780638da5cb5b14610178575b600080fd5b6100ee60048036038101906100e991906112db565b610272565b005b61010a600480360381019061010591906114cd565b610332565b6040516101179190611557565b60405180910390f35b61013a600480360381019061013591906115cd565b61037c565b6040516101479190611557565b60405180910390f35b6101586107f7565b6040516101659190611680565b60405180910390f35b6101766107fd565b005b610180610885565b60405161018d91906116aa565b60405180910390f35b61019e6108ae565b6040516101ab91906116aa565b60405180910390f35b6101ce60048036038101906101c991906112db565b6108d4565b6040516101db9190611680565b60405180910390f35b6101ec6108ec565b6040516101f99190611724565b60405180910390f35b61021c600480360381019061021791906112db565b610912565b005b610238600480360381019061023391906112db565b6109d2565b005b610254600480360381019061024f919061173f565b610aca565b005b610270600480360381019061026b919061176c565b610b50565b005b61027a610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610298610885565b73ffffffffffffffffffffffffffffffffffffffff16146102ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e5906117f6565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610373600554848460405160200161034d92919061187f565b6040516020818303038152906040528051906020012086610bde9092919063ffffffff16565b90509392505050565b6000610389868686610bf5565b73ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040f906118f7565b60405180910390fd5b6815af1d78b58c400000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231610468610bd6565b6040518263ffffffff1660e01b815260040161048491906116aa565b602060405180830381865afa1580156104a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c5919061192c565b1015610506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fd906119a5565b60405180910390fd5b60006004541161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054290611a11565b60405180910390fd5b61055d82610557610bd6565b85610332565b61059c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059390611a7d565b60405180910390fd5b82600660006105a9610bd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061b90611a7d565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61066a610bd6565b61dead6815af1d78b58c4000006040518463ffffffff1660e01b815260040161069593929190611ad8565b600060405180830381600087803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b505050506106d086610c8a565b6001141561079f576106e0610bd6565b73ffffffffffffffffffffffffffffffffffffffff167f78b3193cf31372e77b1f3045481681f86e18e346de12ae7f1ecc322ff0adf1a460405160405180910390a26006600061072e610bd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061077990611b3e565b91905055506004600081548092919061079190611b87565b9190505550600190506107ee565b6107a7610bd6565b73ffffffffffffffffffffffffffffffffffffffff167fe52eca3d39fb231ad76fbb2384560be97f13bf0d9b9739a6d31c93acd38c4d9460405160405180910390a2600090505b95945050505050565b60045481565b610805610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610823610885565b73ffffffffffffffffffffffffffffffffffffffff1614610879576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610870906117f6565b60405180910390fd5b6108836000610ce8565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60066020528060005260406000206000915090505481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61091a610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610938610885565b73ffffffffffffffffffffffffffffffffffffffff161461098e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610985906117f6565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109da610bd6565b73ffffffffffffffffffffffffffffffffffffffff166109f8610885565b73ffffffffffffffffffffffffffffffffffffffff1614610a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a45906117f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab590611c23565b60405180910390fd5b610ac781610ce8565b50565b610ad2610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610af0610885565b73ffffffffffffffffffffffffffffffffffffffff1614610b46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3d906117f6565b60405180910390fd5b8060058190555050565b610b58610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610b76610885565b73ffffffffffffffffffffffffffffffffffffffff1614610bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc3906117f6565b60405180910390fd5b8060048190555050565b600033905090565b600082610beb8584610dac565b1490509392505050565b60008084604051602001610c099190611c43565b604051602081830303815290604052805190602001209050610c8084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610c7283610e21565b610e5190919063ffffffff16565b9150509392505050565b60006001610cd74432600143610ca09190611c5e565b404287604051602001610cb7959493929190611cb3565b6040516020818303038152906040528051906020012060001c6005610e78565b610ce19190611d12565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b8451811015610e16576000858281518110610dd357610dd2611d68565b5b60200260200101519050808311610df557610dee8382610e8e565b9250610e02565b610dff8184610e8e565b92505b508080610e0e90611b3e565b915050610db5565b508091505092915050565b600081604051602001610e349190611dee565b604051602081830303815290604052805190602001209050919050565b6000806000610e608585610ea5565b91509150610e6d81610f28565b819250505092915050565b60008183610e869190611e43565b905092915050565b600082600052816020526040600020905092915050565b600080604183511415610ee75760008060006020860151925060408601519150606086015160001a9050610edb878285856110fd565b94509450505050610f21565b604083511415610f18576000806020850151915060408501519050610f0d86838361120a565b935093505050610f21565b60006002915091505b9250929050565b60006004811115610f3c57610f3b611e74565b5b816004811115610f4f57610f4e611e74565b5b1415610f5a576110fa565b60016004811115610f6e57610f6d611e74565b5b816004811115610f8157610f80611e74565b5b1415610fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb990611eef565b60405180910390fd5b60026004811115610fd657610fd5611e74565b5b816004811115610fe957610fe8611e74565b5b141561102a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102190611f5b565b60405180910390fd5b6003600481111561103e5761103d611e74565b5b81600481111561105157611050611e74565b5b1415611092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108990611fed565b60405180910390fd5b6004808111156110a5576110a4611e74565b5b8160048111156110b8576110b7611e74565b5b14156110f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f09061207f565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611138576000600391509150611201565b601b8560ff16141580156111505750601c8560ff1614155b15611162576000600491509150611201565b60006001878787876040516000815260200160405260405161118794939291906120ca565b6020604051602081039080840390855afa1580156111a9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111f857600060019250925050611201565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61124d9190611d12565b905061125b878288856110fd565b935093505050935093915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112a88261127d565b9050919050565b6112b88161129d565b81146112c357600080fd5b50565b6000813590506112d5816112af565b92915050565b6000602082840312156112f1576112f0611273565b5b60006112ff848285016112c6565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6113568261130d565b810181811067ffffffffffffffff821117156113755761137461131e565b5b80604052505050565b6000611388611269565b9050611394828261134d565b919050565b600067ffffffffffffffff8211156113b4576113b361131e565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6113dd816113ca565b81146113e857600080fd5b50565b6000813590506113fa816113d4565b92915050565b600061141361140e84611399565b61137e565b90508083825260208201905060208402830185811115611436576114356113c5565b5b835b8181101561145f578061144b88826113eb565b845260208401935050602081019050611438565b5050509392505050565b600082601f83011261147e5761147d611308565b5b813561148e848260208601611400565b91505092915050565b6000819050919050565b6114aa81611497565b81146114b557600080fd5b50565b6000813590506114c7816114a1565b92915050565b6000806000606084860312156114e6576114e5611273565b5b600084013567ffffffffffffffff81111561150457611503611278565b5b61151086828701611469565b9350506020611521868287016112c6565b9250506040611532868287016114b8565b9150509250925092565b60008115159050919050565b6115518161153c565b82525050565b600060208201905061156c6000830184611548565b92915050565b600080fd5b60008083601f84011261158d5761158c611308565b5b8235905067ffffffffffffffff8111156115aa576115a9611572565b5b6020830191508360018202830111156115c6576115c56113c5565b5b9250929050565b6000806000806000608086880312156115e9576115e8611273565b5b60006115f7888289016114b8565b955050602086013567ffffffffffffffff81111561161857611617611278565b5b61162488828901611577565b94509450506040611637888289016114b8565b925050606086013567ffffffffffffffff81111561165857611657611278565b5b61166488828901611469565b9150509295509295909350565b61167a81611497565b82525050565b60006020820190506116956000830184611671565b92915050565b6116a48161129d565b82525050565b60006020820190506116bf600083018461169b565b92915050565b6000819050919050565b60006116ea6116e56116e08461127d565b6116c5565b61127d565b9050919050565b60006116fc826116cf565b9050919050565b600061170e826116f1565b9050919050565b61171e81611703565b82525050565b60006020820190506117396000830184611715565b92915050565b60006020828403121561175557611754611273565b5b6000611763848285016113eb565b91505092915050565b60006020828403121561178257611781611273565b5b6000611790848285016114b8565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006117e0602083611799565b91506117eb826117aa565b602082019050919050565b6000602082019050818103600083015261180f816117d3565b9050919050565b60008160601b9050919050565b600061182e82611816565b9050919050565b600061184082611823565b9050919050565b6118586118538261129d565b611835565b82525050565b6000819050919050565b61187961187482611497565b61185e565b82525050565b600061188b8285611847565b60148201915061189b8284611868565b6020820191508190509392505050565b7f496e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b60006118e1601283611799565b91506118ec826118ab565b602082019050919050565b60006020820190508181036000830152611910816118d4565b9050919050565b600081519050611926816114a1565b92915050565b60006020828403121561194257611941611273565b5b600061195084828501611917565b91505092915050565b7f4e6f7420656e6f7567682062616c616e63652e00000000000000000000000000600082015250565b600061198f601383611799565b915061199a82611959565b602082019050919050565b600060208201905081810360008301526119be81611982565b9050919050565b7f4e6f206d6f72652067616d65732e000000000000000000000000000000000000600082015250565b60006119fb600e83611799565b9150611a06826119c5565b602082019050919050565b60006020820190508181036000830152611a2a816119ee565b9050919050565b7f4e6f7420696e636c7564656420696e207468652067616d652e00000000000000600082015250565b6000611a67601983611799565b9150611a7282611a31565b602082019050919050565b60006020820190508181036000830152611a9681611a5a565b9050919050565b6000819050919050565b6000611ac2611abd611ab884611a9d565b6116c5565b611497565b9050919050565b611ad281611aa7565b82525050565b6000606082019050611aed600083018661169b565b611afa602083018561169b565b611b076040830184611ac9565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611b4982611497565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611b7c57611b7b611b0f565b5b600182019050919050565b6000611b9282611497565b91506000821415611ba657611ba5611b0f565b5b600182039050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611c0d602683611799565b9150611c1882611bb1565b604082019050919050565b60006020820190508181036000830152611c3c81611c00565b9050919050565b6000611c4f8284611868565b60208201915081905092915050565b6000611c6982611497565b9150611c7483611497565b925082821015611c8757611c86611b0f565b5b828203905092915050565b6000819050919050565b611cad611ca8826113ca565b611c92565b82525050565b6000611cbf8288611868565b602082019150611ccf8287611847565b601482019150611cdf8286611c9c565b602082019150611cef8285611868565b602082019150611cff8284611868565b6020820191508190509695505050505050565b6000611d1d82611497565b9150611d2883611497565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d5d57611d5c611b0f565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000611dd8601c83611d97565b9150611de382611da2565b601c82019050919050565b6000611df982611dcb565b9150611e058284611c9c565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611e4e82611497565b9150611e5983611497565b925082611e6957611e68611e14565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611ed9601883611799565b9150611ee482611ea3565b602082019050919050565b60006020820190508181036000830152611f0881611ecc565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611f45601f83611799565b9150611f5082611f0f565b602082019050919050565b60006020820190508181036000830152611f7481611f38565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611fd7602283611799565b9150611fe282611f7b565b604082019050919050565b6000602082019050818103600083015261200681611fca565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612069602283611799565b91506120748261200d565b604082019050919050565b600060208201905081810360008301526120988161205c565b9050919050565b6120a8816113ca565b82525050565b600060ff82169050919050565b6120c4816120ae565b82525050565b60006080820190506120df600083018761209f565b6120ec60208301866120bb565b6120f9604083018561209f565b612106606083018461209f565b9594505050505056fea26469706673582212201b346eecfbbda7bb162802707e7cfbbbed7a929a1bd4142c98b4db317df8b74164736f6c634300080c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063a15fd6d21161008c578063e757087311610066578063e757087314610202578063f2fde38b1461021e578063fbfe1bb41461023a578063fde29d6214610256576100cf565b8063a15fd6d214610196578063c17ab704146101b4578063c3d1d7a2146101e4576100cf565b8063046dc166146100d45780630d4917af146100f05780634d058811146101205780635ffd3aa014610150578063715018a61461016e5780638da5cb5b14610178575b600080fd5b6100ee60048036038101906100e991906112db565b610272565b005b61010a600480360381019061010591906114cd565b610332565b6040516101179190611557565b60405180910390f35b61013a600480360381019061013591906115cd565b61037c565b6040516101479190611557565b60405180910390f35b6101586107f7565b6040516101659190611680565b60405180910390f35b6101766107fd565b005b610180610885565b60405161018d91906116aa565b60405180910390f35b61019e6108ae565b6040516101ab91906116aa565b60405180910390f35b6101ce60048036038101906101c991906112db565b6108d4565b6040516101db9190611680565b60405180910390f35b6101ec6108ec565b6040516101f99190611724565b60405180910390f35b61021c600480360381019061021791906112db565b610912565b005b610238600480360381019061023391906112db565b6109d2565b005b610254600480360381019061024f919061173f565b610aca565b005b610270600480360381019061026b919061176c565b610b50565b005b61027a610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610298610885565b73ffffffffffffffffffffffffffffffffffffffff16146102ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e5906117f6565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610373600554848460405160200161034d92919061187f565b6040516020818303038152906040528051906020012086610bde9092919063ffffffff16565b90509392505050565b6000610389868686610bf5565b73ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040f906118f7565b60405180910390fd5b6815af1d78b58c400000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231610468610bd6565b6040518263ffffffff1660e01b815260040161048491906116aa565b602060405180830381865afa1580156104a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c5919061192c565b1015610506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fd906119a5565b60405180910390fd5b60006004541161054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054290611a11565b60405180910390fd5b61055d82610557610bd6565b85610332565b61059c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059390611a7d565b60405180910390fd5b82600660006105a9610bd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061b90611a7d565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61066a610bd6565b61dead6815af1d78b58c4000006040518463ffffffff1660e01b815260040161069593929190611ad8565b600060405180830381600087803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b505050506106d086610c8a565b6001141561079f576106e0610bd6565b73ffffffffffffffffffffffffffffffffffffffff167f78b3193cf31372e77b1f3045481681f86e18e346de12ae7f1ecc322ff0adf1a460405160405180910390a26006600061072e610bd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061077990611b3e565b91905055506004600081548092919061079190611b87565b9190505550600190506107ee565b6107a7610bd6565b73ffffffffffffffffffffffffffffffffffffffff167fe52eca3d39fb231ad76fbb2384560be97f13bf0d9b9739a6d31c93acd38c4d9460405160405180910390a2600090505b95945050505050565b60045481565b610805610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610823610885565b73ffffffffffffffffffffffffffffffffffffffff1614610879576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610870906117f6565b60405180910390fd5b6108836000610ce8565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60066020528060005260406000206000915090505481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61091a610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610938610885565b73ffffffffffffffffffffffffffffffffffffffff161461098e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610985906117f6565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109da610bd6565b73ffffffffffffffffffffffffffffffffffffffff166109f8610885565b73ffffffffffffffffffffffffffffffffffffffff1614610a4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a45906117f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610abe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab590611c23565b60405180910390fd5b610ac781610ce8565b50565b610ad2610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610af0610885565b73ffffffffffffffffffffffffffffffffffffffff1614610b46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3d906117f6565b60405180910390fd5b8060058190555050565b610b58610bd6565b73ffffffffffffffffffffffffffffffffffffffff16610b76610885565b73ffffffffffffffffffffffffffffffffffffffff1614610bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc3906117f6565b60405180910390fd5b8060048190555050565b600033905090565b600082610beb8584610dac565b1490509392505050565b60008084604051602001610c099190611c43565b604051602081830303815290604052805190602001209050610c8084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610c7283610e21565b610e5190919063ffffffff16565b9150509392505050565b60006001610cd74432600143610ca09190611c5e565b404287604051602001610cb7959493929190611cb3565b6040516020818303038152906040528051906020012060001c6005610e78565b610ce19190611d12565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b8451811015610e16576000858281518110610dd357610dd2611d68565b5b60200260200101519050808311610df557610dee8382610e8e565b9250610e02565b610dff8184610e8e565b92505b508080610e0e90611b3e565b915050610db5565b508091505092915050565b600081604051602001610e349190611dee565b604051602081830303815290604052805190602001209050919050565b6000806000610e608585610ea5565b91509150610e6d81610f28565b819250505092915050565b60008183610e869190611e43565b905092915050565b600082600052816020526040600020905092915050565b600080604183511415610ee75760008060006020860151925060408601519150606086015160001a9050610edb878285856110fd565b94509450505050610f21565b604083511415610f18576000806020850151915060408501519050610f0d86838361120a565b935093505050610f21565b60006002915091505b9250929050565b60006004811115610f3c57610f3b611e74565b5b816004811115610f4f57610f4e611e74565b5b1415610f5a576110fa565b60016004811115610f6e57610f6d611e74565b5b816004811115610f8157610f80611e74565b5b1415610fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb990611eef565b60405180910390fd5b60026004811115610fd657610fd5611e74565b5b816004811115610fe957610fe8611e74565b5b141561102a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102190611f5b565b60405180910390fd5b6003600481111561103e5761103d611e74565b5b81600481111561105157611050611e74565b5b1415611092576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108990611fed565b60405180910390fd5b6004808111156110a5576110a4611e74565b5b8160048111156110b8576110b7611e74565b5b14156110f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f09061207f565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611138576000600391509150611201565b601b8560ff16141580156111505750601c8560ff1614155b15611162576000600491509150611201565b60006001878787876040516000815260200160405260405161118794939291906120ca565b6020604051602081039080840390855afa1580156111a9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111f857600060019250925050611201565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c61124d9190611d12565b905061125b878288856110fd565b935093505050935093915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112a88261127d565b9050919050565b6112b88161129d565b81146112c357600080fd5b50565b6000813590506112d5816112af565b92915050565b6000602082840312156112f1576112f0611273565b5b60006112ff848285016112c6565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6113568261130d565b810181811067ffffffffffffffff821117156113755761137461131e565b5b80604052505050565b6000611388611269565b9050611394828261134d565b919050565b600067ffffffffffffffff8211156113b4576113b361131e565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6113dd816113ca565b81146113e857600080fd5b50565b6000813590506113fa816113d4565b92915050565b600061141361140e84611399565b61137e565b90508083825260208201905060208402830185811115611436576114356113c5565b5b835b8181101561145f578061144b88826113eb565b845260208401935050602081019050611438565b5050509392505050565b600082601f83011261147e5761147d611308565b5b813561148e848260208601611400565b91505092915050565b6000819050919050565b6114aa81611497565b81146114b557600080fd5b50565b6000813590506114c7816114a1565b92915050565b6000806000606084860312156114e6576114e5611273565b5b600084013567ffffffffffffffff81111561150457611503611278565b5b61151086828701611469565b9350506020611521868287016112c6565b9250506040611532868287016114b8565b9150509250925092565b60008115159050919050565b6115518161153c565b82525050565b600060208201905061156c6000830184611548565b92915050565b600080fd5b60008083601f84011261158d5761158c611308565b5b8235905067ffffffffffffffff8111156115aa576115a9611572565b5b6020830191508360018202830111156115c6576115c56113c5565b5b9250929050565b6000806000806000608086880312156115e9576115e8611273565b5b60006115f7888289016114b8565b955050602086013567ffffffffffffffff81111561161857611617611278565b5b61162488828901611577565b94509450506040611637888289016114b8565b925050606086013567ffffffffffffffff81111561165857611657611278565b5b61166488828901611469565b9150509295509295909350565b61167a81611497565b82525050565b60006020820190506116956000830184611671565b92915050565b6116a48161129d565b82525050565b60006020820190506116bf600083018461169b565b92915050565b6000819050919050565b60006116ea6116e56116e08461127d565b6116c5565b61127d565b9050919050565b60006116fc826116cf565b9050919050565b600061170e826116f1565b9050919050565b61171e81611703565b82525050565b60006020820190506117396000830184611715565b92915050565b60006020828403121561175557611754611273565b5b6000611763848285016113eb565b91505092915050565b60006020828403121561178257611781611273565b5b6000611790848285016114b8565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006117e0602083611799565b91506117eb826117aa565b602082019050919050565b6000602082019050818103600083015261180f816117d3565b9050919050565b60008160601b9050919050565b600061182e82611816565b9050919050565b600061184082611823565b9050919050565b6118586118538261129d565b611835565b82525050565b6000819050919050565b61187961187482611497565b61185e565b82525050565b600061188b8285611847565b60148201915061189b8284611868565b6020820191508190509392505050565b7f496e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b60006118e1601283611799565b91506118ec826118ab565b602082019050919050565b60006020820190508181036000830152611910816118d4565b9050919050565b600081519050611926816114a1565b92915050565b60006020828403121561194257611941611273565b5b600061195084828501611917565b91505092915050565b7f4e6f7420656e6f7567682062616c616e63652e00000000000000000000000000600082015250565b600061198f601383611799565b915061199a82611959565b602082019050919050565b600060208201905081810360008301526119be81611982565b9050919050565b7f4e6f206d6f72652067616d65732e000000000000000000000000000000000000600082015250565b60006119fb600e83611799565b9150611a06826119c5565b602082019050919050565b60006020820190508181036000830152611a2a816119ee565b9050919050565b7f4e6f7420696e636c7564656420696e207468652067616d652e00000000000000600082015250565b6000611a67601983611799565b9150611a7282611a31565b602082019050919050565b60006020820190508181036000830152611a9681611a5a565b9050919050565b6000819050919050565b6000611ac2611abd611ab884611a9d565b6116c5565b611497565b9050919050565b611ad281611aa7565b82525050565b6000606082019050611aed600083018661169b565b611afa602083018561169b565b611b076040830184611ac9565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611b4982611497565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611b7c57611b7b611b0f565b5b600182019050919050565b6000611b9282611497565b91506000821415611ba657611ba5611b0f565b5b600182039050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611c0d602683611799565b9150611c1882611bb1565b604082019050919050565b60006020820190508181036000830152611c3c81611c00565b9050919050565b6000611c4f8284611868565b60208201915081905092915050565b6000611c6982611497565b9150611c7483611497565b925082821015611c8757611c86611b0f565b5b828203905092915050565b6000819050919050565b611cad611ca8826113ca565b611c92565b82525050565b6000611cbf8288611868565b602082019150611ccf8287611847565b601482019150611cdf8286611c9c565b602082019150611cef8285611868565b602082019150611cff8284611868565b6020820191508190509695505050505050565b6000611d1d82611497565b9150611d2883611497565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d5d57611d5c611b0f565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000611dd8601c83611d97565b9150611de382611da2565b601c82019050919050565b6000611df982611dcb565b9150611e058284611c9c565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611e4e82611497565b9150611e5983611497565b925082611e6957611e68611e14565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611ed9601883611799565b9150611ee482611ea3565b602082019050919050565b60006020820190508181036000830152611f0881611ecc565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611f45601f83611799565b9150611f5082611f0f565b602082019050919050565b60006020820190508181036000830152611f7481611f38565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611fd7602283611799565b9150611fe282611f7b565b604082019050919050565b6000602082019050818103600083015261200681611fca565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612069602283611799565b91506120748261200d565b604082019050919050565b600060208201905081810360008301526120988161205c565b9050919050565b6120a8816113ca565b82525050565b600060ff82169050919050565b6120c4816120ae565b82525050565b60006080820190506120df600083018761209f565b6120ec60208301866120bb565b6120f9604083018561209f565b612106606083018461209f565b9594505050505056fea26469706673582212201b346eecfbbda7bb162802707e7cfbbbed7a929a1bd4142c98b4db317df8b74164736f6c634300080c0033
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.