Contract
0xd3367eb603f79e7524d1041182eec55c098a2af0
1
Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
JustCows
Compiler Version
v0.4.25+commit.59dbf8f1
Contract Source Code (Solidity)
/** *Submitted for verification at hecoinfo.com on 2021-07-19 */ /** *Submitted for verification at hecoinfo.com on 2021-07-04 */ pragma solidity ^0.4.25; contract Owner { address private owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner, "only Owner"); _; } } contract token { function transfer(address receiver, uint amount){ receiver; amount; } } contract JustCows is Owner { function() external payable{ // some code } function get_balance(address contract_addr) public view returns(uint256 money) { return contract_addr.balance; } function tran(address contract_addr,address _to, uint _amount) public payable onlyOwner { token addr=token(contract_addr); addr.transfer(_to,_amount); //调用token的transfer方法 } function deposit(address addr,uint256 money) public payable onlyOwner{ addr.transfer(money); } function tran_trx(address _to, uint _amount) public payable onlyOwner { _to.transfer(_amount); //调用token的transfer方法 } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"contract_addr","type":"address"}],"name":"get_balance","outputs":[{"name":"money","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"money","type":"uint256"}],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"contract_addr","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"tran","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"tran_trx","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610590806100536000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631e279a371461006457806347e7ef24146100bb578063d55a74b7146100fb578063fc33f52d1461015b575b005b34801561007057600080fd5b506100a5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061019b565b6040518082815260200191505060405180910390f35b6100f9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101bc565b005b610159600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506102cb565b005b610199600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610455565b005b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f6f6e6c79204f776e65720000000000000000000000000000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156102c6573d6000803e3d6000fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f6f6e6c79204f776e65720000000000000000000000000000000000000000000081525060200191505060405180910390fd5b8390508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561043757600080fd5b505af115801561044b573d6000803e3d6000fd5b5050505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f6f6e6c79204f776e65720000000000000000000000000000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561055f573d6000803e3d6000fd5b5050505600a165627a7a7230582099dcbde55718d01de79d8a8f3dce1c8ff42f14a0e2408e7b5b7cbe700cf9a6880029
Deployed ByteCode Sourcemap
532:773:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;638:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;638:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1012:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;787:210;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1144:155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;638:136;702:13;735;:21;;;728:28;;638:136;;;:::o;1012:126::-;386:5;;;;;;;;;;;372:19;;:10;:19;;;364:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1106:4;:13;;:20;1120:5;1106:20;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1106:20:0;1012:126;;:::o;787:210::-;887:10;386:5;;;;;;;;;;;372:19;;:10;:19;;;364:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;904:13;887:31;;929:4;:13;;;943:3;947:7;929:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;929:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;929:26:0;;;;787:210;;;;:::o;1144:155::-;386:5;;;;;;;;;;;372:19;;:10;:19;;;364:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1236:3;:12;;:21;1249:7;1236:21;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1236:21:0;1144:155;;:::o
Swarm Source
bzzr://99dcbde55718d01de79d8a8f3dce1c8ff42f14a0e2408e7b5b7cbe700cf9a688
Age | Block | Fee Address | Jailed | Incoming |
---|