0.6.0 • Published 7 months ago

@snapper-org/snapper v0.6.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Snapper 🐠

Version Release Documentation Node.js Version TypeScript Last Commit

Snapper aims to improve the overall security and reliability of Metamask Snaps by identifying vulnerabilities, potential issues, and ensuring best coding practices.

Getting Started

To set up the environment, follow these steps:

  1. Install project dependencies:

To install the required project dependencies, run:

npm install

Setting Up an Example Test

To prepare an example test, follow these steps:

  1. Clone the repository:

Clone the example repository for a sample Metamask Snap:

git clone https://github.com/Consensys/starknet-snap
  1. Navigate to the project directory:
cd starknet-snap
  1. Reset the repository to a vulnerable commit:

For consistent results, reset to a vulnerable commit:

git reset --hard d9beafe

Running the Test Case

  1. Build the environment

Set up the test environment by running:

/bin/bash buildenv.sh
  1. Verify the application runs

Get the usage of the Snapper application with:

npm run start --help

> snapper@1.0.0 start
> npx ts-node main.ts

Options:
      --version     Show version number                                [boolean]
  -p, --path        Project path                             [string] [required]
  -d, --detectors   Specify which detector to run, specify multiple detectors
                    with a comma                                        [string]
  -v, --verbose     Enable verbose logging            [boolean] [default: false]
  -o, --output      Specify output file                                 [string]
  -l, --logFile     Specify log file                                    [string]
  -h, --htmlReport  Generate HTML report              [boolean] [default: false]
      --help        Show help                                          [boolean]
  1. Run test cases

Run Snapper against test cases in the specified directory:

npm run start -- --path ./starknet-snap
1.1.1

7 months ago

1.6.4

7 months ago

1.6.3

7 months ago

1.6.2

7 months ago

1.6.1

7 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.1

7 months ago

1.4.0

7 months ago

4.1.3

7 months ago

1.6.9

7 months ago

4.1.0

7 months ago

1.6.8

7 months ago

1.6.10

7 months ago

1.6.7

7 months ago

4.1.2

7 months ago

1.6.6

7 months ago

4.1.1

7 months ago

1.6.5

7 months ago

0.5.0

7 months ago

0.6.0

7 months ago

1.3.0

8 months ago

1.2.0

8 months ago

1.2.8

8 months ago

1.2.7

8 months ago

1.2.6

8 months ago

1.2.5

8 months ago

1.2.4

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago