handlers

package
v0.0.0-...-bf1cce6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 5 Imported by: 15

Documentation

Overview

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusBlocksHandler

type ConsensusBlocksHandler interface {
	HandleBlockConsensus(ctx context.Context, input *HandleBlockConsensusInput) (*HandleBlockConsensusOutput, error)
}

type ContractSdkCallHandler

type ContractSdkCallHandler interface {
	HandleSdkCall(ctx context.Context, input *HandleSdkCallInput) (*HandleSdkCallOutput, error)
}

type HandleBlockConsensusInput

type HandleBlockConsensusInput struct {
	Mode          HandleBlockConsensusMode
	BlockType     protocol.BlockType
	BlockPair     *protocol.BlockPairContainer
	PrevBlockPair *protocol.BlockPairContainer
}

func (*HandleBlockConsensusInput) String

func (x *HandleBlockConsensusInput) String() string

func (*HandleBlockConsensusInput) StringBlockPair

func (x *HandleBlockConsensusInput) StringBlockPair() (res string)

func (*HandleBlockConsensusInput) StringBlockType

func (x *HandleBlockConsensusInput) StringBlockType() (res string)

func (*HandleBlockConsensusInput) StringMode

func (x *HandleBlockConsensusInput) StringMode() (res string)

func (*HandleBlockConsensusInput) StringPrevBlockPair

func (x *HandleBlockConsensusInput) StringPrevBlockPair() (res string)

type HandleBlockConsensusMode

type HandleBlockConsensusMode uint16
const (
	HANDLE_BLOCK_CONSENSUS_MODE_RESERVED          HandleBlockConsensusMode = 0
	HANDLE_BLOCK_CONSENSUS_MODE_VERIFY_AND_UPDATE HandleBlockConsensusMode = 1
	HANDLE_BLOCK_CONSENSUS_MODE_UPDATE_ONLY       HandleBlockConsensusMode = 2
	HANDLE_BLOCK_CONSENSUS_MODE_VERIFY_ONLY       HandleBlockConsensusMode = 3
	HANDLE_BLOCK_CONSENSUS_MODE_VERIFY_CHAIN_TIP  HandleBlockConsensusMode = 4
)

func (HandleBlockConsensusMode) String

func (n HandleBlockConsensusMode) String() string

type HandleBlockConsensusOutput

type HandleBlockConsensusOutput struct {
}

func (*HandleBlockConsensusOutput) String

func (x *HandleBlockConsensusOutput) String() string

type HandleSdkCallInput

type HandleSdkCallInput struct {
	ContextId       primitives.ExecutionContextId
	OperationName   primitives.ContractName
	MethodName      primitives.MethodName
	InputArguments  []*protocol.Argument
	PermissionScope protocol.ExecutionPermissionScope
}

func (*HandleSdkCallInput) String

func (x *HandleSdkCallInput) String() string

func (*HandleSdkCallInput) StringContextId

func (x *HandleSdkCallInput) StringContextId() (res string)

func (*HandleSdkCallInput) StringInputArguments

func (x *HandleSdkCallInput) StringInputArguments() (res string)

func (*HandleSdkCallInput) StringMethodName

func (x *HandleSdkCallInput) StringMethodName() (res string)

func (*HandleSdkCallInput) StringOperationName

func (x *HandleSdkCallInput) StringOperationName() (res string)

func (*HandleSdkCallInput) StringPermissionScope

func (x *HandleSdkCallInput) StringPermissionScope() (res string)

type HandleSdkCallOutput

type HandleSdkCallOutput struct {
	OutputArguments []*protocol.Argument
}

func (*HandleSdkCallOutput) String

func (x *HandleSdkCallOutput) String() string

func (*HandleSdkCallOutput) StringOutputArguments

func (x *HandleSdkCallOutput) StringOutputArguments() (res string)

type HandleTransactionErrorInput

type HandleTransactionErrorInput struct {
	Txhash            primitives.Sha256
	TransactionStatus protocol.TransactionStatus
	BlockHeight       primitives.BlockHeight
	BlockTimestamp    primitives.TimestampNano
}

func (*HandleTransactionErrorInput) String

func (x *HandleTransactionErrorInput) String() string

func (*HandleTransactionErrorInput) StringBlockHeight

func (x *HandleTransactionErrorInput) StringBlockHeight() (res string)

func (*HandleTransactionErrorInput) StringBlockTimestamp

func (x *HandleTransactionErrorInput) StringBlockTimestamp() (res string)

func (*HandleTransactionErrorInput) StringTransactionStatus

func (x *HandleTransactionErrorInput) StringTransactionStatus() (res string)

func (*HandleTransactionErrorInput) StringTxhash

func (x *HandleTransactionErrorInput) StringTxhash() (res string)

type HandleTransactionErrorOutput

type HandleTransactionErrorOutput struct {
}

func (*HandleTransactionErrorOutput) String

type HandleTransactionResultsInput

type HandleTransactionResultsInput struct {
	TransactionReceipts []*protocol.TransactionReceipt
	BlockHeight         primitives.BlockHeight
	Timestamp           primitives.TimestampNano
}

func (*HandleTransactionResultsInput) String

func (*HandleTransactionResultsInput) StringBlockHeight

func (x *HandleTransactionResultsInput) StringBlockHeight() (res string)

func (*HandleTransactionResultsInput) StringTimestamp

func (x *HandleTransactionResultsInput) StringTimestamp() (res string)

func (*HandleTransactionResultsInput) StringTransactionReceipts

func (x *HandleTransactionResultsInput) StringTransactionReceipts() (res string)

type HandleTransactionResultsOutput

type HandleTransactionResultsOutput struct {
}

func (*HandleTransactionResultsOutput) String

type MockConsensusBlocksHandler

type MockConsensusBlocksHandler struct {
	mock.Mock
}

func (*MockConsensusBlocksHandler) HandleBlockConsensus

type MockContractSdkCallHandler

type MockContractSdkCallHandler struct {
	mock.Mock
}

func (*MockContractSdkCallHandler) HandleSdkCall

type MockTransactionResultsHandler

type MockTransactionResultsHandler struct {
	mock.Mock
}

func (*MockTransactionResultsHandler) HandleTransactionError

func (*MockTransactionResultsHandler) HandleTransactionResults

type TransactionResultsHandler

type TransactionResultsHandler interface {
	HandleTransactionResults(ctx context.Context, input *HandleTransactionResultsInput) (*HandleTransactionResultsOutput, error)
	HandleTransactionError(ctx context.Context, input *HandleTransactionErrorInput) (*HandleTransactionErrorOutput, error)
}

Jump to

Keyboard shortcuts

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