txbroadcaster

package
v0.0.35 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: 0

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