core

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func interface {

	// EncodeArgs ABI-encodes the given args and prepends the Func's 4-byte
	// selector.
	EncodeArgs(args ...interface{}) (input []byte, err error)

	// DecodeArgs ABI-decodes the given input to the given args.
	DecodeArgs(input []byte, args ...interface{}) (err error)

	// DecodeReturns ABI-decodes the given output to the given returns.
	DecodeReturns(output []byte, returns ...interface{}) (err error)
}

Func is the interface that wraps the methods for ABI encoding and decoding.

type RequestCreater

type RequestCreater interface {
	CreateRequest() (elem rpc.BatchElem, err error)
}

RequestCreater is the interface that wraps the basic CreateRequest method.

type RequestCreaterResponseHandler

type RequestCreaterResponseHandler interface {
	RequestCreater
	ResponseHandler
}

RequestCreaterResponseHandler is the interface that groups the basic CreateRequest and HandleResponse methods.

type ResponseHandler

type ResponseHandler interface {
	HandleResponse(elem rpc.BatchElem) (err error)
}

ResponseHandler is the interface that wraps the basic HandleResponse method.

Source Files

Jump to

Keyboard shortcuts

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