Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 66 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Register | 14706543 | 943 days ago | IN | 0 ETH | 0.00095039 | ||||
Register | 14706520 | 943 days ago | IN | 0 ETH | 0.00141776 | ||||
Register | 14706505 | 943 days ago | IN | 0 ETH | 0.00113703 | ||||
Register | 14706502 | 943 days ago | IN | 0 ETH | 0.00103287 | ||||
Register | 14706475 | 943 days ago | IN | 0 ETH | 0.00133562 | ||||
Set Paused | 14706474 | 943 days ago | IN | 0 ETH | 0.00250483 | ||||
Register | 14706472 | 943 days ago | IN | 0 ETH | 0.00443889 | ||||
Register | 14706471 | 943 days ago | IN | 0 ETH | 0.00445029 | ||||
Register | 14706470 | 943 days ago | IN | 0 ETH | 0.00427162 | ||||
Register | 14706468 | 943 days ago | IN | 0 ETH | 0.00366828 | ||||
Register | 14706462 | 943 days ago | IN | 0 ETH | 0.0047862 | ||||
Register | 14706461 | 943 days ago | IN | 0 ETH | 0.00446433 | ||||
Register | 14706456 | 943 days ago | IN | 0 ETH | 0.00400767 | ||||
Register | 14706453 | 943 days ago | IN | 0 ETH | 0.00425006 | ||||
Register | 14706449 | 943 days ago | IN | 0 ETH | 0.00491068 | ||||
Register | 14706448 | 943 days ago | IN | 0 ETH | 0.00496543 | ||||
Register | 14706447 | 943 days ago | IN | 0 ETH | 0.0044359 | ||||
Register | 14706447 | 943 days ago | IN | 0 ETH | 0.0044359 | ||||
Register | 14706447 | 943 days ago | IN | 0 ETH | 0.0044359 | ||||
Register | 14706440 | 943 days ago | IN | 0 ETH | 0.00485153 | ||||
Register | 14706440 | 943 days ago | IN | 0 ETH | 0.00485153 | ||||
Register | 14706439 | 943 days ago | IN | 0 ETH | 0.0044528 | ||||
Register | 14706439 | 943 days ago | IN | 0 ETH | 0.0044528 | ||||
Register | 14706437 | 943 days ago | IN | 0 ETH | 0.00140742 | ||||
Register | 14706436 | 943 days ago | IN | 0 ETH | 0.00382383 |
Loading...
Loading
Contract Name:
Raffle
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-05-01 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Raffle { uint256 public totalWallets; address public owner; address[] public wallets; bool paused = true; mapping(address => bool) addressToRegistered; constructor() { owner = msg.sender; } function register() public { require(!paused, "Contract is paused"); require(msg.sender == tx.origin, "Only EOA"); require(addressToRegistered[msg.sender] != true, "Already registered"); addressToRegistered[msg.sender] = true; wallets.push(msg.sender); totalWallets += 1; } function setPaused(bool _state) public { require(msg.sender == owner, "Only owner"); paused = _state; } function getWallets() public view returns(address[] memory) { return wallets; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getWallets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalWallets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526003805460ff1916600117905534801561001d57600080fd5b50600180546001600160a01b031916331790556104188061003f6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806316c38b3c146100675780631aa3a0081461007c5780637ad71f72146100845780638da5cb5b146100b4578063977d2c45146100c7578063db7a4605146100de575b600080fd5b61007a61007536600461032d565b6100f3565b005b61007a610152565b610097610092366004610356565b6102a1565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610097906001600160a01b031681565b6100d060005481565b6040519081526020016100ab565b6100e66102cb565b6040516100ab919061036f565b6001546001600160a01b0316331461013f5760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b60448201526064015b60405180910390fd5b6003805460ff1916911515919091179055565b60035460ff161561019a5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610136565b3332146101d45760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b6044820152606401610136565b3360009081526004602052604090205460ff1615156001141561022e5760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481c9959da5cdd195c995960721b6044820152606401610136565b336000818152600460205260408120805460ff191660019081179091556002805480830182559083527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169093179092558054819061029a9084906103bc565b9091555050565b600281815481106102b157600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600280548060200260200160405190810160405280929190818152602001828054801561032357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610305575b5050505050905090565b60006020828403121561033f57600080fd5b8135801515811461034f57600080fd5b9392505050565b60006020828403121561036857600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103b05783516001600160a01b03168352928401929184019160010161038b565b50909695505050505050565b600082198211156103dd57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220589b2b2deaf961583b8e3363b2989013824d9ffd08ba98042ffa8ba474d238c564736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c806316c38b3c146100675780631aa3a0081461007c5780637ad71f72146100845780638da5cb5b146100b4578063977d2c45146100c7578063db7a4605146100de575b600080fd5b61007a61007536600461032d565b6100f3565b005b61007a610152565b610097610092366004610356565b6102a1565b6040516001600160a01b0390911681526020015b60405180910390f35b600154610097906001600160a01b031681565b6100d060005481565b6040519081526020016100ab565b6100e66102cb565b6040516100ab919061036f565b6001546001600160a01b0316331461013f5760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b60448201526064015b60405180910390fd5b6003805460ff1916911515919091179055565b60035460ff161561019a5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610136565b3332146101d45760405162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b6044820152606401610136565b3360009081526004602052604090205460ff1615156001141561022e5760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e481c9959da5cdd195c995960721b6044820152606401610136565b336000818152600460205260408120805460ff191660019081179091556002805480830182559083527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319169093179092558054819061029a9084906103bc565b9091555050565b600281815481106102b157600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600280548060200260200160405190810160405280929190818152602001828054801561032357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610305575b5050505050905090565b60006020828403121561033f57600080fd5b8135801515811461034f57600080fd5b9392505050565b60006020828403121561036857600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103b05783516001600160a01b03168352928401929184019160010161038b565b50909695505050505050565b600082198211156103dd57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220589b2b2deaf961583b8e3363b2989013824d9ffd08ba98042ffa8ba474d238c564736f6c63430008070033
Deployed Bytecode Sourcemap
60:832:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;662:126;;;;;;:::i;:::-;;:::i;:::-;;322:332;;;:::i;150:24::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;641:32:1;;;623:51;;611:2;596:18;150:24:0;;;;;;;;121:22;;;;;-1:-1:-1;;;;;121:22:0;;;85:29;;;;;;;;;2863:25:1;;;2851:2;2836:18;85:29:0;2717:177:1;796:93:0;;;:::i;:::-;;;;;;;:::i;662:126::-;734:5;;-1:-1:-1;;;;;734:5:0;720:10;:19;712:42;;;;-1:-1:-1;;;712:42:0;;1550:2:1;712:42:0;;;1532:21:1;1589:2;1569:18;;;1562:30;-1:-1:-1;;;1608:18:1;;;1601:40;1658:18;;712:42:0;;;;;;;;;765:6;:15;;-1:-1:-1;;765:15:0;;;;;;;;;;662:126::o;322:332::-;369:6;;;;368:7;360:38;;;;-1:-1:-1;;;360:38:0;;2572:2:1;360:38:0;;;2554:21:1;2611:2;2591:18;;;2584:30;-1:-1:-1;;;2630:18:1;;;2623:48;2688:18;;360:38:0;2370:342:1;360:38:0;417:10;431:9;417:23;409:44;;;;-1:-1:-1;;;409:44:0;;1889:2:1;409:44:0;;;1871:21:1;1928:1;1908:18;;;1901:29;-1:-1:-1;;;1946:18:1;;;1939:38;1994:18;;409:44:0;1687:331:1;409:44:0;492:10;472:31;;;;:19;:31;;;;;;;;:39;;:31;:39;;464:70;;;;-1:-1:-1;;;464:70:0;;2225:2:1;464:70:0;;;2207:21:1;2264:2;2244:18;;;2237:30;-1:-1:-1;;;2283:18:1;;;2276:48;2341:18;;464:70:0;2023:342:1;464:70:0;565:10;545:31;;;;:19;:31;;;;;:38;;-1:-1:-1;;545:38:0;579:4;545:38;;;;;;594:7;:24;;;;;;;;;;;;;;-1:-1:-1;;;;;;594:24:0;;;;;;;629:17;;545:31;;629:17;;579:4;;629:17;:::i;:::-;;;;-1:-1:-1;;322:332:0:o;150:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;150:24:0;;-1:-1:-1;150:24:0;:::o;796:93::-;838:16;874:7;867:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;867:14:0;;;;;;;;;;;;;;;;;;;;;;;796:93;:::o;14:273:1:-;70:6;123:2;111:9;102:7;98:23;94:32;91:52;;;139:1;136;129:12;91:52;178:9;165:23;231:5;224:13;217:21;210:5;207:32;197:60;;253:1;250;243:12;197:60;276:5;14:273;-1:-1:-1;;;14:273:1:o;292:180::-;351:6;404:2;392:9;383:7;379:23;375:32;372:52;;;420:1;417;410:12;372:52;-1:-1:-1;443:23:1;;292:180;-1:-1:-1;292:180:1:o;685:658::-;856:2;908:21;;;978:13;;881:18;;;1000:22;;;827:4;;856:2;1079:15;;;;1053:2;1038:18;;;827:4;1122:195;1136:6;1133:1;1130:13;1122:195;;;1201:13;;-1:-1:-1;;;;;1197:39:1;1185:52;;1292:15;;;;1257:12;;;;1233:1;1151:9;1122:195;;;-1:-1:-1;1334:3:1;;685:658;-1:-1:-1;;;;;;685:658:1:o;2899:225::-;2939:3;2970:1;2966:6;2963:1;2960:13;2957:136;;;3015:10;3010:3;3006:20;3003:1;2996:31;3050:4;3047:1;3040:15;3078:4;3075:1;3068:15;2957:136;-1:-1:-1;3109:9:1;;2899:225::o
Swarm Source
ipfs://589b2b2deaf961583b8e3363b2989013824d9ffd08ba98042ffa8ba474d238c5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.