Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NV18: FEVM implementation #9617

Closed
wants to merge 288 commits into from
Closed
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
78dd7a2
fix gas estimation.
raulk Oct 22, 2022
dc5fc9d
fix eth_feeHistory.
raulk Oct 22, 2022
6337d59
fix: evm: use CREATE not CREATE2 for EVM contract deployment (#9553)
Stebalien Oct 26, 2022
ea54499
fix: allow deploying from f1/f3 accounts (#9554)
Stebalien Oct 26, 2022
b3b9da5
fix: avoid returning an error when getting embryo state (#9550)
Stebalien Oct 26, 2022
49da019
fix: allow EthCall.From to be nil (#9556)
Stebalien Oct 26, 2022
0bd5f1d
Eth JSON-RPC: eth_estimateGas: fix gas estimation by actually making …
raulk Oct 29, 2022
672744a
upgrade go-jsonrpc to v0.1.9.
raulk Nov 7, 2022
53c7d9c
fix:add UnmarshalJSON for EthNonce (#9589)
imxyb Nov 7, 2022
2e5de47
api: ethrpc: fix a potential panic when querying block info (#9593)
ychiaoli18 Nov 7, 2022
64798d0
go mod tidy
vyzo Nov 9, 2022
2b23372
fixup merge artifacts
vyzo Nov 9, 2022
deea679
make gen
vyzo Nov 9, 2022
448eca5
make docsgen-cli
vyzo Nov 9, 2022
6d7a33f
api: ethrpc: fix unit test
vyzo Nov 9, 2022
3008394
fix genesis SetupEAM
vyzo Nov 10, 2022
a2d6c8f
improve migration TODO comment
vyzo Nov 10, 2022
2588b45
fix gst builtin module refs
vyzo Nov 10, 2022
6e72910
fix account address resolution
vyzo Nov 10, 2022
6e149d5
lint
vyzo Nov 10, 2022
5949307
fix gateway instantation for the eth api
vyzo Nov 10, 2022
0ee9f9d
lint
vyzo Nov 10, 2022
c9c53c9
fix MinTimestap for null rounds
vyzo Nov 10, 2022
85df74f
Add EventsRoot field to message receipt
iand Nov 10, 2022
f660b8c
actor event ffi
iand Nov 10, 2022
4eb94b5
make gen
iand Nov 10, 2022
69210d0
Ethereum compatible actor event API
iand Nov 10, 2022
7383ecb
make gen
iand Nov 10, 2022
a9cfaa9
upgrade go-jsonrpc to v0.1.9.
raulk Nov 10, 2022
18f2a14
eth api: fix warts
vyzo Nov 11, 2022
54f311d
eth rlp: fix warts
vyzo Nov 11, 2022
30f4ad5
wallaby: start at nv18
vyzo Nov 11, 2022
9123628
revert newline mangling
vyzo Nov 11, 2022
f438b1c
store: fix error handling around tipset key blocks
vyzo Nov 11, 2022
0bde9e5
client: check address protocol, add TODO
vyzo Nov 11, 2022
f38b630
sigs: revert cosmetic change
vyzo Nov 11, 2022
4c76f65
eth api: remove bad todo link
vyzo Nov 11, 2022
245e570
embryo: simplify code
vyzo Nov 11, 2022
5a5936c
add comment about migration needing to create ETH address 0
vyzo Nov 11, 2022
1d8ebe9
fix error message when actor doesn't have predictable address
vyzo Nov 11, 2022
7664e06
fix tx check and test
vyzo Nov 11, 2022
9e6b343
make MessageReceipt#EventsRoot a pointer.
raulk Nov 11, 2022
17ea9f5
cbor gen.
raulk Nov 11, 2022
9c5d888
docs gen; also fixes lack of *cid.Cid examples elsewhere.
raulk Nov 11, 2022
4e7b8d5
Merge pull request #9624 from iand/feat/nv18-rcptevent
raulk Nov 11, 2022
fa1cbe6
update filecoin-ffi to 2e788b5.
raulk Nov 11, 2022
8a7367f
api: ethrpc: add missing fields (#9631)
ychiaoli18 Nov 12, 2022
91952f8
Fix eth types comments
iand Nov 14, 2022
a915c70
Merge branch 'feat/nv18-events' into feat/nv18-ethevents
raulk Nov 14, 2022
efdbea5
fix Receipt#EventsRoot is now *cid.Cid.
raulk Nov 14, 2022
4eccf30
Merge pull request #9623 from iand/feat/nv18-ethevents
raulk Nov 14, 2022
ae7847d
make gen.
raulk Nov 14, 2022
af39ec2
NV18: FEVM: Basic smoke test (#9635)
vyzo Nov 14, 2022
c75d0c4
feat: events: version the MessageReceipt structure. (#9636)
raulk Nov 15, 2022
6f51ec2
update builtin-actors v10 bundle to http://filecoin-project/builtin-a…
raulk Nov 15, 2022
5249a35
update ffi to filecoin-project/filecoin-ffi#332.
raulk Nov 15, 2022
476a933
fix Event schema + cbor-gen.
raulk Nov 15, 2022
7cc2c5c
fix types in Eth API.
raulk Nov 15, 2022
f434133
cli: evm/invoke-evm-actor: print events.
raulk Nov 15, 2022
846aea5
Merge branch 'feat/nv18-fevm' into feat/nv18-events
raulk Nov 15, 2022
40b8e95
fix {=>New}EthHashFromCid.
raulk Nov 15, 2022
30050a6
make gen.
raulk Nov 15, 2022
273ac51
Ethereum actor events API fixes (#9639)
iand Nov 15, 2022
28ec43c
Merge branch 'feat/nv18-events' into raulk/events-integrate-fvm
raulk Nov 15, 2022
43e2a2b
fix merge error.
raulk Nov 15, 2022
f22762d
create EVM utilities in itest framework.
raulk Nov 15, 2022
7e75954
create EVM utilities in itest framework. (#9645)
raulk Nov 15, 2022
4313917
Merge branch 'feat/nv18-fevm' into raulk/events-integrate-fvm
raulk Nov 15, 2022
907c201
add a FEVM events itest.
raulk Nov 15, 2022
0e8dd9e
Add historic event indexing
iand Nov 14, 2022
0d9c474
Implement EthGetLogs
iand Nov 15, 2022
32839f6
Initialise event index in di
iand Nov 15, 2022
bf1fcf8
Check actor event database schema version
iand Nov 15, 2022
e2ddc97
Fix lint error
iand Nov 15, 2022
73655ed
Fix for event entry key type is now a string
iand Nov 15, 2022
48ea469
go mod tidy
iand Nov 15, 2022
c31662d
make gen
iand Nov 15, 2022
ade75af
Update filecoin-ffi to https://github.com/filecoin-project/filecoin-f…
iand Nov 15, 2022
1035711
Add basic itests for ethereum filter api
iand Nov 15, 2022
7ef9973
make gen
iand Nov 15, 2022
98210ec
Add lint directive
iand Nov 15, 2022
bcdfc17
Fix TestEthNewFilterCatchAll
iand Nov 15, 2022
2735e81
feat: events: integrate with FVM changes (#9644)
raulk Nov 16, 2022
28b80a2
Merge branch 'feat/nv18-fevm' into feat/nv18-events
raulk Nov 16, 2022
2e577e3
update filecoin-ffi and actors v10 bundle.
raulk Nov 16, 2022
2803552
Merge branch 'feat/nv18-events' into feat/nv18-events-historic
raulk Nov 16, 2022
0376b7b
More assertions in TestEthNewFilterCatchAll
iand Nov 16, 2022
b5f95b7
Fix invalid address flake in TestEthNewFilterCatchAll
iand Nov 16, 2022
d5177a3
Add TestEthGetLogsAll itest
iand Nov 16, 2022
41bf2a0
Load actor to resolve address
iand Nov 16, 2022
8134d2f
Parse block heights as hex
iand Nov 16, 2022
314fb31
Fix signature of EthSubscribe
iand Nov 16, 2022
5a1f8d8
Return eth blocks not tipsets in subscriptions
iand Nov 16, 2022
7c2dcc8
Eth JSON-RPC API: add aliases for new methods.
raulk Nov 16, 2022
32385a9
Eth JSON-RPC API: return logs in eth_getTransactionReceipt.
raulk Nov 16, 2022
1ab39a4
simplify by moving receipt constructor logic to API.
raulk Nov 16, 2022
cd180f1
Merge pull request #9646 from iand/feat/nv18-events-historic
raulk Nov 16, 2022
5b4ec7d
feat: add test and fixes for EthSubscribe (#9659)
iand Nov 16, 2022
a536f53
Eth JSON-RPC API: make EthLog#Data a string.
raulk Nov 16, 2022
d441425
eth_getTransactionReceipt: return type & non-zero bloom if logs, rm r…
raulk Nov 16, 2022
b904517
upgrade ffi.
raulk Nov 16, 2022
23007b0
fix: do not hash log values; decode as cbor byte arrays.
raulk Nov 16, 2022
7a71ce4
fix: left pad log values to full EVM words.
raulk Nov 16, 2022
2ff679c
fix test compilation.
raulk Nov 16, 2022
f809dbd
fix test compilation.
raulk Nov 16, 2022
e63d5e1
make gen.
raulk Nov 16, 2022
ce91e42
nolint.
raulk Nov 16, 2022
5386bc2
NV18: FEVM: setup FEVM during genesis: create ETH0 actor (#9664)
vyzo Nov 17, 2022
9c500e1
fix: wallaby parameters file (#9675)
Stebalien Nov 17, 2022
ec667d4
fix: Eth JSON-RPC API: empty EthBytes serializes to '0x'.
raulk Nov 18, 2022
c474aee
fix: Eth JSON-RPC API: return empty bloom on every block.
raulk Nov 18, 2022
b8901ff
fix: Eth JSON-RPC API: return empty logs array in receipt when no logs.
raulk Nov 18, 2022
03a7caf
fix: Eth JSON-RPC API: receipt: logs bloom should be sized 256 bytes.
raulk Nov 18, 2022
e56d4b0
fix: typos in eth based struct (#9656)
hairtail Nov 21, 2022
56d60fb
fix git conflict.
raulk Nov 21, 2022
1762752
Merge branch 'feat/nv18' into feat/nv18-fevm
Stebalien Nov 22, 2022
f1493fb
eth: rpc: fix sendRawTransaction, transactionIndex, feeHistory (#9736)
ychiaoli18 Nov 28, 2022
6443e72
Merge branch 'master' into feat/nv18-fevm
arajasek Nov 30, 2022
159528e
Merge pull request #9755 from filecoin-project/asr/master-into-nv18-fevm
arajasek Nov 30, 2022
f681a35
upgrade go-jsonrpc to v0.1.9.
raulk Dec 1, 2022
56259c4
Use EthHash compatible type for subscription and filter IDs
iand Dec 7, 2022
9d26ba5
make gen
iand Dec 7, 2022
067f08f
Fix marshal test
iand Dec 7, 2022
1afc32f
Move FilterID to types package
iand Dec 7, 2022
05f983d
Mop up some missed package changes
iand Dec 7, 2022
cfceafb
Merge pull request #9808 from filecoin-project/issue/ref-fvm-1189
arajasek Dec 7, 2022
8504401
Merge branch 'master' into feat/nv18-fevm
Stebalien Dec 8, 2022
266492f
Merge branch 'feat/nv18-fevm' into feat/nv18-events
Stebalien Dec 8, 2022
129531b
Update chain.go
jennijuju Dec 8, 2022
3a6d37c
make jen
jennijuju Dec 8, 2022
3bb12f4
fmt
jennijuju Dec 8, 2022
0026ad8
Merge pull request #9813 from filecoin-project/jennijuju-patch-4
jennijuju Dec 8, 2022
485d161
Use correct field for upper epoch range in EthGetLogs
iand Dec 8, 2022
616790b
Merge pull request #9815 from filecoin-project/issue/ref-fvm-1206
arajasek Dec 8, 2022
f4cc554
Fix getting event logs by topic
iand Dec 8, 2022
6da93cf
Merge pull request #9819 from filecoin-project/issue/ref-fvm-1207
arajasek Dec 8, 2022
855c35c
Move eth functions out of api
geoff-vball Dec 14, 2022
96bb03e
Move EthTxReceipt to api
geoff-vball Dec 14, 2022
442132b
Move eth types to chain/types/ethtypes
geoff-vball Dec 14, 2022
3497b53
Fix lint
geoff-vball Dec 14, 2022
0c305ed
Merge pull request #9872 from filecoin-project/gstuart/dont-depend-on…
arajasek Dec 14, 2022
720451c
Merge branch 'master' into feat/nv18-fevm
arajasek Dec 15, 2022
596307b
Merge branch 'master' into feat/nv18-fevm
arajasek Dec 15, 2022
518e666
FVM: Set chain ID when creating machine
arajasek Dec 12, 2022
69ac840
Update the v10 actors testing bundle
arajasek Dec 15, 2022
36b9fe6
Merge pull request #9838 from filecoin-project/asr/chain-id
arajasek Dec 15, 2022
f8f07db
Support creation and signing of Eth keys
arajasek Dec 15, 2022
d574eda
Merge pull request #9886 from filecoin-project/asr/delegated-wallet
arajasek Dec 15, 2022
4aa24c2
Account abstraction: Add test demonstrating workflow
arajasek Dec 9, 2022
830c3e4
Eth: Propogate errors
arajasek Dec 9, 2022
160bcd6
Messagepool: check sender is valid for sending
arajasek Dec 11, 2022
54cb97a
Expand EthAccount abstraction test
arajasek Dec 15, 2022
503bdb5
Merge pull request #9831 from filecoin-project/asr/account-abstraction
arajasek Dec 16, 2022
7ea690d
Merge branch 'master' into feat/nv18-fevm
arajasek Dec 16, 2022
d71f5a7
Add cli to inspect Eth addresses and simulate calls
Dec 16, 2022
4b2ff01
make gen and lint
Dec 16, 2022
cbc61a2
small correction on cli usage
Dec 16, 2022
bc7c190
Move all eth stuff into ethtypes
geoff-vball Dec 16, 2022
c9f1b18
Merge pull request #9900 from filecoin-project/gstuart/eth-refactor-f…
arajasek Dec 16, 2022
92f3a7b
Merge branch 'feat/nv18-fevm' into feat/nv18-events
geoff-vball Dec 16, 2022
4ae498a
Fixes
geoff-vball Dec 16, 2022
5f4ccfd
Merge pull request #9901 from filecoin-project/gstuart/merge-fevm-int…
geoff-vball Dec 16, 2022
669c76e
Update FFI and actors (dev/20221218-fvm-m2)
arajasek Dec 18, 2022
20f27af
eth: rpc: various Ethereum JSON-RPC API fixes (#9837)
ychiaoli18 Dec 19, 2022
c2629b0
Use StateGetActor instead of StateAccountKey
Dec 19, 2022
f14eda4
address comments
Dec 19, 2022
a452ab7
Merge pull request #9907 from filecoin-project/asr/update-ffi-actors-…
arajasek Dec 19, 2022
8baa482
Address more comments
Dec 19, 2022
c96608c
make gen and docsgen
Dec 19, 2022
d916253
small nit
Dec 19, 2022
3d3bce6
Merge pull request #9897 from filecoin-project/sbansal/eth-state-cli
shrenujbansal Dec 19, 2022
1f3c23d
Update to FVM 3.0.0-alpha.17, actors dev/20221219-fvm-m2
arajasek Dec 20, 2022
d55100b
Merge pull request #9915 from filecoin-project/asr/update-fvm
arajasek Dec 20, 2022
de62a7d
Test: EthAccount abstraction: Nonce is updated correctly
arajasek Dec 19, 2022
28e6169
Merge pull request #9911 from filecoin-project/asr/ethaccount-test
arajasek Dec 20, 2022
d9c13f1
fix: signature validation cache for messages with Delegated signature…
raulk Dec 20, 2022
5ff6654
feat: consensus: only embryos with nonce 0 are valid senders
arajasek Dec 21, 2022
2bdae2f
test: Add f4 address integration test and cli to generate eth address…
shrenujbansal Dec 21, 2022
7073b33
Merge pull request #9929 from filecoin-project/asr/ethaccount-refinem…
arajasek Dec 21, 2022
e7aa7cb
add a basic FEVM integration test. (#9922)
raulk Dec 21, 2022
bb5cb19
fix: Eth JSON-RPC API: eth_getTransactionByHash should return nil whe…
raulk Dec 22, 2022
6faa901
Merge pull request #9932 from filecoin-project/raulk/eth-jsonrpc-api-…
arajasek Dec 22, 2022
9d3e50f
feat: implement and test the v18 migration
arajasek Dec 22, 2022
336a0e5
Merge pull request #9931 from filecoin-project/asr/migration
arajasek Dec 22, 2022
7ed79fe
fix: eth_getTransactionByHash: return hash.
raulk Dec 23, 2022
4411fd7
eth_getTransactionByHash: return nil in some fields when tx is in mpool.
raulk Dec 23, 2022
60c9832
fix nonce
ychiaoli18 Dec 23, 2022
08382c6
regen docs.
raulk Dec 23, 2022
b8b3b5d
fix: Eth JSON-RPC API: eth_getTransactionReceipt logs-related fixes.
raulk Dec 23, 2022
8a92e8e
add test coverage.
raulk Dec 23, 2022
9505ac8
add docs.
raulk Dec 23, 2022
c7efaaa
refine docs.
raulk Dec 23, 2022
a18b358
upgrade to builtin-actors aed216d4deefbf9cdc39770e6869360bb6d30144
raulk Dec 23, 2022
f44bd27
fix: eth_blockNumber: make it aware of null rounds.
raulk Dec 23, 2022
f60f02c
fix: store tipsetkeys in the blockstore
arajasek Dec 17, 2022
a469840
merge ntwk/wallaby into feat/nv18-fevm.
raulk Dec 23, 2022
a22518d
remove unused var.
raulk Dec 23, 2022
5c8a02f
back out bundle and network changes.
raulk Dec 23, 2022
f532825
Merge pull request #9937 from filecoin-project/raulk/merge-wallaby
raulk Dec 23, 2022
7c916c1
Merge pull request #9904 from filecoin-project/asr/put-tsk
arajasek Dec 23, 2022
a5851a1
Merge branch 'master' into feat/nv18-fevm
arajasek Dec 23, 2022
a4d93d7
feat: docgen: use real values for Eth types (#9938)
arajasek Dec 27, 2022
f8e215c
itests: Eth JSON-RPC: EthGetBlockByHash and EthGetBlockByNumber
ychiaoli18 Jan 2, 2023
7029364
check non-existent block hash
ychiaoli18 Jan 2, 2023
460c91b
Remove accidental changes to sectors.go
Jan 3, 2023
c7ec974
Add new FEVM actors to the registry
Jan 2, 2023
ccd08c2
Merge pull request #9959 from filecoin-project/gstuart/sectors-fix
geoff-vball Jan 6, 2023
06393da
feat:splitstore:retain tipset references in hot store (#9960)
ZenGround0 Jan 6, 2023
77b235d
Merge pull request #9958 from filecoin-project/asr/fevm-registry
arajasek Jan 6, 2023
402173e
Merge pull request #9955 from filecoin-project/itest/eth-block
ychiaoli18 Jan 8, 2023
f05d3d8
add hyperspacenet
jennijuju Jan 10, 2023
370c8ad
add bundle from https://github.com/filecoin-project/builtin-actors/re…
jennijuju Jan 10, 2023
72c04ca
get hyperspace cids
jennijuju Jan 10, 2023
cb49edf
update embryo to placehodler
jennijuju Jan 10, 2023
38c3ab2
Update to FVM 3.0.0-alpha.18
arajasek Jan 10, 2023
06584bb
Fixup multisig_test
arajasek Jan 10, 2023
1046b30
Update to go-state-types v0.10.0-alpha-9
arajasek Jan 10, 2023
95501b7
Merge pull request #9978 from filecoin-project/jen/hyper
arajasek Jan 10, 2023
3456d90
itests: Add tests for eth get balance and transaction submits (#9966)
shrenujbansal Jan 11, 2023
c73a0b5
fix: fevm: don't hard-code method numbers
Stebalien Jan 12, 2023
ac38c97
add a network version gate to IsValidForSending.
raulk Jan 10, 2023
a8c33de
consolidate signature validation logic.
raulk Jan 10, 2023
6b8d4b4
consolidate signature validation logic.
raulk Jan 10, 2023
8f4c426
cleanup.
raulk Jan 10, 2023
a718162
adjust IsValidSecpkSigType and usages.
raulk Jan 10, 2023
8ef1733
{predictable=>delegated} addresses.
raulk Jan 10, 2023
e60199a
add link to TODO issue.
raulk Jan 11, 2023
4aafd42
strengthen assertions in TestEthNewPendingTransactionFilter.
raulk Jan 11, 2023
73d6c7b
move EthAddressFromPubKey to chain/types/ethtypes.
raulk Jan 11, 2023
6c0ddd4
fix typos.
raulk Jan 11, 2023
1e0c780
constant for Event AMT bitwidth.
raulk Jan 11, 2023
d520dbb
update genesis logic to create Eth Null Addresses as EthAccounts.
raulk Jan 11, 2023
93b3da9
{Delegated=>Deterministic} Address.
raulk Jan 11, 2023
5932555
go fmt + lint.
raulk Jan 11, 2023
8512bbc
drop f099 eth_call hack.
raulk Jan 11, 2023
1bfbe44
cli: fix Eth-related CLI (+).
raulk Jan 11, 2023
3320754
remove fmt.Println.
raulk Jan 11, 2023
e78dbd2
gen.
raulk Jan 11, 2023
892819a
fix test.
raulk Jan 11, 2023
06b40bc
fix comment.
raulk Jan 11, 2023
08ae139
address review comments.
raulk Jan 11, 2023
1c7db7c
clear up error message.
raulk Jan 11, 2023
008d04f
use existing variable for empty object CID.
raulk Jan 11, 2023
c61edd1
make gen.
raulk Jan 11, 2023
105a125
Eth JSON-RPC: use ToFilecoinAddress() to get f4 addr and validate v s…
ychiaoli18 Jan 12, 2023
3ef3239
clean up ethtypes: rationalize ethtypes.EthAddressFromFilecoinAddress…
raulk Jan 12, 2023
014d954
address review comments from @magik6k on #9617 (#9997)
raulk Jan 12, 2023
2c83992
fix tests.
raulk Jan 12, 2023
eb36b18
change ResolveToKeyAddr => ResolveToDeterministicAddr + friends.
raulk Jan 13, 2023
6845fbf
track remaining TODOs as TODO::FVM.
raulk Jan 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ butterflynet: build-devnets
interopnet: GOFLAGS+=-tags=interopnet
interopnet: build-devnets

Copy link
Member

@jennijuju jennijuju Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not merge wallaby to master , see here for reason https://filecoinproject.slack.com/archives/CP50PPW2X/p1668792668315419

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in Slack, we're gonna merge this for now (and drop as soon as wallaby is no more).

wallabynet: GOFLAGS+=-tags=wallabynet
wallabynet: build-devnets

lotus: $(BUILD_DEPS)
rm -f lotus
$(GOCC) build $(GOFLAGS) -o lotus ./cmd/lotus
Expand Down
52 changes: 44 additions & 8 deletions api/api_full.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ type FullNode interface {

// ChainGetPath returns a set of revert/apply operations needed to get from
// one tipset to another, for example:
//```
// ```
// to
// ^
// from tAA
Expand All @@ -159,7 +159,7 @@ type FullNode interface {
// ^---*--^
// ^
// tRR
//```
// ```
// Would return `[revert(tBA), apply(tAB), apply(tAA)]`
ChainGetPath(ctx context.Context, from types.TipSetKey, to types.TipSetKey) ([]*HeadChange, error) //perm:read

Expand Down Expand Up @@ -387,12 +387,12 @@ type FullNode interface {
ClientCancelRetrievalDeal(ctx context.Context, dealid retrievalmarket.DealID) error //perm:write

// ClientUnimport removes references to the specified file from filestore
//ClientUnimport(path string)
// ClientUnimport(path string)

// ClientListImports lists imported files and their root CIDs
ClientListImports(ctx context.Context) ([]Import, error) //perm:write

//ClientListAsks() []Ask
// ClientListAsks() []Ask

// MethodGroup: State
// The State methods are used to query, inspect, and interact with chain state.
Expand Down Expand Up @@ -639,14 +639,14 @@ type FullNode interface {
// It takes the following params: <multisig address>, <start epoch>, <end epoch>
MsigGetVested(context.Context, address.Address, types.TipSetKey, types.TipSetKey) (types.BigInt, error) //perm:read

//MsigGetPending returns pending transactions for the given multisig
//wallet. Once pending transactions are fully approved, they will no longer
//appear here.
// MsigGetPending returns pending transactions for the given multisig
// wallet. Once pending transactions are fully approved, they will no longer
// appear here.
MsigGetPending(context.Context, address.Address, types.TipSetKey) ([]*MsigTransaction, error) //perm:read

// MsigCreate creates a multisig wallet
// It takes the following params: <required number of senders>, <approving addresses>, <unlock duration>
//<initial balance>, <sender address of the create msg>, <gas price>
// <initial balance>, <sender address of the create msg>, <gas price>
MsigCreate(context.Context, uint64, []address.Address, abi.ChainEpoch, types.BigInt, address.Address, types.BigInt) (*MessagePrototype, error) //perm:sign

// MsigPropose proposes a multisig message
Expand Down Expand Up @@ -758,6 +758,42 @@ type FullNode interface {

NodeStatus(ctx context.Context, inclChainStatus bool) (NodeStatus, error) //perm:read

// MethodGroup: Eth
// These methods are used for Ethereum-compatible JSON-RPC calls
//
// EthAccounts will always return [] since we don't expect Lotus to manage private keys
EthAccounts(ctx context.Context) ([]EthAddress, error) //perm:read
// EthBlockNumber returns the height of the latest (heaviest) TipSet
EthBlockNumber(ctx context.Context) (EthUint64, error) //perm:read
// EthGetBlockTransactionCountByNumber returns the number of messages in the TipSet
EthGetBlockTransactionCountByNumber(ctx context.Context, blkNum EthUint64) (EthUint64, error) //perm:read
// EthGetBlockTransactionCountByHash returns the number of messages in the TipSet
EthGetBlockTransactionCountByHash(ctx context.Context, blkHash EthHash) (EthUint64, error) //perm:read

EthGetBlockByHash(ctx context.Context, blkHash EthHash, fullTxInfo bool) (EthBlock, error) //perm:read
EthGetBlockByNumber(ctx context.Context, blkNum string, fullTxInfo bool) (EthBlock, error) //perm:read
EthGetTransactionByHash(ctx context.Context, txHash *EthHash) (*EthTx, error) //perm:read
EthGetTransactionCount(ctx context.Context, sender EthAddress, blkOpt string) (EthUint64, error) //perm:read
EthGetTransactionReceipt(ctx context.Context, txHash EthHash) (*EthTxReceipt, error) //perm:read
EthGetTransactionByBlockHashAndIndex(ctx context.Context, blkHash EthHash, txIndex EthUint64) (EthTx, error) //perm:read
EthGetTransactionByBlockNumberAndIndex(ctx context.Context, blkNum EthUint64, txIndex EthUint64) (EthTx, error) //perm:read

EthGetCode(ctx context.Context, address EthAddress, blkOpt string) (EthBytes, error) //perm:read
EthGetStorageAt(ctx context.Context, address EthAddress, position EthBytes, blkParam string) (EthBytes, error) //perm:read
EthGetBalance(ctx context.Context, address EthAddress, blkParam string) (EthBigInt, error) //perm:read
EthChainId(ctx context.Context) (EthUint64, error) //perm:read
NetVersion(ctx context.Context) (string, error) //perm:read
NetListening(ctx context.Context) (bool, error) //perm:read
EthProtocolVersion(ctx context.Context) (EthUint64, error) //perm:read
EthGasPrice(ctx context.Context) (EthBigInt, error) //perm:read
EthFeeHistory(ctx context.Context, blkCount EthUint64, newestBlk string, rewardPercentiles []int64) (EthFeeHistory, error) //perm:read

EthMaxPriorityFeePerGas(ctx context.Context) (EthBigInt, error) //perm:read
EthEstimateGas(ctx context.Context, tx EthCall) (EthUint64, error) //perm:read
EthCall(ctx context.Context, tx EthCall, blkParam string) (EthBytes, error) //perm:read

EthSendRawTransaction(ctx context.Context, rawTx EthBytes) (EthHash, error) //perm:read

// CreateBackup creates node backup onder the specified file name. The
// method requires that the lotus daemon is running with the
// LOTUS_BACKUP_BASE_PATH environment variable set to some path, and that
Expand Down
15 changes: 14 additions & 1 deletion api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ func init() {
Conns: 4,
FD: 5,
})

addExample(map[string]bitfield.BitField{
"": bitfield.NewFromSet([]uint64{5, 6, 7, 10}),
})
Expand All @@ -361,6 +362,18 @@ func init() {
Headers: nil,
},
})

ethint := api.EthUint64(5)

addExample(ethint)
addExample(&ethint)
ethaddr, _ := api.EthAddressFromHex("0x5CbEeCF99d3fDB3f25E309Cc264f240bb0664031")
addExample(&ethaddr)
ethhash, _ := api.EthHashFromCid(c)
addExample(&ethhash)

ethFeeHistoryReward := [][]api.EthBigInt{}
addExample(&ethFeeHistoryReward)
}

func GetAPIType(name, pkg string) (i interface{}, t reflect.Type, permStruct []reflect.Type) {
Expand Down Expand Up @@ -434,7 +447,7 @@ func ExampleValue(method string, t, parent reflect.Type) interface{} {
case reflect.Ptr:
if t.Elem().Kind() == reflect.Struct {
es := exampleStruct(method, t.Elem(), t)
//ExampleValues[t] = es
// ExampleValues[t] = es
return es
}
case reflect.Interface:
Expand Down
Loading