0.1.1 • Published 2 years ago

@abacus-network/celo-ethers-provider v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

-- DEPRECATED --

Abacus is now Hyperlane, please use the @hyperlane-xyz/celo-ethers-provider package instead. This version will not receive further updates.

@abacus-network/celo-ethers-provider

This library exports three Ethers.js JSON RPC providers: CeloJsonRpcProvider, StaticCeloJsonRpcProvider, and CeloWebsocketProvider. These providers handle the Celo's block format incompatibility to make them usable with the rest of Ethers.js

Usage

yarn install @abacus-network/celo-ethers-provider

import { StaticCeloJsonRpcProvider } from 'abacus-network/celo-ethers-provider';

const provider = new StaticCeloJsonRpcProvider(rpcUrl);

Alternatives

For Celo providers that enable usage of Celo-specific transaction fields, like feeCurrency, see celo-ethers-wrapper.

Sources

Significant code has been reproduced from https://github.com/ethers-io/ancillary-exchain. Files containing reproduced code have been tagged with the appropriate license information.