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 ¶
- type ConsensusBlocksHandler
- type ContractSdkCallHandler
- type HandleBlockConsensusInput
- func (x *HandleBlockConsensusInput) String() string
- func (x *HandleBlockConsensusInput) StringBlockPair() (res string)
- func (x *HandleBlockConsensusInput) StringBlockType() (res string)
- func (x *HandleBlockConsensusInput) StringMode() (res string)
- func (x *HandleBlockConsensusInput) StringPrevBlockPair() (res string)
- type HandleBlockConsensusMode
- type HandleBlockConsensusOutput
- type HandleSdkCallInput
- func (x *HandleSdkCallInput) String() string
- func (x *HandleSdkCallInput) StringContextId() (res string)
- func (x *HandleSdkCallInput) StringInputArguments() (res string)
- func (x *HandleSdkCallInput) StringMethodName() (res string)
- func (x *HandleSdkCallInput) StringOperationName() (res string)
- func (x *HandleSdkCallInput) StringPermissionScope() (res string)
- type HandleSdkCallOutput
- type HandleTransactionErrorInput
- func (x *HandleTransactionErrorInput) String() string
- func (x *HandleTransactionErrorInput) StringBlockHeight() (res string)
- func (x *HandleTransactionErrorInput) StringBlockTimestamp() (res string)
- func (x *HandleTransactionErrorInput) StringTransactionStatus() (res string)
- func (x *HandleTransactionErrorInput) StringTxhash() (res string)
- type HandleTransactionErrorOutput
- type HandleTransactionResultsInput
- type HandleTransactionResultsOutput
- type MockConsensusBlocksHandler
- type MockContractSdkCallHandler
- type MockTransactionResultsHandler
- func (s *MockTransactionResultsHandler) HandleTransactionError(ctx context.Context, input *HandleTransactionErrorInput) (*HandleTransactionErrorOutput, error)
- func (s *MockTransactionResultsHandler) HandleTransactionResults(ctx context.Context, input *HandleTransactionResultsInput) (*HandleTransactionResultsOutput, error)
- type TransactionResultsHandler
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 ¶
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 ¶
func (x *HandleTransactionErrorOutput) String() string
type HandleTransactionResultsInput ¶
type HandleTransactionResultsInput struct { TransactionReceipts []*protocol.TransactionReceipt BlockHeight primitives.BlockHeight Timestamp primitives.TimestampNano }
func (*HandleTransactionResultsInput) String ¶
func (x *HandleTransactionResultsInput) String() 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 ¶
func (x *HandleTransactionResultsOutput) String() string
type MockConsensusBlocksHandler ¶
type MockConsensusBlocksHandler struct {
mock.Mock
}
func (*MockConsensusBlocksHandler) HandleBlockConsensus ¶
func (s *MockConsensusBlocksHandler) HandleBlockConsensus(ctx context.Context, input *HandleBlockConsensusInput) (*HandleBlockConsensusOutput, error)
type MockContractSdkCallHandler ¶
type MockContractSdkCallHandler struct {
mock.Mock
}
func (*MockContractSdkCallHandler) HandleSdkCall ¶
func (s *MockContractSdkCallHandler) HandleSdkCall(ctx context.Context, input *HandleSdkCallInput) (*HandleSdkCallOutput, error)
type MockTransactionResultsHandler ¶
type MockTransactionResultsHandler struct {
mock.Mock
}
func (*MockTransactionResultsHandler) HandleTransactionError ¶
func (s *MockTransactionResultsHandler) HandleTransactionError(ctx context.Context, input *HandleTransactionErrorInput) (*HandleTransactionErrorOutput, error)
func (*MockTransactionResultsHandler) HandleTransactionResults ¶
func (s *MockTransactionResultsHandler) HandleTransactionResults(ctx context.Context, input *HandleTransactionResultsInput) (*HandleTransactionResultsOutput, error)
type TransactionResultsHandler ¶
type TransactionResultsHandler interface { HandleTransactionResults(ctx context.Context, input *HandleTransactionResultsInput) (*HandleTransactionResultsOutput, error) HandleTransactionError(ctx context.Context, input *HandleTransactionErrorInput) (*HandleTransactionErrorOutput, error) }
Click to show internal directories.
Click to hide internal directories.