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

feat(protocol): major protocol upgrade #13389

Merged
merged 53 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
6f69132
feat(protocol): major protocol upgrade (#13254)
dantaik Mar 22, 2023
53bfe07
refactor
dantaik Mar 22, 2023
6a13380
Delete .gas-snapshot
dantaik Mar 22, 2023
177f41b
refactor(protocol): check if amount > 0 inside sendEther (#13390)
dantaik Mar 23, 2023
59cd9fa
Update packages/protocol/contracts/L2/TaikoL2.sol
dantaik Mar 23, 2023
6138b1f
refactor(protocol): address some comments from Brecht and Dani (#13428)
dantaik Mar 23, 2023
4ddbd9b
feat(protocol): make gasUsed of L2 blocks available on L1 (#13440)
dantaik Mar 24, 2023
0b8f7fe
refactor(protocol): various changes based on Brecht & Dani's feedback…
dantaik Mar 24, 2023
7b912ee
fix(protocol): allow deposit Ether to any address on L2 (#13426)
dantaik Mar 24, 2023
7c0dbcd
feat(protocol): instead of revert, emit a special event for conflicti…
dantaik Mar 25, 2023
85acf33
refactor(protocol): change TaikoToken's decimals from 18 to 8 (#13443)
dantaik Mar 25, 2023
e7cc30b
refactor(protocol): various small improvements (#13459)
dantaik Mar 27, 2023
0fc5ef6
feat(protocol): change time-based fee/reward calculation (#13442)
dantaik Mar 28, 2023
0e803e2
feat(protocol): add foundry deployment scripts (#13447)
dantaik Mar 29, 2023
935ba36
feat(protocol): enable graffiti for provers (#13512)
dong77 Mar 31, 2023
f91185b
refactor(protocol): remove prefix in hashMessage() (#13510)
dantaik Apr 2, 2023
fb1721b
Update packages/protocol/contracts/L1/libs/LibVerifying.sol
davidtaikocha Apr 2, 2023
7edd5ff
fix
dantaik Apr 5, 2023
e5509ac
fix
dantaik Apr 5, 2023
b467bef
feat(protocol): enable EIP-1559 for L2 (#13501)
dantaik Apr 5, 2023
112c45b
fix
dantaik Apr 5, 2023
d9d8d27
Update packages/protocol/contracts/L1/TaikoData.sol
dantaik Apr 5, 2023
887008b
cleanup
dantaik Apr 5, 2023
ac52f45
more
dantaik Apr 5, 2023
e5251dd
more
dantaik Apr 5, 2023
2efac0e
Merge branch 'main' into major_protocol_upgrade_rebase
davidtaikocha Apr 5, 2023
39d66e5
recommend changes
dantaik Apr 6, 2023
6af8a92
chore(protocol): update L1 deployment script to set treasure address …
davidtaikocha Apr 6, 2023
0509218
feat(protocol): refactor L2 genesis generation scripts / tests by fou…
davidtaikocha Apr 6, 2023
15523af
chore(protocol): update `test:foundry` npm script (#13561)
davidtaikocha Apr 6, 2023
2bad518
refactor(protocol): optimize keyForName (#13557)
dantaik Apr 6, 2023
702ddd8
resolve
dantaik Apr 6, 2023
f2ef668
refactor(protocol): split oracle proving into a function (#13552)
dong77 Apr 6, 2023
31fcaf3
feat(protocol): make parentGasUsed verifiable on L2 (#13560)
dantaik Apr 7, 2023
b3974ad
test(protocol): add a test to calculate and verify 1559 params for al…
dantaik Apr 7, 2023
624a4b5
Merge branch 'main' into major_protocol_upgrade_rebase
d1onys1us Apr 7, 2023
c40dbb3
test(protocol): add a fuzz test with a lot of blocks (#13543)
dantaik Apr 8, 2023
3b7469a
feat(protocol): allow multiple Taiko deployments to sync signals (#13…
dantaik Apr 8, 2023
670a85c
refactor(protocol): optimize proveBlock gas cost (#13571)
dantaik Apr 8, 2023
c6605db
Merge branch 'main' into major_protocol_upgrade_rebase
dantaik Apr 8, 2023
e8689cb
feat(protocol): update `TaikoL2.getBasefee` parameters (#13570)
davidtaikocha Apr 8, 2023
e18bf92
refactor(protocol): minor cleanup (#13578)
dantaik Apr 10, 2023
91cf930
refactor(protocol): minor optimize signal service merkle proof (#13579)
dantaik Apr 18, 2023
6095326
test(protocol): EtherVault tests in Foundry (#13625)
cyberhorsey Apr 20, 2023
4f15527
test(protocol): Token vault foundry tests (#13627)
cyberhorsey Apr 20, 2023
60eb6d9
feat(protocol): Calculate fee/reward based on proof time w/ 1559 math…
adaki2004 Apr 22, 2023
32d1df0
feat(protocol): enable ETH deposit from L1 to L2 using withdrawalsRoo…
dantaik Apr 22, 2023
c627df8
test(protocol): Bridge foundry tests (#13634)
cyberhorsey Apr 22, 2023
f55bd27
feat(protocol): allow proof cooldown period [2] (#13597)
dantaik Apr 23, 2023
796ddc4
refactor(protocol): optimize proving logics [3] (#13611)
dantaik Apr 23, 2023
7e2e1ad
test(protocol): Signal service foundry tests (#13632)
cyberhorsey Apr 23, 2023
913f17f
Update package.json
dantaik Apr 23, 2023
7f84e77
Merge branch 'main' into major_protocol_upgrade_rebase
dantaik Apr 23, 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
51 changes: 25 additions & 26 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,46 @@ jobs:

- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies

- name: protocol - Unit Tests
working-directory: ./packages/protocol
run: pnpm clean && pnpm test

- name: protocol - Integration Tests
working-directory: ./packages/protocol
run: pnpm test:integration

- name: protocol - Tokenomics Tests
working-directory: ./packages/protocol
run: pnpm test:tokenomics

- name: protocol - Bridge Tests
working-directory: ./packages/protocol
run: pnpm test:bridge

- name: protocol - Test Coverage
working-directory: ./packages/protocol
run: pnpm test:coverage
run: pnpm clean && pnpm compile:hardhat && pnpm test

- name: protocol - Generate Genesis
working-directory: ./packages/protocol
run: pnpm test:genesis

- name: protocol - Export ABIs
# TODO: CompilerError: Stack too deep
# - name: protocol - Test Coverage
# working-directory: ./packages/protocol
# run: pnpm test:coverage

- name: protocol - Run snapshot (foundry)
working-directory: ./packages/protocol
run: pnpm export:abi
run: pnpm snapshot

- name: protocol - Deploy L1 Contracts
working-directory: ./packages/protocol
run: pnpm deploy:hardhat

- name: protocol - Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./packages/protocol/coverage
flags: protocol
run: |
anvil &
while ! nc -z localhost 8545; do
sleep 1
done
pnpm deploy:foundry

# - name: protocol - Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# directory: ./packages/protocol/coverage
# flags: protocol

post-merge:
if: github.event.pull_request.merged == true
Expand Down
20 changes: 20 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[submodule "packages/protocol/lib/solmate"]
path = packages/protocol/lib/solmate
url = https://github.com/rari-capital/solmate
branch = v1.5.0
[submodule "packages/protocol/lib/openzeppelin-contracts-upgradeable"]
path = packages/protocol/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
branch = v4.8.2
[submodule "packages/protocol/lib/openzeppelin-contracts"]
path = packages/protocol/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = v4.8.2
[submodule "packages/protocol/lib/forge-std"]
path = packages/protocol/lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = chore/v1.5.1
[submodule "packages/protocol/lib/foundry-random"]
path = packages/protocol/lib/foundry-random
url = https://github.com/joejordan/foundry-random
branch = v1.0.2
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
[![Twitter Follow](https://img.shields.io/twitter/follow/taikoxyz?style=social)](https://twitter.com/taikoxyz)
[![Discord](https://img.shields.io/discord/984015101017346058?color=%235865F2&label=Discord&logo=discord&logoColor=%23fff)](https://discord.gg/taikoxyz)
[![GitPOAP Badge](https://public-api.gitpoap.io/v1/repo/taikoxyz/taiko-mono/badge)](https://www.gitpoap.io/gh/taikoxyz/taiko-mono)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/taikoxyz/taiko-mono/protocol.yml?branch=main&label=Protocol&logo=github)](https://github.com/taikoxyz/taiko-mono/actions/workflows/protocol.yml)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/taikoxyz/taiko-mono/relayer.yml?branch=main&label=Relayer&logo=github)](https://github.com/taikoxyz/taiko-mono/actions/workflows/relayer.yml)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/taikoxyz/taiko-mono/bridge-ui.yml?branch=main&label=Bridge%20UI&logo=github)](https://github.com/taikoxyz/taiko-mono/actions/workflows/bridge-ui.yml)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/taikoxyz/taiko-mono/website.yml?branch=main&label=Website&logo=github)](https://github.com/taikoxyz/taiko-mono/actions/workflows/website.yml)
[![License](https://img.shields.io/github/license/taikoxyz/taiko-mono)](https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md)

</div>
Expand All @@ -41,7 +45,6 @@ taiko-mono/
│ ├── <a href="./packages/relayer">relayer</a>: Bridge backend relayer in Go
│ ├── <a href="./packages/starter-dapp">starter-dapp</a>: Template for Taiko dapps
│ ├── <a href="./packages/status-page">status-page</a>: Taiko protocol status page
│ ├── <a href="./packages/tokenomics">tokenomics</a>: Taiko tokenomics simulations
│ ├── <a href="./packages/website">website</a>: Main documentation website at taiko.xyz (https://taiko.xyz/)
│ └── <a href="./packages/whitepaper">whitepaper</a>: Whitepaper source files with automated publishing
...
Expand Down
16 changes: 7 additions & 9 deletions packages/bridge-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,18 @@

## [0.3.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.2.0...bridge-ui-v0.3.0) (2023-03-15)


### Features

* **bridge-ui:** custom recipient address ([#13309](https://github.com/taikoxyz/taiko-mono/issues/13309)) ([56d8848](https://github.com/taikoxyz/taiko-mono/commit/56d884812b3f12a52895bc666cb25e6edbe6eba0))
* **bridge-ui:** fetch transactions from relayer api ([#13244](https://github.com/taikoxyz/taiko-mono/issues/13244)) ([9732cc0](https://github.com/taikoxyz/taiko-mono/commit/9732cc084ed99196a4cd2ccedf9187af4d289ed6))
* **bridge-ui:** support both bull and horse tokens on the bridge UI ([#13249](https://github.com/taikoxyz/taiko-mono/issues/13249)) ([f9f38bb](https://github.com/taikoxyz/taiko-mono/commit/f9f38bb075c02c7976e0d04c84e4b8b5ac255644))
* **bridge-ui:** support route param to directly open transactions tab ([#13281](https://github.com/taikoxyz/taiko-mono/issues/13281)) ([b4c31cd](https://github.com/taikoxyz/taiko-mono/commit/b4c31cd8566b834cbf83a434c705fb281d375d12))

- **bridge-ui:** custom recipient address ([#13309](https://github.com/taikoxyz/taiko-mono/issues/13309)) ([56d8848](https://github.com/taikoxyz/taiko-mono/commit/56d884812b3f12a52895bc666cb25e6edbe6eba0))
- **bridge-ui:** fetch transactions from relayer api ([#13244](https://github.com/taikoxyz/taiko-mono/issues/13244)) ([9732cc0](https://github.com/taikoxyz/taiko-mono/commit/9732cc084ed99196a4cd2ccedf9187af4d289ed6))
- **bridge-ui:** support both bull and horse tokens on the bridge UI ([#13249](https://github.com/taikoxyz/taiko-mono/issues/13249)) ([f9f38bb](https://github.com/taikoxyz/taiko-mono/commit/f9f38bb075c02c7976e0d04c84e4b8b5ac255644))
- **bridge-ui:** support route param to directly open transactions tab ([#13281](https://github.com/taikoxyz/taiko-mono/issues/13281)) ([b4c31cd](https://github.com/taikoxyz/taiko-mono/commit/b4c31cd8566b834cbf83a434c705fb281d375d12))

### Bug Fixes

* **bridge-ui:** minor transactions list fix ([#13266](https://github.com/taikoxyz/taiko-mono/issues/13266)) ([4e78865](https://github.com/taikoxyz/taiko-mono/commit/4e788655ebd508eca3e1665ecb50f3010d2f51af))
* **bridge-ui:** transaction and pendingTransaction refactor ([#13307](https://github.com/taikoxyz/taiko-mono/issues/13307)) ([9d215cf](https://github.com/taikoxyz/taiko-mono/commit/9d215cfe5ac6863405390444672a1e70e7501032))
* **website,bridge-ui:** broken docs link + remove deprecated note in docs ([#13259](https://github.com/taikoxyz/taiko-mono/issues/13259)) ([912c155](https://github.com/taikoxyz/taiko-mono/commit/912c15595d7b0e3e2b4ec62fbcebeaf9dbc9db66))
- **bridge-ui:** minor transactions list fix ([#13266](https://github.com/taikoxyz/taiko-mono/issues/13266)) ([4e78865](https://github.com/taikoxyz/taiko-mono/commit/4e788655ebd508eca3e1665ecb50f3010d2f51af))
- **bridge-ui:** transaction and pendingTransaction refactor ([#13307](https://github.com/taikoxyz/taiko-mono/issues/13307)) ([9d215cf](https://github.com/taikoxyz/taiko-mono/commit/9d215cfe5ac6863405390444672a1e70e7501032))
- **website,bridge-ui:** broken docs link + remove deprecated note in docs ([#13259](https://github.com/taikoxyz/taiko-mono/issues/13259)) ([912c155](https://github.com/taikoxyz/taiko-mono/commit/912c15595d7b0e3e2b4ec62fbcebeaf9dbc9db66))

## [0.2.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.1.2...bridge-ui-v0.2.0) (2023-03-01)

Expand Down
6 changes: 2 additions & 4 deletions packages/bridge-ui/src/proof/ProofService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,9 @@ const invalidStorageProof2: EthGetProofResponse = {
};

const expectedProof =
'0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000380a7881266ca0a344c43cb24175d9dbd243b58d45d6ae6ad71310a273a3d1d3afb1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347000000000000000000000000ea674fdde714fd979de3edf0f56aa9716b898ec8c0dcf937b3f6136dd70a1ad11cc57b040fd410f3c49a5146f20c732895a3cc217273ade6b6ed865a9975ac281da23b90b141a8b607d874d2cd95e65e81336f8e74bb61e381e9238a08b169580f3cbf9b8b79d7d5ee708d3e286103eb291dfd0800000000000400000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000020000000000000000000000000000000000000000000000000100000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b0000000000000000000000000000000000000000000000000000000000000300f5ba25df1e92e89a09e0b32063b81795f631100801158f5fa733f2ba26843bd0000000000000000000000000000000000000000000000000000000000000007b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001265746865726d696e652d75732d7765737431000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022e1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';

'0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000380a7881266ca0a344c43cb24175d9dbd243b58d45d6ae6ad71310a273a3d1d3afb1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347000000000000000000000000ea674fdde714fd979de3edf0f56aa9716b898ec8c0dcf937b3f6136dd70a1ad11cc57b040fd410f3c49a5146f20c732895a3cc217273ade6b6ed865a9975ac281da23b90b141a8b607d874d2cd95e65e81336f8e74bb61e381e9238a08b169580f3cbf9b8b79d7d5ee708d3e286103eb291dfd0800000000000400000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000020000000000000000000000000000000000000000000000000100000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b0000000000000000000000000000000000000000000000000000000000000300f5ba25df1e92e89a09e0b32063b81795f631100801158f5fa733f2ba26843bd0000000000000000000000000000000000000000000000000000000000000007b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001265746865726d696e652d75732d776573743100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022e1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';
const expectedProofWithBaseFee =
'0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000380a7881266ca0a344c43cb24175d9dbd243b58d45d6ae6ad71310a273a3d1d3afb1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347000000000000000000000000ea674fdde714fd979de3edf0f56aa9716b898ec8c0dcf937b3f6136dd70a1ad11cc57b040fd410f3c49a5146f20c732895a3cc217273ade6b6ed865a9975ac281da23b90b141a8b607d874d2cd95e65e81336f8e74bb61e381e9238a08b169580f3cbf9b8b79d7d5ee708d3e286103eb291dfd0800000000000400000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000020000000000000000000000000000000000000000000000000100000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b0000000000000000000000000000000000000000000000000000000000000300f5ba25df1e92e89a09e0b32063b81795f631100801158f5fa733f2ba26843bd0000000000000000000000000000000000000000000000000000000000000007b00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001265746865726d696e652d75732d7765737431000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022e1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';

'0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000380a7881266ca0a344c43cb24175d9dbd243b58d45d6ae6ad71310a273a3d1d3afb1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347000000000000000000000000ea674fdde714fd979de3edf0f56aa9716b898ec8c0dcf937b3f6136dd70a1ad11cc57b040fd410f3c49a5146f20c732895a3cc217273ade6b6ed865a9975ac281da23b90b141a8b607d874d2cd95e65e81336f8e74bb61e381e9238a08b169580f3cbf9b8b79d7d5ee708d3e286103eb291dfd0800000000000400000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000020000000000000000000000000000000000000000000000000100000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b000000000000000000000000000000000000000000000000000000000000007b0000000000000000000000000000000000000000000000000000000000000300f5ba25df1e92e89a09e0b32063b81795f631100801158f5fa733f2ba26843bd0000000000000000000000000000000000000000000000000000000000000007b00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001265746865726d696e652d75732d776573743100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022e1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';
const srcChain = 167001;
const destChain = 31336;

Expand Down
5 changes: 1 addition & 4 deletions packages/bridge-ui/src/proof/ProofService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ export class ProofService implements Prover {
blockHeader: BlockHeader,
) {
// RLP encode the proof together for LibTrieProof to decode
const encodedProof = ethers.utils.defaultAbiCoder.encode(
['bytes', 'bytes'],
[RLP.encode(proof.accountProof), RLP.encode(proof.storageProof[0].proof)],
);
const encodedProof = RLP.encode(proof.storageProof[0].proof);

// encode the SignalProof struct from LibBridgeSignal
const signalProof = ethers.utils.defaultAbiCoder.encode(
Expand Down
3 changes: 2 additions & 1 deletion packages/protocol/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
artifacts
cache
coverage
coverage
lib
31 changes: 31 additions & 0 deletions packages/protocol/.gas-snapshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
GasComparisonTest:testCompare_hashKey() (gas: 8911)
GasComparisonTest:testCompare_hashString(uint256) (runs: 256, μ: 13091, ~: 12617)
GasComparisonTest:testCompare_hashTwo() (gas: 6991)
GasComparisonTest:testCompare_increment(uint256) (runs: 256, μ: 256896, ~: 210364)
GasComparisonTest:testCompare_loadBlockMetadata() (gas: 16191)
GasComparisonTest:testCompare_return() (gas: 8617)
GasComparisonTest:testCompare_send0Ether() (gas: 6531)
LibFixedPointMathTest:testExp1() (gas: 697)
LibFixedPointMathTest:testExp3() (gas: 1533)
LibFixedPointMathTest:testExpGas() (gas: 5328)
LibFixedPointMathTest:testExpLargest() (gas: 3929)
LibFixedPointMathTest:testExpSmallest() (gas: 3909)
LibFixedPointMathTest:testExpSome() (gas: 3827)
TaikoL1Test:test_block_time_decreases_but_fee_remains() (gas: 14868515)
TaikoL1Test:test_block_time_increases_and_fee_decreases() (gas: 14862630)
TaikoL1Test:test_more_blocks_than_ring_buffer_size() (gas: 16845131)
TaikoL1Test:test_multiple_blocks_in_one_L1_block() (gas: 671686)
TaikoL1Test:test_verifying_multiple_blocks_once() (gas: 2827699)
TestLib1559Math:test1559_2X1XRatio(uint16) (runs: 256, μ: 489986, ~: 489986)
TestLib1559Math:test1559_SpecalCases(uint16) (runs: 256, μ: 19937, ~: 19937)
TestLibTokenomics:testTokenomicsFeeCalcWithNonZeroStartBips() (gas: 4930)
TestLibTokenomics:testTokenomicsFeeCalcWithZeroStartBips() (gas: 4875)
TestLibTokenomics:testTokenomicsRewardCalcWithNonZeroStartBips() (gas: 5571)
TestLibTokenomics:testTokenomicsRewardCalcWithZeroStartBips() (gas: 4799)
TestTaikoL2:testAnchorSigning(bytes32) (runs: 256, μ: 23542, ~: 23563)
TestTaikoL2:testAnchorTxsBlocktimeConstant() (gas: 7245201)
TestTaikoL2:testAnchorTxsBlocktimeDecreasing() (gas: 2184915)
TestTaikoL2:testAnchorTxsBlocktimeIncreasing() (gas: 2046549)
TestTaikoL2:testAnchorTxsFailByNonTaikoL2Signer() (gas: 62542)
TestTaikoL2:testAnchorTxsFailInTheSameBlock() (gas: 161344)
TestTaikoL2:testGetBasefee() (gas: 229572)
Loading