lotus/build
Fridrik Asmundsson f358160cd5 Add EIP-1898 support needed for The Graph compatibility
Fixes: #10814

This PR updates the following RPC methods according to EIP-1898
specs.

The following RPC methods are affected:

- eth_getBalance
- eth_getStorageAt
- eth_getTransactionCount
- eth_getCode
- eth_call

Note that eth_getBlockByNumber was not included in this list in
the spec although it seems it should be affected also?

Currently these methods all accept a blkParam string which can be
one of "latest", "earliest", "pending", or a block number (decimal
or hex). The spec enables caller to additionally specify a json
hash which can include the following fields:

- blockNumber EthUint64: A block number (decimal or hex) which is
  similar to the original use of the blkParam string
- blockHash EthHash: The block hash
- requireCanonical bool) If true we should make sure the block is
  in the canonical chain

Since the blkParam needs to support both being a number/string and
a json hash then this to properly work we need to introduce a new
struct with pointer fields to check if they exist. This is done
in the EthBlockParamByNumberOrHash struct which first tries to
unmarshal as a json hash (according to eip-1898) and then fallback
to unmarshal as string/number.
2023-06-20 09:38:00 +00:00
..
actors chore: deps: update to actors v11.0.0 (#10718) 2023-04-21 12:08:31 -04:00
bootstrap chore: build: Merge/v22 into 21 for 23 (#10702) 2023-04-19 18:40:18 -04:00
genesis chore: build: Merge/v22 into 21 for 23 (#10702) 2023-04-19 18:40:18 -04:00
openrpc Add EIP-1898 support needed for The Graph compatibility 2023-06-20 09:38:00 +00:00
proof-params build: add empty sector update params 2022-02-08 10:41:18 -05:00
bootstrap.go Don't use go-libp2p-core 2022-08-25 14:20:41 -04:00
builtin_actors_gen.go chore: deps: update to actors v11.0.0 (#10718) 2023-04-21 12:08:31 -04:00
builtin_actors_test.go test: build: ignore git tags in embedded metadata 2023-02-08 11:16:28 -05:00
builtin_actors.go add bundle git tag from pack.sh into builtin_actors_gen 2023-02-07 02:23:23 +00:00
clock.go first pass, ready for review 2020-08-03 12:20:04 -03:00
drand.go fix: build: drop drand incentinet servers 2023-03-17 14:19:47 -04:00
flags.go provide an option to disable loading of built-in assets. 2020-06-22 19:42:04 +01:00
forks.go squash forks and use correct amt library everywhere 2020-02-04 18:26:42 -08:00
genesis.go use go:embed 2021-06-02 12:16:09 +02:00
isnearupgrade.go Add the missing file 2020-12-19 22:10:45 +01:00
limits.go alerting: Address review 2021-08-26 16:09:18 +02:00
openrpc_test.go fix make gen 2022-08-29 16:25:30 +02:00
openrpc.go feat: gateway: OpenRPC support 2022-05-27 17:03:56 +02:00
panic_reporter.go fix: undo hasty changes 2021-09-28 11:30:35 -04:00
parameters.go build: Use go embed for srs-inner-product.json 2021-06-02 15:12:26 +02:00
params_2k.go Revert "Merge pull request #9858 from adlrocha/adlrocha/consistent-bcast" 2023-04-27 12:25:30 -07:00
params_butterfly.go Revert "Merge pull request #9858 from adlrocha/adlrocha/consistent-bcast" 2023-04-27 12:25:30 -07:00
params_calibnet.go Revert "Merge pull request #9858 from adlrocha/adlrocha/consistent-bcast" 2023-04-27 12:25:30 -07:00
params_debug.go feat: expose ChainGetPath on the gateway 2021-08-30 16:43:21 -07:00
params_interop.go update interop 2023-05-29 16:46:02 -04:00
params_mainnet.go Revert "Merge pull request #9858 from adlrocha/adlrocha/consistent-bcast" 2023-04-27 12:25:30 -07:00
params_shared_funcs.go Don't use go-libp2p-core 2022-08-25 14:20:41 -04:00
params_shared_vals.go feat: itests should run on latest network version 2023-04-23 13:59:14 -04:00
params_testground.go Merge branch 'releases' into asr/merge-release-into-master 2023-04-23 14:58:50 -04:00
testing_flags.go sync tests passing, still no vm integration 2019-11-22 10:41:09 -06:00
tools.go feat: expose ChainGetPath on the gateway 2021-08-30 16:43:21 -07:00
version.go update build version on master to 1.23.2-dev 2023-05-03 17:01:13 -04:00