synapsecns/sanguine

View on GitHub
services/rfq/relayer/relapi/export_test.go

Summary

Maintainability
A
0 mins
Test Coverage
package relapi

import (
    "github.com/ethereum/go-ethereum/common"
    "github.com/synapsecns/sanguine/services/rfq/relayer/relconfig"
)

// TokenIDExists checks if a token ID exists in the config.
func TokenIDExists(cfg relconfig.Config, tokenAddress common.Address, chainID int) bool {
    return tokenIDExists(cfg, tokenAddress, chainID)
}

// ToAddressIsWhitelisted checks if a to address is whitelisted.
func ToAddressIsWhitelisted(cfg relconfig.Config, to common.Address) bool {
    return toAddressIsWhitelisted(cfg, to)
}