Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0.028 ETH
Eth Value
$73.43 (@ $2,622.41/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 57 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create Thread | 9225897 | 1865 days ago | IN | 0.001 ETH | 0.00015242 | ||||
Create Thread | 6125152 | 2378 days ago | IN | 0.001 ETH | 0.00099546 | ||||
Create Thread | 6113045 | 2380 days ago | IN | 0.001 ETH | 0.00222999 | ||||
Create Thread | 5996312 | 2400 days ago | IN | 0.001 ETH | 0.00060551 | ||||
Reply Thread | 5304809 | 2519 days ago | IN | 0.0005 ETH | 0.00026287 | ||||
Reply Thread | 5192204 | 2538 days ago | IN | 0.0005 ETH | 0.00042424 | ||||
Create Thread | 5192198 | 2538 days ago | IN | 0.001 ETH | 0.00068452 | ||||
Reply Thread | 5073283 | 2558 days ago | IN | 0.0005 ETH | 0.00014702 | ||||
Create Thread | 5072592 | 2558 days ago | IN | 0.001 ETH | 0.00009949 | ||||
Reply Thread | 5066462 | 2559 days ago | IN | 0.0005 ETH | 0.00086143 | ||||
Reply Thread | 5066451 | 2559 days ago | IN | 0.0005 ETH | 0.00039585 | ||||
Create Thread | 5066385 | 2559 days ago | IN | 0.001 ETH | 0.00061851 | ||||
Reply Thread | 5066372 | 2559 days ago | IN | 0.0005 ETH | 0.00037814 | ||||
Create Thread | 5066357 | 2559 days ago | IN | 0.001 ETH | 0.00048054 | ||||
Reply Thread | 5066330 | 2559 days ago | IN | 0.0005 ETH | 0.00053937 | ||||
Reply Thread | 5066318 | 2559 days ago | IN | 0.0005 ETH | 0.00018872 | ||||
Create Thread | 5066291 | 2559 days ago | IN | 0.001 ETH | 0.0001166 | ||||
Create Thread | 4999406 | 2571 days ago | IN | 0.001 ETH | 0.00026944 | ||||
Create Thread | 4874608 | 2593 days ago | IN | 0.001 ETH | 0.00540981 | ||||
Create Thread | 4826806 | 2601 days ago | IN | 0.001 ETH | 0.00004958 | ||||
Create Thread | 4815083 | 2603 days ago | IN | 0.001 ETH | 0.00720898 | ||||
Create Thread | 4739005 | 2616 days ago | IN | 0.001 ETH | 0.00066641 | ||||
Create Thread | 4568091 | 2645 days ago | IN | 0.001 ETH | 0.001 | ||||
Create Thread | 4471174 | 2661 days ago | IN | 0.001 ETH | 0.0033949 | ||||
Create Thread | 4451920 | 2664 days ago | IN | 0.001 ETH | 0.0009546 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
4440163 | 2666 days ago | 0.009 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FiveMedium
Compiler Version
v0.4.16+commit.d7661dd9
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-10-26 */ pragma solidity 0.4.16; contract FiveMedium { // owner address private owner; // fees uint256 public feeNewThread; uint256 public feeReplyThread; // // Database // // the threads struct thread { string text; string imageUrl; uint256 indexLastReply; uint256 indexFirstReply; uint256 timestamp; } mapping (uint256 => thread) public threads; uint256 public indexThreads = 1; // the replies struct reply { string text; string imageUrl; uint256 replyTo; uint256 nextReply; uint256 timestamp; } mapping (uint256 => reply) public replies; uint256 public indexReplies = 1; // last 20 active threads uint256[20] public lastThreads; uint256 public indexLastThreads = 0; // the index of the thread that was added last in lastThreads // // Events // event newThreadEvent(uint256 threadId, string text, string imageUrl, uint256 timestamp); event newReplyEvent(uint256 replyId, uint256 replyTo, string text, string imageUrl, uint256 timestamp); // // Meta // // constructor function FiveMedium(uint256 _feeNewThread, uint256 _feeReplyThread) public { owner = msg.sender; feeNewThread = _feeNewThread; feeReplyThread = _feeReplyThread; } // modifying the fees function SetFees(uint256 _feeNewThread, uint256 _feeReplyThread) public { require(owner == msg.sender); feeNewThread = _feeNewThread; feeReplyThread = _feeReplyThread; } // To get the money back function withdraw(uint256 amount) public { owner.transfer(amount); } // // Core // // To create a Thread function createThread(string _text, string _imageUrl) payable public { // collect the fees require(msg.value >= feeNewThread); // calculate a new thread ID and post threads[indexThreads] = thread(_text, _imageUrl, 0, 0, now); // add it to our last active threads array lastThreads[indexLastThreads] = indexThreads; indexLastThreads = addmod(indexLastThreads, 1, 20); // increment index // log! newThreadEvent(indexThreads, _text, _imageUrl, now); // increment index for next thread indexThreads += 1; } // To reply to a thread function replyThread(uint256 _replyTo, string _text, string _imageUrl) payable public { // collect the fees require(msg.value >= feeReplyThread); // make sure you can't reply to an inexistant thread require(_replyTo < indexThreads && _replyTo > 0); // post the reply with nextReply = 0 (this is the last message in the chain) replies[indexReplies] = reply(_text, _imageUrl, _replyTo, 0, now); // update the thread if(threads[_replyTo].indexFirstReply == 0){// we're first threads[_replyTo].indexFirstReply = indexReplies; threads[_replyTo].indexLastReply = indexReplies; } else { // we're not first so we update the previous reply as well replies[threads[_replyTo].indexLastReply].nextReply = indexReplies; threads[_replyTo].indexLastReply = indexReplies; } // update the last active threads for (uint8 i = 0; i < 20; i++) { if(lastThreads[i] == _replyTo) { break; // already in the list } if(i == 19) { lastThreads[indexLastThreads] = _replyTo; indexLastThreads = addmod(indexLastThreads, 1, 20); } } // log! newReplyEvent(indexReplies, _replyTo, _text, _imageUrl, now); // increment index for next reply indexReplies += 1; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"lastThreads","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_feeNewThread","type":"uint256"},{"name":"_feeReplyThread","type":"uint256"}],"name":"SetFees","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feeNewThread","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"replies","outputs":[{"name":"text","type":"string"},{"name":"imageUrl","type":"string"},{"name":"replyTo","type":"uint256"},{"name":"nextReply","type":"uint256"},{"name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_replyTo","type":"uint256"},{"name":"_text","type":"string"},{"name":"_imageUrl","type":"string"}],"name":"replyThread","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"feeReplyThread","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"indexReplies","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"indexLastThreads","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_text","type":"string"},{"name":"_imageUrl","type":"string"}],"name":"createThread","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"indexThreads","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"threads","outputs":[{"name":"text","type":"string"},{"name":"imageUrl","type":"string"},{"name":"indexLastReply","type":"uint256"},{"name":"indexFirstReply","type":"uint256"},{"name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_feeNewThread","type":"uint256"},{"name":"_feeReplyThread","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"threadId","type":"uint256"},{"indexed":false,"name":"text","type":"string"},{"indexed":false,"name":"imageUrl","type":"string"},{"indexed":false,"name":"timestamp","type":"uint256"}],"name":"newThreadEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"replyId","type":"uint256"},{"indexed":false,"name":"replyTo","type":"uint256"},{"indexed":false,"name":"text","type":"string"},{"indexed":false,"name":"imageUrl","type":"string"},{"indexed":false,"name":"timestamp","type":"uint256"}],"name":"newReplyEvent","type":"event"}]
Contract Creation Code
6060604052600160045560016006556000601b55341561001e57600080fd5b604051604080610c2e83398101604052808051919060200180519150505b60008054600160a060020a03191633600160a060020a0316179055600182905560028190555b50505b610bba806100746000396000f300606060405236156100b75763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631707599281146100bc5780632e1a7d4d146100e45780633be6e637146100fc57806358c0bde0146101175780635c7c366d1461013c5780637cdcc5141461026d5780638783d407146102fc578063c37d8a7e14610321578063c3c6e20214610346578063cb1650b41461036b578063d9a7556f146103f5578063f552b2ba1461041a575b600080fd5b34156100c757600080fd5b6100d260043561054b565b60405190815260200160405180910390f35b34156100ef57600080fd5b6100fa600435610563565b005b341561010757600080fd5b6100fa6004356024356105a7565b005b341561012257600080fd5b6100d26105de565b60405190815260200160405180910390f35b341561014757600080fd5b6101526004356105e4565b60405160408101849052606081018390526080810182905260a08082528654600260001961010060018416150201909116049082018190528190602082019060c0830190899080156101e55780601f106101ba576101008083540402835291602001916101e5565b820191906000526020600020905b8154815290600101906020018083116101c857829003601f168201915b50508381038252875460026000196101006001841615020190911604808252602090910190889080156102595780601f1061022e57610100808354040283529160200191610259565b820191906000526020600020905b81548152906001019060200180831161023c57829003601f168201915b505097505050505050505060405180910390f35b6100fa600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061060b95505050505050565b005b341561030757600080fd5b6100d26108c7565b60405190815260200160405180910390f35b341561032c57600080fd5b6100d26108cd565b60405190815260200160405180910390f35b341561035157600080fd5b6100d26108d3565b60405190815260200160405180910390f35b6100fa60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506108d995505050505050565b005b341561040057600080fd5b6100d2610abc565b60405190815260200160405180910390f35b341561042557600080fd5b610152600435610ac2565b60405160408101849052606081018390526080810182905260a08082528654600260001961010060018416150201909116049082018190528190602082019060c0830190899080156101e55780601f106101ba576101008083540402835291602001916101e5565b820191906000526020600020905b8154815290600101906020018083116101c857829003601f168201915b50508381038252875460026000196101006001841615020190911604808252602090910190889080156102595780601f1061022e57610100808354040283529160200191610259565b820191906000526020600020905b81548152906001019060200180831161023c57829003601f168201915b505097505050505050505060405180910390f35b6007816014811061055857fe5b0160005b5054905081565b60005473ffffffffffffffffffffffffffffffffffffffff1681156108fc0282604051600060405180830381858888f1935050505015156105a357600080fd5b5b50565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146105cf57600080fd5b600182905560028190555b5050565b60015481565b60056020526000908152604090206002810154600382015460048301546001840192919085565b60025460009034101561061d57600080fd5b6004548410801561062e5750600084115b151561063957600080fd5b60a0604051908101604090815284825260208083018590528183018790526000606084018190524260808501526006548152600590915220815181908051610685929160200190610aee565b506020820151816001019080516106a0929160200190610aee565b5060408201518160020155606082015181600301556080820151600490910155506000848152600360208190526040909120015415156106fd5760065460008581526003602081905260409091209081018290556002015561072b565b6006546000858152600360208181526040808420600201805485526005835290842083018590559288905252555b5060005b60148160ff1610156107985783600760ff83166014811061074c57fe5b0160005b5054141561075d57610798565b8060ff166013141561078f57836007601b5460148110151561077b57fe5b0160005b5055601b5460149060019008601b555b5b60010161072f565b7f0a10376fec2af3cfd7b84cf2d443bc3479c71cc96b6523d20fc876f4cdce745160065485858542604051808681526020018581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156108145780820151818401525b6020016107fb565b50505050905090810190601f1680156108415780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156108785780820151818401525b60200161085f565b50505050905090810190601f1680156108a55780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a16006805460010190555b50505050565b60025481565b60065481565b601b5481565b6001543410156108e857600080fd5b60a0604051908101604090815283825260208083018490526000828401819052606084018190524260808501526004548152600390915220815181908051610934929160200190610aee565b5060208201518160010190805161094f929160200190610aee565b506040820151816002015560608201518160030155608082015160049182015554601b549091506007906014811061098357fe5b0160005b5055601b5460149060019008601b556004547f19aec6a975c3906841d0bc9754286c99d208604b3e71f08a017e331f45b9a31390838342604051808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015610a0c5780820151818401525b6020016109f3565b50505050905090810190601f168015610a395780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015610a705780820151818401525b602001610a57565b50505050905090810190601f168015610a9d5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a16004805460010190555b5050565b60045481565b600360208190526000918252604090912060028101549181015460048201549192600184019290919085565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b2f57805160ff1916838001178555610b5c565b82800160010185558215610b5c579182015b82811115610b5c578251825591602001919060010190610b41565b5b50610b69929150610b6d565b5090565b610b8b91905b80821115610b695760008155600101610b73565b5090565b905600a165627a7a7230582034bfc0bbf8f654cce801143e7a31d2011e6c4b208cd5f35577cd15e2f7e5dd680029000000000000000000000000000000000000000000000000000e35fa931a000000000000000000000000000000000000000000000000000000038d7ea4c68000
Deployed Bytecode
0x606060405236156100b75763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631707599281146100bc5780632e1a7d4d146100e45780633be6e637146100fc57806358c0bde0146101175780635c7c366d1461013c5780637cdcc5141461026d5780638783d407146102fc578063c37d8a7e14610321578063c3c6e20214610346578063cb1650b41461036b578063d9a7556f146103f5578063f552b2ba1461041a575b600080fd5b34156100c757600080fd5b6100d260043561054b565b60405190815260200160405180910390f35b34156100ef57600080fd5b6100fa600435610563565b005b341561010757600080fd5b6100fa6004356024356105a7565b005b341561012257600080fd5b6100d26105de565b60405190815260200160405180910390f35b341561014757600080fd5b6101526004356105e4565b60405160408101849052606081018390526080810182905260a08082528654600260001961010060018416150201909116049082018190528190602082019060c0830190899080156101e55780601f106101ba576101008083540402835291602001916101e5565b820191906000526020600020905b8154815290600101906020018083116101c857829003601f168201915b50508381038252875460026000196101006001841615020190911604808252602090910190889080156102595780601f1061022e57610100808354040283529160200191610259565b820191906000526020600020905b81548152906001019060200180831161023c57829003601f168201915b505097505050505050505060405180910390f35b6100fa600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061060b95505050505050565b005b341561030757600080fd5b6100d26108c7565b60405190815260200160405180910390f35b341561032c57600080fd5b6100d26108cd565b60405190815260200160405180910390f35b341561035157600080fd5b6100d26108d3565b60405190815260200160405180910390f35b6100fa60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506108d995505050505050565b005b341561040057600080fd5b6100d2610abc565b60405190815260200160405180910390f35b341561042557600080fd5b610152600435610ac2565b60405160408101849052606081018390526080810182905260a08082528654600260001961010060018416150201909116049082018190528190602082019060c0830190899080156101e55780601f106101ba576101008083540402835291602001916101e5565b820191906000526020600020905b8154815290600101906020018083116101c857829003601f168201915b50508381038252875460026000196101006001841615020190911604808252602090910190889080156102595780601f1061022e57610100808354040283529160200191610259565b820191906000526020600020905b81548152906001019060200180831161023c57829003601f168201915b505097505050505050505060405180910390f35b6007816014811061055857fe5b0160005b5054905081565b60005473ffffffffffffffffffffffffffffffffffffffff1681156108fc0282604051600060405180830381858888f1935050505015156105a357600080fd5b5b50565b6000543373ffffffffffffffffffffffffffffffffffffffff9081169116146105cf57600080fd5b600182905560028190555b5050565b60015481565b60056020526000908152604090206002810154600382015460048301546001840192919085565b60025460009034101561061d57600080fd5b6004548410801561062e5750600084115b151561063957600080fd5b60a0604051908101604090815284825260208083018590528183018790526000606084018190524260808501526006548152600590915220815181908051610685929160200190610aee565b506020820151816001019080516106a0929160200190610aee565b5060408201518160020155606082015181600301556080820151600490910155506000848152600360208190526040909120015415156106fd5760065460008581526003602081905260409091209081018290556002015561072b565b6006546000858152600360208181526040808420600201805485526005835290842083018590559288905252555b5060005b60148160ff1610156107985783600760ff83166014811061074c57fe5b0160005b5054141561075d57610798565b8060ff166013141561078f57836007601b5460148110151561077b57fe5b0160005b5055601b5460149060019008601b555b5b60010161072f565b7f0a10376fec2af3cfd7b84cf2d443bc3479c71cc96b6523d20fc876f4cdce745160065485858542604051808681526020018581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b838110156108145780820151818401525b6020016107fb565b50505050905090810190601f1680156108415780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b838110156108785780820151818401525b60200161085f565b50505050905090810190601f1680156108a55780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a16006805460010190555b50505050565b60025481565b60065481565b601b5481565b6001543410156108e857600080fd5b60a0604051908101604090815283825260208083018490526000828401819052606084018190524260808501526004548152600390915220815181908051610934929160200190610aee565b5060208201518160010190805161094f929160200190610aee565b506040820151816002015560608201518160030155608082015160049182015554601b549091506007906014811061098357fe5b0160005b5055601b5460149060019008601b556004547f19aec6a975c3906841d0bc9754286c99d208604b3e71f08a017e331f45b9a31390838342604051808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015610a0c5780820151818401525b6020016109f3565b50505050905090810190601f168015610a395780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015610a705780820151818401525b602001610a57565b50505050905090810190601f168015610a9d5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a16004805460010190555b5050565b60045481565b600360208190526000918252604090912060028101549181015460048201549192600184019290919085565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b2f57805160ff1916838001178555610b5c565b82800160010185558215610b5c579182015b82811115610b5c578251825591602001919060010190610b41565b5b50610b69929150610b6d565b5090565b610b8b91905b80821115610b695760008155600101610b73565b5090565b905600a165627a7a7230582034bfc0bbf8f654cce801143e7a31d2011e6c4b208cd5f35577cd15e2f7e5dd680029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000e35fa931a000000000000000000000000000000000000000000000000000000038d7ea4c68000
-----Decoded View---------------
Arg [0] : _feeNewThread (uint256): 4000000000000000
Arg [1] : _feeReplyThread (uint256): 1000000000000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000e35fa931a0000
Arg [1] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Swarm Source
bzzr://34bfc0bbf8f654cce801143e7a31d2011e6c4b208cd5f35577cd15e2f7e5dd68
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,622.41 | 0.028 | $73.43 |
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.