txbroadcaster

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 14 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 SignedFundMigrationData added in v0.0.28

type SignedFundMigrationData struct {
	utsstypes.FundMigrationInitiatedEventData
	SigningData *SigningData `json:"signing_data,omitempty"`
}

SignedFundMigrationData wraps FundMigrationInitiatedEventData with signing data.

type SignedOutboundData added in v0.0.28

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

SignedOutboundData wraps OutboundCreatedEvent with signing data.

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"`
	TSSFundMigrationAmount *big.Int `json:"tss_fund_migration_amount,omitempty"`
}

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