Module

Network.Ethereum.Web3.Solidity.UInt

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

#UIntN Source

newtype UIntN (n :: DigitList)

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

Instances

#unUIntN Source

unUIntN :: forall n. KnownSize n => UIntN n -> BigNumber

Access the raw underlying unsigned integer

#uIntNFromBigNumber Source

uIntNFromBigNumber :: forall n. KnownSize n => DLProxy n -> BigNumber -> Maybe (UIntN n)

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