mocks

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeeper

type AccountKeeper struct {
	mock.Mock
}

AccountKeeper is an autogenerated mock type for the AccountKeeper type

func (*AccountKeeper) AddFrozenMoney

func (_m *AccountKeeper) AddFrozenMoney(ctx types.Context, username linotypes.AccountKey, amount linotypes.Coin, start int64, interval int64, times int64) types.Error

AddFrozenMoney provides a mock function with given fields: ctx, username, amount, start, interval, times

func (*AccountKeeper) CheckSigningPubKeyOwner

func (_m *AccountKeeper) CheckSigningPubKeyOwner(ctx types.Context, me linotypes.AccountKey, signKey crypto.PubKey) (linotypes.AccountKey, types.Error)

CheckSigningPubKeyOwner provides a mock function with given fields: ctx, me, signKey

func (*AccountKeeper) CheckSigningPubKeyOwnerByAddress added in v0.4.0

func (_m *AccountKeeper) CheckSigningPubKeyOwnerByAddress(ctx types.Context, addr types.AccAddress, signkey crypto.PubKey, isPaid bool) types.Error

CheckSigningPubKeyOwnerByAddress provides a mock function with given fields: ctx, addr, signkey, isPaid

func (*AccountKeeper) DoesAccountExist

func (_m *AccountKeeper) DoesAccountExist(ctx types.Context, username linotypes.AccountKey) bool

DoesAccountExist provides a mock function with given fields: ctx, username

func (*AccountKeeper) ExportToFile added in v0.4.0

func (_m *AccountKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, filepath string) error

ExportToFile provides a mock function with given fields: ctx, cdc, filepath

func (*AccountKeeper) GenesisAccount added in v0.6.0

func (_m *AccountKeeper) GenesisAccount(ctx types.Context, username linotypes.AccountKey, signingKey crypto.PubKey, transactionKey crypto.PubKey) types.Error

GenesisAccount provides a mock function with given fields: ctx, username, signingKey, transactionKey

func (*AccountKeeper) GetAddress

func (_m *AccountKeeper) GetAddress(ctx types.Context, username linotypes.AccountKey) (types.AccAddress, types.Error)

GetAddress provides a mock function with given fields: ctx, username

func (*AccountKeeper) GetBank

func (_m *AccountKeeper) GetBank(ctx types.Context, username linotypes.AccountKey) (*model.AccountBank, types.Error)

GetBank provides a mock function with given fields: ctx, username

func (*AccountKeeper) GetBankByAddress added in v0.4.0

func (_m *AccountKeeper) GetBankByAddress(ctx types.Context, addr types.AccAddress) (*model.AccountBank, types.Error)

GetBankByAddress provides a mock function with given fields: ctx, addr

func (*AccountKeeper) GetFrozenMoneyList

func (_m *AccountKeeper) GetFrozenMoneyList(ctx types.Context, addr types.Address) ([]model.FrozenMoney, types.Error)

GetFrozenMoneyList provides a mock function with given fields: ctx, addr

func (*AccountKeeper) GetInfo

func (_m *AccountKeeper) GetInfo(ctx types.Context, username linotypes.AccountKey) (*model.AccountInfo, types.Error)

GetInfo provides a mock function with given fields: ctx, username

func (*AccountKeeper) GetMeta

func (_m *AccountKeeper) GetMeta(ctx types.Context, username linotypes.AccountKey) (*model.AccountMeta, types.Error)

GetMeta provides a mock function with given fields: ctx, username

func (*AccountKeeper) GetPool added in v0.6.0

func (_m *AccountKeeper) GetPool(ctx types.Context, poolName linotypes.PoolName) (linotypes.Coin, types.Error)

GetPool provides a mock function with given fields: ctx, poolName

func (*AccountKeeper) GetSavingFromUsername

func (_m *AccountKeeper) GetSavingFromUsername(ctx types.Context, username linotypes.AccountKey) (linotypes.Coin, types.Error)

GetSavingFromUsername provides a mock function with given fields: ctx, username

func (*AccountKeeper) GetSequence

func (_m *AccountKeeper) GetSequence(ctx types.Context, address types.Address) (uint64, types.Error)

GetSequence provides a mock function with given fields: ctx, address

func (*AccountKeeper) GetSigningKey

func (_m *AccountKeeper) GetSigningKey(ctx types.Context, username linotypes.AccountKey) (crypto.PubKey, types.Error)

GetSigningKey provides a mock function with given fields: ctx, username

func (*AccountKeeper) GetSupply added in v0.6.0

func (_m *AccountKeeper) GetSupply(ctx types.Context) model.Supply

GetSupply provides a mock function with given fields: ctx

func (*AccountKeeper) GetTransactionKey

func (_m *AccountKeeper) GetTransactionKey(ctx types.Context, username linotypes.AccountKey) (crypto.PubKey, types.Error)

GetTransactionKey provides a mock function with given fields: ctx, username

func (*AccountKeeper) ImportFromFile

func (_m *AccountKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, filepath string) error

ImportFromFile provides a mock function with given fields: ctx, cdc, filepath

func (*AccountKeeper) IncreaseSequenceByOne

func (_m *AccountKeeper) IncreaseSequenceByOne(ctx types.Context, address types.Address) types.Error

IncreaseSequenceByOne provides a mock function with given fields: ctx, address

func (*AccountKeeper) InitGenesis added in v0.6.0

func (_m *AccountKeeper) InitGenesis(ctx types.Context, total linotypes.Coin, pools []model.Pool)

InitGenesis provides a mock function with given fields: ctx, total, pools

func (*AccountKeeper) Mint added in v0.6.0

func (_m *AccountKeeper) Mint(ctx types.Context) types.Error

Mint provides a mock function with given fields: ctx

func (*AccountKeeper) MoveBetweenPools added in v0.6.0

func (_m *AccountKeeper) MoveBetweenPools(ctx types.Context, from linotypes.PoolName, to linotypes.PoolName, amount linotypes.Coin) types.Error

MoveBetweenPools provides a mock function with given fields: ctx, from, to, amount

func (*AccountKeeper) MoveCoin added in v0.6.0

func (_m *AccountKeeper) MoveCoin(ctx types.Context, sender linotypes.AccOrAddr, receiver linotypes.AccOrAddr, coin linotypes.Coin) types.Error

MoveCoin provides a mock function with given fields: ctx, sender, receiver, coin

func (*AccountKeeper) MoveFromPool added in v0.6.0

func (_m *AccountKeeper) MoveFromPool(ctx types.Context, poolName linotypes.PoolName, dest linotypes.AccOrAddr, amount linotypes.Coin) types.Error

MoveFromPool provides a mock function with given fields: ctx, poolName, dest, amount

func (*AccountKeeper) MoveToPool added in v0.6.0

func (_m *AccountKeeper) MoveToPool(ctx types.Context, poolName linotypes.PoolName, from linotypes.AccOrAddr, amount linotypes.Coin) types.Error

MoveToPool provides a mock function with given fields: ctx, poolName, from, amount

func (*AccountKeeper) RecoverAccount added in v0.4.0

func (_m *AccountKeeper) RecoverAccount(ctx types.Context, username linotypes.AccountKey, newTransactionPubKey crypto.PubKey, newSigningKey crypto.PubKey) types.Error

RecoverAccount provides a mock function with given fields: ctx, username, newTransactionPubKey, newSigningKey

func (*AccountKeeper) RegisterAccount

func (_m *AccountKeeper) RegisterAccount(ctx types.Context, referrer linotypes.AccOrAddr, registerFee linotypes.Coin, username linotypes.AccountKey, signingKey crypto.PubKey, transactionKey crypto.PubKey) types.Error

RegisterAccount provides a mock function with given fields: ctx, referrer, registerFee, username, signingKey, transactionKey

func (*AccountKeeper) UpdateJSONMeta

func (_m *AccountKeeper) UpdateJSONMeta(ctx types.Context, username linotypes.AccountKey, JSONMeta string) types.Error

UpdateJSONMeta provides a mock function with given fields: ctx, username, JSONMeta

Jump to

Keyboard shortcuts

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