Documentation
¶
Index ¶
- type TestAccount
- func (a TestAccount) ComputeContractAddress(nonce uint64) common.Address
- func (a TestAccount) GetConsensusAddress() sdk.ConsAddress
- func (a TestAccount) GetCosmosAddress() sdk.AccAddress
- func (a TestAccount) GetEthAddress() common.Address
- func (a TestAccount) GetPubKey() cryptotypes.PubKey
- func (a TestAccount) GetSdkPubKey() cryptotypes.PubKey
- func (a TestAccount) GetTmPrivKey() tmcrypto.PrivKey
- func (a TestAccount) GetTmPubKey() tmcrypto.PubKey
- func (a TestAccount) GetValidatorAddress() sdk.ValAddress
- type TestAccountType
- type TestAccounts
- type TestChain
- type TestChains
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 TestChains ¶
type TestChains []*TestChain
func (TestChains) Number ¶
func (c TestChains) Number(num int) *TestChain
Click to show internal directories.
Click to hide internal directories.