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

total quorum check #884

Open
wants to merge 316 commits into
base: release/v2.5.2-governance-merkle-tree
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
f1496d5
farm: compound_rewards_base bug fix
CostinCarabas Aug 31, 2023
98aa836
Refactor clippy fix
CostinCarabas Aug 31, 2023
f371569
Clippy fix for test setup
CostinCarabas Aug 31, 2023
c48b882
Remove reference of older feature from Cargo.toml.
andreibancioiu Sep 1, 2023
5b00a9c
Give boosted energy even after unlock xMEX
CostinCarabas Sep 4, 2023
4ff1b8a
Merge pull request #767 from multiversx/give-boosted-after-unlock
sasurobert Sep 4, 2023
453a280
Governance-v2: 2 fixes
CostinCarabas Sep 4, 2023
00dc45d
Fixes after review
CostinCarabas Sep 4, 2023
55ebf36
Merge branch 'main' into protection-add-liquidity
sasurobert Sep 5, 2023
a904701
Merge pull request #768 from multiversx/governance-v2-nowithvetoed-an…
sasurobert Sep 5, 2023
c1d12d5
Merge pull request #764 from multiversx/upgrade-43
dorin-iancu Sep 5, 2023
0c357a7
Merge branch 'main' into pair-map-migration
sasurobert Sep 5, 2023
882e728
Merge branch 'main' into same-unlock-epoch-locked-token-merging-testing
dorin-iancu Sep 5, 2023
2fe296e
Merge pull request #769 from multiversx/same-unlock-epoch-locked-toke…
dorin-iancu Sep 5, 2023
bb08f09
Merge branch 'main' into pair-map-migration
sasurobert Sep 5, 2023
79fcf4b
Merge branch 'main' into protection-add-liquidity
sasurobert Sep 5, 2023
8405234
Merge pull request #736 from jacobleygonie/protection-add-liquidity
sasurobert Sep 5, 2023
8300c57
Merge branch 'main' into pair-map-migration
sasurobert Sep 5, 2023
795715c
Merge pull request #742 from multiversx/pair-map-migration
sasurobert Sep 5, 2023
0f87499
Merge branch 'main' into farm-position-functionality
CostinCarabas Sep 6, 2023
249c3ee
Fix clippy
CostinCarabas Sep 7, 2023
374f81f
Governance-v2: Fix double withdraw fee
CostinCarabas Sep 7, 2023
b093f82
Governance-v2: Withdraw percentage limits fix
CostinCarabas Sep 7, 2023
f328ba4
Governance-v2: Remove unused code
CostinCarabas Sep 7, 2023
af57b88
Governance-v2: Remove unused code
CostinCarabas Sep 7, 2023
e16dc32
Governance-v2: Code refactor
CostinCarabas Sep 7, 2023
897aea8
Governance-v2: Burn fees
CostinCarabas Sep 7, 2023
9d87efa
Governance-v2: Clippy fixes for tests
CostinCarabas Sep 7, 2023
ff7424e
Governance-v2: Fixes after audit
CostinCarabas Sep 8, 2023
0d463d7
Governance-v2: fix withdraw after NoWithVeto
CostinCarabas Sep 8, 2023
7354488
Governance-v2
CostinCarabas Sep 8, 2023
a14de93
Framework upgrade 0.43.3
CostinCarabas Sep 8, 2023
03899ea
Framework update dependencies
CostinCarabas Sep 8, 2023
df9cd79
Merge pull request #771 from multiversx/governance-v2-audit-fixes-sec…
CostinCarabas Sep 8, 2023
2fd2e4c
Merge pull request #770 from multiversx/governance-v2-audit-fixes
sasurobert Sep 11, 2023
4b4e0b7
farm position first audit fixes
psorinionut Sep 13, 2023
c044821
metastaking refactor
psorinionut Sep 18, 2023
16576f1
readded claim progress check
psorinionut Sep 18, 2023
3fc935a
clippy fixes
psorinionut Sep 18, 2023
be142a3
dedicated migration function for old positions
psorinionut Sep 18, 2023
a77b760
remove caller check in migrate old position func
psorinionut Sep 19, 2023
3fe300e
remove exit amount parameter from farms
psorinionut Sep 19, 2023
37c9ebc
clippy fix
psorinionut Sep 19, 2023
9859e47
tests fixes
psorinionut Sep 19, 2023
d9fd841
remove metastaking ProxyMergePosModule
psorinionut Sep 20, 2023
65930ce
send rewards to user in claim_boosted_rewards
psorinionut Sep 20, 2023
ee6644c
claim boosted in merge endpoints
psorinionut Sep 20, 2023
1e9ec92
clippy and test fix
psorinionut Sep 20, 2023
bbff637
audit fixes (2)
psorinionut Sep 20, 2023
c609e42
Merge pull request #774 from multiversx/claim-boosted-in-merge-endpoints
psorinionut Sep 20, 2023
8ac9c19
Merge pull request #773 from multiversx/remove-exit-amount-parameter
psorinionut Sep 20, 2023
4303c0c
default migration nonce fix
psorinionut Sep 20, 2023
767f452
use GetCurrentESDTNFTNonce VM endpoint
psorinionut Sep 21, 2023
8100d57
try_set_farm_position_migration_nonce: code dup
CostinCarabas Sep 21, 2023
aba2e4e
fix farm_position_migration_nonce set function
psorinionut Sep 22, 2023
1d92432
Merge pull request #775 from multiversx/farm-position-audit-fixes-2
psorinionut Sep 26, 2023
494b301
farm position functionality tests
psorinionut Sep 26, 2023
772779a
allow_external_claim_rewards_setting extra check
psorinionut Sep 26, 2023
d790945
total_farm_position_claim_for_other extra check
psorinionut Sep 26, 2023
0ee2b42
farm position tests updates
psorinionut Sep 26, 2023
40410d3
proxy pair impl
dorin-iancu Sep 28, 2023
4262fa1
farm staking full position claim test
psorinionut Sep 28, 2023
0210549
wrapped lp test + fix
dorin-iancu Sep 29, 2023
eec1b06
burn old token
dorin-iancu Sep 29, 2023
7b39b1e
increase farm energy impl
dorin-iancu Sep 29, 2023
a6e3e00
Merge pull request #776 from multiversx/farm-position-tests
sasurobert Sep 29, 2023
36be963
clippy fix
psorinionut Sep 29, 2023
a7a8bea
test for farm increase energy
dorin-iancu Sep 29, 2023
fbb1673
fix
dorin-iancu Sep 29, 2023
ff4f6b1
Merge pull request #772 from multiversx/farm-position-fixes
psorinionut Sep 29, 2023
5acf5e4
build & cargo lock
psorinionut Sep 29, 2023
d1a9e72
github actions update
psorinionut Sep 29, 2023
a7ca9e6
clippy
dorin-iancu Sep 29, 2023
75eba99
Merge branch 'main' into farm-position-functionality
psorinionut Sep 29, 2023
2e36524
clippy fix
psorinionut Sep 29, 2023
67a7d42
cargo lock fix
psorinionut Sep 29, 2023
4dc0203
farm with lock rewards cargo lock fix
psorinionut Sep 29, 2023
711aede
Merge pull request #778 from multiversx/proxy-dex-extend
dorin-iancu Oct 2, 2023
3cf4458
Merge branch 'main' into farm-position-functionality
psorinionut Oct 2, 2023
3491557
Merge pull request #760 from multiversx/farm-position-functionality
psorinionut Oct 2, 2023
b8a2a3f
revert energy update change
dorin-iancu Oct 3, 2023
a94a332
Merge pull request #779 from multiversx/revert-energy-update-change
dorin-iancu Oct 3, 2023
13d4b5d
upgradeable contracts
dorin-iancu Oct 5, 2023
9534cc4
Merge pull request #780 from multiversx/upgradeable-contracts
dorin-iancu Oct 5, 2023
c74132a
opt caller arg
dorin-iancu Oct 9, 2023
cd4d21b
clippy
dorin-iancu Oct 9, 2023
720dae7
Merge pull request #781 from multiversx/opt-caller-arg
dorin-iancu Oct 10, 2023
da89868
farm with locked rewards references cleanup
psorinionut Oct 12, 2023
00b25dc
farm staking proxy lp tokens merge fix
psorinionut Oct 12, 2023
49fea1a
small optimizations
psorinionut Oct 13, 2023
69a57e3
tests fixes
psorinionut Oct 13, 2023
c05ec53
farm staking proxy test setup updates
psorinionut Oct 15, 2023
1b70768
metastaking test with lp farm token merge
psorinionut Oct 16, 2023
de67c97
router: multi_pair_swap return payments
CostinCarabas Oct 16, 2023
06ffdab
farm-staking: Fix clippy
CostinCarabas Oct 16, 2023
d500ab6
Governance-v2: Fix GovernanceProposal default
CostinCarabas Oct 27, 2023
b9361ef
Governance-v2: Fix default GovernanceProposal
CostinCarabas Oct 30, 2023
4c73589
Governance-v2: Update proposal_id consistency
CostinCarabas Oct 30, 2023
77c159b
Governance-v2: Retrieve cancelled proposal
CostinCarabas Oct 30, 2023
6d87cf5
Governance-v2: Fix GovernanceProposal default
CostinCarabas Oct 30, 2023
75ec905
Governance-v2: Clippy fix + format
CostinCarabas Oct 31, 2023
0b3d6f1
Merge pull request #782 from multiversx/farm-with-locked-rewards-refe…
psorinionut Nov 1, 2023
79fdea8
Merge branch 'main' into governance-proposal-default-fix
CostinCarabas Nov 9, 2023
6a47c22
framework upgrade 0.44.0
andrei-marinica Nov 10, 2023
f09a116
Fix compilation issues
CostinCarabas Nov 10, 2023
2e9a500
Fix clippy issues
CostinCarabas Nov 10, 2023
bd02b83
Clippy fix test
CostinCarabas Nov 10, 2023
0b00e3b
Merge pull request #785 from multiversx/upgrade-44
andrei-marinica Nov 10, 2023
0328af9
Merge branch 'main' into governance-proposal-default-fix
ovidiuolteanu Nov 13, 2023
452cfb0
Merge pull request #784 from multiversx/governance-proposal-default-fix
CostinCarabas Nov 13, 2023
9e31d59
Upgrade to framework 0.45.1
psorinionut Nov 27, 2023
b9f5d2d
dex test update
psorinionut Nov 27, 2023
445a466
usage of latest actions versions
ovidiuolteanu Dec 4, 2023
f6a4465
Merge pull request #788 from multiversx/actions-update
ovidiuolteanu Dec 4, 2023
c6093ee
Merge branch 'main' into framework-upgrade-0.45.1
psorinionut Dec 6, 2023
fdfa965
Merge pull request #787 from multiversx/framework-upgrade-0.45.1
psorinionut Dec 6, 2023
26607bd
Add claimBoostedRewards endpoint in Fees Collector
psorinionut Dec 7, 2023
412c305
Governance-v2:Allow users with 0 energy to propose
CostinCarabas Dec 8, 2023
143aebc
Add test for propose with 0 energy
CostinCarabas Dec 11, 2023
c079eb2
Fix clippy issues
CostinCarabas Dec 11, 2023
9668b07
Fix typo
CostinCarabas Dec 11, 2023
9384ff3
Governance-v2 tests:Change MEX from SFT to FT
CostinCarabas Dec 11, 2023
fc4b8e8
Merge pull request #790 from multiversx/governance-v2-allow-zero-ener…
CostinCarabas Dec 11, 2023
18c1868
Merge branch 'main' into governance-v2-mainnet-setup
CostinCarabas Dec 11, 2023
bf85891
Merge pull request #791 from multiversx/governance-v2-mainnet-setup
CostinCarabas Dec 12, 2023
b6049bf
separate upgrade endpoint
ovidiuolteanu Dec 13, 2023
d35e367
separate upgrade endpoint update for farm
ovidiuolteanu Dec 13, 2023
a49c37f
Merge pull request #792 from multiversx/ugrade-endpoints
ovidiuolteanu Dec 13, 2023
928ade7
Merge branch 'main' into fees-collector-claim-boosted-rewards-endpoint
psorinionut Dec 14, 2023
56a8e77
add getAllowExternalClaimRewards view in farms
psorinionut Dec 14, 2023
52f976b
Framework upgrade 0.45.2
CostinCarabas Dec 20, 2023
b202319
Fix Permissions borrowing issue
CostinCarabas Dec 20, 2023
ad4553b
Merge pull request #793 from multiversx/framework-upgrade-0.45.2
CostinCarabas Dec 20, 2023
4be981b
Merge branch 'main' into fees-collector-claim-boosted-rewards-endpoint
psorinionut Dec 20, 2023
1fb9a1d
Merge pull request #789 from multiversx/fees-collector-claim-boosted-…
psorinionut Dec 27, 2023
fc6012b
rebuilt locks and new framework structures
ovidiuolteanu Jan 5, 2024
d352c9b
update actions for latest rust version
ovidiuolteanu Jan 5, 2024
e4b95af
Merge pull request #807 from multiversx/build-cleanup
ovidiuolteanu Jan 8, 2024
6a45832
LkMEX Transfer: Add energy fix
CostinCarabas Jan 12, 2024
a118af9
LkMEX Transfer: Test for Add energy fix
CostinCarabas Jan 12, 2024
fdc93be
clippy fixes
CostinCarabas Jan 12, 2024
0c7f45e
Framework upgrade 0.46.1
CostinCarabas Jan 16, 2024
4ab8404
Merge pull request #814 from multiversx/framework-upgrade-0.46.1
CostinCarabas Jan 17, 2024
3718798
Merge branch 'main' into fix/unwrap-lkxmex-add-energy
ovidiuolteanu Jan 18, 2024
6dd9f44
Merge pull request #808 from multiversx/fix/unwrap-lkxmex-add-energy
ovidiuolteanu Jan 18, 2024
c031013
Add withdraw functionality for metastaking rewards
CostinCarabas Jan 22, 2024
de9708d
clippy fixes
CostinCarabas Jan 22, 2024
68f6a9b
Simple lock: Add endpoints that breaks farm
CostinCarabas Jan 22, 2024
670a8a5
add initial liq
dorin-iancu Jan 25, 2024
3b5df87
add liq
dorin-iancu Jan 25, 2024
8f8075a
remove liq
dorin-iancu Jan 25, 2024
a9016e5
swap
dorin-iancu Jan 25, 2024
7b683db
views
dorin-iancu Jan 25, 2024
489f715
fmt
dorin-iancu Jan 25, 2024
f331e61
hooks definition
dorin-iancu Jan 25, 2024
29f098a
Destroy farm in simple-lock
CostinCarabas Jan 26, 2024
8c7a270
Simple lock whitelist
CostinCarabas Jan 26, 2024
0fa9b7b
Destroy farm in proxy-dex
CostinCarabas Jan 26, 2024
59b5cf6
Merge pull request #817 from multiversx/cleanup-pair
dorin-iancu Jan 29, 2024
0139977
Merge branch 'main' into hooks
dorin-iancu Jan 29, 2024
e396169
Merge pull request #818 from multiversx/hooks
dorin-iancu Jan 29, 2024
cec0aa8
implement all hooks
dorin-iancu Jan 29, 2024
a82871f
Merge branch 'main' into withdraw-rewards-metastaking
CostinCarabas Jan 29, 2024
b266f92
Use newer VM tools.
andreibancioiu Jan 29, 2024
ec6e161
Merge pull request #815 from multiversx/withdraw-rewards-metastaking
CostinCarabas Jan 29, 2024
5b7d0ab
feesCollectorAddress setter
dragos-rebegea Jan 29, 2024
3cf293b
fix function name
dragos-rebegea Jan 29, 2024
6508d65
Merge branch 'main' into hooks-again
dorin-iancu Jan 30, 2024
2f52e1a
example hook impl
dorin-iancu Jan 30, 2024
8474c5e
Merge pull request #821 from multiversx/hooks-again
dorin-iancu Jan 31, 2024
ade54d1
Merge branch 'main' into interface-hook
dorin-iancu Jan 31, 2024
34e75dc
Merge pull request #823 from multiversx/interface-hook
dorin-iancu Jan 31, 2024
a25dc9f
Merge branch 'main' into feesCollectorAddress-setter
dorin-iancu Jan 31, 2024
b51868b
rip hooks
dorin-iancu Feb 5, 2024
e227609
Merge pull request #824 from multiversx/revert-hooks
dorin-iancu Feb 6, 2024
c439675
metastakig: fix admins withdraw issue
CostinCarabas Feb 6, 2024
4792a42
Aggregate rewards in withdraw_rewards
CostinCarabas Feb 6, 2024
5f76037
Merge branch 'main' into simple-lock-break-farm-into-initial-tokens
CostinCarabas Feb 6, 2024
016473d
Destroy farm: pair_addr provided as parameter
CostinCarabas Feb 6, 2024
5c8f183
Simple-lock fix: destroy farm returns locked token
CostinCarabas Feb 6, 2024
a250fb7
Burn farm tokens for claim and destry endpoints
CostinCarabas Feb 6, 2024
a60edcd
simple-lock: Fix ExitFarmResultType
CostinCarabas Feb 6, 2024
1d02cac
simple-lock/proxy-dex improvements
CostinCarabas Feb 6, 2024
834565c
Merge pull request #827 from multiversx/fix/metastaking-withdraw-fix-…
CostinCarabas Feb 7, 2024
466d78a
Fix issues: Add Cargo.lock
CostinCarabas Feb 7, 2024
246d868
Merge branch 'main' into fix/add-cargo-lock
CostinCarabas Feb 7, 2024
8e06e8a
Fix Cargo.lock
CostinCarabas Feb 7, 2024
ee138d1
Merge remote-tracking branch 'origin/fix/add-cargo-lock' into fix/add…
CostinCarabas Feb 7, 2024
ef574c1
Merge pull request #831 from multiversx/fix/add-cargo-lock
CostinCarabas Feb 8, 2024
61970b2
Merge branch 'main' into simple-lock-break-farm-into-initial-tokens
CostinCarabas Feb 8, 2024
6980ca8
simple-lock: Test destroy farm
CostinCarabas Feb 7, 2024
953211d
Merge branch 'main' into feesCollectorAddress-setter
dorin-iancu Feb 20, 2024
cad0c11
Merge pull request #822 from multiversx/feesCollectorAddress-setter
dorin-iancu Feb 20, 2024
0d9e8f6
Simple lock: Destroy farm test
CostinCarabas Feb 20, 2024
1682a47
Cargo fmt
CostinCarabas Feb 20, 2024
c2eb950
Remove unnecessary test
CostinCarabas Feb 20, 2024
ea688d7
Fix clippy
CostinCarabas Feb 20, 2024
ac12c3c
Merge branch 'main' into simple-lock-break-farm-into-initial-tokens
CostinCarabas Feb 20, 2024
39cefd6
Fixes after review
CostinCarabas Feb 22, 2024
ce739aa
destroy_farm_proxy: Check pair_address is legitimate
CostinCarabas Feb 22, 2024
dad5423
simple-lock/destroy_farm_locked_tokens: Burn farm proxy token
CostinCarabas Feb 22, 2024
adf0267
Cargo format
CostinCarabas Feb 22, 2024
9d78167
Merge remote-tracking branch 'origin/simple-lock-break-farm-into-init…
CostinCarabas Feb 22, 2024
e760365
simple-lock: Remove burn of wrapped farm token from destroy and claim…
CostinCarabas Feb 22, 2024
f865799
Small fix
CostinCarabas Feb 22, 2024
31779fa
remove RemoveLiquidityProxyCommon struct
psorinionut Feb 27, 2024
b71714e
Remove payable from claim boosted rewards endpoint
psorinionut Feb 28, 2024
a70bbc7
repo build update
psorinionut Feb 28, 2024
0271a91
Merge pull request #816 from multiversx/simple-lock-break-farm-into-i…
CostinCarabas Feb 28, 2024
a3c65a8
Increase energy for proxy LP tokens fix
psorinionut Feb 29, 2024
6c209fe
Merge pull request #848 from multiversx/increase-energy-for-proxy-lp-fix
psorinionut Mar 1, 2024
ea82f7c
proxy_dex: only create the wrapped lp token
claudiulataretu Mar 1, 2024
4b3e7cd
Merge pull request #849 from multiversx/increase-energy-for-proxy-lp-fix
psorinionut Mar 1, 2024
f1b6a9d
Merge branch 'main' into remove-payable-claim-boosted
psorinionut Mar 4, 2024
7864719
Merge pull request #847 from multiversx/remove-payable-claim-boosted
psorinionut Mar 4, 2024
8e14d19
Fix build_swap_output_payments when swap is perfect
CostinCarabas Mar 19, 2024
e53cf1a
Test the fix
CostinCarabas Mar 19, 2024
4db2d38
Fixes after audit
CostinCarabas Mar 20, 2024
58f5316
Merge pull request #862 from multiversx/fix/perfect_swap_fixed_output
CostinCarabas Mar 26, 2024
10fe315
add test-coverage
laurci Mar 26, 2024
518fff6
add test-coverage
laurci Mar 26, 2024
bc5545e
add test-coverage
laurci Mar 27, 2024
29fbc2c
add test-coverage
laurci Mar 27, 2024
8c09212
Audit updates
psorinionut Mar 27, 2024
7ee6ddc
Merge pull request #865 from multiversx/test-coverage
laurci Mar 27, 2024
39a8819
Merge branch 'main' into audit-updates
psorinionut Mar 27, 2024
351ae71
first_week_start_epoch on farm staking init
psorinionut Mar 28, 2024
50265d9
first_week_start_epoch in upgrade function as well
psorinionut Mar 28, 2024
2ce5dae
Merge pull request #868 from multiversx/farm-staking-init-first-week-fix
psorinionut Mar 28, 2024
c792082
Proxy dex backwards compatibility fixes
psorinionut Apr 1, 2024
d720e83
extra checks
psorinionut Apr 1, 2024
5c37ad9
Merge pull request #869 from multiversx/proxy-dex-backward-comp-fix
psorinionut Apr 2, 2024
e58da7b
Merge branch 'main' into router-multi-pair-swap-return-payments
psorinionut Apr 5, 2024
e07a109
Router further audit improvements
psorinionut Apr 5, 2024
8255b83
Merge branch 'main' into audit-updates
psorinionut Apr 8, 2024
816d30a
Merge pull request #866 from multiversx/audit-updates
psorinionut Apr 8, 2024
310cd31
Merge branch 'main' into router-further-audit-improvements
psorinionut Apr 8, 2024
0469d5e
Merge branch 'main' into router-multi-pair-swap-return-payments
psorinionut Apr 8, 2024
60824b8
Remove position destroyer from v3.0
psorinionut Apr 8, 2024
dc28963
Merge pull request #783 from multiversx/router-multi-pair-swap-return…
psorinionut Apr 8, 2024
7ad65e2
Merge branch 'main' into remove-position-destroyer-from-v3.0
psorinionut Apr 8, 2024
4c1290b
remove test
psorinionut Apr 8, 2024
7787734
Merge pull request #876 from multiversx/remove-position-destroyer-fro…
psorinionut Apr 8, 2024
b542ecd
Merge branch 'main' into router-further-audit-improvements
psorinionut Apr 8, 2024
b8092a3
Merge pull request #873 from multiversx/router-further-audit-improvem…
psorinionut Apr 8, 2024
dd4cb71
Github actions on rc branches
psorinionut Apr 9, 2024
c2a2d27
Merge pull request #881 from multiversx/github-actions-rc-branches
psorinionut Apr 9, 2024
de594b3
total quorum check
dragos-rebegea Apr 9, 2024
5c3900f
fix compile issue
dragos-rebegea Apr 16, 2024
20ce465
Merge branch 'governance-campaign-total-quorum-check'
dragos-rebegea Apr 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
62 changes: 57 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ main, feat/* ]
branches: [ main, feat/*, rc/* ]
pull_request:
branches: [ main, feat/* ]
branches: [ main, feat/*, rc/* ]
workflow_dispatch:

permissions:
Expand All @@ -20,9 +20,61 @@ permissions:
jobs:
contracts:
name: Contracts
uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v2
uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v2.3.5
with:
rust-toolchain: nightly-2022-12-08
vmtools-version: v1.4.60
rust-toolchain: nightly-2023-12-11
vmtools-version: v1.5.24
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

# TEMPORARY: Remove this job when we can upgrade to mx-sc-actions v3+
test_coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-12-11
target: wasm32-unknown-unknown

- name: Install prerequisites
run: |
rustup component add llvm-tools-preview
dirname $(find ~/.rustup -name llvm-cov) >> $GITHUB_PATH

echo $(dirname $(find ~/.rustup -name llvm-cov))

cargo install multiversx-sc-meta --locked

- name: Run tests and generate report
env:
RUSTFLAGS: ""
run: |
sc-meta test-coverage --output ./coverage.md

- name: Upload the report
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.md

- name: Find the comment containing the report
id: fc
uses: peter-evans/find-comment@v2
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "Coverage Summary"

- name: Create or update the report comment
uses: peter-evans/create-or-update-comment@v2
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-file: ./coverage.md
edit-mode: replace
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
build:
uses: multiversx/mx-sc-actions/.github/workflows/[email protected].1
uses: multiversx/mx-sc-actions/.github/workflows/[email protected].5
with:
image_tag: v4.2.0
image_tag: v6.0.0
attach_to_existing_release: true
Loading
Loading