Partnership announcement with Double Protocol & feature updates v0.4.2

Tamaghna Chowdhury
7Finney
Published in
4 min readJan 11, 2023

Welcome to the fourth edition of Ethcode where we share the recent updates on what’s new and exciting in Ethcode.

We are excited to announce that we have successfully integrated ERC 4907 inside Ethcode. We are delighted to work with Double Protocol team, the creator of ERC4907. Alongside with the integration we have introduced few new features to our latest version of Ethcode.

What’s new in Ethcode 0.4.2

  • Ethcode now works with all commonly available RPC endpoints (EVM only). Users can add RPC networks in VScode extension settings.
  • Custom transaction gas strategy from drop down menu. Users can set a gas strategy before doing any transaction on a selected network.
  • Import and Export accounts (JSON format) in Ethcode.
  • Block scanner URL will be shown after every mutable call transaction.
  • Change in network settings; from now on user needs to add the RPC URL as well as Blockscanner URL in the network settings input field to add another network.
  • Double Protocol (Rental NFT) integration.

Find out more in the Documentation

New feature usage instructions:

Activate Ethcode:

ctrl + alt + e

Set transaction gas strategy:

  • Open vscode command palette ctrl + shift + P
  • Set transaction gas strategy → select your favourable strategy.

Import Ethereum Account

  • Navigate to the folder where your Ethereum address Keystore file is present.
  • Select your Keystore file.

Export account

  • Select the account you want to export.
  • Navigate to the folder in which you want to save the Ethereum account and then click save.

Add New RPC endpoints in settings:

  • Go to VScode settings → Extensions → ETHCODE → Networks.
  • Click on Add Item .
  • Enter Network Name as Key.
  • Use below format to add RPC and Blockscanner url.
{”rpc”: “<network rpc URL>”, “blockScanner”: “<network blockscanner URL>”}
New Network is added successfully.

Double Protocol Integration

Create ERC4907 contract:

  • Create new ERC4907 contract
  • Name the ERC4907 file that you want to create. and then hit enter.
  • Three files will be created in your hardhat project contracts folder
  1. IERC4907.sol → interface for ERC4907 contract.
  2. ERC4907.sol → base ERC4907 contract.
  3. <filename>.sol → file with the name you provided.

You must install openzeppelin contracts after creating ERC4907 files

npx install @openzeppelin/contracts or yarn add @openzeppelin/contracts
  • In your terminal write npx hardhat compile.

How you can leverage these features?

Import account feature will make it easier for the user to use metamask accounts inside Ethcode. Also, the gas strategy will ease the process of deployment.

Double Protocol is a fully decentralized and open-source NFT rental protocol and marketplace for Metaverse and GameFi assets. You can create those contracts directly from Ethcode with a single command.

Reference & Support

Github

Docs

Visual Studio Marketplace

Support

Don’t forget to share our story with fellow developers.

To help & support the development 0xd22fE4aEFed0A984B1165dc24095728EE7005a36 ❤️

--

--