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 master -> feat/stable #1608

Merged
merged 640 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
640 commits
Select commit Hold shift + click to select a range
dee6e08
send_raw migration and other small impls and modifications
mihaicalinluca Apr 8, 2024
3710414
Merge pull request #1541 from multiversx/multi-exec-interact-2
andrei-marinica Apr 8, 2024
16ff8d1
fix mandos
mihaicalinluca Apr 8, 2024
a56b3ee
Merge pull request #1540 from multiversx/static-cache-remove
andrei-marinica Apr 8, 2024
11db738
merge feat/unified
mihaicalinluca Apr 8, 2024
10dcd1d
builtin func - claim dev rewards send wrapper
BiancaIalangi Apr 8, 2024
70b4a44
builtin func - clam dev rewards fix
andrei-marinica Apr 8, 2024
978c562
codec - universal_decode_number optimziation
andrei-marinica Apr 8, 2024
ac7efa7
builtin func - change owner address & esdt local burn
BiancaIalangi Apr 8, 2024
bdea877
codec - universal_decode_number optimziation
andrei-marinica Apr 8, 2024
3e8dd5f
builtin func - edst local mint & nft add multiple uri
BiancaIalangi Apr 8, 2024
bd70cef
fix after review
mihaicalinluca Apr 9, 2024
43abcf3
sc 0.48.0
andrei-marinica Apr 9, 2024
66e38cb
Cargo.lock update
andrei-marinica Apr 9, 2024
7f2a441
builtin func - nft update attributes & esdt nft create
BiancaIalangi Apr 9, 2024
f2845bb
Merge pull request #1544 from multiversx/release-48
andrei-marinica Apr 9, 2024
4130234
builtin func - ESDT NFT create proxy returns u64
andrei-marinica Apr 9, 2024
615c0fb
builtin func proxy small optimization
andrei-marinica Apr 9, 2024
0d4d7a0
Merge branch 'master' into 'feat/unified'
andrei-marinica Apr 9, 2024
23fd29c
Merge pull request #1546 from multiversx/unified-merge-master
andrei-marinica Apr 9, 2024
ab02bae
Merge pull request #1537 from multiversx/builtin-func-proxy-migration
andrei-marinica Apr 9, 2024
aaaf7d6
fmt TxProxy - rustfmt skip on enums that contain struct as variant
BiancaIalangi Apr 9, 2024
56500de
fmt TxProxy - fix clippy
BiancaIalangi Apr 9, 2024
354e5bb
fmt TxProxy - aggregate 2 write lines into 1
BiancaIalangi Apr 9, 2024
a3e3765
Merge pull request #1547 from multiversx/fmt-txproxy
andrei-marinica Apr 9, 2024
718acb5
partial test fix
mihaicalinluca Apr 9, 2024
4feff9a
imports - base framework cleanup
andrei-marinica Apr 9, 2024
4ffca0e
imports - scenario & snippets
andrei-marinica Apr 9, 2024
0c74401
cleanup
andrei-marinica Apr 9, 2024
3df1695
imports - base framework refactor
andrei-marinica Apr 9, 2024
c9f3925
Merge pull request #1548 from multiversx/all-imports
andrei-marinica Apr 9, 2024
f9c19fd
sc 0.49.0-alpha.2
andrei-marinica Apr 9, 2024
83e6133
Merge pull request #1549 from multiversx/release-49-alpha-2
andrei-marinica Apr 9, 2024
251bff4
result handler cleanup in examples
andrei-marinica Apr 9, 2024
eafbc37
Merge pull request #1550 from multiversx/unified-cleanup
andrei-marinica Apr 10, 2024
9db6c73
Bech32Address & interactor cleanup
andrei-marinica Apr 9, 2024
46288c9
ESDTSystemSCAddress used in interactors directly
andrei-marinica Apr 9, 2024
216ef10
cleanup
andrei-marinica Apr 10, 2024
ec71f0a
unified syntax - repl deploy
BiancaIalangi Apr 10, 2024
86156a6
test fix
andrei-marinica Apr 10, 2024
6302f14
blackbox tests migration for price aggregator
mihaicalinluca Apr 10, 2024
fafe621
Merge pull request #1551 from multiversx/bech32-address
andrei-marinica Apr 10, 2024
bd2bf9c
TxToStep refactor
andrei-marinica Apr 11, 2024
7d9d68e
Merge pull request #1554 from multiversx/tx-to-refactor
andrei-marinica Apr 11, 2024
c04bf6a
refactor - removed parameters retrieve_account_as_scenario_set_state
BiancaIalangi Apr 11, 2024
13e283f
scenario test contract added in feature tests
mihaicalinluca Apr 11, 2024
e4a0461
refactor - replace return response from ScenarioRaw to SetStateStep
BiancaIalangi Apr 11, 2024
74a4771
scenario test contract & adder cleanup
andrei-marinica Apr 11, 2024
a7943c7
Merge pull request #1556 from multiversx/scenario-test-contract
andrei-marinica Apr 11, 2024
5b0a700
more refactor in retrieve_account_as_scenario_set_state
andrei-marinica Apr 11, 2024
af63bee
retrieve accounts - more minor refactoring
andrei-marinica Apr 11, 2024
2e68161
Merge pull request #1555 from multiversx/refactor-retrieve-account
andrei-marinica Apr 11, 2024
b9d05bd
impl for check state builder, tests and fmt
mihaicalinluca Apr 12, 2024
5bfaca8
create expect error
BiancaIalangi Apr 12, 2024
1d476eb
set state builder impl, tests and fmt
mihaicalinluca Apr 12, 2024
8f9614c
decomment condition searching for existing account
mihaicalinluca Apr 12, 2024
1077bbe
fix review
BiancaIalangi Apr 12, 2024
011cbc2
added separate set state test
mihaicalinluca Apr 12, 2024
22eae5e
Merge pull request #1559 from multiversx/set-state-builder-impl
mihaicalinluca Apr 12, 2024
974c23e
legacy ESDTSystemSmartContractProxy made public
andrei-marinica Apr 12, 2024
0429cef
forwarder-legacy (adapted from master)
andrei-marinica Apr 12, 2024
635c5f5
fixed backwards compatibility for upgrade_contract and upgrade_from_s…
andrei-marinica Apr 12, 2024
766064c
fixed backwards compatibility for with_esdt_transfer, changed multi_e…
andrei-marinica Apr 12, 2024
145eb1b
ESDTPayment triple as TxPayment
andrei-marinica Apr 12, 2024
34a28c6
Merge pull request #1558 from multiversx/expect-error
BiancaIalangi Apr 12, 2024
6967966
merge feat/unified and check state builder in scenario tester
mihaicalinluca Apr 12, 2024
62a7ff2
u64 values for nonces
mihaicalinluca Apr 12, 2024
8584bdf
Merge pull request #1560 from multiversx/u-back-comp
andrei-marinica Apr 12, 2024
7c9806b
Merge branch 'feat/unified' into check-state-builder-impl
andrei-marinica Apr 12, 2024
031a9a4
Merge pull request #1557 from multiversx/check-state-builder-impl
andrei-marinica Apr 13, 2024
f6901a2
fix unused
andrei-marinica Apr 12, 2024
00eeb40
removed dependencies that are no longer used
andrei-marinica Apr 13, 2024
7ec450c
Merge pull request #1561 from multiversx/unused
andrei-marinica Apr 13, 2024
cd7ab6b
sc 0.49.0-alpha.3
andrei-marinica Apr 13, 2024
47ce977
Merge pull request #1562 from multiversx/release-alpha-3
andrei-marinica Apr 13, 2024
2b2817e
merge feat/unified
mihaicalinluca Apr 15, 2024
ebb9850
Merge branch 'feat/unified' into crowdfunding-esdt-btest-repl
BiancaIalangi Apr 15, 2024
82f90d7
cleanup
mihaicalinluca Apr 15, 2024
24f35ac
block info builder impl
mihaicalinluca Apr 15, 2024
df8b61a
tx to step fix for esdt payments
mihaicalinluca Apr 15, 2024
3773481
clippy
mihaicalinluca Apr 15, 2024
78d48b9
Merge branch 'tx-to-step' into crowdfunding-esdt-btest-repl
BiancaIalangi Apr 16, 2024
6665b7c
Merge pull request #1566 from multiversx/tx-to-step
mihaicalinluca Apr 16, 2024
9b4d317
unified syntax - more migrations
andrei-marinica Apr 16, 2024
7bb85c9
check deposit problem
BiancaIalangi Apr 16, 2024
b015b41
wasm crate comment fix
andrei-marinica Apr 17, 2024
e6449ff
gitignore tweak
andrei-marinica Apr 17, 2024
a0b1760
Merge pull request #1570 from multiversx/wasm-crate-comment-fix
andrei-marinica Apr 17, 2024
96e5f0b
replace with new syntax
BiancaIalangi Apr 17, 2024
f0bf082
reaname const
BiancaIalangi Apr 17, 2024
0330c4f
unified syntax - expect value
andrei-marinica Apr 17, 2024
b4145b0
build fix
andrei-marinica Apr 17, 2024
5876642
Merge pull request #1563 from multiversx/crowdfunding-esdt-btest-repl
andrei-marinica Apr 17, 2024
9542a5a
Merge pull request #1571 from multiversx/expect-value
andrei-marinica Apr 17, 2024
43edef0
scenario tx file rename
andrei-marinica Apr 17, 2024
02556f8
scenario exec - rename, reorg, cleanup
andrei-marinica Apr 17, 2024
9549b7e
check state refactor
andrei-marinica Apr 17, 2024
b9bd798
Merge pull request #1572 from multiversx/set-check-refactor
andrei-marinica Apr 17, 2024
49f5895
Merge branch 'feat/unified' into block-info-builder
andrei-marinica Apr 17, 2024
a372df5
set state - refactor
andrei-marinica Apr 18, 2024
cc1d215
check tx - fix expect message when status is empty
BiancaIalangi Apr 18, 2024
7c291a5
set state - integrated block info
andrei-marinica Apr 18, 2024
2786162
set state - refactor
andrei-marinica Apr 18, 2024
f20cb3b
set state - refactor
andrei-marinica Apr 18, 2024
618854a
set state - new address
andrei-marinica Apr 18, 2024
108d73d
set state - cleanup
andrei-marinica Apr 18, 2024
cc6febd
unified syntax - migrate multisig blackbox tests
BiancaIalangi Apr 18, 2024
8eb704c
unified syntax - migrate all tests
BiancaIalangi Apr 19, 2024
7edaef6
Merge branch 'feat/unified' into send-raw-migration
andrei-marinica Apr 21, 2024
73638aa
unified syntax - sync call same context & readonly
andrei-marinica Apr 21, 2024
1114009
cleanup
andrei-marinica Apr 21, 2024
08cc1af
Merge pull request #1542 from multiversx/send-raw-migration
mihaicalinluca Apr 22, 2024
a62df09
Merge pull request #1574 from multiversx/set-more
andrei-marinica Apr 22, 2024
e8a4169
Merge pull request #1573 from multiversx/fix-expect-message
andrei-marinica Apr 22, 2024
0388e22
Merge pull request #1567 from multiversx/more-migrations
andrei-marinica Apr 22, 2024
0ba7886
Merge branch 'feat/unified' into multisig-blackbox-unified
andrei-marinica Apr 22, 2024
68a6df6
cleanup
andrei-marinica Apr 22, 2024
5f03f83
optimization for transaction fetching for interactor and small fix fo…
mihaicalinluca Apr 22, 2024
b57034d
Merge pull request #1575 from multiversx/multisig-blackbox-unified
andrei-marinica Apr 22, 2024
8415371
merge feat/unified
mihaicalinluca Apr 22, 2024
dbf0e2b
cleanup and extra impls for AddressValue
mihaicalinluca Apr 22, 2024
4be479b
#[type_abi] for structs and proxy regen
mihaicalinluca Apr 22, 2024
67a38f7
Merge pull request #1577 from multiversx/interactor-retrieve
mihaicalinluca Apr 22, 2024
396c456
Merge pull request #1552 from multiversx/price-aggr-blackbox
mihaicalinluca Apr 22, 2024
99d6177
unified syntax - removed method to_caller
andrei-marinica Apr 22, 2024
a2539b6
unified syntax - migrate rewards distribution
BiancaIalangi Apr 22, 2024
ccde5de
fix clippy
BiancaIalangi Apr 22, 2024
48cfe2a
unified syntax - new address in deploy tx
andrei-marinica Apr 22, 2024
ffcf2e6
remove redundant balance set
BiancaIalangi Apr 23, 2024
5110098
Merge pull request #1579 from multiversx/to-caller-remove
andrei-marinica Apr 23, 2024
70e1066
Merge pull request #1582 from multiversx/unified-new-address
andrei-marinica Apr 23, 2024
9037d84
sc 0.49.0-alpha.4, sdk 0.4.0-alpha.4
andrei-marinica Apr 23, 2024
30d58a8
Cargo.lock update
andrei-marinica Apr 23, 2024
d4dc675
Merge pull request #1583 from multiversx/release-alpha-4
andrei-marinica Apr 23, 2024
50a269e
impl tx_hash - data not stored
BiancaIalangi Apr 23, 2024
85903eb
cleanup
BiancaIalangi Apr 23, 2024
c402176
impl tx_hash
andrei-marinica Apr 23, 2024
551e3ef
fix test
BiancaIalangi Apr 23, 2024
776dd05
cleanup
andrei-marinica Apr 24, 2024
30e3368
comment
andrei-marinica Apr 24, 2024
2099f17
Merge branch 'feat/unified' into tx-hash
andrei-marinica Apr 24, 2024
d367b7d
Merge pull request #1584 from multiversx/tx-hash
andrei-marinica Apr 24, 2024
30c422f
moved legacy contract_deploy.rs
andrei-marinica Apr 12, 2024
652732b
moved legacy AsyncCall objects
andrei-marinica Apr 24, 2024
a39cc62
deprecated TypedFunctionCall
andrei-marinica Apr 24, 2024
118d378
tx_data dir
andrei-marinica Apr 24, 2024
8926fd8
result hadnlers reorg
andrei-marinica Apr 24, 2024
be8405d
Merge pull request #1586 from multiversx/contract-deploy-move
andrei-marinica Apr 24, 2024
94b834c
Merge branch 'feat/unified' into rewards-blackbox
BiancaIalangi Apr 24, 2024
48d81ea
cleanup
BiancaIalangi Apr 24, 2024
53dd069
rename test
BiancaIalangi Apr 24, 2024
b5ffe04
coverage renderer panics if we try to render a file that is not in root
laurci Apr 24, 2024
95fa5c7
impl create account raw and set egld balance
BiancaIalangi Apr 24, 2024
73ff74e
Merge pull request #1587 from multiversx/fix/coverage-fail-if-file-no…
laurci Apr 24, 2024
d9d7b9f
added reset function on the StaticApi
gfusee Apr 24, 2024
19dac18
set nft properties
BiancaIalangi Apr 25, 2024
fbd49fc
impl set developer rewards
BiancaIalangi Apr 25, 2024
464a2a2
Merge pull request #1581 from multiversx/rewards-blackbox
andrei-marinica Apr 25, 2024
050eb24
ScearioWorld register contract new file
andrei-marinica Apr 25, 2024
2cafacf
register_contract generic code source
andrei-marinica Apr 25, 2024
e0e6932
Merge pull request #1590 from multiversx/register-generic
andrei-marinica Apr 26, 2024
9d85f0a
expr refactor: address
andrei-marinica Apr 25, 2024
65208e1
expr refactor: sc
andrei-marinica Apr 25, 2024
c3d1a30
expr refactor: mxsc
andrei-marinica Apr 25, 2024
6055b7c
expr refactor: rename, reverted macros
andrei-marinica Apr 26, 2024
b47133c
expr refactor: rename
andrei-marinica Apr 26, 2024
3b81210
expr refactor: rename in tests
andrei-marinica Apr 26, 2024
e423519
Merge branch 'feat/unified' into set-state-repl
BiancaIalangi Apr 26, 2024
9d2ed7b
Merge pull request #1591 from multiversx/expr-encapsulation
andrei-marinica Apr 26, 2024
796af09
set local roles
BiancaIalangi Apr 26, 2024
5a2cae8
set state via AnnotatedValue - account address
andrei-marinica Apr 26, 2024
1276f17
set state via AnnotatedValue - balance, nonce
andrei-marinica Apr 26, 2024
88fb553
simplified small number nested encode/decode
andrei-marinica Apr 27, 2024
04a10d9
abi fix - OperationCompletionStatus
andrei-marinica Apr 27, 2024
c8dfdbe
set state via AnnotatedValue - fungible ESDT
andrei-marinica Apr 27, 2024
0470780
set state via AnnotatedValue - esdt_nft_balance
andrei-marinica Apr 28, 2024
2799dcd
set state via AnnotatedValue - esdt_nft_balance_and_attributes
andrei-marinica Apr 28, 2024
e066ac9
set state via AnnotatedValue - code, owner
andrei-marinica Apr 28, 2024
abc7803
Merge branch 'master' into num-decode
andrei-marinica Apr 28, 2024
ff8c7fb
Merge branch 'simplify-small-nested' into num-decode
andrei-marinica Apr 28, 2024
2a97826
Merge pull request #1594 from multiversx/abi-fix-operation_completion…
andrei-marinica Apr 29, 2024
352ec3d
set state via AnnotatedValue - esdt_nft_all_properties, esdt_nft_last…
BiancaIalangi Apr 29, 2024
f18b36e
set block via AnnotatedValue - block_epoch, block_nonce, block_round,…
BiancaIalangi Apr 29, 2024
c8bda97
check state via AnnotatedValue - code
BiancaIalangi Apr 29, 2024
64cfb77
api fetch optimization, test reorg and unit test
mihaicalinluca Apr 29, 2024
9ff6a1a
set state via AnnotatedValue - replace in multisig, rewards, price_ag…
BiancaIalangi Apr 29, 2024
b458044
Merge branch 'set-state-repl' into set-state-annot
BiancaIalangi Apr 29, 2024
d8e36e9
set state via AnnotatedValue - whitebox framework
BiancaIalangi Apr 29, 2024
6937665
test reorg in separate files
mihaicalinluca Apr 29, 2024
f21b3fc
set state via AnnotatedValue - separate types
BiancaIalangi Apr 29, 2024
f152723
set state via AnnotatedValue - small fix
BiancaIalangi Apr 29, 2024
f79c4e2
Merge pull request #1596 from multiversx/api-fetch-opt
mihaicalinluca Apr 29, 2024
3b25603
Merge pull request #1592 from multiversx/set-state-annot
BiancaIalangi Apr 29, 2024
75c2a11
codec - decode u64 via into_max_size_buffer_align_right
andrei-marinica Apr 29, 2024
5bf1b8e
renamed ReturnsResultAs
andrei-marinica Apr 30, 2024
f3599c3
Merge pull request #1598 from multiversx/returns-result-as
andrei-marinica Apr 30, 2024
533f31c
cleanup
andrei-marinica Apr 30, 2024
f9e9f67
Merge pull request #1589 from gfusee/fix/static_api_manual_reset
andrei-marinica Apr 30, 2024
8083e9a
Merge branch 'master' into num-decode-3
andrei-marinica Apr 30, 2024
0275185
increase code coverage - make optional param in esdt_nft_all_properties
BiancaIalangi Apr 30, 2024
07847bd
increase code coverage - migrate forwarder blackbox to unified syntax
BiancaIalangi Apr 30, 2024
d930267
Merge branch 'feat/unified' into increase-code-coverage
BiancaIalangi Apr 30, 2024
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
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
  •  
  •  
  •  
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: nightly-2023-12-11
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 }}
1 change: 0 additions & 1 deletion .github/workflows/release-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ jobs:
file: ./examples-wasm.zip
asset_name: examples-wasm.zip
overwrite: true
body: "This is my release text"
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
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,48 @@ They are:
- `multiversx-chain-scenario-format`, in short `scenario-format`, scenario JSON serializer/deserializer, 1 crate.
- `multiversx-sdk`, in short `sdk`, allows communication with the chain(s), 1 crate.

