Skip to content

Latest commit

 

History

History
 
 

core

@hop-protocol/core

Hop Protocol config and metadata

Addresses

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

console.log(addresses.kovan.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

License

MIT