Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

TxInfoStorePacking

Packs a TxInfo entity into a u128 value.

The packing is done as follows:

  • The boolean is_executed is stored as a single bit at the highest bit position (index 127).
  • The submitted_block value occupies 64 bits in the range 63..126.

Fully qualified path: openzeppelin_governance::multisig::storage_utils::TxInfoStorePacking

pub impl TxInfoStorePacking of StorePacking<TxInfo, u128>;

Impl functions

pack

Fully qualified path: openzeppelin_governance::multisig::storage_utils::TxInfoStorePacking::pack

fn pack(value: TxInfo) -> u128

unpack

Fully qualified path: openzeppelin_governance::multisig::storage_utils::TxInfoStorePacking::unpack

fn unpack(value: u128) -> TxInfo