Dan Cline
80d887b67e
docs: update MRSV to 1.64 ( #1926 )
...
* IntoFuture was implemented in #1826 , which means the MSRV should now
be 1.64
2022-12-05 22:04:48 -08:00
MouseLess.eth
913f15dc84
fix: remove `OpCode` enum and update `VMOperation`'s `op` field type ( #1904 )
...
* remove OpCode enum and update VMOperation's op field
* restore opcodes + update 0x20 to keccak256
* enum to deserialize opcodes into known or unknown
* Update ethers-core/src/types/trace/mod.rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* fix typo: ExecutedInstruction
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-12-02 12:51:16 -08:00
dependabot[bot]
4e98c4a5f0
chore(deps): bump syn from 1.0.104 to 1.0.105 ( #1918 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.104...1.0.105 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-02 12:12:50 -08:00
odysseas.eth
3bf9025d2f
feat: impl Serialize for Chain ( #1917 )
...
* feat: impl Serialize for Chain
* fix: add deps
2022-12-02 12:12:34 -08:00
Dan Cline
5af2800f15
fix(core): always set p2p port in non-dev mode ( #1919 )
...
* if geth is in non-dev mode, it has been explicitly set by either
disabling discovery or setting a p2p port. To prevent geth from
crashing if another process is using the default p2p port, always set
the p2p port if geth is in non-dev mode.
2022-12-02 12:11:31 -08:00
Dan Cline
4b685621ed
feat(providers): add a subset of admin namespace ( #1880 )
...
* tell Geth to expose the admin namespace
* wip: add admin namespace support
* add networking and peer related structs
* add rest of chain config fields
* add datadir to geth
* fix data dir ref
* add dev flag to geth
* set dev only if block_time is not set
* put mutually exclusive options in an enum
* make block_time use the devmode enum
* add p2p port to geth
* add basic impls for admin endpoints
* move from_int_or_hex to ethers-core utils
* fix nodeinfo protocol field
* the type is better represented by a struct which can have either eth
or snap
* add chain id and discovery toggle for Geth
* remove PeerEvent
* should re-add when peer event endpoints are implemented
* simplify serde options for admin responses
* change signature for peer modification apis
* these admin apis accept an enode, which _may_ be an enr, but could
also be a legacy enode "v4" url.
* add note on where `ChainConfig` fields come from
* add note on PeerInfo about the source of fields
* add admin namespace support to CHANGELOG
* update pr number in changelog
* cargo fmt
* move chainconfig to genesis in utils
* accept genesis file in geth
* add genesis writing to geth spawn
* finally get geth nodes to connect
* import io::Read in provider tests
* fix PeerInfo and use enode id for provider test
* make clippy happy
* improve documentation for genesis module
* remove not(wasm) attributes on genesis module
* remove debugging printlns
* remove io::Read from provider tests
* add failing post merge test case
* add full mainnet nodeinfo for testing
* support deserializing json bignums to U256
* the serde_json arbitrary_precision feature is necessary so the
serde_json::Number variant of `IntOrHexOrBigNum` can be converted
into a string and fed into U256::from_dec_string
* fix from_int_or_hex_opt doc string
* remove third variant from IntOrHex
* unnecessary since serde_json::Number handles smaller ints as well
* add comments for ids
* fix enode id type in admin_peers provider test
* fix admin typo in Cargo.toml
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* add method to wait on a gethinstance adding a peer
* fix dial loop and wait_to_add_peer doc comments
* update geth
* the build can be updated by changing the GETH_BUILD env var
* wait for geth to exit on drop
* remove unnecessary wait
* fix mid-handshake PeerInfo deserialization
* remove println
* make tests less flaky
* handle discovery with the rest of the non dev opts
* dump geth stderr to debug failing ci test
* add method which dumps the unread stderr of the geth instance into a
string
* remove call_raw debug println
* bug is due to authrpc endpoint being in use
* use unused port when authrpc port is not specified
* remove dump_stderr from GethInstance
* did not work properly anyways
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-30 13:22:44 -08:00
DaniPopes
866d30593a
feat(core): Chain impls and refactoring ( #1909 )
...
* sort
* derive Default
* use u64 for conversions and add impl
* one impl block and comments
2022-11-30 13:19:05 -08:00
MouseLess.eth
82f19e0789
fix: txpool_inspect unable to parse contract creations ( #1905 )
...
* Fixes #1899
* replace match with if let some() else
* fix error: number too large to fit in target type
* Apply suggestions from code review
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2022-11-29 13:18:18 -08:00
dependabot[bot]
4d5e032129
chore(deps): bump syn from 1.0.103 to 1.0.104 ( #1901 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.103...1.0.104 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 12:20:47 -08:00
Georgios Konstantopoulos
c627765871
(cargo-release) version 1.0.2
2022-11-27 12:27:56 -08:00
Georgios Konstantopoulos
1b495dd143
(cargo-release) version 1.0.2
2022-11-27 12:27:55 -08:00
DaniPopes
97eecaf03b
fix(core): format_units overflow ( #1894 )
...
* fix(core): format_units overflow
* fix: formatting
* remove dbg
* add comment and rerun ci
* tests
* fix test
* refactor: move magic nums to consts
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-27 12:27:27 -08:00
dependabot[bot]
c17c0c3c95
chore(deps): bump cargo_metadata from 0.15.1 to 0.15.2 ( #1878 )
...
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata ) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases )
- [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md )
- [Commits](https://github.com/oli-obk/cargo_metadata/compare/v0.15.1...v0.15.2 )
---
updated-dependencies:
- dependency-name: cargo_metadata
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 13:16:56 -08:00
dependabot[bot]
6b5f130ba2
chore(deps): bump bytes from 1.2.1 to 1.3.0 ( #1879 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/commits )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 13:15:45 -08:00
Matthias Seitz
f4b6178332
chore: add missing ParseUnit impls ( #1885 )
2022-11-22 13:08:23 -08:00
Dave Belvedere
95d6567adc
chore: bump trezor, fix clippy ( #1871 )
...
* chore: bump trezor, fix clippy
* update cargo lock
Co-authored-by: Dave Belvedere <dave@protonmail.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-20 12:38:41 -08:00
Georgios Konstantopoulos
f829bd6876
chore: bump open-fastrlp
2022-11-18 12:01:07 -08:00
dependabot[bot]
f5da30d23b
chore(deps): bump ethabi from 17.2.0 to 18.0.0 ( #1865 )
...
* chore(deps): bump ethabi from 17.2.0 to 18.0.0
Bumps [ethabi](https://github.com/rust-ethereum/ethabi ) from 17.2.0 to 18.0.0.
- [Release notes](https://github.com/rust-ethereum/ethabi/releases )
- [Changelog](https://github.com/rust-ethereum/ethabi/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-ethereum/ethabi/compare/v17.2.0...v18.0.0 )
---
updated-dependencies:
- dependency-name: ethabi
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: bump open-fastrlp
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-17 11:17:22 -08:00
Dave Belvedere
a0fb1bf196
I256 parse support ( #1863 )
...
* Added support for I256 in format_units. Added two complement support for I256.
* Add I256 support into parse_units
Co-authored-by: Dave Belvedere <dave@protonmail.com>
2022-11-16 16:03:07 -08:00
MouseLess.eth
936cecc3ad
Add `op` field to `VMOperation` to determine executed opcode ( #1858 )
...
* created opcode enum and added to VMOperation. Fixes #1857
* rebuild trace logs to include missing fields
* opcode descriptions for docs + changelog
* restore traces and indent trace
* opcode 0x20 should be SHA3
2022-11-15 11:36:52 -08:00
Dave Belvedere
5ae0a848c7
I256 asr doc ( #1860 )
...
* Update I256 documentation to call out diversions from standard numeric types on the right shift operator
* Update changelog
* Address review comment. Link changelog notes to PR
Co-authored-by: Dave Belvedere <dave@protonmail.com>
2022-11-15 11:33:54 -08:00
Matthias Seitz
cba6f071ae
chore(clippy): make clippy happy ( #1856 )
2022-11-13 07:49:27 -05:00
Dan Cline
17050afd04
fix(core): stop decoding gas twice for 2930 txs ( #1850 )
...
* fix(core): stop decoding gas twice for 2930 txs
* adds two tests from #1848
* remove debugging printlns
* replace call to dbg! with txhash assert
2022-11-10 12:21:32 -08:00
DaniPopes
64a70cfd57
fix: failing CI ( #1847 )
...
* fix gasprice
* fmt
* docs
* fix examples typo
* fix examples
* clippy
2022-11-09 08:09:03 -08:00
Dave Belvedere
5c9a048f73
Add Arithmetic Shift Left operation for I256. Minor update to the ASR tests to include coverage for a shift of 0, and move to 'I256::minus_one' over 'I256::from(-1i8)' syntax ( #1452 )
...
Co-authored-by: Dave Belvedere <dave@protonmail.com>
2022-11-08 16:10:53 -08:00
dependabot[bot]
7fac88a649
chore(deps): bump cargo_metadata from 0.15.0 to 0.15.1 ( #1806 )
...
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata ) from 0.15.0 to 0.15.1.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases )
- [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md )
- [Commits](https://github.com/oli-obk/cargo_metadata/compare/v0.15.0...v0.15.1 )
---
updated-dependencies:
- dependency-name: cargo_metadata
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 16:10:00 -08:00
jannikluhn
9969b12252
fix: transaction type in TxpoolContent ( #1844 )
...
TxpoolContent used a custom type for the transactions inside of it.
This type was missing some fields that the current JSON RPC API
provides. Now it uses the standard transaction type which is able to
hold all provided fields.
Fixes : #1843
Co-authored-by: Jannik Luhn <jannik.luhn@posteo.de>
2022-11-08 15:06:58 -08:00
Matthias Seitz
2418098d8c
feat: add TraceError enum ( #1814 )
2022-11-07 15:47:32 -08:00
dependabot[bot]
715cd5b0a6
chore(deps): bump once_cell from 1.15.0 to 1.16.0 ( #1817 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-07 15:45:36 -08:00
DaniPopes
fb88215a87
fix: rustdoc errors ( #1808 )
...
* fix: rustdoc warnings
* fix: partially re-run abigen for multicall_contract
* fix
* fix test
* fix: rustdoc nightly warnings
2022-11-07 15:43:23 -08:00
DaniPopes
debd6fec3d
chore: clippy ( #1812 )
...
* chore: clippy
* fmt
2022-11-07 15:43:11 -08:00
Matthias Seitz
1119976dc7
chore: rename xdai gnosis ( #1809 )
...
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-07 15:24:10 -08:00
dependabot[bot]
98f7f44f1a
chore(deps): bump rlp from 0.5.1 to 0.5.2 ( #1805 )
...
Bumps [rlp](https://github.com/paritytech/parity-common ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/paritytech/parity-common/releases )
- [Commits](https://github.com/paritytech/parity-common/compare/rlp-v0.5.1...rlp-v0.5.2 )
---
updated-dependencies:
- dependency-name: rlp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-07 15:21:14 -08:00
halo3mic
ba9aa7838b
Fixes : #1822 ( #1823 )
...
* Fixes : #1822
* Fixes: gakonst#1822 :: update1
* Fixes : #1822 :: Add ParseOverflow err & rm rust_decimals from ethers-core
* update changelog
2022-11-07 12:28:43 -08:00
halo3mic
9797e9a83b
Fixes : #1836 ( #1837 )
2022-11-07 12:25:57 -08:00
Alejandro Banzas
50c7ff1d8e
adding chiado support ( #1811 )
2022-10-31 09:01:34 -07:00
Georgios Konstantopoulos
87b10bdf24
Revert "chore: disable dev deps for release"
...
This reverts commit d8a1be6fb1
.
2022-10-25 11:12:50 -07:00
Georgios Konstantopoulos
d8a1be6fb1
chore: disable dev deps for release
2022-10-25 11:04:28 -07:00
Georgios Konstantopoulos
fc54d8f11e
(cargo-release) version 1.0.0
2022-10-25 11:03:00 -07:00
Georgios Konstantopoulos
f27078b317
(cargo-release) version 1.0.0
2022-10-25 11:02:59 -07:00
Georgios Konstantopoulos
79024ebbe9
(cargo-release) version 1.0.0
2022-10-25 11:02:59 -07:00
Georgios Konstantopoulos
3d9c3290d4
release: switch to apache fastrlp ( #1803 )
...
* release: switch to apache fastrlp
https://github.com/gakonst/open-fastrlp
* s/fastrlp/open_fastrlp
2022-10-23 11:44:48 -07:00
dependabot[bot]
727a7db286
chore(deps): bump syn from 1.0.102 to 1.0.103 ( #1799 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.102...1.0.103 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-23 11:13:29 -07:00
Matthias Seitz
a9dd53da81
fix(solc): emit empty node vec ( #1793 )
2022-10-17 10:27:42 -07:00
Salman Pathan
98cea53c38
add safe and finalized tag to BlockNumber ( #1792 )
...
* add safe and finalized tag to BlockNumber
* update test
2022-10-17 06:59:41 -07:00
dependabot[bot]
cbeb917507
chore(deps): bump proc-macro2 from 1.0.46 to 1.0.47 ( #1788 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.46...1.0.47 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 06:51:24 -07:00
Matthias Seitz
1b8d1e3d99
chore: reexport BigEndianHash ( #1789 )
2022-10-17 06:50:56 -07:00
Dan Cline
a07581489a
feat(core): re-export H128 ( #1786 )
...
* feat(core): re-export H128
* chore: cargo fmt
2022-10-14 19:53:38 -07:00
Matthias Seitz
676f039230
chore(clippy): make clippy happy ( #1778 )
2022-10-11 10:49:05 -07:00
Dan Cline
123e2def9d
Fix Transaction decoding ( #1773 )
...
* fix(core): accept both typed transaction formats
* fix equality sign for rlp type check
* remove printlns
* remove redundant transaction_type assignment
2022-10-08 22:39:05 -07:00