Hello.
I have a question about general strategy of writing multiple contracts.
Something like http://ethereum.org/token tutorial assumes that you have one contract which manages all the available tokens.
What if you want to create multiple contracts that have same functions but different initializer values?
For example, A 101 Noob Intro to Programming Smart Contracts on Ethereum,
has a contract example called Conference
which manages buying/refunding tickets of one conference.
The contract is like https://gist.github.com/makoto/1be1b1b6dc5c5dcf1e48e734d69053a8 .
What if I want to write a service like meetup.com or eventbrite on top of blockchain so that I can let organisers to create conference contract which has same functions but different ticket prices, venue capacities, and so on?
Do I need to compile/deploy new contract every time new conference is organised, or is it possible to create some sort of master contract
which can fork multiple conference contracts?
An advise is appreciated.
msg.sender
get 10k coins, now how do I add the coin to the receivers wallet as I need to send and it must reflect there
So let us look into a scenario, like I said I have 500 customers, now assuming they all have wallets and connected to ethereum.
Now I would write a simple token contract, a DAO, deploy it on the blockchain. Now the DAO will mint 5 tokens, send it to all the 500 customers.
Makes sense?