1.1.3 • Published 2 months ago
solhint-plugin-defi-wonderland v1.1.3
DeFi Wonderland's Solhint Plugin
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
Name | Description |
---|---|
contract-data-order | Contracts storage members should be ordered: constants, immutable variables, others. |
enum-name-camelcase | Enums name should be in CamelCase. |
immutable-name-snakecase | Immutable variables names should be in capitalized SNAKE_CASE. |
import-statement-format | Imports should specify imported node. Example: import {A} from 'b.sol' |
interface-member-order | Interfaces members should be ordered: events, errors, structs, enums, functions. |
interface-starts-with-i | Interfaces name should start with I . Example: IMyContract . |
named-return-values | Functions return values should be named. |
non-state-vars-leading-underscore | Variables that are not in the state should start with underscore. Example: _myVar . |
struct-name-camelcase | Structs name should be in CamelCase. |
wonder-var-name-mixedcase | Public 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