client

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExceedABCIPathLengthError = fmt.Errorf("the abci path exceeds max length %d ", maxABCIPathLength)
	ExceedABCIDataLengthError = fmt.Errorf("the abci data exceeds max length %d ", maxABCIDataLength)
)

Functions

func ValidateABCIData

func ValidateABCIData(data tmbytes.HexBytes) error

ValidateABCIData validates an ABCI query's data

func ValidateABCIPath

func ValidateABCIPath(path string) error

ValidateABCIPath validates an ABCI query's path

func ValidateABCIQuery

func ValidateABCIQuery(path string, data tmbytes.HexBytes) error

ValidateABCIQuery validates an ABCI query

Types

type Account

type Account = authtypes.BaseAccount

nolint

type Block

type Block = tmtypes.Block

nolint

type Coins added in v0.1.3

type Coins = sdk.Coins

nolint

type ResultBlock

type ResultBlock = ctypes.ResultBlock

nolint

type ResultBlockResults

type ResultBlockResults = ctypes.ResultBlockResults

nolint

type ResultCommit

type ResultCommit = ctypes.ResultCommit

nolint

type ResultStatus

type ResultStatus = ctypes.ResultStatus

nolint

type ResultTx

type ResultTx = ctypes.ResultTx

nolint

type ResultTxSearch

type ResultTxSearch = ctypes.ResultTxSearch

nolint

type ResultValidators

type ResultValidators = ctypes.ResultValidators

nolint

type SeeleClient

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

SeeleClient seele client for Seele blockchain

func NewSeeleClient

func NewSeeleClient(wallet account.Wallet, config gosdktypes.ClientConfig) *SeeleClient

NewSeeleClient create a new SeeleClient

func (*SeeleClient) ABCIQuery

func (sc *SeeleClient) ABCIQuery(path string, data tmbytes.HexBytes) ([]byte, error)

ABCIQuery sends a query to Seele

func (*SeeleClient) QueryAccount

func (c *SeeleClient) QueryAccount(addr string) (acc Account, err error)

QueryAccount gets the account associated with an address on Seele

func (*SeeleClient) QueryAccountBank added in v0.1.3

func (c *SeeleClient) QueryAccountBank(addr string) (coins Coins, err error)

QueryAccount gets the account associated with an address on Seele

func (*SeeleClient) QueryBlock

func (c *SeeleClient) QueryBlock(height int64) (pBlock *ResultBlock, err error)

QueryBlock gets the block info of a specific height query the latest block with height 0 input

func (*SeeleClient) QueryBlockByHash

func (c *SeeleClient) QueryBlockByHash(hashHexStr string) (pBlock *ResultBlock, err error)

QueryBlockByHash get the abci result of the block by hash

func (*SeeleClient) QueryBlockResults

func (c *SeeleClient) QueryBlockResults(height int64) (pBlockResults *ResultBlockResults, err error)

QueryBlockResults gets the abci result of the block on a specific height query the latest block with height 0 input

func (*SeeleClient) QueryChainID

func (c *SeeleClient) QueryChainID() (string, error)

QueryChainID query chain id

func (*SeeleClient) QueryCommitResult

func (c *SeeleClient) QueryCommitResult(height int64) (pCommitResult *ResultCommit, err error)

QueryCommitResult gets the commit info of the block on a specific height query the latest block with height 0 input

func (*SeeleClient) QueryStatus

func (c *SeeleClient) QueryStatus() (pStatus *ResultStatus, err error)

QueryStatus gets the blockchain info

func (*SeeleClient) QueryTxResult

func (c *SeeleClient) QueryTxResult(hashHexStr string, prove bool) (pResultTx *ResultTx, err error)

QueryTxResult gets the detail info of a tx with its tx hash

func (*SeeleClient) QueryValidatorsResult

func (c *SeeleClient) QueryValidatorsResult(height int64) (pValsResult *ResultValidators, err error)

QueryValidatorsResult gets the validators info on a specific height query the latest block with height 0 input

func (*SeeleClient) SendBankAmount added in v0.1.5

func (c *SeeleClient) SendBankAmount(addr sdk.AccAddress, coins Coins)

SendBankAmount send bank coins to address

func (*SeeleClient) Wallet added in v0.1.4

func (sc *SeeleClient) Wallet() account.Wallet

Wallet return client wallet account

Jump to

Keyboard shortcuts

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