Latest 11 txns

TxHash Age From To Value [TxFee]
0xe89619c71da648c24e385d0cde26817f74444892c11e31a4ba2cd7964aee72a412 days 12 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000051335
0xc3fa68f3804265234961cd8eb53b9d89b706c204699e327a02f5f02b95b1909e12 days 12 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000051335
0x7842c97c7a73eb204ba1c18027d708bb1c701db2dc2094c9b303fc4fdd3b29a912 days 12 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000051335
0x2d1385e423c5e5053c7baaba6eab169120c052c8f9093ee26c462b5546b0b60912 days 12 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000051271
0x7b5a2929c7a6289df8965d4cc67fbd24ba086bb0671e46c0a4fc49290fc57b4112 days 14 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000090146
0x23cd53f3ff5a1cda3de217fefa6a2763554c6b0deadbc5e583259cda527d5be812 days 14 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000177491
0x8b617b8f836af0f3696271fdd54a5464f22c69f6be365db402325452cf05e05e12 days 14 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000090146
0x8d9b07cf92bad2c74e6b45077d4d14611198a26db605b4a1f4e57d8db4271e3a12 days 14 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000156653
0x5f1caea3995edaad7907f62dde6913a19d06f649b58deb85c227e5d0059c0b6912 days 14 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000156653
0x3f92e68e4ce57f73f8ee41b0d32cdfbb413d878ed576411bc7499c5b89d4b19b12 days 14 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN   0xfc53d1d6ddc2c6cdd403cb7dbf0f26140d82e12d0 Ether0.000177427
0x309b9ede91a9f0421adbb3dbce84bb0a5bf0d3f58ace54dc9415acd4030acb5912 days 15 hrs ago0x98a3a786f2caa319dc234d28fcd6e362a9750709  IN    Contract Creation0 Ether0.000525031
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: PolicyRegistry
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;

/**
 *  @title PolicyRegistry
 *  @author Enrique Piqueras - <[email protected]>
 *  @dev A contract to maintain a policy for each subcourt.
 */
contract PolicyRegistry {
    /* Events */

    /** @dev Emitted when a policy is updated.
     *  @param _subcourtID The ID of the policy's subcourt.
     *  @param _policy The URI of the policy JSON.
     */
    event PolicyUpdate(uint indexed _subcourtID, string _policy);

    /* Storage */

    address public governor;
    mapping(uint => string) public policies;

    /* Modifiers */

    /** @dev Requires that the sender is the governor. */
    modifier onlyByGovernor() {require(governor == msg.sender, "Can only be called by the governor."); _;}

    /* Constructor */

    /** @dev Constructs the `PolicyRegistry` contract.
     *  @param _governor The governor's address.
     */
    constructor(address _governor) public {governor = _governor;}

    /* External */

    /** @dev Changes the `governor` storage variable.
     *  @param _governor The new value for the `governor` storage variable.
     */
    function changeGovernor(address _governor) external onlyByGovernor {governor = _governor;}

    /** @dev Sets the policy for the specified subcourt.
     *  @param _subcourtID The ID of the specified subcourt.
     *  @param _policy The URI of the policy JSON.
     */
    function setPolicy(uint _subcourtID, string _policy) external onlyByGovernor {
        emit PolicyUpdate(_subcourtID, policies[_subcourtID]);
        policies[_subcourtID] = _policy;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"governor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"policies","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_governor","type":"address"}],"name":"changeGovernor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_subcourtID","type":"uint256"},{"name":"_policy","type":"string"}],"name":"setPolicy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_governor","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_subcourtID","type":"uint256"},{"indexed":false,"name":"_policy","type":"string"}],"name":"PolicyUpdate","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b5060405160208061072083398101806040528101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061069d806100836000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630c340a2414610067578063d3e89483146100be578063e4c0aaf414610164578063f00adf5e146101a7575b600080fd5b34801561007357600080fd5b5061007c6101ec565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100ca57600080fd5b506100e960048036038101908080359060200190929190505050610211565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561012957808201518184015260208101905061010e565b50505050905090810190601f1680156101565780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017057600080fd5b506101a5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102c1565b005b3480156101b357600080fd5b506101ea600480360381019080803590602001909291908035906020019082018035906020019190919293919293905050506103ee565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102b95780601f1061028e576101008083540402835291602001916102b9565b820191906000526020600020905b81548152906001019060200180831161029c57829003601f168201915b505050505081565b3373ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156103ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f43616e206f6e6c792062652063616c6c65642062792074686520676f7665726e81526020017f6f722e000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156104d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f43616e206f6e6c792062652063616c6c65642062792074686520676f7665726e81526020017f6f722e000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b827f6363e8b93c0bbb112f6247819a99f3c99f4a3e0f8e119a64e5ceb6edb9b3cc7b6001600086815260200190815260200160002060405180806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156105965780601f1061056b57610100808354040283529160200191610596565b820191906000526020600020905b81548152906001019060200180831161057957829003601f168201915b50509250505060405180910390a281816001600086815260200190815260200160002091906105c69291906105cc565b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061060d57803560ff191683800117855561063b565b8280016001018555821561063b579182015b8281111561063a57823582559160200191906001019061061f565b5b509050610648919061064c565b5090565b61066e91905b8082111561066a576000816000905550600101610652565b5090565b905600a165627a7a72305820480da20640b30e6b29707d3d115772a50a4a29d31cc91ca16a509734ba7abb83002900000000000000000000000098a3a786f2caa319dc234d28fcd6e362a9750709

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000098a3a786f2caa319dc234d28fcd6e362a9750709

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000098a3a786f2caa319dc234d28fcd6e362a9750709


   Swarm Source:
bzzr://480da20640b30e6b29707d3d115772a50a4a29d31cc91ca16a509734ba7abb83

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward