Can there be different smart contract with same logic or a master contract with all configuration

0 votes
Is it possible to create a master contract to with all the configurations or do we need separate smart contracts for same business logic.?
May 23, 2018 in Blockchain by Shashank
• 10,400 points
662 views

1 answer to this question.

0 votes

It depends on the complexity of the business logic you want to implement.

let's take an example here, if I were in the business of putting a home buying escrow onto the blockchain, I would make each deal it's own contract (even though the terms of different deals may be similar). If I were building a lottery contract that executed every day, I would put a master contract for all lotteries on the blockchain. In another example, if I were to build a gambling business that supported multiple game types, I may have one master contract that tracks all activity and then delegates to a game specific contract.

So, basically it depends on the business logic. But surely we can have a master contract linked with other contracts if your business logic demands.

answered May 23, 2018 by Johnathon
• 9,090 points

Related Questions In Blockchain

+1 vote
1 answer

How can nodes interact with a Smart Contract?

If you are using Remix IDE to ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 17,100 points
814 views
0 votes
1 answer

Can I swap an ERC-20 token with a Neo NEP5 token using a smart contract?

Every Blockchain has a separate administration. So, it ...READ MORE

answered Jun 4, 2018 in Blockchain by Perry
• 17,100 points
984 views
0 votes
0 answers
+1 vote
1 answer

Can we copy a smart contract?

While the contract is open-source, if you ...READ MORE

answered Apr 7, 2018 in Blockchain by Christine
• 15,790 points
2,134 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,004 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,922 views
0 votes
1 answer

Can a blockchain be used to verify or store a document on the blockchain?

Bitcoin is decentralized payment syatem. It was ...READ MORE

answered May 10, 2018 in Blockchain by Johnathon
• 9,090 points
797 views
+1 vote
4 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP