contract

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GVK = gvk.NewGroupVersionKind(
	"core",
	"v1alpha",
	"contract",
)

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Type  string `json:"type" template:""`
	Value string `json:"value" template:""`
}

type Ret

type Ret struct {
	Name string `json:"name" template:""`
	Type string `json:"type" template:""`
}

type SpecSchema

type SpecSchema struct {
	Address  common.Address `json:"address" template:""`
	ChainID  uint64         `json:"chainId"`
	Function string         `json:"function"`
	Args     []Arg          `json:"args"`
	Returns  []Ret          `json:"returns"`
}

type Transformer

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

func NewTransformer

func NewTransformer(clients map[uint64]*w3.Client) *Transformer

func (Transformer) CreditsConsumed

func (t Transformer) CreditsConsumed() int

func (Transformer) Deadline

func (t Transformer) Deadline() time.Duration

func (Transformer) Execute

func (t Transformer) Execute(ctx context.Context, base map[string]interface{}) (map[string]interface{}, error)

func (Transformer) Params

func (t Transformer) Params() map[string]interface{}

func (Transformer) Result

func (t Transformer) Result() interface{}

func (Transformer) Status

func (t Transformer) Status() []transformers.Status

func (Transformer) WithSpec

func (t Transformer) WithSpec(ispec interface{}, params map[string]interface{}) (transformers.ITransformer, error)

Jump to

Keyboard shortcuts

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