Skip to content

Instantly share code, notes, and snippets.

@0mkara
Last active July 8, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0mkara/352e030b2a99f21aa25f6e5775574f91 to your computer and use it in GitHub Desktop.
Save 0mkara/352e030b2a99f21aa25f6e5775574f91 to your computer and use it in GitHub Desktop.

ethcode-opt

Smart Contracts development on Ethcode

Usage instructions

Activate plugin with activation command

  • Command: ethcode.activate
  • Description: Activates Ethcode extension.

Screenshot from 2019-09-28 23-04-40

Create account

  • Command: ethcode.account.create
  • Description: Create ethereum account. You will be prompted for password. Accounts are created inside ethcode extension directory.

Screenshot from 2021-07-01 21-00-45

Screenshot from 2021-07-01 21-00-54

List accounts

  • Command: ethcode.account.list
  • Description: List ethereum accounts.

Screenshot from 2021-07-01 21-21-22

Use account

  • Command: ethcode.account.set
  • Description: Choose ethereum account for use.

Screenshot from 2021-07-01 21-23-05

Use network

  • Command: ethcode.network.set
  • Description: Choose ethereum network for use.

Screenshot from 2021-07-01 21-26-05

Load compiled JSON

  • Command: ethcode.combined-json.load, ethcode.standard-json.load
  • Description: Generate constructor inputs.

Screenshot from 2021-07-01 19-41-30

Screenshot from 2021-07-01 19-41-44

Create constructor inputs

  • Command: ethcode.contract.input.create
  • Description: Generate constructor inputs.

Screenshot from 2021-07-01 19-55-50

This will create a constructor-input.json file inside your workspace.

[
  {
    "internalType": "string",
    "name": "_greeting",
    "type": "string",
    "value": "Hello World!"
  }
]

As the JSON suggests the value for the input is provided with the value field.

Load constructor inpusts

  • Command: ethcode.contract.input.load
  • Description: Load constructor inputs.

Screenshot from 2021-07-01 20-48-35

Build transaction

  • Command: ethcode.transaction.build
  • Description: Build raw transaction.

Screenshot from 2021-07-01 20-06-58

Deploy contracts.

  • Command: ethcode.account.sign-deploy
  • Description: Deploy transaction to network.

Screenshot from 2021-07-01 20-29-01

Call immutable functions with & without parameters

Call mutable functions with & without parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment