keeper

package
v8.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func ToAddress

func ToAddress(addrs []string) []common.Address

func ToBigInt

func ToBigInt(ints []uint64) []*big.Int

func ToBytes

func ToBytes(strs []string) [][]byte

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	storeService store.KVStoreService,
	cdc codec.BinaryCodec,
	ps paramtypes.Subspace,
	ak types.AccountKeeper,
	ek types.ERC20Keeper,
	gk *govkeeper.Keeper,
	authority string,

) Keeper

func (*Keeper) AppendLendingMarketProposal

func (k *Keeper) AppendLendingMarketProposal(ctx sdk.Context, lm *types.MsgLendingMarketProposal) (*types.MsgLendingMarketProposal, error)

method for appending govshuttle proposal types to the govshuttle Map contract

func (Keeper) DeployMapContract

func (k Keeper) DeployMapContract(ctx sdk.Context, lm *types.MsgLendingMarketProposal) (common.Address, error)

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/govshuttle module's authority.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetPort

func (k Keeper) GetPort(ctx sdk.Context) (common.Address, bool)

retrieve the port address from state

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetPort

func (k Keeper) SetPort(ctx sdk.Context, portAddr common.Address)

commit the address of the current govShuttle mapcontract to state (Port.sol)

func (Keeper) TreasuryProposal

Jump to

Keyboard shortcuts

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