contract

package
v0.0.0-...-42841ab Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HopeTopic = "quadratic-roots.initialize_calculation.v1"
	FactTopic = "quadratic-roots.calculation_initialized.v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IFact

type IFact interface {
	contract.IFact
}

func NewFact

func NewFact(calcId string, pl Payload) (IFact, error)

func RandomFact

func RandomFact() (IFact, error)

type IHope

type IHope interface {
	sdk_contract.IHope
}

func NewHope

func NewHope(calcId string, payload Payload) (IHope, error)

func RandomHope

func RandomHope() (IHope, error)

type Payload

type Payload struct {
	Input *schema.Input `json:"input"`
}

Payload is the payload for the initialize_calculation behavior

func NewPayload

func NewPayload(a float64, b float64, c float64) *Payload

NewPayload returns a new payload for the initialize_calculation behavior

func RandomPayload

func RandomPayload() *Payload

Jump to

Keyboard shortcuts

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