Module
Network.Ethereum.Web3.Solidity.AbiEncoding
- Package
- purescript-web3
- Repository
- f-o-a-m/purescript-web3
#ABIEncode Source
class ABIEncode a where
Class representing values that have an encoding and decoding instance to/from a solidity type.
Members
toDataBuilder :: a -> HexString
Instances
ABIEncode BigNumber
ABIEncode Boolean
ABIEncode Int
ABIEncode Address
ABIEncode ByteString
ABIEncode String
(ByteSize n) => ABIEncode (BytesN n)
(ABIEncode a, KnownSize n) => ABIEncode (Vector n a)
(ABIEncode a) => ABIEncode (Array a)
(IntSize n) => ABIEncode (UIntN n)
(IntSize n) => ABIEncode (IntN n)
(ABIEncode a) => ABIEncode (Tagged s a)
#ABIDecode Source
class ABIDecode a where
Members
fromDataParser :: Parser String a
Instances
ABIDecode BigNumber
ABIDecode Boolean
ABIDecode Int
ABIDecode Address
ABIDecode ByteString
ABIDecode String
(ByteSize n) => ABIDecode (BytesN n)
(ABIDecode a, KnownSize n) => ABIDecode (Vector n a)
(ABIDecode a) => ABIDecode (Array a)
(IntSize n) => ABIDecode (UIntN n)
(IntSize n) => ABIDecode (IntN n)
(ABIDecode a) => ABIDecode (Tagged s a)
#fromData Source
fromData :: forall a. ABIDecode a => HexString -> Either ParseError a
Parse encoded value, droping the leading 0x
#bytesBuilder Source
bytesBuilder :: ByteString -> HexString
Special Builders and Parsers base16 encode, then utf8 encode, then pad
#bytesDecode Source
bytesDecode :: String -> ByteString
unsafe utfDecode
#int256HexBuilder Source
int256HexBuilder :: BigNumber -> HexString
Encode something that is essentaially a signed integer.
#uInt256HexBuilder Source
uInt256HexBuilder :: BigNumber -> HexString
Encode something that is essentially an unsigned integer.
#int256HexParser Source
int256HexParser :: forall m. Monad m => ParserT String m BigNumber
Parse as a signed BigNumber
- Modules
- Network.
Ethereum. Web3 - Network.
Ethereum. Web3. Api - Network.
Ethereum. Web3. Contract - Network.
Ethereum. Web3. Contract. Internal - Network.
Ethereum. Web3. JsonRPC - Network.
Ethereum. Web3. Solidity - Network.
Ethereum. Web3. Solidity. AbiEncoding - Network.
Ethereum. Web3. Solidity. Bytes - Network.
Ethereum. Web3. Solidity. EncodingType - Network.
Ethereum. Web3. Solidity. Event - Network.
Ethereum. Web3. Solidity. Generic - Network.
Ethereum. Web3. Solidity. Int - Network.
Ethereum. Web3. Solidity. Size - Network.
Ethereum. Web3. Solidity. Sizes - Network.
Ethereum. Web3. Solidity. Tuple - Network.
Ethereum. Web3. Solidity. UInt - Network.
Ethereum. Web3. Solidity. Vector - Network.
Ethereum. Web3. Types - Network.
Ethereum. Web3. Types. EtherUnit - Network.
Ethereum. Web3. Types. Provider - Network.
Ethereum. Web3. Types. TokenUnit - Network.
Ethereum. Web3. Types. Types