npm

@delvtech/evm-client-ethers
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

@delvtech/evm-client-ethers

Ethers implementations of @delvtech/evm-client.

import { createCachedReadContract } from '@delvtech/evm-client-ethers';
import { Provider } from 'ethers';
import erc20Abi from './abis/erc20Abi.json';

type CachedErc20Contract = CachedReadWriteContract<typeof erc20Abi>;

export function createTokenContract(
  address: `0x${string}`,
  provider: Provider,
): CachedErc20Contract {
  return createCachedReadContract({
    abi: erc20Abi,
    address,
    provider,
  });
}

Readme

Keywords

none

Package Sidebar

Install

npm i @delvtech/evm-client-ethers

Weekly Downloads

1

Version

0.5.1

License

MIT

Unpacked Size

104 kB

Total Files

23

Last publish

Collaborators

  • elf-devops