keeper

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IxoAccountFeesId               types.InternalAccountID = "IxoFees"
	IxoAccountPayFeesId            types.InternalAccountID = "IxoPayFees"
	InitiatingNodeAccountPayFeesId types.InternalAccountID = "InitiatingNodePayFees"
)
View Source
const (
	QueryProjectDoc      = "queryProjectDoc"
	QueryProjectAccounts = "queryProjectAccounts"
	QueryProjectTx       = "queryProjectTx"
	QueryParams          = "queryParams"
)

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(k Keeper, bk bankkeeper.Keeper, pk paymentskeeper.Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the project MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

Types

type Keeper

type Keeper struct {
	AccountKeeper authkeeper.AccountKeeper
	DidKeeper     didkeeper.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryMarshaler, key sdk.StoreKey, paramSpace paramstypes.Subspace,
	accountKeeper authkeeper.AccountKeeper, didKeeper didkeeper.Keeper,
	paymentsKeeper paymentskeeper.Keeper) Keeper

func (Keeper) AddAccountToProjectAccounts

func (k Keeper) AddAccountToProjectAccounts(ctx sdk.Context, projectDid didexported.Did,
	accountId types.InternalAccountID, account authtypes.AccountI)

func (Keeper) AddProjectWithdrawalTransaction

func (k Keeper) AddProjectWithdrawalTransaction(ctx sdk.Context, projectDid didexported.Did, info types.WithdrawalInfoDoc)

func (Keeper) ClaimExists

func (k Keeper) ClaimExists(ctx sdk.Context, projectDid didexported.Did, claimId string) bool

func (Keeper) CreateNewAccount

func (k Keeper) CreateNewAccount(ctx sdk.Context, projectDid didexported.Did,
	accountId types.InternalAccountID) (authtypes.AccountI, error)

func (Keeper) GetAccountMap

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

func (Keeper) GetClaim

func (k Keeper) GetClaim(ctx sdk.Context, projectDid didexported.Did, claimId string) (types.Claim, error)

func (Keeper) GetClaimIterator

func (k Keeper) GetClaimIterator(ctx sdk.Context, projectDid didexported.Did) sdk.Iterator

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 didexported.Did) (types.ProjectDoc, error)

func (Keeper) GetProjectDocIterator

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

func (Keeper) GetProjectWithdrawalTransactions

func (k Keeper) GetProjectWithdrawalTransactions(ctx sdk.Context, projectDid didexported.Did) (types.WithdrawalInfoDocs, error)

func (Keeper) MustGetClaimByKey

func (k Keeper) MustGetClaimByKey(ctx sdk.Context, key []byte) types.Claim

func (Keeper) MustGetProjectDocByKey

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

func (Keeper) Params

func (Keeper) ProjectDocExists

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

func (Keeper) SetAccountMap

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

func (Keeper) SetClaim

func (k Keeper) SetClaim(ctx sdk.Context, projectDid didexported.Did, claim types.Claim)

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.ProjectDoc)

func (Keeper) SetProjectWithdrawalTransactions

func (k Keeper) SetProjectWithdrawalTransactions(ctx sdk.Context, projectDid didexported.Did, txs types.WithdrawalInfoDocs)

func (Keeper) ValidateProjectFeesMap

func (k Keeper) ValidateProjectFeesMap(ctx sdk.Context, projectFeesMap types.ProjectFeesMap) error

Jump to

Keyboard shortcuts

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