https://github.com/firstbatchxyz/warp-plugins
https://github.com/firstbatchxyz/warp-plugins
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/firstbatchxyz/warp-plugins
- Owner: firstbatchxyz
- Created: 2023-01-03T13:32:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-01T10:03:11.000Z (about 3 years ago)
- Last Synced: 2025-01-12T05:28:30.503Z (over 1 year ago)
- Language: TypeScript
- Size: 601 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Warp Contracts Plugins
This is a monorepo that includes all the FirstBatch custom warp plugins and examples.
## Installation
```bash
yarn add warp-contracts-plugin-fetch
yarn add warp-contracts-plugin-snarkjs
```
## Usage
All you need to do is import the plugin as you normally do with packages installed with npm or yarn.
```js
import { WarpFactory } from "warp-contracts";
import { FetchExtension } from "warp-contracts-plugin-fetch";
const warp = WarpFactory.forMainnet().use(new FetchExtension());
```
You can cascade the plugins (use multiple plugins) like this,
```js
const warp = WarpFactory.forMainnet()
.use(new FetchExtension())
.use(new SnarkjsExtension());
```
Check the [example folder](./example/) for example usage.