warp-contracts-plugin-ethers
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Warp Contracts Plugin - Ethers

This plugin attaches the ethers.utils from the ethers library to the SmartWeave global object.
It can be then used inside the contract like this:

const address = SmartWeave.extensions.ethers.utils.verifyMessage(message, signature);

Installation

yarn add warp-contracts-plugin-ethers

import { EthersExtension } from 'warp-contracts-plugin-ethers';
import { WarpFactory } from 'warp-contracts';

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

Requires warp-contracts SDK ver. min. 1.2.30.

Readme

Keywords

none

Package Sidebar

Install

npm i warp-contracts-plugin-ethers

Weekly Downloads

59

Version

1.0.8

License

MIT

Unpacked Size

3.55 kB

Total Files

10

Last publish

Collaborators

  • redstone-finance