Documentation ¶
Index ¶
- Variables
- func GenerateRandomPubKey() cryptotypes.PubKey
- func GetKey(mnemonic string) cryptotypes.PrivKey
- type App
- func (a *App) Ctx() sdk.Context
- func (a *App) FastEpoch()
- func (a *App) FundAccount(acc sdk.AccAddress, amount int64)
- func (a *App) FundAccountWithDenom(acc sdk.AccAddress, amount int64, denom string)
- func (a *App) FundModule(moduleName string, amount int64)
- func (a *App) FundModuleWithDenom(moduleName string, amount int64, denom string)
- func (a *App) GenerateSignableKey(_ string) (addr sdk.AccAddress)
- func (a *App) GetAllValidators() []stakingtypes.Validator
- func (a *App) GetProposer() stakingtypes.Validator
- func (a *App) GetVotes() []types.VoteInfo
- func (a *App) NewAccount() sdk.AccAddress
- func (a *App) NewContract(admin sdk.AccAddress, filePath string) sdk.AccAddress
- func (a *App) NewDelegation(delegator sdk.AccAddress, validator sdk.ValAddress, amount int64)
- func (a *App) NewMinter(amount uint64)
- func (a *App) NewSignableAccount(name string) sdk.AccAddress
- func (a *App) NewValidator() sdk.ValAddress
- func (a *App) RunBlock(txs []signing.Tx) (resultCodes []uint32)
- func (a *App) Sign(account sdk.AccAddress, fee int64, msgs ...sdk.Msg) xauthsigning.Tx
- type Preset
Constants ¶
This section is empty.
Variables ¶
View Source
var InterfaceReg = types.NewInterfaceRegistry()
View Source
var Marshaler = codec.NewProtoCodec(InterfaceReg)
View Source
var TxConfig = tx.NewTxConfig(Marshaler, tx.DefaultSignModes)
Functions ¶
func GenerateRandomPubKey ¶
func GenerateRandomPubKey() cryptotypes.PubKey
func GetKey ¶
func GetKey(mnemonic string) cryptotypes.PrivKey
Types ¶
type App ¶
func NewTestApp ¶
func NewTestApp() *App
func (*App) FundAccount ¶
func (a *App) FundAccount(acc sdk.AccAddress, amount int64)
func (*App) FundAccountWithDenom ¶
func (a *App) FundAccountWithDenom(acc sdk.AccAddress, amount int64, denom string)
func (*App) FundModule ¶
func (*App) FundModuleWithDenom ¶
func (*App) GenerateSignableKey ¶
func (a *App) GenerateSignableKey(_ string) (addr sdk.AccAddress)
func (*App) GetAllValidators ¶
func (a *App) GetAllValidators() []stakingtypes.Validator
func (*App) GetProposer ¶
func (a *App) GetProposer() stakingtypes.Validator
func (*App) NewAccount ¶
func (a *App) NewAccount() sdk.AccAddress
func (*App) NewContract ¶
func (a *App) NewContract(admin sdk.AccAddress, filePath string) sdk.AccAddress
func (*App) NewDelegation ¶
func (a *App) NewDelegation(delegator sdk.AccAddress, validator sdk.ValAddress, amount int64)
func (*App) NewSignableAccount ¶
func (a *App) NewSignableAccount(name string) sdk.AccAddress
func (*App) NewValidator ¶
func (a *App) NewValidator() sdk.ValAddress
func (*App) RunBlock ¶
Processes and commits a block of transactions, and return a list of response codes. Assumes all validators voted with equal weight, and there are no byzantine validators. Proposer is rotated among all validators round-robin.
func (*App) Sign ¶
func (a *App) Sign(account sdk.AccAddress, fee int64, msgs ...sdk.Msg) xauthsigning.Tx
type Preset ¶
type Preset struct { Admin sdk.AccAddress // a signable account that's not supposed to run out of tokens SignableAccounts []sdk.AccAddress AllAccounts []sdk.AccAddress AllValidators []sdk.ValAddress AllContracts []sdk.AccAddress AllDexMarkets []*msgs.Market }
func (*Preset) DoRegisterMarkets ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.