Module

Network.Ethereum.Web3.Solidity.Int

Package
purescript-web3
Repository
f-o-a-m/purescript-web3

#IntN Source

newtype IntN (n :: DigitList)

Represents a statically sized signed integer of size n bytes. See module Network.Ethereum.Web3.Solidity.Sizes for some predefined sizes.

Instances

#unIntN Source

unIntN :: forall n. KnownSize n => IntN n -> BigNumber

Access the raw underlying integer

#intNFromBigNumber Source

intNFromBigNumber :: forall n. KnownSize n => DLProxy n -> BigNumber -> Maybe (IntN n)

Attempt to coerce an signed BigNumber into a statically sized one. See module Network.Ethereum.Web3.Solidity.Sizes for some predefined sizes.