Available on crate feature
monad only.Expand description
Monad-specific cheatcodes. Accessible via MonadVm(MONAD_CHEATCODE_ADDRESS).
interface MonadVm {
function setEpoch(uint64 epoch, bool inDelayPeriod) external;
function setProposer(uint64 valId) external;
function setAccumulator(uint64 valId, uint256 value) external;
function blockReward(address author, uint256 reward) external;
function epochSnapshot() external;
function epochChange(uint64 newEpoch) external;
function epochBoundary(uint64 newEpoch) external;
}Structs§
- block
Reward Call - Distribute block reward via the real syscallReward handler.
Function with signature
blockReward(address,uint256)and selector0x2714fe4b. - block
Reward Return - Distribute block reward via the real syscallReward handler.
Container type for the return parameters of the
blockReward(address,uint256)function. - epoch
Boundary Call - Convenience: epochSnapshot() then epochChange(newEpoch).
Function with signature
epochBoundary(uint64)and selector0xfd138d27. - epoch
Boundary Return - Convenience: epochSnapshot() then epochChange(newEpoch).
Container type for the return parameters of the
epochBoundary(uint64)function. - epoch
Change Call - Execute syscallOnEpochChange.
Function with signature
epochChange(uint64)and selector0x3a3b7cb7. - epoch
Change Return - Execute syscallOnEpochChange.
Container type for the return parameters of the
epochChange(uint64)function. - epoch
Snapshot Call - Execute syscallSnapshot.
Function with signature
epochSnapshot()and selector0x5ab25e92. - epoch
Snapshot Return - Execute syscallSnapshot.
Container type for the return parameters of the
epochSnapshot()function. - setAccumulator
Call - Directly sets a validator’s accumulated reward per token.
Function with signature
setAccumulator(uint64,uint256)and selector0xe0480ffb. - setAccumulator
Return - Directly sets a validator’s accumulated reward per token.
Container type for the return parameters of the
setAccumulator(uint64,uint256)function. - setEpoch
Call - Sets the current epoch and delay period for the staking precompile.
Function with signature
setEpoch(uint64,bool)and selector0x8d33af46. - setEpoch
Return - Sets the current epoch and delay period for the staking precompile.
Container type for the return parameters of the
setEpoch(uint64,bool)function. - setProposer
Call - Sets the current block proposer validator ID.
Function with signature
setProposer(uint64)and selector0x53417aa5. - setProposer
Return - Sets the current block proposer validator ID.
Container type for the return parameters of the
setProposer(uint64)function.
Enums§
- Monad
VmCalls - Container for all the
MonadVmfunction calls.