types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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)

func (*FeeConfiguration) Update added in v0.0.8

func (fc *FeeConfiguration) Update(api *dscApi.API) 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

Jump to

Keyboard shortcuts

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