chainwriter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	// Config corresponds to the JSON schema field "config".
	Config TargetConfig `json:"config" yaml:"config" mapstructure:"config"`

	// Inputs corresponds to the JSON schema field "inputs".
	Inputs TargetInputs `json:"inputs" yaml:"inputs" mapstructure:"inputs"`
}

Writes to a blockchain

func (*Target) UnmarshalJSON

func (j *Target) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TargetConfig

type TargetConfig struct {
	// The address to write to.
	Address string `json:"address" yaml:"address" mapstructure:"address"`

	// The delta stage which must be a number followed by a time symbol (s for
	// seconds, m for minutes, h for hours, d for days).
	DeltaStage string `json:"deltaStage" yaml:"deltaStage" mapstructure:"deltaStage"`

	// The schedule which must be the string 'oneAtATime'.
	Schedule TargetConfigSchedule `json:"schedule" yaml:"schedule" mapstructure:"schedule"`
}

func (TargetConfig) New

func (cfg TargetConfig) New(w *sdk.WorkflowSpecFactory, id string, input TargetInput)

func (*TargetConfig) UnmarshalJSON

func (j *TargetConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TargetConfigSchedule

type TargetConfigSchedule string
const TargetConfigScheduleAllAtOnce TargetConfigSchedule = "allAtOnce"
const TargetConfigScheduleOneAtATime TargetConfigSchedule = "oneAtATime"

func (*TargetConfigSchedule) UnmarshalJSON

func (j *TargetConfigSchedule) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type TargetInput

type TargetInput struct {
	SignedReport sdk.CapDefinition[ocr3cap.SignedReport]
}

func (TargetInput) ToSteps

func (input TargetInput) ToSteps() sdk.StepInputs

type TargetInputs

type TargetInputs struct {
	// SignedReport corresponds to the JSON schema field "signed_report".
	SignedReport ocr3cap.SignedReport `json:"signed_report" yaml:"signed_report" mapstructure:"signed_report"`
}

func (*TargetInputs) UnmarshalJSON

func (j *TargetInputs) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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