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 13 from a total of 13 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 8014488 | 1979 days ago | IN | 0 ETH | 0.00008876 | ||||
Adopt | 8014483 | 1979 days ago | IN | 0.0012 ETH | 0.00018995 | ||||
Adopt | 7941552 | 1990 days ago | IN | 0.001728 ETH | 0.00018963 | ||||
Withdraw | 7835466 | 2007 days ago | IN | 0 ETH | 0.00002958 | ||||
Adopt | 7835457 | 2007 days ago | IN | 0.001 ETH | 0.00026495 | ||||
Adopt | 7835444 | 2007 days ago | IN | 0.001 ETH | 0.00026495 | ||||
Adopt | 7835442 | 2007 days ago | IN | 0.00144 ETH | 0.00018963 | ||||
Adopt | 7835437 | 2007 days ago | IN | 0.001 ETH | 0.00026495 | ||||
Adopt | 7835436 | 2007 days ago | IN | 0.0012 ETH | 0.00018963 | ||||
Adopt | 7835434 | 2007 days ago | IN | 0.001 ETH | 0.00026463 | ||||
Withdraw | 7835425 | 2007 days ago | IN | 0 ETH | 0.00002958 | ||||
Adopt | 7835412 | 2007 days ago | IN | 0.001 ETH | 0.00026495 | ||||
0x60806040 | 7835402 | 2007 days ago | IN | 0 ETH | 0.00406363 |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xEBD430d5...e45347E34 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Adoption
Compiler Version
v0.5.0+commit.1d4f565a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-26 */ pragma solidity ^0.5.0; contract Adoption { address[16] public adopters; uint[16] public prices; address public owner; constructor() public { owner = msg.sender; for (uint i=0;i<16;++i) { prices[i] = 0.001 ether; } } // Adopting a pet function adopt(uint petId) public payable returns (uint) { require(petId >= 0 && petId <= 15); require(msg.value >= prices[petId]); prices[petId] *= 120; prices[petId] /= 100; adopters[petId] = msg.sender; return petId; } // Retrieving the adopters function getAdopters() public view returns (address[16] memory, uint[16] memory) { return (adopters, prices); } modifier onlyOwner() { require (msg.sender == owner); _; } function withdraw() public onlyOwner{ msg.sender.transfer(address(this).balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getAdopters","outputs":[{"name":"","type":"address[16]"},{"name":"","type":"uint256[16]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"adopters","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"petId","type":"uint256"}],"name":"adopt","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"prices","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]
Deployed Bytecode
0x608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633ccfd60b1461007d5780633de4eb171461009457806343ae80d3146101165780638588b2c5146101915780638da5cb5b146101d3578063bc31c1c11461022a575b600080fd5b34801561008957600080fd5b50610092610279565b005b3480156100a057600080fd5b506100a9610335565b6040518083601060200280838360005b838110156100d45780820151818401526020810190506100b9565b5050505090500182601060200280838360005b838110156101025780820151818401526020810190506100e7565b505050509050019250505060405180910390f35b34801561012257600080fd5b5061014f6004803603602081101561013957600080fd5b8101908080359060200190929190505050610405565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101bd600480360360208110156101a757600080fd5b810190808035906020019092919050505061043a565b6040518082815260200191505060405180910390f35b3480156101df57600080fd5b506101e8610515565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023657600080fd5b506102636004803603602081101561024d57600080fd5b810190808035906020019092919050505061053b565b6040518082815260200191505060405180910390f35b602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102d557600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050158015610332573d6000803e3d6000fd5b50565b61033d610555565b610345610579565b60006010816010806020026040519081016040528092919082601080156103b7576020028201915b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161036d575b50505050509150806010806020026040519081016040528092919082601080156103f6576020028201915b8154815260200190600101908083116103e2575b50505050509050915091509091565b60008160108110151561041457fe5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080821015801561044d5750600f8211155b151561045857600080fd5b60108260108110151561046757fe5b0154341015151561047757600080fd5b607860108360108110151561048857fe5b016000828254029250508190555060646010836010811015156104a757fe5b0160008282548115156104b657fe5b0492505081905550336000836010811015156104ce57fe5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550819050919050565b602060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60108160108110151561054a57fe5b016000915090505481565b61020060405190810160405280601090602082028038833980820191505090505090565b6102006040519081016040528060109060208202803883398082019150509050509056fea165627a7a72305820e8370f5cd53a7744171cd051143ae47103fd3302f1de3dde88cb2e6b027404a80029
Deployed Bytecode Sourcemap
27:863:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;796:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;796:91:0;;;;;;581:120;;8:9:-1;5:2;;;30:1;27;20:12;5:2;581:120:0;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;581:120:0;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;581:120:0;;;;;;;;;;;;;;;;;50:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50:27:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;50:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;287:258;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;287:258:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;82:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82:22:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;796:91;764:5;;;;;;;;;;;750:19;;:10;:19;;;741:29;;;;;;;;839:10;:19;;:42;867:4;859:21;;;839:42;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;839:42:0;796:91::o;581:120::-;625:18;;:::i;:::-;645:15;;:::i;:::-;677:8;688:6;669:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;581:120;;:::o;50:27::-;;;;;;;;;;;;;;;;;;;;;;;;;:::o;287:258::-;338:4;368:1;359:5;:10;;:25;;;;;382:2;373:5;:11;;359:25;351:34;;;;;;;;413:6;420:5;413:13;;;;;;;;;;;400:9;:26;;392:35;;;;;;;;453:3;436:6;443:5;436:13;;;;;;;;;;;:20;;;;;;;;;;;480:3;463:6;470:5;463:13;;;;;;;;;;;:20;;;;;;;;;;;;;;;;;;510:10;492:8;501:5;492:15;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;534:5;527:12;;287:258;;;:::o;109:20::-;;;;;;;;;;;;;:::o;82:22::-;;;;;;;;;;;;;;;;;;;;:::o;27:863::-;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;27:863:0;;;;:::o;:::-;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;27:863:0;;;;:::o
Swarm Source
bzzr://e8370f5cd53a7744171cd051143ae47103fd3302f1de3dde88cb2e6b027404a8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.