Documentation ¶
Index ¶
- func SupplyInvariant(ctx sdk.Context, store api.BasketTable, bank bankSupplyStore, ...) (string, bool)
- type Keeper
- func (k Keeper) Basket(ctx context.Context, request *types.QueryBasketRequest) (*types.QueryBasketResponse, error)
- func (k Keeper) BasketBalance(ctx context.Context, request *types.QueryBasketBalanceRequest) (*types.QueryBasketBalanceResponse, error)
- func (k Keeper) BasketBalances(ctx context.Context, request *types.QueryBasketBalancesRequest) (*types.QueryBasketBalancesResponse, error)
- func (k Keeper) BasketFee(ctx context.Context, _ *types.QueryBasketFeeRequest) (*types.QueryBasketFeeResponse, error)
- func (k Keeper) Baskets(ctx context.Context, request *types.QueryBasketsRequest) (*types.QueryBasketsResponse, error)
- func (k Keeper) Create(ctx context.Context, msg *types.MsgCreate) (*types.MsgCreateResponse, error)
- func (k Keeper) GetBasketBalanceMap(ctx context.Context) (map[uint64]math.Dec, error)
- func (k Keeper) Put(ctx context.Context, req *types.MsgPut) (*types.MsgPutResponse, error)
- func (k Keeper) RegisterInvariants(ir sdk.InvariantRegistry)
- func (k Keeper) Take(ctx context.Context, msg *types.MsgTake) (*types.MsgTakeResponse, error)
- func (k Keeper) UpdateBasketFee(ctx context.Context, req *types.MsgUpdateBasketFee) (*types.MsgUpdateBasketFeeResponse, error)
- func (k Keeper) UpdateCurator(ctx context.Context, req *types.MsgUpdateCurator) (*types.MsgUpdateCuratorResponse, error)
- func (k Keeper) UpdateDateCriteria(ctx context.Context, msg *types.MsgUpdateDateCriteria) (*types.MsgUpdateDateCriteriaResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the basket keeper.
func NewKeeper ¶
func NewKeeper( ss api.StateStore, cs baseapi.StateStore, bk ecocredit.BankKeeper, ma sdk.AccAddress, authority sdk.AccAddress, ) Keeper
NewKeeper returns a new keeper instance.
func (Keeper) Basket ¶
func (k Keeper) Basket(ctx context.Context, request *types.QueryBasketRequest) (*types.QueryBasketResponse, error)
func (Keeper) BasketBalance ¶
func (k Keeper) BasketBalance(ctx context.Context, request *types.QueryBasketBalanceRequest) (*types.QueryBasketBalanceResponse, error)
func (Keeper) BasketBalances ¶
func (k Keeper) BasketBalances(ctx context.Context, request *types.QueryBasketBalancesRequest) (*types.QueryBasketBalancesResponse, error)
func (Keeper) BasketFee ¶
func (k Keeper) BasketFee(ctx context.Context, _ *types.QueryBasketFeeRequest) (*types.QueryBasketFeeResponse, error)
func (Keeper) Baskets ¶
func (k Keeper) Baskets(ctx context.Context, request *types.QueryBasketsRequest) (*types.QueryBasketsResponse, error)
func (Keeper) GetBasketBalanceMap ¶
GetBasketBalanceMap calculates credit balance of each batch within the basket
func (Keeper) Put ¶
Put deposits ecocredits into a basket, returning fungible coins to the depositor. NOTE: the credits MUST adhere to the following specifications set by the basket: credit type, class, and date criteria.
func (Keeper) RegisterInvariants ¶
func (k Keeper) RegisterInvariants(ir sdk.InvariantRegistry)
func (Keeper) UpdateBasketFee ¶
func (k Keeper) UpdateBasketFee(ctx context.Context, req *types.MsgUpdateBasketFee) (*types.MsgUpdateBasketFeeResponse, error)
UpdateBasketFee is an RPC to handle basket.UpdateBasketFee
func (Keeper) UpdateCurator ¶
func (k Keeper) UpdateCurator(ctx context.Context, req *types.MsgUpdateCurator) (*types.MsgUpdateCuratorResponse, error)
UpdateCurator is an RPC to handle basket.UpdateCurator
func (Keeper) UpdateDateCriteria ¶ added in v3.3.0
func (k Keeper) UpdateDateCriteria(ctx context.Context, msg *types.MsgUpdateDateCriteria) (*types.MsgUpdateDateCriteriaResponse, error)
UpdateDateCriteria is an RPC to handle basket.MsgUpdateDateCriteria
Click to show internal directories.
Click to hide internal directories.