Contract 0x6e6537d0fd1f12ccbcdbb5a9e832885362239aa9

Contract Overview

Balance:
0 Ether

Txn Hash
Block
From
To
Value
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xbe957bf99fea02625f9780f654812123abe9db363e1d36589c48e97267766df669182932019-12-06 19:10:48448 days 12 hrs ago 0xd068fcc44525569fb593189c8f22827cf0f50f3f  Contract Creation0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
P2

Compiler Version
v0.5.11+commit.c082d0b4

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2019-12-06
*/

pragma solidity ^0.5.11;

contract Montagy{
    function setGame(bool status) public;
    
    function registerCode(bytes memory a) public;
    
    function newPuzzle(bytes memory code) public;
    
    function solve(string memory info) public;
    
    function deploy(bytes memory code) private;
    
    function tag(bytes memory a) pure public;
}

contract P2{
    Montagy public server;
    constructor() public{
        server = Montagy(msg.sender);
    }
    uint256 a;
    uint256 b;
    uint256 c;
    uint256 d;
    uint256 e;
    uint256 f;
    uint256 g;
    uint256 h;
    uint256 i;
    function monica_init(uint256 _a, uint256 _b, uint256 _c, uint256 _d, uint256 _e, uint256 _f, uint256 _g, uint256 _h, uint256 _i) public {
        a=_a;
        b=_b;
        c=_c;
        d=_d;
        e=_e;
        f=_f;
        g=_g;
        h=_h;
        i=_i;
    }
    function loose() view public returns(bool){
        uint256 t1 = (a^b^c)+(d^e^f)+(g^h^i);
        uint256 t2 = (a+d+g)^(b+e+h)^(c+f+i);
        require(t1 + t2 < 0xaabbccdd);
        require(t1 > 0x8261e26b90505061031256e5afb60721cb); 
        require(0xf35b6080614321368282376084810151606401816080016143855161051756 >= t1*t2);
        require(t1 - t2 >= 0x65e670d9bd540cea22fdab97e36840e2);
        return true;
    }
    function harsh(bytes memory seed, string memory info) public{
        require(loose());
        if (keccak256(seed) == bytes32(bytes18(0x6111d850336107ef16565b908018915a9056))) {
            server.solve(info);
        }
    }
    
}

Contract ABI

[{"constant":true,"inputs":[],"name":"loose","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"seed","type":"bytes"},{"internalType":"string","name":"info","type":"string"}],"name":"harsh","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"server","outputs":[{"internalType":"contract Montagy","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_a","type":"uint256"},{"internalType":"uint256","name":"_b","type":"uint256"},{"internalType":"uint256","name":"_c","type":"uint256"},{"internalType":"uint256","name":"_d","type":"uint256"},{"internalType":"uint256","name":"_e","type":"uint256"},{"internalType":"uint256","name":"_f","type":"uint256"},{"internalType":"uint256","name":"_g","type":"uint256"},{"internalType":"uint256","name":"_h","type":"uint256"},{"internalType":"uint256","name":"_i","type":"uint256"}],"name":"monica_init","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610542806100606000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806304f77cfa146100515780634059e88714610073578063fd922a42146101c5578063ffa644851461020f575b600080fd5b61005961028e565b604051808215151515815260200191505060405180910390f35b6101c36004803603604081101561008957600080fd5b81019080803590602001906401000000008111156100a657600080fd5b8201836020820111156100b857600080fd5b803590602001918460018302840111640100000000831117156100da57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561013d57600080fd5b82018360208201111561014f57600080fd5b8035906020019184600183028401116401000000008311171561017157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610362565b005b6101cd61049e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61028c600480360361012081101561022657600080fd5b810190808035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506104c3565b005b6000806009546008546007541818600654600554600454181860035460025460015418180101905060006009546006546003540101600854600554600254010160075460045460015401011818905063aabbccdd818301106102ef57600080fd5b708261e26b90505061031256e5afb60721cb821161030c57600080fd5b8082027ef35b6080614321368282376084810151606401816080016143855161051756101561033a57600080fd5b6f65e670d9bd540cea22fdab97e36840e2818303101561035957600080fd5b60019250505090565b61036a61028e565b61037357600080fd5b716111d850336107ef16565b908018915a905660701b6dffffffffffffffffffffffffffff19168280519060200120141561049a576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376fe1e92826040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561043557808201518184015260208101905061041a565b50505050905090810190601f1680156104625780820380516001836020036101000a031916815260200191505b5092505050600060405180830381600087803b15801561048157600080fd5b505af1158015610495573d6000803e3d6000fd5b505050505b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b88600181905550876002819055508660038190555085600481905550846005819055508360068190555082600781905550816008819055508060098190555050505050505050505056fea265627a7a723158205b60025b8060051461049a57818160041b1c61ffff16919060010161051a564d64736f6c634300050b0032

Deployed ByteCode Sourcemap

371:1220:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;371:1220:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;919:426;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1351:231;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1351:231:0;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;1351:231:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1351:231:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1351:231:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;1351:231:0;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;1351:231:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1351:231:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1351:231:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;1351:231:0;;;;;;;;;;;;;;;:::i;:::-;;389:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;634:279;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;634:279:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;919:426;956:4;972:10;1006:1;;1004;;1002;;:3;:5;998:1;;996;;994;;:3;:5;990:1;;988;;986;;:3;:5;985:15;:23;972:36;;1019:10;1053:1;;1051;;1049;;:3;:5;1045:1;;1043;;1041;;:3;:5;1037:1;;1035;;1033;;:3;:5;1032:15;:23;1019:36;;1084:10;1079:2;1074;:7;:20;1066:29;;;;;;1119:36;1114:2;:41;1106:50;;;;;;1247:2;1244;:5;1176:64;:73;;1168:82;;;;;;1280:34;1274:2;1269;:7;:45;;1261:54;;;;;;1333:4;1326:11;;;;919:426;:::o;1351:231::-;1430:7;:5;:7::i;:::-;1422:16;;;;;;1488:38;1480:47;;1472:56;;;1463:4;1453:15;;;;;;:75;1449:126;;;1545:6;;;;;;;;;;;:12;;;1558:4;1545:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;1545:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1545:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1545:18:0;;;;1449:126;1351:231;;:::o;389:21::-;;;;;;;;;;;;;:::o;634:279::-;783:2;781:1;:4;;;;798:2;796:1;:4;;;;813:2;811:1;:4;;;;828:2;826:1;:4;;;;843:2;841:1;:4;;;;858:2;856:1;:4;;;;873:2;871:1;:4;;;;888:2;886:1;:4;;;;903:2;901:1;:4;;;;634:279;;;;;;;;;:::o

Swarm Source

bzzr://5b60025b8060051461049a57818160041b1c61ffff16919060010161051a564d
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading