Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dxdao/aqua-sc

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxdao/aqua-sc

Utility pack from aqua-smartcontracts

  • 0.0.0-dev.5
  • dev
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by200%
Maintainers
5
Weekly downloads
 
Created
Source

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 entire artifact
import AQUA_FACTORY from 'aqua-sc/artifacts/AquaFactory.json'

// Import abi/bytecode only
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)

// addresses = {
// 	AquaFactory: "0x8e3f253c2d5048eddb207805ea656bfc80cbd492",
// 	SaleLauncher: "0x8e3f253c2d5048eddb207805ea656bfc80cbd493",
// 	...
// }

Keywords

FAQs

Package last updated on 06 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc