Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyProp222Change(ctx sdk.Context, poolincentiveskeeper *poolincentiveskeeper.Keeper)
- func ApplyProp223Change(ctx sdk.Context, poolincentiveskeeper *poolincentiveskeeper.Keeper)
- func ApplyProp224Change(ctx sdk.Context, poolincentiveskeeper *poolincentiveskeeper.Keeper)
- func CheckPoolContainsUST(ctx sdk.Context, gamm *gammkeeper.Keeper, poolID uint64) error
- func RegisterWhitelistedDirectUnbondPools(ctx sdk.Context, superfluid *superfluidkeeper.Keeper, gamm *gammkeeper.Keeper)
- func RunForkLogic(ctx sdk.Context, appKeepers *keepers.AppKeepers)
- type MsgFilterDecorator
Constants ¶
const ( // UpgradeName defines the on-chain upgrade name for the Merlin v8 upgrade. UpgradeName = v8constants.UpgradeName // UpgradeHeight defines the block height at which the Merlin v8 upgrade is // triggered. UpgradeHeight = v8constants.UpgradeHeight )
Variables ¶
var Fork = upgrades.Fork{ UpgradeName: UpgradeName, UpgradeHeight: UpgradeHeight, BeginForkLogic: RunForkLogic, }
Functions ¶
func ApplyProp222Change ¶
func ApplyProp222Change(ctx sdk.Context, poolincentiveskeeper *poolincentiveskeeper.Keeper)
Apply prop 222 change
func ApplyProp223Change ¶
func ApplyProp223Change(ctx sdk.Context, poolincentiveskeeper *poolincentiveskeeper.Keeper)
Apply prop 223 change
func ApplyProp224Change ¶
func ApplyProp224Change(ctx sdk.Context, poolincentiveskeeper *poolincentiveskeeper.Keeper)
Apply prop 224 change
func CheckPoolContainsUST ¶
CheckPoolContainsUST looks up the pool from the gammkeeper and returns nil if the pool contains UST's ibc denom returns an error if the pool does not contain UST's ibc denom or on any other error case.
func RegisterWhitelistedDirectUnbondPools ¶
func RegisterWhitelistedDirectUnbondPools(ctx sdk.Context, superfluid *superfluidkeeper.Keeper, gamm *gammkeeper.Keeper)
RegisterWhitelistedDirectUnbondPools registers pools that are allowed to unpool https://www.mintscan.io/merlin/proposals/226 merlind q gov proposal 226
func RunForkLogic ¶
func RunForkLogic(ctx sdk.Context, appKeepers *keepers.AppKeepers)
RunForkLogic executes height-gated on-chain fork logic for the Merlin v8 upgrade.
Types ¶
type MsgFilterDecorator ¶
type MsgFilterDecorator struct{}
MsgFilterDecorator defines an AnteHandler decorator for the v8 upgrade that provide height-gated message filtering acceptance.
func (MsgFilterDecorator) AnteHandle ¶
func (mfd MsgFilterDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
AnteHandle performs an AnteHandler check that returns an error if the current block height is less than the v8 upgrade height and contains messages that are not supported until the upgrade height is reached.