Overview
ETH Balance
0.10826412 ETH
Eth Value
$365.27 (@ $3,373.91/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 858 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Assemble Unicorn | 14312898 | 996 days ago | IN | 0.01007 ETH | 0.00216507 | ||||
Assemble Unicorn | 12351850 | 1301 days ago | IN | 0.00214 ETH | 0.00216507 | ||||
Transfer | 12187093 | 1326 days ago | IN | 0.03 ETH | 0.01019616 | ||||
Transfer | 12187071 | 1326 days ago | IN | 0.03 ETH | 0.00686774 | ||||
Transfer | 12187049 | 1326 days ago | IN | 0.03 ETH | 0.0072292 | ||||
Transfer | 12187009 | 1326 days ago | IN | 0.03 ETH | 0.00545476 | ||||
Transfer | 12186434 | 1326 days ago | IN | 0.002014 ETH | 0.00892164 | ||||
Transfer | 12186357 | 1326 days ago | IN | 0.01 ETH | 0.0065 | ||||
Transfer | 12186348 | 1326 days ago | IN | 0.01 ETH | 0.00446896 | ||||
Transfer | 12186340 | 1326 days ago | IN | 0.0021 ETH | 0.00519188 | ||||
Transfer | 12183336 | 1327 days ago | IN | 0.002014 ETH | 0.009295 | ||||
Transfer | 12183312 | 1327 days ago | IN | 0.002014 ETH | 0.00588194 | ||||
Assemble Unicorn | 12069661 | 1344 days ago | IN | 0.002014 ETH | 0.00850787 | ||||
Assemble Unicorn | 12046448 | 1348 days ago | IN | 0.002014 ETH | 0.01260189 | ||||
Assemble Unicorn | 12046025 | 1348 days ago | IN | 0.002014 ETH | 0.01004313 | ||||
Assemble Unicorn | 12045891 | 1348 days ago | IN | 0.0107 ETH | 0.01087473 | ||||
Assemble Unicorn | 12045853 | 1348 days ago | IN | 0.002014 ETH | 0.00959535 | ||||
Assemble Unicorn | 12045826 | 1348 days ago | IN | 0.002014 ETH | 0.00881442 | ||||
Assemble Unicorn | 12045826 | 1348 days ago | IN | 0.002014 ETH | 0.00881442 | ||||
Assemble Unicorn | 12045822 | 1348 days ago | IN | 0.002014 ETH | 0.0077371 | ||||
Assemble Unicorn | 12045820 | 1348 days ago | IN | 0.002014 ETH | 0.0077371 | ||||
Assemble Unicorn | 12045820 | 1348 days ago | IN | 0.002014 ETH | 0.0077371 | ||||
Assemble Unicorn | 12045817 | 1348 days ago | IN | 0.002014 ETH | 0.0077371 | ||||
Assemble Unicorn | 12045696 | 1348 days ago | IN | 0.002014 ETH | 0.01052833 | ||||
Assemble Unicorn | 12045684 | 1348 days ago | IN | 0.002015 ETH | 0.01343349 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14312898 | 996 days ago | 0.01007 ETH | ||||
12351850 | 1301 days ago | 0.00214 ETH | ||||
12187093 | 1326 days ago | 0.03 ETH | ||||
12186434 | 1326 days ago | 0.002014 ETH | ||||
12069661 | 1344 days ago | 0.002014 ETH | ||||
12046448 | 1348 days ago | 0.002014 ETH | ||||
12046025 | 1348 days ago | 0.002014 ETH | ||||
12045891 | 1348 days ago | 0.0107 ETH | ||||
12045853 | 1348 days ago | 0.002014 ETH | ||||
12045826 | 1348 days ago | 0.002014 ETH | ||||
12045826 | 1348 days ago | 0.002014 ETH | ||||
12045822 | 1348 days ago | 0.002014 ETH | ||||
12045820 | 1348 days ago | 0.002014 ETH | ||||
12045820 | 1348 days ago | 0.002014 ETH | ||||
12045817 | 1348 days ago | 0.002014 ETH | ||||
12045696 | 1348 days ago | 0.002014 ETH | ||||
12045684 | 1348 days ago | 0.002015 ETH | ||||
12045359 | 1348 days ago | 0.002014 ETH | ||||
12044699 | 1348 days ago | 0.002014 ETH | ||||
12041455 | 1349 days ago | 0.002014 ETH | ||||
12041054 | 1349 days ago | 0.002014 ETH | ||||
12040689 | 1349 days ago | 0.002014 ETH | ||||
12040657 | 1349 days ago | 0.002014 ETH | ||||
12040639 | 1349 days ago | 0.002014 ETH | ||||
12040537 | 1349 days ago | 0.002014 ETH |
Loading...
Loading
Contract Name:
CardboardUnicornAssembler
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-07-02 */ pragma solidity ^0.4.11; contract CardboardUnicorns { address public owner; function mint(address who, uint value); function changeOwner(address _newOwner); function withdraw(); function withdrawForeignTokens(address _tokenContract); } contract RealUnicornCongress { uint public priceOfAUnicornInFinney; } contract ForeignToken { function balanceOf(address _owner) constant returns (uint256); function transfer(address _to, uint256 _value) returns (bool); } contract CardboardUnicornAssembler { address public cardboardUnicornTokenAddress; address public realUnicornAddress = 0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359; address public owner = msg.sender; uint public pricePerUnicorn = 1 finney; uint public lastPriceSetDate = 0; event PriceUpdate(uint newPrice, address updater); modifier onlyOwner { require(msg.sender == owner); _; } /** * Change ownership of the assembler */ function changeOwner(address _newOwner) onlyOwner { owner = _newOwner; } function changeTokenOwner(address _newOwner) onlyOwner { CardboardUnicorns cu = CardboardUnicorns(cardboardUnicornTokenAddress); cu.changeOwner(_newOwner); } /** * Change the CardboardUnicorns token contract managed by this contract */ function changeCardboardUnicornTokenAddress(address _newTokenAddress) onlyOwner { CardboardUnicorns cu = CardboardUnicorns(_newTokenAddress); require(cu.owner() == address(this)); // We must be the owner of the token cardboardUnicornTokenAddress = _newTokenAddress; } /** * Change the real unicorn contract location. * This contract is used as a price reference; should the Ethereum Foundation * re-deploy their contract, this should be called to update the reference. */ function changeRealUnicornAddress(address _newUnicornAddress) onlyOwner { realUnicornAddress = _newUnicornAddress; } function withdraw(bool _includeToken) onlyOwner { if (_includeToken) { // First have the token contract send all its funds to its owner (which is us) CardboardUnicorns cu = CardboardUnicorns(cardboardUnicornTokenAddress); cu.withdraw(); } // Then send that whole total to our owner owner.transfer(this.balance); } function withdrawForeignTokens(address _tokenContract, bool _includeToken) onlyOwner { ForeignToken token = ForeignToken(_tokenContract); if (_includeToken) { // First have the token contract send its tokens to its owner (which is us) CardboardUnicorns cu = CardboardUnicorns(cardboardUnicornTokenAddress); cu.withdrawForeignTokens(_tokenContract); } // Then send that whole total to our owner uint256 amount = token.balanceOf(address(this)); token.transfer(owner, amount); } /** * Update the price of a CardboardUnicorn to be 1/1000 a real Unicorn's price */ function updatePriceFromRealUnicornPrice() { require(block.timestamp > lastPriceSetDate + 7 days); // If owner set the price, cannot sync right after RealUnicornCongress congress = RealUnicornCongress(realUnicornAddress); pricePerUnicorn = (congress.priceOfAUnicornInFinney() * 1 finney) / 1000; PriceUpdate(pricePerUnicorn, msg.sender); } /** * Set a specific price for a CardboardUnicorn */ function setPrice(uint _newPrice) onlyOwner { pricePerUnicorn = _newPrice; lastPriceSetDate = block.timestamp; PriceUpdate(pricePerUnicorn, msg.sender); } /** * Strap a horn to a horse! */ function assembleUnicorn() payable { if (msg.value >= pricePerUnicorn) { CardboardUnicorns cu = CardboardUnicorns(cardboardUnicornTokenAddress); cu.mint(msg.sender, msg.value / pricePerUnicorn); owner.transfer(msg.value); } } function() payable { assembleUnicorn(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeTokenOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"lastPriceSetDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newUnicornAddress","type":"address"}],"name":"changeRealUnicornAddress","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"cardboardUnicornTokenAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"assembleUnicorn","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"updatePriceFromRealUnicornPrice","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_includeToken","type":"bool"}],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_tokenContract","type":"address"},{"name":"_includeToken","type":"bool"}],"name":"withdrawForeignTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"pricePerUnicorn","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newTokenAddress","type":"address"}],"name":"changeCardboardUnicornTokenAddress","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"realUnicornAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newPrice","type":"uint256"},{"indexed":false,"name":"updater","type":"address"}],"name":"PriceUpdate","type":"event"}]
Contract Creation Code
60606040526001805473fb6916095ca1df60bb79ce92ce3ea74c37c5d359600160a060020a03199182161790915560028054909116600160a060020a03331617905566038d7ea4c680006003556000600455341561005957fe5b5b61095d806100696000396000f300606060405236156100b45763ffffffff60e060020a6000350416630f809adb81146100c557806331719c69146100e357806338c5a3dc146101055780633e8c34e51461012357806350f3dd7a1461014f5780637c842e5e146101595780638da5cb5b1461016b57806391b7f5ed14610197578063a6f9dae1146101ac578063a810a54c146101ca578063b520b68c146101e1578063c40940f414610204578063c9c666aa14610226578063d899299e14610244575b6100c35b6100c0610270565b5b565b005b34156100cd57fe5b6100c3600160a060020a0360043516610338565b005b34156100eb57fe5b6100f36103d1565b60408051918252519081900360200190f35b341561010d57fe5b6100c3600160a060020a03600435166103d7565b005b341561012b57fe5b610133610420565b60408051600160a060020a039092168252519081900360200190f35b6100c3610270565b005b341561016157fe5b6100c361042f565b005b341561017357fe5b61013361051b565b60408051600160a060020a039092168252519081900360200190f35b341561019f57fe5b6100c360043561052a565b005b34156101b457fe5b6100c3600160a060020a0360043516610597565b005b34156101d257fe5b6100c360043515156105e0565b005b34156101e957fe5b6100c3600160a060020a036004351660243515156106aa565b005b341561020c57fe5b6100f361084f565b60408051918252519081900360200190f35b341561022e57fe5b6100c3600160a060020a0360043516610855565b005b341561024c57fe5b610133610922565b60408051600160a060020a039092168252519081900360200190f35b60035460009034106103335750600054600354600160a060020a039091169081906340c10f19903390348115156102a357fe5b046040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15156102f257fe5b6102c65a03f1151561030057fe5b5050600254604051600160a060020a0390911691503480156108fc02916000818181858888f19350505050151561033357fe5b5b5b50565b60025460009033600160a060020a039081169116146103575760006000fd5b5060008054604080517fa6f9dae1000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015291519190921692839263a6f9dae1926024808301939282900301818387803b15156103ba57fe5b6102c65a03f115156103c857fe5b5050505b5b5050565b60045481565b60025433600160a060020a039081169116146103f35760006000fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600054600160a060020a031681565b60045460009062093a800142116104465760006000fd5b600160009054906101000a9004600160a060020a031690506103e881600160a060020a03166350c348786000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156104a757fe5b6102c65a03f115156104b557fe5b50506040515166038d7ea4c680000290508115156104cf57fe5b04600381905560408051918252600160a060020a033316602083015280517f59c33f94fc6c106ef0583145db590ce5a452add776c94e9d97507bcdf4e2137f9281900390910190a15b50565b600254600160a060020a031681565b60025433600160a060020a039081169116146105465760006000fd5b60038190554260045560408051828152600160a060020a033316602082015281517f59c33f94fc6c106ef0583145db590ce5a452add776c94e9d97507bcdf4e2137f929181900390910190a15b5b50565b60025433600160a060020a039081169116146105b35760006000fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60025460009033600160a060020a039081169116146105ff5760006000fd5b8115610672575060008054604080517f3ccfd60b0000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216928392633ccfd60b92600480820193929182900301818387803b151561066057fe5b6102c65a03f1151561066e57fe5b5050505b600254604051600160a060020a039182169130163180156108fc02916000818181858888f1935050505015156103cc57fe5b5b5b5050565b6002546000908190819033600160a060020a039081169116146106cd5760006000fd5b849250831561074b5760008054604080517fe58fc54c000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301529151919092169450849263e58fc54c926024808201939182900301818387803b151561073957fe5b6102c65a03f1151561074757fe5b5050505b82600160a060020a03166370a08231306000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b15156107ab57fe5b6102c65a03f115156107b957fe5b50506040805180516002546000602093840181905284517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018490529451929650908816945063a9059cbb936044808201949392918390030190829087803b151561083557fe5b6102c65a03f1151561084357fe5b5050505b5b5050505050565b60035481565b60025460009033600160a060020a039081169116146108745760006000fd5b81905030600160a060020a031681600160a060020a0316638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156108c757fe5b6102c65a03f115156108d557fe5b505060405151600160a060020a03169190911490506108f45760006000fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b5b5050565b600154600160a060020a0316815600a165627a7a723058206f6da1efdf23a9c109377788721d018f7e644c708510313a96708c5e7d5addea0029
Deployed Bytecode
0x606060405236156100b45763ffffffff60e060020a6000350416630f809adb81146100c557806331719c69146100e357806338c5a3dc146101055780633e8c34e51461012357806350f3dd7a1461014f5780637c842e5e146101595780638da5cb5b1461016b57806391b7f5ed14610197578063a6f9dae1146101ac578063a810a54c146101ca578063b520b68c146101e1578063c40940f414610204578063c9c666aa14610226578063d899299e14610244575b6100c35b6100c0610270565b5b565b005b34156100cd57fe5b6100c3600160a060020a0360043516610338565b005b34156100eb57fe5b6100f36103d1565b60408051918252519081900360200190f35b341561010d57fe5b6100c3600160a060020a03600435166103d7565b005b341561012b57fe5b610133610420565b60408051600160a060020a039092168252519081900360200190f35b6100c3610270565b005b341561016157fe5b6100c361042f565b005b341561017357fe5b61013361051b565b60408051600160a060020a039092168252519081900360200190f35b341561019f57fe5b6100c360043561052a565b005b34156101b457fe5b6100c3600160a060020a0360043516610597565b005b34156101d257fe5b6100c360043515156105e0565b005b34156101e957fe5b6100c3600160a060020a036004351660243515156106aa565b005b341561020c57fe5b6100f361084f565b60408051918252519081900360200190f35b341561022e57fe5b6100c3600160a060020a0360043516610855565b005b341561024c57fe5b610133610922565b60408051600160a060020a039092168252519081900360200190f35b60035460009034106103335750600054600354600160a060020a039091169081906340c10f19903390348115156102a357fe5b046040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15156102f257fe5b6102c65a03f1151561030057fe5b5050600254604051600160a060020a0390911691503480156108fc02916000818181858888f19350505050151561033357fe5b5b5b50565b60025460009033600160a060020a039081169116146103575760006000fd5b5060008054604080517fa6f9dae1000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015291519190921692839263a6f9dae1926024808301939282900301818387803b15156103ba57fe5b6102c65a03f115156103c857fe5b5050505b5b5050565b60045481565b60025433600160a060020a039081169116146103f35760006000fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600054600160a060020a031681565b60045460009062093a800142116104465760006000fd5b600160009054906101000a9004600160a060020a031690506103e881600160a060020a03166350c348786000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156104a757fe5b6102c65a03f115156104b557fe5b50506040515166038d7ea4c680000290508115156104cf57fe5b04600381905560408051918252600160a060020a033316602083015280517f59c33f94fc6c106ef0583145db590ce5a452add776c94e9d97507bcdf4e2137f9281900390910190a15b50565b600254600160a060020a031681565b60025433600160a060020a039081169116146105465760006000fd5b60038190554260045560408051828152600160a060020a033316602082015281517f59c33f94fc6c106ef0583145db590ce5a452add776c94e9d97507bcdf4e2137f929181900390910190a15b5b50565b60025433600160a060020a039081169116146105b35760006000fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60025460009033600160a060020a039081169116146105ff5760006000fd5b8115610672575060008054604080517f3ccfd60b0000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216928392633ccfd60b92600480820193929182900301818387803b151561066057fe5b6102c65a03f1151561066e57fe5b5050505b600254604051600160a060020a039182169130163180156108fc02916000818181858888f1935050505015156103cc57fe5b5b5b5050565b6002546000908190819033600160a060020a039081169116146106cd5760006000fd5b849250831561074b5760008054604080517fe58fc54c000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301529151919092169450849263e58fc54c926024808201939182900301818387803b151561073957fe5b6102c65a03f1151561074757fe5b5050505b82600160a060020a03166370a08231306000604051602001526040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b15156107ab57fe5b6102c65a03f115156107b957fe5b50506040805180516002546000602093840181905284517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018490529451929650908816945063a9059cbb936044808201949392918390030190829087803b151561083557fe5b6102c65a03f1151561084357fe5b5050505b5b5050505050565b60035481565b60025460009033600160a060020a039081169116146108745760006000fd5b81905030600160a060020a031681600160a060020a0316638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156108c757fe5b6102c65a03f115156108d557fe5b505060405151600160a060020a03169190911490506108f45760006000fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b5b5050565b600154600160a060020a0316815600a165627a7a723058206f6da1efdf23a9c109377788721d018f7e644c708510313a96708c5e7d5addea0029
Swarm Source
bzzr://6f6da1efdf23a9c109377788721d018f7e644c708510313a96708c5e7d5addea
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,374.73 | 0.1083 | $365.36 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.