Source Code
Overview
SOPH Balance
More Info
ContractCreator
Multichain Info
N/A
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
SPHNX
Compiler Version
v0.8.24+commit.e11b9ed9
ZkSolc Version
v1.5.11
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.24; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/security/Pausable.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } } // File: SPHNX.sol pragma solidity ^0.8.13; contract SPHNX is Ownable, Pausable { // State variables uint256 public messagePrice; uint256 public messagesProcessed; address public winner; // Variables for withdrawal splits uint256 private WINNER_SHARE; uint256 private OWNER_SHARE = 100- WINNER_SHARE; // Mapping to track user's paid messages mapping(address => uint256) public userMessages; // Mapping to track if a transaction hash has been used mapping(bytes32 => bool) public usedTransactionHashes; // Events event MessagePaid(address indexed user, uint256 amount, uint256 timestamp); event PriceUpdated(uint256 newPrice); event FundsWithdrawn(address indexed to, uint256 amount); event WinnerSet(address indexed winner); event WinnerWithdrawal(address indexed winner, uint256 amount); event OwnerWithdrawal(address indexed owner, uint256 amount); // Custom errors error InsufficientPayment(); error TransactionAlreadyUsed(); error UnauthorizedWithdrawal(); error WithdrawalFailed(); error NoWinnerSet(); error InvalidAmount(); constructor(uint256 _initialPrice, uint256 _WINNER_SHARE) Ownable(msg.sender) { messagePrice = _initialPrice; WINNER_SHARE = _WINNER_SHARE; } /** * @dev Set the winner address * @param _winner The address of the winner */ function setWinner(address _winner) external onlyOwner { require(_winner != address(0), "Invalid winner address"); winner = _winner; emit WinnerSet(_winner); } /** * @dev Pay for a message */ function payForMessage() external payable whenNotPaused { // Check if payment meets minimum price if (msg.value < messagePrice) { revert InsufficientPayment(); } // Generate unique hash for this transaction bytes32 txHash = keccak256(abi.encodePacked(msg.sender, block.timestamp, msg.value)); // Check if transaction hash has been used if (usedTransactionHashes[txHash]) { revert TransactionAlreadyUsed(); } // Mark transaction as used usedTransactionHashes[txHash] = true; // Increment user's message count userMessages[msg.sender]++; messagesProcessed++; // Emit event emit MessagePaid(msg.sender, msg.value, block.timestamp); } /** * @dev Update the price per message * @param newPrice The new price in wei */ function updatePrice(uint256 newPrice) external onlyOwner { messagePrice = newPrice; emit PriceUpdated(newPrice); } /** * @dev Get the number of messages a user has paid for * @param user The address to check */ function getMessageCount(address user) external view returns (uint256) { return userMessages[user]; } /** * @dev Check if a specific transaction hash has been used * @param txHash The hash to check */ function isTransactionUsed(bytes32 txHash) external view returns (bool) { return usedTransactionHashes[txHash]; } /** * @dev Withdraw funds according to role (winner or owner) */ function withdraw() external { uint256 contractBalance = address(this).balance; if (contractBalance == 0) revert InvalidAmount(); uint256 amount; if (msg.sender == winner) { if (winner == address(0)) revert NoWinnerSet(); amount = (contractBalance * WINNER_SHARE) / 100; _processWithdrawal(payable(winner), amount); emit WinnerWithdrawal(winner, amount); } else if (msg.sender == owner()) { amount = (contractBalance * OWNER_SHARE) / 100; _processWithdrawal(payable(owner()), amount); emit OwnerWithdrawal(owner(), amount); } else { revert UnauthorizedWithdrawal(); } } /** * @dev Internal function to process withdrawals */ function _processWithdrawal(address payable to, uint256 amount) private { (bool success, ) = to.call{value: amount}(""); if (!success) { revert WithdrawalFailed(); } emit FundsWithdrawn(to, amount); } /** * @dev Get contract balance */ function getBalance() external view returns (uint256) { return address(this).balance; } /** * @dev Pause contract */ function pause() external onlyOwner { _pause(); } /** * @dev Unpause contract */ function unpause() external onlyOwner { _unpause(); } // Allow contract to receive ETH receive() external payable {} }
{ "optimizer": { "enabled": true, "mode": "3" }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "abi" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
[{"inputs":[{"internalType":"uint256","name":"_initialPrice","type":"uint256"},{"internalType":"uint256","name":"_WINNER_SHARE","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"NoWinnerSet","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"TransactionAlreadyUsed","type":"error"},{"inputs":[],"name":"UnauthorizedWithdrawal","type":"error"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MessagePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"OwnerWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"winner","type":"address"}],"name":"WinnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WinnerWithdrawal","type":"event"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getMessageCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"txHash","type":"bytes32"}],"name":"isTransactionUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"messagePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"messagesProcessed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payForMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_winner","type":"address"}],"name":"setWinner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedTransactionHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMessages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"winner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100012db407d3ae14ba4751ba6f1a05b388c81e54bd40e90b3c9e06101745e70000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000002625a00000000000000000000000000000000000000000000000000000000000000046
Deployed Bytecode
0x00040000000000020000006003100270000000de033001970000000100200190000000180000c13d0000008002000039000000400020043f000000040030008c000000450000413d000000000201043b000000e002200270000000e90020009c000000490000213d000000f60020009c0000008a0000a13d000000f70020009c000000bc0000a13d000000f80020009c0000015f0000613d000000f90020009c000001670000613d000000fa0020009c0000010f0000613d000002370000013d0000000002000416000000000002004b000002370000c13d0000001f02300039000000df022001970000008002200039000000400020043f0000001f0430018f000000e0053001980000008002500039000000290000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b000000250000c13d000000000004004b000000360000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000400030008c000002370000413d0000000006000411000000000006004b000000680000c13d000000400100043d000000e702000041000000000021043500000004021000390000000000020435000000de0010009c000000de010080410000004001100210000000e8011001c70000037600010430000000000003004b000002370000c13d0000000001000019000003750001042e000000ea0020009c0000009f0000a13d000000eb0020009c000000d40000a13d000000ec0020009c000001710000613d000000ed0020009c0000017a0000613d000000ee0020009c000002370000c13d000000240030008c000002370000413d0000000002000416000000000002004b000002370000c13d0000000401100370000000000101043b000000e20010009c000002370000213d000000000200041a000000e2032001970000000005000411000000000053004b000001b00000c13d000000e206100198000002440000c13d000000e701000041000000800010043f000000840000043f00000103010000410000037600010430000000a00100043d000200000001001d000000800100043d000100000001001d000000000200041a0000000001000414000000de0010009c000000de01008041000000c001100210000000e1011001c7000300000002001d000000e2052001970000800d020000390000000303000039000000e3040000410374036a0000040f0000000100200190000002370000613d0000000001000411000000e4011001970000000302000029000000e502200197000000000112019f000000000010041b0000000401000039000000000201041a000000650020008c0000011f0000413d0000012501000041000000000010043f0000001101000039000000040010043f000000e8010000410000037600010430000000fd0020009c000000f20000213d000001000020009c000000f60000613d000001010020009c000002370000c13d0000000001000416000000000001004b000002370000c13d0000000001000410000400000001001d0000800a0100003900000024030000390000000004000415000000040440008a00000005044002100000011b02000041037403530000040f000000800010043f0000010f01000041000003750001042e000000f10020009c000001060000213d000000f40020009c0000012c0000613d000000f50020009c000002370000c13d0000000001000416000000000001004b000002370000c13d000000000200041a000000e2032001970000000001000411000000000013004b000001ab0000c13d0000010500200198000001a10000c13d000000e40220019700000117022001c7000000000020041b000000800010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000114011001c70000800d0200003900000001030000390000011804000041000002340000013d000000fb0020009c000001860000613d000000fc0020009c000002370000c13d0000000001000416000000000001004b000002370000c13d000000000200041a000000e2032001970000000001000411000000000013004b000001ab0000c13d0000010500200198000002290000c13d0000011101000041000000800010043f0000002001000039000000840010043f0000001401000039000000a40010043f0000011a01000041000000c40010043f00000113010000410000037600010430000000ef0020009c0000010f0000613d000000f00020009c000002370000c13d000000240030008c000002370000413d0000000002000416000000000002004b000002370000c13d0000000401100370000000000101043b000000e20010009c000002370000213d000000000200041a000000e2032001970000000002000411000000000023004b000001b50000c13d000000e205100198000002530000c13d0000011101000041000000800010043f0000002001000039000000840010043f0000001601000039000000a40010043f0000011201000041000000c40010043f00000113010000410000037600010430000000fe0020009c000001430000613d000000ff0020009c000002370000c13d000000240030008c000002370000413d0000000002000416000000000002004b000002370000c13d0000000401100370000000000101043b000000000010043f0000000701000039000000200010043f000000400200003900000000010000190374033e0000040f000000000101041a000000ff001001900000016c0000013d000000f20020009c000001480000613d000000f30020009c000002370000c13d0000000001000416000000000001004b000002370000c13d000000000100041a000001760000013d000000240030008c000002370000413d0000000002000416000000000002004b000002370000c13d0000000401100370000000000101043b000000e20010009c000002370000213d000000000010043f0000000601000039000000200010043f000000400200003900000000010000190374033e0000040f000001630000013d00000064022000890000000503000039000000000023041b00000001020000390000000103000029000000000032041b0000000202000029000000000021041b000000200100003900000100001004430000012000000443000000e601000041000003750001042e0000000001000416000000000001004b000002370000c13d000000000100041a000000e2021001970000000005000411000000000052004b000001b00000c13d0000010401100197000000000010041b0000000001000414000000de0010009c000000de01008041000000c001100210000000e1011001c70000800d020000390000000303000039000000e30400004100000000060000190374036a0000040f0000000100200190000000470000c13d000002370000013d0000000001000416000000000001004b000002370000c13d0000000201000039000001630000013d000000240030008c000002370000413d0000000002000416000000000002004b000002370000c13d000000000200041a000000e2032001970000000002000411000000000023004b000001b50000c13d0000000401100370000000000101043b0000000103000039000000000013041b000000800010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000114011001c70000800d020000390000011504000041000002340000013d0000000001000416000000000001004b000002370000c13d0000000101000039000000000101041a000000800010043f0000010f01000041000003750001042e0000000001000416000000000001004b000002370000c13d000000000100041a00000105001001980000000001000039000000010100c039000000800010043f0000010f01000041000003750001042e0000000001000416000000000001004b000002370000c13d0000000301000039000000000101041a000000e201100197000000800010043f0000010f01000041000003750001042e000000000100041a0000010500100198000001a10000c13d0000000101000039000000000101041a0000000002000416000000000012004b000001ba0000813d0000010d01000041000000800010043f0000010e0100004100000376000104300000000001000416000000000001004b000002370000c13d0000011b010000410000000000100443000000000100041000000004001004430000000001000414000000de0010009c000000de01008041000000c0011002100000011c011001c70000800a020000390374036f0000040f0000000100200190000002280000613d000000000101043b000000000001004b000002390000c13d000000400100043d00000128020000410000000000210435000000de0010009c000000de0100804100000040011002100000011e011001c700000376000104300000011101000041000000800010043f0000002001000039000000840010043f0000001001000039000000a40010043f0000011601000041000000c40010043f000001130100004100000376000104300000010202000041000000800020043f000000840010043f000001030100004100000376000104300000010201000041000000800010043f000000840050043f000001030100004100000376000104300000010201000041000000800010043f000000840020043f0000010301000041000003760001043000000000010004110000006001100210000000a00010043f000001060100004100000000001004430000000001000414000000de0010009c000000de01008041000000c00110021000000107011001c70000800b020000390374036f0000040f0000000100200190000002280000613d000000000101043b000300000001001d000000b40010043f0000000001000416000000d40010043f0000005401000039000000800010043f0000010001000039000000400010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000108011001c700008010020000390374036f0000040f0000000100200190000002370000613d000000000101043b000200000001001d000000000010043f0000000701000039000000200010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000109011001c700008010020000390374036f0000040f0000000100200190000002370000613d000000000101043b000000000101041a000000ff00100190000002880000c13d0000000201000029000000000010043f0000000701000039000000200010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000109011001c700008010020000390374036f0000040f0000000100200190000002370000613d000000000101043b000000000201041a000001290220019700000001022001bf000000000021041b0000000001000411000000000010043f0000000601000039000000200010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000109011001c700008010020000390374036f0000040f0000000100200190000002370000613d000000000101043b000000000201041a000000010220003a000000840000613d000000000021041b0000000203000039000000000103041a000000010110003a000000840000613d000000000013041b000000400100043d00000020021000390000000304000029000000000042043500000000020004160000000000210435000000de0010009c000000de0100804100000040011002100000000002000414000000de0020009c000000de02008041000000c002200210000000000112019f00000109011001c70000800d020000390000010c040000410000000005000411000002340000013d000000000001042f000000e402200197000000000020041b000000800010043f0000000001000414000000de0010009c000000de01008041000000c00110021000000114011001c70000800d02000039000000010300003900000119040000410374036a0000040f0000000100200190000000470000c13d000000000100001900000376000104300000000302000039000000000202041a000000e2022001970000000004000411000000000024004b000002610000c13d000000000004004b000002750000c13d000000400100043d00000127020000410000019b0000013d0000010401200197000000000161019f000000000010041b0000000001000414000000de0010009c000000de01008041000000c001100210000000e1011001c70000800d020000390000000303000039000000e3040000410374036a0000040f0000000100200190000000470000c13d000002370000013d0000000301000039000000000201041a0000010402200197000000000252019f000000000021041b0000000001000414000000de0010009c000000de01008041000000c001100210000000e1011001c70000800d0200003900000002030000390000011004000041000002340000013d000000000200041a000000e202200197000000000024004b000002850000c13d0000000502000039000000000302041a00000000021300a900000000011200d9000000000031004b000000840000c13d000000640320011a0000000001000414000000de0010009c000000de01008041000000c001100210000000630020008c000300000003001d0000028c0000213d00000000020400190000028f0000013d0000000402000039000000000302041a00000000021300a900000000011200d9000000000031004b000000840000c13d000000640320011a0000000001000414000000de0010009c000000de01008041000000c001100210000000630020008c000300000003001d000002ba0000213d0000000002040019000002bd0000013d000000400100043d0000011d020000410000019b0000013d0000010a01000041000001000010043f0000010b010000410000037600010430000000e1011001c7000080090200003900000000050000190374036a0000040f0000006003100270000000de03300198000002eb0000c13d000000400100043d0000000100200190000002e90000613d00000003020000290000000000210435000000de0010009c000000de0100804100000040011002100000000002000414000000de0020009c000000de02008041000000c002200210000000000112019f00000122011001c70000800d020000390000000203000039000001230400004100000000050004110374036a0000040f0000000100200190000002370000613d000000000200041a000000400100043d00000003030000290000000000310435000000de0010009c000000de0100804100000040011002100000000003000414000000de0030009c000000de03008041000000c003300210000000000113019f00000122011001c7000000e2052001970000800d0200003900000002030000390000012404000041000002340000013d000000e1011001c7000080090200003900000000050000190374036a0000040f0000006003100270000000de03300198000003110000c13d000000400100043d0000000100200190000002e90000613d00000003020000290000000000210435000000de0010009c000000de0100804100000040011002100000000002000414000000de0020009c000000de02008041000000c002200210000000000112019f00000122011001c70000800d020000390000000203000039000001230400004100000000050004110374036a0000040f0000000100200190000002370000613d0000000301000039000000000201041a000000400100043d00000003030000290000000000310435000000de0010009c000000de0100804100000040011002100000000003000414000000de0030009c000000de03008041000000c003300210000000000113019f00000122011001c7000000e2052001970000800d0200003900000002030000390000012604000041000002340000013d00000121020000410000019b0000013d0000001f04300039000000df044001970000003f044000390000011f04400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000001200040009c000003370000213d0000000100600190000003370000c13d000000400040043f0000001f0430018f0000000006350436000000e0053001980000000003560019000003030000613d000000000701034f000000007807043c0000000006860436000000000036004b000002ff0000c13d000000000004004b000002930000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000002930000013d0000001f04300039000000df044001970000003f044000390000011f04400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000001200040009c000003370000213d0000000100600190000003370000c13d000000400040043f0000001f0430018f0000000006350436000000e0053001980000000003560019000003290000613d000000000701034f000000007807043c0000000006860436000000000036004b000003250000c13d000000000004004b000002c10000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000002c10000013d0000012501000041000000000010043f0000004101000039000000040010043f000000e8010000410000037600010430000000000001042f000000de0010009c000000de010080410000004001100210000000de0020009c000000de020080410000006002200210000000000112019f0000000002000414000000de0020009c000000de02008041000000c002200210000000000112019f000000e1011001c700008010020000390374036f0000040f0000000100200190000003510000613d000000000101043b000000000001042d0000000001000019000003760001043000000000050100190000000000200443000000040030008c0000035a0000a13d000000050140027000000000010100310000000400100443000000de0030009c000000de0300804100000060013002100000000002000414000000de0020009c000000de02008041000000c002200210000000000112019f0000012a011001c700000000020500190374036f0000040f0000000100200190000003690000613d000000000101043b000000000001042d000000000001042f0000036d002104210000000102000039000000000001042d0000000002000019000000000001042d00000372002104230000000102000039000000000001042d0000000002000019000000000001042d0000037400000432000003750001042e0000037600010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe00200000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000002000000000000000000000000000000400000010000000000000000001e4fbdf700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000000000000000000000715018a500000000000000000000000000000000000000000000000000000000d7363ce600000000000000000000000000000000000000000000000000000000dfbf53ad00000000000000000000000000000000000000000000000000000000dfbf53ae00000000000000000000000000000000000000000000000000000000ecbe141400000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000d7363ce700000000000000000000000000000000000000000000000000000000d9fca769000000000000000000000000000000000000000000000000000000008d6cc56c000000000000000000000000000000000000000000000000000000008d6cc56d000000000000000000000000000000000000000000000000000000008da5cb5b00000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000003ccfd60a0000000000000000000000000000000000000000000000000000000054cc76a60000000000000000000000000000000000000000000000000000000054cc76a7000000000000000000000000000000000000000000000000000000005c975abb000000000000000000000000000000000000000000000000000000006cd947ee000000000000000000000000000000000000000000000000000000003ccfd60b000000000000000000000000000000000000000000000000000000003f4ba83a000000000000000000000000000000000000000000000000000000002ab9a047000000000000000000000000000000000000000000000000000000002ab9a048000000000000000000000000000000000000000000000000000000002d0a0b7c000000000000000000000000000000000000000000000000000000000aaea3a40000000000000000000000000000000000000000000000000000000012065fe0118cdaa7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000800000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d9553913202000002000000000000000000000000000000040000000000000000000000000200000000000000000000000000000000000054000000a000000000000000000200000000000000000000000000000000000040000000000000000000000000830b785a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000001000000000000000000c58f58cb6075afc65ac73e7df65ba8302aaf02b642c1d77615bf45b85d548fddcd1c886700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000080000000000000000000000000000000000000000000000000000000200000008000000000000000009d5b5758df7039aae25e6ca959e5d46a5b27446b5aaa5ae9880a09de7578207908c379a000000000000000000000000000000000000000000000000000000000496e76616c69642077696e6e65722061646472657373000000000000000000000000000000000000000000000000000000000064000000800000000000000000020000000000000000000000000000000000002000000080000000000000000066cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe05061757361626c653a2070617573656400000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2585db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa5061757361626c653a206e6f74207061757365640000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f39020000020000000000000000000000000000002400000000000000000000000060b39bc500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000003ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff27fcd9d1000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000020000000000000000000000000eaff4b37086828766ad3268786972c0cd24259d4c87a80f9d3963a3c3d999b0da919fadcfa556a012bab31b15f596ea7ccd397adbf10e15f176db9055ab361c44e487b71000000000000000000000000000000000000000000000000000000002f12888580ba6a1c49bcb3ea76c339e3535e8043fe8f81a918dbca99a5f75b1e67ebc3cb000000000000000000000000000000000000000000000000000000002c5211c600000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab002492c45bd352d090e90712eaadb64dd4ec5729e7351985f1bd6921122c3a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000002625a00000000000000000000000000000000000000000000000000000000000000046
-----Decoded View---------------
Arg [0] : _initialPrice (uint256): 2500000
Arg [1] : _WINNER_SHARE (uint256): 70
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000002625a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000046
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.