You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for your interest in contributing to Building-secure-contracts! We welcome and appreciate all contributions, including bug reports, feature suggestions, tutorials/blog posts, and code improvements.
3
+
First, thank you for your interest in contributing to Building-Secure-Contracts! We appreciate and warmly welcome all contributions, which include bug reports, feature suggestions, tutorials/blog posts, and code improvements.
4
4
5
-
If you're unsure where to start, we recommend our [`good first issue`](https://github.com/crytic/building-secure-contracts/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) and [`help wanted`](https://github.com/crytic/building-secure-contracts/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) issue labels.
5
+
If you're not sure where to begin, we recommend checking out our [`good first issue`](https://github.com/crytic/building-secure-contracts/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) and [`help wanted`](https://github.com/crytic/building-secure-contracts/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) issue labels.
6
6
7
-
## Bug reports and feature suggestions
7
+
## Bug Reports and Feature Suggestions
8
8
9
-
Bug reports and feature suggestions can be submitted to our issue tracker. For bug reports, attaching the contract that caused the bug will help us in debugging and resolving the issue quickly. If you find a security vulnerability, do not open an issue; email [email protected] instead.
9
+
Please submit bug reports and feature suggestions to our issue tracker. When reporting a bug, attaching the contract causing the issue is helpful for efficient debugging and resolution. If you discover a security vulnerability, do not open an issue; instead, email [email protected].
10
10
11
11
## Questions
12
12
13
-
Questions can be submitted to the issue tracker, but you may get a faster response if you ask in our [chat room](https://empireslacking.herokuapp.com/) (in the #ethereum channel).
13
+
Questions can be submitted to the issue tracker, but you may get a faster response if you ask in our [chat room](https://slack.empirehacking.nyc/) (in the #ethereum channel).
14
14
15
-
## Code
15
+
## Code Contributions
16
16
17
-
building-secure-contracts uses the pull request contribution model. Please make an account on Github, fork this repo, and submit code contributions via pull request. For more documentation, look[here](https://guides.github.com/activities/forking/).
17
+
Building-Secure-Contracts follows the pull request contribution model. Create an account on Github, fork this repo, and submit code contributions through pull requests. For additional documentation, refer[here](https://guides.github.com/activities/forking/).
18
18
19
19
Some pull request guidelines:
20
20
21
-
-Minimize irrelevant changes (formatting, whitespace, etc) to code that would otherwise not be touched by this patch. Save formatting or style corrections for a separate pull request that does not make any semantic changes.
22
-
- When possible, large changes should be split up into smaller focused pull requests.
23
-
-Fill out the pull request description with a summary of what your patch does, key changes that have been made, and any further points of discussion, if applicable.
24
-
-Title your pull request with a brief description of what it's changing. "Fixes #123" is a good comment to add to the description, but makes for an unclear title on its own.
21
+
-Limit unnecessary changes (formatting, whitespace, etc.) to code unrelated to the patch. Save formatting or style corrections for a separate pull request, which doesn't include any semantic changes.
22
+
- When possible, break down large changes into smaller, focused pull requests.
23
+
-Complete the pull request description with an overview of your patch, including key modifications, and any further discussion points if relevant.
24
+
-Use a concise title to describe your pull request's changes. "Fixes #123" is suitable for adding to the description, but not as a standalone title.
25
25
26
26
## Directory Structure
27
27
28
-
Below is a rough outline of building-secure-contracts's structure:
28
+
Here's a basic overview of Building-Secure-Contracts' structure:
29
29
30
30
```text
31
31
.
32
-
├── development-guidelnes # High-level best-practices for all smart contracts
32
+
├── development-guidelines # High-level bestpractices for all smart contracts
33
33
├── learn_evm # EVM technical knowledge
34
-
├── not-so-smart-contracts # Examples of smart contract common issues. Each issue contains a description, an example and recommendations
35
-
├── program-analysis # How to use automated tools to secure contracts
36
-
├── ressources # Various online resources
34
+
├── not-so-smart-contracts # Examples of common smart contract issues, including descriptions, examples, and recommendations
35
+
├── program-analysis # How to utilize automated tools to secure contracts
36
+
├── resources # Various online resources
37
37
└── ...
38
38
```
39
39
40
-
## Linting and formatting
40
+
## Linting and Formatting
41
41
42
42
To install the formatters and linters, run:
43
43
44
44
```bash
45
45
npm install
46
46
```
47
47
48
-
To run the formatter, use:
48
+
To use the formatter, run:
49
49
50
50
```bash
51
51
npm run format
52
52
```
53
53
54
-
To run the linters, use:
54
+
To use the linters, run:
55
55
56
56
```bash
57
57
npm run lint
58
58
```
59
59
60
-
To run the individual linters, use:
60
+
To use individual linters, run:
61
61
62
62
-`npm run lint:format` to check the formatting
63
-
-`npm run lint:links` to check for invalid links in markdown files
63
+
-`npm run lint:links` to verify the validity of links in markdown files
64
64
65
-
## Create the book
65
+
## Creating the Book
66
66
67
-
We use`mdbook` to generate [secure-contracts.com](https://secure-contracts.com/).
67
+
We utilize`mdbook` to generate [secure-contracts.com](https://secure-contracts.com/).
This repository, brought to you by [Trail of Bits](https://www.trailofbits.com/), outlines guidelines and best practices to write secure smart contracts.
5
+
Brought to you by [Trail of Bits](https://www.trailofbits.com/), this repository offers guidelines and best practices for developing secure smart contracts. Contributions are welcome, you can contribute by following our [contributing guidelines](https://github.com/crytic/building-secure-contracts/blob/master/CONTRIBUTING.md).
6
6
7
-
We welcome contributions, and you can contribute by following our [contributing guidelines](https://github.com/crytic/building-secure-contracts/blob/master/CONTRIBUTING.md).
-[Code Maturity](./development-guidelines/code_maturity.md): Criteria for developers and security engineers to use when evaluating a codebase’s maturity
11
+
-[High-Level Best Practices](./development-guidelines/guidelines.md): Best practices for all smart contracts
12
+
-[Incident Response Recommendations](./development-guidelines/incident_response.md): Guidelines for creating an incident response plan
13
+
-[Secure Development Workflow](./development-guidelines/workflow.md): A high-level process to follow during code development
14
+
-[Token Integration Checklist](./development-guidelines/token_integration.md): What to check when interacting with arbitrary tokens
15
+
-[Learn EVM](./learn_evm): Technical knowledge about the EVM
16
+
-[EVM Opcodes](./learn_evm/evm_opcodes.md): Information on all EVM opcodes
18
17
-[Transaction Tracing](./learn_evm/tracing.md): Helper scripts and guidance for generating and navigating transaction traces
19
18
-[Arithmetic Checks](./learn_evm/arithmetic-checks.md): A guide to performing arithmetic checks in the EVM
20
-
-[Yellow Paper Guidance](./learn_evm/yellow-paper.md): Symbol reference for more easily reading the Ethereum yellow paper
21
-
-[Forks <> EIPs](./learn_evm/eips_forks.md): Summarize the EIPs included in each Ethereum fork
22
-
-[Forks <> CIPs](./learn_evm/cips_forks.md): Summarize the CIPs and EIPs included in each Celo fork _(EVM-compatible chain)_
23
-
-[Upgrades <> TIPs](./learn_evm/tips_upgrades.md): Summarize the TIPs included in each TRON upgrade _(EVM-compatible chain)_
24
-
-[Forks <> BEPs](./learn_evm/beps_forks.md): Summarize the BEPs included in each BSC fork _(EVM-compatible chain)_
25
-
-[Not so smart contracts](./not-so-smart-contracts): Examples of smart contract common issues. Each issue contains a description, an example and recommendations
19
+
-[Yellow Paper Guidance](./learn_evm/yellow-paper.md): Symbol reference for easier reading of the Ethereum yellow paper
20
+
-[Forks <> EIPs](./learn_evm/eips_forks.md): Summaries of the EIPs included in each Ethereum fork
21
+
-[Forks <> CIPs](./learn_evm/cips_forks.md): Summaries of the CIPs and EIPs included in each Celo fork _(EVM-compatible chain)_
22
+
-[Upgrades <> TIPs](./learn_evm/tips_upgrades.md): Summaries of the TIPs included in each TRON upgrade _(EVM-compatible chain)_
23
+
-[Forks <> BEPs](./learn_evm/beps_forks.md): Summaries of the BEPs included in each BSC fork _(EVM-compatible chain)_
24
+
-[Not So Smart Contracts](./not-so-smart-contracts): Examples of common smart contract issues, complete with descriptions, examples, and recommendations
26
25
-[Algorand](./not-so-smart-contracts/algorand)
27
26
-[Cairo](./not-so-smart-contracts/cairo)
28
27
-[Cosmos](./not-so-smart-contracts/cosmos)
29
28
-[Substrate](./not-so-smart-contracts/substrate)
30
29
-[Solana](./not-so-smart-contracts/solana)
31
-
-[Program analysis](./program-analysis): How to use automated tools to secure contracts
32
-
-[Echidna](./program-analysis/echidna): a fuzzer that will check your contract's properties.
33
-
-[Slither](./program-analysis/slither): a static analyzer available through a CLI and scriptable interface.
34
-
-[Manticore](./program-analysis/manticore): a symbolic execution engine that can prove the correctness properties.
35
-
- For each tool, this training material will provide:
36
-
-a theoretical introduction, a walkthrough of its API, and a set of exercises.
37
-
-exercises expected to require ~two hours to practically learn its operation.
38
-
-[Resources](./resources): Various online resources
39
-
-[Trail of Bits blogposts](./resources/tob_blogposts.md): List of blockchainrelated blogposts made by Trail of Bits
30
+
-[Program Analysis](./program-analysis): Using automated tools to secure contracts
31
+
-[Echidna](./program-analysis/echidna): A fuzzer that checks your contract's properties
32
+
-[Slither](./program-analysis/slither): A static analyzer with both CLI and scriptable interfaces
33
+
-[Manticore](./program-analysis/manticore): A symbolic execution engine that proves the correctness of properties
34
+
- For each tool, this training material provides:
35
+
-A theoretical introduction, an API walkthrough, and a set of exercises
36
+
-Exercises that take approximately two hours to gain practical understanding
0 commit comments