Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeePricer ¶
type FeePricer interface { // Start starts the fee pricer. Start(ctx context.Context) // GetOriginFee returns the total fee for a given chainID and gas limit, denominated in a given token. GetOriginFee(ctx context.Context, origin, destination uint32, denomToken string) (*big.Int, error) // GetDestinationFee returns the total fee for a given chainID and gas limit, denominated in a given token. GetDestinationFee(ctx context.Context, origin, destination uint32, denomToken string) (*big.Int, error) // GetTotalFee returns the total fee for a given origin and destination chainID, denominated in a given token. GetTotalFee(ctx context.Context, origin, destination uint32, denomToken string) (*big.Int, error) // GetGasPrice returns the gas price for a given chainID in native units. GetGasPrice(ctx context.Context, chainID uint32) (*big.Int, error) }
FeePricer is the interface for the fee pricer.
func NewFeePricer ¶
func NewFeePricer(config relconfig.Config, clientFetcher submitter.ClientFetcher) FeePricer
NewFeePricer creates a new fee pricer.
Click to show internal directories.
Click to hide internal directories.