utils

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MinimumCos = "0.100000"

Variables

View Source
var EstimateStamina bool

Functions

func GenerateSignedTxAndValidate

func GenerateSignedTxAndValidate(cmd *cobra.Command, ops []interface{}, signers *wallet.PrivAccount) (*prototype.SignedTransaction, error)

func GenerateSignedTxAndValidate2 added in v1.0.2

func GenerateSignedTxAndValidate2(client grpcpb.ApiServiceClient, ops []interface{}, signers *wallet.PrivAccount, chainId prototype.ChainId) (*prototype.SignedTransaction, error)

func GenerateSignedTxAndValidate3 added in v1.0.2

func GenerateSignedTxAndValidate3(client grpcpb.ApiServiceClient, ops []interface{}, privKey *prototype.PrivateKeyType, chainId prototype.ChainId) (*prototype.SignedTransaction, error)

func GenerateSignedTxAndValidate4 added in v1.0.2

func GenerateSignedTxAndValidate4(dgp *prototype.DynamicProperties, expiration uint32, ops []interface{}, privKey *prototype.PrivateKeyType, chainId prototype.ChainId) (*prototype.SignedTransaction, error)

func GenerateUUID

func GenerateUUID(content string) uint64

func GetChainState added in v1.0.2

func GetChainState(client grpcpb.ApiServiceClient) (*grpcpb.ChainState, error)

func GetPassphrase

func GetPassphrase(reader PasswordReader) (string, error)

func ParseAccountCreateFee added in v1.0.2

func ParseAccountCreateFee(client grpcpb.ApiServiceClient, accountCreateFee string) (*prototype.Coin, error)

func ParseCos added in v1.0.2

func ParseCos(v string) (uint64, error)

func ProcessEstimate added in v1.0.2

func ProcessEstimate(cmd *cobra.Command) bool

Types

type MyPasswordReader

type MyPasswordReader struct{}

func (MyPasswordReader) ReadPassword

func (pr MyPasswordReader) ReadPassword(fd int) ([]byte, error)

type PasswordReader

type PasswordReader interface {
	ReadPassword(fd int) ([]byte, error)
}

Directories

Path Synopsis
Package mock_utils is a generated GoMock package.
Package mock_utils is a generated GoMock package.

Jump to

Keyboard shortcuts

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