Documentation
¶
Index ¶
- Constants
- type DestChainConfig
- type GlobalConfig
- type PerPartyRouterFactory
- type Server
- func (s Server) FilterContracts(addresses []contracts.InstanceAddress) []contracts.InstanceAddress
- func (s Server) GetTokenAdminRegistryToken(c *gin.Context, instrumentId oapiCommon.HashedInstrumentId)
- func (s Server) PostCCIPExecute(c *gin.Context)
- func (s Server) PostCCIPSend(c *gin.Context)
- func (s Server) PostPerPartyRouterFactory(c *gin.Context)
- type SourceChainConfig
- type TokenAdminRegistry
- type TokenConfig
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 (Server) PostCCIPSend ¶
func (Server) PostPerPartyRouterFactory ¶
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)
Click to show internal directories.
Click to hide internal directories.