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 ¶
PostGetExplicitDisclosureBatch (POST /ccip/v1/global/disclosure/batch)