2021-08-31 10:52:11 +00:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
## ethers-core
|
|
|
|
|
2021-11-29 14:31:39 +00:00
|
|
|
### Unreleased
|
|
|
|
|
2022-03-31 17:04:28 +00:00
|
|
|
- Fix aws signer bug which maps un-normalized signature to error if no normalization occurs (in `aws::utils::decode_signature`)
|
2022-03-24 05:06:55 +00:00
|
|
|
- `Transaction::from` will default to `Address::zero()`. Add `recover_from` and
|
|
|
|
`recover_from_mut` methods for recovering the sender from signature, and also
|
|
|
|
setting the same on tx [1075](https://github.com/gakonst/ethers-rs/pull/1075).
|
2022-02-26 14:35:43 +00:00
|
|
|
- Add Etherscan account API endpoints [939](https://github.com/gakonst/ethers-rs/pull/939)
|
2022-02-21 17:01:19 +00:00
|
|
|
- Add FTM Mainet and testnet to parse method "try_from" from Chain.rs and add cronos mainet and testnet to "from_str"
|
2022-02-18 14:05:08 +00:00
|
|
|
- Add FTM mainnet and testnet Multicall addresses [927](https://github.com/gakonst/ethers-rs/pull/927)
|
2022-02-18 14:04:11 +00:00
|
|
|
- Add Cronos mainnet beta and testnet to the list of known chains
|
|
|
|
[926](https://github.com/gakonst/ethers-rs/pull/926)
|
2022-02-12 15:41:18 +00:00
|
|
|
- `Chain::to_string` will return the same chain name as `Chain::from_str`
|
2022-02-01 10:58:45 +00:00
|
|
|
- Add `eth_syncing` [848](https://github.com/gakonst/ethers-rs/pull/848)
|
2022-01-29 12:54:38 +00:00
|
|
|
- Fix overflow and possible divide-by-zero in `estimate_priority_fee`
|
2022-01-27 14:50:11 +00:00
|
|
|
- Add BSC mainnet and testnet to the list of known chains
|
|
|
|
[831](https://github.com/gakonst/ethers-rs/pull/831)
|
2021-12-15 02:32:29 +00:00
|
|
|
- Returns error on invalid type conversion instead of panicking
|
|
|
|
[691](https://github.com/gakonst/ethers-rs/pull/691/files)
|
2021-11-29 14:31:39 +00:00
|
|
|
- Change types mapping for solidity `bytes` to rust `ethers::core::Bytes` and
|
|
|
|
solidity `uint8[]` to rust `Vec<u8>`.
|
2021-11-24 20:15:17 +00:00
|
|
|
[613](https://github.com/gakonst/ethers-rs/pull/613)
|
2021-11-24 09:07:18 +00:00
|
|
|
- Fix `format_units` to return a `String` of representing a decimal point float
|
|
|
|
such that the decimal places don't get truncated.
|
|
|
|
[597](https://github.com/gakonst/ethers-rs/pull/597)
|
2021-11-29 14:31:39 +00:00
|
|
|
- Implement hex display format for `ethers::core::Bytes`
|
|
|
|
[#624](https://github.com/gakonst/ethers-rs/pull/624).
|
2021-12-10 15:49:27 +00:00
|
|
|
- Fix `fee_history` to first try with `block_count` encoded as a hex `QUANTITY`.
|
|
|
|
[#668](https://github.com/gakonst/ethers-rs/pull/668)
|
2021-12-13 22:50:13 +00:00
|
|
|
- Fix `fill_transaction` to set nonces in transactions, if the sender is known
|
|
|
|
and no nonce is specified
|
2021-12-15 23:09:09 +00:00
|
|
|
- Move `fill_transaction` implementation to the provider, to allow middleware
|
|
|
|
to properly override its behavior.
|
2022-01-29 08:32:38 +00:00
|
|
|
- Add informational messages to solc installation and compilation.
|
2022-02-02 13:57:31 +00:00
|
|
|
- Significantly refactor `MultiAbigen` module generation. Now allows for lib
|
|
|
|
generation, and does not make unnecessary disk writes.
|
|
|
|
[#854](https://github.com/gakonst/ethers-rs/pull/852)
|
2022-02-02 20:44:53 +00:00
|
|
|
- Refactor `ethers-contract-abigen` to use `eyre` instead of `anyhow` via
|
|
|
|
[#858](https://github.com/gakonst/ethers-rs/pull/858)
|
2022-02-05 14:37:09 +00:00
|
|
|
- Add `Deployer.send_with_receipt -> Result<(Contract, Receipt), Error>`
|
|
|
|
so that the receipt can be returned to the called when deploying
|
|
|
|
a contract [#865](https://github.com/gakonst/ethers-rs/pull/865)
|
2022-02-05 14:36:21 +00:00
|
|
|
- Add Arbitrum mainnet and testnet to the list of known chains
|
2022-02-16 14:25:41 +00:00
|
|
|
- Add ENS avatar and TXT records resolution
|
|
|
|
[#889](https://github.com/gakonst/ethers-rs/pull/889)
|
2022-03-01 12:13:06 +00:00
|
|
|
- Do not override gas limits provided by an outer middleware when including an EIP-2930 access list
|
|
|
|
[#901](https://github.com/gakonst/ethers-rs/pull/901)
|
2022-02-13 19:47:00 +00:00
|
|
|
- Add a getter to `ProjectCompileOutput` that returns a mapping of compiler
|
|
|
|
versions to a vector of name + contract struct tuples
|
|
|
|
[#908](https://github.com/gakonst/ethers-rs/pull/908)
|
2022-03-10 18:42:02 +00:00
|
|
|
- Add Yul compilation [994](https://github.com/gakonst/ethers-rs/pull/994)
|
2022-03-08 14:45:45 +00:00
|
|
|
- Enforce commutativity of ENS reverse resolution
|
|
|
|
[#996](https://github.com/gakonst/ethers-rs/pull/996)
|
2021-11-24 09:07:18 +00:00
|
|
|
|
2021-12-10 16:05:45 +00:00
|
|
|
## ethers-contract-abigen
|
|
|
|
|
2022-03-05 18:25:03 +00:00
|
|
|
### Unreleased
|
|
|
|
|
2022-03-19 04:23:33 +00:00
|
|
|
- Generate a deploy function if bytecode is provided in the abigen! input (json artifact)
|
|
|
|
[#1030](https://github.com/gakonst/ethers-rs/pull/1030).
|
2022-03-05 18:25:03 +00:00
|
|
|
- Generate correct bindings of struct's field names that are reserved words
|
|
|
|
[#989](https://github.com/gakonst/ethers-rs/pull/989).
|
|
|
|
|
|
|
|
### 0.6.0
|
|
|
|
|
2021-12-23 14:38:07 +00:00
|
|
|
- Add `MultiAbigen` to generate a series of contract bindings that can be kept in the repo
|
|
|
|
[#724](https://github.com/gakonst/ethers-rs/pull/724).
|
2021-12-20 21:24:21 +00:00
|
|
|
- Add provided `event_derives` to call and event enums as well
|
|
|
|
[#721](https://github.com/gakonst/ethers-rs/pull/721).
|
2021-12-10 16:05:45 +00:00
|
|
|
- Implement snowtrace and polygonscan on par with the etherscan integration
|
|
|
|
[#666](https://github.com/gakonst/ethers-rs/pull/666).
|
|
|
|
|
2021-11-26 16:49:19 +00:00
|
|
|
## ethers-solc
|
|
|
|
|
2021-08-31 10:52:11 +00:00
|
|
|
### Unreleased
|
|
|
|
|
2022-03-21 08:58:56 +00:00
|
|
|
- Bundle svm, svm-builds and sha2 dependencies in new `svm-solc` feature
|
|
|
|
[#1071](https://github.com/gakonst/ethers-rs/pull/1071)
|
2022-02-23 10:46:52 +00:00
|
|
|
- Wrap `ethabi::Contract` into new type `LosslessAbi` and `abi: Option<Abi>` with `abi: Option<LosslessAbi>` in `ConfigurableContractArtifact`
|
|
|
|
[#952](https://github.com/gakonst/ethers-rs/pull/952)
|
2022-02-17 15:31:35 +00:00
|
|
|
- Let `Project` take ownership of `ArtifactOutput` and change trait interface
|
|
|
|
[#907](https://github.com/gakonst/ethers-rs/pull/907)
|
2022-02-04 16:20:24 +00:00
|
|
|
- Total revamp of the `Project::compile` pipeline
|
|
|
|
[#802](https://github.com/gakonst/ethers-rs/pull/802)
|
|
|
|
- Support multiple versions of compiled contracts
|
|
|
|
- Breaking: deprecate hardhat cache file compatibility, cache file now tracks artifact paths and their versions
|
2022-01-31 08:08:04 +00:00
|
|
|
- Fix flatten replacement target location
|
|
|
|
[#846](https://github.com/gakonst/ethers-rs/pull/846)
|
2022-01-19 16:11:37 +00:00
|
|
|
- Fix duplicate files during flattening
|
|
|
|
[#813](https://github.com/gakonst/ethers-rs/pull/813)
|
2022-01-17 12:27:40 +00:00
|
|
|
- Add ability to flatten file imports
|
|
|
|
[#774](https://github.com/gakonst/ethers-rs/pull/774)
|
2022-01-05 21:46:57 +00:00
|
|
|
- Add dependency graph and resolve all imported libraryfiles
|
|
|
|
[#750](https://github.com/gakonst/ethers-rs/pull/750)
|
2021-12-19 12:30:31 +00:00
|
|
|
- `Remapping::find_many` does not return a `Result` anymore
|
|
|
|
[#707](https://github.com/gakonst/ethers-rs/pull/707)
|
2021-12-15 02:32:29 +00:00
|
|
|
- Add support for hardhat artifacts
|
|
|
|
[#677](https://github.com/gakonst/ethers-rs/pull/677)
|
|
|
|
- Add more utility functions to the `Artifact` trait
|
|
|
|
[#673](https://github.com/gakonst/ethers-rs/pull/673)
|
2021-11-29 14:31:39 +00:00
|
|
|
- Return cached artifacts from project `compile` when the cache only contains
|
|
|
|
some files
|
2021-12-15 02:32:29 +00:00
|
|
|
- Add support for library linking and make `Bytecode`'s `object` filed an
|
|
|
|
`enum BytecodeObject` [#656](https://github.com/gakonst/ethers-rs/pull/656).
|
2021-11-29 14:31:39 +00:00
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
### 0.6.0
|
|
|
|
|
2021-12-19 14:40:17 +00:00
|
|
|
- add `EthAbiCodec` proc macro to derive `AbiEncode` `AbiDecode` implementation
|
|
|
|
[#704](https://github.com/gakonst/ethers-rs/pull/704)
|
2021-11-23 19:27:46 +00:00
|
|
|
- move `AbiEncode` `AbiDecode` trait to ethers-core and implement for core types
|
|
|
|
[#531](https://github.com/gakonst/ethers-rs/pull/531)
|
|
|
|
- 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)
|
derive-eip712: initial implementation of eip712 derive macro (#481)
* derive-eip712: initial implementation of eip712 derive macro
This commit provides an initial implementation for a derive macro
to encode typed data according to EIP-712, https://eips.ethereum.org/EIPS/eip-712
Additionally, this commit introduces a new signer trait method:
async fn sign_typed_data<T: Eip712 + Send + Sync>(
&self,
payload: &T,
) -> Result<Signature, Self::Error>;
And implements the new method for each of the signers (wallet, ledger,
aws).
Additionally, these changes include using `WalletError` for the Wallet
signer error type
At the moment, derive does not recurse the primary type to find nested
Eip712 structs. This is something that is noted in the source and
currently responds with an error regarding custom types.
A subsequent PR should be opened once this issue becomes needed. For the
moment, the current implementation should satisfy non-nested, basic struct types.
* rename to ethers-derive-eip712; move to ethers-core
* refactor of derive-eip712 macro; use ParamType and EthAbiToken
* macro updates; add byte array checker for paramtype; use literal constant for domain type hash
* replace std::convert::Infallible with WalletError as Wallet signer error type
* update workspace members and dev dependencies for examples folder
* add example for eip712 and test against contract
* remove extraneous backward slash in '\x19\x01' prefix; example tests pass
* update unreleased change log
* remove print statements
* use parse_macro_input macro; remove dead code; handle nest struct not implemented error
* move eip712 example to solidity-contract tests folder; update cargo workspace dependencies
* allow optional EIP712Domain parameter when encoding eip712 struct and signing typed data
* add documentation for eip712 feature
* Update ethers-signers/src/ledger/mod.rs
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
* add error enum for Eip712Error; use sign_payload for ledger signer
* add EIP712WithDomain type for providing a wrapper around custom setting of the domain
* make LedgerWallet sign_payload public
* use optional feature gated dependencies for eip712; add default method for encode_eip712
* add default domain_separator method, pre-compute separator hash
* move derive-eip712 deps to dev deps
* remove invalid sign payload parameter, add await on async method
* remove deprecated comment
* debugging 'bad key handle' error for ledger signer
try using 'sign_message'
* await sign digest for aws signer
* remove extra space, fix fmt warning
* fix test, fmt errors
* use gt 0.6.0 pragma compiler version
* enable ABIEncoderV2 for solidity test contract
* chore: make test constructor public
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-08 15:22:51 +00:00
|
|
|
|
2021-09-27 10:20:10 +00:00
|
|
|
### 0.5.3
|
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
- 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)
|
2021-09-03 14:50:50 +00:00
|
|
|
|
2021-08-31 10:52:11 +00:00
|
|
|
### 0.5.2
|
derive-eip712: initial implementation of eip712 derive macro (#481)
* derive-eip712: initial implementation of eip712 derive macro
This commit provides an initial implementation for a derive macro
to encode typed data according to EIP-712, https://eips.ethereum.org/EIPS/eip-712
Additionally, this commit introduces a new signer trait method:
async fn sign_typed_data<T: Eip712 + Send + Sync>(
&self,
payload: &T,
) -> Result<Signature, Self::Error>;
And implements the new method for each of the signers (wallet, ledger,
aws).
Additionally, these changes include using `WalletError` for the Wallet
signer error type
At the moment, derive does not recurse the primary type to find nested
Eip712 structs. This is something that is noted in the source and
currently responds with an error regarding custom types.
A subsequent PR should be opened once this issue becomes needed. For the
moment, the current implementation should satisfy non-nested, basic struct types.
* rename to ethers-derive-eip712; move to ethers-core
* refactor of derive-eip712 macro; use ParamType and EthAbiToken
* macro updates; add byte array checker for paramtype; use literal constant for domain type hash
* replace std::convert::Infallible with WalletError as Wallet signer error type
* update workspace members and dev dependencies for examples folder
* add example for eip712 and test against contract
* remove extraneous backward slash in '\x19\x01' prefix; example tests pass
* update unreleased change log
* remove print statements
* use parse_macro_input macro; remove dead code; handle nest struct not implemented error
* move eip712 example to solidity-contract tests folder; update cargo workspace dependencies
* allow optional EIP712Domain parameter when encoding eip712 struct and signing typed data
* add documentation for eip712 feature
* Update ethers-signers/src/ledger/mod.rs
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
* add error enum for Eip712Error; use sign_payload for ledger signer
* add EIP712WithDomain type for providing a wrapper around custom setting of the domain
* make LedgerWallet sign_payload public
* use optional feature gated dependencies for eip712; add default method for encode_eip712
* add default domain_separator method, pre-compute separator hash
* move derive-eip712 deps to dev deps
* remove invalid sign payload parameter, add await on async method
* remove deprecated comment
* debugging 'bad key handle' error for ledger signer
try using 'sign_message'
* await sign digest for aws signer
* remove extra space, fix fmt warning
* fix test, fmt errors
* use gt 0.6.0 pragma compiler version
* enable ABIEncoderV2 for solidity test contract
* chore: make test constructor public
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-08 15:22:51 +00:00
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
- Correctly RLP Encode transactions as received from the mempool
|
|
|
|
([#415](https://github.com/gakonst/ethers-rs/pull/415))
|
2021-08-31 10:52:11 +00:00
|
|
|
|
|
|
|
## ethers-providers
|
|
|
|
|
2022-03-13 11:58:29 +00:00
|
|
|
### Unreleased
|
|
|
|
|
|
|
|
- Add support for basic and bearer authentication in http and non-wasm websockets.
|
|
|
|
[829](https://github.com/gakonst/ethers-rs/pull/829)
|
|
|
|
- Export `ethers_providers::IpcError` and `ethers_providers::QuorumError`
|
|
|
|
[1012](https://github.com/gakonst/ethers-rs/pull/1012)
|
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
### 0.6.0
|
|
|
|
|
|
|
|
- re-export error types for `Http` and `Ws` providers in
|
|
|
|
[#570](https://github.com/gakonst/ethers-rs/pull/570)
|
|
|
|
- add a method on the `Middleware` to broadcast a tx with a series of escalating
|
|
|
|
gas prices via [#566](https://github.com/gakonst/ethers-rs/pull/566)
|
|
|
|
- Remove unnecessary `Serialize` constraint to `R` (the Response type) in the
|
|
|
|
`request` method of `JsonRpcClient`.
|
|
|
|
- Fix `http Provider` data race when generating new request `id`s.
|
|
|
|
- Add support for `net_version` RPC method.
|
|
|
|
[595](https://github.com/gakonst/ethers-rs/pull/595)
|
2021-12-03 17:11:09 +00:00
|
|
|
- Add support for `evm_snapshot` and `evm_revert` dev RPC methods.
|
|
|
|
[640](https://github.com/gakonst/ethers-rs/pull/640)
|
2021-11-23 19:27:46 +00:00
|
|
|
|
2021-09-27 10:20:10 +00:00
|
|
|
### 0.5.3
|
|
|
|
|
derive-eip712: initial implementation of eip712 derive macro (#481)
* derive-eip712: initial implementation of eip712 derive macro
This commit provides an initial implementation for a derive macro
to encode typed data according to EIP-712, https://eips.ethereum.org/EIPS/eip-712
Additionally, this commit introduces a new signer trait method:
async fn sign_typed_data<T: Eip712 + Send + Sync>(
&self,
payload: &T,
) -> Result<Signature, Self::Error>;
And implements the new method for each of the signers (wallet, ledger,
aws).
Additionally, these changes include using `WalletError` for the Wallet
signer error type
At the moment, derive does not recurse the primary type to find nested
Eip712 structs. This is something that is noted in the source and
currently responds with an error regarding custom types.
A subsequent PR should be opened once this issue becomes needed. For the
moment, the current implementation should satisfy non-nested, basic struct types.
* rename to ethers-derive-eip712; move to ethers-core
* refactor of derive-eip712 macro; use ParamType and EthAbiToken
* macro updates; add byte array checker for paramtype; use literal constant for domain type hash
* replace std::convert::Infallible with WalletError as Wallet signer error type
* update workspace members and dev dependencies for examples folder
* add example for eip712 and test against contract
* remove extraneous backward slash in '\x19\x01' prefix; example tests pass
* update unreleased change log
* remove print statements
* use parse_macro_input macro; remove dead code; handle nest struct not implemented error
* move eip712 example to solidity-contract tests folder; update cargo workspace dependencies
* allow optional EIP712Domain parameter when encoding eip712 struct and signing typed data
* add documentation for eip712 feature
* Update ethers-signers/src/ledger/mod.rs
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
* add error enum for Eip712Error; use sign_payload for ledger signer
* add EIP712WithDomain type for providing a wrapper around custom setting of the domain
* make LedgerWallet sign_payload public
* use optional feature gated dependencies for eip712; add default method for encode_eip712
* add default domain_separator method, pre-compute separator hash
* move derive-eip712 deps to dev deps
* remove invalid sign payload parameter, add await on async method
* remove deprecated comment
* debugging 'bad key handle' error for ledger signer
try using 'sign_message'
* await sign digest for aws signer
* remove extra space, fix fmt warning
* fix test, fmt errors
* use gt 0.6.0 pragma compiler version
* enable ABIEncoderV2 for solidity test contract
* chore: make test constructor public
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-08 15:22:51 +00:00
|
|
|
- Expose `ens` module [#435](https://github.com/gakonst/ethers-rs/pull/435)
|
|
|
|
- Add `eth_getProof` [#459](https://github.com/gakonst/ethers-rs/pull/459)
|
2021-09-20 21:08:43 +00:00
|
|
|
|
2021-08-31 10:52:11 +00:00
|
|
|
### 0.5.2
|
derive-eip712: initial implementation of eip712 derive macro (#481)
* derive-eip712: initial implementation of eip712 derive macro
This commit provides an initial implementation for a derive macro
to encode typed data according to EIP-712, https://eips.ethereum.org/EIPS/eip-712
Additionally, this commit introduces a new signer trait method:
async fn sign_typed_data<T: Eip712 + Send + Sync>(
&self,
payload: &T,
) -> Result<Signature, Self::Error>;
And implements the new method for each of the signers (wallet, ledger,
aws).
Additionally, these changes include using `WalletError` for the Wallet
signer error type
At the moment, derive does not recurse the primary type to find nested
Eip712 structs. This is something that is noted in the source and
currently responds with an error regarding custom types.
A subsequent PR should be opened once this issue becomes needed. For the
moment, the current implementation should satisfy non-nested, basic struct types.
* rename to ethers-derive-eip712; move to ethers-core
* refactor of derive-eip712 macro; use ParamType and EthAbiToken
* macro updates; add byte array checker for paramtype; use literal constant for domain type hash
* replace std::convert::Infallible with WalletError as Wallet signer error type
* update workspace members and dev dependencies for examples folder
* add example for eip712 and test against contract
* remove extraneous backward slash in '\x19\x01' prefix; example tests pass
* update unreleased change log
* remove print statements
* use parse_macro_input macro; remove dead code; handle nest struct not implemented error
* move eip712 example to solidity-contract tests folder; update cargo workspace dependencies
* allow optional EIP712Domain parameter when encoding eip712 struct and signing typed data
* add documentation for eip712 feature
* Update ethers-signers/src/ledger/mod.rs
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
* add error enum for Eip712Error; use sign_payload for ledger signer
* add EIP712WithDomain type for providing a wrapper around custom setting of the domain
* make LedgerWallet sign_payload public
* use optional feature gated dependencies for eip712; add default method for encode_eip712
* add default domain_separator method, pre-compute separator hash
* move derive-eip712 deps to dev deps
* remove invalid sign payload parameter, add await on async method
* remove deprecated comment
* debugging 'bad key handle' error for ledger signer
try using 'sign_message'
* await sign digest for aws signer
* remove extra space, fix fmt warning
* fix test, fmt errors
* use gt 0.6.0 pragma compiler version
* enable ABIEncoderV2 for solidity test contract
* chore: make test constructor public
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-08 15:22:51 +00:00
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
- Set resolved ENS name during gas estimation
|
|
|
|
([1e5a9e](https://github.com/gakonst/ethers-rs/commit/1e5a9efb3c678eecd43d5c341b4932da35445831))
|
2021-08-31 10:52:11 +00:00
|
|
|
|
|
|
|
## ethers-signers
|
|
|
|
|
|
|
|
### Unreleased
|
|
|
|
|
2022-02-14 10:08:33 +00:00
|
|
|
- `eth-keystore-rs` crate updated. Allow an optional name for the to-be-generated
|
|
|
|
keystore file [#910](https://github.com/gakonst/ethers-rs/pull/910)
|
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
### 0.6.0
|
|
|
|
|
|
|
|
- `LocalWallet::new_keystore` now returns a tuple `(LocalWallet, String)`
|
|
|
|
instead of `LocalWallet`, where the string represents the UUID of the newly
|
|
|
|
created encrypted JSON keystore. The JSON keystore is stored as a file
|
|
|
|
`/dir/uuid`. The issue [#557](https://github.com/gakonst/ethers-rs/issues/557)
|
|
|
|
is addressed [#559](https://github.com/gakonst/ethers-rs/pull/559)
|
|
|
|
|
2021-08-31 10:52:11 +00:00
|
|
|
## ethers-contract
|
|
|
|
|
2021-11-29 14:31:39 +00:00
|
|
|
### Unreleased
|
|
|
|
|
2021-12-23 19:23:55 +00:00
|
|
|
- Add `EventStream::select` to combine streams with different event types
|
|
|
|
[#725](https://github.com/gakonst/ethers-rs/pull/725)
|
2021-12-09 23:00:59 +00:00
|
|
|
- Substitute output tuples with rust struct types for function calls
|
|
|
|
[#664](https://github.com/gakonst/ethers-rs/pull/664)
|
2021-12-04 04:19:00 +00:00
|
|
|
- Add AbiType implementation during EthAbiType expansion
|
|
|
|
[#647](https://github.com/gakonst/ethers-rs/pull/647)
|
2021-11-29 14:31:39 +00:00
|
|
|
- fix Etherscan conditional HTTP support
|
|
|
|
[#632](https://github.com/gakonst/ethers-rs/pull/632)
|
|
|
|
- use `CARGO_MANIFEST_DIR` as root for relative paths in abigen
|
|
|
|
[#631](https://github.com/gakonst/ethers-rs/pull/631)
|
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
### 0.6.0
|
|
|
|
|
|
|
|
- Provide a way to opt out of networking support in abigen proc macro with
|
|
|
|
`abigen-offline` feature [#580](https://github.com/gakonst/ethers-rs/pull/580)
|
|
|
|
- Add `.call()` method to `Deployer` for performing dry runs of contract
|
|
|
|
deployments. [#554](https://github.com/gakonst/ethers-rs/pull/554)
|
|
|
|
- Improve error message from failure in `ethers_contract_abigen::Source::parse`
|
|
|
|
[#552](https://github.com/gakonst/ethers-rs/pull/552)
|
|
|
|
- use enumerated aliases for overloaded functions
|
|
|
|
[#545](https://github.com/gakonst/ethers-rs/pull/545)
|
|
|
|
- add `EthCall` trait and derive macro which generates matching structs for
|
|
|
|
contract calls [#517](https://github.com/gakonst/ethers-rs/pull/517)
|
|
|
|
- Use rust types as contract function inputs for human readable abi
|
|
|
|
[#482](https://github.com/gakonst/ethers-rs/pull/482)
|
|
|
|
- `abigen!` now generates `Display` for all events using the new `EthDisplay`
|
|
|
|
macro [#513](https://github.com/gakonst/ethers-rs/pull/513)
|
|
|
|
- `abigen!` now supports overloaded functions natively
|
|
|
|
[#501](https://github.com/gakonst/ethers-rs/pull/501)
|
|
|
|
- `abigen!` now supports multiple contracts
|
|
|
|
[#498](https://github.com/gakonst/ethers-rs/pull/498)
|
|
|
|
|
2021-08-31 10:52:11 +00:00
|
|
|
### Unreleased
|
2021-09-27 10:20:10 +00:00
|
|
|
|
|
|
|
### 0.5.3
|
derive-eip712: initial implementation of eip712 derive macro (#481)
* derive-eip712: initial implementation of eip712 derive macro
This commit provides an initial implementation for a derive macro
to encode typed data according to EIP-712, https://eips.ethereum.org/EIPS/eip-712
Additionally, this commit introduces a new signer trait method:
async fn sign_typed_data<T: Eip712 + Send + Sync>(
&self,
payload: &T,
) -> Result<Signature, Self::Error>;
And implements the new method for each of the signers (wallet, ledger,
aws).
Additionally, these changes include using `WalletError` for the Wallet
signer error type
At the moment, derive does not recurse the primary type to find nested
Eip712 structs. This is something that is noted in the source and
currently responds with an error regarding custom types.
A subsequent PR should be opened once this issue becomes needed. For the
moment, the current implementation should satisfy non-nested, basic struct types.
* rename to ethers-derive-eip712; move to ethers-core
* refactor of derive-eip712 macro; use ParamType and EthAbiToken
* macro updates; add byte array checker for paramtype; use literal constant for domain type hash
* replace std::convert::Infallible with WalletError as Wallet signer error type
* update workspace members and dev dependencies for examples folder
* add example for eip712 and test against contract
* remove extraneous backward slash in '\x19\x01' prefix; example tests pass
* update unreleased change log
* remove print statements
* use parse_macro_input macro; remove dead code; handle nest struct not implemented error
* move eip712 example to solidity-contract tests folder; update cargo workspace dependencies
* allow optional EIP712Domain parameter when encoding eip712 struct and signing typed data
* add documentation for eip712 feature
* Update ethers-signers/src/ledger/mod.rs
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
* add error enum for Eip712Error; use sign_payload for ledger signer
* add EIP712WithDomain type for providing a wrapper around custom setting of the domain
* make LedgerWallet sign_payload public
* use optional feature gated dependencies for eip712; add default method for encode_eip712
* add default domain_separator method, pre-compute separator hash
* move derive-eip712 deps to dev deps
* remove invalid sign payload parameter, add await on async method
* remove deprecated comment
* debugging 'bad key handle' error for ledger signer
try using 'sign_message'
* await sign digest for aws signer
* remove extra space, fix fmt warning
* fix test, fmt errors
* use gt 0.6.0 pragma compiler version
* enable ABIEncoderV2 for solidity test contract
* chore: make test constructor public
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-08 15:22:51 +00:00
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
- (De)Tokenize structs and events with only a single field as `Token:Tuple`
|
|
|
|
([#417](https://github.com/gakonst/ethers-rs/pull/417))
|
2021-08-31 10:52:11 +00:00
|
|
|
|
|
|
|
## ethers-middleware
|
|
|
|
|
|
|
|
### Unreleased
|
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
### 0.6.0
|
|
|
|
|
|
|
|
- add the missing constructor for `Timelag` middleware via
|
|
|
|
[#568](https://github.com/gakonst/ethers-rs/pull/568)
|
|
|
|
- Removes GasNow as a gas price oracle
|
|
|
|
[#508](https://github.com/gakonst/ethers-rs/pull/508)
|
2022-01-31 19:04:26 +00:00
|
|
|
- add initialize_nonce public function to initialize NonceMiddleManager
|
2021-10-15 11:05:54 +00:00
|
|
|
|
2021-09-27 10:20:10 +00:00
|
|
|
### 0.5.3
|
|
|
|
|
2021-11-23 19:27:46 +00:00
|
|
|
- Added Time Lagged middleware
|
|
|
|
[#457](https://github.com/gakonst/ethers-rs/pull/457)
|