Ethcode — Smart Contract Development & Execution Interface

Tamaghna Chowdhury
7Finney
Published in
4 min readJul 21, 2022
Ethcode

Welcome to the second edition of Ethcode where we share updates on what's new and exciting in Ethcode. A quick glance at some of the most important updates and features you should pay attention to.

Ethcode brings Ethereum developers into one place and you can get more work done using it. To enhance the developers’ experience, we shifted to vscode commands and shortcuts. A wide range of commands makes ethcode more dynamic for solidity and vyper development.

What’s new in Ethcode 0.2.9:

  • Hassle-free UX — Access ethcode with just vscode commands and hotkeys.
  • Ethcode now works with all commonly available RPC endpoints (EVM only). Users can add RPC networks in vscode extension settings.
  • Users are able to select among different networks from a dropdown.
  • Ethcode can load Compiled JSON outputs from Hardhat and Remix.
  • Call mutable functions with required parameters.
  • Call immutable functions with or without parameters.
  • Supports local EVM nodes (Ganache & Hardhat) and EVM-based testnets.

Usage Instructions:

Activate Ethcode:

ctrl + alt + e

Select ethereum network & account:

  • Open vscode command palette ctrl + shift + P
  • Select ethereum network > Select your preferred network
  • Select ethereum account > Select your preferred account

Note: You have to open the command palette every time to use ethcode’s features

Load All Compiled JSON Output:

  • Load all compiled JSON output
  • This will load all the compiled JSON output into Ethcode memory which includes Hardhat and Remix JSON files.

Select one compiled JSON output:

  • Select one compiled JSON output
  • After selecting compiled JSON output
  1. If the contract requires any constructor parameter to be passed then extra 3 files will be created in your artifacts → contracts → <contract name> folder

<contract name>_constructor-input.json

<contract name>_deployed-address.json

<contract name>_functions_input.json

2. If the contract does not require any constructor parameter to be passed extra then 2 files will be created in your artifacts → contracts → <contract name> folder.

<contract name>_deployed-address.json

<contract name>_functions_input.json

Deploy a smart contract

  • Deploy a Contract
  • Enter your password(if any)
  • After successful contract deployment, you will get deployed contract address
  • Paste this address in artifacts → contracts → <contract name> → <contract name>_deployed-address.json file.

Contract call

  • Contract call
  • All Functions or methods of the contract will be shown in the list.
  • Select preferred method

Note: Before selecting methods you should fill required values of that method in artifacts → contracts → <contract name> → <contract name>_functions_input.json file.

Add RPC endpoints

  • Go to vscode settings Settings → Extensions → ETHcode
  • Add item (Key, Value)

Key: network name

Value: rpc endpoint

How you can leverage these features?

Ethcode is a very helpful and time-saving tool for Blockchain Application Developers. We know testing smart contracts takes more time and sometimes it becomes a pain to do testing of complex smart contracts.

It solves the problem of smart contract testing, now developers just need to insert required values in compiled JSON output and then Ethcode handles everything from deployment to testing.

It also supports local EVM nodes like Ganache and Hardhat node. By using this feature developers can test their smart contracts quickly and easily. Ethcode makes the smart contract interactions much more convenient for the Smart Contract Managers and developers.

Resources

Github

Visual Studio Marketplace

Discord

Don’t forget to share our story with the web3 community.

To help & support the development 0xd22fE4aEFed0A984B1165dc24095728EE7005a36

--

--