Documentation ¶
Index ¶
- func GetBytesFromUInt64(id uint64) []byte
- func GetUInt64FromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendContractLog(ctx sdk.Context, contractLog types.ContractLog) uint64
- func (k Keeper) CheckCommonError(msg *types.MsgAddContractLog) error
- func (k Keeper) ContractFile(c context.Context, req *types.QueryGetContractFileRequest) (*types.QueryGetContractFileResponse, error)
- func (k Keeper) ContractFileAll(c context.Context, req *types.QueryAllContractFileRequest) (*types.QueryAllContractFileResponse, error)
- func (k Keeper) ContractLog(c context.Context, req *types.QueryGetContractLogRequest) (*types.QueryGetContractLogResponse, error)
- func (k Keeper) ContractLogAll(c context.Context, req *types.QueryAllContractLogRequest) (*types.QueryAllContractLogResponse, error)
- func (k Keeper) GetAllContractFile(ctx sdk.Context) (list []types.ContractFile)
- func (k Keeper) GetAllContractLog(ctx sdk.Context) (list []types.ContractLog)
- func (k Keeper) GetContractFile(ctx sdk.Context, index string) (val types.ContractFile, found bool)
- func (k Keeper) GetContractListFromHash(goCtx context.Context, req *types.QueryGetContractListFromHashRequest) (*types.QueryGetContractListFromHashResponse, error)
- func (k Keeper) GetContractLog(ctx sdk.Context, id uint64) types.ContractLog
- func (k Keeper) GetContractLogCount(ctx sdk.Context) uint64
- func (k Keeper) GetContractLogOwner(ctx sdk.Context, id uint64) string
- func (k Keeper) HasContractLog(ctx sdk.Context, id uint64) bool
- func (k Keeper) IsContractOwner(goCtx context.Context, req *types.QueryIsContractOwnerRequest) (*types.QueryIsContractOwnerResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveContractFile(ctx sdk.Context, index string)
- func (k Keeper) SetContractFile(ctx sdk.Context, contractFile types.ContractFile)
- func (k Keeper) SetContractLog(ctx sdk.Context, contractLog types.ContractLog)
- func (k Keeper) SetContractLogCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetContractLogToHashStore(ctx sdk.Context, contractLog types.ContractLog)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytesFromUInt64 ¶
GetBytesFromUInt64 returns the byte representation of the Uint64
func GetUInt64FromBytes ¶
GetUInt64FromBytes returns uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) AppendContractLog ¶
func (Keeper) CheckCommonError ¶
func (k Keeper) CheckCommonError(msg *types.MsgAddContractLog) error
func (Keeper) ContractFile ¶
func (k Keeper) ContractFile(c context.Context, req *types.QueryGetContractFileRequest) (*types.QueryGetContractFileResponse, error)
func (Keeper) ContractFileAll ¶
func (k Keeper) ContractFileAll(c context.Context, req *types.QueryAllContractFileRequest) (*types.QueryAllContractFileResponse, error)
func (Keeper) ContractLog ¶
func (k Keeper) ContractLog(c context.Context, req *types.QueryGetContractLogRequest) (*types.QueryGetContractLogResponse, error)
func (Keeper) ContractLogAll ¶
func (k Keeper) ContractLogAll(c context.Context, req *types.QueryAllContractLogRequest) (*types.QueryAllContractLogResponse, error)
func (Keeper) GetAllContractFile ¶
func (k Keeper) GetAllContractFile(ctx sdk.Context) (list []types.ContractFile)
GetAllContractFile returns all contractFile
func (Keeper) GetAllContractLog ¶
func (k Keeper) GetAllContractLog(ctx sdk.Context) (list []types.ContractLog)
func (Keeper) GetContractFile ¶
GetContractFile returns a contractFile from its index
func (Keeper) GetContractListFromHash ¶
func (k Keeper) GetContractListFromHash(goCtx context.Context, req *types.QueryGetContractListFromHashRequest) (*types.QueryGetContractListFromHashResponse, error)
func (Keeper) GetContractLog ¶
func (Keeper) GetContractLogCount ¶
GetContractLogCount get the total number of TypeName.LowerCamel
func (Keeper) GetContractLogOwner ¶
func (Keeper) IsContractOwner ¶
func (k Keeper) IsContractOwner(goCtx context.Context, req *types.QueryIsContractOwnerRequest) (*types.QueryIsContractOwnerResponse, error)
func (Keeper) RemoveContractFile ¶
RemoveContractFile removes a contractFile from the store
func (Keeper) SetContractFile ¶
func (k Keeper) SetContractFile(ctx sdk.Context, contractFile types.ContractFile)
SetContractFile set a specific contractFile in the store from its index
func (Keeper) SetContractLog ¶
func (k Keeper) SetContractLog(ctx sdk.Context, contractLog types.ContractLog)
func (Keeper) SetContractLogCount ¶
func (Keeper) SetContractLogToHashStore ¶
func (k Keeper) SetContractLogToHashStore(ctx sdk.Context, contractLog types.ContractLog)
Click to show internal directories.
Click to hide internal directories.