Sponsored:   Temco - Join the Largest VC Backed ICO on the Bitcoin Network! TEMCO KYC Whitelist Starts Now!!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 81 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xb10c85274d2a58ddec72c1d826e75256ff93deadat txn 0x4c3b73055309275780fd73422ff344dec33a1558fb96e24e84755ae3f0d15504
 Latest 25 transactions from a total of 81 transactions

TxHash Age From To Value [TxFee]
0xecfd55cfe3cc2d22a578472637c11ac406bd9474b82e225df22e4a847b0510555 days 17 hrs ago0xb0a23f40de7f776a4f20153e8995ed3e7d7c8487  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00059256
0xb4185ddac3967c446b4e2f9e517144e18db93fd9d03cf924ba8ac92fbc90ab3f134 days 19 hrs ago0xb0a23f40de7f776a4f20153e8995ed3e7d7c8487  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00038444
0xa2ad0b2b04f7a2cb7622d06d279a7b9a664e4ba2dd777b6153270eb95fbd2589138 days 18 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.000491392
0x04edc33e172bcac3e849b1f32a4641710e8c2dbe17bd60bf48e415bef0dc6d7a166 days 18 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00019222
0xe3d59de5f33031337fb6383fe0eaad6174bc7a4f99e7b7550106e44bf8b83600166 days 18 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00044672
0xfc9de7fbb1f46c6bc6d8aeb9b58d05cb6b9351fc3394b7fec84badc1a2e9ff59180 days 23 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00019222
0x3255acdf79732e970a4fd025f0238fe025ece153ece691ed17bf2374e522ee2a180 days 23 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.000356064
0x2ddb533193cb019a8a005dc21fd7ee15284fa0e0afaa3dc291e60baf5714680d181 days 18 mins ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00044672
0x32e63b3f612503aff9172e37bd476841a2c5fe0eafa5ec36cc606a5483a581ff184 days 22 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00089256
0x98b5499b31840f39a6098287a2fc0a455d73b653fdde7cacfd6ad988fab4d40b185 days 15 mins ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00028348
0xffbe3c65c539fbb4cb63107ad49d929896bfafaa6fc7644d44670ddbf27dd1d9198 days 20 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00029628
0x243b32b76b0b4b78caa83acd572d66601a9e780a2006217e818a10a6e1830d0f230 days 18 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00038444
0xdba3be7c236fd8a1323c4cb5cd3ea458ce31691980352ac248a55ce63588038a230 days 18 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00089344
0x895fe47d960c229edce02df78ad85fdf6f72fd137f61034bdcd524c8f9691576243 days 11 hrs ago0xffd664328aa67981e0cddbe89d1c42e9ade6cf6d  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00097047
0x6d927f0adb58452ec18241724fb7d41cd6bfcababdda56d1ad4fe76cf22275b5268 days 13 hrs ago0xa97bc5dd7b32003398645edeb2178c91087f86d8  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.000965222
0x456b02c51b85d7ed51f209bbe7549f586a0d6cbdfaa1f3b425cd1c330d571fff268 days 13 hrs ago0xa97bc5dd7b32003398645edeb2178c91087f86d8  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.000965222
0xee73b2bc0f1413c1182352bf8320eeb6893d7354764b3ee78c6c3d5fa066a3bb268 days 19 hrs ago0xa97bc5dd7b32003398645edeb2178c91087f86d8  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.000965222
0x613fe79908165e93679fd4067b9c23da244def910dd40ab7040da1f64937e766271 days 4 hrs ago0x2362ff4167f76a1dca13e746ed3753acc404e3af  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00010523
0x7a0dd33c2b89071393c503e2ea61aeb423e06f0b9ce8b4d53d884730e9c1b246273 days 17 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.002044332
0x6a9724ad631481dd183cffd677d7c0f6c4423fbb041eda483f916de12b4f5012273 days 17 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.0008829
0x529e643b589c3b4460e0739e8294984d026ebabb984699588cb21a5356dbcad7273 days 17 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.0005829
0xc81da248da717c3538314920e411ec55ab7445c1b2600788d63d81da6f9b12b8273 days 17 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.0008829
0x75d120095f146be5f35cf0225ed0b85efe7abd79fb4c382f32c94eb672a13f46273 days 17 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00028634
0xdad07c3dc71e002c6fbc11b4145b3473166840da25cf617f1d903a3385a88e73273 days 19 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00029145
0x0b164abc8bf164017ac3bc3a8450215ed8ee5399ffe946286639abe109d8f26f273 days 19 hrs ago0xb10c85274d2a58ddec72c1d826e75256ff93dead  IN   0x5b1b5fea1b99d83ad479df0c222f0492385381dd0 Ether0.00029273
[ 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), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: TokenState
Compiler Text: v0.4.21+commit.dfe3193c
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

/*
-----------------------------------------------------------------
FILE HEADER
-----------------------------------------------------------------

file:       TokenState.sol
version:    1.0
author:     Dominic Romanowski
            Anton Jurisevic

date:       2018-2-24
checked:    Anton Jurisevic
approved:   Samuel Brooks

repo:       https://github.com/Havven/havven
commit:     34e66009b98aa18976226c139270970d105045e3

-----------------------------------------------------------------
CONTRACT DESCRIPTION
-----------------------------------------------------------------

An Owned contract, to be inherited by other contracts.
Requires its owner to be explicitly set in the constructor.
Provides an onlyOwner access modifier.

To change owner, the current owner must nominate the next owner,
who then has to accept the nomination. The nomination can be
cancelled before it is accepted by the new owner by having the
previous owner change the nomination (setting it to 0).
-----------------------------------------------------------------
*/

