Jeffrey Quesnelle
35748d0189
fix(core/Transaction): remove debug print ( #1067 )
2022-03-19 23:58:08 -07:00
Matthias Seitz
916e9a7334
chore(clippy): add some deny lints ( #1064 )
...
* feat: add deny lints
* trim ethers core
* trim ethers eip712
* deny ethers contract derive
* deny ethers contract abigen
* deny ethers contract
* deny ethers providers
* chore: add denies and fix unused deps
* doc: fix links
* fix: wasm build
* doc: fix links
* doc: fix links
* doc: fix inline doc links
* docs: fix intra doc links
2022-03-19 10:05:39 -07:00
Meet Mangukiya
cde52c7c20
fix(core/TypedTransaction): eip1559 gas price should be max_fee_per_gas ( #1062 )
...
* fix(core/TypedTransaction): eip1559 gas price should be max_fee_per_gas
* fix tests
* tests(nonce_manager): reduce flakiness
2022-03-19 09:41:03 -07:00
Matthias Seitz
b6b5b09f4a
feat(abigen): add abi object deserializer and generate deploy function ( #1030 )
...
* feat(abigen): add abi object deserializer
* chore: rustfmt
* refactor: use enum type for deser abi
* refactor: use enum types for deser
* chore: rustfmt
* feat: add bytecode field
* feat: generate bytecode static
* feat: generate deployment function
* refactor: deploy function
* feat: add contract deployer type
* feat: make 0x prefix optional
* feat: add deploy function
* feat: add deploy example
* chore: update CHANGELOG
* chore(clippy): make clippy happy
2022-03-18 21:23:33 -07:00
Matthias Seitz
dd4893a752
feat(codec): add hex encode and decode functions ( #1059 )
2022-03-17 22:08:50 -07:00
Matthias Seitz
3d4feccabf
fix(core): check against ethers internal crate names ( #1060 )
...
* fix(core): check against ethers internal crate names
* fix: add import back
2022-03-17 15:14:53 -07:00
Matthias Seitz
2af28be283
fix(core): more sophisticated crate detection ( #1056 )
...
* fix(core): more sophisticated crate detection
* fix: remove RA hack
2022-03-17 12:49:38 -07:00
Meet Mangukiya
42ead6252d
feat(ethers-core/block): add gas_target and next_block_base_fee fns a… ( #1047 )
...
* feat(ethers-core/block): add gas_target and next_block_base_fee fns according to EIP-1559
* fix: feature flag gas_target, and next_block_base_fee to !celo, address review comments
* fix: in decreasing base fee case max(delta, 1) is not used
Refer 599ea45b9e/EIPS/eip-1559.md
?plain=1#L193
2022-03-17 03:44:28 -07:00
c r
db331eeeb3
utterly nitpicking but i was annoyed ( #1038 )
2022-03-16 11:15:49 +02:00
Meet Mangukiya
88262de9ee
feat(ethers-core/Bytes): impl FromStr ( #991 )
2022-03-05 20:14:11 +02:00
Meet Mangukiya
4fd9c7800e
feat(ethers-core/Chain): implement Default trait ( #976 )
2022-02-28 22:58:04 +02:00
Georgios Konstantopoulos
e0f5fe5325
docs(core): complete unfinished sentence in block comment
...
fixes #961
2022-02-28 11:44:34 +02:00
Matthias Seitz
45a37faa3d
fix(abigen): handle lossy ethabi generated abi structs ( #950 )
...
* fix(abigen): handle lossy ethabi generated abi structs
* chore: rustfmt
2022-02-22 20:26:21 +02:00
Alexandre Bazeaud
901d0c6e00
Add missing chains into parse method ( #941 )
...
* Add missing chains into parse method
* Update changelog
2022-02-21 18:01:19 +01:00
Tomas Tauber
d5a1570fa2
feat(chain): add Cronos and Cronos testnet ( #926 )
2022-02-18 16:04:11 +02:00
Matthias Seitz
4de4a676f0
chore: cargo --fix ( #921 )
2022-02-17 16:53:46 +02:00
Georgios Konstantopoulos
f97a8ca541
fix(abigen): do not panic when run on non-cargo projects ( #918 )
...
* fix(abigen): do not panic when run on non-cargo projects
* chore: bump solidity test to 0.8.12
2022-02-16 17:46:25 +02:00
Sonny Scroggin
859af7e819
Remove `limit` on `Filter` ( #917 )
2022-02-16 17:15:55 +02:00
Georgios Konstantopoulos
d28e6959db
fix(core): correctly deserialize eip1186 proof responses
2022-02-12 18:58:58 +02:00
Meet Mangukiya
1f0eb725a7
feat(ethers-core/Chain): make to_string and from_str inverse functions ( #903 )
2022-02-12 17:41:18 +02:00
Tarrence van As
d4eb78730a
fix(types/proof): add address field ( #899 )
2022-02-12 00:49:46 +02:00
Alexis Robert
b07b302410
Fixes a parsing issue of EIP712 chain_id (chain_id = 80001 parsed as chain_id = 0x80001) ( #892 )
...
* Parsing U256 from base10_parse::<u64>() instead of directly to U256
This fixes a bug for chain_ids that are > 10, base10_parse::<U256>() was
somehow parsing into hex.
When using the derive macro, chain_id = 10 was parsed as chain_id = 0x10 = 16,
causing an issue for some chains like Polygon.
* chore: fmt
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-02-10 20:03:46 +02:00
Dan Cline
ce0396ea18
fix(core): prevent chain_id from serializing for requests ( #879 )
...
* fix(core): prevent chain_id from serializing
* add default chainid for deserialization
2022-02-08 23:41:44 +02:00
0xTomoyo
75fbec0706
feat(chain): add arbitrum support ( #869 )
...
* feat: add arbitrum chainid & block explorer
* chore: update changelog
* feat: add arbitrum to is_legacy
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-02-05 16:36:21 +02:00
Matthias Seitz
8c07861b09
feat(codec): impl codec for Bytes ( #856 )
2022-02-02 13:57:39 +02:00
wolflo
dc1565c014
fix(core): adjust Ganache for new cli output ( #851 )
2022-02-01 12:59:54 +02:00
Dan Cline
01544ec4b7
Implement RLP decoding for transactions ( #805 )
...
* Implement RLP decoding for transactions
* set chain_id in fill_transaction
2022-01-30 21:21:16 +02:00
Options Eskimo
44499ae008
feat(chain): add BSC networks to the is_legacy helper ( #843 )
...
also fix formatting
2022-01-29 21:36:22 +02:00
juniorbeef
97744b87a6
core: fix overflow and panic in priority fee estimation ( #839 )
...
The U256 priority fees were being coerced into u32, which was not big
enough for actual values. The overflow was happening but not checked.
This led to a possible divide-by-zero panic in this code as well.
This change does the math as I256 -- overkill, but it works.
2022-01-29 14:54:38 +02:00
Tarrence van As
c22dd8eab4
feat(types/chain): is_legacy helper ( #835 )
...
moving this into ethers-rs from foundry so it can be more easily use elsewhere
2022-01-27 20:33:01 +02:00
Options Eskimo
f434e0f57f
feat(chain): add BSC and BSC testnet ( #831 )
...
* feat(chain): add BSC and BSC testnet
* docs(changelog): add note about new BSC known chains
2022-01-27 16:50:11 +02:00
Meet Mangukiya
91ff71ec62
Fantom chain ( #806 )
...
* feat(core): add fantom and fantom-testnet chains
* feat(etherscan): add fantom chains support
* chore: lint
2022-01-18 13:00:27 +02:00
Matthias Seitz
77dcccb7ba
fix(abi): check for uint8 params in human readable types ( #789 )
...
* fix(abi): check for uint8 params in human readable types
* Update ethers-core/src/abi/human_readable.rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* fix mapping detection
* rustfmt
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-01-13 15:33:31 +02:00
Matthias Seitz
d4f8984f59
chore(deps): bump ethabi master ( #787 )
2022-01-13 02:58:11 +02:00
Georgios Konstantopoulos
19671e51de
chore: fix lints / solc test
2022-01-11 12:13:09 +02:00
Tarrence van As
092bd96a39
feat(chain): enum values + TryFrom<u64> ( #782 )
...
* feat(chain): map Chain enum to values
* feat(chain): support TryFrom<u64>
* chore: use parsechain error for the try_from impl
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-01-11 11:31:09 +02:00
Rohit Narurkar
2d05ea6234
ethers-addressbook crate ( #769 )
...
* feat: macro and token (simplest form)
* fix: better structure to fetch token by string symbol
* chore: add tokenlist to prelude
* fix: from current dir
* fix: dir refactoring
* fix: clippy
* chore: refactor tokenlist to addressbook
2022-01-07 12:12:21 +02:00
odyslam.eth
96ef787230
feat: add FromStr impl for Chain ( #756 )
...
* feat: add FromStr impl for Chain
* fix(core): return error if chain not found
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-01-04 00:51:01 +02:00
bayu ✦
3f095f415f
[draft] Add Optimism & OptimismKovan chains ( #737 )
...
* core: Add Optimism & OptimismKovan chains
* etherscan: Add ETHERSCAN_API_KEY to optimism network
2021-12-25 18:19:50 +02:00
Georgios Konstantopoulos
568d9c8697
Update Cryptography crates ( #617 )
...
* fix(core): use new k256 for pubkey calculation
* fix(core): deserialize moonbeam keys with new fn
* chore(signers): update crypto crates
* chore: update cargo lock
* ci: remove libudev req
* chore: cargo fmt
* chore: fix outstanding yubihsm errors
2021-12-21 00:41:57 +02:00
Matthias Seitz
3c164bc9bf
feat(abigen): add EthAbiCodec proc macro ( #704 )
...
* feat(abigen): add EthAbiCodec proc macro
* rustfmt
* fix: tuple codec
2021-12-19 16:40:17 +02:00
Matthias Seitz
e24117a1e1
chore(clippy): make clippy happy ( #705 )
2021-12-19 06:28:38 +02:00
x3ccd4828
6cecc4824a
fix: parse_units was generating an error on some values because of extra decimal places added round to prevent error ( #701 )
2021-12-17 11:22:37 +02:00
Georgios Konstantopoulos
4d647453e3
feat: new ethabi for error types ( #700 )
2021-12-17 00:24:10 +02:00
Georgios Konstantopoulos
f037fc0243
fix: do not panic on invalid units conversion ( #691 )
...
* fix: do not panic on invalid units conversion
This is done by switching the From implementations to TryFrom and
making the conversion functions return a thiserror Error instead of
the previous Boxed error object
* chore: update changelog
2021-12-15 03:32:29 +01:00
James Prestwich
47e9e7d3c7
refactor: move FeeHistory to core types ( #688 )
2021-12-14 00:49:49 +02:00
x3ccd4828
0e133e4a87
fix: format_units return was truncating the decimal places if there were leading zeros ( #675 )
2021-12-11 00:17:21 -07:00
Matthias Seitz
2a3fcbbb40
feat(abigen): use AbiType when parsing Function abi signature fails at compile time ( #647 )
...
* refactor: improved from token impl
* feat: add AbiType support
* feat: no need for expect
* feat: add missing abiarraytype impl
* test: add struct derive test
* chore: rustfmt
* chore: update changelog
* chore: rustfmt
2021-12-04 06:19:00 +02:00
James Prestwich
0f6d3688c2
feature: impl Default for eip2718::TypedTransaction ( #646 )
2021-12-03 22:03:49 +02:00
Matthias Seitz
7da5b64cfd
feat: add moonbeam support ( #644 )
...
* feat: add moonbeam support
* typos
2021-12-03 10:05:38 -08:00