global

package
v1.0.0-preupgrade Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceAddressFilter

type InstanceAddressFilter interface {
	// FilterContracts returns the sub-set of contracts that are tracked by the InstanceAddressFilter
	FilterContracts(addresses []contracts.InstanceAddress) []contracts.InstanceAddress
}

InstanceAddressFilter should be implemented by each of the other API implementations. It is used by the Global API to determine if an explicit disclosure for an address should be returned.

The Global API uses the ActiveContractStore to retrieve disclosures, but since the store keeps track of all contracts of any given template that is registered with it, it e.g. does not fail when retrieving a LockReleaseTokenPool that exists in the store but should not be made public since the Token Pool API has not been configured for it. In this case, the Token Pool API's FilterContracts will only return contracts that it is explicitly configured for.

type Server

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

func NewServer

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

func (Server) PostGetExplicitDisclosureBatch

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

PostGetExplicitDisclosureBatch (POST /ccip/v1/global/disclosure/batch)

Jump to

Keyboard shortcuts

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