Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 775 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 775 Bytes

Custom Warp Contracts Plugins

This is a monorepo that includes all the M3tering custom warp plugins and examples.

Installation

yarn add m3tering-ed25519
yarn add m3tering-ethers

Usage

All you need to do is import the plugin as you normally do with packages installed with npm or yarn.

import { WarpFactory } from "warp-contracts";
import { EthersExtension } from "m3tering-ethers";
import { Ed25519Extension } from "m3tering-ed25519";

const warp = WarpFactory.forMainnet().use(new EthersExtension());

You can cascade the plugins (use multiple plugins) like this,

const let warp = WarpFactory.forMainnet()
  .use(new EthersExtension())
  .use(new Ed25519Extension());

Check the example folder for example usage.