Namespace
L1 network name (e.g. 'mainnet', 'goerli')
Optional
chainProviders: ChainProvidersNew Base class instance.
Instantiates Base class. Returns a new Base class instance.
Rest
...args: [signerOrProvider: TProvider]Network name
Ethers signer or provider
Protected
_getProtected
_getEther's Signer
Percentage to bump by.
Bumped as price as BigNumber
Calculates current gas price plus increased percentage amount.
import { Hop } from '@hop-protocol/sdk'
const hop = new Hop()
const bumpedGasPrice = await hop.getBumpedGasPrice(signer, 1.20)
console.log(bumpedGasPrice.toNumber())
Chain model.
Returns Chain ID for specified Chain model.
Chain model.
Ethers provider.
Returns Ethers provider for specified Chain model.
Token name or model.
Token model.
Returns a Token instance.
Generated using TypeDoc
Class with base methods. Base