Skip to content

Commit 4c42651

Browse files
authored
Merge branch 'main' into errorsinlinea
2 parents 934c676 + b1352b5 commit 4c42651

File tree

72 files changed

+2904
-680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2904
-680
lines changed

.github/workflows/finalized-tag-updater-github-release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
name: Github Release for Finalized-Tag-Updater Besu Plugin
22
on:
3-
workflow_call:
4-
inputs:
5-
version:
6-
required: true
7-
type: string
8-
93
workflow_dispatch:
104
inputs:
115
version:

.github/workflows/main.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
prover: ${{ steps.filter.outputs.prover }}
2020
traces-api-facade: ${{ steps.filter.outputs.traces-api-facade }}
2121
transaction-exclusion-api: ${{ steps.filter.outputs.transaction-exclusion-api }}
22-
finalized-tag-updater: ${{ steps.filter.outputs.finalized-tag-updater }}
2322
has-changes-requiring-build: ${{ steps.filter-out.outputs.has-changes-requiring-build }}
2423
steps:
2524
- name: Checkout
@@ -105,14 +104,6 @@ jobs:
105104
- 'build.gradle'
106105
- 'gradle.properties'
107106
- 'settings.gradle'
108-
finalized-tag-updater:
109-
- 'jvm-libs/linea/core/long-running-service/**'
110-
- 'jvm-libs/linea/web3j-extensions/**'
111-
- 'jvm-libs/extensions/kotlin/**'
112-
- 'jvm-libs/extensions/futures/**'
113-
- 'finalized-tag-updater/**'
114-
- '.github/workflows/main.yml'
115-
- '.github/workflows/finalized-tag-updater-github-release.yml'
116107
- name: Filter out commit changes
117108
uses: dorny/paths-filter@v3
118109
id: filter-out
@@ -174,15 +165,6 @@ jobs:
174165
transaction_exclusion_api_image_tagged: ${{ needs.check-and-tag-images.outputs.image_tagged_transaction_exclusion_api }}
175166
secrets: inherit
176167

177-
# Comment out the auto build and release step below as the plugin release should be
178-
# by manual Github action for versioning control
179-
# finalized-tag-updater-jar-build-release:
180-
# needs: [ filter-commit-changes ]
181-
# if: ${{ always() && needs.filter-commit-changes.outputs.finalized-tag-updater == 'true' }}
182-
# uses: ./.github/workflows/finalized-tag-updater-github-release.yml
183-
# with:
184-
# version: '0.0.1'
185-
186168
testing:
187169
needs: [ store-image-name-and-tags, filter-commit-changes, check-and-tag-images ]
188170
if: ${{ always() && needs.filter-commit-changes.outputs.has-changes-requiring-build == 'true' }}

bridge-ui/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"dependencies": {
2323
"@consensys/linea-sdk": "0.3.0",
2424
"@headlessui/react": "2.1.9",
25-
"@tanstack/react-query": "5.59.3",
25+
"@tanstack/react-query": "5.62.16",
2626
"@wagmi/connectors": "5.1.15",
27-
"@wagmi/core": "2.13.8",
28-
"@web3modal/wagmi": "5.1.11",
27+
"@wagmi/core": "2.16.3",
28+
"@reown/appkit": "1.6.3",
29+
"@reown/appkit-adapter-wagmi": "1.6.3",
2930
"clsx": "^2.1.1",
3031
"compare-versions": "6.1.1",
3132
"date-fns": "4.1.0",
@@ -44,8 +45,8 @@
4445
"sharp": "0.33.5",
4546
"swiper": "11.1.14",
4647
"tailwind-merge": "^2.5.3",
47-
"viem": "2.21.19",
48-
"wagmi": "2.12.17",
48+
"viem": "2.22.4",
49+
"wagmi": "2.14.6",
4950
"zustand": "4.5.4"
5051
},
5152
"devDependencies": {

bridge-ui/src/components/ConnectButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useWeb3Modal } from "@web3modal/wagmi/react";
1+
import { useAppKit } from "@reown/appkit/react";
22
import { cn } from "@/utils/cn";
33
import { Button } from "./ui";
44

@@ -7,7 +7,7 @@ type ConnectButtonProps = {
77
};
88

