This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@hop-protocol/core
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.236 • Public • Published

@hop-protocol/core

Hop Protocol config and metadata

Addresses

import * as addresses from '@hop-protocol/core/addresses'

console.log(addresses.goerli.USDC.ethereum.l1Bridge)) // 0x123...

See the following files for list of available addresses

Networks

import * as networks from '@hop-protocol/core/networks'

console.log(networks.mainnet.gnosis.rpcUrls[0]) // "https://rpc.gnosischain.com/"

See the following files for available configuration info

ABIs

import { L1BridgeAbi } from '@hop-protocol/core/abi'

console.log(L1BridgeAbi)) // [...]

See src/abi/index.ts for list of available ABIs

Metadata

import * as metadata from '@hop-protocol/core/metadata'

console.log(metadata.mainnet.tokens.USDC.decimals)) // 6

Development

Install dependencies

npm install

Watch

npm run dev

Build

npm run build

Run github action build locally with act:

(cd ../../ && act --job publish-core --workflows .github/workflows/npm_publish_core.yml --secret-file=.secrets --verbose)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @hop-protocol/core

Weekly Downloads

883

Version

0.0.1-beta.236

License

MIT

Unpacked Size

28.5 MB

Total Files

4103

Last publish

Collaborators

  • cwhinfrey
  • miguelmota
  • shanefontaine