types

package
v0.0.0-...-23cc077 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestAccount

type TestAccount struct {
	PrivateKey *ethsecp256k1.PrivKey
	Type       TestAccountType
}

func (TestAccount) ComputeContractAddress

func (a TestAccount) ComputeContractAddress(nonce uint64) common.Address

func (TestAccount) GetConsensusAddress

func (a TestAccount) GetConsensusAddress() sdk.ConsAddress

func (TestAccount) GetCosmosAddress

func (a TestAccount) GetCosmosAddress() sdk.AccAddress

func (TestAccount) GetEthAddress

func (a TestAccount) GetEthAddress() common.Address

func (TestAccount) GetPubKey

func (a TestAccount) GetPubKey() cryptotypes.PubKey

func (TestAccount) GetSdkPubKey

func (a TestAccount) GetSdkPubKey() cryptotypes.PubKey

func (TestAccount) GetTmPrivKey

func (a TestAccount) GetTmPrivKey() tmcrypto.PrivKey

func (TestAccount) GetTmPubKey

func (a TestAccount) GetTmPubKey() tmcrypto.PubKey

func (TestAccount) GetValidatorAddress

func (a TestAccount) GetValidatorAddress() sdk.ValAddress

GetValidatorAddress returns validator address of the account, deliver from sdk pubkey. Should use suite.GetValidatorAddress() instead for correcting with Tendermint node mode.

type TestAccountType

type TestAccountType int8
const (
	TestAccountTypeValidator TestAccountType = iota
	TestAccountTypeWallet
)

type TestAccounts

type TestAccounts []*TestAccount

func (TestAccounts) Number

func (a TestAccounts) Number(num int) *TestAccount

type TestChain

type TestChain struct {
	ChainId             string
	Bech32AccAddrPrefix string
	MinDenom            string
	Decimals            uint8
}

type TestChains

type TestChains []*TestChain

func (TestChains) Number

func (c TestChains) Number(num int) *TestChain

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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