JSPM

@hyperlane-xyz/celo-ethers-provider

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q12886F
  • License MIT

Celo-compatible JSON RPC providers for Ethers.js

Package Exports

  • @hyperlane-xyz/celo-ethers-provider
  • @hyperlane-xyz/celo-ethers-provider/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hyperlane-xyz/celo-ethers-provider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 @hyperlane-xyz/celo-ethers-provider

import { StaticCeloJsonRpcProvider } from 'hyperlane-xyz/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.