1.1.3 • Published 2 months ago

solhint-plugin-defi-wonderland v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

DeFi Wonderland's Solhint Plugin

image Tests License: MIT

Deprecated

The plugin has been deprecated, we recommend using solhint-community instead.

Overview

This custom Solhint Plugin aims to contain all of the Solidity best practices implemented at DeFi Wonderland.

Setup

Setup Solhint in your Solidity project if you haven't already. Then run:

yarn add -D solhint-plugin-defi-wonderland

or

npm install --save-dev solhint-plugin-defi-wonderland

Finally, inside your .solhint.json configuration file, add:

"plugins": [..., "defi-wonderland"],

Available Rules

NameDescription
contract-data-orderContracts storage members should be ordered: constants, immutable variables, others.
enum-name-camelcaseEnums name should be in CamelCase.
immutable-name-snakecaseImmutable variables names should be in capitalized SNAKE_CASE.
import-statement-formatImports should specify imported node. Example: import {A} from 'b.sol'
interface-member-orderInterfaces members should be ordered: events, errors, structs, enums, functions.
interface-starts-with-iInterfaces name should start with I. Example: IMyContract.
named-return-valuesFunctions return values should be named.
non-state-vars-leading-underscoreVariables that are not in the state should start with underscore. Example: _myVar.
struct-name-camelcaseStructs name should be in CamelCase.
wonder-var-name-mixedcasePublic variables name must be in mixedCase.

About DeFi Wonderland

DeFi Wonderland is a team of top Web3 researchers, developers, and operators who believe that the future needs to be open-source, permissionless, and decentralized.

DeFi sucks, but DeFi Wonderland is here to make it better.

1.1.3

2 months ago

1.1.1

7 months ago

1.1.2

7 months ago

0.0.0-13b164c6

7 months ago

1.1.0

1 year ago

1.0.0

1 year ago

0.0.2

1 year ago

0.0.0-cac4e26e

1 year ago

0.0.0-e26882d8

1 year ago

0.0.0-e2680323

1 year ago

0.0.0-0ad9a9c1

1 year ago

0.0.0-a05d891f

1 year ago

0.0.0-4bbbd8fe

1 year ago