types

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: 0

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