common

package
v0.0.0-...-029200b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatKey

func ConcatKey(args ...[]byte) []byte

func GetAccountByPassword

func GetAccountByPassword(sdk *sdk.DNASdk, path string) (*sdk.Account, bool)

func GetAddressByHexString

func GetAddressByHexString(hexString string) (scommon.Address, error)

func InitVbftBlock

func InitVbftBlock(block *types.Block) (*vbft.Block, error)

func InvokeNativeContractWithMultiSign

func InvokeNativeContractWithMultiSign(
	sdk *sdk.DNASdk,
	gasPrice,
	gasLimit uint64,
	pubKeys []keypair.PublicKey,
	singers []*sdk.Account,
	cversion byte,
	contractAddress scommon.Address,
	method string,
	params []interface{},
) (scommon.Uint256, error)

func WaitForBlock

func WaitForBlock(sdk *sdk.DNASdk) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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