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

Merge rc/v0.51 to feat/managed-decimal #1665

Merged
merged 861 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
861 commits
Select commit Hold shift + click to select a range
39bfc0e
Merge pull request #1597 from multiversx/num-decode-3
andrei-marinica Apr 30, 2024
d7dd5af
sc 0.48.1, codec 0.18.7
andrei-marinica Apr 30, 2024
90b5db7
Cargo.lock update
andrei-marinica Apr 30, 2024
25bc450
Merge pull request #1600 from multiversx/release-48-1
andrei-marinica Apr 30, 2024
c78ba3f
increase code coverage - fix attributes on nft_update_attributes
BiancaIalangi Apr 30, 2024
f50de7d
increase code coverage - fix nft_update_attributes with no attributes
BiancaIalangi Apr 30, 2024
5f28636
Merge branch 'master' into 'feat/unified'
andrei-marinica Apr 30, 2024
b781824
test fix
andrei-marinica May 1, 2024
a482b06
cargo fmt
andrei-marinica May 1, 2024
5ae38d5
Merge pull request #1601 from multiversx/unified-merge-master
andrei-marinica May 1, 2024
724dd68
TypeAbiFrom trait
andrei-marinica May 3, 2024
a3ee194
TypeAbiFrom in new proxies, impl for more types
andrei-marinica May 4, 2024
a6b7255
TypeAbiFrom in old proxies
andrei-marinica May 4, 2024
9929464
cleanup
andrei-marinica May 4, 2024
b4acf88
proxy gen - type_abi annotation
andrei-marinica May 4, 2024
612f55c
TypeAbiFrom in legacy tests/interactor
andrei-marinica May 4, 2024
81f975c
TypeAbiFrom in result handlers
andrei-marinica May 4, 2024
e4fff2c
deprecated CodecFrom
andrei-marinica May 4, 2024
ddcb9b0
TypeAbi Unmanaged field
andrei-marinica May 4, 2024
fabc1e9
ReturnsResultUnmanaged result handler
andrei-marinica May 4, 2024
e3945e0
build fix
andrei-marinica May 4, 2024
01c54bc
cleanup
andrei-marinica May 7, 2024
282c021
increase code coverage - add rust type for EsdtTokenType
BiancaIalangi May 7, 2024
6a15003
Merge branch 'feat/unified' into increase-code-coverage
BiancaIalangi May 7, 2024
3c6b2c8
Merge pull request #1603 from multiversx/type-abi-from
andrei-marinica May 7, 2024
1c81db7
increase code coverage - fix test
BiancaIalangi May 7, 2024
ba09871
Merge branch 'feat/unified' into increase-code-coverage
BiancaIalangi May 7, 2024
d003226
increase code coverage - remove depricated CodecInto from proxy
BiancaIalangi May 7, 2024
58f37e3
increase code coverage - add type abi in forwarder proxy
BiancaIalangi May 7, 2024
22783e2
Merge pull request #1604 from multiversx/type-abi-unmanaged
andrei-marinica May 7, 2024
dddd7d7
Merge pull request #1599 from multiversx/increase-code-coverage
BiancaIalangi May 7, 2024
13823a9
deprecated older non-unified syntax
andrei-marinica May 7, 2024
933f88d
renamed WithResultConv -> WithResultAs
andrei-marinica May 7, 2024
b98ee2c
deprecated legacy ContractCall
andrei-marinica May 7, 2024
52209c2
unified syntax - cleanup, more docs, renames
andrei-marinica May 7, 2024
473e789
comment
andrei-marinica May 7, 2024
8d1dae1
re-generated proxies
andrei-marinica May 7, 2024
b4e85ea
replaced tabs with spaces
andrei-marinica May 7, 2024
85756c6
Merge pull request #1605 from multiversx/deprecated-non-unified
andrei-marinica May 7, 2024
7275100
cleanup
andrei-marinica May 7, 2024
a88159f
Merge pull request #1606 from multiversx/unified-final-cleanup
andrei-marinica May 7, 2024
5929064
Merge pull request #1415 from multiversx/feat/unified
andrei-marinica May 7, 2024
ce57401
release action fix
andrei-marinica May 7, 2024
1b5839a
sc 0.49.0, codec 0.18.8, sdk 0.4.0
andrei-marinica May 7, 2024
ebd0826
Cargo.lock update
andrei-marinica May 7, 2024
df58c72
removed crypto-kitties dependency from crypto-zombies
andrei-marinica May 7, 2024
4785465
Merge pull request #1607 from multiversx/release-49
andrei-marinica May 7, 2024
d9c2887
Merge branch 'master' into 'feat/stable'
andrei-marinica May 7, 2024
b955ab3
Merge pull request #1608 from multiversx/merge-stable-master
andrei-marinica May 7, 2024
9c3b4cc
removed CodecFrom
andrei-marinica May 7, 2024
0ab784e
remove lang_items - add abort panic in profile dev in .toml wasm
BiancaIalangi May 7, 2024
2a5a3dc
Merge pull request #1609 from multiversx/delete-codec-from
andrei-marinica May 7, 2024
911b4d1
Merge pull request #1611 from multiversx/remove-lang-items
andrei-marinica May 8, 2024
693e0aa
removed try trait v2
andrei-marinica May 7, 2024
18872ac
panic message simplified, test fix
andrei-marinica May 8, 2024
e035b04
cleanup
andrei-marinica May 8, 2024
992fa84
Merge branch 'feat/stable' into panic-with-message
andrei-marinica May 8, 2024
91fda63
Merge pull request #1610 from multiversx/delete-sc-result
andrei-marinica May 8, 2024
906dbca
Merge pull request #1458 from multiversx/panic-with-message
andrei-marinica May 8, 2024
6de666e
wasm crate cleanup
andrei-marinica May 8, 2024
0d18789
removed feature exit_status_error
andrei-marinica May 8, 2024
bd3cea6
Merge pull request #1612 from multiversx/stable-cleanup
andrei-marinica May 8, 2024
fdcb2cb
mn vec item refactor, initial payload impl, removed for arrays
andrei-marinica May 8, 2024
95db7a2
migration of sc-meta all snippets to unified
mihaicalinluca May 8, 2024
319c25a
mn vec item refactor: replaced usage of PAYLOAD_SIZE
andrei-marinica May 8, 2024
0d950c2
mn vec item refactor: removed PAYLOAD_SIZE
andrei-marinica May 8, 2024
d729831
removed generic_const_exprs feature
andrei-marinica May 8, 2024
777600c
docs
andrei-marinica May 8, 2024
ff75652
Merge pull request #1614 from multiversx/mvi-payload
andrei-marinica May 9, 2024
9c72ecb
replace quote! - semver
andrei-marinica May 9, 2024
246dbf7
cargo fmt
andrei-marinica May 9, 2024
9b74eac
replace quote! - format_receiver_args, cleanup
andrei-marinica May 9, 2024
3f80b73
removed feature proc_macro_quote
andrei-marinica May 9, 2024
713ed43
removed feature trait_alias
andrei-marinica May 9, 2024
ca4afe3
eval_to_array removed const (const ptr::copy_nonoverlapping not stable)
andrei-marinica May 9, 2024
29b6f28
removed unused function
BiancaIalangi May 9, 2024
70bc188
Merge pull request #1615 from multiversx/quote-fix
andrei-marinica May 9, 2024
23c6733
Merge pull request #1617 from multiversx/cleanup-stable
andrei-marinica May 9, 2024
dc0998e
non payable flag - detect non-payable endpoints
BiancaIalangi May 9, 2024
a971200
Merge pull request #1476 from multiversx/feat/stable
andrei-marinica May 9, 2024
f225676
upgraded dependencies
andrei-marinica May 9, 2024
a5d4b84
non payable flag - in proxy generator
andrei-marinica May 9, 2024
32a03cf
Merge pull request #1620 from multiversx/deps
andrei-marinica May 9, 2024
5550346
re-generated proxies
andrei-marinica May 9, 2024
c0bc121
unified syntax - with_normalized produces owned FunctionCall
andrei-marinica May 9, 2024
9fdd2a5
Merge branch 'into-fn-call-fix' into not-payable-flag-proxy
andrei-marinica May 9, 2024
504f707
multisig interactor - fixed wegld scenario
andrei-marinica May 9, 2024
c5c310e
multisig interactor - query WEGLD token id
andrei-marinica May 9, 2024
05dfc01
unified syntax - normalize method refactor
andrei-marinica May 9, 2024
58ac953
non payable flag - in system proxies & other proxies
andrei-marinica May 9, 2024
86c6500
cleanup
andrei-marinica May 10, 2024
011bb49
Merge pull request #1621 from multiversx/into-fn-call-fix
andrei-marinica May 10, 2024
f5c07ff
Merge branch 'master' into not-payable-flag-proxy
andrei-marinica May 10, 2024
f3c3f78
Merge pull request #1618 from multiversx/not-payable-flag-proxy
andrei-marinica May 10, 2024
6a99b98
test cleanup
andrei-marinica May 10, 2024
a3e554e
sc 0.50.0, codec 0.19.0, vm 0.8.4, sdk 0.4.1
andrei-marinica May 10, 2024
61b4f78
Merge branch 'master' into release-50
andrei-marinica May 10, 2024
c3818e9
Cargo.lock update
andrei-marinica May 10, 2024
fd62fb9
Merge pull request #1622 from multiversx/release-50
andrei-marinica May 10, 2024
b9c36b1
fixed new lints
andrei-marinica May 9, 2024
0717152
Stable Rust: GitHub Actions & toolchain
andrei-marinica May 9, 2024
294261d
disable contract size report on nightly actions
laurci May 10, 2024
b3ebe61
disable contract size report on nightly actions
laurci May 10, 2024
8d8abb1
disable contract size report on nightly actions
laurci May 10, 2024
1e6a8e6
disable contract size report on nightly actions
laurci May 10, 2024
2fbe6ba
ReturnsResultUnmanaged for query and call functions
mihaicalinluca May 12, 2024
747afd5
use stable version of sc-actions
laurci May 13, 2024
8d0715a
implement from conversion for MultiValueN
BiancaIalangi May 13, 2024
8bbca64
clippy fix - unknown_lints
andrei-marinica May 13, 2024
526d319
Merge pull request #1616 from multiversx/stable-toolchain
andrei-marinica May 13, 2024
6da405b
clipply fix
andrei-marinica May 13, 2024
93f53ad
rustfmt.toml fix
andrei-marinica May 13, 2024
1b6ab0d
cargo update
andrei-marinica May 13, 2024
c8b5323
typo in type_name_rust
andrei-marinica May 13, 2024
17553e0
composability interact migration
mihaicalinluca May 13, 2024
2e62417
Merge branch 'master' into composability-interact
mihaicalinluca May 13, 2024
c1299d0
add changes from review - unmanaged type
BiancaIalangi May 13, 2024
de13520
Merge branch 'master' into type-abi-from-multivaluen
BiancaIalangi May 13, 2024
863cc34
Merge pull request #1625 from multiversx/type-abi-from-multivaluen
andrei-marinica May 14, 2024
b0cb594
Merge branch 'master' into new-clippy
andrei-marinica May 14, 2024
3ffec5c
Merge pull request #1626 from multiversx/new-clippy
andrei-marinica May 14, 2024
62365e5
Merge branch 'master' into composability-interact
mihaicalinluca May 14, 2024
d565af1
Merge branch 'master' into unified-shrink
andrei-marinica May 14, 2024
25acc26
Merge pull request #1565 from multiversx/unified-shrink
andrei-marinica May 14, 2024
bdefe36
sc-config proxy - add variant
BiancaIalangi May 14, 2024
99d7d4e
sc-config proxy - add contract_abi in proxy generator structure and a…
BiancaIalangi May 15, 2024
62658b6
Merge branch 'master' into proxy-config-variant
BiancaIalangi May 15, 2024
29304aa
fixed memory leak on boxed bytes
gfusee May 15, 2024
0a20676
Merge pull request #1628 from multiversx/proxy-config-variant
andrei-marinica May 15, 2024
faf4fea
Merge branch 'master' into hotfix/boxed_bytes_leak
andrei-marinica May 15, 2024
35f4b6f
Merge pull request #1629 from gfusee/hotfix/boxed_bytes_leak
andrei-marinica May 15, 2024
ad178ce
ManagedVecItem - larger payloads
andrei-marinica May 15, 2024
eb291be
ManagedVecItem - payload macro generator tool
andrei-marinica May 15, 2024
92d8d82
Merge pull request #1630 from multiversx/mvi-large
BiancaIalangi May 15, 2024
16cb49f
Merge branch 'master' into sc-meta-snippets
andrei-marinica May 15, 2024
d4fe93a
Merge pull request #1613 from multiversx/sc-meta-snippets
andrei-marinica May 16, 2024
1c955a8
sc 0.50.1
andrei-marinica May 16, 2024
2ea77b9
Cargo.lock upgrade
andrei-marinica May 16, 2024
7c30447
Merge pull request #1631 from multiversx/release-50-1
andrei-marinica May 16, 2024
122e383
removed jitter from interact transaction fetch
mihaicalinluca May 16, 2024
0165a32
fixed sc config auto overwrite issue, fixed proxy gen not happening i…
mihaicalinluca May 17, 2024
40fceec
upgrade to unified syntax
BiancaIalangi May 17, 2024
bbbc23d
merge origin/master
mihaicalinluca May 17, 2024
0a024a9
add missing explicit gas limit
mihaicalinluca May 20, 2024
ed42bb3
update forgotten dependency
mihaicalinluca May 20, 2024
bed7468
Merge pull request #1632 from multiversx/interactor-no-rand
mihaicalinluca May 20, 2024
66f50e9
Merge branch 'master' into composability-interact
mihaicalinluca May 20, 2024
16f4a5b
Merge branch 'master' into sc-meta-snippets-fixes
mihaicalinluca May 20, 2024
05d7a44
Merge branch 'master' into transfer-role-unified
BiancaIalangi May 20, 2024
5a41da5
Merge pull request #1627 from multiversx/composability-interact
andrei-marinica May 20, 2024
bef1623
Merge branch 'master' into transfer-role-unified
andrei-marinica May 20, 2024
d2a30ba
Merge pull request #1634 from multiversx/transfer-role-unified
andrei-marinica May 20, 2024
bbbf77e
TypeAbi Unmanaged, removed trait bound, more impls
andrei-marinica May 20, 2024
c2c05f3
cargo fmt
andrei-marinica May 20, 2024
cc41380
build fix
andrei-marinica May 20, 2024
1874e76
Merge branch 'master' into sc-meta-snippets-fixes
mihaicalinluca May 20, 2024
fa616d3
Merge pull request #1635 from multiversx/unmanaged-fix
andrei-marinica May 20, 2024
1e30e7d
unified syntax - interactor env rename
andrei-marinica May 20, 2024
f1dc57e
cargo fmt
andrei-marinica May 20, 2024
312c161
Merge pull request #1636 from multiversx/interactor-env-rename
andrei-marinica May 20, 2024
edc446f
implemented Clone for Egld when possible
gfusee May 20, 2024
828b155
Merge pull request #1638 from gfusee/feature/egld_struct_clone
andrei-marinica May 21, 2024
3085774
Removed set_current_dir_from_workspace from tests
andrei-marinica May 22, 2024
34a3f2a
added tests for unordered set mapper read from address
mihaicalinluca May 22, 2024
1ec2ff4
Deprecated set_current_dir_from_workspace
andrei-marinica May 22, 2024
9872070
Merge pull request #1640 from multiversx/unordered-mapper-from-addres…
mihaicalinluca May 22, 2024
6623019
Merge branch 'master' into remove-set-current-dir
andrei-marinica May 22, 2024
27635af
Merge pull request #1639 from multiversx/remove-set-current-dir
andrei-marinica May 22, 2024
0f9e252
Crypto Zombies renames & small fixes
alyn509 May 23, 2024
804e72d
impl upgrade in scenario env
mihaicalinluca May 23, 2024
6ed9826
sc-meta all proxy --compare impl
mihaicalinluca May 23, 2024
539a5e0
Merge pull request #1643 from multiversx/sc-meta-compare-signed
andrei-marinica May 23, 2024
54502a4
Merge branch 'master' into upgrade-in-tests
andrei-marinica May 23, 2024
dbee715
Merge pull request #1642 from multiversx/upgrade-in-tests
andrei-marinica May 23, 2024
cce72df
Merge branch 'master' into renames-crypto-zombies
andrei-marinica May 23, 2024
fa76fc9
proxy update
andrei-marinica May 23, 2024
a4eab37
Merge pull request #1641 from multiversx/renames-crypto-zombies
andrei-marinica May 23, 2024
759b41f
renamed files in forwarder & forwarder-legacy
andrei-marinica May 23, 2024
b57b45c
renamed filed in promises-features
andrei-marinica May 23, 2024
23f4129
fmt
andrei-marinica May 23, 2024
08ac2fa
Merge pull request #1645 from multiversx/rename-fwd-files
andrei-marinica May 23, 2024
c6095a1
cleanup
andrei-marinica May 22, 2024
9ea13d5
unified syntax - diagnostic::on_unimplemented
andrei-marinica May 23, 2024
734c797
github action - update nightly
andrei-marinica May 23, 2024
75b312b
warn fix
andrei-marinica May 23, 2024
099e888
unified syntax - register_promise unsafe warning trick
andrei-marinica May 23, 2024
bf7db0b
Merge pull request #1644 from multiversx/diagnostics-on-unimplemented
andrei-marinica May 24, 2024
d487d62
deprecated legacy methods async_call and async_call_promise
andrei-marinica May 23, 2024
4570ca2
fmt
andrei-marinica May 24, 2024
3752387
Merge pull request #1646 from multiversx/deprecate-async-call
andrei-marinica May 24, 2024
8b88f82
Merge branch 'master' into sc-meta-snippets-fixes
andrei-marinica May 24, 2024
128d2d4
Merge pull request #1633 from multiversx/sc-meta-snippets-fixes
andrei-marinica May 24, 2024
4cc7be8
sc 0.50.2
andrei-marinica May 24, 2024
f26c854
Cargo.lock update
andrei-marinica May 24, 2024
fa37055
removed hardcoded version in snippets
mihaicalinluca May 24, 2024
bf227f3
merge origin/master
mihaicalinluca May 24, 2024
33c9748
unified llr
BiancaIalangi May 24, 2024
4b34c45
Merge pull request #1647 from multiversx/release-50-2
andrei-marinica May 24, 2024
dff1218
dependency fix/update
andrei-marinica May 25, 2024
8fab5c1
sc 0.50.3
andrei-marinica May 25, 2024
5db5e25
Cargo.lock update
andrei-marinica May 25, 2024
c2aab74
Merge pull request #1651 from multiversx/release-50-3
andrei-marinica May 27, 2024
40ae22a
Merge branch 'master' into llr-unified
andrei-marinica May 27, 2024
18b63e6
Merge pull request #1649 from multiversx/llr-unified
andrei-marinica May 27, 2024
33aa4e3
Merge branch 'master' into snippets-version
andrei-marinica May 27, 2024
866428a
snippet gen version fix
andrei-marinica May 27, 2024
a9f22d0
Merge pull request #1648 from multiversx/snippets-version
andrei-marinica May 27, 2024
b0c1d68
meta-lib split from meta
andrei-marinica May 27, 2024
ddf4086
cargo deps cleanup
andrei-marinica May 28, 2024
255a39c
meta RADME fix
andrei-marinica May 28, 2024
292a4b7
Merge pull request #1653 from multiversx/meta-lib
andrei-marinica May 28, 2024
f0068a1
typo
andrei-marinica May 28, 2024
cc05959
deprecated meta cli_main and multi_contract_config
andrei-marinica May 28, 2024
f9036cd
meta-lib upgrade logic
andrei-marinica May 28, 2024
b7a1450
cleanup
andrei-marinica May 28, 2024
e1e0dcd
contract upgrade (meta-lib), mostly automatic
andrei-marinica May 28, 2024
d4e5f93
clippy fix
andrei-marinica May 28, 2024
6c24b1e
Merge pull request #1655 from multiversx/meta-contracts
andrei-marinica May 28, 2024
35b6fb3
err_msg - messages made str
andrei-marinica Apr 30, 2024
eff664a
removed codec error from bytes
andrei-marinica Apr 30, 2024
0ecebc8
Merge pull request #1656 from multiversx/err-msg-str
andrei-marinica May 29, 2024
bc3b393
moved scenario-cli to meta crate
andrei-marinica May 29, 2024
a1bc377
account tool - username fix
andrei-marinica May 29, 2024
f83bbc0
account tool moved to multiversx-sc-snippets
andrei-marinica May 29, 2024
2335ac5
cleanup, removed meta deps to scenario and sdk
andrei-marinica May 29, 2024
51b404e
moved test_wallets to snippets
andrei-marinica May 29, 2024
915df0b
moved test_wallets mod.rs
andrei-marinica May 29, 2024
c81a6c4
Merge pull request #1658 from multiversx/move-scenario-cli
andrei-marinica May 29, 2024
28de5b5
moved tx response parser to multiversx-sc-snippets
andrei-marinica May 29, 2024
9dc06b6
tx response parser refactor
andrei-marinica May 29, 2024
113346d
tx response parser refactor
andrei-marinica May 29, 2024
c96a12f
unified - blackbox promises_feature
BiancaIalangi May 30, 2024
172e2e3
Merge branch 'rc/v0.51' into feat/managed-decimal
andrei-marinica May 30, 2024
155b621
unified - bf_interact
BiancaIalangi May 30, 2024
391cce6
fix after merge
andrei-marinica May 30, 2024
764343b
Merge pull request #1663 from multiversx/unified-blackbox-promises
andrei-marinica May 30, 2024
a4e27b4
Merge pull request #1664 from multiversx/unified-interactor-bf
andrei-marinica May 30, 2024
dcdf16a
Merge branch 'rc/v0.51' into feat/managed-decimal
andrei-marinica May 30, 2024
9100774
managed decimal test fix after merge
andrei-marinica May 30, 2024
0ffc965
ManagedDecimal type abi fix, proxy update
andrei-marinica May 30, 2024
aadc163
Merge pull request #1659 from multiversx/move-from-network
andrei-marinica May 30, 2024
09a6c8b
retrieve_tx_on_network moved to gateway proxy
andrei-marinica May 29, 2024
89524db
gateway proxy split into files
andrei-marinica May 29, 2024
ca237ea
gateway proxy rename
andrei-marinica May 29, 2024
a31a3b2
gateway proxy mod rename
andrei-marinica May 29, 2024
a2a2649
unified - contract_without_macros
BiancaIalangi May 30, 2024
74207bc
cargo fmt
BiancaIalangi May 30, 2024
6f30d15
Merge pull request #1660 from multiversx/sdk-proxy-refactor
andrei-marinica May 30, 2024
7fe9f04
Merge pull request #1666 from multiversx/unified-contract-without-macros
andrei-marinica May 30, 2024
4be9da5
Merge branch 'rc/v0.51' into feat/managed-decimal
andrei-marinica May 30, 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
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .github/workflows/actions-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

