Documentation ¶
Index ¶
- Constants
- func GetSpecialPoolOverrides(network_ network.BlockchainNetwork, poolName applications.UtilityName) (options worker.SpecialPoolOptions, isEnabled bool, wasFound bool)
- func LookupFeeSwitch(addr ethereum.Address, network_ network.BlockchainNetwork) (newAddr ethereum.Address, changed bool)
- type FeeSwitch
- type WorkerConfigEthereum
- type WorkerConfigSolana
- type WorkerConfigSui
Constants ¶
View Source
const ( // Context to use for logging Context = "POSTGRES/WORKER" // TableWorkerConfigEthereum to use for retrieving worker server // configuration for EVM chains TableWorkerConfigEthereum = "worker_config_ethereum" // TableWorkerConfigSolana to use for retrieving worker server // configuration for Solana TableWorkerConfigSolana = "worker_config_solana" // TableWorkerConfigSui to use for retrieving worker server // configuration for Sui TableWorkerConfigSui = "worker_config_sui" // TableFeeSwitch is used to replace addresses that would normally be // paid out with another address for the fee switching feature until we // have Fluidity V2 up TableFeeSwitch = "fee_switch" )
View Source
const TablePoolOverrides = `worker_custom_pool_overrides`
Variables ¶
This section is empty.
Functions ¶
func GetSpecialPoolOverrides ¶
func GetSpecialPoolOverrides(network_ network.BlockchainNetwork, poolName applications.UtilityName) (options worker.SpecialPoolOptions, isEnabled bool, wasFound bool)
func LookupFeeSwitch ¶
func LookupFeeSwitch(addr ethereum.Address, network_ network.BlockchainNetwork) (newAddr ethereum.Address, changed bool)
LookupFeeSwitch to get the fee switch for the given address, or the address if no switch is found
Types ¶
type FeeSwitch ¶
func GetFeeSwitch ¶
func GetFeeSwitch(originalAddress ethereum.Address, network_ network.BlockchainNetwork) *FeeSwitch
type WorkerConfigEthereum ¶
type WorkerConfigEthereum = worker.WorkerConfigEthereum
func GetWorkerConfigEthereum ¶
func GetWorkerConfigEthereum(network_ network.BlockchainNetwork) (config WorkerConfigEthereum)
GetWorkerConfigEthereum, assuming there's only one, for the network given
type WorkerConfigSolana ¶
type WorkerConfigSolana = worker.WorkerConfigSolana
func GetWorkerConfigSolana ¶
func GetWorkerConfigSolana() (config WorkerConfigSolana)
GetWorkerConfigSolana, assuming there's only one, for the network given
type WorkerConfigSui ¶
type WorkerConfigSui = worker.WorkerConfigSui
func GetWorkerConfigSui ¶
func GetWorkerConfigSui() (config WorkerConfigSui)
Click to show internal directories.
Click to hide internal directories.