Aqua-sc
Package contains:
- artifacts used across Aqua intrastructure,
- addresses of deployed contracts,
- typings generated with
typechain/ethers-v5
Installation
To install latest production release use:
$ npm install aqua-sc
or
$ yarn add aqua-sc
Development prereleases are following 0.0.0-dev.x
versioning along with dev
tag.
To install latest dev version, use:
$ npm i aqua-sc@>=0.0.0-dev.0 <0.0.0
or
$ yarn add aqua-sc@>=0.0.0-dev.0 <0.0.0
Usage
Artifacts
import AQUA_FACTORY from 'aqua-sc/artifacts/AquaFactory.json'
import {
abi as AQUA_FACTORY_ABI,
bytecode as AQUA_FACTORY__BYTECODE,
} from 'aqua-sc/artifacts/AquaFactory.json'
Addresses
import { getContractAddressesForChainOrThrow, ChainId } from 'aqua-sc'
const addresses = getContractAddressesForChainOrThrow(ChainId.rinkeby)