txbroadcaster

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

type Broadcaster struct {
	// contains filtered or unexported fields
}

Broadcaster polls SIGNED events and broadcasts them to external chains.

func NewBroadcaster

func NewBroadcaster(cfg Config) *Broadcaster

NewBroadcaster creates a new tx broadcaster.

func (*Broadcaster) Start

func (b *Broadcaster) Start(ctx context.Context)

Start begins the background broadcast loop.

type Config

type Config struct {
	EventStore    *eventstore.Store
	Chains        *chains.Chains
	CheckInterval time.Duration
	Logger        zerolog.Logger
	GetTSSAddress func(ctx context.Context) (string, error)
}

Config holds configuration for the broadcaster.

type SignedEventData

type SignedEventData struct {
	uexecutortypes.OutboundCreatedEvent
	SigningData *SigningData `json:"signing_data,omitempty"`
}

SignedEventData wraps OutboundCreatedEvent with signing data appended by sessionManager.

type SigningData

type SigningData struct {
	Signature   string `json:"signature"`    // hex-encoded 64/65 byte signature
	SigningHash string `json:"signing_hash"` // hex-encoded signing hash
	Nonce       uint64 `json:"nonce"`
	GasPrice    string `json:"gas_price"` // string for big.Int
}

SigningData holds the signing parameters persisted by sessionManager when marking SIGNED.

Jump to

Keyboard shortcuts

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