worker

package
v0.0.0-...-07d62d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

type FeeSwitch = worker.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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL