mocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 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) AddCoinToUsername

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

AddCoinToUsername provides a mock function with given fields: ctx, username, coin

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) AuthorizePermission

func (_m *AccountKeeper) AuthorizePermission(ctx types.Context, me linotypes.AccountKey, grantTo linotypes.AccountKey, validityPeriod int64, grantLevel linotypes.Permission, amount linotypes.Coin) types.Error

AuthorizePermission provides a mock function with given fields: ctx, me, grantTo, validityPeriod, grantLevel, amount

func (*AccountKeeper) CheckSigningPubKeyOwner

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

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

func (*AccountKeeper) CreateAccount

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

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

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) 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) GetAllGrantPubKeys

func (_m *AccountKeeper) GetAllGrantPubKeys(ctx types.Context, username linotypes.AccountKey) ([]*model.GrantPermission, types.Error)

GetAllGrantPubKeys 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) 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) GetGrantPubKeys

func (_m *AccountKeeper) GetGrantPubKeys(ctx types.Context, username linotypes.AccountKey, grantTo linotypes.AccountKey) ([]*model.GrantPermission, types.Error)

GetGrantPubKeys provides a mock function with given fields: ctx, username, grantTo

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) 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) 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) MinusCoinFromUsername

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

MinusCoinFromUsername provides a mock function with given fields: ctx, username, coin

func (*AccountKeeper) MoveCoinFromUsernameToUsername

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

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

func (*AccountKeeper) RegisterAccount

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

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

func (*AccountKeeper) RevokePermission

func (_m *AccountKeeper) RevokePermission(ctx types.Context, me linotypes.AccountKey, grantTo linotypes.AccountKey, permission linotypes.Permission) types.Error

RevokePermission provides a mock function with given fields: ctx, me, grantTo, permission

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