capabilitiesregistry

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 11 Imported by: 0 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

func MinOCRSignatures

func MinOCRSignatures(f uint8) int

MinOCRSignatures returns the minimum valid OCR signature count (F+1) for a DON.

func OCRSignerAddresses

func OCRSignerAddresses(nodes []capreg.INodeInfoProviderNodeInfo) []common.Address

OCRSignerAddresses returns the OCR signer addresses for CapabilitiesRegistry member nodes. Signer is a bytes32 on-chain; the address is stored in the first 20 bytes (see chainlink launcher).

func ParseCapabilityConfiguration

func ParseCapabilityConfiguration(raw []byte) (capabilities.CapabilityConfiguration, error)

ParseCapabilityConfiguration decodes raw capability config bytes from the registry contract.

Types

type Client

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

Client is a read-only CapabilitiesRegistry contract client backed by a validated RPC URL.

func NewReadOnlyClient

func NewReadOnlyClient(ctx context.Context, rpcURL, contractAddress string) (*Client, error)

NewReadOnlyClient dials rpcURL and binds contractAddress. The caller must have already validated rpcURL format and chain ID against the tenant chain selector.

func (*Client) Close

func (c *Client) Close()

Close releases the underlying RPC connection.

func (*Client) GetDON

GetDON returns on-chain metadata for a single DON ID.

func (*Client) GetDONsInFamily

func (c *Client) GetDONsInFamily(ctx context.Context, donFamily string) ([]*big.Int, error)

GetDONsInFamily returns all DON IDs registered under donFamily.

func (*Client) GetNodes

GetNodes returns all nodes registered in the CapabilitiesRegistry contract.

Jump to

Keyboard shortcuts

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