Skip to content

pull upstream#1

Open
charlescrain wants to merge 251 commits intocharlescrain:masterfrom
airalab:master
Open

pull upstream#1
charlescrain wants to merge 251 commits intocharlescrain:masterfrom
airalab:master

Conversation

@charlescrain
Copy link
Copy Markdown
Owner

No description provided.

aherrmann and others added 30 commits May 23, 2018 17:33
These cause errors of the form

    Illegal data constructor name: ‘_fooData’
    When splicing a TH declaration:
* Network.Ethereum.ABI -> Data.Solidity
* Network.Ethereum.Web3 -> Network.Ethereum.Api
* Added package.yaml instead web3.cabal
* Introduced HexString datatype
* Cleanup API types from Solidity-like types
* Export from/to hexstring in Address module
* Bump stackage version
* Added IsString instance for HexString
* Fixed module names in unit tests
* Added solidity prim types instances import into TH generator
* Fixed Show instance for Address type
* Added instance for default account
* Added instance for 'personal' accounts
* Added function for sending transaction with confirmations
* Removed 'convert' function from Unit typeclass as useless
* Added transaction gas estimation before sending
* Added 'new' function for creating contracts
* Added 'Network.Ethereum.Chain' module that collects chain ids
Not all primitive types have `Generic` instance (`Bytes` for example).
For this reason in some cases (indexed bytes) event cannot be decoded.
But all primitive types have `AbiGet` instance and for TH generated types
instance created via default generic based implementation.
* Using 'secp256k1-haskell' instead of deprecated
* Fix bound of all dependencies according to LTS-9 -> LTS-12
akru and others added 30 commits January 25, 2022 12:14
* Add support for Solidity error declarations.
* Throw an error when the type of a tuple is neither "tuple" not "tuple[]"

Co-authored-by: Stephen Blackheath <go.stephen@blacksapphire.com>
* Implement transaction timeouts.

* Remove the redundant getTimeout.

* Make send return an Either instead of throwing TransactionTimeout.

* Fix a name shadowing.
* Relax upper bounds for GHC9 compatibility

* Update Tuple.hs

* fix up a bit

* remove cabals
* Add ToJSON instances for IntN and UIntN

* Add ToJSON instances to generated data types
* Fix ABI encoding for fixed length lists

The ABI encoding for fixed length Solidity lists `T[k]` was wrong in the case that `T` is dynamic. If T is dynamic, then according to the [spec](https://docs.soliditylang.org/en/v0.5.3/abi-spec.html#formal-specification-of-the-encoding),

> The following types are called “dynamic”:
> `T[k]` for any dynamic `T` and any `k >= 0`

This PR ensures this is the case and handles encoding for dynamic `T` similar to how it is handled in the variable length array case for `T[]` which was fixed in #126.

* unneccessary fromInteger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.