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

refactor: break up transformer and rpc package logic into smaller func and add unit tests #1313

Open
wants to merge 56 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
b06f30c
refactor(execution layer): extract el indexing it own packages
Tangui-Bitfly Jan 30, 2025
df7c389
chore: contract simplification
Tangui-Bitfly Jan 31, 2025
504de9a
feat(database transaction): add transaction to database package
Tangui-Bitfly Jan 31, 2025
6b06d7b
fix: rename database.Transaction to database.Batch
Tangui-Bitfly Jan 31, 2025
0bf7bbf
fix: check max uncles len
Tangui-Bitfly Jan 31, 2025
3f74ed5
refactor: extract logic into separate functions for improved readability
Monika-Bitfly Jan 31, 2025
cae25cb
refactor: break down transformer logic into smaller func for improved…
Monika-Bitfly Feb 3, 2025
d14bd52
refactor(indexer): remove even more dependancies with database
Tangui-Bitfly Feb 3, 2025
2efbee2
refactor: break down erigon and geth logic into smaller func for impr…
Monika-Bitfly Feb 3, 2025
ae0831f
add test for erc20 transform
Tangui-Bitfly Feb 3, 2025
1634979
refactor: add utils.go for code reuse
Monika-Bitfly Feb 3, 2025
d767adb
Merge branch 'refactor-indexing' of github.com:gobitfly/beaconchain i…
Monika-Bitfly Feb 3, 2025
0d4bb82
test: add tests for getTxRecipient, getMethodSignature & updateITxStatus
Monika-Bitfly Feb 3, 2025
9f1af82
test: add tests for isValidERC20Log, getLogTopics & getERC20TransferV…
Monika-Bitfly Feb 4, 2025
44a6489
fix: fix isInvalidItx func
Monika-Bitfly Feb 4, 2025
848da84
fix: update isInvalidItx func
Monika-Bitfly Feb 4, 2025
6acf6a2
test: add tests for isValidERC721Log & isValidERC1155Log methods
Monika-Bitfly Feb 4, 2025
f20a36a
fix: update isValidERC721Log func
Monika-Bitfly Feb 4, 2025
fc7de46
refactor(execution layer): extract el indexing it own packages
Tangui-Bitfly Jan 30, 2025
2172697
chore: contract simplification
Tangui-Bitfly Jan 31, 2025
29c46c7
feat(database transaction): add transaction to database package
Tangui-Bitfly Jan 31, 2025
b97f7d2
fix: rename database.Transaction to database.Batch
Tangui-Bitfly Jan 31, 2025
9bec588
fix: check max uncles len
Tangui-Bitfly Jan 31, 2025
3380e72
refactor(indexer): remove even more dependancies with database
Tangui-Bitfly Feb 3, 2025
6c491cd
add test for erc20 transform
Tangui-Bitfly Feb 3, 2025
c991ce3
final transformer refactor
Tangui-Bitfly Feb 3, 2025
79e8597
add more tests
Tangui-Bitfly Feb 4, 2025
5d15272
test: add tests for isValidItx, getTokenID & getContractAddress methods
Monika-Bitfly Feb 4, 2025
da3daa1
test: add tests for TestGetERC1155TransferIDs, TestGetERC1155Transfer…
Monika-Bitfly Feb 4, 2025
a63ebab
more tests
Tangui-Bitfly Feb 4, 2025
8f8d4e8
Merge branch 'refactor-indexing' of github.com:gobitfly/beaconchain i…
Monika-Bitfly Feb 4, 2025
b2e9786
refactor: update isBlobTx func
Monika-Bitfly Feb 4, 2025
4f52647
test: add tests for calculateMevFromBlock, calculateBlockUncleReward,…
Monika-Bitfly Feb 4, 2025
6afef03
test: add rpc/utils tests
Monika-Bitfly Feb 4, 2025
6e2773f
fix missing chainID
Tangui-Bitfly Feb 5, 2025
a5de2d4
simplify pr
Tangui-Bitfly Feb 5, 2025
e1d61ab
refactor: update parseAddressBalance function
Monika-Bitfly Feb 5, 2025
ced4961
test: add tests for TestGetTokens & TestParseAddressBalance methods
Monika-Bitfly Feb 5, 2025
5a9c002
comments
Tangui-Bitfly Feb 5, 2025
96d9352
test: add function-level comments to tests
Monika-Bitfly Feb 5, 2025
dbd9038
test: add tests for getBlockUncles method
Monika-Bitfly Feb 5, 2025
1a39ae4
remove unused func
Tangui-Bitfly Feb 5, 2025
1bfad7f
refactor: updated ERC20 contract handlers name
Monika-Bitfly Feb 5, 2025
b8ad60b
fix merge map
Tangui-Bitfly Feb 5, 2025
6d4a117
test: add tests for getERC20ContractSymbol, getERC20ContractTotalSupp…
Monika-Bitfly Feb 5, 2025
353a2f8
Merge branch 'refactor-indexing' of github.com:gobitfly/beaconchain i…
Monika-Bitfly Feb 5, 2025
6e067ee
refactor: update getTxRecipient func
Monika-Bitfly Feb 5, 2025
eb469a5
refactor: update ERC20 contract test func name
Monika-Bitfly Feb 5, 2025
5c8d3c6
fix: lint
Monika-Bitfly Feb 5, 2025
afb5116
test: add rpc/erigon tests
Monika-Bitfly Feb 5, 2025
802c420
Merge branch 'staging' of github.com:gobitfly/beaconchain into m/refa…
Monika-Bitfly Feb 7, 2025
26f6000
test: updated tests
Monika-Bitfly Feb 10, 2025
bc809f7
fix: update transformer
Monika-Bitfly Feb 10, 2025
ffe5571
refactor: updated erigon.go
Monika-Bitfly Feb 10, 2025
efbbfe9
fix: lint
Monika-Bitfly Feb 10, 2025
3a491d4
fix: unit tests
Monika-Bitfly Feb 10, 2025
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
Loading
Loading