Skip to content

Commit

Permalink
Add Linea Chain (#53)
Browse files Browse the repository at this point in the history
* Add Linea Chain

* Update CI.yml

* Update blockchain_api_test.py

* Update blockchain_api_test.py

---------

Co-authored-by: liav-certora <[email protected]>
Co-authored-by: liav-certora <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2024
1 parent a17c9ca commit ae1578b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
if: |
(
(github.event_name == 'pull_request_review' && github.event.review.state == 'approved') ||
github.event.pull_request.user.login == 'nivcertora' ||
github.event.pull_request.user.login == 'liav-certora'
(github.event_name == 'pull_request' &&
(github.event.pull_request.user.login == 'nivcertora' ||
github.event.pull_request.user.login == 'liav-certora')
)
) &&
github.event.pull_request.base.ref == 'main'
env:
Expand Down
3 changes: 2 additions & 1 deletion Quorum/apis/block_explorers/chains_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class ChainAPI:
Chain.OPT: 10,
Chain.POLY: 137,
Chain.SCROLL: 534352,
Chain.ZK: 324
Chain.ZK: 324,
Chain.LINEA: 59144,
}

BASE_URL = "https://api.etherscan.io/v2/api?chainid={chain_id}&apikey={api_key}"
Expand Down
3 changes: 2 additions & 1 deletion Quorum/auto_report/aave_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class ChainInfo:
'56': ChainInfo('BNB Smart Chain', 'https://bscscan.com/address'),
'100': ChainInfo('Gnosis', 'https://gnosisscan.io/address'),
'534352': ChainInfo('Scroll', 'https://scrollscan.com/address'),
'324': ChainInfo('zkSync Era', 'https://era.zksync.network/address')
'324': ChainInfo('zkSync Era', 'https://era.zksync.network/address'),
"59144": ChainInfo('Linea', 'https://lineascan.build/'),
}


Expand Down
6 changes: 3 additions & 3 deletions Quorum/tests/blockchain_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@


@pytest.mark.parametrize(
"chain, contract_address",
'chain, contract_address',
[
(Chain.SCROLL, "0x32f924C0e0F1Abf5D1ff35B05eBc5E844dEdD2A9"),
(Chain.ZK, "0x162C97F6B4FA5a915A44D430bb7AE0eE716b3b87")
(Chain.SCROLL, '0x32f924C0e0F1Abf5D1ff35B05eBc5E844dEdD2A9'),
(Chain.ZK, '0x162C97F6B4FA5a915A44D430bb7AE0eE716b3b87')
]
)
def test_chain_api_integration(chain, contract_address):
Expand Down
3 changes: 2 additions & 1 deletion Quorum/utils/chain_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ class Chain(StrEnum):
OPT = 'OPT'
POLY = 'POLY'
SCROLL = 'SCROLL'
ZK = 'ZKSYNC'
ZK = 'ZKSYNC'
LINEA= 'LINEA'
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20241229.121340.274243
20241230.115246.405678

0 comments on commit ae1578b

Please sign in to comment.