@iqprotocol/discovery
v0.9.1
Published
This package is part of [IQ Protocol JS SDK.](https://github.com/iqlabsorg/iq-sdk-js)
Downloads
18
Keywords
Readme
Discovery Utils
This package is part of IQ Protocol JS SDK.
| :exclamation: The package is in development and breaking changes should be expected. Use at your own risk! | |:------------------------------------------------------------------------------------------------------------------|
The package helps to discover IQ Protocol smart contracts. It contains the lists of IQ Protocol smart contracts addresses deployed by the IQ Protocol team.
Use this package when you need information about IQ Protocol deployments such as contract implementation addresses or blockchain details (decimals, RPC endpoints).
Installation
yarn add @iqprotocol/discovery
Usage
import { ChainId, IQContractName, getContractAddress } from '@iqprotocol/discovery'
const chainId = new ChainId('eip155:56'); // Binance Smart Chain Mainnet
const enterpriseFactoryAddress = getContractAddress(chainId, IQContractName.EnterpriseFactory);