Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Channel(goCtx context.Context, req *types.QueryGetChannelRequest) (*types.QueryGetChannelResponse, error)
- func (k Keeper) ChannelAll(goCtx context.Context, req *types.QueryAllChannelRequest) (*types.QueryAllChannelResponse, error)
- func (k Keeper) Commitment(goCtx context.Context, req *types.QueryGetCommitmentRequest) (*types.QueryGetCommitmentResponse, error)
- func (k Keeper) CommitmentAll(goCtx context.Context, req *types.QueryAllCommitmentRequest) (*types.QueryAllCommitmentResponse, error)
- func (k Keeper) Fwdcommitment(goCtx context.Context, req *types.QueryGetFwdcommitmentRequest) (*types.QueryGetFwdcommitmentResponse, error)
- func (k Keeper) FwdcommitmentAll(goCtx context.Context, req *types.QueryAllFwdcommitmentRequest) (*types.QueryAllFwdcommitmentResponse, error)
- func (k Keeper) GetAllChannel(ctx sdk.Context) (list []types.Channel)
- func (k Keeper) GetAllCommitment(ctx sdk.Context) (list []types.Commitment)
- func (k Keeper) GetAllFwdcommitment(ctx sdk.Context) (list []types.Fwdcommitment)
- func (k Keeper) GetChannel(ctx sdk.Context, index string) (val types.Channel, found bool)
- func (k Keeper) GetCommitment(ctx sdk.Context, index string) (val types.Commitment, found bool)
- func (k Keeper) GetFwdcommitment(ctx sdk.Context, index string) (val types.Fwdcommitment, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveChannel(ctx sdk.Context, index string)
- func (k Keeper) RemoveCommitment(ctx sdk.Context, index string)
- func (k Keeper) RemoveFwdcommitment(ctx sdk.Context, index string)
- func (k Keeper) SetChannel(ctx sdk.Context, channel types.Channel)
- func (k Keeper) SetCommitment(ctx sdk.Context, commitment types.Commitment)
- func (k Keeper) SetFwdcommitment(ctx sdk.Context, fwdcommitment types.Fwdcommitment)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) Channel ¶
func (k Keeper) Channel(goCtx context.Context, req *types.QueryGetChannelRequest) (*types.QueryGetChannelResponse, error)
func (Keeper) ChannelAll ¶
func (k Keeper) ChannelAll(goCtx context.Context, req *types.QueryAllChannelRequest) (*types.QueryAllChannelResponse, error)
func (Keeper) Commitment ¶
func (k Keeper) Commitment(goCtx context.Context, req *types.QueryGetCommitmentRequest) (*types.QueryGetCommitmentResponse, error)
func (Keeper) CommitmentAll ¶
func (k Keeper) CommitmentAll(goCtx context.Context, req *types.QueryAllCommitmentRequest) (*types.QueryAllCommitmentResponse, error)
func (Keeper) Fwdcommitment ¶
func (k Keeper) Fwdcommitment(goCtx context.Context, req *types.QueryGetFwdcommitmentRequest) (*types.QueryGetFwdcommitmentResponse, error)
func (Keeper) FwdcommitmentAll ¶
func (k Keeper) FwdcommitmentAll(goCtx context.Context, req *types.QueryAllFwdcommitmentRequest) (*types.QueryAllFwdcommitmentResponse, error)
func (Keeper) GetAllChannel ¶
GetAllChannel returns all channel
func (Keeper) GetAllCommitment ¶
func (k Keeper) GetAllCommitment(ctx sdk.Context) (list []types.Commitment)
GetAllCommitment returns all commitment
func (Keeper) GetAllFwdcommitment ¶
func (k Keeper) GetAllFwdcommitment(ctx sdk.Context) (list []types.Fwdcommitment)
GetAllFwdcommitment returns all fwdcommitment
func (Keeper) GetChannel ¶
GetChannel returns a channel from its index
func (Keeper) GetCommitment ¶
GetCommitment returns a commitment from its index
func (Keeper) GetFwdcommitment ¶
func (k Keeper) GetFwdcommitment( ctx sdk.Context, index string, ) (val types.Fwdcommitment, found bool)
GetFwdcommitment returns a fwdcommitment from its index
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveChannel ¶
RemoveChannel removes a channel from the store
func (Keeper) RemoveCommitment ¶
RemoveCommitment removes a commitment from the store
func (Keeper) RemoveFwdcommitment ¶
RemoveFwdcommitment removes a fwdcommitment from the store
func (Keeper) SetChannel ¶
SetChannel set a specific channel in the store from its index
func (Keeper) SetCommitment ¶
func (k Keeper) SetCommitment(ctx sdk.Context, commitment types.Commitment)
SetCommitment set a specific commitment in the store from its index
func (Keeper) SetFwdcommitment ¶
func (k Keeper) SetFwdcommitment(ctx sdk.Context, fwdcommitment types.Fwdcommitment)
SetFwdcommitment set a specific fwdcommitment in the store from its index
Source Files
¶
- channel.go
- commitment.go
- fwdcommitment.go
- keeper.go
- msg_server.go
- msg_server_acceptfund.go
- msg_server_closechannel.go
- msg_server_commitment.go
- msg_server_fund.go
- msg_server_openchannel.go
- msg_server_receivercommit.go
- msg_server_receiverwithdraw.go
- msg_server_sendercommit.go
- msg_server_senderwithdrawhashlock.go
- msg_server_senderwithdrawtimelock.go
- msg_server_withdraw_hashlock.go
- msg_server_withdraw_timelock.go
- params.go
- query.go
- query_channel.go
- query_commitment.go
- query_fwdcommitment.go
- query_params.go