Skip to content

gte620v/snapshot.js

 
 

Repository files navigation

Snapshot.js

npm

Install

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

In Node Applications

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

yarn

Build package

yarn build

Test cases

yarn test
# or
yarn test:once

Other useful scripts

# Format ABI
ts-node scripts/abi.ts
# Generate hash for types
ts-node scripts/generateHashWithTypes.ts

License

MIT.

About

A TypeScript SDK for Snapshot

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 69.1%
  • JavaScript 30.5%
  • HTML 0.4%