Decode RPC Responses
)
uint : AbiDecoder BigInt
int : AbiDecoder BigInt
bool : AbiDecoder Basics.Bool
address : AbiDecoder Eth.Types.Address
string : AbiDecoder String
staticBytes : Basics.Int -> AbiDecoder String
dynamicBytes : AbiDecoder String
staticArray : Basics.Int -> AbiDecoder a -> AbiDecoder (List a)
Decode Statically Sized Arrays
staticArray 10 uint == uint256 [ 10 ]
dynamicArray : AbiDecoder a -> AbiDecoder (List a)
Decode Dynamically Sized Arrays
abiDecode : a -> AbiDecoder a
Similar to Json.Decode.succeed, or pure
in Haskell
andMap : AbiDecoder a -> AbiDecoder (a -> b) -> AbiDecoder b
toElmDecoder : AbiDecoder a -> Json.Decode.Decoder a
fromString : AbiDecoder a -> String -> Result String a
topic : Basics.Int -> AbiDecoder a -> Json.Decode.Decoder a
Useful for decoding data withing events/logs.
data : Basics.Int -> AbiDecoder a -> Json.Decode.Decoder a
Useful for decoding data withing events/logs.
TODO - Will this work if dynamic types are in the log data? dropBytes might mess with the length of grabbing dyn vals off the Original Tape