Sponsored Link:   WELL – WORKING HEALTHCARE U.S. PLATFORM - RAISED $3M IN PRE-ICO – JOIN NOW WITH 40% BONUS
Contract Overview
ETH Balance: 0 Ether
ETH USD Value: $0
No Of Transactions: 5 txns
  Latest 5 txns

TxHash Age From To Value [TxFee]
0xe08e95a46e398dfc36e18f39629cceddaa053d0362cbb4a62d5b5b6bbcf59995212 days 18 hrs ago0x7616382a90f76b87b9dd098e219aefb42c486888  IN   0x333f37329c6d2346001501f235d33bf68ec1cf5e0 Ether0.00050856
0x442b8702d3b9ad12af85d0ab14804c49a02be8904283bf8a259ffde9f4d38bf2212 days 18 hrs ago0x7616382a90f76b87b9dd098e219aefb42c486888  IN   0x333f37329c6d2346001501f235d33bf68ec1cf5e0 Ether0.000810768
0x8b0fe9fc3d01ed98b65ffc97d58d0c5fb96d6db7798e582050ec98d0f37d381f212 days 20 hrs ago0x9c130d47271261d3ffc86eb9204c43959e2de5df  IN   0x333f37329c6d2346001501f235d33bf68ec1cf5e0 Ether0.000189068
0xfda0263f69005c18230a22258af2b9c2f5d27075a90532ee54fa29980908d2fa212 days 20 hrs ago0x9c130d47271261d3ffc86eb9204c43959e2de5df  IN   0x333f37329c6d2346001501f235d33bf68ec1cf5e0 Ether0.000359028
0xac6b23d4072d9ba57951f3322389a26dab3aa0f4d46c586ad60df15d8d82cc02212 days 20 hrs ago0x9c130d47271261d3ffc86eb9204c43959e2de5df  IN    Contract Creation0 Ether0.002734452
[ 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 ZeroFunctionSelector (very low-severity), DelegateCallReturnValue (low-severity), ECRecoverMalformedInput (medium-severity), SkipEmptyStringLiteral (low-severity) Solidity compiler bugs.

Contract Source Code Verified
Contract Name: BloquidIssuer
Compiler Version: v0.4.11+commit.68ef5810
Optimization Enabled: Yes
Runs (Optimiser):  0



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.11;

contract Ambi2 {
    function hasRole(address, bytes32, address) constant returns(bool);
    function claimFor(address, address) returns(bool);
    function isOwner(address, address) constant returns(bool);
}

contract Ambi2Enabled {
    Ambi2 ambi2;

    modifier onlyRole(bytes32 _role) {
        if (address(ambi2) != 0x0 && ambi2.hasRole(this, _role, msg.sender)) {
            _;
        }
    }

    // Perform only after claiming the node, or claim in the same tx.
    function setupAmbi2(Ambi2 _ambi2) returns(bool) {
        if (address(ambi2) != 0x0) {
            return false;
        }

        ambi2 = _ambi2;
        return true;
    }
}

contract Ambi2EnabledFull is Ambi2Enabled {
    // Setup and claim atomically.
    function setupAmbi2(Ambi2 _ambi2) returns(bool) {
        if (address(ambi2) != 0x0) {
            return false;
        }
        if (!_ambi2.claimFor(this, msg.sender) && !_ambi2.isOwner(this, msg.sender)) {
            return false;
        }

        ambi2 = _ambi2;
        return true;
    }
}

contract EToken2Interface {
    function reissueAsset(bytes32 _symbol, uint _value) returns(bool);
    function changeOwnership(bytes32 _symbol, address _newOwner) returns(bool);
}

contract AssetProxy {
    EToken2Interface public etoken2;
    bytes32 public etoken2Symbol;
    function transferWithReference(address _to, uint _value, string _reference) returns (bool);
}

contract BloquidIssuer is Ambi2EnabledFull {

    AssetProxy public assetProxy;

    function setupAssetProxy(AssetProxy _assetProxy) onlyRole("__root__") returns(bool) {
        if ((address(assetProxy) != 0x0) || (address(_assetProxy) == 0x0)) {
            return false;
        }
        assetProxy = _assetProxy;
        return true;
    }

    function issueTokens(uint _value, string _regNumber) onlyRole("issuer") returns(bool) {
        bytes32 symbol = assetProxy.etoken2Symbol();
        EToken2Interface etoken2 = assetProxy.etoken2();
        if (!etoken2.reissueAsset(symbol, _value)) {
            return false;
        }
        if (!assetProxy.transferWithReference(msg.sender, _value, _regNumber)) {
            throw;
        }
        return true;
    }

    function changeAssetOwner(address _newOwner) onlyRole("__root__") returns(bool) {
        if (_newOwner == 0x0) {
            return false;
        }
        bytes32 symbol = assetProxy.etoken2Symbol();
        EToken2Interface etoken2 = assetProxy.etoken2();
        if (!etoken2.changeOwnership(symbol, _newOwner)) {
            return false;
        }
        return true;
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"assetProxy","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_ambi2","type":"address"}],"name":"setupAmbi2","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeAssetOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_assetProxy","type":"address"}],"name":"setupAssetProxy","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"},{"name":"_regNumber","type":"string"}],"name":"issueTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000c57fe5b5b6109348061001c6000396000f300606060405263ffffffff60e060020a6000350416630b1350cf811461004d5780637a386e8814610079578063dde3ae6d146100a9578063ee4ca97e146100d9578063ef941dca14610109575bfe5b341561005557fe5b61005d610174565b60408051600160a060020a039092168252519081900360200190f35b341561008157fe5b610095600160a060020a0360043516610183565b604080519115158252519081900360200190f35b34156100b157fe5b610095600160a060020a03600435166102f8565b604080519115158252519081900360200190f35b34156100e157fe5b610095600160a060020a0360043516610514565b604080519115158252519081900360200190f35b341561011157fe5b60408051602060046024803582810135601f8101859004850286018501909652858552610095958335959394604494939290920191819084018382808284375094965061060f95505050505050565b604080519115158252519081900360200190f35b600154600160a060020a031681565b60008054600160a060020a03161561019d575060006102f3565b81600160a060020a031663b4ba9e1130336000604051602001526040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182600160a060020a0316600160a060020a0316815260200192505050602060405180830381600087803b151561021757fe5b6102c65a03f1151561022557fe5b50506040515115905080156102c7575081600160a060020a0316637ddc02d430336000604051602001526040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182600160a060020a0316600160a060020a0316815260200192505050602060405180830381600087803b15156102af57fe5b6102c65a03f115156102bd57fe5b5050604051511590505b156102d4575060006102f3565b5060008054600160a060020a031916600160a060020a03831617905560015b919050565b600080548190819060c060020a675f5f726f6f745f5f0290600160a060020a03161580159061039e575060008054604080516020908101849052815160e160020a63169f2bcd028152600160a060020a03308116600483015260248201879052338116604483015292519290931693632d3e579a9360648082019492918390030190829087803b151561038757fe5b6102c65a03f1151561039557fe5b50506040515190505b1561050a57600160a060020a03851615156103bc576000935061050a565b6001546040805160006020918201819052825160e260020a63299b9b970281529251600160a060020a039094169363a66e6e5c9360048082019493918390030190829087803b151561040a57fe5b6102c65a03f1151561041857fe5b505060408051805160015460006020938401819052845160e060020a63406838b30281529451929850600160a060020a03909116945063406838b3936004808201949392918390030190829087803b151561046f57fe5b6102c65a03f1151561047d57fe5b505060408051805160006020928301819052835160e160020a637ec1c8af02815260048101899052600160a060020a038b811660248301529451929750938716945063fd83915e936044808201949392918390030190829087803b15156104e057fe5b6102c65a03f115156104ee57fe5b50506040515115159050610505576000935061050a565b600193505b5b5b505050919050565b6000805460c060020a675f5f726f6f745f5f0290600160a060020a0316158015906105b6575060008054604080516020908101849052815160e160020a63169f2bcd028152600160a060020a03308116600483015260248201879052338116604483015292519290931693632d3e579a9360648082019492918390030190829087803b151561059f57fe5b6102c65a03f115156105ad57fe5b50506040515190505b1561060757600154600160a060020a03161515806105db5750600160a060020a038316155b156105e95760009150610607565b60018054600160a060020a031916600160a060020a03851617815591505b5b5b50919050565b600080548190819060d160020a6534b9b9bab2b90290600160a060020a0316158015906106b3575060008054604080516020908101849052815160e160020a63169f2bcd028152600160a060020a03308116600483015260248201879052338116604483015292519290931693632d3e579a9360648082019492918390030190829087803b151561069c57fe5b6102c65a03f115156106aa57fe5b50506040515190505b156108fd576001546040805160006020918201819052825160e260020a63299b9b970281529251600160a060020a039094169363a66e6e5c9360048082019493918390030190829087803b151561070657fe5b6102c65a03f1151561071457fe5b505060408051805160015460006020938401819052845160e060020a63406838b30281529451929850600160a060020a03909116945063406838b3936004808201949392918390030190829087803b151561076b57fe5b6102c65a03f1151561077957fe5b505060408051805160006020928301819052835160e160020a6370439e0302815260048101899052602481018c90529351919650600160a060020a038716945063e0873c06936044808201949392918390030190829087803b15156107da57fe5b6102c65a03f115156107e857fe5b505060405151151590506107ff57600093506108fd565b600154604080516000602091820152905160e160020a63561ae577028152600160a060020a033381811660048401908152602484018c90526060604485019081528b5160648601528b51939096169563ac35caee9592948d948d94608490920191850190808383821561088d575b80518252602083111561088d57601f19909201916020918201910161086d565b505050905090810190601f1680156108b95780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15156108d657fe5b6102c65a03f115156108e457fe5b505060405151151590506108f85760006000fd5b600193505b5b5b505050929150505600a165627a7a72305820dd1f801f91b17d33d7e0a5a8b642814a3fbaa4818caf5e862cd128ef52b6db8b0029

   Swarm Source:
bzzr://dd1f801f91b17d33d7e0a5a8b642814a3fbaa4818caf5e862cd128ef52b6db8b

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.