testutil

package
v0.2.4-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: BSD-2-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyPubAddr

func KeyPubAddr() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress)

func NewBaseAccount

func NewBaseAccount(cet int64, accNum, seq uint64) (crypto.PrivKey, auth.BaseAccount)

func ToAccAddress

func ToAccAddress(addr string) sdk.AccAddress

func ValidateBasic

func ValidateBasic(t *testing.T, cases []TestCase)

Types

type MsgCreateValidatorBuilder

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

func NewMsgCreateValidatorBuilder

func NewMsgCreateValidatorBuilder(valAddr sdk.ValAddress, pubKey crypto.PubKey) *MsgCreateValidatorBuilder

func (*MsgCreateValidatorBuilder) Build

func (*MsgCreateValidatorBuilder) Commission

func (builder *MsgCreateValidatorBuilder) Commission(rate, maxRate, maxChangeRate string) *MsgCreateValidatorBuilder

func (*MsgCreateValidatorBuilder) Description

func (builder *MsgCreateValidatorBuilder) Description(moniker, identity, website, details string) *MsgCreateValidatorBuilder

func (*MsgCreateValidatorBuilder) MinSelfDelegation

func (builder *MsgCreateValidatorBuilder) MinSelfDelegation(minSelfDelegation int64) *MsgCreateValidatorBuilder

func (*MsgCreateValidatorBuilder) SelfDelegation

func (builder *MsgCreateValidatorBuilder) SelfDelegation(selfDelegation int64) *MsgCreateValidatorBuilder

type StdTxBuilder

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

func NewStdTxBuilder

func NewStdTxBuilder(chainID string) *StdTxBuilder

func (*StdTxBuilder) AccNumSeqKey

func (builder *StdTxBuilder) AccNumSeqKey(num, seq uint64, key crypto.PrivKey) *StdTxBuilder

func (*StdTxBuilder) Build

func (builder *StdTxBuilder) Build() auth.StdTx

func (*StdTxBuilder) BuildTxWithMemo

func (builder *StdTxBuilder) BuildTxWithMemo(memo string) auth.StdTx

func (*StdTxBuilder) GasAndFee

func (builder *StdTxBuilder) GasAndFee(gas uint64, cet int64) *StdTxBuilder

func (*StdTxBuilder) Msgs

func (builder *StdTxBuilder) Msgs(msgs ...sdk.Msg) *StdTxBuilder

type TestCase

type TestCase struct {
	Valid bool
	Msg   sdk.Msg
}

Jump to

Keyboard shortcuts

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