types

package
v0.0.0-...-cda9367 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EventName = "AppEvent"

EventName is a common event name required by each application

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ID  string
	ABI abi.ABI
}

Application ...

func NewApplication

func NewApplication(id string, abi abi.ABI) Application

NewApplication ...

type EventData

type EventData struct {
	Contract common.Address
	Data     ctypes.Log
}

EventData contains raw unencoded transaction data

func NewEventData

func NewEventData(contract common.Address, data ctypes.Log) EventData

NewEventData initializes a new instance of EventData

type LightClientProof

type LightClientProof struct {
	Message
}

LightClientProof is a wrapper around messages containing light client proof verification data

func NewLightClientProof

func NewLightClientProof(message Message) LightClientProof

NewLightClientProof initializes a new instance of LightClientProof

type Message

type Message struct {
	Contents         []byte      // RLP-encoded transaction data
	VerificationData interface{} // Data used to verify the transaction by the verification module
}

Message contains RLP-encoded transaction data and transaction verification data

func NewMessage

func NewMessage(txData []byte, verificationData interface{}) Message

NewMessage initializes a new instance of Message

type Packet

type Packet struct {
	AppID   [32]byte
	Message interface{}
}

Packet contains an application's unique identifier and a substrate-compatible message

func NewPacket

func NewPacket(appID [32]byte, message interface{}) Packet

NewPacket initializes a new instance of Packet

type ThresholdSignature

type ThresholdSignature struct {
	Message
}

ThresholdSignature is a wrapper around messages containing threshold signature verification data

func NewThresholdSignature

func NewThresholdSignature(message Message) ThresholdSignature

NewThresholdSignature initializes a new instance of ThresholdSignature

type Unverified

type Unverified struct {
	Message
}

Unverified is a wrapper around messages without verification data

func NewUnverified

func NewUnverified(message Message) Unverified

NewUnverified initializes a new instance of Unverified

Jump to

Keyboard shortcuts

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