pragma solidity ^0.4.20;

contract Owned {
    address public owner;
    address public nominatedOwner;

    function Owned(address _owner)
        public
    {
        owner = _owner;
    }

    function nominateOwner(address _owner)
        external
        onlyOwner
    {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership()
        external
    {
        require(msg.sender == nominatedOwner);
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner
    {
        require(msg.sender == owner);
        _;
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

/*
-----------------------------------------------------------------
CONTRACT DESCRIPTION
-----------------------------------------------------------------

A contract that holds the state of an ERC20 compliant token.

This contract is used side by side with external state token
contracts, such as Havven and EtherNomin.
It provides an easy way to upgrade contract logic while
maintaining all user balances and allowances. This is designed
to to make the changeover as easy as possible, since mappings
are not so cheap or straightforward to migrate.

The first deployed contract would create this state contract,
using it as its store of balances.
When a new contract is deployed, it links to the existing
state contract, whose owner would then change its associated
contract to the new one.

-----------------------------------------------------------------
*/

contract TokenState is Owned {

    // the address of the contract that can modify balances and allowances
    // this can only be changed by the owner of this contract
    address public associatedContract;

    // ERC20 fields.
    mapping(address => uint) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    function TokenState(address _owner, address _associatedContract)
        Owned(_owner)
        public
    {
        associatedContract = _associatedContract;
        emit AssociatedContractUpdated(_associatedContract);
    }

    /* ========== SETTERS ========== */

    // Change the associated contract to a new address
    function setAssociatedContract(address _associatedContract)
        external
        onlyOwner
    {
        associatedContract = _associatedContract;
        emit AssociatedContractUpdated(_associatedContract);
    }

    function setAllowance(address tokenOwner, address spender, uint value)
        external
        onlyAssociatedContract
    {
        allowance[tokenOwner][spender] = value;
    }

    function setBalanceOf(address account, uint value)
        external
        onlyAssociatedContract
    {
        balanceOf[account] = value;
    }


    /* ========== MODIFIERS ========== */

    modifier onlyAssociatedContract
    {
        require(msg.sender == associatedContract);
        _;
    }

    /* ========== EVENTS ========== */

    event AssociatedContractUpdated(address _associatedContract);
}

/*
MIT License

Copyright (c) 2018 Havven

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_associatedContract","type":"address"}],"name":"setAssociatedContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"nominateOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"associatedContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"},{"name":"value","type":"uint256"}],"name":"setBalanceOf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"setAllowance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_owner","type":"address"},{"name":"_associatedContract","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_associatedContract","type":"address"}],"name":"AssociatedContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b60405160408061054e833981016040528080519190602001805160008054600160a060020a03808716600160a060020a031992831617909255600280549284169290911691909117905591507f73f20cff579e8a4086fa607db83867595f1b6a798e718c0bfa0b94a404128e03905081604051600160a060020a03909116815260200160405180910390a150506104a3806100ab6000396000f3006060604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166352f445ca81146100a857806353a47bb7146100c95780635b94db27146100f857806370a082311461011757806379ba5097146101485780638da5cb5b1461015b578063aefc4ccb1461016e578063b46310f614610181578063da46098c146101a3578063dd62ed3e146101cb575b600080fd5b34156100b357600080fd5b6100c7600160a060020a03600435166101f0565b005b34156100d457600080fd5b6100dc610273565b604051600160a060020a03909116815260200160405180910390f35b341561010357600080fd5b6100c7600160a060020a0360043516610282565b341561012257600080fd5b610136600160a060020a0360043516610305565b60405190815260200160405180910390f35b341561015357600080fd5b6100c7610317565b341561016657600080fd5b6100dc6103be565b341561017957600080fd5b6100dc6103cd565b341561018c57600080fd5b6100c7600160a060020a03600435166024356103dc565b34156101ae57600080fd5b6100c7600160a060020a0360043581169060243516604435610413565b34156101d657600080fd5b610136600160a060020a036004358116906024351661045a565b60005433600160a060020a0390811691161461020b57600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790557f73f20cff579e8a4086fa607db83867595f1b6a798e718c0bfa0b94a404128e0381604051600160a060020a03909116815260200160405180910390a150565b600154600160a060020a031681565b60005433600160a060020a0390811691161461029d57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790557f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051600160a060020a03909116815260200160405180910390a150565b60036020526000908152604090205481565b60015433600160a060020a0390811691161461033257600080fd5b6000546001547fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91600160a060020a039081169116604051600160a060020a039283168152911660208201526040908101905180910390a1600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600054600160a060020a031681565b600254600160a060020a031681565b60025433600160a060020a039081169116146103f757600080fd5b600160a060020a03909116600090815260036020526040902055565b60025433600160a060020a0390811691161461042e57600080fd5b600160a060020a0392831660009081526004602090815260408083209490951682529290925291902055565b6004602090815260009283526040808420909152908252902054815600a165627a7a723058209935728c67159e8666aaf1f8bebe605062165879ffdd6fcf02278a42ec68458b0029000000000000000000000000b10c85274d2a58ddec72c1d826e75256ff93dead000000000000000000000000b10c85274d2a58ddec72c1d826e75256ff93dead

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

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b10c85274d2a58ddec72c1d826e75256ff93dead
Arg [1] : 000000000000000000000000b10c85274d2a58ddec72c1d826e75256ff93dead


   Swarm Source:
bzzr://9935728c67159e8666aaf1f8bebe605062165879ffdd6fcf02278a42ec68458b

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.