models

package
v0.0.0-...-56f3d1a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Models

处理逻辑组件。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainHandle

type ChainHandle struct {
	// contains filtered or unexported fields
}

func NewChainHandle

func NewChainHandle(bcName string, reqCtx sctx.ReqCtx) (*ChainHandle, error)

func (*ChainHandle) PreExec

func (t *ChainHandle) PreExec(req []*protos.InvokeRequest,
	initiator string, authRequires []string) (*protos.InvokeResponse, error)

func (*ChainHandle) QueryBlock

func (t *ChainHandle) QueryBlock(blkId []byte, needContent bool) (*xpb.BlockInfo, error)

func (*ChainHandle) QueryChainStatus

func (t *ChainHandle) QueryChainStatus(needBranch bool) (*xpb.ChainStatus, error)

func (*ChainHandle) QueryTx

func (t *ChainHandle) QueryTx(txId []byte) (*xpb.TxInfo, error)

func (*ChainHandle) SelectUtxo

func (t *ChainHandle) SelectUtxo(account string, need *big.Int,
	isLock, isExclude bool) (*lpb.UtxoOutput, error)

func (*ChainHandle) SubmitTx

func (t *ChainHandle) SubmitTx(tx *lpb.Transaction) error

Jump to

Keyboard shortcuts

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