Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Association
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-06-30 */ pragma solidity ^0.4.2; /* The token is used as a voting shares */ contract token { mapping (address => uint256) public balanceOf; } /* define 'owned' */ contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) throw; _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract tokenRecipient { event receivedEther(address sender, uint amount); event receivedTokens(address _from, uint256 _value, address _token, bytes _extraData); function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData){ Token t = Token(_token); if (!t.transferFrom(_from, this, _value)) throw; receivedTokens(_from, _value, _token, _extraData); } function () payable { receivedEther(msg.sender, msg.value); } } contract Token { function transferFrom(address _from, address _to, uint256 _value) returns (bool success); } /* The democracy contract itself */ contract Association is owned, tokenRecipient { /* Contract Variables and events */ uint public minimumQuorum; uint public debatingPeriodInMinutes; Proposal[] public proposals; uint public numProposals; token public sharesTokenAddress; event ProposalAdded(uint proposalID, address recipient, uint amount, string description); event Voted(uint proposalID, bool position, address voter); event ProposalTallied(uint proposalID, uint result, uint quorum, bool active); event ChangeOfRules(uint minimumQuorum, uint debatingPeriodInMinutes, address sharesTokenAddress); struct Proposal { address recipient; uint amount; string description; uint votingDeadline; bool executed; bool proposalPassed; uint numberOfVotes; bytes32 proposalHash; Vote[] votes; mapping (address => bool) voted; } struct Vote { bool inSupport; address voter; } /* modifier that allows only shareholders to vote and create new proposals */ modifier onlyShareholders { if (sharesTokenAddress.balanceOf(msg.sender) == 0) throw; _; } /* First time setup */ function Association(token sharesAddress, uint minimumSharesToPassAVote, uint minutesForDebate) payable { changeVotingRules(sharesAddress, minimumSharesToPassAVote, minutesForDebate); } /*change rules*/ function changeVotingRules(token sharesAddress, uint minimumSharesToPassAVote, uint minutesForDebate) onlyOwner { sharesTokenAddress = token(sharesAddress); if (minimumSharesToPassAVote == 0 ) minimumSharesToPassAVote = 1; minimumQuorum = minimumSharesToPassAVote; debatingPeriodInMinutes = minutesForDebate; ChangeOfRules(minimumQuorum, debatingPeriodInMinutes, sharesTokenAddress); } /* Function to create a new proposal */ function newProposal( address beneficiary, uint etherAmount, string JobDescription, bytes transactionBytecode ) onlyShareholders returns (uint proposalID) { proposalID = proposals.length++; Proposal p = proposals[proposalID]; p.recipient = beneficiary; p.amount = etherAmount; p.description = JobDescription; p.proposalHash = sha3(beneficiary, etherAmount, transactionBytecode); p.votingDeadline = now + debatingPeriodInMinutes * 1 minutes; p.executed = false; p.proposalPassed = false; p.numberOfVotes = 0; ProposalAdded(proposalID, beneficiary, etherAmount, JobDescription); numProposals = proposalID+1; return proposalID; } /* function to check if a proposal code matches */ function checkProposalCode( uint proposalNumber, address beneficiary, uint etherAmount, bytes transactionBytecode ) constant returns (bool codeChecksOut) { Proposal p = proposals[proposalNumber]; return p.proposalHash == sha3(beneficiary, etherAmount, transactionBytecode); } /* */ function vote(uint proposalNumber, bool supportsProposal) onlyShareholders returns (uint voteID) { Proposal p = proposals[proposalNumber]; if (p.voted[msg.sender] == true) throw; voteID = p.votes.length++; p.votes[voteID] = Vote({inSupport: supportsProposal, voter: msg.sender}); p.voted[msg.sender] = true; p.numberOfVotes = voteID +1; Voted(proposalNumber, supportsProposal, msg.sender); return voteID; } function executeProposal(uint proposalNumber, bytes transactionBytecode) { Proposal p = proposals[proposalNumber]; /* Check if the proposal can be executed */ if (now < p.votingDeadline /* has the voting deadline arrived? */ || p.executed /* has it been already executed? */ || p.proposalHash != sha3(p.recipient, p.amount, transactionBytecode)) /* Does the transaction code match the proposal? */ throw; /* tally the votes */ uint quorum = 0; uint yea = 0; uint nay = 0; for (uint i = 0; i < p.votes.length; ++i) { Vote v = p.votes[i]; uint voteWeight = sharesTokenAddress.balanceOf(v.voter); quorum += voteWeight; if (v.inSupport) { yea += voteWeight; } else { nay += voteWeight; } } /* execute result */ if (quorum <= minimumQuorum) { /* Not enough significant voters */ throw; } else if (yea > nay ) { /* has quorum and was approved */ p.executed = true; if (!p.recipient.call.value(p.amount * 1 ether)(transactionBytecode)) { throw; } p.proposalPassed = true; } else { p.proposalPassed = false; } // Fire Events ProposalTallied(proposalNumber, yea - nay, quorum, p.proposalPassed); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"executed","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"numberOfVotes","type":"uint256"},{"name":"proposalHash","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"executeProposal","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sharesTokenAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numProposals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"sharesAddress","type":"address"},{"name":"minimumSharesToPassAVote","type":"uint256"},{"name":"minutesForDebate","type":"uint256"}],"name":"changeVotingRules","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"debatingPeriodInMinutes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"minimumQuorum","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"},{"name":"_token","type":"address"},{"name":"_extraData","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"etherAmount","type":"uint256"},{"name":"JobDescription","type":"string"},{"name":"transactionBytecode","type":"bytes"}],"name":"newProposal","outputs":[{"name":"proposalID","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"supportsProposal","type":"bool"}],"name":"vote","outputs":[{"name":"voteID","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"beneficiary","type":"address"},{"name":"etherAmount","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"checkProposalCode","outputs":[{"name":"codeChecksOut","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"sharesAddress","type":"address"},{"name":"minimumSharesToPassAVote","type":"uint256"},{"name":"minutesForDebate","type":"uint256"}],"payable":true,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"description","type":"string"}],"name":"ProposalAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"position","type":"bool"},{"indexed":false,"name":"voter","type":"address"}],"name":"Voted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"result","type":"uint256"},{"indexed":false,"name":"quorum","type":"uint256"},{"indexed":false,"name":"active","type":"bool"}],"name":"ProposalTallied","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"minimumQuorum","type":"uint256"},{"indexed":false,"name":"debatingPeriodInMinutes","type":"uint256"},{"indexed":false,"name":"sharesTokenAddress","type":"address"}],"name":"ChangeOfRules","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"receivedEther","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"_value","type":"uint256"},{"indexed":false,"name":"_token","type":"address"},{"indexed":false,"name":"_extraData","type":"bytes"}],"name":"receivedTokens","type":"event"}]
Contract Creation Code
60606040526040516060806113ec8339810160409081528151602083015191909201515b5b60008054600160a060020a03191633600160a060020a03161790555b6100588383836401000000006108bb61006182021704565b5b505050610100565b60005433600160a060020a0390811691161461007d5760006000fd5b60058054600160a060020a031916600160a060020a0385161790558115156100a457600191505b600182905560028190556005546040805184815260208101849052600160a060020a0390921682820152517f68259880819f96f54b67d672fefc666565de06099c91b57a689a42073ba090c99181900360600190a15b5b505050565b6112dd8061010f6000396000f300606060405236156100c25763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663013cf08b811461010e578063237e9492146101ec57806327ebcf0e14610245578063400e394914610271578063520910471461029357806369bd3436146102b75780638160f0b5146102d95780638da5cb5b146102fb5780638f4ffcb114610327578063b1050da514610395578063c9d27afe14610447578063eceb294514610471578063f2fde38b146104ea575b61010c5b60408051600160a060020a033316815234602082015281517fa398b89ba344a0b23a0b9de53db298b2a1a868b396c1878b7e9dcbafecd49b13929181900390910190a15b565b005b341561011657fe5b610121600435610508565b60408051600160a060020a038a1681526020810189905260608101879052851515608082015284151560a082015260c0810184905260e08101839052610100918101828152885460026001821615850260001901909116049282018390529091610120830190899080156101d65780601f106101ab576101008083540402835291602001916101d6565b820191906000526020600020905b8154815290600101906020018083116101b957829003601f168201915b5050995050505050505050505060405180910390f35b34156101f457fe5b60408051602060046024803582810135601f810185900485028601850190965285855261010c958335959394604494939290920191819084018382808284375094965061056995505050505050565b005b341561024d57fe5b6102556108a6565b60408051600160a060020a039092168252519081900360200190f35b341561027957fe5b6102816108b5565b60408051918252519081900360200190f35b341561029b57fe5b61010c600160a060020a03600435166024356044356108bb565b005b34156102bf57fe5b610281610967565b60408051918252519081900360200190f35b34156102e157fe5b61028161096d565b60408051918252519081900360200190f35b341561030357fe5b610255610973565b60408051600160a060020a039092168252519081900360200190f35b341561032f57fe5b604080516020600460643581810135601f810184900484028501840190955284845261010c948235600160a060020a039081169560248035966044359093169594608494929391019190819084018382808284375094965061098295505050505050565b005b341561039d57fe5b604080516020600460443581810135601f8101849004840285018401909552848452610281948235600160a060020a031694602480359560649492939190920191819084018382808284375050604080516020601f89358b01803591820183900483028401830190945280835297999881019791965091820194509250829150840183828082843750949650610b0895505050505050565b60408051918252519081900360200190f35b341561044f57fe5b6102816004356024351515610d9b565b60408051918252519081900360200190f35b341561047957fe5b604080516020600460643581810135601f81018490048402850184019095528484526104d69482359460248035600160a060020a0316956044359594608494920191908190840183828082843750949650610f8295505050505050565b604080519115158252519081900360200190f35b34156104f257fe5b61010c600160a060020a0360043516611048565b005b600380548290811061051657fe5b906000526020600020906009020160005b50805460018201546003830154600484015460058501546006860154600160a060020a039095169650929460020193919260ff80831693610100909304169188565b600060006000600060006000600060038981548110151561058657fe5b906000526020600020906009020160005b50965086600301544210806105b05750600487015460ff165b8061064e5750865460018801546040516c01000000000000000000000000600160a060020a039093169283028152601481018290528a518b9190603482019060208401908083835b602083106106175780518252601f1990920191602091820191016105f8565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912060068d015414159450505050505b156106595760006000fd5b600095506000945060009350600092505b600787015483101561074d576007870180548490811061068657fe5b906000526020600020900160005b506005548154604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a0361010090950485166004820152925195975092909316936370a082319360248084019491938390030190829087803b151561070c57fe5b6102c65a03f1151561071a57fe5b50506040515183549781019790925060ff1615905061073c5793840193610741565b928301925b5b82600101925061066a565b600154861161075c5760006000fd5b838511156108355760048701805460ff191660019081179091558754908801546040518a51600160a060020a0390931692670de0b6b3a7640000909202918b91908190602084019080838382156107ce575b8051825260208311156107ce57601f1990920191602091820191016107ae565b505050905090810190601f1680156107fa5780820380516001836020036101000a031916815260200191505b5091505060006040518083038185876187965a03f192505050151561081f5760006000fd5b60048701805461ff001916610100179055610843565b60048701805461ff00191690555b5b6004870154604080518b8152868803602082015280820189905261010090920460ff1615156060830152517f4bdc4ffee1d0e901f1c0270e9917651a82a81a109b5736b546a1b26668c55c0e916080908290030190a15b505050505050505050565b600554600160a060020a031681565b60045481565b60005433600160a060020a039081169116146108d75760006000fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03851617905581151561090b57600191505b600182905560028190556005546040805184815260208101849052600160a060020a0390921682820152517f68259880819f96f54b67d672fefc666565de06099c91b57a689a42073ba090c99181900360600190a15b5b505050565b60025481565b60015481565b600054600160a060020a031681565b604080516000602091820181905282517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152308116602483015260448201889052935186948516936323b872dd936064808501949293928390030190829087803b15156109fc57fe5b6102c65a03f11515610a0a57fe5b50506040515115159050610a1e5760006000fd5b7f0eeb71b8926d7ed8f47a2cedf6b9b204e2001344c7fa20c696c9f06ea7c413c6858585856040518085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360008314610ac4575b805182526020831115610ac457601f199092019160209182019101610aa4565b505050905090810190601f168015610af05780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15b5050505050565b600554604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03338116600483015293519194859416926370a082319260248084019382900301818787803b1515610b7357fe5b6102c65a03f11515610b8157fe5b50506040515115159050610b955760006000fd5b6003805490610ba79060018301611091565b9150600382815481101515610bb857fe5b906000526020600020906009020160005b50805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038816178155600181018690558451909150610c0f90600283019060208701906110c3565b508585846040518084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182805190602001908083835b60208310610c6f5780518252601f199092019160209182019101610c50565b51815160209384036101000a60001901801990921691161790526040805192909401829003822060068a0155600254603c02420160038a015560048901805461ffff19169055600060058a0155898252600160a060020a038e16828201529281018c90526080606082018181528c51918301919091528b517f646fec02522b41e7125cfc859a64fd4f4cefd5dc3b6237ca0abe251ded1fa88198508a97508e96508d95508c94929350909160a0840191908501908083838215610d4d575b805182526020831115610d4d57601f199092019160209182019101610d2d565b505050905090810190601f168015610d795780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1600182016004555b5b50949350505050565b600554604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03338116600483015293519194859416926370a082319260248084019382900301818787803b1515610e0657fe5b6102c65a03f11515610e1457fe5b50506040515115159050610e285760006000fd5b6003805485908110610e3657fe5b906000526020600020906009020160005b50600160a060020a033316600090815260088201602052604090205490915060ff16151560011415610e795760006000fd5b60078101805490610e8d9060018301611142565b9150604060405190810160405280841515815260200133600160a060020a03168152508160070183815481101515610ec157fe5b906000526020600020900160005b508151815460209384015160ff199182169215159290921774ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a0393841602179092553316600081815260088501845260409081902080549093166001908117909355918501600585015581518781528615159381019390935282820152517f86abfce99b7dd908bec0169288797f85049ec73cbe046ed9de818fab3a497ae0916060908290030190a15b5b5092915050565b60006000600386815481101515610f9557fe5b906000526020600020906009020160005b5090508484846040518084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182805190602001908083835b602083106110085780518252601f199092019160209182019101610fe9565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120600687015414965050505050505b50949350505050565b60005433600160a060020a039081169116146110645760006000fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b81548183558181151161096157600902816009028360005260206000209182019101610961919061116c565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061110457805160ff1916838001178555611131565b82800160010185558215611131579182015b82811115611131578251825591602001919060010190611116565b5b5061113e9291506111ed565b5090565b8154818355818115116109615760008381526020902061096191810190830161120e565b5b505050565b6111ea91905b8082111561113e57805473ffffffffffffffffffffffffffffffffffffffff191681556000600182018190556111ab6002830182611247565b60006003830181905560048301805461ffff1916905560058301819055600683018190556111dd90600784019061128f565b50600901611172565b5090565b90565b6111ea91905b8082111561113e57600081556001016111f3565b5090565b90565b6111ea91905b8082111561113e57805474ffffffffffffffffffffffffffffffffffffffffff19168155600101611214565b5090565b90565b50805460018160011615610100020316600290046000825580601f1061126d575061108d565b601f01602090049060005260206000209081019061108d91906111ed565b5b50565b508054600082559060005260206000209081019061108d919061120e565b5b505600a165627a7a72305820a47e81c37aa00d1dde134d722d899e294a8f2f90a8fffcc10eb69bc49b724db40029000000000000000000000000c4742d73d8262d9fbfccefb52f2007a39deaba5100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000078
Deployed Bytecode
0x606060405236156100c25763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663013cf08b811461010e578063237e9492146101ec57806327ebcf0e14610245578063400e394914610271578063520910471461029357806369bd3436146102b75780638160f0b5146102d95780638da5cb5b146102fb5780638f4ffcb114610327578063b1050da514610395578063c9d27afe14610447578063eceb294514610471578063f2fde38b146104ea575b61010c5b60408051600160a060020a033316815234602082015281517fa398b89ba344a0b23a0b9de53db298b2a1a868b396c1878b7e9dcbafecd49b13929181900390910190a15b565b005b341561011657fe5b610121600435610508565b60408051600160a060020a038a1681526020810189905260608101879052851515608082015284151560a082015260c0810184905260e08101839052610100918101828152885460026001821615850260001901909116049282018390529091610120830190899080156101d65780601f106101ab576101008083540402835291602001916101d6565b820191906000526020600020905b8154815290600101906020018083116101b957829003601f168201915b5050995050505050505050505060405180910390f35b34156101f457fe5b60408051602060046024803582810135601f810185900485028601850190965285855261010c958335959394604494939290920191819084018382808284375094965061056995505050505050565b005b341561024d57fe5b6102556108a6565b60408051600160a060020a039092168252519081900360200190f35b341561027957fe5b6102816108b5565b60408051918252519081900360200190f35b341561029b57fe5b61010c600160a060020a03600435166024356044356108bb565b005b34156102bf57fe5b610281610967565b60408051918252519081900360200190f35b34156102e157fe5b61028161096d565b60408051918252519081900360200190f35b341561030357fe5b610255610973565b60408051600160a060020a039092168252519081900360200190f35b341561032f57fe5b604080516020600460643581810135601f810184900484028501840190955284845261010c948235600160a060020a039081169560248035966044359093169594608494929391019190819084018382808284375094965061098295505050505050565b005b341561039d57fe5b604080516020600460443581810135601f8101849004840285018401909552848452610281948235600160a060020a031694602480359560649492939190920191819084018382808284375050604080516020601f89358b01803591820183900483028401830190945280835297999881019791965091820194509250829150840183828082843750949650610b0895505050505050565b60408051918252519081900360200190f35b341561044f57fe5b6102816004356024351515610d9b565b60408051918252519081900360200190f35b341561047957fe5b604080516020600460643581810135601f81018490048402850184019095528484526104d69482359460248035600160a060020a0316956044359594608494920191908190840183828082843750949650610f8295505050505050565b604080519115158252519081900360200190f35b34156104f257fe5b61010c600160a060020a0360043516611048565b005b600380548290811061051657fe5b906000526020600020906009020160005b50805460018201546003830154600484015460058501546006860154600160a060020a039095169650929460020193919260ff80831693610100909304169188565b600060006000600060006000600060038981548110151561058657fe5b906000526020600020906009020160005b50965086600301544210806105b05750600487015460ff165b8061064e5750865460018801546040516c01000000000000000000000000600160a060020a039093169283028152601481018290528a518b9190603482019060208401908083835b602083106106175780518252601f1990920191602091820191016105f8565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912060068d015414159450505050505b156106595760006000fd5b600095506000945060009350600092505b600787015483101561074d576007870180548490811061068657fe5b906000526020600020900160005b506005548154604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a0361010090950485166004820152925195975092909316936370a082319360248084019491938390030190829087803b151561070c57fe5b6102c65a03f1151561071a57fe5b50506040515183549781019790925060ff1615905061073c5793840193610741565b928301925b5b82600101925061066a565b600154861161075c5760006000fd5b838511156108355760048701805460ff191660019081179091558754908801546040518a51600160a060020a0390931692670de0b6b3a7640000909202918b91908190602084019080838382156107ce575b8051825260208311156107ce57601f1990920191602091820191016107ae565b505050905090810190601f1680156107fa5780820380516001836020036101000a031916815260200191505b5091505060006040518083038185876187965a03f192505050151561081f5760006000fd5b60048701805461ff001916610100179055610843565b60048701805461ff00191690555b5b6004870154604080518b8152868803602082015280820189905261010090920460ff1615156060830152517f4bdc4ffee1d0e901f1c0270e9917651a82a81a109b5736b546a1b26668c55c0e916080908290030190a15b505050505050505050565b600554600160a060020a031681565b60045481565b60005433600160a060020a039081169116146108d75760006000fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03851617905581151561090b57600191505b600182905560028190556005546040805184815260208101849052600160a060020a0390921682820152517f68259880819f96f54b67d672fefc666565de06099c91b57a689a42073ba090c99181900360600190a15b5b505050565b60025481565b60015481565b600054600160a060020a031681565b604080516000602091820181905282517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152308116602483015260448201889052935186948516936323b872dd936064808501949293928390030190829087803b15156109fc57fe5b6102c65a03f11515610a0a57fe5b50506040515115159050610a1e5760006000fd5b7f0eeb71b8926d7ed8f47a2cedf6b9b204e2001344c7fa20c696c9f06ea7c413c6858585856040518085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360008314610ac4575b805182526020831115610ac457601f199092019160209182019101610aa4565b505050905090810190601f168015610af05780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15b5050505050565b600554604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03338116600483015293519194859416926370a082319260248084019382900301818787803b1515610b7357fe5b6102c65a03f11515610b8157fe5b50506040515115159050610b955760006000fd5b6003805490610ba79060018301611091565b9150600382815481101515610bb857fe5b906000526020600020906009020160005b50805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038816178155600181018690558451909150610c0f90600283019060208701906110c3565b508585846040518084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182805190602001908083835b60208310610c6f5780518252601f199092019160209182019101610c50565b51815160209384036101000a60001901801990921691161790526040805192909401829003822060068a0155600254603c02420160038a015560048901805461ffff19169055600060058a0155898252600160a060020a038e16828201529281018c90526080606082018181528c51918301919091528b517f646fec02522b41e7125cfc859a64fd4f4cefd5dc3b6237ca0abe251ded1fa88198508a97508e96508d95508c94929350909160a0840191908501908083838215610d4d575b805182526020831115610d4d57601f199092019160209182019101610d2d565b505050905090810190601f168015610d795780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1600182016004555b5b50949350505050565b600554604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a03338116600483015293519194859416926370a082319260248084019382900301818787803b1515610e0657fe5b6102c65a03f11515610e1457fe5b50506040515115159050610e285760006000fd5b6003805485908110610e3657fe5b906000526020600020906009020160005b50600160a060020a033316600090815260088201602052604090205490915060ff16151560011415610e795760006000fd5b60078101805490610e8d9060018301611142565b9150604060405190810160405280841515815260200133600160a060020a03168152508160070183815481101515610ec157fe5b906000526020600020900160005b508151815460209384015160ff199182169215159290921774ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a0393841602179092553316600081815260088501845260409081902080549093166001908117909355918501600585015581518781528615159381019390935282820152517f86abfce99b7dd908bec0169288797f85049ec73cbe046ed9de818fab3a497ae0916060908290030190a15b5b5092915050565b60006000600386815481101515610f9557fe5b906000526020600020906009020160005b5090508484846040518084600160a060020a0316600160a060020a03166c0100000000000000000000000002815260140183815260200182805190602001908083835b602083106110085780518252601f199092019160209182019101610fe9565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120600687015414965050505050505b50949350505050565b60005433600160a060020a039081169116146110645760006000fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b81548183558181151161096157600902816009028360005260206000209182019101610961919061116c565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061110457805160ff1916838001178555611131565b82800160010185558215611131579182015b82811115611131578251825591602001919060010190611116565b5b5061113e9291506111ed565b5090565b8154818355818115116109615760008381526020902061096191810190830161120e565b5b505050565b6111ea91905b8082111561113e57805473ffffffffffffffffffffffffffffffffffffffff191681556000600182018190556111ab6002830182611247565b60006003830181905560048301805461ffff1916905560058301819055600683018190556111dd90600784019061128f565b50600901611172565b5090565b90565b6111ea91905b8082111561113e57600081556001016111f3565b5090565b90565b6111ea91905b8082111561113e57805474ffffffffffffffffffffffffffffffffffffffffff19168155600101611214565b5090565b90565b50805460018160011615610100020316600290046000825580601f1061126d575061108d565b601f01602090049060005260206000209081019061108d91906111ed565b5b50565b508054600082559060005260206000209081019061108d919061120e565b5b505600a165627a7a72305820a47e81c37aa00d1dde134d722d899e294a8f2f90a8fffcc10eb69bc49b724db40029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c4742d73d8262d9fbfccefb52f2007a39deaba5100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000078
-----Decoded View---------------
Arg [0] : sharesAddress (address): 0xC4742D73D8262D9FBfcCefB52F2007a39dEaba51
Arg [1] : minimumSharesToPassAVote (uint256): 100
Arg [2] : minutesForDebate (uint256): 120
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c4742d73d8262d9fbfccefb52f2007a39deaba51
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000078
Swarm Source
bzzr://a47e81c37aa00d1dde134d722d899e294a8f2f90a8fffcc10eb69bc49b724db4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.