1.0.0 • Published 4 years ago
erc165-offchain v1.0.0
ERC165 off-chain
This library allows to verify whether a smart contract supports an interface or not computing it off-chain.
Install
npm install --save facuspagnuolo/erc165-offchain#v1.0.0
Usage
Without a custom Ethereum provider
const { bytecodeSatisfies } = require('erc165-offchain')
const ABI = contract.abi
const bytecode = contract.deployedBytecode
return bytecodeSatisfies(bytecode, ABI)
With a web3 1.x compatible provider
const { addressSatisfies } = require('erc165-offchain')
const ABI = contract.abi
const web3 = new Web3(...)
return addressSatisfies(contract.address, web3, ABI)
1.0.0
4 years ago