99
export default function ConnectButton({ fullWidth }: ConnectButtonProps) {
10-
const { open } = useWeb3Modal();
10+
const { open } = useAppKit();
1111
return (
1212
<Button
1313
id="wallet-connect-btn"

bridge-ui/src/config/wagmi.ts

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,28 @@
1-
import { defaultWagmiConfig } from "@web3modal/wagmi/react/config";
2-
import { http, injected } from "@wagmi/core";
1+
import { http } from "@wagmi/core";
32
import { mainnet, sepolia, linea, lineaSepolia } from "@wagmi/core/chains";
4-
import { walletConnect, coinbaseWallet } from "@wagmi/connectors";
53
import { config } from "./config";
4+
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
5+
import { AppKitNetwork } from "@reown/appkit/networks";
66

77
if (!config.walletConnectId) throw new Error("Project ID is not defined");
88

9-
const metadata = {
10-
name: "Linea Bridge",
11-
description: `Linea Bridge is a bridge solution, providing secure and efficient cross-chain transactions between Layer 1 and Linea networks.
12-
Discover the future of blockchain interaction with Linea Bridge.`,
13-
url: "https://bridge.linea.build",
14-
icons: [],
15-
};
9+
export const chains: [AppKitNetwork, ...AppKitNetwork[]] = [mainnet, sepolia, linea, lineaSepolia];
1610

17-
const chains = [mainnet, sepolia, linea, lineaSepolia] as const;
18-
19-
export const wagmiConfig = defaultWagmiConfig({
20-
chains,
11+
export const wagmiAdapter = new WagmiAdapter({
12+
networks: chains,
2113
projectId: config.walletConnectId,
22-
metadata,
2314
multiInjectedProviderDiscovery: true,
2415
ssr: true,
25-
enableEIP6963: true,
16+
2617
batch: {
2718
multicall: true,
2819
},
29-
connectors: [
30-
walletConnect({
31-
projectId: config.walletConnectId,
32-
showQrModal: false,
33-
}),
34-
injected({ shimDisconnect: true }),
35-
coinbaseWallet({
36-
appName: "Linea Bridge",
37-
}),
38-
],
3920
transports: {
4021
[mainnet.id]: http(`https://mainnet.infura.io/v3/${process.env.NEXT_PUBLIC_INFURA_ID}`, { batch: true }),
4122
[sepolia.id]: http(`https://sepolia.infura.io/v3/${process.env.NEXT_PUBLIC_INFURA_ID}`, { batch: true }),
4223
[linea.id]: http(`https://linea-mainnet.infura.io/v3/${process.env.NEXT_PUBLIC_INFURA_ID}`, { batch: true }),
4324
[lineaSepolia.id]: http(`https://linea-sepolia.infura.io/v3/${process.env.NEXT_PUBLIC_INFURA_ID}`, { batch: true }),
4425
},
4526
});
27+
28+
export const wagmiConfig = wagmiAdapter.wagmiConfig;

bridge-ui/src/contexts/web3.context.tsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,39 @@
22

33
import { ReactNode } from "react";
44
import { WagmiProvider } from "wagmi";
5-
import { createWeb3Modal } from "@web3modal/wagmi/react";
65
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
76
import { config, wagmiConfig } from "@/config";
7+
import { createAppKit } from "@reown/appkit/react";
8+
import { chains, wagmiAdapter } from "@/config/wagmi";
89

910
const queryClient = new QueryClient();
1011

1112
if (!config.walletConnectId) throw new Error("Project ID is not defined");
1213

13-
createWeb3Modal({ wagmiConfig, projectId: config.walletConnectId });
14+
const metadata = {
15+
name: "Linea Bridge",
16+
description: `The Linea Bridge is a bridge solution, providing secure and efficient cross-chain transactions between Ethereum Layer 1 and Linea networks.
17+
Discover the future of blockchain interaction with Linea Bridge.`,
18+
url: "https://bridge.linea.build",
19+
icons: [],
20+
};
21+
22+
createAppKit({
23+
adapters: [wagmiAdapter],
24+
networks: chains,
25+
projectId: config.walletConnectId,
26+
metadata,
27+
features: {
28+
analytics: true,
29+
email: false,
30+
socials: false,
31+
swaps: false,
32+
onramp: false,
33+
history: false,
34+
},
35+
enableEIP6963: true,
36+
coinbasePreference: "eoaOnly",
37+
});
1438

1539
type Web3ProviderProps = {
1640
children: ReactNode;

contracts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ coverage.json
55
typechain
66
typechain-types
77
cache
8+
cache_forge
89
build
910
.openzeppelin
1011

contracts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ pnpm run test
167167
pnpm run test:reportgas
168168
169169
pnpm run coverage
170-
```
170+
```

contracts/contracts/interfaces/l1/ILineaRollup.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ interface ILineaRollup {
6767
}
6868

6969
/**
70-
* @notice Data stucture for compressed blob data submission.
70+
* @notice Data structure for compressed blob data submission.
7171
* @dev submissionData The supporting data for blob data submission excluding the compressed data.
7272
* @dev dataEvaluationClaim The data evaluation claim.
7373
* @dev kzgCommitment The blob KZG commitment.

contracts/contracts/test-contracts/LineaRollupV5.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ interface ILineaRollupV5 {
14041404
}
14051405

14061406
/**
1407-
* @notice Data stucture for compressed blob data submission.
1407+
* @notice Data structure for compressed blob data submission.
14081408
* @dev submissionData The supporting data for blob data submission excluding the compressed data.
14091409
* @dev dataEvaluationClaim The data evaluation claim.
14101410
* @dev kzgCommitment The blob KZG commitment.

contracts/contracts/test-contracts/TestLineaRollup.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,8 @@ contract TestLineaRollup is LineaRollup {
5151
function setShnarfFinalBlockNumber(bytes32 _shnarf, uint256 _finalBlockNumber) external {
5252
blobShnarfExists[_shnarf] = _finalBlockNumber;
5353
}
54+
55+
function setLastFinalizedState(uint256 _messageNumber, bytes32 _rollingHash, uint256 _timestamp) external {
56+
currentFinalizedState = _computeLastFinalizedState(_messageNumber, _rollingHash, _timestamp);
57+
}
5458
}

0 commit comments

Comments
 (0)