josidbobo / aleph-zero-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inkly

Inkly is a robust VScode extension that is built to support !ink smart contract development, testing and deployment and to make it easier for EVM developers to transition to the !ink ecosystem with its rich set of functionalities. One of the challenges I faced transitioning from an EVM background to Substrate and !ink was converting my solidity contracts to !ink. I had to re-write some of my contracts in Solidity from scratch, which spurred me to build this tool apart from it being able to aid your !ink project creation from ground up inkly create project till deploying inkly deploy on Aleph zero testnet (more chains coming soon...), it can aid in transitioning solidity contracts to !ink. It aims to take the burden off both new and existing !ink developers from having to memorize all the cargo contract commands.

Video Demo

demo

VSCode MarketPlace link

https://marketplace.visualstudio.com/items?itemName=JoshuaOkoro.inkly

Key Ideas Overview of Architecture

It is a VScode extension that creates, initialises, builds, tests, and deploys !ink contracts on chain (Aleph zero) as well as aiding Solidity to !ink conversion. The main file is the extension.js file

Features

  • inkly convert is used to convert solidity contracts to !ink and puts it in all converted files named with their original solidity names in a directory called ink_contracts Eg: contracts/contract.sol -> ink_contracts/contract.rs

  • inkly install cargo-contract installs the crate that manages !ink development, testing and deployment.

  • inkly create project creates a new !ink project directory with cargo.toml and lib.rs files.

  • inkly build builds a debug version of the !ink contract.

  • inkly build release builds the contract for release.

  • inkly test for running tests for the contract

  • inkly deploy deploys the build wasm module to Aleph zero testnet.

Tip: Ensure to close any open panels before running inkly convert.

Requirements

  • An Internet connection is needed when running this extension.
  • In other to avoid the switching of focus to the wrong window, when running inkly convert close any open VScode panels before running, ensure only the window with the solidity file(s) is open. Screenshot (212)

Set Up

To set up, you need an api key from openAI and append to your .env file. Every other necessary details can be found here

Release Notes

It currently has about 7 versions, with the most recent 0.0.7

Working with Markdown

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+Cmd+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux, macOS) to see a list of Markdown snippets

About


Languages

Language:JavaScript 100.0%