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

update blockscout for gemini-3h with latest upstream changes #14

Merged
merged 715 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
715 commits
Select commit Hold shift + click to select a range
e9b9f0f
Merge pull request #9217 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Jan 23, 2024
a87469a
Bump css-minimizer-webpack-plugin in /apps/block_scout_web/assets
dependabot[bot] Jan 23, 2024
4ae6242
Bump autoprefixer in /apps/block_scout_web/assets
dependabot[bot] Jan 23, 2024
c59f6bf
Merge pull request #9215 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Jan 23, 2024
875858a
Merge pull request #9221 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Jan 23, 2024
a22d4ca
chore: docstrings and broken tests
k1rill-fedoseev Jan 23, 2024
c7724f5
Shibarium Bridge indexer and API v2 extension (#8929)
varasev Jan 24, 2024
f63668c
Change internal txs tracer type to opcode for Hardhat node (#9178)
vbaranov Jan 24, 2024
d3209f0
Handle nil token_ids in token transfers on render (#9143)
Qwerty5Uiop Jan 24, 2024
ecde63b
Add `MARKET_HISTORY_FETCH_INTERVAL` env (#9197)
sl1depengwyn Jan 24, 2024
a44be8f
feat: add basic blob fetcher tests
k1rill-fedoseev Jan 24, 2024
65505f2
Merge branch 'master' into kf-eip4844-blobs
k1rill-fedoseev Jan 24, 2024
5b181b0
fix: hide doctest behind chain type
k1rill-fedoseev Jan 24, 2024
fbc9432
Fix flickering test
vbaranov Jan 25, 2024
d06d4f3
Fix log decoding bug (#9241)
vbaranov Jan 25, 2024
3d03945
feat: add burn blob fee in tx view
k1rill-fedoseev Jan 25, 2024
59c0056
Fetch token image from CoinGecko (#9132)
vbaranov Jan 25, 2024
400403f
Enhanced unfetched token balances index (#9153)
vbaranov Jan 25, 2024
f258b07
Add /api/v2/utils/decode-calldata endpoint (#9148)
nikitosing Jan 25, 2024
6a13e36
Fix 500 response on token id which is not in DB (#9187)
nikitosing Jan 25, 2024
e4e1653
"cataloged" index on tokens table (#9233)
vbaranov Jan 25, 2024
4377c42
chore: update default values
k1rill-fedoseev Jan 25, 2024
250bc5d
Exclude genesis block from average block time calculation (#9173)
vbaranov Jan 25, 2024
a716556
Change PR number of tx denormalization
vbaranov Jan 26, 2024
47cef53
Fix getblockreward; Add getblockcountdown actions
sl1depengwyn Jan 18, 2024
b8df64b
Fix pending transactions sanitizer (#9261)
Qwerty5Uiop Jan 26, 2024
6df3521
Add GET and POST /api/v2/smart-contracts/:address_hash/audit-reports …
nikitosing Jan 26, 2024
bef38a0
Don't fetch first trace for pending transactions
Qwerty5Uiop Jan 25, 2024
c612117
Merge pull request #9253 from blockscout/ap-dont-fetch-first-trace-fo…
vbaranov Jan 26, 2024
7f5903b
Add missing filters by non-pending transactions
Qwerty5Uiop Jan 23, 2024
1bb5f98
Merge pull request #9234 from blockscout/ap-fix-denormalization-pendi…
vbaranov Jan 26, 2024
3eaddd1
Process reviewers comments
sl1depengwyn Jan 26, 2024
464054e
Merge pull request #9185 from blockscout/mf-api-parity
vbaranov Jan 26, 2024
795590a
api v1 allow multiple slashes in the path before "api"
vbaranov Jan 19, 2024
a47d83f
Add bridged tokens functionality, could be enabled by compile time en…
nikitosing Jan 26, 2024
44de6e6
Merge pull request #9195 from blockscout/vb-api-v1-allow-multiple-slash
vbaranov Jan 26, 2024
501cf89
User operation in the search
vbaranov Jan 18, 2024
afe801d
Process reviewer comments
vbaranov Jan 26, 2024
5a7f6e7
Merge pull request #9189 from blockscout/vb-user-operations-in-the-se…
vbaranov Jan 26, 2024
453dd96
6.1.0
vbaranov Jan 26, 2024
c5f1de1
Return OTP_VERSION: 25.2.1 for prerelease workflow
vbaranov Jan 26, 2024
448810c
Rollback Dockerfile Elixir/Erlanfg versions update
vbaranov Jan 26, 2024
139cfc9
Tx summary endpoint: Decode logs via sig provider as fallback; send 5…
nikitosing Jan 28, 2024
6d53e60
Merge pull request #9275 from blockscout/np-fix-tx-interpreter-endpoint
nikitosing Jan 29, 2024
f26c92e
Merge branch 'master' into kf-eip4844-blobs
k1rill-fedoseev Jan 29, 2024
799d324
Bump @amplitude/analytics-browser in /apps/block_scout_web/assets
dependabot[bot] Jan 29, 2024
914ecb0
Bump @babel/preset-env in /apps/block_scout_web/assets
dependabot[bot] Jan 29, 2024
1700527
Bump solc from 0.8.23 to 0.8.24 in /apps/explorer
dependabot[bot] Jan 29, 2024
93bf13b
Bump ex_doc from 0.31.0 to 0.31.1
dependabot[bot] Jan 29, 2024
76a52d2
Bump floki from 0.35.2 to 0.35.3
dependabot[bot] Jan 29, 2024
e345899
Bump exvcr from 0.15.0 to 0.15.1
dependabot[bot] Jan 29, 2024
1bc0e50
feat: blobs in search
k1rill-fedoseev Jan 30, 2024
41008ab
fix: tests
k1rill-fedoseev Jan 30, 2024
e4ccb36
fix: one more test
k1rill-fedoseev Jan 30, 2024
f857b6b
fix: too many connections in tests
k1rill-fedoseev Jan 30, 2024
0275316
chore: try to fix connection timeout
k1rill-fedoseev Jan 30, 2024
176c3d8
Add workflow for Shibarium (#9303)
varasev Jan 31, 2024
7264dd7
Add smart contract and names info to AA response
nikitosing Feb 2, 2024
29b7f18
Changelog
nikitosing Feb 2, 2024
203e896
Merge pull request #9309 from blockscout/np-add-more-address-info-to-…
nikitosing Feb 2, 2024
e49bd8d
Create repo setup actions
vbaranov Feb 5, 2024
e5e9796
Merge pull request #9322 from blockscout/vb-setup-actions
vbaranov Feb 5, 2024
8f5588d
Change index creation to concurrent
vbaranov Feb 5, 2024
108b9e8
Merge pull request #9323 from blockscout/vb-set-concurrent-index-crea…
vbaranov Feb 5, 2024
77d984d
Fix Blockscout version in pre-release workflow
vbaranov Feb 5, 2024
9473b92
Bump hammer from 6.1.0 to 6.2.0
dependabot[bot] Feb 5, 2024
0410efd
Bump logger_json from 5.1.2 to 5.1.3
dependabot[bot] Feb 5, 2024
1e704e5
Bump sweetalert2 from 11.10.3 to 11.10.5 in /apps/block_scout_web/assets
dependabot[bot] Feb 5, 2024
a24a6c6
Bump mini-css-extract-plugin in /apps/block_scout_web/assets
dependabot[bot] Feb 5, 2024
280408d
Bump web3 from 1.10.3 to 1.10.4 in /apps/block_scout_web/assets
dependabot[bot] Feb 5, 2024
f7569f2
BRIDGED_TOKENS_ENABLED=true for Fuse and Gnosis chain Docker generati…
vbaranov Feb 5, 2024
e0d0bb6
Remove v6.0.0-dev branch from CI
vbaranov Feb 5, 2024
bfb7cbd
Bridged tokens envs to common-blockscout.env
vbaranov Feb 5, 2024
415da41
Fuse docker image to release CI
vbaranov Feb 5, 2024
2073625
Merge pull request #9335 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 5, 2024
c8fa369
Merge pull request #9333 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 5, 2024
fffae6d
Merge pull request #9288 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 5, 2024
a0e0f47
Merge pull request #9287 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 5, 2024
7f08e95
Bump postcss-loader from 8.0.0 to 8.1.0 in /apps/block_scout_web/assets
dependabot[bot] Feb 5, 2024
92eb257
Bump @babel/core from 7.23.7 to 7.23.9 in /apps/block_scout_web/assets
dependabot[bot] Feb 5, 2024
133e85b
Merge pull request #9331 from blockscout/dependabot/hex/logger_json-5…
vbaranov Feb 5, 2024
f5c4c29
Merge pull request #9330 from blockscout/dependabot/hex/hammer-6.2.0
vbaranov Feb 5, 2024
c87340c
Merge pull request #9294 from blockscout/dependabot/hex/exvcr-0.15.1
vbaranov Feb 5, 2024
8071773
Merge pull request #9293 from blockscout/dependabot/hex/floki-0.35.3
vbaranov Feb 5, 2024
de95510
Merge pull request #9338 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
6a423b5
Merge pull request #9336 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
cbb365e
Merge pull request #9290 from blockscout/dependabot/hex/ex_doc-0.31.1
vbaranov Feb 6, 2024
ba5086e
Bump css-loader from 6.9.1 to 6.10.0 in /apps/block_scout_web/assets
dependabot[bot] Feb 6, 2024
db37ce8
Merge pull request #9285 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
4df7213
Bump sass-loader from 14.0.0 to 14.1.0 in /apps/block_scout_web/assets
dependabot[bot] Feb 6, 2024
9ce67c4
Merge pull request #9283 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
88cc8f5
Merge pull request #9337 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
adc28b4
Merge pull request #9334 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
3f9d415
Bump webpack from 5.89.0 to 5.90.1 in /apps/block_scout_web/assets
dependabot[bot] Feb 6, 2024
135859a
Include null gas price txs in fee calculations
sl1depengwyn Feb 3, 2024
30dbcc8
Merge pull request #9339 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 6, 2024
b42f8e3
fix: more review comments
k1rill-fedoseev Feb 6, 2024
1daf62b
chore: update env defaults
k1rill-fedoseev Feb 6, 2024
291ffa3
Define BRIDGED_TOKENS_ENABLED env in Dockerfile
vbaranov Feb 8, 2024
f8f435e
Merge pull request #9317 from blockscout/mf-fix-gasprice-filecoin
vbaranov Feb 8, 2024
63266a2
Fixing stats DB connection vars
nzenchik Feb 8, 2024
1bc07ab
uniform namings for DB containers
vbaranov Feb 8, 2024
a5887ed
Merge pull request #9361 from blockscout/vb-fix-bridged-tokens-in-docker
vbaranov Feb 8, 2024
e7dac2b
fix: transaction blobs order in API
k1rill-fedoseev Feb 9, 2024
4d44b79
chore: move blob function out of chain.ex
k1rill-fedoseev Feb 9, 2024
b1f9795
Fix dialyzer and add TypedEctoSchema
sl1depengwyn Nov 16, 2023
cf99597
Merge pull request #8851 from blockscout/mf-reduce-dialyzer-ignore
nikitosing Feb 9, 2024
e1871b0
Add base and priority fee to gas oracle response
sl1depengwyn Jan 19, 2024
9bfcc27
Process nikitosing4 review
sl1depengwyn Feb 9, 2024
66b88d4
Fix manual uncle reward calculation
sl1depengwyn Feb 3, 2024
536ccb2
Merge pull request #9202 from blockscout/mf-gas-price-oracle-base-pri…
vbaranov Feb 9, 2024
cc9569c
Merge pull request #9315 from blockscout/mf-fix-uncles-calculation
vbaranov Feb 9, 2024
c2824c2
Merge branch 'master' into kf-eip4844-blobs
k1rill-fedoseev Feb 9, 2024
ff47585
Merge branch 'master' into kf-eip4844-blobs
k1rill-fedoseev Feb 9, 2024
327c491
fix: linter
k1rill-fedoseev Feb 9, 2024
e58f599
Bump credo from 1.7.3 to 1.7.4
dependabot[bot] Feb 12, 2024
c4940ad
Bump postcss from 8.4.33 to 8.4.35 in /apps/block_scout_web/assets
dependabot[bot] Feb 12, 2024
3d445a2
Bump mixpanel-browser in /apps/block_scout_web/assets
dependabot[bot] Feb 12, 2024
9a6a5d4
Merge pull request #9383 from blockscout/dependabot/hex/credo-1.7.4
vbaranov Feb 12, 2024
d088c19
Merge pull request #9384 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 12, 2024
9534aca
Merge pull request #9385 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 13, 2024
72d4a8d
Process integer balance in genesis.json
vbaranov Feb 6, 2024
10520bc
Fix read contract bug (#9300)
nikitosing Feb 13, 2024
1f7dae0
Merge pull request #9346 from blockscout/vb-genesis-integer-balance-fix
vbaranov Feb 13, 2024
cb54b6d
Merge pull request #9168 from blockscout/kf-eip4844-blobs
vbaranov Feb 13, 2024
00ce0f0
Parse contract codes and balances from custom genesis.json (#9349)
vbaranov Feb 13, 2024
262bdd1
Add fallback effective gas price calculation (#9305)
nikitosing Feb 13, 2024
dda584e
Noves.fi: add proxy endpoint for describeTxs endpoint (#9351)
vbaranov Feb 13, 2024
830625e
Remove ERC-1155 logs params from coin balances params
Qwerty5Uiop Feb 7, 2024
b351eb6
Merge pull request #9356 from blockscout/ap-filter-1155-logs-from-coi…
vbaranov Feb 13, 2024
ae19154
Filter non-traceable transactions for zetachain
Qwerty5Uiop Feb 12, 2024
dbf1b41
Disable "no internal txs for some transactions" check for zetachain
Qwerty5Uiop Feb 13, 2024
4795656
Merge pull request #9379 from blockscout/ap-filter-non-traceable-tran…
vbaranov Feb 13, 2024
362dae4
Add license_type field to smart_contracts table; Forward license_type…
nikitosing Jan 29, 2024
7d40dcb
Changelog
nikitosing Jan 29, 2024
593e0d0
Some fixes
nikitosing Jan 29, 2024
b2c53dc
Fix tests
nikitosing Feb 6, 2024
995f9c2
Process review comment
nikitosing Feb 13, 2024
15b78a3
Merge pull request #9181 from cristiantroy/master
vbaranov Feb 13, 2024
b1b866e
Merge pull request #9282 from blockscout/np-add-sc-license
vbaranov Feb 13, 2024
1eb0647
Minor changes
varasev Sep 11, 2023
b6859d3
Define chain type
varasev Sep 15, 2023
8cf0f63
Prepare zkevm_bridge table and its importer
varasev Dec 11, 2023
1515055
Add zkevm_bridge_l1_tokens table
varasev Dec 12, 2023
1fda56e
Small changes
varasev Dec 13, 2023
0092b1a
Draft
varasev Dec 13, 2023
a285285
Draft
varasev Dec 14, 2023
19ef37c
Prepare for filling and scanning zkevm_bridge_l1_tokens table
varasev Dec 18, 2023
3160770
Preliminary Indexer.Fetcher.Zkevm.BridgeL1
varasev Dec 19, 2023
09f2429
Add l2_token_address field for preliminary Indexer.Fetcher.Zkevm.Brid…
varasev Dec 19, 2023
4d77960
Refactor Indexer.Fetcher.Zkevm.BridgeL1
varasev Dec 19, 2023
7c0b0b1
Add Indexer.Fetcher.Zkevm.BridgeL2
varasev Dec 22, 2023
0d04196
Add Indexer.Transform.Zkevm.Bridge
varasev Dec 25, 2023
426b85b
Fix operation type
varasev Dec 25, 2023
cb29b6d
Fix Explorer.Chain.Import.Runner.Zkevm.BridgeOperations
varasev Dec 26, 2023
a93a312
Add API v2 for Polygon zkEVM bridge operations
varasev Dec 27, 2023
71ef381
Update changelog
varasev Jan 4, 2024
98099d8
Update changelog
varasev Jan 4, 2024
5931ec8
Add envs to common-blockscout.env
varasev Jan 4, 2024
d6a34da
Rename `uninserted` to `not inserted`
varasev Jan 4, 2024
85ff545
Small refactoring
varasev Jan 12, 2024
98c31ee
Remove redundant function
varasev Jan 12, 2024
7e6b81f
Fixes after rebase
varasev Jan 22, 2024
811f69e
Fixes for Chain.import related to CHAIN_TYPE
varasev Jan 23, 2024
ae812aa
Small refactoring
varasev Jan 24, 2024
a6d2a80
Move L1 RPC requests from realtime block handler to a separate GenServer
varasev Jan 31, 2024
5ffb2ea
Refactoring
varasev Feb 1, 2024
42314a6
Add doc comments for public functions
varasev Feb 2, 2024
2949f02
Fix spelling
varasev Feb 2, 2024
ce06032
Add Indexer.Fetcher.RollupL1ReorgMonitor module and remove duplicated…
varasev Feb 5, 2024
033ffb5
Update spelling
varasev Feb 5, 2024
e57ce96
Allow using Indexer.Fetcher.RollupL1ReorgMonitor for more than one mo…
varasev Feb 6, 2024
816b5d1
mix format and update spelling
varasev Feb 6, 2024
0ecf3fe
Use timestamp_to_datetime
varasev Feb 8, 2024
ec76391
Split RPC requests for blocks into chunks
varasev Feb 8, 2024
121092a
Refactor Indexer.Block.Fetcher
varasev Feb 13, 2024
b19e196
Reset GA cache
varasev Feb 13, 2024
98e80b3
Update chain.ex
varasev Feb 13, 2024
357a7d1
Update changelog
varasev Feb 14, 2024
e69c87e
Optimize addresses preloads in account abstraction proxy (#9377)
k1rill-fedoseev Feb 14, 2024
59cec00
Filter empty values in token update
vbaranov Feb 9, 2024
61df0a9
Merge pull request #9371 from blockscout/vb-filter-empty-values-in-to…
vbaranov Feb 14, 2024
d8fd9b2
Rename Zkevm to PolygonZkevm
varasev Feb 14, 2024
cef2819
Fix using of startblock/endblock in API v1 list endpoints: txlist, tx…
vbaranov Feb 14, 2024
c8167be
chore: bump actions/cache to v4 (#9393)
k1rill-fedoseev Feb 14, 2024
0e4b14b
More-Minimal Proxy support (#9396)
vbaranov Feb 14, 2024
4abc3df
Move missing ranges sanitize to a separate background migration
Qwerty5Uiop Feb 8, 2024
c8f4744
Merge pull request #9360 from blockscout/ap-move-sanitize-missing-ranges
vbaranov Feb 14, 2024
6ae6692
Merge pull request #9098 from blockscout/va-zkevm-bridge
vbaranov Feb 14, 2024
74cceb5
Improve marking of failed internal transactions (#9306)
k1rill-fedoseev Feb 15, 2024
b5382c3
Output user address as an object in API v2 for Shibarium (#9389)
varasev Feb 15, 2024
ad4d257
Fix Shibarium workflow name
vbaranov Feb 15, 2024
ebfc315
Fix outdated deps cache in CI (#9398)
k1rill-fedoseev Feb 15, 2024
389debb
Create Indexer.Fetcher.TokenInstance.{SanitizeERC721, SanitizeERC1155…
nikitosing Feb 15, 2024
4f2dc81
Retry ERC-721 token instance metadata fetch from baseURI + tokenID (#…
vbaranov Feb 15, 2024
068bf04
Filter out Vyper contracts in Solidityscan endpoint
vbaranov Feb 12, 2024
dc89d19
Return indexed raio 1 when there is only 0 block in the chain
vbaranov Feb 16, 2024
2334440
indexed_ratio_blocks value is 1, if no blocks
vbaranov Feb 16, 2024
15f708e
Merge pull request #9387 from blockscout/vb-solidity-scan-filter-out-…
nikitosing Feb 19, 2024
42425ed
Null round handling (#9403)
Qwerty5Uiop Feb 19, 2024
6bf70ae
Filecoin JSON RPC variant
vbaranov Feb 12, 2024
2da4d77
Fix index definition
vbaranov Feb 19, 2024
0a69f47
Fix parsing contract creation
vbaranov Feb 19, 2024
858f626
Bump core-js from 3.35.1 to 3.36.0 in /apps/block_scout_web/assets
dependabot[bot] Feb 19, 2024
bea2fbf
Bump @amplitude/analytics-browser in /apps/block_scout_web/assets
dependabot[bot] Feb 19, 2024
dd85b6c
Bump webpack from 5.90.1 to 5.90.3 in /apps/block_scout_web/assets
dependabot[bot] Feb 19, 2024
9bc63a5
Bump sass-loader from 14.1.0 to 14.1.1 in /apps/block_scout_web/assets
dependabot[bot] Feb 19, 2024
fe37a69
Merge pull request #9423 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 20, 2024
0008797
Merge pull request #9422 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 20, 2024
2f5c276
Merge pull request #9424 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 20, 2024
b212ec5
Merge pull request #9425 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 20, 2024
c9be63f
Bump sass from 1.70.0 to 1.71.0 in /apps/block_scout_web/assets
dependabot[bot] Feb 20, 2024
be9b1fc
Merge pull request #9421 from blockscout/dependabot/npm_and_yarn/apps…
vbaranov Feb 20, 2024
09b269b
Eliminate incorrect token transfers with empty token_ids
Qwerty5Uiop Feb 15, 2024
6907d87
Refactor weth transfers sanitizing
Qwerty5Uiop Feb 20, 2024
c118d87
Refactor token transfers migration name
Qwerty5Uiop Feb 20, 2024
c2868df
Merge pull request #9401 from blockscout/ap-token-transfers-empty-tok…
vbaranov Feb 20, 2024
f997b67
Add Enum.uniq before sanitizing token transfers
Qwerty5Uiop Feb 20, 2024
7e1a543
Merge pull request #9437 from blockscout/ap-uniq-token-before-sanitize
vbaranov Feb 20, 2024
c066a68
Token transfers denormalization
Qwerty5Uiop Feb 5, 2024
5fa357e
Denormalization names refactoring + small token transfer type fix
Qwerty5Uiop Feb 15, 2024
dbaedbc
Create token_transfers token_type index concurrently
Qwerty5Uiop Feb 15, 2024
ac736de
Add block_consensus to token_transfers
Qwerty5Uiop Feb 20, 2024
2006052
Update updated_at along with block consensus in internal transactions…
Qwerty5Uiop Feb 21, 2024
f554b0d
Merge pull request #9340 from blockscout/ap-token-transfers-denormali…
nikitosing Feb 21, 2024
41f8f1c
Refactoring, cover with tests
vbaranov Feb 20, 2024
e7d2dd0
Fetch coin balances in async mode in realtime fetcher (#9182)
Qwerty5Uiop Feb 21, 2024
a0e801a
Rename some Noves.fi proxy endpoints
vbaranov Feb 21, 2024
08bf588
Solidityscan integration enhancements
vbaranov Feb 21, 2024
727bf17
Merge pull request #9439 from blockscout/vb-solidiscan-integration-en…
vbaranov Feb 21, 2024
97ea7cc
Add `debug_traceBlockByNumber` to `method_to_url`
sl1depengwyn Feb 21, 2024
81bbf4b
Change bens address seach to get_address func
sevenzing Feb 21, 2024
a2bb240
Remove Noves.fi /describe endpoint since it is unused anymore
vbaranov Feb 21, 2024
d867be0
Merge pull request #9440 from blockscout/mf-geth-use-trace-url-trace-…
vbaranov Feb 21, 2024
9e9a6a3
update changelog
sevenzing Feb 21, 2024
758d64b
Fix quick search bug
nikitosing Feb 21, 2024
2384e9a
Changelog
nikitosing Feb 21, 2024
264c541
Merge pull request #9441 from blockscout/ll-update-bens
vbaranov Feb 21, 2024
aa1f7be
Merge pull request #9444 from blockscout/np-fix-quick-search
vbaranov Feb 21, 2024
7bb28d5
Merge pull request #9386 from blockscout/vb-filecon-jsonrpc
vbaranov Feb 21, 2024
97e7f6d
v6.2.0
vbaranov Feb 21, 2024
a86035a
Update master tag with pre-release workflow
vbaranov Feb 22, 2024
b361f78
add docker compose changes for gemini-3h
DaMandal0rian Feb 22, 2024
b1626cd
fix nginx proxy on container
DaMandal0rian Feb 22, 2024
38c2641
remove DB URL env variable
DaMandal0rian Feb 22, 2024
f94ee85
change fronend URLs env variables
DaMandal0rian Feb 23, 2024
cc25b76
update CI workflow
DaMandal0rian Feb 26, 2024
5826933
Merge branch 'master' of https://github.com/subspace/blockscout-backend
DaMandal0rian Feb 26, 2024
f357993
Merge branch 'master' into muhammad/blockscout
DaMandal0rian Feb 26, 2024
4219c8e
update CI workflow
DaMandal0rian Feb 26, 2024
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
18 changes: 10 additions & 8 deletions .github/workflows/deploy-subspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
env:
TAG_NAME: subspace
OTP_VERSION: "25.2.1"
ELIXIR_VERSION: "1.14.3"
ELIXIR_VERSION: "1.14.5"
RELEASE_VERSION: "6.2.0"

# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -20,18 +21,19 @@ env:
jobs:
publish_image:
name: Publish Docker image
env:
RELEASE_VERSION: 5.2.3
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.output-step.outputs.release-version }}
short-sha: ${{ steps.output-step.outputs.short-sha }}
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

# Will automatically make nice tags, see the table here https://github.com/docker/metadata-action#basic
- name: Docker meta
Expand All @@ -50,8 +52,8 @@ jobs:
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v3
- name: Build and push Docker image for backend
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
Expand All @@ -75,5 +77,5 @@ jobs:
AMPLITUDE_URL=
AMPLITUDE_API_KEY=
CACHE_ADDRESS_WITH_BALANCES_UPDATE_INTERVAL=
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta
BLOCKSCOUT_VERSION=v${{ env.RELEASE_VERSION }}-beta.+commit.${{ env.SHORT_SHA }}
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,24 @@ defmodule BlockScoutWeb.API.V2.BlockView do
end
end

"ethereum" ->
defp chain_type_fields(result, block, single_block?) do
if single_block? do
blob_gas_price = Block.transaction_blob_gas_price(block.transactions)
burnt_blob_transaction_fees = Decimal.mult(block.blob_gas_used || 0, blob_gas_price || 0)

result
|> Map.put("blob_gas_used", block.blob_gas_used)
|> Map.put("excess_blob_gas", block.excess_blob_gas)
|> Map.put("blob_gas_price", blob_gas_price)
|> Map.put("burnt_blob_fees", burnt_blob_transaction_fees)
else
result
|> Map.put("blob_gas_used", block.blob_gas_used)
|> Map.put("excess_blob_gas", block.excess_blob_gas)
end
end

_ ->
defp chain_type_fields(result, _block, _single_block?) do
result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ defmodule BlockScoutWeb.API.V2.TransactionView do
"nonce" => transaction.wrapped_nonce,
"to" =>
Helper.address_with_info(
single_tx? && conn,
conn,
transaction.wrapped_to_address,
transaction.wrapped_to_address_hash,
single_tx?,
Expand Down
1 change: 1 addition & 0 deletions apps/block_scout_web/test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.PolygonZkevm, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.RSK, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Shibarium, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Suave, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Beacon, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.BridgedTokens, :manual)
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo.Filecoin, :manual)

Expand Down
2 changes: 2 additions & 0 deletions apps/explorer/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ config :explorer, Explorer.Repo.Shibarium, timeout: :timer.seconds(80)

config :explorer, Explorer.Repo.Suave, timeout: :timer.seconds(80)

config :explorer, Explorer.Repo.Beacon, timeout: :timer.seconds(80)

config :explorer, Explorer.Repo.BridgedTokens, timeout: :timer.seconds(80)

config :explorer, Explorer.Repo.Filecoin, timeout: :timer.seconds(80)
Expand Down
4 changes: 4 additions & 0 deletions apps/explorer/config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ config :explorer, Explorer.Repo.Suave,
prepare: :unnamed,
timeout: :timer.seconds(60)

config :explorer, Explorer.Repo.Beacon,
prepare: :unnamed,
timeout: :timer.seconds(60)

config :explorer, Explorer.Repo.BridgedTokens,
prepare: :unnamed,
timeout: :timer.seconds(60)
Expand Down
1 change: 1 addition & 0 deletions apps/explorer/config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ config :explorer, Explorer.Repo.Account,
log: false

for repo <- [
Explorer.Repo.Beacon,
Explorer.Repo.PolygonEdge,
Explorer.Repo.PolygonZkevm,
Explorer.Repo.RSK,
Expand Down
1 change: 1 addition & 0 deletions apps/explorer/lib/explorer/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ defmodule Explorer.Application do
defp repos_by_chain_type do
if Mix.env() == :test do
[
Explorer.Repo.Beacon,
Explorer.Repo.PolygonEdge,
Explorer.Repo.PolygonZkevm,
Explorer.Repo.RSK,
Expand Down
44 changes: 10 additions & 34 deletions apps/explorer/lib/explorer/chain/block.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ defmodule Explorer.Chain.Block.Schema do
alias Explorer.Chain.Block.{Reward, SecondDegreeRelation}

@chain_type_fields (case Application.compile_env(:explorer, :chain_type) do
"ethereum" ->
elem(
quote do
field(:blob_gas_used, :decimal)
field(:excess_blob_gas, :decimal)
end,
2
)

"rsk" ->
elem(
quote do
Expand Down Expand Up @@ -147,36 +156,6 @@ defmodule Explorer.Chain.Block do
"""
Explorer.Chain.Block.Schema.generate()

if Application.compile_env(:explorer, :chain_type) == "rsk" do
field(:bitcoin_merged_mining_header, :binary)
field(:bitcoin_merged_mining_coinbase_transaction, :binary)
field(:bitcoin_merged_mining_merkle_proof, :binary)
field(:hash_for_merged_mining, :binary)
field(:minimum_gas_price, :decimal)
end

timestamps()

belongs_to(:miner, Address, foreign_key: :miner_hash, references: :hash, type: Hash.Address)

has_many(:nephew_relations, SecondDegreeRelation, foreign_key: :uncle_hash)
has_many(:nephews, through: [:nephew_relations, :nephew])

belongs_to(:parent, __MODULE__, foreign_key: :parent_hash, references: :hash, type: Hash.Full)

has_many(:uncle_relations, SecondDegreeRelation, foreign_key: :nephew_hash)
has_many(:uncles, through: [:uncle_relations, :uncle])

has_many(:transactions, Transaction)
has_many(:transaction_forks, Transaction.Fork, foreign_key: :uncle_hash)

has_many(:rewards, Reward, foreign_key: :block_hash)

has_many(:withdrawals, Withdrawal, foreign_key: :block_hash)

has_one(:pending_operations, PendingBlockOperation, foreign_key: :block_hash)
end

def changeset(%__MODULE__{} = block, attrs) do
block
|> cast(attrs, @required_attrs ++ @optional_attrs)
Expand Down Expand Up @@ -306,9 +285,6 @@ defmodule Explorer.Chain.Block do
end
end

defp base_fee_per_gas_to_wei(%Wei{} = wei), do: wei
defp base_fee_per_gas_to_wei(base_fee_per_gas), do: %Wei{value: Decimal.new(base_fee_per_gas)}

@uncle_reward_coef 32
@spec block_reward_by_parts(Block.t(), [Transaction.t()]) :: %{
block_number: block_number(),
Expand Down Expand Up @@ -346,7 +322,7 @@ defmodule Explorer.Chain.Block do
miner_hash: block.miner_hash,
static_reward: static_reward,
transaction_fees: %Wei{value: transaction_fees},
burnt_fees: burnt_fees || %Wei{value: Decimal.new(0)},
burnt_fees: %Wei{value: burnt_fees},
uncle_reward: uncle_reward
}
end
Expand Down
Loading
Loading