protocol

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

Types

type Host

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

func NewEvmRelayHost

func NewEvmRelayHost(storage *sdk.Storage,
	proof *proofsignature.IavlProofAPI,
	adapter *ethereum.OnchainAdapter,
) *Host

func (*Host) FocusedTransformPatch

func (h *Host) FocusedTransformPatch(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
cid: &str,
path: &str,
prev: &str,
next: &str,
ntype: NodeType,

) -> [u8; 1024];

func (*Host) GenerateProof

func (h *Host) GenerateProof(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)

Host functions

func (*Host) GetImports

func (h *Host) GetImports() *wasmedge.ImportObject

func (*Host) GetProofByCid

func (h *Host) GetProofByCid(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)

Host functions

func (*Host) ReadDagBlock

func (h *Host) ReadDagBlock(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)

Host functions

func (*Host) SubmitProof

func (h *Host) SubmitProof(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)

Host functions

func (*Host) WriteDagBlock

func (h *Host) WriteDagBlock(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)

Host functions

type ProtocolAPI

type ProtocolAPI struct {
	Namespace string
	Version   string
	Service   *ProtocolService
	Public    bool
}

func NewProtocolAPI

func NewProtocolAPI(adapter *ethereum.OnchainAdapter, storage *sdk.Storage, proof *proofsignature.IavlProofAPI) *ProtocolAPI

type ProtocolService

type ProtocolService struct {
	Adapter *ethereum.OnchainAdapter
	Storage *sdk.Storage
	Proof   *proofsignature.IavlProofAPI
	Host    *Host
	// contains filtered or unexported fields
}

func (*ProtocolService) Call

func (s *ProtocolService) Call(to string, from string, sig []byte, data string) string

type RPCApi added in v0.6.0

type RPCApi struct {
	Namespace string
	Version   string
	Service   *RPCService
	Public    bool
}

func NewRPCApi added in v0.6.0

func NewRPCApi(storage *sdk.Storage, proof *proofsignature.IavlProofAPI) *RPCApi

type RPCService added in v0.6.0

type RPCService struct {
	Storage *sdk.Storage
	Proof   *proofsignature.IavlProofAPI
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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