permissions:
checks: write
pull-requests: write

jobs:
contracts:
name: Contracts (nightly)
uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v3.2.0
with:
rust-toolchain: nightly-2024-05-22
path-to-sc-meta: framework/meta
enable-contracts-size-report: false
mx-scenario-go-version: v2.1.0-alpha
coverage-args: --ignore-filename-regex='meta/src' --ignore-filename-regex='wasm-adapter' --ignore-filename-regex='benchmarks/' --ignore-filename-regex='tests/' --output ./coverage.md
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
197 changes: 10 additions & 187 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,190 +12,13 @@ permissions:
pull-requests: write

jobs:
wasm_test:
name: Wasm tests
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: |
pipx install multiversx-sdk-cli==v9.3.1

cargo install wasm-opt
cargo install twiggy

cargo install --path framework/meta
sc-meta install mx-scenario-go --tag v2.1.0-alpha

which mxpy
which wasm-opt
which mx-scenario-go

- name: Build the wasm contracts
env:
RUSTFLAGS: ""
run: sc-meta all build --no-imports --target-dir $(pwd)/target --path .

- name: Run the wasm tests
env:
RUSTFLAGS: ""
run: cargo test --features multiversx-sc-scenario/run-go-tests

- name: Generate the contract report
env:
RUSTFLAGS: ""
run: |
sc-meta all build-dbg --twiggy-paths --target-dir $(pwd)/target --path .
mxpy contract report --skip-build --skip-twiggy --output-format json --output-file report.json

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

