keeper

package
v0.0.0-...-317f62a Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

concrete keeper type for deal module also includes bank & account keeper interface for handling fund related transactions

func NewKeeper

func NewKeeper(
	auth types.AccountKeeper,
	bank types.BankKeeper,
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,

) *Keeper

func (Keeper) GetAllContractCounter

func (k Keeper) GetAllContractCounter(ctx sdk.Context) ([]*types.ContractCounter, error)

GetAllContractCounter gets all the contract counter from store

func (Keeper) GetAllNewContract

func (k Keeper) GetAllNewContract(ctx sdk.Context, dealId string) (list []types.NewContract)

GetAllNewContract returns all newContract

func (Keeper) GetAllNewDeal

func (k Keeper) GetAllNewDeal(ctx sdk.Context) (list []types.NewDeal)

GetAllNewDeal returns all newDeal

func (Keeper) GetContractCounter

func (k Keeper) GetContractCounter(ctx sdk.Context, dealId string) (val types.ContractCounter, found bool)

GetContractCounter returns contractCounter

func (Keeper) GetDealCounter

func (k Keeper) GetDealCounter(ctx sdk.Context) (val types.DealCounter, found bool)

GetDealCounter returns dealCounter

func (Keeper) GetNewContract

func (k Keeper) GetNewContract(
	ctx sdk.Context,
	dealId string,
	contractId string,
) (val types.NewContract, found bool)

GetNewContract returns a newContract from its index

func (Keeper) GetNewDeal

func (k Keeper) GetNewDeal(
	ctx sdk.Context,
	index string,

) (val types.NewDeal, found bool)

GetNewDeal returns a newDeal from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) NewContract

NewContract is the query handler to fatch the contract for a given specific dealId and contractId

func (Keeper) NewContractAll

NewContractAll is the query handler to fetch all the contracts under given dealId

func (Keeper) NewDeal

NewDeal is the query handler to fetch the deal details for a given dealId

func (Keeper) NewDealAll

NewDealAll is the query handler to fetch all the new deals

func (Keeper) Params

Params is the query handler to fetch all the params related with Deal module

func (Keeper) RemoveContractCounter

func (k Keeper) RemoveContractCounter(ctx sdk.Context, dealId string)

RemoveContractCounter removes contractCounter from the store

func (Keeper) RemoveDealCounter

func (k Keeper) RemoveDealCounter(ctx sdk.Context)

RemoveDealCounter removes dealCounter from the store

func (Keeper) RemoveNewContract

func (k Keeper) RemoveNewContract(
	ctx sdk.Context,
	dealId string,
	contractId string,
)

RemoveNewContract removes a newContract from the store

func (Keeper) RemoveNewDeal

func (k Keeper) RemoveNewDeal(
	ctx sdk.Context,
	index string,

)

RemoveNewDeal removes a newDeal from the store

func (Keeper) SetContractCounter

func (k Keeper) SetContractCounter(ctx sdk.Context, contractCounter types.ContractCounter)

SetContractCounter set contractCounter in the store

func (Keeper) SetDealCounter

func (k Keeper) SetDealCounter(ctx sdk.Context, dealCounter types.DealCounter)

SetDealCounter set dealCounter in the store

func (Keeper) SetNewContract

func (k Keeper) SetNewContract(ctx sdk.Context, newContract types.NewContract)

SetNewContract set a specific newContract in the store - "NewContract/value/{dealId}"

func (Keeper) SetNewDeal

func (k Keeper) SetNewDeal(ctx sdk.Context, newDeal types.NewDeal)

SetNewDeal set a specific newDeal in the store from its index

func (Keeper) SetParams

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

SetParams set the params

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate2to3

func (m Migrator) Migrate2to3(ctx sdk.Context) error

Migrate2to3 - Migrating deal module from version 2 to 3

Jump to

Keyboard shortcuts

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