externalchains

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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 Chains

type Chains struct {
	// contains filtered or unexported fields
}

Chains manages chain clients by fetching chain configs periodically and adding/removing clients accordingly

func NewChains

func NewChains(
	pushCore *pushcore.Client,
	pushSigner *pushsigner.Signer,
	cfg *config.Config,
	logger zerolog.Logger,
) *Chains

NewChains creates a new chains manager

func (*Chains) GetClient

func (c *Chains) GetClient(chainID string) (common.ChainClient, error)

GetClient returns the chain client for the specified chain ID

func (*Chains) GetStandardConfirmations

func (c *Chains) GetStandardConfirmations(chainID string) uint64

GetStandardConfirmations returns the chain's standard block confirmations from registry config (BlockConfirmation.StandardInbound). Used for outbound tx completion. Returns 12 if not set.

func (*Chains) IsChainInboundEnabled

func (c *Chains) IsChainInboundEnabled(chainID string) bool

IsChainInboundEnabled returns whether inbound is enabled for the given chain

func (*Chains) IsChainOutboundEnabled

func (c *Chains) IsChainOutboundEnabled(chainID string) bool

IsChainOutboundEnabled returns whether outbound is enabled for the given chain

func (*Chains) IsEVMChain

func (c *Chains) IsEVMChain(chainID string) bool

IsEVMChain returns true if the chain uses EVM (e.g. Ethereum, BSC). Used by coordinator for nonce behaviour.

func (*Chains) Start

func (c *Chains) Start(ctx context.Context) error

Start begins fetching chains and managing chain clients

func (*Chains) Stop

func (c *Chains) Stop()

Stop stops the chains manager

func (*Chains) StopAll

func (c *Chains) StopAll()

StopAll stops all chain clients

Directories

Path Synopsis
Package svm implements the Solana transaction builder for Push Chain cross-chain outbounds.
Package svm implements the Solana transaction builder for Push Chain cross-chain outbounds.
Package web2 executes web2 (HTTP) read requests: it fetches the declared endpoint, extracts the declared JSON fields, and canonically encodes them so read results are byte-identical across validators.
Package web2 executes web2 (HTTP) read requests: it fetches the declared endpoint, extracts the declared JSON fields, and canonically encodes them so read results are byte-identical across validators.

Jump to

Keyboard shortcuts

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