Safe Haskell | None |
---|---|
Language | Haskell2010 |
Measuring operation size of typed stuff.
Synopsis
- newtype OpSize = OpSize {}
- opSizeHardLimit :: OpSize
- smallTransferOpSize :: OpSize
- instrOpSize :: Instr inp out -> OpSize
- contractOpSize :: Contract cp st -> OpSize
- valueOpSize :: PrintedValScope t => Value t -> OpSize
Documentation
Operation size in bytes.
We use newtype wrapper because there are different units of measure (another one is gas, and we don't want to confuse them).
opSizeHardLimit :: OpSize Source #
Maximal operation size allowed by Tezos production nodes.
smallTransferOpSize :: OpSize Source #
Base cost of any transfer of 0 mutez with no extra parameters. (Add 'valueOpSize param' to it to get assessment of actual transfer op size)
instrOpSize :: Instr inp out -> OpSize Source #
Estimate instruction operation size.
contractOpSize :: Contract cp st -> OpSize Source #
Estimate contract code operation size.
valueOpSize :: PrintedValScope t => Value t -> OpSize Source #
Estimate value operation size.
TODO: [#428]: do not use PrintedValScope
here.