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

Feature: Merge mangata-node repository code #411

Merged
merged 3,740 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3740 commits
Select commit Hold shift + click to select a range
34199bb
remove unused try_into impl
mateuszaaa Aug 21, 2024
3b1d161
align tests
mateuszaaa Aug 21, 2024
9c44d70
get rid of FailedWithdrawalResolution
mateuszaaa Aug 22, 2024
76d1e0f
report status of processing request
mateuszaaa Aug 22, 2024
2c0c488
add sequencerCancellation group in e2e tests (#793)
AlexChetverov Aug 22, 2024
5b4533a
manual refund for failed deposits
mateuszaaa Aug 22, 2024
3d2d244
trigger maintenance mode of cancel_resolution failure
mateuszaaa Aug 23, 2024
b534069
bump sdk
mateuszaaa Aug 23, 2024
735b67e
apply formatting
mateuszaaa Aug 23, 2024
86fadff
[MGX-1369] connect with jira
mateuszaaa Aug 23, 2024
8e14e6d
[MGX-1193] connect with jira
mateuszaaa Aug 23, 2024
1f8a626
remove not needed test
mateuszaaa Aug 26, 2024
8351b7f
add new group of tests
AlexChetverov Aug 27, 2024
9002927
Add l1RolldownUpdate group of tests (#794)
AlexChetverov Aug 27, 2024
d7ba9ba
[MGX-1369] [MGX-1193] Protocol simplification (#790)
mateuszaaa Aug 28, 2024
bc25c1b
[MGX-1370] Align manual batches
mateuszaaa Aug 28, 2024
e286b4e
Test for specific behaviour agreed with product team
mateuszaaa Aug 28, 2024
8eed098
[MGX-1366] - BEX - Maintanance mode alignments
mateuszaaa Aug 28, 2024
d3670b3
align formatting
mateuszaaa Aug 28, 2024
3463c5b
[MGX-1366][MGX-1370] Manual Batches & Maintanance Mode alignments (#795)
mateuszaaa Aug 28, 2024
316efad
add: disable mocks in tests on demand
mateuszaaa Aug 29, 2024
d7db05d
test_sequencer_updates_are_ignored_and_removed_in_maintanance_mode
mateuszaaa Aug 29, 2024
8522b53
align maintanance mode behaviour
mateuszaaa Aug 29, 2024
ea6be6c
test that same l1update can be provided again if was skipped in maint…
mateuszaaa Aug 29, 2024
f48cbf0
feat: Add multi-platform Docker image build for arm64 platform suppor…
tenequm Aug 29, 2024
c815e91
return read rights while skipping sequencer updates in maintanance mode
mateuszaaa Aug 29, 2024
2670a40
Merge branch 'eth-rollup-develop' into feature/mgx-1366
mateuszaaa Sep 2, 2024
164ebba
[MGX-1366] Manual Batches & Maintanance Mode alignments (#796)
mateuszaaa Sep 2, 2024
bdf697c
Provide specific error when withdraw not existing token
mateuszaaa Sep 3, 2024
c5af5af
[MGX-1406] Provide specific error when withdraw not existing token (#…
mateuszaaa Sep 3, 2024
d5b6a74
extract helpers methods for batch creation
mateuszaaa Sep 4, 2024
7ae3bb2
[MGX-1366] - add 'force_create_batch'
mateuszaaa Sep 4, 2024
2a1c277
[MGX-1366] add sudo only extrinsic 'force_create_batch' (#798)
mateuszaaa Sep 4, 2024
a6ac711
[MGX-1417] Only deposit recipient can refund failed deposit
mateuszaaa Sep 5, 2024
54dd94b
[MGX-1417] Only deposit recipient can refund failed deposit (#799)
mateuszaaa Sep 5, 2024
326cfec
typo 'TokenDoestNotExist' -> 'TokenDoesNotExist'
mateuszaaa Sep 5, 2024
688acd7
[fix] typo 'TokenDoestNotExist' -> 'TokenDoesNotExist' (#801)
mateuszaaa Sep 5, 2024
992a4f3
[MGX-1184] Store prometheus metrics as u128
mateuszaaa Sep 5, 2024
761b67e
[MGX-1184] Store prometheus metrics as u128 (#802)
mateuszaaa Sep 5, 2024
fc25f38
[MGX-1220] Make sure that MaxSequencers limits is applied per chain
mateuszaaa Sep 6, 2024
8d96e17
[MGX-1220] new 'StakeAction' parameter that determines wheter sequenc…
mateuszaaa Sep 6, 2024
9d0b827
Update Gasp erc20 address for test environment
mateuszaaa Sep 10, 2024
ce8477d
[MGX-1189] BEX - Contract/Node - Event observability
mateuszaaa Sep 10, 2024
5e350cc
GaspMockErc20 address update (#805)
mateuszaaa Sep 10, 2024
9277aee
[MGX-1189] BEX - Contract/Node - Event observability (#806)
mateuszaaa Sep 10, 2024
5fd8371
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
mateuszaaa Sep 10, 2024
7aca801
trigger ci
mateuszaaa Sep 10, 2024
6c5964b
[MGX-1220] Make sure that MaxSequencers limits is applied per chain (…
mateuszaaa Sep 11, 2024
a4b0adf
add 'StakeRemoved' event
mateuszaaa Sep 11, 2024
bcd7b50
add 'StakeRemoved' event (#807)
mateuszaaa Sep 11, 2024
54996cc
Align protocol messages with ferries
mateuszaaa Sep 12, 2024
17a97f7
issuance for sequencers, sequencer rewards, withdraw fee in rolldown …
vanderian Sep 13, 2024
e717703
rename group
AlexChetverov Sep 13, 2024
f9d308d
ci: add multiplatform image build for fast runtime image (#809)
tenequm Sep 13, 2024
78b2f08
deposit ferry impl
mateuszaaa Sep 13, 2024
8b81f84
support ferries of failed deposits
mateuszaaa Sep 17, 2024
89ff366
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
mateuszaaa Sep 19, 2024
95dbf0b
add tests for abi compatiblity
mateuszaaa Sep 19, 2024
bbbc455
implement ConvertBack for address converter
mateuszaaa Sep 19, 2024
ba9f3f5
add: ferry_deposit_unsafe
mateuszaaa Sep 19, 2024
247a5db
add: update_hash parameter for update_l2_from_l1
mateuszaaa Sep 19, 2024
6eacb1e
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
AlexChetverov Sep 23, 2024
e2cb076
reject updates with wrong hash
mateuszaaa Sep 23, 2024
9c10518
Regroup and rename test groups in e2e (#808)
AlexChetverov Sep 23, 2024
73344bd
Ferries (#812)
mateuszaaa Sep 23, 2024
3747c66
rename 'NotMangataLiquidityAsset' => 'NotPairedWithNativeAsset'
mateuszaaa Sep 24, 2024
1cbf601
[MGX-1239] remove Mangata from error name (#814)
mateuszaaa Sep 24, 2024
a3b5e28
fix cancel rights settlement
mateuszaaa Sep 24, 2024
d055888
Merge branch 'eth-rollup-develop' into feature/mgx-1465
mateuszaaa Sep 25, 2024
5b4d271
[fix] Cancel rights distribution (#817)
mateuszaaa Sep 25, 2024
c2529bb
Feature/upgrades (#811)
vanderian Sep 25, 2024
2e95e3d
do not allow for ferry deposits that were already ferried
mateuszaaa Sep 27, 2024
26de25a
Ferry fix - prevent ferrying deposits that were already executed (#820)
mateuszaaa Sep 27, 2024
30f3db9
add test group
AlexChetverov Oct 1, 2024
9b4af73
[MGX-1123] change withdraw fee to per chain vs const (#818)
vanderian Oct 1, 2024
0b86689
[MGX-1443] Feature/foundation membership (#819)
vanderian Oct 1, 2024
e23934d
Merge branch 'eth-rollup-develop' into feature/merkleRootBatchesTests
AlexChetverov Oct 3, 2024
1489198
add test group for rolldown withdrawal tests (#821)
AlexChetverov Oct 3, 2024
f333f04
split withdrawal rolldown tests
AlexChetverov Oct 10, 2024
63ed8e5
update token address
mateuszaaa Oct 11, 2024
aad3a37
Update GASP token address for local environment (#823)
mateuszaaa Oct 11, 2024
9350c6d
Split withdrawal rolldown tests (#822)
AlexChetverov Oct 15, 2024
0579572
use type prefix when calculating the L2Request hash
mateuszaaa Oct 21, 2024
2fa0ad4
[GASP-1564] Include request type in request hash calculation (#824)
mateuszaaa Oct 21, 2024
bb61142
Revert "[GASP-1564] Include request type in request hash calculation"
mateuszaaa Oct 21, 2024
f0f2f59
Revert "[GASP-1564] Include request type in request hash calculation"…
mateuszaaa Oct 21, 2024
e5ad328
use type prefix when calculating the L2Request hash
mateuszaaa Oct 22, 2024
eac534f
Merge branch 'eth-rollup-develop' into feature/gasp-1564
mateuszaaa Oct 22, 2024
d2b009d
make rpc api return purly encoded structs
mateuszaaa Oct 22, 2024
579780b
[GASP-1564] Include request type in request hash calculation (#825)
mateuszaaa Oct 22, 2024
f1f91f7
prove that aliases can be freed up
mateuszaaa Oct 23, 2024
f091fd0
[FIX] produce batches even when all sequencers have left
mateuszaaa Oct 23, 2024
a011823
[GASP-1476] Test for freeing up aliases (#827)
mateuszaaa Oct 23, 2024
2900624
limit manual batch size with the AutomaticBatchSize
mateuszaaa Oct 23, 2024
9720d79
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
mateuszaaa Oct 23, 2024
39a44bb
fix typo
mateuszaaa Oct 23, 2024
38b03c9
[FIX] produce batches even when all sequencers have left (#828)
mateuszaaa Oct 23, 2024
3c80fb8
[GASP-1563] Limit manual batch size (#829)
mateuszaaa Oct 23, 2024
dd62c35
add group
AlexChetverov Oct 24, 2024
ffda3b9
Add sequencerStakingRewards test group (#830)
AlexChetverov Oct 30, 2024
0727d3c
Reproduce problem reported by audit company
mateuszaaa Oct 31, 2024
35f7d3e
fix: sequencer alias cleanup
mateuszaaa Oct 31, 2024
cca2f23
Feature/rolldown benchmarks (#831)
iStrike7 Oct 31, 2024
4fd371d
fix cargo refs (#834)
iStrike7 Nov 1, 2024
460aeef
[audit fix] sequencer alias cleanup (#833)
mateuszaaa Nov 4, 2024
8536917
added offset to VerExtrinsicBaseWeight and FeeLockWeight to xyk extri…
iStrike7 Nov 8, 2024
81ce907
checkpoint
mateuszaaa Nov 21, 2024
00a5955
compiled
mateuszaaa Nov 21, 2024
5105cc8
all compiles
mateuszaaa Nov 21, 2024
39c780f
unit tests passes
mateuszaaa Nov 21, 2024
82a4c45
ut & benchmarks works
mateuszaaa Nov 21, 2024
0a56bd8
allign tests
mateuszaaa Nov 22, 2024
ae464d0
simplify
mateuszaaa Nov 22, 2024
c430e37
on_idle hook
mateuszaaa Nov 22, 2024
506a071
on_idle hook
mateuszaaa Nov 22, 2024
83b94b2
properly account for corner case scenario
mateuszaaa Nov 22, 2024
84f573e
on_idle hook fixed
mateuszaaa Nov 22, 2024
fa5acf5
allign tests
mateuszaaa Nov 22, 2024
79b89af
remove outdated comment
mateuszaaa Nov 22, 2024
44ef23e
account for big reads/writes
mateuszaaa Nov 22, 2024
6a9683c
base integration (#839)
iStrike7 Nov 22, 2024
833f0c9
different dispute period per l1
mateuszaaa Nov 23, 2024
e8caabe
different dispute period per l1
mateuszaaa Nov 23, 2024
9ce6e7f
tests for dispute period set
mateuszaaa Nov 23, 2024
0ddae4f
[GASP-1632] - stop processing on first failed request
mateuszaaa Nov 23, 2024
e4ff8e3
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
mateuszaaa Nov 23, 2024
8eff323
allign with base
mateuszaaa Nov 23, 2024
e334a7d
configure features
mateuszaaa Nov 24, 2024
06f8e01
adjust dispute period
mateuszaaa Nov 25, 2024
242785a
Feature/stable pool mgx 1307 (#838)
goncer Nov 26, 2024
4210afb
Merge branch 'eth-rollup-develop' into feature/rolldown_on_idle_hook
mateuszaaa Nov 27, 2024
6d561d0
fix update validation
mateuszaaa Nov 27, 2024
4e0b2bc
Feature/market improvs (#845)
vanderian Nov 28, 2024
07f2897
GASP-1625 Feature/locked tokens (#841)
vanderian Nov 29, 2024
1569ee0
Merge branch 'eth-rollup-develop' into feature/rolldown_on_idle_hook
mateuszaaa Nov 29, 2024
0a07b8c
Rolldown on_idle_hook & configurable dispute period (#843)
mateuszaaa Nov 29, 2024
05f4b0a
Merge branch 'eth-rollup-develop' into fix/reject-old-updates
mateuszaaa Nov 29, 2024
5eb876e
expose feature in cargo, and disable for fast-runtime
mateuszaaa Nov 29, 2024
456a53b
expose feature in cargo, and disable for fast-runtime (#847)
mateuszaaa Nov 29, 2024
6112b0f
apply benchmarks
mateuszaaa Nov 29, 2024
3434599
Merge branch 'eth-rollup-develop' into fix/reject-old-updates
mateuszaaa Nov 29, 2024
42f3ddc
revert changes to pallet vesting
mateuszaaa Nov 29, 2024
438c952
Reject update that doesnt provide new info (#844)
mateuszaaa Nov 30, 2024
d8f9714
Added chain genesis salt to system genesis (#848)
iStrike7 Dec 2, 2024
7523f80
CI: Add additionoal unlocked runtime image build in CI (#850)
tenequm Dec 2, 2024
16d7ff3
bumped gaspErc20Mock addresses in chain spec (#852)
iStrike7 Dec 2, 2024
a8b9021
fixes gasp-1666 gasp-1671 (#851)
vanderian Dec 3, 2024
7ffc20d
adds maintenance check for ferry deposit calls (#846)
vanderian Dec 3, 2024
013384b
Use -unrestricted for e2e non-fast tests (#849)
goncer Dec 3, 2024
623fc57
Fix/seq dies (#853)
vanderian Dec 5, 2024
89d69cf
Fix/rewards notransfer GASP-1688 (#857)
vanderian Dec 5, 2024
631fe4f
adds a check that only single ferry can happen on a deposit request g…
vanderian Dec 5, 2024
2d1877b
Fix/market mint ratio gasp-1689 (#859)
vanderian Dec 5, 2024
ca3b61d
remove patch
vanderian Dec 5, 2024
f65a480
Fix/rewards market GASP-1681 (#855)
vanderian Dec 5, 2024
041b37e
fixes the symbol naming for liq pools (#860)
vanderian Dec 6, 2024
011e11e
safety precautions for on_idle hook
mateuszaaa Dec 9, 2024
cbe25cb
safety precautions for on_idle hook (#864)
mateuszaaa Dec 9, 2024
a6313f5
fixe while loop causing crash & add u512 to avoid overflows for maxxe…
vanderian Dec 9, 2024
3722076
Fix/mint activate lp gasp-1712 (#866)
vanderian Dec 9, 2024
a92a6e1
minimal set of changes to disable sequencer registration for non sudo…
mateuszaaa Dec 10, 2024
32ebeea
minimal set of changes to disable sequencer registration for non sudo…
mateuszaaa Dec 10, 2024
3eec1a7
runtime parameters modifications
mateuszaaa Dec 13, 2024
9740c9e
duplicate existing config
mateuszaaa Dec 13, 2024
0dea7d9
ethereum-mainnet chainspec
mateuszaaa Dec 13, 2024
80135e9
working chainspec
mateuszaaa Dec 13, 2024
92c8236
foundation accounts
mateuszaaa Dec 13, 2024
ab052ce
council accounts
mateuszaaa Dec 13, 2024
dc0e81c
update issuance config
mateuszaaa Dec 13, 2024
b61ddf0
adjust issuance config
mateuszaaa Dec 13, 2024
aabd12a
adjust values to avoid zero devision
mateuszaaa Dec 14, 2024
d44479e
set immediate release of TGE - not used either way
mateuszaaa Dec 16, 2024
8e5fa5a
adjust issuance so 5M of GASP is minted in genesis block & account fo…
mateuszaaa Dec 16, 2024
10b7eb8
update node url
mateuszaaa Dec 16, 2024
cd252cc
Alpha launch chainspec (#870)
mateuszaaa Dec 16, 2024
c32ccc2
adjust minimum stake amount
mateuszaaa Dec 16, 2024
f26183b
chainspec fix - account for valuation in min collator stk (#871)
mateuszaaa Dec 16, 2024
67b72ad
fix execution queue progression
mateuszaaa Dec 17, 2024
880e84a
Alpha 0.2 (#872)
mateuszaaa Dec 17, 2024
5619d4d
revert sequencers balances
mateuszaaa Dec 19, 2024
2d117a8
Funds for sequencers (#873)
mateuszaaa Dec 19, 2024
161890c
fix pallet-sequencer-staking tests
mateuszaaa Dec 25, 2024
55553a9
fix integration tests
mateuszaaa Dec 26, 2024
307b8dd
align rolldown benchmarks
mateuszaaa Dec 27, 2024
c0d53bf
fix formatting
mateuszaaa Dec 27, 2024
91ae559
1st Runtime Upgrade on Rollup Prod Alphanet: Issuance Edits (#876)
iStrike7 Jan 6, 2025
108a4ce
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
mateuszaaa Jan 8, 2025
82c629a
minor fixes
mateuszaaa Jan 8, 2025
8c6c926
Merge remote-tracking branch 'origin/eth-rollup-develop' into feature…
mateuszaaa Jan 8, 2025
b04eb07
remove dummy test
mateuszaaa Jan 8, 2025
665be09
fix execute_tge benchmarks
mateuszaaa Jan 8, 2025
387b7e3
add missing check
mateuszaaa Jan 8, 2025
c56e00a
fix formatting
mateuszaaa Jan 8, 2025
a0ab332
fix
mateuszaaa Jan 8, 2025
156eda6
Test alignments (#875)
mateuszaaa Jan 8, 2025
31db686
move to gasp-node subdir for monorepo
vanderian Jan 16, 2025
7b9e0fc
Merge remote-tracking branch 'gasp-node/eth-rollup-develop'
vanderian Jan 16, 2025
8f568bc
adds gasp-node workflow
vanderian Jan 16, 2025
7b0b9f5
Merge remote-tracking branch 'origin/main' into feature/merge-node
tenequm Jan 20, 2025
b9b9285
ci: update GHA workflows to run `gasp-node` build and tests on opened…
tenequm Jan 20, 2025
da53fa9
fix: update permissions in reusable-gasp-node-e2e-tests GHA workflow
tenequm Jan 20, 2025
3d1ed49
fix: update Docker login secrets in reusable GHA workflow
tenequm Jan 20, 2025
9fc12da
ci: update job names in GitHub Actions workflows for clarity and cons…
tenequm Jan 20, 2025
4eaf6fa
fix: update JOB_CACHE_PREFIX and add context for gasp-node in reusabl…
tenequm Jan 20, 2025
964ce24
chore: test if workflows will work without extra setup-gcloud step
tenequm Jan 20, 2025
c453cf7
feat: add rust-toolchain.toml for `gasp-node`
tenequm Jan 20, 2025
816fac2
Revert "chore: test if workflows will work without extra setup-gcloud…
tenequm Jan 20, 2025
adb2735
feat: add rust-src component to rust-toolchain.toml for gasp-node
tenequm Jan 20, 2025
bfe9b61
fix: add actions/checkout step for multiplatform image generation job…
tenequm Jan 20, 2025
efb5a01
chore: update JOB_CACHE_PREFIX for gasp-node in reusable workflow
tenequm Jan 20, 2025
36cb10d
fix: update Docker build context paths in reusable gasp-node workflow…
tenequm Jan 20, 2025
cde8a20
feat: merge `stash` service builds to main workflow
tenequm Jan 20, 2025
9940670
Revert "fix: update Docker build context paths in reusable gasp-node …
tenequm Jan 20, 2025
c2aa4db
ci: merge foundry smart contracts checks into the main build and test…
tenequm Jan 20, 2025
686f6a8
fix: foundry-toolchain version reference
tenequm Jan 20, 2025
7fd63e7
fix: update job name in reusable build and test workflow
tenequm Jan 20, 2025
87bc8bf
fix: add missing bun install step in reusable build and test workflow
tenequm Jan 20, 2025
e5cc84f
chore: temporary disable `bun run analyze:ci`
tenequm Jan 20, 2025
3c682c4
feat: add `slither-action` usage for `contracts` checks
tenequm Jan 20, 2025
de64ac5
ci: move `stash` build to reusable-build-and-test.yml and rearrange `…
tenequm Jan 20, 2025
1ae65f3
ci: add `reusable-gasp-node-performance-tests.yml` workflow for futur…
tenequm Jan 20, 2025
179a44f
fix: syntax warnings
tenequm Jan 21, 2025
240a86b
chore: rearrange jobs sequence
tenequm Jan 21, 2025
acaba18
feat: add workflow updates for `branch-main.yml` workflow to support …
tenequm Jan 21, 2025
092a79a
fix: gasp-node generate types jobs
tenequm Jan 21, 2025
195c802
fix: add proper permissions for `slither-action` operation
tenequm Jan 21, 2025
6e5a6c8
chore: update AVS services build job name for clarity in GHA workflows
tenequm Jan 21, 2025
49e7710
chore: revert temporary changes to test `branch-main.yml` workflow
tenequm Jan 21, 2025
c609f58
chore: get rid of annoying GHA warnings caused by some bug
tenequm Jan 21, 2025
6b3d87a
fix: wasm artifact upload paths
tenequm Jan 21, 2025
495d01c
chore: debug var
tenequm Jan 21, 2025
e2903cb
Revert "chore: debug var"
tenequm Jan 21, 2025
f6bbf1a
fix: gasp-node image version propagation to generate-types workflow
tenequm Jan 21, 2025
ecd70ba
chore: temporary disable longest jobs
tenequm Jan 21, 2025
9a8876e
chore: remove redundant configs from `gasp-node` codebase
tenequm Jan 21, 2025
f20ddd3
fix: NODE_DOCKER_IMAGE variable reference for reusable-gasp-node-e2e-…
tenequm Jan 21, 2025
24832fa
Revert "chore: temporary disable longest jobs"
tenequm Jan 21, 2025
ef46c6a
Merge branch 'main' of github.com:gasp-xyz/gasp-monorepo into feature…
tenequm Jan 21, 2025
19c612d
fix: set working directory for gasp-node in reusable-gasp-node-e2e-te…
tenequm Jan 21, 2025
90d0383
fix: update default branch for e2e tests to eth-rollup-develop
tenequm Jan 21, 2025
67f29d3
fix: use new var to set correct gasp-node docker compose network when…
tenequm Jan 21, 2025
43155db
fix: remove redundant variables from e2e workflow
tenequm Jan 21, 2025
df62336
ci: rearrange jobs sequencing for gasp-node buiild to save a few minutes
tenequm Jan 21, 2025
bcf999b
fix: jobs permission propagation
tenequm Jan 21, 2025
2531e7b
feat: prepare reusable-rust-build.yml to support gasp-node builds
tenequm Jan 21, 2025
b22c7ad
feat: move gasp-node unit tests and coverage report runs to separate …
tenequm Jan 21, 2025
07b343a
revert: put back the eth-rollup-develop branch to be used for fetchin…
tenequm Jan 21, 2025
ebb60f4
[GASP-1840] Root configurable issuance config (#878)
mateuszaaa Jan 17, 2025
d0e8f76
[gasp-1863] Feature/transfer allowlist (#882)
vanderian Jan 21, 2025
7e61947
[GASP-1826] reverts swap trx fees (#877)
vanderian Jan 21, 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
2 changes: 1 addition & 1 deletion .github/workflows/branch-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
jobs:
init:
name: Set global version
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
steps:
Expand Down
80 changes: 75 additions & 5 deletions .github/workflows/branch-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: main branch workflow

on:
push:
branches: [main, feat/add-main-branch-ci-pipeline-MGX-834]
branches: [main]

permissions:
contents: write
id-token: write
deployments: write
checks: write
security-events: write

# The following concurrency group queus in-progress jobs
concurrency:
Expand All @@ -18,25 +19,94 @@ concurrency:
jobs:
init:
name: Set global version
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
GIT_BRANCH: ${{ steps.set_vars.outputs.GIT_BRANCH }}
GIT_BRANCH_UNFORMATTED: ${{ steps.branch-name.outputs.current_branch }}
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Set global version
id: set_vars
run: echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT
run: |
echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT
echo "GIT_BRANCH=${{ steps.branch-name.outputs.current_branch }}" | sed "s@/@-@g" >> $GITHUB_OUTPUT
echo "IMAGE_TAG=${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
build-and-test:
needs: [init]
name: Build
name: Build AVS services
uses: ./.github/workflows/reusable-build-and-test.yml
secrets: inherit
with:
version: ${{ needs.init.outputs.GLOBAL_VERSION }}

build-and-test-gasp-node:
needs: [init]
name: Build gasp-node
uses: ./.github/workflows/reusable-gasp-node-build-and-test.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
id-token: write
with:
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
branch: ${{ needs.init.outputs.GIT_BRANCH }}

gasp-node-unit-tests-and-coverage:
name: '[gasp-node] Run unit tests and coverage'
needs: [init]
uses: ./.github/workflows/reusable-gasp-node-unit-tests-and-coverage.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
id-token: write
with:
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
branch: ${{ needs.init.outputs.GIT_BRANCH }}

gasp-node-generate-types:
name: '[gasp-node] Generate types'
needs: [init, build-and-test-gasp-node]
uses: ./.github/workflows/reusable-gasp-node-generate-types.yml
secrets: inherit
with:
branch: ${{ needs.init.outputs.GIT_BRANCH_UNFORMATTED }}
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

run-e2e-test:
name: Run e2e tests
needs: [init, build-and-test]
uses: ./.github/workflows/reusable-e2e-tests.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
with:
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

run-e2e-test-gasp-node:
name: '[gasp-node] Run e2e tests'
needs: [init, build-and-test-gasp-node, gasp-node-generate-types]
uses: ./.github/workflows/reusable-gasp-node-e2e-tests.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
with:
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

deploy-dev:
name: Deploy `dev` environment
needs: [init, build-and-test]
needs: [init, build-and-test, build-and-test-gasp-node, gasp-node-unit-tests-and-coverage]
uses: ./.github/workflows/reusable-deploy.yml
secrets: inherit
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-rollup-holesky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
init:
name: Set global version
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
steps:
Expand All @@ -29,7 +29,7 @@ jobs:

deploy-rollup-holesky:
needs: [init, build-and-test]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: jkroepke/[email protected]
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/stash.yml → .github/workflows/deploy-stash.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: stash service workflow
name: '[stash] Deploy `stash` to Google App Engine'
on:
workflow_dispatch:
inputs:
Expand All @@ -11,7 +11,6 @@ on:
- frontend
- holesky
- prod
pull_request:
push:
branches:
- main
Expand All @@ -26,7 +25,7 @@ permissions:
jobs:
build:
name: Build Project
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
defaults:
run:
working-directory: stash
Expand All @@ -53,9 +52,8 @@ jobs:
deploy-frontend:
name: Deploy `stash` to `frontend` environment
if: github.ref == 'refs/heads/main' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'frontend')
runs-on: ubuntu-latest
needs: build
environment: stash-frontend
runs-on: ubuntu-24.04
environment: "stash-${{ github.event.inputs.environment}}"
defaults:
run:
working-directory: stash
Expand All @@ -82,12 +80,12 @@ jobs:
deploy-holesky:
name: Deploy `stash` to `holesky` environment
if: (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'holesky') && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: build
defaults:
run:
working-directory: stash
environment: stash-holesky
environment: "stash-${{ github.event.inputs.environment}}"
env:
ENVIRONMENT: holesky
steps:
Expand All @@ -111,12 +109,12 @@ jobs:
deploy-prod:
name: Deploy `stash` to `prod` environment
if: (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'prod') && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: build
defaults:
run:
working-directory: stash
environment: stash-prod
environment: "stash-${{ github.event.inputs.environment}}"
env:
ENVIRONMENT: prod
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/faucet-deploy-app-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout repository
Expand Down
86 changes: 71 additions & 15 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permissions:
id-token: write
deployments: write
checks: write
security-events: write

# The following concurrency group cancels in-progress jobs or runs on pull_request events only
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -19,35 +20,66 @@ jobs:
init:
name: Set global version
if: github.event.action != 'unlabeled' && github.event.action != 'closed'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
GIT_BRANCH: ${{ steps.set_vars.outputs.GIT_BRANCH }}
GIT_BRANCH_UNFORMATTED: ${{ steps.branch-name.outputs.current_branch }}
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v8
- name: Set global version
id: set_vars
run: |
echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT
echo "IMAGE TAG=${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
echo "GIT_BRANCH=${{ steps.branch-name.outputs.current_branch }}" | sed "s@/@-@g" >> $GITHUB_OUTPUT
echo "IMAGE_TAG=${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
build-and-test:
needs: [init]
name: Build
name: '[AVS services] Build'
uses: ./.github/workflows/reusable-build-and-test.yml
secrets: inherit
with:
version: ${{ needs.init.outputs.GLOBAL_VERSION }}

deploy-fungible:
name: Deploy fungible environment
if: |
(github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == ':rocket: deploy_fungible') ||
(github.event_name == 'pull_request' && github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, ':rocket: deploy_fungible'))
needs: [init, build-and-test]
uses: ./.github/workflows/reusable-deploy.yml

build-and-test-gasp-node:
needs: [init]
name: '[gasp-node] Build'
uses: ./.github/workflows/reusable-gasp-node-build-and-test.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
id-token: write
with:
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
branch: ${{ needs.init.outputs.GIT_BRANCH }}

gasp-node-unit-tests-and-coverage:
name: '[gasp-node] Run unit tests and coverage'
needs: [init]
uses: ./.github/workflows/reusable-gasp-node-unit-tests-and-coverage.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
id-token: write
with:
env: fungible
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
branch: ${{ needs.init.outputs.GIT_BRANCH }}

gasp-node-generate-types:
name: '[gasp-node] Generate types'
needs: [init, build-and-test-gasp-node]
uses: ./.github/workflows/reusable-gasp-node-generate-types.yml
secrets: inherit
with:
branch: ${{ needs.init.outputs.GIT_BRANCH_UNFORMATTED }}
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

run-e2e-test:
name: Run e2e tests
Expand All @@ -60,21 +92,45 @@ jobs:
checks: write
with:
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

run-e2e-test-gasp-node:
name: '[gasp-node] Run e2e tests'
needs: [init, build-and-test-gasp-node, gasp-node-generate-types]
uses: ./.github/workflows/reusable-gasp-node-e2e-tests.yml
secrets: inherit
permissions:
contents: read
actions: read
checks: write
with:
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

deploy-fungible:
name: Deploy fungible environment
if: |
(github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == ':rocket: deploy_fungible') ||
(github.event_name == 'pull_request' && github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, ':rocket: deploy_fungible'))
needs: [init, build-and-test, build-and-test-gasp-node, gasp-node-unit-tests-and-coverage]
uses: ./.github/workflows/reusable-deploy.yml
secrets: inherit
with:
env: fungible
version: ${{ needs.init.outputs.GLOBAL_VERSION }}

clean-up-fungible:
name: Delete fungible environment
if: |
(github.event_name == 'pull_request' && github.event.action == 'unlabeled' && github.event.label.name == ':rocket: deploy_fungible') ||
(github.event_name == 'pull_request' && github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, ':rocket: deploy_fungible'))
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- name: Set up GKE credentials
uses: google-github-actions/get-gke-credentials@v0.8.2
uses: google-github-actions/get-gke-credentials@v2.3.0
with:
cluster_name: mangata-dev-alpha
location: europe-west1
Expand All @@ -84,7 +140,7 @@ jobs:

- name: Delete GitHub Deployment environment
if: always()
uses: bobheadxi/deployments@v1.4.0
uses: bobheadxi/deployments@v1.5.0
with:
step: deactivate-env
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading
Loading