Documentation ¶
Index ¶
- type FeeConfiguration
- type StormAccount
- func (sa *StormAccount) Account() *dscWallet.Account
- func (sa *StormAccount) Address() string
- func (sa *StormAccount) BalanceForCoin(denom string) sdkmath.Int
- func (sa *StormAccount) FeeDenom() string
- func (sa *StormAccount) IncrementSequence()
- func (sa *StormAccount) IsDirty() bool
- func (sa *StormAccount) LastHeight() int64
- func (sa *StormAccount) MarkDirty()
- func (sa *StormAccount) UpdateBalance() error
- func (sa *StormAccount) UpdateNumberSequence() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeConfiguration ¶ added in v0.0.8
type FeeConfiguration struct { BaseDenom string DelPrice sdk.Dec Params feetypes.Params KnownCoins []dscApi.Coin UseCustomCoinsForFee bool }
func NewFeeConfiguration ¶ added in v0.0.8
func NewFeeConfiguration(customForFee bool) *FeeConfiguration
func (*FeeConfiguration) MakeTransaction ¶ added in v0.0.8
func (fc *FeeConfiguration) MakeTransaction(sa *StormAccount, msg sdk.Msg) ([]byte, error)
type StormAccount ¶
type StormAccount struct {
// contains filtered or unexported fields
}
func NewStormAccount ¶
func NewStormAccount(mnemonic string, api *dscApi.API) (*StormAccount, error)
func (*StormAccount) Account ¶
func (sa *StormAccount) Account() *dscWallet.Account
func (*StormAccount) Address ¶
func (sa *StormAccount) Address() string
func (*StormAccount) BalanceForCoin ¶
func (sa *StormAccount) BalanceForCoin(denom string) sdkmath.Int
func (*StormAccount) FeeDenom ¶
func (sa *StormAccount) FeeDenom() string
func (*StormAccount) IncrementSequence ¶
func (sa *StormAccount) IncrementSequence()
func (*StormAccount) IsDirty ¶
func (sa *StormAccount) IsDirty() bool
func (*StormAccount) LastHeight ¶ added in v0.0.8
func (sa *StormAccount) LastHeight() int64
func (*StormAccount) MarkDirty ¶
func (sa *StormAccount) MarkDirty()
func (*StormAccount) UpdateBalance ¶
func (sa *StormAccount) UpdateBalance() error
func (*StormAccount) UpdateNumberSequence ¶
func (sa *StormAccount) UpdateNumberSequence() error
Click to show internal directories.
Click to hide internal directories.