Documentation
¶
Index ¶
- Variables
- func EndBlocker(ctx context.Context, k Keeper) error
- func NewMsgServerImpl(k Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllContracts(ctx context.Context) ([]types.ClockContract, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCdc() codec.BinaryCodec
- func (k Keeper) GetClockContract(ctx context.Context, contractAddress string) (*types.ClockContract, error)
- func (k Keeper) GetContractKeeper() wasmtypes.ContractOpsKeeper
- func (k Keeper) GetPaginatedContracts(ctx context.Context, pag *query.PageRequest) (*types.QueryClockContractsResponse, error)
- func (k Keeper) GetParams(ctx context.Context) (p types.Params)
- func (k Keeper) GetStoreService() storetypes.KVStoreService
- func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
- func (k Keeper) IsClockContract(ctx context.Context, contractAddress string) bool
- func (k Keeper) IsContractManager(ctx context.Context, senderAddress string, contractAddress string) (bool, error)
- func (k Keeper) Logger(ctx context.Context) log.Logger
- func (k Keeper) RegisterContract(ctx context.Context, senderAddress string, contractAddress string) error
- func (k Keeper) RemoveContract(ctx context.Context, contractAddress string)
- func (k Keeper) SetClockContract(ctx context.Context, contract types.ClockContract) error
- func (k Keeper) SetJailStatus(ctx context.Context, contractAddress string, isJailed bool) error
- func (k Keeper) SetJailStatusBySender(ctx context.Context, senderAddress string, contractAddress string, ...) error
- func (k Keeper) SetParams(ctx context.Context, p types.Params) error
- func (k Keeper) UnregisterContract(ctx context.Context, senderAddress string, contractAddress string) error
Constants ¶
This section is empty.
Variables ¶
var (
StoreKeyContracts = []byte("contracts")
)
Store Keys for clock contracts (both jailed and unjailed)
Functions ¶
func EndBlocker ¶
EndBlocker executes on contracts at the end of the block.
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the x/clock MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the clock store
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, ss storetypes.KVStoreService, wasmKeeper wasmkeeper.Keeper, contractKeeper wasmtypes.ContractOpsKeeper, authority string, ) Keeper
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis export module state
func (Keeper) GetAllContracts ¶
Get all clock contract addresses from the KV store.
func (Keeper) GetAuthority ¶
GetAuthority returns the x/clock module's authority.
func (Keeper) GetCdc ¶
func (k Keeper) GetCdc() codec.BinaryCodec
GetCdc returns the x/clock module's codec.
func (Keeper) GetClockContract ¶
func (k Keeper) GetClockContract(ctx context.Context, contractAddress string) (*types.ClockContract, error)
Get a clock contract address from the KV store.
func (Keeper) GetContractKeeper ¶
func (k Keeper) GetContractKeeper() wasmtypes.ContractOpsKeeper
GetContractKeeper returns the x/wasm module's contract keeper.
func (Keeper) GetPaginatedContracts ¶
func (k Keeper) GetPaginatedContracts(ctx context.Context, pag *query.PageRequest) (*types.QueryClockContractsResponse, error)
Get all registered fee pay contracts
func (Keeper) GetStoreService ¶
func (k Keeper) GetStoreService() storetypes.KVStoreService
GetStore returns the x/clock module's store service.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis( ctx sdk.Context, data types.GenesisState, )
InitGenesis import module genesis
func (Keeper) IsClockContract ¶
Check if a clock contract address is in the KV store.
func (Keeper) IsContractManager ¶
func (k Keeper) IsContractManager(ctx context.Context, senderAddress string, contractAddress string) (bool, error)
Check if the sender is the designated contract manager for the FeePay contract. If an admin is present, they are considered the manager. If there is no admin, the contract creator is considered the manager.
func (Keeper) RegisterContract ¶
func (k Keeper) RegisterContract(ctx context.Context, senderAddress string, contractAddress string) error
Register a clock contract address in the KV store.
func (Keeper) RemoveContract ¶
Remove a clock contract address from the KV store.
func (Keeper) SetClockContract ¶
Set a clock contract address in the KV store.
func (Keeper) SetJailStatus ¶
Set the jail status of a clock contract in the KV store.
func (Keeper) SetJailStatusBySender ¶
func (k Keeper) SetJailStatusBySender(ctx context.Context, senderAddress string, contractAddress string, jailStatus bool) error
Set the jail status of a clock contract by the sender address.