Documentation ¶
Overview ¶
Package params provides common version info and config items.
Index ¶
- Constants
- Variables
- func AddOrRemoveAccountBlackList(accounts []string, isAdd bool)
- func AddOrRemoveBigValueWhitelist(tokenID string, callers []string, isAdd bool)
- func AddOrRemoveCallByContractCodeHashWhitelist(chainID string, codehashes []string, isAdd bool)
- func AddOrRemoveCallByContractWhitelist(chainID string, callers []string, isAdd bool)
- func AddOrRemoveChainIDBlackList(chainIDs []string, isAdd bool)
- func AddOrRemoveTokenIDBlackList(tokenIDs []string, isAdd bool)
- func AllowCallByConstructor() bool
- func AllowCallByContract() bool
- func CallContractWithGateway(gateway, contract string, data hexutil.Bytes, blockNumber string) (result string, err error)
- func ChargeFeeOnDestChain(tokenID, fromChainID, toChainID string) bool
- func CheckEIP1167Master() bool
- func DontCheckInInitRouter() bool
- func DontCheckTokenBalance(tokenID string) bool
- func DontCheckTokenReceived(tokenID string) bool
- func DontCheckTokenTotalSupply(tokenID string) bool
- func FeeReceiverOnDestChain(toChainID string) string
- func GetAttestationServer() string
- func GetBaseFeePercent(chainID string) int64
- func GetCalcGasPriceMethod(chainID string) string
- func GetCustom(chainID, key string) string
- func GetDataDir() string
- func GetFixedGasPrice(chainID string) *big.Int
- func GetIdentifier() string
- func GetMaxGasLimit(chainID string) uint64
- func GetMaxGasPrice(chainID string) *big.Int
- func GetMaxTokenGasLimit(tokenID, chainID string) uint64
- func GetMinReserveBudget(chainID string) *big.Int
- func GetMinReserveFee(chainID string) *big.Int
- func GetNoncePassedConfirmInterval(chainID string) int64
- func GetOnchainContract() string
- func GetRPCClientTimeout(chainID string) int
- func GetSpecialFlag(key string) string
- func GetSwapSubType() string
- func GetSwapType() string
- func HasCallByContractCodeHashWhitelist(chainID string) bool
- func HasMinReserveBudgetConfig() bool
- func HasRouterAdmin() bool
- func IncreaseNonceWhenSendTx(chainID string) bool
- func IsAccountInBlackList(account string) bool
- func IsAnycallFallbackIgnored(appid string) bool
- func IsAutoSwapNonceEnabled(chainID string) bool
- func IsChainIDInBlackList(chainID string) bool
- func IsCheckTokenBalanceEnabled(chainID string) bool
- func IsCheckTxBlockHashEnabled(chainID string) bool
- func IsCheckTxBlockIndexEnabled(chainID string) bool
- func IsDebugMode() bool
- func IsDynamicFeeTxEnabled(chainID string) bool
- func IsFixedGasPrice(chainID string) bool
- func IsForceAnySwapInAuto() bool
- func IsInBigValueWhitelist(tokenID, caller string) bool
- func IsInCallByContractCodeHashWhitelist(chainID, codehash string) bool
- func IsInCallByContractWhitelist(chainID, caller string) bool
- func IsNFTSwapWithData() bool
- func IsParallelSwapEnabled() bool
- func IsRouterAdmin(account string) bool
- func IsRouterAssistant(account string) bool
- func IsSwapWithPermitEnabled() bool
- func IsSwapoutForbidden(chainID, tokenID string) bool
- func IsTokenIDInBlackList(tokenID string) bool
- func IsTokenIDInBlackListOnChain(chainID, tokenID string) bool
- func IsUseFastMPC(chainID string) bool
- func IsUseFromChainIDInReceiptDisabled(chainID string) bool
- func ReloadRouterConfig()
- func SetAllowCallByContract(allow bool)
- func SetDataDir(dir string, isServer bool)
- func SetDebugMode(flag bool)
- func SetExtraConfig(extra *ExtraConfig) error
- func VersionWithCommit(gitCommit, gitDate string) string
- type APIServerConfig
- type Blacklists
- type DynamicFeeTxConfig
- type ExtraConfig
- type GatewayConfigs
- type LocalChainConfig
- type MPCConfig
- type MPCNodeConfig
- type MongoDBConfig
- type OnchainConfig
- type RouterConfig
- type RouterOracleConfig
- type RouterServerConfig
Constants ¶
const ( VersionMajor = 3 // Major version component of the current release VersionMinor = 6 // Minor version component of the current release VersionPatch = 2 // Patch version component of the current release VersionMeta = "" // Version metadata to append to the version string )
version parts
const (
RouterSwapPrefixID = "routerswap"
)
router swap constants
Variables ¶
var ( GetBalanceBlockNumberOpt = "latest" // latest or pending GatewayConfigFile string )
exported variables
var CustomizeConfigFunc func(*RouterConfig)
CustomizeConfigFunc customize config items
var IsReload bool
IsReload is reloading config
var ( // IsSwapServer is swap server IsSwapServer bool )
var IsTestMode bool
IsTestMode used for testing
var Version = func() string { return fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch) }()
Version holds the textual version string.
var VersionWithMeta = func() string { v := Version if VersionMeta != "" { v += "-" + VersionMeta } return v }()
VersionWithMeta holds the textual version string including the metadata.
Functions ¶
func AddOrRemoveAccountBlackList ¶
AddOrRemoveAccountBlackList add or remove account blacklist
func AddOrRemoveBigValueWhitelist ¶
AddOrRemoveBigValueWhitelist add or remove big value whitelist
func AddOrRemoveCallByContractCodeHashWhitelist ¶
AddOrRemoveCallByContractCodeHashWhitelist add or remove call by contract code hash whitelist
func AddOrRemoveCallByContractWhitelist ¶
AddOrRemoveCallByContractWhitelist add or remove call by contract whitelist
func AddOrRemoveChainIDBlackList ¶
AddOrRemoveChainIDBlackList add or remove chainID blacklist
func AddOrRemoveTokenIDBlackList ¶
AddOrRemoveTokenIDBlackList add or remove tokenID blacklist
func AllowCallByConstructor ¶
func AllowCallByConstructor() bool
AllowCallByConstructor allow call by constructor
func AllowCallByContract ¶
func AllowCallByContract() bool
AllowCallByContract allow call into router from contract
func CallContractWithGateway ¶
func CallContractWithGateway(gateway, contract string, data hexutil.Bytes, blockNumber string) (result string, err error)
CallContractWithGateway call eth_call
func ChargeFeeOnDestChain ¶
ChargeFeeOnDestChain charge fee on dest chain
func CheckEIP1167Master ¶
func CheckEIP1167Master() bool
CheckEIP1167Master whether check eip1167 master call by contract
func DontCheckInInitRouter ¶
func DontCheckInInitRouter() bool
DontCheckInInitRouter do not check in init router
func DontCheckTokenBalance ¶
DontCheckTokenBalance do not check token balance (a security enhance checking)
func DontCheckTokenReceived ¶
DontCheckTokenReceived do not check token received (a security enhance checking)
func DontCheckTokenTotalSupply ¶
DontCheckTokenTotalSupply do not check token total supply (a security enhance checking)
func FeeReceiverOnDestChain ¶
FeeReceiverOnDestChain fee receiver on dest chain
func GetAttestationServer ¶
func GetAttestationServer() string
GetAttestationServer get attestation server
func GetBaseFeePercent ¶
GetBaseFeePercent get base fee percent
func GetCalcGasPriceMethod ¶
GetCalcGasPriceMethod get calc gas price method eg. median (default), first, max, etc.
func GetFixedGasPrice ¶
GetFixedGasPrice get fixed gas price of specified chain
func GetIdentifier ¶
func GetIdentifier() string
GetIdentifier get identifier (to distiguish in mpc accept)
func GetMaxGasLimit ¶
GetMaxGasLimit get max gas limit of specified chain
func GetMaxGasPrice ¶
GetMaxGasPrice get max gas price of specified chain
func GetMaxTokenGasLimit ¶
GetMaxTokenGasLimit get max token gas limit of specified tokenID and chainID
func GetMinReserveBudget ¶
GetMinReserveBudget get min reserve budget
func GetMinReserveFee ¶
GetMinReserveFee get min reserve fee
func GetNoncePassedConfirmInterval ¶
GetNoncePassedConfirmInterval get nonce passed confirm interval
func GetOnchainContract ¶
func GetOnchainContract() string
GetOnchainContract get onchain config contract address
func GetRPCClientTimeout ¶
GetRPCClientTimeout get rpc client timeout
func HasCallByContractCodeHashWhitelist ¶
HasCallByContractCodeHashWhitelist has call by contract code hash whitelist
func HasMinReserveBudgetConfig ¶
func HasMinReserveBudgetConfig() bool
HasMinReserveBudgetConfig has min reserve budget config
func IncreaseNonceWhenSendTx ¶
IncreaseNonceWhenSendTx increase nonce before send tx
func IsAccountInBlackList ¶
IsAccountInBlackList is account in black list
func IsAnycallFallbackIgnored ¶
IsAnycallFallbackIgnored is anycall fallback ignored
func IsAutoSwapNonceEnabled ¶
IsAutoSwapNonceEnabled is auto swap nonce enabled
func IsChainIDInBlackList ¶
IsChainIDInBlackList is chain id in black list
func IsCheckTokenBalanceEnabled ¶
IsCheckTokenBalanceEnabled is check token balance enabled
func IsCheckTxBlockHashEnabled ¶
IsCheckTxBlockHashEnabled check tx block hash
func IsCheckTxBlockIndexEnabled ¶
IsCheckTxBlockIndexEnabled check tx block and index
func IsDynamicFeeTxEnabled ¶
IsDynamicFeeTxEnabled is dynamic fee tx enabled (EIP-1559)
func IsFixedGasPrice ¶
IsFixedGasPrice is fixed gas price of specified chain
func IsForceAnySwapInAuto ¶
func IsForceAnySwapInAuto() bool
IsForceAnySwapInAuto is forcely call anySwapinAuto
func IsInBigValueWhitelist ¶
IsInBigValueWhitelist is in call by contract whitelist
func IsInCallByContractCodeHashWhitelist ¶
IsInCallByContractCodeHashWhitelist is in call by contract code hash whitelist
func IsInCallByContractWhitelist ¶
IsInCallByContractWhitelist is in call by contract whitelist
func IsNFTSwapWithData ¶
func IsNFTSwapWithData() bool
IsNFTSwapWithData is nft swap with data, add data in swapout log and swapin argument
func IsParallelSwapEnabled ¶
func IsParallelSwapEnabled() bool
IsParallelSwapEnabled is parallel swap enabled
func IsRouterAssistant ¶
IsRouterAssistant is router assistants
func IsSwapWithPermitEnabled ¶
func IsSwapWithPermitEnabled() bool
IsSwapWithPermitEnabled is swap with permit enabled
func IsSwapoutForbidden ¶
IsSwapoutForbidden forbid swapout judge
func IsTokenIDInBlackList ¶
IsTokenIDInBlackList is token id in black list
func IsTokenIDInBlackListOnChain ¶
IsTokenIDInBlackListOnChain is token id in black list on chain
func IsUseFromChainIDInReceiptDisabled ¶
IsUseFromChainIDInReceiptDisabled if use fromChainID from receipt log
func SetAllowCallByContract ¶
func SetAllowCallByContract(allow bool)
SetAllowCallByContract set allow call by contract flag (used in testing)
func SetExtraConfig ¶
func SetExtraConfig(extra *ExtraConfig) error
SetExtraConfig set extra config (used by testing)
func VersionWithCommit ¶
VersionWithCommit add git commit and data to version.
Types ¶
type APIServerConfig ¶
APIServerConfig api service config
type Blacklists ¶
type Blacklists struct { ChainIDBlackList []string `toml:",omitempty" json:",omitempty"` TokenIDBlackList []string `toml:",omitempty" json:",omitempty"` TokenIDBlackListOnChain map[string][]string `toml:",omitempty" json:",omitempty"` AccountBlackList []string `toml:",omitempty" json:",omitempty"` }
Blacklists black lists
type DynamicFeeTxConfig ¶
type DynamicFeeTxConfig struct { PlusGasTipCapPercent uint64 PlusGasFeeCapPercent uint64 BlockCountFeeHistory int MaxGasTipCap string MaxGasFeeCap string // contains filtered or unexported fields }
DynamicFeeTxConfig dynamic fee tx config
func GetDynamicFeeTxConfig ¶
func GetDynamicFeeTxConfig(chainID string) *DynamicFeeTxConfig
GetDynamicFeeTxConfig get dynamic fee tx config (EIP-1559)
func (*DynamicFeeTxConfig) GetMaxGasFeeCap ¶
func (c *DynamicFeeTxConfig) GetMaxGasFeeCap() *big.Int
GetMaxGasFeeCap get max fee gas cap
func (*DynamicFeeTxConfig) GetMaxGasTipCap ¶
func (c *DynamicFeeTxConfig) GetMaxGasTipCap() *big.Int
GetMaxGasTipCap get max gas tip cap
type ExtraConfig ¶
type ExtraConfig struct { IsDebugMode bool `toml:",omitempty" json:",omitempty"` EnableSwapWithPermit bool `toml:",omitempty" json:",omitempty"` ForceAnySwapInAuto bool `toml:",omitempty" json:",omitempty"` IsNFTSwapWithData bool `toml:",omitempty" json:",omitempty"` EnableParallelSwap bool `toml:",omitempty" json:",omitempty"` UsePendingBalance bool `toml:",omitempty" json:",omitempty"` DontPanicInInitRouter bool `toml:",omitempty" json:",omitempty"` DontCheckInInitRouter bool `toml:",omitempty" json:",omitempty"` MinReserveFee map[string]uint64 `toml:",omitempty" json:",omitempty"` BaseFeePercent map[string]int64 `toml:",omitempty" json:",omitempty"` // key is chain ID MinReserveBudget map[string]uint64 `toml:",omitempty" json:",omitempty"` AllowCallByConstructor bool `toml:",omitempty" json:",omitempty"` AllowCallByContract bool `toml:",omitempty" json:",omitempty"` CheckEIP1167Master bool `toml:",omitempty" json:",omitempty"` CallByContractWhitelist map[string][]string `toml:",omitempty" json:",omitempty"` // chainID -> whitelist CallByContractCodeHashWhitelist map[string][]string `toml:",omitempty" json:",omitempty"` // chainID -> whitelist BigValueWhitelist map[string][]string `toml:",omitempty" json:",omitempty"` // tokenID -> whitelist DynamicFeeTxEnabledChains []string `toml:",omitempty" json:",omitempty"` EnableCheckTxBlockHashChains []string `toml:",omitempty" json:",omitempty"` EnableCheckTxBlockIndexChains []string `toml:",omitempty" json:",omitempty"` DisableUseFromChainIDInReceiptChains []string `toml:",omitempty" json:",omitempty"` UseFastMPCChains []string `toml:",omitempty" json:",omitempty"` IncreaseNonceWhenSendTxChains []string `toml:",omitempty" json:",omitempty"` DontCheckReceivedTokenIDs []string `toml:",omitempty" json:",omitempty"` DontCheckBalanceTokenIDs []string `toml:",omitempty" json:",omitempty"` DontCheckTotalSupplyTokenIDs []string `toml:",omitempty" json:",omitempty"` CheckTokenBalanceEnabledChains []string `toml:",omitempty" json:",omitempty"` IgnoreAnycallFallbackAppIDs []string `toml:",omitempty" json:",omitempty"` RPCClientTimeout map[string]int `toml:",omitempty" json:",omitempty"` // key is chainID // chainID,customKey => customValue Customs map[string]map[string]string `toml:",omitempty" json:",omitempty"` LocalChainConfig map[string]*LocalChainConfig `toml:",omitempty" json:",omitempty"` // key is chain ID SpecialFlags map[string]string `toml:",omitempty" json:",omitempty"` AttestationServer string `toml:",omitempty" json:",omitempty"` }
ExtraConfig extra config
func (*ExtraConfig) CheckConfig ¶
func (c *ExtraConfig) CheckConfig() (err error)
CheckConfig check extra config
type GatewayConfigs ¶
type GatewayConfigs struct { Gateways map[string][]string // key is chain ID GatewaysExt map[string][]string `toml:",omitempty" json:",omitempty"` // key is chain ID EVMGatewaysExt map[string][]string `toml:",omitempty" json:",omitempty"` // key is chain ID FinalizeGateways map[string][]string `toml:",omitempty" json:",omitempty"` // key is chain ID GRPCGateways map[string][]string `toml:",omitempty" json:",omitempty"` // key is chain ID }
GatewayConfigs gateway config
func LoadGatewayConfigs ¶
func LoadGatewayConfigs() (*GatewayConfigs, error)
LoadGatewayConfigs load gateway configs
type LocalChainConfig ¶
type LocalChainConfig struct { ForbidParallelLoading bool `toml:",omitempty" json:",omitempty"` EstimatedGasMustBePositive bool `toml:",omitempty" json:",omitempty"` IsReswapSupported bool `toml:",omitempty" json:",omitempty"` DontCheckAddressMixedCase bool `toml:",omitempty" json:",omitempty"` SmallestGasPriceUnit uint64 `toml:",omitempty" json:",omitempty"` ForbidSwapoutTokenIDs []string `toml:",omitempty" json:",omitempty"` BigValueDiscount uint64 `toml:",omitempty" json:",omitempty"` // chainID -> tokenids ChargeFeeOnDestChain map[string][]string `toml:",omitempty" json:",omitempty"` FeeReceiverOnDestChain string `toml:",omitempty" json:",omitempty"` // contains filtered or unexported fields }
LocalChainConfig local chain config
func GetLocalChainConfig ¶
func GetLocalChainConfig(chainID string) *LocalChainConfig
GetLocalChainConfig get local chain config
func (*LocalChainConfig) CheckConfig ¶
func (c *LocalChainConfig) CheckConfig() (err error)
CheckConfig check local chain config
type MPCConfig ¶
type MPCConfig struct { SignTypeEC256K1 string `toml:",omitempty" json:",omitempty"` APIPrefix string RPCTimeout uint64 `toml:",omitempty" json:",omitempty"` SignTimeout uint64 `toml:",omitempty" json:",omitempty"` MaxSignGroupFailures int `toml:",omitempty" json:",omitempty"` MinIntervalToAddSignGroup int64 `toml:",omitempty" json:",omitempty"` VerifySignatureInAccept bool `toml:",omitempty" json:",omitempty"` GetAcceptListLoopInterval uint64 `toml:",omitempty" json:",omitempty"` GetAcceptListRetryInterval uint64 `toml:",omitempty" json:",omitempty"` MaxAcceptSignTimeInterval int64 `toml:",omitempty" json:",omitempty"` PendingInvalidAccept bool `toml:",omitempty" json:",omitempty"` GroupID *string NeededOracles *uint32 TotalOracles *uint32 Mode uint32 // 0:managed 1:private (default 0) Initiators []string DefaultNode *MPCNodeConfig OtherNodes []*MPCNodeConfig `toml:",omitempty" json:",omitempty"` SignWithPrivateKey bool // use private key instead (use for testing) SignerPrivateKeys map[string]string `json:"-"` // key is chain ID (use for testing) }
MPCConfig mpc related config
func (*MPCConfig) CheckConfig ¶
CheckConfig check mpc config
func (*MPCConfig) GetSignerPrivateKey ¶
GetSignerPrivateKey get signer private key (use for testing)
func (*MPCConfig) SetSignerPrivateKey ¶
SetSignerPrivateKey set signer private key (use for testing)
type MPCNodeConfig ¶
type MPCNodeConfig struct { RPCAddress *string SignGroups []string `toml:",omitempty" json:",omitempty"` KeystoreFile *string `json:"-"` PasswordFile *string `json:"-"` }
MPCNodeConfig mpc node config
func (*MPCNodeConfig) CheckConfig ¶
func (c *MPCNodeConfig) CheckConfig(isServer bool) (err error)
CheckConfig check mpc node config
type MongoDBConfig ¶
type MongoDBConfig struct { DBURL string `toml:",omitempty" json:",omitempty"` DBURLs []string `toml:",omitempty" json:",omitempty"` DBName string UserName string `json:"-"` Password string `json:"-"` }
MongoDBConfig mongodb config
func (*MongoDBConfig) CheckConfig ¶
func (c *MongoDBConfig) CheckConfig() error
CheckConfig check mongodb config
type OnchainConfig ¶
type OnchainConfig struct { Contract string APIAddress []string WSServers []string ReloadCycle uint64 // seconds IgnoreCheck bool }
OnchainConfig struct
func (*OnchainConfig) CheckConfig ¶
func (c *OnchainConfig) CheckConfig() error
CheckConfig check onchain config storing chain and token configs
type RouterConfig ¶
type RouterConfig struct { Server *RouterServerConfig `toml:",omitempty" json:",omitempty"` Oracle *RouterOracleConfig `toml:",omitempty" json:",omitempty"` Identifier string SwapType string SwapSubType string Onchain *OnchainConfig *GatewayConfigs MPC *MPCConfig FastMPC *MPCConfig `toml:",omitempty" json:",omitempty"` Extra *ExtraConfig `toml:",omitempty" json:",omitempty"` *Blacklists }
RouterConfig config
func LoadRouterConfig ¶
func LoadRouterConfig(configFile string, isServer, check bool) *RouterConfig
LoadRouterConfig load router swap config
func NewRouterConfig ¶
func NewRouterConfig() *RouterConfig
func (*RouterConfig) CheckBlacklistConfig ¶
func (config *RouterConfig) CheckBlacklistConfig() (err error)
CheckBlacklistConfig check black list config
func (*RouterConfig) CheckConfig ¶
func (config *RouterConfig) CheckConfig(isServer bool) (err error)
CheckConfig check router config
type RouterOracleConfig ¶
type RouterOracleConfig struct { ServerAPIAddress string NoCheckServerConnection bool `toml:",omitempty" json:",omitempty"` CheckGasTokenBalance bool `toml:",omitempty" json:",omitempty"` }
RouterOracleConfig only for oracle
func GetRouterOracleConfig ¶
func GetRouterOracleConfig() *RouterOracleConfig
GetRouterOracleConfig get router oracle config
func (*RouterOracleConfig) CheckConfig ¶
func (c *RouterOracleConfig) CheckConfig() (err error)
CheckConfig of router oracle
type RouterServerConfig ¶
type RouterServerConfig struct { Admins []string Assistants []string MongoDB *MongoDBConfig APIServer *APIServerConfig AutoSwapNonceEnabledChains []string `toml:",omitempty" json:",omitempty"` // extras EnableReplaceSwap bool EnablePassBigValueSwap bool ReplacePlusGasPricePercent uint64 `toml:",omitempty" json:",omitempty"` WaitTimeToReplace int64 `toml:",omitempty" json:",omitempty"` // seconds MaxReplaceCount int `toml:",omitempty" json:",omitempty"` MaxReplaceDistance uint64 `toml:",omitempty" json:",omitempty"` PlusGasPricePercentage uint64 `toml:",omitempty" json:",omitempty"` MaxPlusGasPricePercentage uint64 `toml:",omitempty" json:",omitempty"` MaxGasPriceFluctPercent uint64 `toml:",omitempty" json:",omitempty"` FixedGasPrice map[string]string `toml:",omitempty" json:",omitempty"` // key is chain ID MaxGasPrice map[string]string `toml:",omitempty" json:",omitempty"` // key is chain ID NoncePassedConfirmInterval map[string]int64 `toml:",omitempty" json:",omitempty"` // key is chain ID CalcGasPriceMethod map[string]string `toml:",omitempty" json:",omitempty"` // key is chain ID RetrySendTxLoopCount map[string]int `toml:",omitempty" json:",omitempty"` // key is chain ID SendTxLoopCount map[string]int `toml:",omitempty" json:",omitempty"` // key is chain ID SendTxLoopInterval map[string]int `toml:",omitempty" json:",omitempty"` // key is chain ID DefaultFee map[string]string `toml:",omitempty" json:",omitempty"` // key is chain ID DefaultGasLimit map[string]uint64 `toml:",omitempty" json:",omitempty"` // key is chain ID MaxGasLimit map[string]uint64 `toml:",omitempty" json:",omitempty"` // key is chain ID MaxTokenGasLimit map[string]map[string]uint64 `toml:",omitempty" json:",omitempty"` // key is tokenID,chainID DynamicFeeTx map[string]*DynamicFeeTxConfig `toml:",omitempty" json:",omitempty"` // key is chain ID }
RouterServerConfig only for server
func GetRouterServerConfig ¶
func GetRouterServerConfig() *RouterServerConfig
GetRouterServerConfig get router server config
func (*RouterServerConfig) CheckConfig ¶
func (s *RouterServerConfig) CheckConfig() error
CheckConfig of router server
func (*RouterServerConfig) CheckDynamicFeeTxConfig ¶
func (s *RouterServerConfig) CheckDynamicFeeTxConfig() error
CheckDynamicFeeTxConfig check dynamic fee tx config
func (*RouterServerConfig) CheckExtra ¶
func (s *RouterServerConfig) CheckExtra() error
CheckExtra check extra server config