api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(bc chain.BlockChain, name, version string) *API

func (*API) ServeRPC added in v0.0.4

func (api *API) ServeRPC(ctx context.Context, req *cborrpc.Request) *cborrpc.Response

ServeRPC is the main entrypoint for the LDVM.

type ChainAPI added in v0.1.0

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

func NewChainAPI added in v0.1.0

func NewChainAPI(bc chain.BlockChain, name, version string) *ChainAPI

func (*ChainAPI) ServeHTTP added in v0.1.0

func (api *ChainAPI) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*ChainAPI) ServeRPC added in v0.1.0

func (api *ChainAPI) ServeRPC(ctx context.Context, req *jsonrpc.Request) *jsonrpc.Response

type NoArgs

type NoArgs struct{}

type PrevDataParams

type PrevDataParams struct {
	ID      ids.DataID
	Version uint64
	// contains filtered or unexported fields
}

type VMAPI

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

func NewVMAPI

func NewVMAPI(name, version string) *VMAPI

func (*VMAPI) Genesis

func (api *VMAPI) Genesis(_ *http.Request, args *NoArgs, reply *genesis.Genesis) error

Genesis returns the genesis data

func (*VMAPI) Version added in v0.1.0

func (api *VMAPI) Version(_ *http.Request, args *NoArgs, reply *map[string]string) error

Version returns VM's name and version

Jump to

Keyboard shortcuts

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