weirollgo

package module
v0.0.0-...-a3e26a0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

README

Weiroll-go

Go SDK library for Weiroll.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Type CommandType

	Address ethgo.Address
	Method  *abi.Method
	Args    []interface{}
}

func (*Command) Delegate

func (c *Command) Delegate() *Command

type CommandType

type CommandType string
const (
	CallCommandType    CommandType = "CALL"
	RawCallCommandType CommandType = "RAWCALL"
	SubPlanCommandType CommandType = "SUBPLAN"
)

type Contract

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

func NewContract

func NewContract(addr ethgo.Address, abi *abi.ABI) *Contract

func (*Contract) Call

func (c *Contract) Call(methodName string, args ...interface{}) *Command

func (*Contract) CallErr

func (c *Contract) CallErr(methodName string, args ...interface{}) (*Command, error)

type LiteralValue

type LiteralValue struct {
	Value []byte
	Slot  uint64
}

func (*LiteralValue) GetSlot

func (l *LiteralValue) GetSlot() uint64

type Plan

type Plan struct {
	Commands [][32]byte
	State    [][]byte
}

type Planner

type Planner struct {
	Commands []*Command
}

func NewPlanner

func NewPlanner() *Planner

func (*Planner) Add

func (p *Planner) Add(c *Command) *ReturnValue

func (*Planner) Plan

func (p *Planner) Plan() (*Plan, error)

type ReturnValue

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

type ReturnValue2

type ReturnValue2 struct {
	Slot uint64
}

func (*ReturnValue2) GetSlot

func (r *ReturnValue2) GetSlot() uint64

type ValueI

type ValueI interface {
	GetSlot() uint64
}

Jump to

Keyboard shortcuts

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