Documentation
¶
Index ¶
- Variables
- func NewMsgServerImpl(k Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllContracts(ctx sdk.Context) ([]types.CadanceContract, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCadanceContract(ctx sdk.Context, contractAddress string) (*types.CadanceContract, error)
- func (k Keeper) GetCdc() codec.BinaryCodec
- func (k Keeper) GetContractKeeper() *wasmkeeper.PermissionedKeeper
- func (k Keeper) GetPaginatedContracts(ctx sdk.Context, pag *query.PageRequest) (*types.QueryCadanceContractsResponse, error)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetStore() storetypes.StoreKey
- func (k Keeper) IsCadanceContract(ctx sdk.Context, contractAddress string) bool
- func (k Keeper) IsContractManager(ctx sdk.Context, senderAddress string, contractAddress string) (bool, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RegisterContract(ctx sdk.Context, senderAddress string, contractAddress string) error
- func (k Keeper) RemoveContract(ctx sdk.Context, contractAddress string)
- func (k Keeper) SetCadanceContract(ctx sdk.Context, contract types.CadanceContract) error
- func (k Keeper) SetJailStatus(ctx sdk.Context, contractAddress string, isJailed bool) error
- func (k Keeper) SetJailStatusBySender(ctx sdk.Context, senderAddress string, contractAddress string, jailStatus bool) error
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error
- func (k Keeper) UnregisterContract(ctx sdk.Context, senderAddress string, contractAddress string) error
- type Querier
- func (q Querier) CadanceContract(stdCtx context.Context, req *types.QueryCadanceContract) (*types.QueryCadanceContractResponse, error)
- func (q Querier) CadanceContracts(stdCtx context.Context, req *types.QueryCadanceContracts) (*types.QueryCadanceContractsResponse, error)
- func (q Querier) Params(stdCtx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Constants ¶
This section is empty.
Variables ¶
var (
StoreKeyContracts = []byte("contracts")
)
Store Keys for cadance contract s (both jailed and unjailed)
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the x/cadance MsgServer interface.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the cadance store
func NewKeeper ¶
func NewKeeper( key storetypes.StoreKey, cdc codec.BinaryCodec, wasmKeeper wasmkeeper.Keeper, contractKeeper *wasmkeeper.PermissionedKeeper, authority string, ) Keeper
func (Keeper) GetAllContracts ¶
Get all cadance contract addresses from the KV store.
func (Keeper) GetAuthority ¶
GetAuthority returns the x/cadance module's authority.
func (Keeper) GetCadanceContract ¶
func (k Keeper) GetCadanceContract(ctx sdk.Context, contractAddress string) (*types.CadanceContract, error)
Get a cadance contract address from the KV store.
func (Keeper) GetCdc ¶
func (k Keeper) GetCdc() codec.BinaryCodec
GetCdc returns the x/cadance module's codec.
func (Keeper) GetContractKeeper ¶
func (k Keeper) GetContractKeeper() *wasmkeeper.PermissionedKeeper
GetContractKeeper returns the x/wasm module's contract keeper.
func (Keeper) GetPaginatedContracts ¶
func (k Keeper) GetPaginatedContracts(ctx sdk.Context, pag *query.PageRequest) (*types.QueryCadanceContractsResponse, error)
Get all registered fee pay contracts
func (Keeper) GetStore ¶
func (k Keeper) GetStore() storetypes.StoreKey
GetStore returns the x/cadance module's store key.
func (Keeper) IsCadanceContract ¶
Check if a cadance contract address is in the KV store.
func (Keeper) IsContractManager ¶
func (k Keeper) IsContractManager(ctx sdk.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 sdk.Context, senderAddress string, contractAddress string) error
Register a cadance contract address in the KV store.
func (Keeper) RemoveContract ¶
Remove a cadance contract address from the KV store.
func (Keeper) SetCadanceContract ¶
Set a cadance contract address in the KV store.
func (Keeper) SetJailStatus ¶
Set the jail status of a cadance contract in the KV store.
func (Keeper) SetJailStatusBySender ¶
func (k Keeper) SetJailStatusBySender(ctx sdk.Context, senderAddress string, contractAddress string, jailStatus bool) error
Set the jail status of a cadance contract by the sender address.
type Querier ¶
type Querier struct {
// contains filtered or unexported fields
}
func NewQuerier ¶
func (Querier) CadanceContract ¶
func (q Querier) CadanceContract(stdCtx context.Context, req *types.QueryCadanceContract) (*types.QueryCadanceContractResponse, error)
CadanceContract returns the cadance contract information
func (Querier) CadanceContracts ¶
func (q Querier) CadanceContracts(stdCtx context.Context, req *types.QueryCadanceContracts) (*types.QueryCadanceContractsResponse, error)
ContractModules returns contract addresses which are using the cadance
func (Querier) Params ¶
func (q Querier) Params(stdCtx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns the total set of cadance parameters.