labi

package
v0.0.0-...-77dcbbd Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package labi defines ABI interface to communicate with Lisk Application.

Index

Constants

View Source
const (
	TxVerifyResultInvalid  int32 = -1
	TxVerifyResultPending  int32 = 0
	TxVerifyResultOk       int32 = 1
	TxExecuteResultInvalid int32 = -1
	TxExecuteResultFail    int32 = 0
	TxExecuteResultSuccess int32 = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterTransactionsExecuteRequest

type AfterTransactionsExecuteRequest struct {
	ContextID    codec.Hex                 `json:"contextID" fieldNumber:"1"`
	Assets       []*blockchain.BlockAsset  `json:"assets" fieldNumber:"2"`
	Consensus    *Consensus                `json:"consensus" fieldNumber:"3"`
	Transactions []*blockchain.Transaction `json:"transactions" fieldNumber:"4"`
}

func (*AfterTransactionsExecuteRequest) Decode

func (e *AfterTransactionsExecuteRequest) Decode(data []byte) error

func (*AfterTransactionsExecuteRequest) DecodeFromReader

func (e *AfterTransactionsExecuteRequest) DecodeFromReader(reader *codec.Reader) error

func (*AfterTransactionsExecuteRequest) DecodeStrict

func (e *AfterTransactionsExecuteRequest) DecodeStrict(data []byte) error

func (*AfterTransactionsExecuteRequest) DecodeStrictFromReader

func (e *AfterTransactionsExecuteRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*AfterTransactionsExecuteRequest) Encode

func (e *AfterTransactionsExecuteRequest) Encode() []byte

func (*AfterTransactionsExecuteRequest) MustDecode

func (e *AfterTransactionsExecuteRequest) MustDecode(data []byte)

type AfterTransactionsExecuteResponse

type AfterTransactionsExecuteResponse struct {
	Events               []*blockchain.Event `json:"events" fieldNumber:"1"`
	PreCommitThreshold   uint64              `json:"preCommitThreshold" fieldNumber:"2"`
	CertificateThreshold uint64              `json:"certificateThreshold" fieldNumber:"3"`
	NextValidators       []*Validator        `json:"nextValidators" fieldNumber:"4"`
}

func (*AfterTransactionsExecuteResponse) Decode

func (e *AfterTransactionsExecuteResponse) Decode(data []byte) error

func (*AfterTransactionsExecuteResponse) DecodeFromReader

func (e *AfterTransactionsExecuteResponse) DecodeFromReader(reader *codec.Reader) error

func (*AfterTransactionsExecuteResponse) DecodeStrict

func (e *AfterTransactionsExecuteResponse) DecodeStrict(data []byte) error

func (*AfterTransactionsExecuteResponse) DecodeStrictFromReader

func (e *AfterTransactionsExecuteResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*AfterTransactionsExecuteResponse) Encode

func (e *AfterTransactionsExecuteResponse) Encode() []byte

func (*AfterTransactionsExecuteResponse) MustDecode

func (e *AfterTransactionsExecuteResponse) MustDecode(data []byte)

type BeforeTransactionsExecuteRequest

type BeforeTransactionsExecuteRequest struct {
	ContextID codec.Hex                `json:"contextID" fieldNumber:"1"`
	Assets    []*blockchain.BlockAsset `json:"assets" fieldNumber:"2"`
	Consensus *Consensus               `json:"consensus" fieldNumber:"3"`
}

func (*BeforeTransactionsExecuteRequest) Decode

func (e *BeforeTransactionsExecuteRequest) Decode(data []byte) error

func (*BeforeTransactionsExecuteRequest) DecodeFromReader

func (e *BeforeTransactionsExecuteRequest) DecodeFromReader(reader *codec.Reader) error

func (*BeforeTransactionsExecuteRequest) DecodeStrict

func (e *BeforeTransactionsExecuteRequest) DecodeStrict(data []byte) error

func (*BeforeTransactionsExecuteRequest) DecodeStrictFromReader

func (e *BeforeTransactionsExecuteRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*BeforeTransactionsExecuteRequest) Encode

func (e *BeforeTransactionsExecuteRequest) Encode() []byte

func (*BeforeTransactionsExecuteRequest) MustDecode

func (e *BeforeTransactionsExecuteRequest) MustDecode(data []byte)

type BeforeTransactionsExecuteResponse

type BeforeTransactionsExecuteResponse struct {
	Events []*blockchain.Event `json:"events" fieldNumber:"1"`
}

func (*BeforeTransactionsExecuteResponse) Decode

func (e *BeforeTransactionsExecuteResponse) Decode(data []byte) error

func (*BeforeTransactionsExecuteResponse) DecodeFromReader

func (e *BeforeTransactionsExecuteResponse) DecodeFromReader(reader *codec.Reader) error

func (*BeforeTransactionsExecuteResponse) DecodeStrict

func (e *BeforeTransactionsExecuteResponse) DecodeStrict(data []byte) error

func (*BeforeTransactionsExecuteResponse) DecodeStrictFromReader

func (e *BeforeTransactionsExecuteResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*BeforeTransactionsExecuteResponse) Encode

func (*BeforeTransactionsExecuteResponse) MustDecode

func (e *BeforeTransactionsExecuteResponse) MustDecode(data []byte)

type ClearRequest

type ClearRequest struct {
}

type ClearResponse

type ClearResponse struct {
}

type CommitRequest

type CommitRequest struct {
	ContextID         codec.Hex `json:"contextID" fieldNumber:"1"`
	StateRoot         codec.Hex `json:"stateRoot" fieldNumber:"2"`
	ExpectedStateRoot codec.Hex `json:"expectedStateRoot" fieldNumber:"3"`
	DryRun            bool      `json:"dryRun" fieldNumber:"4"`
}

func (*CommitRequest) Decode

func (e *CommitRequest) Decode(data []byte) error

func (*CommitRequest) DecodeFromReader

func (e *CommitRequest) DecodeFromReader(reader *codec.Reader) error

func (*CommitRequest) DecodeStrict

func (e *CommitRequest) DecodeStrict(data []byte) error

func (*CommitRequest) DecodeStrictFromReader

func (e *CommitRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*CommitRequest) Encode

func (e *CommitRequest) Encode() []byte

func (*CommitRequest) MustDecode

func (e *CommitRequest) MustDecode(data []byte)

type CommitResponse

type CommitResponse struct {
	StateRoot codec.Hex `json:"stateRoot" fieldNumber:"1"`
}

func (*CommitResponse) Decode

func (e *CommitResponse) Decode(data []byte) error

func (*CommitResponse) DecodeFromReader

func (e *CommitResponse) DecodeFromReader(reader *codec.Reader) error

func (*CommitResponse) DecodeStrict

func (e *CommitResponse) DecodeStrict(data []byte) error

func (*CommitResponse) DecodeStrictFromReader

func (e *CommitResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*CommitResponse) Encode

func (e *CommitResponse) Encode() []byte

func (*CommitResponse) MustDecode

func (e *CommitResponse) MustDecode(data []byte)

type Consensus

type Consensus struct {
	CurrentValidators    []*Validator `json:"currentValidators" fieldNumber:"1"`
	ImplyMaxPrevote      bool         `json:"implyMaxPrevote" fieldNumber:"2"`
	MaxHeightCertified   uint32       `json:"maxHeightCertified" fieldNumber:"3"`
	CertificateThreshold uint64       `json:"certificateThreshold" fieldNumber:"4"`
}

func (*Consensus) Decode

func (e *Consensus) Decode(data []byte) error

func (*Consensus) DecodeFromReader

func (e *Consensus) DecodeFromReader(reader *codec.Reader) error

func (*Consensus) DecodeStrict

func (e *Consensus) DecodeStrict(data []byte) error

func (*Consensus) DecodeStrictFromReader

func (e *Consensus) DecodeStrictFromReader(reader *codec.Reader) error

func (*Consensus) Encode

func (e *Consensus) Encode() []byte

func (*Consensus) MustDecode

func (e *Consensus) MustDecode(data []byte)

type ExecuteTransactionRequest

type ExecuteTransactionRequest struct {
	ContextID   codec.Hex                `json:"contextID" fieldNumber:"1"`
	Transaction *blockchain.Transaction  `json:"transaction" fieldNumber:"2"`
	Assets      []*blockchain.BlockAsset `json:"assets" fieldNumber:"3"`
	DryRun      bool                     `json:"dryRun" fieldNumber:"4"`
	Header      *blockchain.BlockHeader  `json:"header" fieldNumber:"5"`
	Consensus   *Consensus               `json:"consensus" fieldNumber:"6"`
}

func (*ExecuteTransactionRequest) Decode

func (e *ExecuteTransactionRequest) Decode(data []byte) error

func (*ExecuteTransactionRequest) DecodeFromReader

func (e *ExecuteTransactionRequest) DecodeFromReader(reader *codec.Reader) error

func (*ExecuteTransactionRequest) DecodeStrict

func (e *ExecuteTransactionRequest) DecodeStrict(data []byte) error

func (*ExecuteTransactionRequest) DecodeStrictFromReader

func (e *ExecuteTransactionRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*ExecuteTransactionRequest) Encode

func (e *ExecuteTransactionRequest) Encode() []byte

func (*ExecuteTransactionRequest) MustDecode

func (e *ExecuteTransactionRequest) MustDecode(data []byte)

type ExecuteTransactionResponse

type ExecuteTransactionResponse struct {
	Events []*blockchain.Event `json:"events" fieldNumber:"1"`
	Result int32               `json:"result" fieldNumber:"2"`
}

func (*ExecuteTransactionResponse) Decode

func (e *ExecuteTransactionResponse) Decode(data []byte) error

func (*ExecuteTransactionResponse) DecodeFromReader

func (e *ExecuteTransactionResponse) DecodeFromReader(reader *codec.Reader) error

func (*ExecuteTransactionResponse) DecodeStrict

func (e *ExecuteTransactionResponse) DecodeStrict(data []byte) error

func (*ExecuteTransactionResponse) DecodeStrictFromReader

func (e *ExecuteTransactionResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*ExecuteTransactionResponse) Encode

func (e *ExecuteTransactionResponse) Encode() []byte

func (*ExecuteTransactionResponse) MustDecode

func (e *ExecuteTransactionResponse) MustDecode(data []byte)

type FinalizeRequest

type FinalizeRequest struct {
	FinalizedHeight uint32 `json:"finalizedHeight" fieldNumber:"1"`
}

func (*FinalizeRequest) Decode

func (e *FinalizeRequest) Decode(data []byte) error

func (*FinalizeRequest) DecodeFromReader

func (e *FinalizeRequest) DecodeFromReader(reader *codec.Reader) error

func (*FinalizeRequest) DecodeStrict

func (e *FinalizeRequest) DecodeStrict(data []byte) error

func (*FinalizeRequest) DecodeStrictFromReader

func (e *FinalizeRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*FinalizeRequest) Encode

func (e *FinalizeRequest) Encode() []byte

func (*FinalizeRequest) MustDecode

func (e *FinalizeRequest) MustDecode(data []byte)

type FinalizeResponse

type FinalizeResponse struct {
}

type InitGenesisStateRequest

type InitGenesisStateRequest struct {
	ContextID codec.Hex `json:"contextID" fieldNumber:"1"`
}

func (*InitGenesisStateRequest) Decode

func (e *InitGenesisStateRequest) Decode(data []byte) error

func (*InitGenesisStateRequest) DecodeFromReader

func (e *InitGenesisStateRequest) DecodeFromReader(reader *codec.Reader) error

func (*InitGenesisStateRequest) DecodeStrict

func (e *InitGenesisStateRequest) DecodeStrict(data []byte) error

func (*InitGenesisStateRequest) DecodeStrictFromReader

func (e *InitGenesisStateRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*InitGenesisStateRequest) Encode

func (e *InitGenesisStateRequest) Encode() []byte

func (*InitGenesisStateRequest) MustDecode

func (e *InitGenesisStateRequest) MustDecode(data []byte)

type InitGenesisStateResponse

type InitGenesisStateResponse struct {
	Events               []*blockchain.Event `json:"events" fieldNumber:"1"`
	PreCommitThreshold   uint64              `json:"preCommitThreshold" fieldNumber:"2"`
	CertificateThreshold uint64              `json:"certificateThreshold" fieldNumber:"3"`
	NextValidators       []*Validator        `json:"nextValidators" fieldNumber:"4"`
}

func (*InitGenesisStateResponse) Decode

func (e *InitGenesisStateResponse) Decode(data []byte) error

func (*InitGenesisStateResponse) DecodeFromReader

func (e *InitGenesisStateResponse) DecodeFromReader(reader *codec.Reader) error

func (*InitGenesisStateResponse) DecodeStrict

func (e *InitGenesisStateResponse) DecodeStrict(data []byte) error

func (*InitGenesisStateResponse) DecodeStrictFromReader

func (e *InitGenesisStateResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*InitGenesisStateResponse) Encode

func (e *InitGenesisStateResponse) Encode() []byte

func (*InitGenesisStateResponse) MustDecode

func (e *InitGenesisStateResponse) MustDecode(data []byte)

type InitRequest

type InitRequest struct {
	ChainID         codec.Hex `json:"chainID" fieldNumber:"1"`
	LastBlockHeight uint32    `json:"lastBlockHeight" fieldNumber:"2"`
	LastStateRoot   []byte    `json:"lastStateRoot" fieldNumber:"3"`
}

func (*InitRequest) Decode

func (e *InitRequest) Decode(data []byte) error

func (*InitRequest) DecodeFromReader

func (e *InitRequest) DecodeFromReader(reader *codec.Reader) error

func (*InitRequest) DecodeStrict

func (e *InitRequest) DecodeStrict(data []byte) error

func (*InitRequest) DecodeStrictFromReader

func (e *InitRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*InitRequest) Encode

func (e *InitRequest) Encode() []byte

func (*InitRequest) MustDecode

func (e *InitRequest) MustDecode(data []byte)

type InitResponse

type InitResponse struct {
}

type InitStateMachineRequest

type InitStateMachineRequest struct {
	Header *blockchain.BlockHeader `json:"header" fieldNumber:"1"`
}

func (*InitStateMachineRequest) Decode

func (e *InitStateMachineRequest) Decode(data []byte) error

func (*InitStateMachineRequest) DecodeFromReader

func (e *InitStateMachineRequest) DecodeFromReader(reader *codec.Reader) error

func (*InitStateMachineRequest) DecodeStrict

func (e *InitStateMachineRequest) DecodeStrict(data []byte) error

func (*InitStateMachineRequest) DecodeStrictFromReader

func (e *InitStateMachineRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*InitStateMachineRequest) Encode

func (e *InitStateMachineRequest) Encode() []byte

func (*InitStateMachineRequest) MustDecode

func (e *InitStateMachineRequest) MustDecode(data []byte)

type InitStateMachineResponse

type InitStateMachineResponse struct {
	ContextID codec.Hex `json:"contextID" fieldNumber:"1"`
}

func (*InitStateMachineResponse) Decode

func (e *InitStateMachineResponse) Decode(data []byte) error

func (*InitStateMachineResponse) DecodeFromReader

func (e *InitStateMachineResponse) DecodeFromReader(reader *codec.Reader) error

func (*InitStateMachineResponse) DecodeStrict

func (e *InitStateMachineResponse) DecodeStrict(data []byte) error

func (*InitStateMachineResponse) DecodeStrictFromReader

func (e *InitStateMachineResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*InitStateMachineResponse) Encode

func (e *InitStateMachineResponse) Encode() []byte

func (*InitStateMachineResponse) MustDecode

func (e *InitStateMachineResponse) MustDecode(data []byte)

type InsertAssetsRequest

type InsertAssetsRequest struct {
	ContextID       codec.Hex `json:"contextID" fieldNumber:"1"`
	FinalizedHeight uint32    `json:"finalizedHeight" fieldNumber:"2"`
}

func (*InsertAssetsRequest) Decode

func (e *InsertAssetsRequest) Decode(data []byte) error

func (*InsertAssetsRequest) DecodeFromReader

func (e *InsertAssetsRequest) DecodeFromReader(reader *codec.Reader) error

func (*InsertAssetsRequest) DecodeStrict

func (e *InsertAssetsRequest) DecodeStrict(data []byte) error

func (*InsertAssetsRequest) DecodeStrictFromReader

func (e *InsertAssetsRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*InsertAssetsRequest) Encode

func (e *InsertAssetsRequest) Encode() []byte

func (*InsertAssetsRequest) MustDecode

func (e *InsertAssetsRequest) MustDecode(data []byte)

type InsertAssetsResponse

type InsertAssetsResponse struct {
	Assets []*blockchain.BlockAsset `json:"assets" fieldNumber:"1"`
}

func (*InsertAssetsResponse) Decode

func (e *InsertAssetsResponse) Decode(data []byte) error

func (*InsertAssetsResponse) DecodeFromReader

func (e *InsertAssetsResponse) DecodeFromReader(reader *codec.Reader) error

func (*InsertAssetsResponse) DecodeStrict

func (e *InsertAssetsResponse) DecodeStrict(data []byte) error

func (*InsertAssetsResponse) DecodeStrictFromReader

func (e *InsertAssetsResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*InsertAssetsResponse) Encode

func (e *InsertAssetsResponse) Encode() []byte

func (*InsertAssetsResponse) MustDecode

func (e *InsertAssetsResponse) MustDecode(data []byte)

type MetadataRequest

type MetadataRequest struct {
}

type MetadataResponse

type MetadataResponse struct {
	Data []byte `json:"data" fieldNumber:"1"`
}

func (*MetadataResponse) Decode

func (e *MetadataResponse) Decode(data []byte) error

func (*MetadataResponse) DecodeFromReader

func (e *MetadataResponse) DecodeFromReader(reader *codec.Reader) error

func (*MetadataResponse) DecodeStrict

func (e *MetadataResponse) DecodeStrict(data []byte) error

func (*MetadataResponse) DecodeStrictFromReader

func (e *MetadataResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*MetadataResponse) Encode

func (e *MetadataResponse) Encode() []byte

func (*MetadataResponse) MustDecode

func (e *MetadataResponse) MustDecode(data []byte)

type ProveRequest

type ProveRequest struct {
	StateRoot codec.Hex   `json:"stateRoot" fieldNumber:"1"`
	Keys      []codec.Hex `json:"keys" fieldNumber:"2"`
}

func (*ProveRequest) Decode

func (e *ProveRequest) Decode(data []byte) error

func (*ProveRequest) DecodeFromReader

func (e *ProveRequest) DecodeFromReader(reader *codec.Reader) error

func (*ProveRequest) DecodeStrict

func (e *ProveRequest) DecodeStrict(data []byte) error

func (*ProveRequest) DecodeStrictFromReader

func (e *ProveRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*ProveRequest) Encode

func (e *ProveRequest) Encode() []byte

func (*ProveRequest) MustDecode

func (e *ProveRequest) MustDecode(data []byte)

type ProveResponse

type ProveResponse struct {
	Result *smt.Proof `json:"proof" fieldNumber:"1"`
}

func (*ProveResponse) Decode

func (e *ProveResponse) Decode(data []byte) error

func (*ProveResponse) DecodeFromReader

func (e *ProveResponse) DecodeFromReader(reader *codec.Reader) error

func (*ProveResponse) DecodeStrict

func (e *ProveResponse) DecodeStrict(data []byte) error

func (*ProveResponse) DecodeStrictFromReader

func (e *ProveResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*ProveResponse) Encode

func (e *ProveResponse) Encode() []byte

func (*ProveResponse) MustDecode

func (e *ProveResponse) MustDecode(data []byte)

type QueryRequest

type QueryRequest struct {
	Method string                  `json:"method" fieldNumber:"1"`
	Params []byte                  `json:"params" fieldNumber:"2"`
	Header *blockchain.BlockHeader `json:"header" fieldNumber:"3"`
}

func (*QueryRequest) Decode

func (e *QueryRequest) Decode(data []byte) error

func (*QueryRequest) DecodeFromReader

func (e *QueryRequest) DecodeFromReader(reader *codec.Reader) error

func (*QueryRequest) DecodeStrict

func (e *QueryRequest) DecodeStrict(data []byte) error

func (*QueryRequest) DecodeStrictFromReader

func (e *QueryRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*QueryRequest) Encode

func (e *QueryRequest) Encode() []byte

func (*QueryRequest) MustDecode

func (e *QueryRequest) MustDecode(data []byte)

type QueryResponse

type QueryResponse struct {
	Data []byte `json:"data" fieldNumber:"1"`
}

func (*QueryResponse) Decode

func (e *QueryResponse) Decode(data []byte) error

func (*QueryResponse) DecodeFromReader

func (e *QueryResponse) DecodeFromReader(reader *codec.Reader) error

func (*QueryResponse) DecodeStrict

func (e *QueryResponse) DecodeStrict(data []byte) error

func (*QueryResponse) DecodeStrictFromReader

func (e *QueryResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*QueryResponse) Encode

func (e *QueryResponse) Encode() []byte

func (*QueryResponse) MustDecode

func (e *QueryResponse) MustDecode(data []byte)

type RevertRequest

type RevertRequest struct {
	ContextID         codec.Hex `json:"contextID" fieldNumber:"1"`
	StateRoot         codec.Hex `json:"stateRoot" fieldNumber:"2"`
	ExpectedStateRoot codec.Hex `json:"expectedStateRoot" fieldNumber:"3"`
}

func (*RevertRequest) Decode

func (e *RevertRequest) Decode(data []byte) error

func (*RevertRequest) DecodeFromReader

func (e *RevertRequest) DecodeFromReader(reader *codec.Reader) error

func (*RevertRequest) DecodeStrict

func (e *RevertRequest) DecodeStrict(data []byte) error

func (*RevertRequest) DecodeStrictFromReader

func (e *RevertRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*RevertRequest) Encode

func (e *RevertRequest) Encode() []byte

func (*RevertRequest) MustDecode

func (e *RevertRequest) MustDecode(data []byte)

type RevertResponse

type RevertResponse struct {
	StateRoot codec.Hex `json:"stateRoot" fieldNumber:"1"`
}

func (*RevertResponse) Decode

func (e *RevertResponse) Decode(data []byte) error

func (*RevertResponse) DecodeFromReader

func (e *RevertResponse) DecodeFromReader(reader *codec.Reader) error

func (*RevertResponse) DecodeStrict

func (e *RevertResponse) DecodeStrict(data []byte) error

func (*RevertResponse) DecodeStrictFromReader

func (e *RevertResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*RevertResponse) Encode

func (e *RevertResponse) Encode() []byte

func (*RevertResponse) MustDecode

func (e *RevertResponse) MustDecode(data []byte)

type Validator

type Validator struct {
	Address      codec.Lisk32 `json:"address" fieldNumber:"1"`
	BFTWeight    uint64       `json:"bftWeight" fieldNumber:"2"`
	GeneratorKey codec.Hex    `json:"generatorKey" fieldNumber:"3"`
	BLSKey       codec.Hex    `json:"blsKey" fieldNumber:"4"`
}

func (*Validator) Decode

func (e *Validator) Decode(data []byte) error

func (*Validator) DecodeFromReader

func (e *Validator) DecodeFromReader(reader *codec.Reader) error

func (*Validator) DecodeStrict

func (e *Validator) DecodeStrict(data []byte) error

func (*Validator) DecodeStrictFromReader

func (e *Validator) DecodeStrictFromReader(reader *codec.Reader) error

func (*Validator) Encode

func (e *Validator) Encode() []byte

func (*Validator) MustDecode

func (e *Validator) MustDecode(data []byte)

type Validators

type Validators []*Validator

type VerifyAssetsRequest

type VerifyAssetsRequest struct {
	ContextID codec.Hex                `json:"contextID" fieldNumber:"1"`
	Assets    []*blockchain.BlockAsset `json:"assets" fieldNumber:"2"`
}

func (*VerifyAssetsRequest) Decode

func (e *VerifyAssetsRequest) Decode(data []byte) error

func (*VerifyAssetsRequest) DecodeFromReader

func (e *VerifyAssetsRequest) DecodeFromReader(reader *codec.Reader) error

func (*VerifyAssetsRequest) DecodeStrict

func (e *VerifyAssetsRequest) DecodeStrict(data []byte) error

func (*VerifyAssetsRequest) DecodeStrictFromReader

func (e *VerifyAssetsRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*VerifyAssetsRequest) Encode

func (e *VerifyAssetsRequest) Encode() []byte

func (*VerifyAssetsRequest) MustDecode

func (e *VerifyAssetsRequest) MustDecode(data []byte)

type VerifyAssetsResponse

type VerifyAssetsResponse struct {
}

type VerifyTransactionRequest

type VerifyTransactionRequest struct {
	ContextID   codec.Hex               `json:"contextID" fieldNumber:"1"`
	Transaction *blockchain.Transaction `json:"transaction" fieldNumber:"2"`
}

func (*VerifyTransactionRequest) Decode

func (e *VerifyTransactionRequest) Decode(data []byte) error

func (*VerifyTransactionRequest) DecodeFromReader

func (e *VerifyTransactionRequest) DecodeFromReader(reader *codec.Reader) error

func (*VerifyTransactionRequest) DecodeStrict

func (e *VerifyTransactionRequest) DecodeStrict(data []byte) error

func (*VerifyTransactionRequest) DecodeStrictFromReader

func (e *VerifyTransactionRequest) DecodeStrictFromReader(reader *codec.Reader) error

func (*VerifyTransactionRequest) Encode

func (e *VerifyTransactionRequest) Encode() []byte

func (*VerifyTransactionRequest) MustDecode

func (e *VerifyTransactionRequest) MustDecode(data []byte)

type VerifyTransactionResponse

type VerifyTransactionResponse struct {
	Result int32 `json:"result" fieldNumber:"1"`
}

func (*VerifyTransactionResponse) Decode

func (e *VerifyTransactionResponse) Decode(data []byte) error

func (*VerifyTransactionResponse) DecodeFromReader

func (e *VerifyTransactionResponse) DecodeFromReader(reader *codec.Reader) error

func (*VerifyTransactionResponse) DecodeStrict

func (e *VerifyTransactionResponse) DecodeStrict(data []byte) error

func (*VerifyTransactionResponse) DecodeStrictFromReader

func (e *VerifyTransactionResponse) DecodeStrictFromReader(reader *codec.Reader) error

func (*VerifyTransactionResponse) Encode

func (e *VerifyTransactionResponse) Encode() []byte

func (*VerifyTransactionResponse) MustDecode

func (e *VerifyTransactionResponse) MustDecode(data []byte)

Jump to

Keyboard shortcuts

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