Skip to content

franckc/snapshot.js

This branch is 5 commits ahead of, 716 commits behind snapshot-labs/snapshot.js:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f8e491f · Jul 20, 2021
Jun 3, 2021
Jul 20, 2021
Jul 13, 2021
Sep 9, 2020
Jul 8, 2021
Jul 8, 2021
Dec 11, 2020
Oct 15, 2020
Oct 15, 2020
Jul 5, 2021
Jul 14, 2021
Jul 14, 2021
Feb 27, 2021
Dec 31, 2020
Mar 24, 2021

Repository files navigation

Snapshot.js

Install

Snapshot.js was designed to work both in the browser and in Node.js.

Node.js

To install Snapshot.js on Node.js, open your terminal and run:

npm i @snapshot-labs/snapshot.js

Browser

You can create an index.html file and include Snapshot.js with:

<script src="https://cdn.jsdelivr.net/npm/@snapshot-labs/snapshot.js"></script>

Development

Install dependencies

npm install

Build package

npm run build

Test strategy

# Test default strategy (erc20-balance-of)
npm run test
# Test strategy with name
npm run test --strategy=erc20-received
npm run test --strategy=eth-balance
# Test with more addresses from addresses.json
npm run test --strategy=eth-balance --more=200 

License

MIT.

Packages

No packages published

Languages

  • TypeScript 99.5%
  • Other 0.5%