keeper

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryProjectDoc      = "queryProjectDoc"
	QueryProjectAccounts = "queryProjectAccounts"
	QueryProjectTx       = "queryProjectTx"
	QueryParams          = "queryParams"
)

Variables

This section is empty.

Functions

func MakeTestCodec

func MakeTestCodec() *codec.Codec

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

Types

type Keeper

type Keeper struct {
	AccountKeeper auth.AccountKeeper
	DidKeeper     did.Keeper
	// contains filtered or unexported fields
}

func CreateTestInput

func CreateTestInput() (sdk.Context, Keeper, *codec.Codec,
	payments.Keeper, bank.Keeper)

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace,
	accountKeeper auth.AccountKeeper, didKeeper did.Keeper,
	paymentsKeeper payments.Keeper) Keeper

func (Keeper) AddAccountToProjectAccounts

func (k Keeper) AddAccountToProjectAccounts(ctx sdk.Context, projectDid did.Did,
	accountId types.InternalAccountID, account auth.Account)

func (Keeper) AddProjectWithdrawalTransaction

func (k Keeper) AddProjectWithdrawalTransaction(ctx sdk.Context, projectDid did.Did, info types.WithdrawalInfo)

func (Keeper) CreateNewAccount

func (k Keeper) CreateNewAccount(ctx sdk.Context, projectDid did.Did,
	accountId types.InternalAccountID) (auth.Account, sdk.Error)

func (Keeper) GetAccountMap

func (k Keeper) GetAccountMap(ctx sdk.Context, projectDid did.Did) types.AccountMap

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of project parameters.

func (Keeper) GetProjectDoc

func (k Keeper) GetProjectDoc(ctx sdk.Context, projectDid did.Did) (types.StoredProjectDoc, sdk.Error)

func (Keeper) GetProjectDocIterator

func (k Keeper) GetProjectDocIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetProjectWithdrawalTransactions

func (k Keeper) GetProjectWithdrawalTransactions(ctx sdk.Context, projectDid did.Did) ([]types.WithdrawalInfo, sdk.Error)

func (Keeper) MustGetProjectDocByKey

func (k Keeper) MustGetProjectDocByKey(ctx sdk.Context, key []byte) types.StoredProjectDoc

func (Keeper) ProjectDocExists

func (k Keeper) ProjectDocExists(ctx sdk.Context, projectDid did.Did) bool

func (Keeper) SetAccountMap

func (k Keeper) SetAccountMap(ctx sdk.Context, projectDid did.Did, accountMap types.AccountMap)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the total set of project parameters.

func (Keeper) SetProjectDoc

func (k Keeper) SetProjectDoc(ctx sdk.Context, projectDoc types.StoredProjectDoc)

func (Keeper) SetProjectWithdrawalTransactions

func (k Keeper) SetProjectWithdrawalTransactions(ctx sdk.Context, projectDid did.Did, txs []types.WithdrawalInfo)

Jump to

Keyboard shortcuts

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