Documentation ¶
Index ¶
- Variables
- func EncodeABIPacked(input ...[]byte) []byte
- type Host
- func (h *Host) FocusedTransformPatch(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
- func (h *Host) GenerateProof(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
- func (h *Host) GetImports() *wasmedge.ImportObject
- func (h *Host) GetProofByCid(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
- func (h *Host) ReadDagBlock(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
- func (h *Host) SubmitProof(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
- func (h *Host) WriteDagBlock(data interface{}, mem *wasmedge.Memory, params []interface{}) ([]interface{}, wasmedge.Result)
- type ProtocolAPI
- type ProtocolService
- type RPCApi
- type RPCService
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WasmFuncType1 *wasmedge.FunctionType = wasmedge.NewFunctionType( []wasmedge.ValType{ wasmedge.ValType_I32, wasmedge.ValType_I32, wasmedge.ValType_I32, }, []wasmedge.ValType{}) WasmFuncType2 = wasmedge.NewFunctionType( []wasmedge.ValType{ wasmedge.ValType_I32, wasmedge.ValType_I32, wasmedge.ValType_I32, wasmedge.ValType_I32, }, []wasmedge.ValType{}) ROOT_PATH string = "/anconprotocol/onchain" )
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
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 }
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 }
Click to show internal directories.
Click to hide internal directories.