How to use the eth-connect.ContractFactory function in eth-connect

To help you get started, we’ve selected a few eth-connect examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github decentraland / explorer / kernel / packages / shared / ethereum / ERC20.ts View on Github external
export async function getERC20(requestManager: RequestManager, address: Address): Promise {
  return (await new ContractFactory(requestManager, ERC20Abi).at(address)) as IERC20
}
github decentraland / explorer / kernel / packages / shared / ethereum / ERC721.ts View on Github external
export async function getERC721(requestManager: RequestManager, address: Address): Promise {
  return (await new ContractFactory(requestManager, ERC721Abi).at(address)) as IERC721
}

eth-connect

Ethereum TypeScript API, middleware to talk to a ethereum node using an async provider

LGPL-3.0
Latest version published 10 months ago

Package Health Score

62 / 100
Full package analysis