models

package
v0.0.0-...-b124b1e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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 exampleBase.ReqCtx) (*ChainHandle, error)

func (*ChainHandle) GetAccountByAK

func (t *ChainHandle) GetAccountByAK(address string) ([]string, error)

func (*ChainHandle) GetAccountContracts

func (t *ChainHandle) GetAccountContracts(account string) ([]*protos.ContractStatus, error)

func (*ChainHandle) GetBalance

func (t *ChainHandle) GetBalance(account string) (string, error)

func (*ChainHandle) GetBalanceDetail

func (t *ChainHandle) GetBalanceDetail(account string) ([]*protos.BalanceDetailInfo, error)

func (*ChainHandle) GetFrozenBalance

func (t *ChainHandle) GetFrozenBalance(account string) (string, error)

func (*ChainHandle) IsTrunkTipBlock

func (t *ChainHandle) IsTrunkTipBlock(blockId []byte) (bool, error)

func (*ChainHandle) PreExec

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

func (*ChainHandle) QueryAccountACL

func (t *ChainHandle) QueryAccountACL(account string) (*protos.Acl, error)

func (*ChainHandle) QueryBlock

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

func (*ChainHandle) QueryBlockByHeight

func (t *ChainHandle) QueryBlockByHeight(height int64, needContent bool) (*protos.BlockInfo, error)

func (*ChainHandle) QueryChainStatus

func (t *ChainHandle) QueryChainStatus() (*protos.ChainStatus, error)

func (*ChainHandle) QueryConsensusStatus

func (t *ChainHandle) QueryConsensusStatus() (*protos.ConsensusStatus, error)

func (*ChainHandle) QueryContractMethodACL

func (t *ChainHandle) QueryContractMethodACL(contract, method string) (*protos.Acl, error)

func (*ChainHandle) QueryContractStatData

func (t *ChainHandle) QueryContractStatData() (*protos.ContractStatData, error)

func (*ChainHandle) QueryTx

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

func (*ChainHandle) QueryUtxoRecord

func (t *ChainHandle) QueryUtxoRecord(account string, count int64) (*protos.UtxoRecordDetail, error)

func (*ChainHandle) SelectUTXOBySize

func (t *ChainHandle) SelectUTXOBySize(account string, isLock, isExclude bool,
	pubKey string, sign []byte) (*protos.UtxoOutput, error)

func (*ChainHandle) SelectUtxo

func (t *ChainHandle) SelectUtxo(account string, need *big.Int, isLock, isExclude bool,
	pubKey string, sign []byte) (*protos.UtxoOutput, error)

func (*ChainHandle) SubmitTx

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

Jump to

Keyboard shortcuts

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