Versions in this module Expand all Collapse all v1 v1.2.0 Mar 8, 2026 Changes in this version + func LoadEnabledBlockchains(configDirPath string) (map[uint64]BlockchainConfig, error) + type AssetConfig struct + Decimals uint8 + Disabled bool + Name string + SuggestedBlockchainID uint64 + Symbol string + Tokens []TokenConfig + type AssetsConfig struct + Assets []AssetConfig + func LoadAssets(configDirPath string) (AssetsConfig, error) + type BlockchainConfig struct + BlockStep uint64 + ChannelHubAddress string + ChannelHubSigValidators map[uint8]string + Disabled bool + ID uint64 + LockingContractAddress string + Name string + type BlockchainsConfig struct + Blockchains []BlockchainConfig + type MemoryStore interface + GetAssetDecimals func(asset string) (uint8, error) + GetAssets func(blockchainID *uint64) ([]core.Asset, error) + GetBlockchains func() ([]core.Blockchain, error) + GetChannelSigValidators func(blockchainID uint64) (map[uint8]string, error) + GetTokenAddress func(asset string, blockchainID uint64) (string, error) + GetTokenDecimals func(blockchainID uint64, tokenAddress string) (uint8, error) + IsAssetSupported func(asset, tokenAddress string, blockchainID uint64) (bool, error) + func NewMemoryStoreV1(assetsConfig AssetsConfig, blockchainsConfig map[uint64]BlockchainConfig) (MemoryStore, error) + func NewMemoryStoreV1FromConfig(configDirPath string) (MemoryStore, error) + type MemoryStoreV1 struct + func (ms *MemoryStoreV1) GetAssetDecimals(asset string) (uint8, error) + func (ms *MemoryStoreV1) GetAssets(blockchainID *uint64) ([]core.Asset, error) + func (ms *MemoryStoreV1) GetBlockchains() ([]core.Blockchain, error) + func (ms *MemoryStoreV1) GetChannelSigValidators(blockchainID uint64) (map[uint8]string, error) + func (ms *MemoryStoreV1) GetTokenAddress(asset string, blockchainID uint64) (string, error) + func (ms *MemoryStoreV1) GetTokenDecimals(blockchainID uint64, tokenAddress string) (uint8, error) + func (ms *MemoryStoreV1) IsAssetSupported(asset, tokenAddress string, blockchainID uint64) (bool, error) + type TokenConfig struct + Address string + BlockchainID uint64 + Decimals uint8 + Disabled bool + Name string + Symbol string