Hot answers tagged

19

Not true in the OP's case, but a cause of this problem is missing a semi-colon from the first line specifiying compiler version, e.g.: pragma solidity ^0.4.6;


13

Q: My impression of a DAO is of an organisation (or company) that can exist autonomously. What I'm not sure about is whether a smart contract, or set of smart contracts, be used to define a DAO. If that's the case, isn't a DAO just a smart contract? A: Yes A DAO on the Ethereum blockchain is a set of rules implemented as a Smart Contract (or code running ...


9

After the creation period ends on May 28th, you will be able to send DAO Tokens, similar to how you send ETH. You can send your entire amount of DAO Tokens or just a portion of them. It should be noted that with The DAO Tokens specifically, you cannot send the tokens if they are currently "tied up" in a vote. This prevents a single token from voting more ...


9

Smart contracts will contact the physical world in a similar way that the Internet calls the physical world. The Internet doesn't call the world: the world watches the Internet then acts. Similarly, the public Ethereum network and blockchain will not call the world: the world will watch it then act. Smart contracts can trigger events, and those that are ...


9

There are indeed many opportunities where Smart contracts can reduce the analog friction that is present with the current ownership of equity. The most obvious use case is of course the instant transfer of ownership that is paired with low costs and speed, due to cutting out the intermediaries and wet signatures. However, from there it's easy to go a step ...


8

If all profits and losses are on the blockchain then everything can easily be managed with smart contracts. For example boardroom provides tools for governance of Daos and it is a simple matter to write a contract that disperses funds to different parties . However where it gets challenging is the interface with the 'real world' legal system. As far as I'm ...


8

The only way I can think of to make this work is to require that DAO accounts are tied to real life identities. The verification process itself (3rd party verification of passports, notary seals, etc) would still rely on some element of trust. Even with an identification system there would be know way to know if some people were acting as proxies to control ...


8

Interface contracts work like other interface agreements in traditional object oriented languages. In your example, the interface specifies the functions a contract of type TokenInterface must implement to fit into the overall application framework. This allows you to customize code without having to implement everything from scratch. For example, in ...


7

I'm surprised about the confusion, or more the underlying lack of transparency, surrounding this very basic functionality. It's somewhat strange that the 'experts' haven't been communicative about this matter. There are two ways: Just transfer your DAO Tokens to an exchange and sell them. Choose the long and winding route of splitting into your own DAO and ...


6

The DAO gets a lot of comparisons to shareholders, but mostly in this sense: Your shares give you the right to vote and the right to collect "dividends" (reward tokens) and so it's in your best interest to vote, but you don't have to vote to collect your dividends. When there is a proposal to vote on, you call the "vote" function from your wallet with the ...


6

You have two choices: Sell on an exchange. (It is possible to send Tokens via http://www.myetherwallet.com/#the-dao or Mist) Split the DAO. (Only possible via Mist) If you want to split from The DAO, perhaps because you don't agree with a proposal or with the curators. It is a way to ensure the decentralization and autonomy of The DAO. One should note ...


6

There seems to be lots of confusion about what a Smart Contract really is. Let me put it simple to everyone: A Smart Contract is simply Programmable Transactions. DAO is a Smart Contract, and the way the transactions are programmed to happen in the DAO is when the majority of the voters (Token Holders Voting) agree in sending a certain amount of ether to a ...


6

Assumption: You have (fully-synced) geth on Linux, some DAO tokens, and access to the account you bought the DAO tokens with. First, you need The DAO’s contract ABI. This is the interface definition that allows you to interact with The DAO contract in the blockchain. Here it is in a gist. It’s long. https://gist.github.com/fivedogit/...


6

The first attack took place in transaction 0x0ec3f2488a93839524add10ea229e773f6bc891b4eb4794c3337d4495263790b that occurred in block 1718497 mined 9 hrs 15 mins ago (6/17/2016 3:34:48 AM). The attack seems to have stopped with the last transaction 0xa348da60799bff3ca804b3e49c96edebea44c5728a97f64bec3e21056d42f6e3 that occurred in block 1720245 mined 1 hr 51 ...


6

Even if the attacker managed to "withdraw" the funds, the DAO had very special conditions as the money was locked for 35 days. This allowed plenty of time for the Ethereum community to make an educated decision and hard fork the chain before the deadline. If there was no such lock-up, the attacker wouldn't probably have converted the funds to Bitcoin ...


5

[Responding to my own question with material that has come to light... ] 2 years ago (May 2014), Vitalik wrote a post on the official blog that attempts to differentiate between some of the ideas behind the Ethereum-related terminology. The explanation of a smart contract is thus: ...a smart contract is a mechanism involving digital assets and two or ...


5

Yep, tokens cant be transferred until the end of the Creation Phase... wait 25 more days and it will work. :-)


5

Here is an example Payout solidity contract created by the BlockApps team. This contracts comes with every project initiated using the Bloc framework for decentralized applications.


5

This topic is called "proof of individuality" and is open for a great solution. One possible solution works as follows: Around the planet, participants are meeting at the same time via video-chat and uniquely identifying one another. This should supposedly not allow anyone to be present in two videochats at the same time. From then on, the keys which have ...


5

It can't be forced. The devs can only offer code, not force everyone to run it. In addition, the devs are perfectly happy to let the community make the decision. See the statements by Vitalik and a geth core dev: https://www.reddit.com/r/ethereum/comments/4oj7ql/personal_statement_regarding_the_fork/ https://www.reddit.com/r/ethereum/comments/4ojsjm/...


5

Short answer: There's no timer. Something has to trigger the transaction to get it started and supply the gas so it can run. The Ethereum Alarm Clock is a cron-like solution for timed events. It involves sending it your callback and the time you need it to run and some Ether to pay for the gas. It's possible this is the timer solution you're looking for but ...


4

Your first port of call in understanding the DAO should be daohub.org/principles.html But in short, the DAO is an automated trust fund. A DAO token is what you buy off the DAO smart contract during it's creation phase. You pay x to the contract which then registers you as holding y tokens. At the end of the creation phase, you wil hold some % of total ...


4

This is a bit theoretical and I don't know of a practical way to use this right now but one thing people have been discussing is Proof of Passport. Modern passports contain data signed by the government that issued them, which can be read with an NFC reader. In theory it should be possible to create a Zero Knowledge Proof of information in the passport, so ...


4

The short answer is "No". The Ethereum foundation have been very public with there plans and activities but it is nevertheless clearly not a DAO. There are attempts in this direction but nothing concrete yet.


4

After the creation phase, no new tokens can be issued - so the exchange rate depends entirely on what people selling their DAO tokens price them at, and what people buying them are willing to pay.


4

Go to https://www.myetherwallet.com/#send-tokens. Enter your private key and unlock your wallet. Enter your Kraken address and the number of The DAO tokens you want to transfer. Ensure the "DAO" Radio button is selected. Click Generate Transaction.


4

Soft fork transactions would not be included in a block, so there's no way for miners to be paid. A key difference with all other transactions that encounter an exception, is that they are included in the blockchain. Inclusion in the blockchain is the consensus for how miners are effectively paid. A transaction with an exception has all state reverted, ...


4

First of all, in Solidity x || y is evaluated in lazy way, so in case x is true, y is not evaluated at all. This means, that in case transferFrom will fail, send will not be called. Also, throw "reverts" the transaction, i.e. rolls back all changes made be the transaction, including any ether or token transfers. So if transferFrom will fail, the ...


3

The Smart Insurance Contract This is getting most attention right now. The notion of automating the insurance policy once it is written into a smart contract is compelling. The idea that it will pay out against the insurable event without the policyholder having to a make a claim or the insurer having to administer the claim has significant attractions. ...


3

One way to do it is following the next protocol: Lock owner signs an authorisation with serial number i that says user with account A has the right to open lock L from date D1 to date D2. Lock user with account A signs also the authorisation and sends it to the door. Door just checks the authorisation is signed by both: owner and user. Note that the door ...


Only top voted, non community-wiki answers of a minimum length are eligible