Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages channel state transitions and provides RPC endpoints for state submission.
func NewHandler ¶
func NewHandler( memoryStore MemoryStore, nodeAddress string, nodeVersion string, ) *Handler
NewHandler creates a new Handler instance with the provided dependencies.
type MemoryStore ¶
type MemoryStore interface {
// GetBlockchains retrieves the list of supported blockchains.
GetBlockchains() ([]core.Blockchain, error)
// GetAssets retrieves the list of supported assets.
// If blockchainID is provided, filters assets to only include tokens on that blockchain.
GetAssets(blockchainID *uint64) ([]core.Asset, error)
}
MemoryStore defines an in-memory data store interface for retrieving supported blockchains and assets.
type MockMemoryStore ¶
MockMemoryStore is a mock implementation of the MemoryStore interface
func (*MockMemoryStore) GetAssets ¶
func (m *MockMemoryStore) GetAssets(blockchainID *uint64) ([]core.Asset, error)
func (*MockMemoryStore) GetBlockchains ¶
func (m *MockMemoryStore) GetBlockchains() ([]core.Blockchain, error)
Click to show internal directories.
Click to hide internal directories.