burnable-tech/elm-ethereum/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 e79bdd0efe57 of https://github.com/team-toast/elm-ethereum (zip prefix burnable-tech-elm-ethereum-e941bde/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 01059137ad1764d5dd33de9f23e5d647595ca709.

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.2/

Eth.Types

Types

Simple

type alias Address =
Address
type alias TxHash =
TxHash
type alias BlockHash =
BlockHash
type alias Hex =
Hex

Complex

type alias Call a =
{ to : Maybe Address
, from : Maybe Address
, gas : Maybe Int
, gasPrice : Maybe BigInt
, value : Maybe BigInt
, data : Maybe Hex
, nonce : Maybe Int
, decoder : Decoder a
}
type alias Send =
{ to : Maybe Address
, from : Maybe Address
, gas : Maybe Int
, gasPrice : Maybe BigInt
, value : Maybe BigInt
, data : Maybe Hex
, nonce : Maybe Int
}
type alias Tx =
{ hash : TxHash
, nonce : Int
, blockHash : Maybe BlockHash
, blockNumber : Maybe Int
, transactionIndex : Int
, from : Address
, to : Maybe Address
, value : BigInt
, gasPrice : BigInt
, gas : Int
, input : String
}
type alias TxReceipt =
{ hash : TxHash
, index : Int
, blockHash : BlockHash
, blockNumber : Int
, gasUsed : BigInt
, cumulativeGasUsed : BigInt
, contractAddress : Maybe Address
, logs : List Log
, logsBloom : String
, root : Maybe String
, status : Maybe Bool
}
type BlockId
= BlockNum Int
| EarliestBlock
| LatestBlock
| PendingBlock
type alias Block a =
{ number : Int
, hash : BlockHash
, parentHash : BlockHash
, nonce : String
, sha3Uncles : String
, logsBloom : String
, transactionsRoot : String
, stateRoot : String
, receiptsRoot : String
, miner : Address
, difficulty : BigInt
, totalDifficulty : BigInt
, extraData : String
, size : Int
, gasLimit : Int
, gasUsed : Int
, timestamp : Posix
, transactions : List a
, uncles : List String
}
type alias Uncle =
Block ()
type alias BlockHead =
{ number : Int
, hash : BlockHash
, parentHash : BlockHash
, nonce : String
, sha3Uncles : String
, logsBloom : String
, transactionsRoot : String
, stateRoot : String
, receiptsRoot : String
, miner : Address
, difficulty : BigInt
, extraData : String
, gasLimit : Int
, gasUsed : Int
, mixHash : String
, timestamp : Posix
}
type alias Log =
{ address : Address
, data : String
, topics : List Hex
, removed : Bool
, logIndex : Int
, transactionIndex : Int
, transactionHash : TxHash
, blockHash : BlockHash
, blockNumber : Int
}
type alias Event a =
{ address : Address
, data : String
, topics : List Hex
, removed : Bool
, logIndex : Int
, transactionIndex : Int
, transactionHash : TxHash
, blockHash : BlockHash
, blockNumber : Int
, returnData : a
}
type alias LogFilter =
{ fromBlock : BlockId
, toBlock : BlockId
, address : Address
, topics : List (Maybe Hex)
}

NOTE: Different from JSON RPC API, removed some optionality to reduce complexity (array with array)

type alias SyncStatus =
{ startingBlock : Int
, currentBlock : Int
, highestBlock : Int
, knownStates : Int
, pulledStates : Int
}

Misc

type alias HttpProvider =
String
type alias WebsocketProvider =
String
type alias FilterId =
String