## [sc 0.49.0, codec 0.18.8, sdk 0.4.0] - 2024-05-07
- Unified transaction syntax
- new syntax for sending transactions from contracts
- new syntax for integration tests: tx, set state, check state, etc.
- new syntax for interactors
- new proxies, generated from sc-meta
- support for upgrade in new proxies
- Improved interactor tx result polling performance.

## [sc 0.48.1, codec 0.18.7] - 2024-04-30
- Simplified decoding of small numbers (i64/u64).
- Manual reset of the `StaticApi`, in order to free memory for long-running tasks.

## [sc 0.49.0-alpha.4, sdk 0.4.0-alpha.4] - 2024-04-23
Fourth pre-release, contains many interactor improvements, including improved tx polling.

## [sc 0.49.0-alpha.3] - 2024-04-13
Third pre-release of the unified syntax, includes backwards compatibility fixes and testing set state/check state.

## [sc 0.49.0-alpha.2] - 2024-04-09
Second pre-release of the unified syntax. Most features done, including fully featured interactors.
Still missing: set state/check state in tests.

## [sc 0.48.0] - 2024-04-09
- When serializing to a managed buffer, static buffer caching is disabled by default.
- `sc-meta:` - installers for wasm32 target and wasm-opt.
- Integrated traits for token management: `FixedSupplyToken`, `Mergeable`.

## [sc 0.48.0-alpha.1] - 2024-03-27 (actually alpha release of 0.49.0)
First pre-release of the unified syntax. Syntax not yet stabilized, should only be used for experimenting with various smart contracts.

## [sc 0.47.8] - 2024-03-22
- Test coverage functionality in sc-meta.
- Removed deprecation from legacy whitebox testing framework, since it is still used extensively.

## [sc 0.47.7] - 2024-03-15
- Template bugfix (concerning the interactor).

## [sc 0.47.6] - 2024-03-14
- Template naming bugfix, regarding numbers in the project name.
- Added the interactor to the adder template.

## [sc 0.47.5] - 2024-03-08
- Fixed an issue with `MapMapper` when reading from another contract.
- Got rid of nightly feature `maybe_uninit_uninit_array`/`maybe_uninit_array_assume_init`.
Expand Down
Loading
Loading