Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/crisgarner/ForgeSnippets

Forge Snippets for VS Code
https://github.com/crisgarner/ForgeSnippets

Last synced: 2 months ago
JSON representation

Forge Snippets for VS Code

Lists

README

        

# VS Code Forge Snippets

Forge Snippets for VS Code.

## Installation

### Vs Code Marketplace

Install this extension on VS Code marketplace. on the following place: https://marketplace.visualstudio.com/items?itemName=Crisgarner.foundry-snippets

### VSIX

For users who want to use a VSIX file, they can install the extension with the following command:

```bash
code --install-extension releases/foundry-snippets-1.0.0.vsix
```

## Snippets

Here is the list of current supported snippets.

### Init

Simple boilerplate structure for a test contract.

![1](https://user-images.githubusercontent.com/578688/169672205-7f988aee-99a8-4d46-8e1a-c27419887a95.gif)

### Script

Simple boilerplate structure for a script contract.

![script](https://user-images.githubusercontent.com/578688/171066931-b69c0fce-ce5b-4a94-96b0-461fa7745e3f.gif)

### Event

A simple event.

![2](https://user-images.githubusercontent.com/578688/169672213-2d6dc5b4-e672-4dca-9009-8a27798a2a8a.gif)

### SetUp

SetUp function snippet.

![3](https://user-images.githubusercontent.com/578688/169672283-e0db74a7-ff2d-4284-9111-809d2e70d511.gif)

### Test

Test function boilerplate.

![4](https://user-images.githubusercontent.com/578688/169672284-7256cbe9-4e69-4a16-9a70-219d2b07550a.gif)

### Prank Cheatcodes

Snippets for prank, startPrank, StopPrank and Deal cheatcodes.

![5](https://user-images.githubusercontent.com/578688/169672285-f6974198-5895-41cc-bedf-ec437b1b26fc.gif)

### Expect Event

Snippet for emit and expect event emition.

![6](https://user-images.githubusercontent.com/578688/169672286-c8be659d-a4e4-485f-b0e4-63d996d7eb46.gif)

### Expect Revert

Snippet for revert checks.

![7](https://user-images.githubusercontent.com/578688/169672287-d9a0cdd8-a97f-436e-a08f-70a4dd47a9f6.gif)

## Release Notes

All notable changes to this project will be documented in this file.

### 1.0.0

Initial release of Forge Snippets.