Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

derive-eip712: initial implementation of eip712 derive macro #481

Merged
merged 31 commits into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
9ec7f2a
derive-eip712: initial implementation of eip712 derive macro
Ryanmtate Oct 1, 2021
61bacb3
rename to ethers-derive-eip712; move to ethers-core
Ryanmtate Oct 1, 2021
6e17e39
refactor of derive-eip712 macro; use ParamType and EthAbiToken
Ryanmtate Oct 3, 2021
70f9fbd
macro updates; add byte array checker for paramtype; use literal cons…
Ryanmtate Oct 5, 2021
55e2cb6
replace std::convert::Infallible with WalletError as Wallet signer er…
Ryanmtate Oct 5, 2021
c98321c
update workspace members and dev dependencies for examples folder
Ryanmtate Oct 5, 2021
4975f67
add example for eip712 and test against contract
Ryanmtate Oct 5, 2021
714e2fb
remove extraneous backward slash in '\x19\x01' prefix; example tests …
Ryanmtate Oct 6, 2021
51860ea
update unreleased change log
Ryanmtate Oct 6, 2021
801a661
remove print statements
Ryanmtate Oct 6, 2021
1f99cac
use parse_macro_input macro; remove dead code; handle nest struct not…
Ryanmtate Oct 6, 2021
76d3f05
move eip712 example to solidity-contract tests folder; update cargo w…
Ryanmtate Oct 6, 2021
c98ba37
allow optional EIP712Domain parameter when encoding eip712 struct and…
Ryanmtate Oct 6, 2021
c911087
add documentation for eip712 feature
Ryanmtate Oct 6, 2021
db99fe0
Update ethers-signers/src/ledger/mod.rs
Ryanmtate Oct 6, 2021
e8cf636
add error enum for Eip712Error; use sign_payload for ledger signer
Ryanmtate Oct 6, 2021
803ce74
Merge branch 'feature/derive-eip712' of https://github.com/Ryanmtate/…
Ryanmtate Oct 6, 2021
e12a907
add EIP712WithDomain type for providing a wrapper around custom setti…
Ryanmtate Oct 6, 2021
7922341
make LedgerWallet sign_payload public
Ryanmtate Oct 7, 2021
bc2fc1f
use optional feature gated dependencies for eip712; add default metho…
Ryanmtate Oct 7, 2021
1f2b433
add default domain_separator method, pre-compute separator hash
Ryanmtate Oct 7, 2021
0e48b79
move derive-eip712 deps to dev deps
Ryanmtate Oct 7, 2021
6cb3fed
remove invalid sign payload parameter, add await on async method
Ryanmtate Oct 7, 2021
61a153d
remove deprecated comment
Ryanmtate Oct 7, 2021
909c491
debugging 'bad key handle' error for ledger signer
Ryanmtate Oct 7, 2021
8f46be9
await sign digest for aws signer
Ryanmtate Oct 7, 2021
6691f8e
remove extra space, fix fmt warning
Ryanmtate Oct 7, 2021
e3e96d1
fix test, fmt errors
Ryanmtate Oct 7, 2021
7241d2b
use gt 0.6.0 pragma compiler version
Ryanmtate Oct 7, 2021
e0a0d92
enable ABIEncoderV2 for solidity test contract
Ryanmtate Oct 8, 2021
208949a
chore: make test constructor public
gakonst Oct 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.vscode
30 changes: 17 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,33 @@

### Unreleased

* Use rust types as contract function inputs for human readable abi [#482](https://github.com/gakonst/ethers-rs/pull/482)
*
- Use rust types as contract function inputs for human readable abi [#482](https://github.com/gakonst/ethers-rs/pull/482)
- Add EIP-712 `sign_typed_data` signer method; add ethers-core type `Eip712` trait and derive macro in ethers-derive-eip712 [#481](https://github.com/gakonst/ethers-rs/pull/481)

### 0.5.3

* Allow configuring the optimizer & passing arbitrary arguments to solc [#427](https://github.com/gakonst/ethers-rs/pull/427)
* Decimal support for `ethers_core::utils::parse_units` [#463](https://github.com/gakonst/ethers-rs/pull/463)
* Fixed Wei unit calculation in `Units` [#460](https://github.com/gakonst/ethers-rs/pull/460)
* Add `ethers_core::utils::get_create2_address_from_hash` [#444](https://github.com/gakonst/ethers-rs/pull/444)
* Bumped ethabi to 0.15.0 and fixing breaking changes [#469](https://github.com/gakonst/ethers-rs/pull/469), [#448](https://github.com/gakonst/ethers-rs/pull/448), [#445](https://github.com/gakonst/ethers-rs/pull/445)
- Allow configuring the optimizer & passing arbitrary arguments to solc [#427](https://github.com/gakonst/ethers-rs/pull/427)
- Decimal support for `ethers_core::utils::parse_units` [#463](https://github.com/gakonst/ethers-rs/pull/463)
- Fixed Wei unit calculation in `Units` [#460](https://github.com/gakonst/ethers-rs/pull/460)
- Add `ethers_core::utils::get_create2_address_from_hash` [#444](https://github.com/gakonst/ethers-rs/pull/444)
- Bumped ethabi to 0.15.0 and fixing breaking changes [#469](https://github.com/gakonst/ethers-rs/pull/469), [#448](https://github.com/gakonst/ethers-rs/pull/448), [#445](https://github.com/gakonst/ethers-rs/pull/445)

### 0.5.2
* Correctly RLP Encode transactions as received from the mempool ([#415](https://github.com/gakonst/ethers-rs/pull/415))

- Correctly RLP Encode transactions as received from the mempool ([#415](https://github.com/gakonst/ethers-rs/pull/415))

## ethers-providers

### Unreleased

### 0.5.3

* Expose `ens` module [#435](https://github.com/gakonst/ethers-rs/pull/435)
* Add `eth_getProof` [#459](https://github.com/gakonst/ethers-rs/pull/459)
- Expose `ens` module [#435](https://github.com/gakonst/ethers-rs/pull/435)
- Add `eth_getProof` [#459](https://github.com/gakonst/ethers-rs/pull/459)

### 0.5.2
* Set resolved ENS name during gas estimation ([1e5a9e](https://github.com/gakonst/ethers-rs/commit/1e5a9efb3c678eecd43d5c341b4932da35445831))

- Set resolved ENS name during gas estimation ([1e5a9e](https://github.com/gakonst/ethers-rs/commit/1e5a9efb3c678eecd43d5c341b4932da35445831))

## ethers-signers

Expand All @@ -38,12 +41,13 @@
### Unreleased

### 0.5.3
* (De)Tokenize structs and events with only a single field as `Token:Tuple` ([#417](https://github.com/gakonst/ethers-rs/pull/417))

- (De)Tokenize structs and events with only a single field as `Token:Tuple` ([#417](https://github.com/gakonst/ethers-rs/pull/417))

## ethers-middleware

### Unreleased

### 0.5.3

* Added Time Lagged middleware [#457](https://github.com/gakonst/ethers-rs/pull/457)
- Added Time Lagged middleware [#457](https://github.com/gakonst/ethers-rs/pull/457)
Loading