- name: Download the base report
uses: dawidd6/action-download-artifact@v2
if: github.event_name == 'pull_request'
continue-on-error: true
with:
workflow: actions.yml
name: report
commit: ${{ github.event.pull_request.base.sha }}
path: base-report

- name: Generate the report template
if: github.event_name == 'pull_request'
run: |
echo "Contract comparison - from {{ .base }} to {{ .head }}" > report.md
if [ ! -f base-report/report.json ]
then
echo ":warning: Warning: Could not download the report for the base branch. Displaying only the report for the current branch. :warning:" >> report.md
mxpy contract report --compare report.json --output-format github-markdown --output-file report-table.md
else
mxpy contract report --compare base-report/report.json report.json --output-format github-markdown --output-file report-table.md
fi
cat report-table.md >> report.md

- name: Render the report from the template
id: template
uses: chuhlomin/render-template@v1
if: github.event_name == 'pull_request'
with:
template: report.md
vars: |
base: ${{ github.event.pull_request.base.sha }}
head: ${{ github.event.pull_request.head.sha }}

- name: Upload the report markdown
uses: actions/upload-artifact@v3
if: github.event_name == 'pull_request'
with:
name: report-markdown
path: report.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: "Contract comparison"

- 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: ${{ steps.template.outputs.result }}
edit-mode: replace

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

- 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))

# which llvm-cov
# which llvm-profdata

- name: Run tests and generate report
env:
RUSTFLAGS: ""
run: |
./tests-coverage.sh

- 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

rust_test:
name: Rust tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-12-11

- name: Run the rust tests
env:
RUSTFLAGS: ""
run: cargo test

clippy_check:
name: Clippy linter check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-12-11
components: clippy
- uses: giraffate/clippy-action@v1
env:
RUSTFLAGS: ""
with:
github_token: ${{ github.token }}
clippy_flags: --all-targets --all-features
contracts:
name: Contracts
uses: multiversx/mx-sc-actions/.github/workflows/contracts.yml@v3.1.0
with:
rust-toolchain: stable
path-to-sc-meta: framework/meta
mx-scenario-go-version: v2.1.0-alpha
coverage-args: --ignore-filename-regex='meta/src' --ignore-filename-regex='wasm-adapter' --ignore-filename-regex='benchmarks/' --ignore-filename-regex='tests/' --output ./coverage.md
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lldb-formatter-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable

- name: Download vscode-lldb
uses: robinraju/release-downloader@v1.5
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/proxy-compare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
proxy_compare:
name: Proxy compare - newly generated vs present in file tree
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: stable
target: wasm32-unknown-unknown

- name: Install prerequisites
run: |
cargo install --path framework/meta

