Install using npm i @cyberbrokers/eth-utils
import {config} from '@cyberbrokers/eth-utils'
import {getCbContractsByChainId} from '@cyberbrokers/eth-utils'
/**
* Only necessary if you plan on using methods that require configs, such as getDelegateContract, getContractForAddress
* */
config.setConfig({
alchemy:{
eth_key: 'dwd..'
}
})
getCbContractsByChainId(1).cyberBrokersAddress // Cyberbrokers 0x... contract address
Documentation: https://mirrorware-io.github.io/utils/
CyberBrokers Metadata: CyberBrokers metadata is downloaded automatically on npm i
. This is to keep the package size small
-
Git clone the repo
-
Make appropriate changes and don't forget to run prettier.
-
Make a PR to get your changes reviewed.