XinFinOrg / XDPoSChain

Customer centric, Hybrid & Interoperable XinFin Network
https://www.xinfin.org
GNU Lesser General Public License v3.0
50 stars 59 forks source link

TraceCall API #545

Closed wgr523 closed 1 month ago

wgr523 commented 1 month ago

Proposed changes

add TraceCall in debug API, i.e. debug_traceCall

add backend.StateAtBlock(), RPCGasCap

update gen_config.go by tool gencodec

update web3ext

Types of changes

What types of changes does your code introduce to XDC network? Put an in the boxes that apply

Impacted Components

Which part of the codebase this PR will touch base on,

Put an in the boxes that apply

Checklist

Put an in the boxes once you have confirmed below actions (or provide reasons on not doing so) that

Test plan

I already tested with a local xdc node. And we can also do the test on devnet/testnet. Just pick a deployed contract (e.g. XDCValidator) and call its function using debug_traceCall.