Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (fk Keeper) GetFileInfoBytesByFileHash(ctx sdk.Context, key []byte) ([]byte, error)
- func (fk Keeper) GetPrepay(ctx sdk.Context, sender sdk.AccAddress) (sdk.Int, error)
- func (fk Keeper) GetPrepayBytes(ctx sdk.Context, sender sdk.AccAddress) ([]byte, error)
- func (fk Keeper) Logger(ctx sdk.Context) log.Logger
- func (fk Keeper) Prepay(ctx sdk.Context, sender sdk.AccAddress, coins sdk.Coins) (sdk.Int, error)
- func (fk Keeper) SetFileHash(ctx sdk.Context, fileHash []byte, fileInfo types.FileInfo)
Constants ¶
View Source
const ( QueryFileHash = "uploaded_file" QueryPrepay = "prepay" QuerySimulatePrepay = "simulate_prepay" QueryCurrUozPrice = "curr_uoz_price" QueryUozSupply = "uoz_supply" )
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for sds clients.
Types ¶
type Keeper ¶
type Keeper struct { BankKeeper bank.Keeper RegisterKeeper register.Keeper PotKeeper pot.Keeper // contains filtered or unexported fields }
Keeper encodes/decodes files using the go-amino (binary) encoding/decoding library.
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, bankKeeper bank.Keeper, registerKeeper register.Keeper, potKeeper pot.Keeper, ) Keeper
NewKeeper returns a new sdk.NewKeeper that uses go-amino to (binary) encode and decode concrete sdk.MsgUploadFile. nolint
func (Keeper) GetFileInfoBytesByFileHash ¶
GetFileInfoBytesByFileHash Returns the hash of file
func (Keeper) GetPrepayBytes ¶
GetPrepay Returns bytearr of the existing prepay coins
Click to show internal directories.
Click to hide internal directories.