1

I'm working with a fairly large contract (~12 KB) on a private test net and deployment times are quite large (not mining the contract, but copying the interface and creating the deployment transaction (especially copying the EVM byte code to the geth console)).

Is there a way to deploy large contracts more quickly in geth?

Sebi
  • 5,294
  • 6
  • 27
  • 52

1 Answers1

2

You can use a lifecycle management framework like embark or truffle.
Both allow you to automate the contract deployment on different stages: Development stage, Staging stage, Live stage. On each stage you can have different networks or even the handy testrpc tool:

testrpc is a Node.js based Ethereum client for testing and development. It uses ethereumjs to simulate full client behavior and make developing Ethereum applications much faster. It also includes all popular RPC functions and features (like events) and can be run deterministically to make development a breeze.

Also they integrate with automated testing for unit and integration testing of your contracts.

My Tip: try testrpc in combination with truffle. Development will speed up significantly.

Roland Kofler
  • 11,638
  • 3
  • 44
  • 83
  • I was wondering, is there a way to do step-by-step debugging in contracts? – Sebi Aug 03 '16 at 14:58
  • Sounds like a new question ;-) – Roland Kofler Aug 03 '16 at 19:15
  • I'll ask it now :)) – Sebi Aug 04 '16 at 07:32
  • 1
    OK i am traveling so can answer only later – Roland Kofler Aug 04 '16 at 07:40
  • Thanks. I got stuck with truffle :)) Can you give me a hand with this question: http://ethereum.stackexchange.com/questions/7740/setting-up-a-truffle-project ? :P I don't see how you can deploy new contracts and test them. – Sebi Aug 04 '16 at 16:40
  • Do you know of a minimal setup for truffle. I can't seem to test contracts that change the state of a contract. I asked a question here: http://ethereum.stackexchange.com/questions/7822/minimal-contract-testing-setup-using-truffle – Sebi Aug 08 '16 at 08:45