@vegaprotocol/snap

1.0.3 • Public • Published

Vega Snap

This snap adds support for the Vega Protocol network to MetaMask. It supports client.list_keys, client.get_chain_id and client.send_transaction from the Vega Wallet API. client.connect_wallet and client.disconnect_wallet are no-op's, but kept to provide compatibility with the Vega Wallet API.

Testing

The snap comes with some basic tests, to demonstrate how to write tests for snaps. To test the snap, run yarn test in this directory. This will use @metamask/snaps-jest to run the tests in src/index.test.ts.

Notes

  • Babel is used for transpiling TypeScript to JavaScript, so when building with the CLI, transpilationMode must be set to localOnly (default) or localAndDeps.

Readme

Keywords

none

Package Sidebar

Install

npm i @vegaprotocol/snap

Weekly Downloads

974

Version

1.0.3

License

MIT

Unpacked Size

3.72 MB

Total Files

7

Last publish

Collaborators

  • dexturr
  • curly42
  • eddhannay
  • vega-bot