Helpers to encode contract call parameters to JSON values for passing through ports to the JS Web3 layer.
Encode a bool argument.
Encode a string argument.
Encode raw bytes as a hex string.
Encode a bytes32 value.
Encode a bytesN value (bytes1 through bytes31).
Encode a dynamic array argument.
-- Transfer(address[],uint256[])
Encode.list Encode.address recipients
Encode.list Encode.uint256 amountsEncode a 2-tuple (struct with two fields).
-- swap(address token, uint256 amount)
Encode.tuple2 Encode.address Encode.uint256 ( tokenAddr, amount )Encode a 3-tuple (struct with three fields).
Encode an Address argument.