intrepidshape/elm-web3/1.0.0

NOTE: the latest version is 3.0.0

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/IntrepidShape/elm-web3.

What we checked: The repo moved to github.com/IntrepidShape/elm-web3 and tag 1.0.0 is there; its commit 9d919244f65e is from 2026-05-09 11:48 UTC, before the version was published (2026-05-09 11:58 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

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/intrepidshape/elm-web3/zipball/1.0.0/

Web3.Abi.Encode

Helpers to encode contract call parameters to JSON values for passing through ports to the JS Web3 layer.

address : Address -> Value

Encode an Address argument.

uint256 : BigInt -> Value

Encode a uint256 argument from a BigInt.

int256 : BigInt -> Value

Encode an int256 argument from a BigInt.

bool : Bool -> Value

Encode a bool argument.

string : String -> Value

Encode a string argument.

bytes : String -> Value

Encode raw bytes as a hex string.

bytes32 : String -> Value

Encode a bytes32 value.

bytesN : String -> Value

Encode a bytesN value (bytes1 through bytes31).

list : (a -> Value) -> List a -> Value

Encode a dynamic array argument.

-- Transfer(address[],uint256[])
Encode.list Encode.address recipients
Encode.list Encode.uint256 amounts
tuple2 : (a -> Value) -> (b -> Value) -> ( a, b ) -> Value

Encode a 2-tuple (struct with two fields).

-- swap(address token, uint256 amount)
Encode.tuple2 Encode.address Encode.uint256 ( tokenAddr, amount )
tuple3 : (a -> Value) -> (b -> Value) -> (c -> Value) -> ( a, b, c ) -> Value

Encode a 3-tuple (struct with three fields).