Contracts

Deploy Contact

In order to deploy contract go to the contracts tab

  1. Goto the Contract tab.

  2. Select deploy contract then select a wallet from the dropdown.

  3. Upload the contract is written in Michelson format.

  4. Enter the contract label while entering the amount and initial storage, this will help you to recognize your contract with a simple name. Note: Smart Contracts keep a state of its own permanent storage, which helps to store its state variables.

  5. Click on deploy contract once the contract gets deployed you'll get a contract address returned like this KT1QfQ9g2zHQkbjdrfWGhbx1eLiSFWn5abLn

Go to the following link along with contract address to see the contract details in the explorer :https://carthagenet.tzstats.com/KT1QfQ9g2zHQkbjdrfWGhbx1eLiSFWn5abLn

Call Contract

In order to Invoke contract go to the contracts tab

  1. Goto the Contract tab.

  2. Select Invoke contract then select a wallet from dropdown.

  3. Select your Contract and respective entry points. Note: An entry point is a method of a contract class that can be called from the outside.

  4. Enter values once the contract gets Invoked you'll get a contract address returned like this ooF5y5gjRxZXBzgm8ZurvfhriVNqtrnm51ri5e9BCkmjyjYQuhx

  5. Then go to the following link along with contract address to see the invocation changeshttps://carthagenet.tzstats.com/ooF5y5gjRxZXBzgm8ZurvfhriVNqtrnm51ri5e9BCkmjyjYQuhx

View Contract Storage

Smart Contracts keep a state of its permanent storage, which helps to store its state variables.

To get initial storage of the contract follow the below steps.

  1. Goto the contracts tab.

  2. Select a contract from the dropdown.

  3. Select View Contract Storage and viola selected contract will be shown.

Add/Remove Contract

With this release, we have also added the feature to add a new contract just follow the below steps.

  • Navigate to the List contracts tab.

  • Click on add contract button and add a contract address and click on save and viola your contract will be added.

In order to remove the contract just click on the delete icon associated with the contract and viola your contract will be deleted.