Commit graph

12413 commits

Author SHA1 Message Date
Daniel Liu
ebc036682e common/compiler, cmd/abigen: remove solc/vyper compiler integration (#24936) 2024-12-28 09:06:30 +08:00
Daniel Liu
d6d6906881 internal: add db operations to api (#24739) 2024-12-28 09:06:30 +08:00
zhiqiangxu
69ea5327b8 common/compiler: add extra include paths to solidity compiler (#24541)
This PR adds a ExtraAllowedPath field to Solidity and exposes two APIs: CompileSource and CompileFiles, which were hidden inside CompileSolidityString and CompileSolidity before.
2024-12-28 09:06:30 +08:00
lmittmann
49dc5e85e1 common/hexutil: improve performance of EncodeBig (#23780)
- use Text instead of fmt.Sprintf
- reduced allocs from 6 to 2
- improved speed
2024-12-28 09:06:30 +08:00
Alexander Yastrebov
4db72a0548 common: fixes format verb (#23495) 2024-12-28 09:06:30 +08:00
Paul-Armand Verhaegen
fb17f56852 common: rename unused function with typo (#23025)
This function is not used in the code base, so probably safe to do rename, or remove in its entirety, but I'm assuming the logic from the original creator still applies so rename probably better.
2024-12-28 09:06:30 +08:00
Daniel Liu
e2eb22dcac common/prque: make Prque wrap-around priority handling optional (#22495) 2024-12-28 09:06:30 +08:00
Daniel Liu
e52587df53 common: do not pass current time as param in priority funcs (#22183) 2024-12-28 09:06:30 +08:00
Daniel Liu
6f19ace5e2 common/mclock: remove dependency on github.com/aristanetworks/goarista (#22211) 2024-12-28 09:06:30 +08:00
Péter Szilágyi
d852f8cf88 common/prque: pull in tests and benchmarks from upstream (#22157) 2024-12-28 09:06:30 +08:00
Marius van der Wijden
f01e639f6f common/compiler: fix parsing of solc output with solidity v.0.8.0 (#22092)
Solidity 0.8.0 changes the way that output is marshalled. This patch allows to parse both
the legacy format used previously and the new format.

See also https://docs.soliditylang.org/en/breaking/080-breaking-changes.html#interface-changes
2024-12-28 09:06:30 +08:00
Daniel Liu
c2db0e42d7 common: improve printing of Hash and Address (#21834) 2024-12-28 09:06:30 +08:00
Daniel Liu
dd318fc563 common/hexutil: remove redundant conversion (#21903) 2024-12-28 09:06:30 +08:00
Daniel Liu
28739d7863 common: remove usage of deprecated function (#21610) 2024-12-28 09:06:30 +08:00
Daniel Liu
cf0c5c8cd2 common/prque: refactor LazyQueue (#21236) 2024-12-28 09:06:30 +08:00
Felix Lange
d3a943d0b3 common/math: use math/bits intrinsics for Safe* (#21316)
This is a resubmit of ledgerwatch/turbo-geth#556. The performance
benefit of this change is negligible, but it does remove a TODO.
2024-12-28 09:06:30 +08:00
Daniel Liu
30f835c6a4 accounts/abi: common/math: moved U256Bytes (#21020) 2024-12-28 09:06:30 +08:00
Daniel Liu
f5e90eecff common: improve test (#20354) 2024-12-28 09:06:30 +08:00
Daniel Liu
56e242b06c core/state: optimize some internals during encoding (#20038) 2024-12-28 09:06:30 +08:00
Daniel Liu
7f63a690ee common: unify hex prefix check code (#19937) 2024-12-28 09:06:30 +08:00
shiqinfeng1
94b69fdf1e common/compiler: support relative import paths (#17374 #19967) 2024-12-28 09:06:30 +08:00
David Chase
5a8110b292 common/bitutil: use result of TestBytes to prevent dead code elimination (#19846)
Gollvm has very aggressive dead code elimination that completely
removes one of these two benchmarks.  To prevent this, use the
result of the benchmark (a boolean), and to be "fair", make the
transformation to both benchmarks.

To be reliably assured of not removing the code, "use" means
assigning to an exported global.  Non-exported globals and
//go:noinline functions are possibly subject to this optimization.
2024-12-28 09:06:30 +08:00
Daniel Liu
057a7dd780 cmd/abigen: refactor command line interface (#19797) 2024-12-28 09:06:30 +08:00
Daniel Liu
d6957d9283 accounts/abi/bind: remove test case UseLibrary 2024-12-28 09:06:30 +08:00
Daniel Liu
993bc6963e accounts/abi/bind: link dependent libs in deploy (#19718) 2024-12-28 09:06:30 +08:00
Daniel Liu
7455b91800 accounts/abi/bind: accept function ptr parameter (#19755) 2024-12-28 09:06:30 +08:00
Daniel Liu
91570dce8a accounts/abi: fix mobile interface (#19180) 2024-12-28 09:06:30 +08:00
Daniel Liu
b711dc811d cmd/abigen: allow using abigen --pkg flag with standard input (#19207) 2024-12-28 09:06:30 +08:00
Daniel Liu
a747a9861d common: improve functions of StorageSize (#19244) 2024-12-28 09:06:30 +08:00
Daniel Liu
66921899e9 cmd/abigen: support Vyper (#19120) 2024-12-28 09:06:30 +08:00
Daniel Liu
cd1ff5d322 common: remove function Big() for type Address (#19210) 2024-12-28 09:06:30 +08:00
Daniel Liu
f19422e1c7 cmd/utils: relinquish GC cache to read cache in archive mode (#18991) 2024-12-28 09:06:30 +08:00
Javier Sagredo
2772e096b4 common/compiler: fixed testSource (#18978) 2024-12-28 09:06:30 +08:00
Daniel Liu
75c14d2cdb accounts/abi: fix case of generated java functions (#18372) 2024-12-28 09:06:30 +08:00
Daniel Liu
e58441b317 accounts/abi: change unpacking of abi fields w/ underscores (#16513) 2024-12-28 09:06:30 +08:00
Daniel Liu
c0f547ca78 cmd/utils: fix bug when checking for flag value conflicts (#17803) 2024-12-28 09:06:30 +08:00
Daniel Liu
7cd3e56d18 accounts/abi/bind: stop using goimports in the binding generator (#17768 #20311) 2024-12-28 09:06:30 +08:00
Daniel Liu
89c51c5e69 common: improve documentation comments (#16701) 2024-12-28 09:06:30 +08:00
Daniel Liu
43ad328487
Merge pull request #774 from gzliudan/rm_SaveData
all: remove empty function SaveData()
2024-12-28 09:05:43 +08:00
Daniel Liu
240757a1ce all: remove empty function SaveData() 2024-12-28 09:04:02 +08:00
Daniel Liu
efa2605f26 accounts/abi/bind/backends: fix wrong gas returned by EstimateGas 2024-12-28 09:02:48 +08:00
JukLee0ira
517f4a16a6 internal/ethapi: fix Call handle revert error 2024-12-28 09:02:48 +08:00
JukLee0ira
48d1f22fde all: simplify function TransitionDb (#20830) 2024-12-28 09:02:48 +08:00
Daniel Liu
69bca27fed
Merge pull request #776 from gzliudan/rm_unused_in_core
core: remove unused functions and variables
2024-12-26 15:02:30 +08:00
benjamin202410
0686b4428f
upgrade to golang 1.22 (#763)
Co-authored-by: liam.lai <liam.lai@us>
2024-12-25 22:59:24 -08:00
Daniel Liu
e2afaec8b0 core: remove unused variables in BlockChain struct 2024-12-25 17:25:51 +08:00
Daniel Liu
a5c48e77bd core: remove unused function writeHeader 2024-12-25 17:22:28 +08:00
Daniel Liu
6114a3a13b core: remove unused function reorgTxMatches 2024-12-25 17:17:25 +08:00
Daniel Liu
82ff8c19a0 all: remove uses of untyped golang-lru 2024-12-21 14:39:26 +08:00
JukLee0ira
7491a7ba74 all: improve EstimateGas API (#20830) 2024-12-21 14:35:44 +08:00