mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
chore: remove repetitive words (#1869)
Signed-off-by: frameflare <yangzenghua@outlook.com>
This commit is contained in:
parent
0ea92335de
commit
41b79e44af
@ -132,7 +132,7 @@ func (br BaseReq) ValidateBasic(w http.ResponseWriter) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadRESTReq reads and unmarshals a Request's body to the the BaseReq struct.
|
// ReadRESTReq reads and unmarshals a Request's body to the BaseReq struct.
|
||||||
// Writes an error response to ResponseWriter and returns false if errors occurred.
|
// Writes an error response to ResponseWriter and returns false if errors occurred.
|
||||||
func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.LegacyAmino, req interface{}) bool {
|
func ReadRESTReq(w http.ResponseWriter, r *http.Request, cdc *codec.LegacyAmino, req interface{}) bool {
|
||||||
body, err := io.ReadAll(r.Body)
|
body, err := io.ReadAll(r.Body)
|
||||||
|
@ -4,4 +4,4 @@ order: 5
|
|||||||
|
|
||||||
# Parameters
|
# Parameters
|
||||||
|
|
||||||
The committee module has no parameters. Committees are created using the `x/gov` module and and inherit the parameters controlling governance proposals from `x/gov`.
|
The committee module has no parameters. Committees are created using the `x/gov` module and inherit the parameters controlling governance proposals from `x/gov`.
|
||||||
|
@ -111,7 +111,7 @@ func queryRewardsCmd() *cobra.Command {
|
|||||||
cmd.Flags().String(flagOwner, "", "(optional) filter by owner address")
|
cmd.Flags().String(flagOwner, "", "(optional) filter by owner address")
|
||||||
cmd.Flags().String(flagType, "", fmt.Sprintf("(optional) filter by a reward type: %s", strings.Join(rewardTypes, "|")))
|
cmd.Flags().String(flagType, "", fmt.Sprintf("(optional) filter by a reward type: %s", strings.Join(rewardTypes, "|")))
|
||||||
cmd.Flags().Bool(flagUnsynced, false, "(optional) get unsynced claims")
|
cmd.Flags().Bool(flagUnsynced, false, "(optional) get unsynced claims")
|
||||||
cmd.Flags().Int(flags.FlagPage, 1, "pagination page rewards of to to query for")
|
cmd.Flags().Int(flags.FlagPage, 1, "pagination page rewards of to query for")
|
||||||
cmd.Flags().Int(flags.FlagLimit, 100, "pagination limit of rewards to query for")
|
cmd.Flags().Int(flags.FlagLimit, 100, "pagination limit of rewards to query for")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ func NewKeeper(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUSDXMintingClaim returns the claim in the store corresponding the the input address collateral type and id and a boolean for if the claim was found
|
// GetUSDXMintingClaim returns the claim in the store corresponding the input address collateral type and id and a boolean for if the claim was found
|
||||||
func (k Keeper) GetUSDXMintingClaim(ctx sdk.Context, addr sdk.AccAddress) (types.USDXMintingClaim, bool) {
|
func (k Keeper) GetUSDXMintingClaim(ctx sdk.Context, addr sdk.AccAddress) (types.USDXMintingClaim, bool) {
|
||||||
store := prefix.NewStore(ctx.KVStore(k.key), types.USDXMintingClaimKeyPrefix)
|
store := prefix.NewStore(ctx.KVStore(k.key), types.USDXMintingClaimKeyPrefix)
|
||||||
bz := store.Get(addr)
|
bz := store.Get(addr)
|
||||||
@ -191,7 +191,7 @@ func (k Keeper) IterateUSDXMintingRewardFactors(ctx sdk.Context, cb func(denom s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetHardLiquidityProviderClaim returns the claim in the store corresponding the the input address collateral type and id and a boolean for if the claim was found
|
// GetHardLiquidityProviderClaim returns the claim in the store corresponding the input address collateral type and id and a boolean for if the claim was found
|
||||||
func (k Keeper) GetHardLiquidityProviderClaim(ctx sdk.Context, addr sdk.AccAddress) (types.HardLiquidityProviderClaim, bool) {
|
func (k Keeper) GetHardLiquidityProviderClaim(ctx sdk.Context, addr sdk.AccAddress) (types.HardLiquidityProviderClaim, bool) {
|
||||||
store := prefix.NewStore(ctx.KVStore(k.key), types.HardLiquidityClaimKeyPrefix)
|
store := prefix.NewStore(ctx.KVStore(k.key), types.HardLiquidityClaimKeyPrefix)
|
||||||
bz := store.Get(addr)
|
bz := store.Get(addr)
|
||||||
@ -240,7 +240,7 @@ func (k Keeper) GetAllHardLiquidityProviderClaims(ctx sdk.Context) types.HardLiq
|
|||||||
return cs
|
return cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDelegatorClaim returns the claim in the store corresponding the the input address collateral type and id and a boolean for if the claim was found
|
// GetDelegatorClaim returns the claim in the store corresponding the input address collateral type and id and a boolean for if the claim was found
|
||||||
func (k Keeper) GetDelegatorClaim(ctx sdk.Context, addr sdk.AccAddress) (types.DelegatorClaim, bool) {
|
func (k Keeper) GetDelegatorClaim(ctx sdk.Context, addr sdk.AccAddress) (types.DelegatorClaim, bool) {
|
||||||
store := prefix.NewStore(ctx.KVStore(k.key), types.DelegatorClaimKeyPrefix)
|
store := prefix.NewStore(ctx.KVStore(k.key), types.DelegatorClaimKeyPrefix)
|
||||||
bz := store.Get(addr)
|
bz := store.Get(addr)
|
||||||
@ -289,7 +289,7 @@ func (k Keeper) GetAllDelegatorClaims(ctx sdk.Context) types.DelegatorClaims {
|
|||||||
return cs
|
return cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetSwapClaim returns the claim in the store corresponding the the input address.
|
// GetSwapClaim returns the claim in the store corresponding the input address.
|
||||||
func (k Keeper) GetSwapClaim(ctx sdk.Context, addr sdk.AccAddress) (types.SwapClaim, bool) {
|
func (k Keeper) GetSwapClaim(ctx sdk.Context, addr sdk.AccAddress) (types.SwapClaim, bool) {
|
||||||
store := prefix.NewStore(ctx.KVStore(k.key), types.SwapClaimKeyPrefix)
|
store := prefix.NewStore(ctx.KVStore(k.key), types.SwapClaimKeyPrefix)
|
||||||
bz := store.Get(addr)
|
bz := store.Get(addr)
|
||||||
@ -338,7 +338,7 @@ func (k Keeper) GetAllSwapClaims(ctx sdk.Context) types.SwapClaims {
|
|||||||
return cs
|
return cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetSavingsClaim returns the claim in the store corresponding the the input address.
|
// GetSavingsClaim returns the claim in the store corresponding the input address.
|
||||||
func (k Keeper) GetSavingsClaim(ctx sdk.Context, addr sdk.AccAddress) (types.SavingsClaim, bool) {
|
func (k Keeper) GetSavingsClaim(ctx sdk.Context, addr sdk.AccAddress) (types.SavingsClaim, bool) {
|
||||||
store := prefix.NewStore(ctx.KVStore(k.key), types.SavingsClaimKeyPrefix)
|
store := prefix.NewStore(ctx.KVStore(k.key), types.SavingsClaimKeyPrefix)
|
||||||
bz := store.Get(addr)
|
bz := store.Get(addr)
|
||||||
@ -387,7 +387,7 @@ func (k Keeper) GetAllSavingsClaims(ctx sdk.Context) types.SavingsClaims {
|
|||||||
return cs
|
return cs
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetEarnClaim returns the claim in the store corresponding the the input address.
|
// GetEarnClaim returns the claim in the store corresponding the input address.
|
||||||
func (k Keeper) GetEarnClaim(ctx sdk.Context, addr sdk.AccAddress) (types.EarnClaim, bool) {
|
func (k Keeper) GetEarnClaim(ctx sdk.Context, addr sdk.AccAddress) (types.EarnClaim, bool) {
|
||||||
store := prefix.NewStore(ctx.KVStore(k.key), types.EarnClaimKeyPrefix)
|
store := prefix.NewStore(ctx.KVStore(k.key), types.EarnClaimKeyPrefix)
|
||||||
bz := store.Get(addr)
|
bz := store.Get(addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user