channelsource

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 4 Imported by: 0 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 PersistedDefinitions

type PersistedDefinitions struct {
	ChainSelector uint64          `db:"chain_selector"`
	Address       common.Address  `db:"addr"`
	Definitions   json.RawMessage `db:"definitions"`
	BlockNum      int64           `db:"block_num"`
	DonID         uint32          `db:"don_id"`
	Version       uint32          `db:"version"`
	Format        uint32          `db:"format"`
	UpdatedAt     time.Time       `db:"updated_at"`
}

type SourceDefinition

type SourceDefinition struct {
	Trigger     Trigger                     `json:"trigger"`
	Definitions llotypes.ChannelDefinitions `json:"definitions"`
}

SourceDefinition stores the channel definitions fetched from a specific source along with the trigger that initiated the fetch.

type Trigger

type Trigger struct {
	Source   uint32   `json:"source"`
	URL      string   `json:"url"`
	SHA      [32]byte `json:"sha"`
	BlockNum int64    `json:"block_num"`
	LogIndex int64    `json:"log_index"`
	Version  uint32   `json:"version"`
	TxHash   [32]byte `json:"tx_hash"`
}

Trigger contains the information needed to fetch channel definitions from a URL. It is created from on-chain events and includes the source, URL, expected SHA hash, block number, version (for owner sources), and transaction hash.

Jump to

Keyboard shortcuts

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