ccip

package
v0.0.0-...-2b0caa0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const MaxNumCCVs = 64

MaxNumCCVs is a sane limit on the maximum number of CCVs requestable by a client. This is a defense-in-depth measure to prevent abuse of the API.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestChainConfig

type DestChainConfig struct {
	IsEnabled        bool
	DefaultExecutor  *contracts.RawInstanceAddress
	LaneMandatedCCVs []contracts.RawInstanceAddress
	DefaultCCVs      []contracts.RawInstanceAddress
}

type GlobalConfig

type GlobalConfig struct {
	Address            contracts.RawInstanceAddress
	SourceChainConfigs map[uint64]SourceChainConfig
	DestChainConfigs   map[uint64]DestChainConfig
}

func ParseGlobalConfig

func ParseGlobalConfig(createdEvent *apiv2.CreatedEvent) (*GlobalConfig, error)

type PerPartyRouterFactory

type PerPartyRouterFactory struct {
	Address contracts.RawInstanceAddress
}

func ParsePerPartyRouterFactory

func ParsePerPartyRouterFactory(createdEvent *apiv2.CreatedEvent) (*PerPartyRouterFactory, error)

type Server

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

func NewServer

func NewServer(
	_ context.Context,
	logger zerolog.Logger,
	activeContractStore store.ActiveContractStoreInterface,
	config config.CCIPAPIConfig,
) (*Server, error)

func (Server) FilterContracts

func (s Server) FilterContracts(addresses []contracts.InstanceAddress) []contracts.InstanceAddress

FilterContracts returns the sub-set of contracts that are tracked by the CCIP API Server

func (Server) GetTokenAdminRegistryToken

func (s Server) GetTokenAdminRegistryToken(c *gin.Context, instrumentId oapiCommon.HashedInstrumentId)

func (Server) PostCCIPExecute

func (s Server) PostCCIPExecute(c *gin.Context)

func (Server) PostCCIPSend

func (s Server) PostCCIPSend(c *gin.Context)

func (Server) PostPerPartyRouterFactory

func (s Server) PostPerPartyRouterFactory(c *gin.Context)

type SourceChainConfig

type SourceChainConfig struct {
	IsEnabled        bool
	LaneMandatedCCVs []contracts.RawInstanceAddress
	DefaultCCVs      []contracts.RawInstanceAddress
}

type TokenAdminRegistry

type TokenAdminRegistry struct {
	Address    contracts.RawInstanceAddress
	EntryCount types.INT64
}

func ParseTokenAdminRegistry

func ParseTokenAdminRegistry(createdEvent *apiv2.CreatedEvent) (*TokenAdminRegistry, error)

type TokenConfig

type TokenConfig struct {
	Address         contracts.RawInstanceAddress
	RegistryAddress contracts.RawInstanceAddress
	Index           types.INT64
	InstrumentId    contracts.EncodedInstrumentID
	IsCCIPManaged   types.BOOL
	Pool            *core.PoolRegistration
}

func ParseTokenConfig

func ParseTokenConfig(createdEvent *apiv2.CreatedEvent) (*TokenConfig, error)

Jump to

Keyboard shortcuts

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