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.
Click to show internal directories.
Click to hide internal directories.