internal

package
v0.0.0-...-027dd3d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenesisParams

func DefaultGenesisParams() *escrowv1alpha1.GenesisState_Params

func NewMsgServer

func NewMsgServer(keeper Keeper) escrowv1alpha1.MsgServer

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

func NewQueryServer

func NewQueryServer(keeper Keeper) escrowv1alpha1.QueryServer

NewQueryServer returns an implementation of the QueryServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeService store.KVStoreService,
	authority sdk.AccAddress,
	router expected.MessageRouter,
	authKeeper expected.AuthKeeper,
) (*Keeper, error)

func (Keeper) CreateAgent

func (k Keeper) CreateAgent(ctx context.Context, creator sdk.AccAddress) (sdk.AccAddress, error)

func (Keeper) DefaultGenesis

func (k Keeper) DefaultGenesis() *escrowv1alpha1.GenesisState

func (Keeper) Exec

func (k Keeper) Exec(ctx context.Context, agents []sdk.AccAddress, actions []*codectypes.Any) error

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx context.Context) (*escrowv1alpha1.GenesisState, error)

func (Keeper) GetAgent

func (k Keeper) GetAgent(ctx context.Context, address sdk.AccAddress) (*escrowv1alpha1.Agent, error)

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() sdk.AccAddress

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (*escrowv1alpha1.Params, error)

func (Keeper) GetProposal

func (k Keeper) GetProposal(ctx context.Context, agent sdk.AccAddress) (*escrowv1alpha1.Proposal, error)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx context.Context, gs *escrowv1alpha1.GenesisState) error

func (Keeper) SubmitProposal

func (k Keeper) SubmitProposal(ctx context.Context, proposer, agent sdk.AccAddress, preActions, postActions []*codectypes.Any, metadata string) error

func (Keeper) UpdateParams

func (k Keeper) UpdateParams(ctx context.Context, newParams *escrowv1alpha1.Params) error

func (Keeper) ValidateGenesis

func (k Keeper) ValidateGenesis(gs *escrowv1alpha1.GenesisState) error

Jump to

Keyboard shortcuts

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