Help us shape the future of Go! Take the 2026 Go Developer Survey

capabilitiesregistry

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 11 Imported by: 0

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