spacemacs/layers/+lang/solidity
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
..
img Add solidity layer 2019-11-22 17:16:54 +01:00
README.org Tag uncategorized layers 2020-01-02 22:42:13 +01:00
layers.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00
packages.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00

README.org

Solidity Layer

/TakeV/spacemacs/media/branch/develop/layers/+lang/solidity/img/solidity.png

Description

A layer to support Solidity development in Spacemacs.

Features:

  • Syntax highlighting
  • Syntax checking
  • Gas estimation

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add solidity to the existing dotspacemacs-configuration-layers list in this file.

Linter

solc

To use the solc flycheck checker, install solc, and enable it in your ~/.spacemacs.

  (solidity :variables
            solidity-flycheck-solc-checker-active t)

Please note that you can't use solc-js for the solc flycheck checker.

Ethlint

To use solium flycheck checker, install Ethlint.

  npm i -g ethlint

Then enable it in your ~/.spacemacs:

  (solidity :variables
            solidity-flycheck-solium-checker-active t)

And make sure that .soliumrc.json exists in the root directory of your DApp:

  solium --init

Options

Variable Default value Description
solidity-flycheck-solc-checker-active nil If non-nil, use solc flycheck checker for Solidity Mode.
solidity-flycheck-solium-checker-active nil If non-nil, use solium flycheck checker for Solidity Mode.

Key bindings

Key binding Description
SPC m g Estimate gas at point