client

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OCR2ChainTypeEvm      = string(generated.OCR2ChainTypeEvm)
	OCR2ChainTypeCosmos   = string(generated.OCR2ChainTypeCosmos)
	OCR2ChainTypeSolana   = string(generated.OCR2ChainTypeSolana)
	OCR2ChainTypeStarknet = string(generated.OCR2ChainTypeStarknet)
	OCR2ChainTypeAptos    = string(generated.OCR2ChainTypeAptos)
	OCR2ChainTypeTron     = string(generated.OCR2ChainTypeTron)
	OCR2ChainTypeTon      = string(generated.OCR2ChainTypeTon)
)

Variables

This section is empty.

Functions

func DecodeInput

func DecodeInput(in, out any) error

Types

type Client

type Client interface {
	FetchCSAPublicKey(ctx context.Context) (*string, error)
	FetchP2PPeerID(ctx context.Context) (*string, error)
	FetchAccountAddress(ctx context.Context, chainID string) (*string, error)
	FetchKeys(ctx context.Context, chainType string) ([]string, error)
	FetchOCR2KeyBundleID(ctx context.Context, chainType string) (string, error)
	ListOCR2KeyBundles(ctx context.Context) ([]OCR2KeyBundle, error)
	CreateOCR2KeyBundle(ctx context.Context, chainType string) (string, error)
	GetJob(ctx context.Context, id string) (*generated.GetJobResponse, error)
	ListJobs(ctx context.Context, offset, limit int) (*generated.ListJobsResponse, error)
	GetJobDistributor(ctx context.Context, id string) (generated.FeedsManagerParts, error)
	ListJobDistributors(ctx context.Context) (*generated.ListFeedsManagersResponse, error)
	CreateJobDistributor(ctx context.Context, cmd JobDistributorInput) (string, error)
	UpdateJobDistributor(ctx context.Context, id string, cmd JobDistributorInput) error
	CreateJobDistributorChainConfig(ctx context.Context, in JobDistributorChainConfigInput) (string, error)
	DeleteJobDistributorChainConfig(ctx context.Context, id string) error
	GetJobProposal(ctx context.Context, id string) (*generated.GetJobProposalJobProposal, error)
	ApproveJobProposalSpec(ctx context.Context, id string, force bool) (*JobProposalApprovalSuccessSpec, error)
	CancelJobProposalSpec(ctx context.Context, id string) (*generated.CancelJobProposalSpecCancelJobProposalSpecCancelJobProposalSpecSuccessSpecJobProposalSpec, error)
	RejectJobProposalSpec(ctx context.Context, id string) (*generated.RejectJobProposalSpecResponse, error)
	UpdateJobProposalSpecDefinition(ctx context.Context, id string, cmd generated.UpdateJobProposalSpecDefinitionInput) (*generated.UpdateJobProposalSpecDefinitionResponse, error)
}

func New deprecated

func New(baseURI string, creds Credentials) (Client, error)

Deprecated: use NewWithContext instead

func NewWithContext

func NewWithContext(ctx context.Context, baseURI string, creds Credentials) (Client, error)

type Credentials

type Credentials struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type JobDistributorChainConfigInput

type JobDistributorChainConfigInput struct {
	JobDistributorID     string `json:"feedsManagerID"`
	ChainID              string `json:"chainID"`
	ChainType            string `json:"chainType"`
	AccountAddr          string `json:"accountAddr"`
	AccountAddrPubKey    string `json:"accountAddrPubKey"`
	AdminAddr            string `json:"adminAddr"`
	FluxMonitorEnabled   bool   `json:"fluxMonitorEnabled"`
	Ocr1Enabled          bool   `json:"ocr1Enabled"`
	Ocr1IsBootstrap      bool   `json:"ocr1IsBootstrap"`
	Ocr1Multiaddr        string `json:"ocr1Multiaddr"`
	Ocr1P2PPeerID        string `json:"ocr1P2PPeerID"`
	Ocr1KeyBundleID      string `json:"ocr1KeyBundleID"`
	Ocr2Enabled          bool   `json:"ocr2Enabled"`
	Ocr2IsBootstrap      bool   `json:"ocr2IsBootstrap"`
	Ocr2Multiaddr        string `json:"ocr2Multiaddr"`
	Ocr2ForwarderAddress string `json:"ocr2ForwarderAddress"`
	Ocr2P2PPeerID        string `json:"ocr2P2PPeerID"`
	Ocr2KeyBundleID      string `json:"ocr2KeyBundleID"`
	Ocr2Plugins          string `json:"ocr2Plugins"`
}

type JobDistributorInput

type JobDistributorInput struct {
	Name      string `json:"name"`
	Uri       string `json:"uri"`
	PublicKey string `json:"publicKey"`
}

type JobProposalApprovalSuccessSpec

type JobProposalApprovalSuccessSpec struct {
	Id              string `json:"id"`
	Definition      string `json:"definition"`
	Version         int    `json:"version"`
	Status          string `json:"status"`
	StatusUpdatedAt string `json:"statusUpdatedAt"`
	CreatedAt       string `json:"createdAt"`
	UpdatedAt       string `json:"updatedAt"`
}

type OCR2ChainType

type OCR2ChainType = string

type OCR2KeyBundle

type OCR2KeyBundle struct {
	ID                string        `json:"id"`
	ChainType         OCR2ChainType `json:"chainType"`
	ConfigPublicKey   string        `json:"configPublicKey"`
	OnChainPublicKey  string        `json:"onChainPublicKey"`
	OffChainPublicKey string        `json:"offChainPublicKey"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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