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

Implement MIP-74 #992

Open
wants to merge 92 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 82 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
c95198b
feat: created bridge config for db
Icarus131 Nov 9, 2024
ad77f79
fix: changed call to `from_env` to newer `from_bridge_config`
Icarus131 Nov 9, 2024
3ec0ad6
refactor: updated config field to indexer
Icarus131 Nov 10, 2024
750f5ac
restructure data storage
Primata Nov 20, 2024
7d103fa
Merge branch 'feature/trusted-relayer' into bridge-config-823
0xmovses Nov 20, 2024
d79517f
Merge pull request #824 from Icarus131/bridge-config-823
0xmovses Nov 20, 2024
d6861b1
remove: old contracts and cleanup
0xmovses Nov 20, 2024
82bf66c
Merge pull request #859 from movementlabsxyz/l-monninger/indexer-even…
l-monninger Nov 20, 2024
42eaaa1
Merge branch 'feature/trusted-relayer' into 0xmovses/native-bridge-co…
0xmovses Nov 20, 2024
0e4d472
Merge pull request #883 from movementlabsxyz/0xmovses/native-bridge-c…
0xmovses Nov 20, 2024
f6239c5
update state logic with the bridge protocol
musitdev Nov 20, 2024
227675d
add rate limiter
Primata Nov 20, 2024
c4a17dc
question
Primata Nov 20, 2024
265ef25
second option
Primata Nov 20, 2024
6497824
add second option
Primata Nov 20, 2024
0df72ee
add rate limit considering insurancFund balance
Primata Nov 21, 2024
a062b0f
Bridge: Update relayer utils crate + state logic (#891)
musitdev Nov 21, 2024
c724884
rate limiting test
Primata Nov 21, 2024
561ff25
add date library locally
Primata Nov 21, 2024
dacca31
update to outbound, inbound
Primata Nov 21, 2024
2acf5c9
add function descriptions
Primata Nov 21, 2024
432bbb7
add natspec
Primata Nov 21, 2024
6de5496
fix: naming, no need for date time.
l-monninger Nov 22, 2024
24c26bd
remove date library
Primata Nov 22, 2024
073b91a
merge conflicts
Primata Nov 22, 2024
f1f28b2
fixes
Primata Nov 22, 2024
f59a5ae
Merge pull request #889 from movementlabsxyz/primata/rate-limiter
Primata Nov 22, 2024
98f60c4
Update protocol-units/bridge/state_logic.md
musitdev Nov 26, 2024
1492c47
Movement Client and Relayer Code Update for Native Bridge (#893)
andygolay Nov 27, 2024
94f9e36
correct operator with relayer
musitdev Nov 27, 2024
9e15c11
fix: bridge setup NativeBridge abi file not found
andygolay Nov 28, 2024
372f296
fix: transaction_fee::copy_capabilities_for_native_bridge in store_mi…
andygolay Nov 28, 2024
1dfce4a
fix: in test_movement_client_initiate_transfer, get Initiated event a…
andygolay Nov 28, 2024
0c98d0c
fix: modify asserts in test_movement_initiate_transfer to remove view…
andygolay Nov 28, 2024
63bbe2d
fix FAILED TO DESERIALIZE ARGUMENT error in complete_bridge_transfer.…
andygolay Nov 28, 2024
587cb18
test: combine bytes and take hash, to calculate bridge_transfer_id. t…
andygolay Nov 28, 2024
f86bf71
Merge branch 'feature/trusted-relayer' into musitdev/native_bridge_logic
musitdev Dec 2, 2024
cbb2c07
Merge pull request #886 from movementlabsxyz/musitdev/native_bridge_l…
0xmovses Dec 2, 2024
aff5ab2
update aptos rev and correct setup build issue
musitdev Dec 2, 2024
2219ee5
Merge pull request #910 from movementlabsxyz/musitdev/update_aptos_rev
0xmovses Dec 2, 2024
49e6c86
fix: conflicts
0xmovses Dec 2, 2024
ba0a732
merge origin/feature/trusted-relayer
andygolay Dec 2, 2024
04862cd
remove: bridge-indexer from build
0xmovses Dec 3, 2024
388c7ba
Merge branch 'feature/trusted-relayer' into musitdev/update_mvt_test
0xmovses Dec 3, 2024
67b2185
fix: conflicts, merge main
0xmovses Dec 3, 2024
aa8327f
Merge branch 'feature/trusted-relayer' into musitdev/update_mvt_test
0xmovses Dec 3, 2024
c135974
Merge pull request #911 from movementlabsxyz/musitdev/update_mvt_test
0xmovses Dec 3, 2024
9492f7e
update: alloy-primitives to compatiable version
0xmovses Dec 3, 2024
9cff4da
fix: Cargo.lock
0xmovses Dec 3, 2024
32d81f3
merge conflicts
Primata Dec 3, 2024
2ee5266
alter fee script
Primata Dec 3, 2024
6b16ba4
fix: test_movement_client_complete_transfer passes, added random nonc…
andygolay Dec 3, 2024
5c6add1
remove htlc rate limiter
Primata Dec 3, 2024
66085ba
Merge pull request #915 from movementlabsxyz/andygolay/fix-test-movem…
0xmovses Dec 3, 2024
2817329
Feat: E2E Eth -> Movement happy path passes (#916)
andygolay Dec 4, 2024
ce0b86d
update: use branch not rev
0xmovses Dec 4, 2024
14c8a2f
Merge pull request #919 from movementlabsxyz/0xmovses/use-movement-aptos
0xmovses Dec 4, 2024
56130fd
fix: remove update_birdge_fee.move script for now until 101 is merged…
andygolay Dec 4, 2024
19b327f
fix: add update_bridge_fee.move script back in now that 101 is merged…
andygolay Dec 4, 2024
68754b8
update: ignore unimplemented test
0xmovses Dec 5, 2024
f50e90c
update: ignore failing event test
0xmovses Dec 5, 2024
71f30ee
Fix mvmt client test (#924)
0xmovses Dec 5, 2024
209702f
fix: change movement-faucet initial_delay_seconds to 30 seconds to fi…
andygolay Dec 6, 2024
9894fe8
Remove initiator hex encoding from Movement client complete tests (#928)
andygolay Dec 6, 2024
0525b8b
Fix `test_movement_client_initiate_transfer` and E2E tests (#935)
andygolay Dec 9, 2024
d028cf3
fix: merge conflicts
0xmovses Dec 10, 2024
09efa95
Fix bridge process-compose links (#941)
0xmovses Dec 10, 2024
e1eee45
update: use branch movement
0xmovses Dec 11, 2024
8d41dfe
Bridge: Restart the indexer (#942)
musitdev Dec 12, 2024
7eca0bd
Fix Move scripts so they compile (#947)
andygolay Dec 12, 2024
2c27679
fix: rename module native_bridge
andygolay Dec 12, 2024
f78aed2
Only Inbound Rate Limiting (#952)
Primata Dec 13, 2024
c65c9c3
fix: conflicts
0xmovses Dec 16, 2024
5b3fa32
correct Liam remarks and make relayer unit test build
musitdev Dec 16, 2024
52d61de
accumulation test
Primata Dec 17, 2024
4398824
remove unnecessary comment
musitdev Dec 17, 2024
453e877
merge branch 'feature/trusted-relayer' of github.com:movementlabsxyz/…
musitdev Dec 17, 2024
60debe3
rename min required risk den
Primata Dec 17, 2024
1988f32
Merge branch 'main' into feature/trusted-relayer
0xmovses Dec 23, 2024
d228fb2
Merge branch 'feature/trusted-relayer' of https://github.com/movement…
Primata Jan 4, 2025
cbd4ee6
implement mip74
Primata Jan 9, 2025
5fb55c9
add tests
Primata Jan 9, 2025
071bf71
rename risk denominator to insurance budget divider
Primata Jan 10, 2025
70edbe3
INativeBridge insuranceBudgetDivider
Primata Jan 10, 2025
eb28bd4
add v2 periphery
Primata Jan 25, 2025
cf56eb9
fix: remove lz submodule
Primata Jan 25, 2025
ccdae39
sync submodules
Primata Jan 26, 2025
553f5a3
Remove layer-zero submodule
Primata Jan 26, 2025
188f091
fix: deploy
Primata Jan 26, 2025
d528f73
fix: internal rateLimiting
Primata Jan 26, 2025
208fc85
fix: remove irrelevant runs
Primata Jan 26, 2025
6fcd0b8
fix: change insurance budget lower bound to 1
Primata Jan 28, 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
100 changes: 48 additions & 52 deletions .github/workflows/checks-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,57 +345,53 @@ jobs:
forge test --fork-url https://ethereum-sepolia-rpc.publicnode.com -vv
"

## any use of Move CLI requires ubuntu-24.04 and to not run on buildjet
# bridge-client-integration:
# if: github.event.label.name == 'cicd:bridge' || github.ref == 'refs/heads/main'
# strategy:
# matrix:
# include:
# - os: ubuntu-24.04
# arch: x86_64
# runs-on: ubuntu-24.04
#
# runs-on: ${{ matrix.runs-on }}
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Install Movement CLI
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential
# sudo apt-get install -y binutils
# sudo apt-get install -y lld
# sudo apt-get install -y libudev-dev
# sudo apt-get install -y libdw-dev
# which ld
# which lld
# which gcc
# which cc
# echo $PATH
# export GIT_CLONE_PROTECTION_ACTIVE=false
# git clone https://github.com/movementlabsxyz/aptos-core/
# cd aptos-core
# cargo build -p movement
# sudo cp target/debug/movement /usr/local/bin/
# cd -
#
# - name: Install Nix
# uses: DeterminateSystems/nix-installer-action@main
#
# - uses: cachix/cachix-action@v15
# with:
# name: movementlabs
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
#
# - name: Run eth_movement tests
# run: |
# nix develop --command bash -c "rust_backtrace=1 cargo test --test eth_movement -- --nocapture --test-threads=1"
#
# - name: Run movement_eth tests
# run: |
# nix develop --command bash -c "rust_backtrace=1 cargo test --test movement_eth -- --nocapture --test-threads=1"
# any use of Move CLI requires ubuntu-24.04 and to not run on buildjet
bridge-client-integration:
if: github.event.label.name == 'cicd:bridge' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/trusted-relayer'
strategy:
matrix:
include:
- os: ubuntu-24.04
arch: x86_64
runs-on: ubuntu-24.04
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Movement CLI
run: |
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y binutils
sudo apt-get install -y lld
sudo apt-get install -y libudev-dev
sudo apt-get install -y libdw-dev
which ld
which lld
which gcc
which cc
echo $PATH
export GIT_CLONE_PROTECTION_ACTIVE=false
git clone https://github.com/movementlabsxyz/aptos-core/
cd aptos-core
cargo build -p movement
sudo cp target/debug/movement /usr/local/bin/
cd -
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: movementlabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run eth_movement tests
run: |
nix develop --command bash -c "rust_backtrace=1 cargo test --test client_eth_tests -- --nocapture --test-threads=1"
- name: Run movement_eth tests
run: |
nix develop --command bash -c "rust_backtrace=1 cargo test --test client_mvt_tests -- --nocapture --test-threads=1"
- name: Run Relayer tests
run: |
nix develop --command bash -c "rust_backtrace=1 cargo test --test relayer -- --nocapture --test-threads=1"

# Indexer:
# strategy:
Expand All @@ -416,4 +412,4 @@ jobs:
#
# - name: Run Indexer tests in nix environment
# # adjust the log level while debugging
# run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just movement-full-node native build.celestia-local.indexer.hasura.indexer-test -t=false"
# run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just movement-full-node native build.celestia-local.indexer.hasura.indexer-test -t=false"
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
[submodule "protocol-units/tokens/mock/testnet/holesky/lib/openzeppelin-contracts"]
path = protocol-units/tokens/mock/testnet/holesky/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/BokkyPooBahsDateTimeLibrary"]
path = lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
[submodule "protocol-units/bridge/contracts/lib/BokkyPooBahsDateTimeLibrary"]
path = protocol-units/bridge/contracts/lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
Loading
Loading