Documentation
¶
Index ¶
- func IsValidCosmosWalletAndContractAddress(address string) bool
- func IsValidEthereumAddress(address string) bool
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k Keeper) CheckMonikerAvailability(goCtx context.Context, req *types.QueryCheckMonikerAvailabilityRequest) (*types.QueryCheckMonikerAvailabilityResponse, error)
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) GetAllBatches(goCtx context.Context, req *types.QueryGetAllBatchesRequest) (*types.QueryGetAllBatchesResponse, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBatchInfo(goCtx context.Context, req *types.QueryGetBatchInfoRequest) (*types.QueryGetBatchInfoResponse, error)
- func (k Keeper) GetMoniker(ctx sdk.Context, moniker string) bool
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetRollupBatchDbStoreKeys(rollupId string, batchNo uint64) (string, []byte)
- func (k Keeper) GetRollupByMoniker(goCtx context.Context, req *types.QueryGetRollupByMonikerRequest) (*types.QueryGetRollupByMonikerResponse, error)
- func (k Keeper) GetRollupInfo(goCtx context.Context, req *types.QueryGetRollupInfoRequest) (*types.QueryGetRollupInfoResponse, error)
- func (k Keeper) GetRollupStakedAmount(goCtx context.Context, req *types.QueryGetRollupStakedAmountRequest) (*types.QueryGetRollupStakedAmountResponse, error)
- func (k Keeper) GetRollups(goCtx context.Context, req *types.QueryGetRollupsRequest) (*types.QueryGetRollupsResponse, error)
- func (k Keeper) GetStakeDetailsByUser(goCtx context.Context, req *types.QueryGetStakeDetailsByUserRequest) (*types.QueryGetStakeDetailsByUserResponse, error)
- func (k Keeper) GetTotalStakedAmount(goCtx context.Context, req *types.QueryGetTotalStakedAmountRequest) (*types.QueryGetTotalStakedAmountResponse, error)
- func (k Keeper) Inner_GetRollupStakedAmount(ctx sdk.Context, rollupId string) (types.QueryGetRollupStakedAmountResponse, error)
- func (k Keeper) Inner_GetStakeDetailsByUser(ctx sdk.Context, address string) (types.QueryGetStakeDetailsByUserResponse, error)
- func (k Keeper) Inner_GetTotalStakedAmount(ctx sdk.Context) (TotalStakeAmountResponse, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ScopedKeeper() exported.ScopedKeeper
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) ShouldBound(ctx sdk.Context, portID string) bool
- func (k Keeper) VerifyBatch(zkProof []byte, witness fr.Vector, vkBytes []byte) (bool, error)
- type TotalStakeAmountResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidCosmosWalletAndContractAddress ¶
IsValidCosmosWalletAndContractAddress checks whether the passed address is a valid Cosmos wallet or contract address. A valid Cosmos address must have a human-readable part (HRP) of "air".
func IsValidEthereumAddress ¶
IsValidEthereumAddress checks whether the passed wallet address is a valid ethereum address. A valid Ethereum address must: - Begin with "0x" - Be 42 characters in length (including the "0x" prefix) - Only contain hexadecimal characters (0-9, a-f, A-F) after the prefix
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, storeService store.KVStoreService, logger log.Logger, authority string, bankKeeper types.BankKeeper, ibcKeeperFn func() *ibckeeper.Keeper, capabilityScopedFn func(string) capabilitykeeper.ScopedKeeper, ) Keeper
func (Keeper) AuthenticateCapability ¶
func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function
func (Keeper) ChanCloseInit ¶
ChanCloseInit defines a wrapper function for the channel Keeper's function.
func (Keeper) CheckMonikerAvailability ¶
func (k Keeper) CheckMonikerAvailability(goCtx context.Context, req *types.QueryCheckMonikerAvailabilityRequest) (*types.QueryCheckMonikerAvailabilityResponse, error)
CheckMonikerAvailability verifies whether the provided moniker is available. If the request is nil or the moniker is empty, it returns an error. It unwraps the SDK context from the given context, queries the store to check if the moniker already exists, and returns a response where IsAvailable is true if the moniker does not exist.
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
ClaimCapability allows the IBC app module to claim a capability that core IBC passes to it
func (Keeper) GetAllBatches ¶
func (k Keeper) GetAllBatches(goCtx context.Context, req *types.QueryGetAllBatchesRequest) (*types.QueryGetAllBatchesResponse, error)
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetBatchInfo ¶
func (k Keeper) GetBatchInfo(goCtx context.Context, req *types.QueryGetBatchInfoRequest) (*types.QueryGetBatchInfoResponse, error)
func (Keeper) GetRollupBatchDbStoreKeys ¶
func (Keeper) GetRollupByMoniker ¶
func (k Keeper) GetRollupByMoniker(goCtx context.Context, req *types.QueryGetRollupByMonikerRequest) (*types.QueryGetRollupByMonikerResponse, error)
func (Keeper) GetRollupInfo ¶
func (k Keeper) GetRollupInfo(goCtx context.Context, req *types.QueryGetRollupInfoRequest) (*types.QueryGetRollupInfoResponse, error)
func (Keeper) GetRollupStakedAmount ¶
func (k Keeper) GetRollupStakedAmount(goCtx context.Context, req *types.QueryGetRollupStakedAmountRequest) (*types.QueryGetRollupStakedAmountResponse, error)
func (Keeper) GetRollups ¶
func (k Keeper) GetRollups(goCtx context.Context, req *types.QueryGetRollupsRequest) (*types.QueryGetRollupsResponse, error)
func (Keeper) GetStakeDetailsByUser ¶
func (k Keeper) GetStakeDetailsByUser(goCtx context.Context, req *types.QueryGetStakeDetailsByUserRequest) (*types.QueryGetStakeDetailsByUserResponse, error)
func (Keeper) GetTotalStakedAmount ¶
func (k Keeper) GetTotalStakedAmount(goCtx context.Context, req *types.QueryGetTotalStakedAmountRequest) (*types.QueryGetTotalStakedAmountResponse, error)
func (Keeper) Inner_GetRollupStakedAmount ¶
func (Keeper) Inner_GetStakeDetailsByUser ¶
func (Keeper) Inner_GetTotalStakedAmount ¶
func (k Keeper) Inner_GetTotalStakedAmount(ctx sdk.Context) (TotalStakeAmountResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ScopedKeeper ¶
func (k Keeper) ScopedKeeper() exported.ScopedKeeper
ScopedKeeper returns the ScopedKeeper
func (Keeper) ShouldBound ¶
ShouldBound checks if the IBC app module can be bound to the desired port
type TotalStakeAmountResponse ¶
type TotalStakeAmountResponse struct {
Creators []struct {
CreatorAddress string `json:"creator_address"`
Rollups []struct {
RollupID string `json:"rollup_id"`
AmountStaked int `json:"amount_staked"`
Denom string `json:"denom"`
} `json:"rollups"`
} `json:"creators"`
TotalStakedAmount int `json:"total_staked_amount"`
}
Source Files
¶
- keeper.go
- msg_server.go
- msg_server_init_prover.go
- msg_server_init_rollup.go
- msg_server_submit_batch.go
- msg_server_submit_batch_metadata.go
- msg_update_params.go
- params.go
- query.go
- query_check_moniker_availability.go
- query_get_all_batches.go
- query_get_batch_info.go
- query_get_rollup_by_moniker.go
- query_get_rollup_info.go
- query_get_rollup_staked_amount.go
- query_get_rollups.go
- query_get_stake_details_by_user.go
- query_get_total_staked_amount.go
- query_helper.go
- query_params.go
- rollup_helper.go