Chapter 3: Advanced

Lesson 14: Contract Deployment

When we create contracts using the Scilla IDE, we have three network options for deploying the contracts.

  • Mainnet: for production contracts,
  • Testnet: for developers for testing,
  • Simulated ENV
  • We can also create local servers for use in development using the Zilliqa Isolated Server or Kaya RPC.

    Let us take a look at deploying the Hello World contract on the Scilla IDE to the Simulated ENV.

    We input owner, the initialisation parameter provided by the Scilla IDE.

    The deployed contract they appears in the sidebar. Here, we can explore the Contract State and call it's transitions. We will call the setHello transition.

    Once the transaction is validated, we can view the receipt of the transaction. Any messages sent from the transition will appear here.

    Finally, we take a look at the Contract State after the transaction. We can see that the welcome_msg field has been updated.