- name: Run proxy compare
run: |
cd contracts
sc-meta all proxy --compare
3 changes: 1 addition & 2 deletions .github/workflows/release-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable
target: wasm32-unknown-unknown

- name: Setup the PATH variable
Expand Down Expand Up @@ -54,4 +54,3 @@ jobs:
file: ./examples-wasm.zip
asset_name: examples-wasm.zip
overwrite: true
body: "This is my release text"
2 changes: 1 addition & 1 deletion .github/workflows/template-test-current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable
target: wasm32-unknown-unknown

- name: Install prerequisites
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template-test-released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
default: true
toolchain: nightly-2023-12-11
toolchain: stable
target: wasm32-unknown-unknown

- name: Install prerequisites
Expand Down
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@
# The root Cargo.lock is kept for dependabot.
contracts/**/Cargo.lock
!contracts/**/wasm*/Cargo.lock
contracts/**/output*/
data/**/Cargo.lock
framework/**/Cargo.lock
sdk/**/Cargo.lock
tools/**/Cargo.lock
vm/**/Cargo.lock

# Profiler outputs
# Coverage outputs
*.profraw
*.profdata
*.coverage
coverage.md

# These are backup files generated by rustfmt
**/*.rs.bk

# VSCode config
# Editors config
.vscode
.zed
.idea

# Others
my-vm-tests.sh
Expand Down
Loading
Loading