burnable-tech/elm-ethereum/1.0.1

NOTE: the latest version is 1.0.2

Renamed to team-toast/elm-ethereum. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as burnable-tech/elm-ethereum still install under that name. 3 versions of 3 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/team-toast/elm-ethereum.

What we checked: The repo moved to github.com/team-toast/elm-ethereum. Rebuilt with git archive from commit 2793bdd9647f of https://github.com/team-toast/elm-ethereum (zip prefix burnable-tech-elm-ethereum-ae0242e/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 ddaab897a449a9db648d3b90c259963440d50b84.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/burnable-tech/elm-ethereum/zipball/1.0.1/

Abi.Decode

Decode RPC Responses

)

Primitives

type AbiDecoder a
uint : AbiDecoder BigInt
int : AbiDecoder BigInt

Bytes

staticBytes : Int -> AbiDecoder String

Arrays

staticArray : Int -> AbiDecoder a -> AbiDecoder (List a)

Decode Statically Sized Arrays

staticArray 10 uint == uint256 [ 10 ]

Decode Dynamically Sized Arrays

Run Decoders

Similar to Json.Decode.succeed, or pure in Haskell

andMap : AbiDecoder a -> AbiDecoder (a -> b) -> AbiDecoder b
toElmDecoder : AbiDecoder a -> Decoder a
fromString : AbiDecoder a -> String -> Result String a

Events/Logs

topic : Int -> AbiDecoder a -> Decoder a

Useful for decoding data withing events/logs.

data : Int -> AbiDecoder a -> 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