Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
d110b1f
add new blockchain hooks
laurci Jun 27, 2024
23dad85
fixed failing tests
sstanculeanu Jul 10, 2024
3bc6f49
Merge branch 'rc/v1.7.next1' into update_go_1.22
sstanculeanu Jul 10, 2024
08bfffe
updated deps
sstanculeanu Jul 10, 2024
99059df
added flag for GobDecode + reverted last commit
sstanculeanu Jul 11, 2024
cdd2105
Merge branch 'rc/v1.7.next1' into new-blockchain-hooks
laurci Jul 16, 2024
4985161
update mx-scenario-go
laurci Jul 16, 2024
95d5c78
add new blockchain hooks to mocks
laurci Jul 16, 2024
f232172
new blockchain hooks gas costs for scenario
laurci Jul 16, 2024
8edd2d9
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Jul 19, 2024
4a16495
update deps
sstanculeanu Jul 19, 2024
c8c1c16
new blockchain hooks test sc
laurci Jul 19, 2024
f2eeacf
updated deps
sstanculeanu Jul 19, 2024
60d132f
updated deps
sstanculeanu Jul 19, 2024
81702b5
updated linter
sstanculeanu Jul 19, 2024
aa65cf7
basic-features EI 1.3 backup
andrei-marinica Jul 19, 2024
399ede1
Managed Buffer <-> small int conversions VM hooks fixes
andrei-marinica Jul 19, 2024
9b16039
basic-features test update, with ne wsmall int VM hooks
andrei-marinica Jul 19, 2024
4a1c679
Merge branch 'rc/v1.7.next1' into convert-small-int
andrei-marinica Jul 19, 2024
7fec3b6
update executor VM hooks
andrei-marinica Jul 25, 2024
dcd1c6d
revert composability tests
andrei-marinica Jul 25, 2024
24cacc7
Merge branch 'rc/v1.7.next1' into convert-small-int
andrei-marinica Jul 25, 2024
cb0f4fa
Merge remote-tracking branch 'origin/rc/v1.7.2' into new-blockchain-h…
laurci Jul 26, 2024
e706794
indentation fix
andrei-marinica Jul 26, 2024
791c302
Merge pull request #852 from multiversx/convert-small-int
andrei-marinica Jul 26, 2024
570ab7d
Merge remote-tracking branch 'origin/rc/v1.7.2' into new-blockchain-h…
laurci Jul 26, 2024
75f5a5c
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Jul 30, 2024
e0bd348
updated deps after merge
sstanculeanu Jul 30, 2024
81045e4
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Jul 30, 2024
1bbf725
Merge pull request #861 from multiversx/merge_rc17next1_into_rc172_20…
sstanculeanu Jul 30, 2024
37385bd
Merge remote-tracking branch 'origin/rc/v1.7.2' into new-blockchain-h…
laurci Aug 2, 2024
247a786
Revert "Merge pull request #861 from multiversx/merge_rc17next1_into_…
sstanculeanu Aug 2, 2024
be6f994
Merge pull request #865 from multiversx/revert-last-merge-from-rc17next1
sstanculeanu Aug 2, 2024
2b9f5cb
Merge remote-tracking branch 'origin/rc/v1.7.2' into new-blockchain-h…
laurci Aug 2, 2024
cdfa4e1
update wasmer binaries
laurci Aug 21, 2024
4b34a52
Merge pull request #871 from multiversx/feat-new-wasmer2-binaries-1.7.2
sasurobert Aug 21, 2024
683085f
Merge branch 'rc/v1.7.next1' into 1.7.1-to-1.7.2
sasurobert Aug 21, 2024
16bbb45
fixing after merge
sasurobert Aug 21, 2024
ffe805c
Merge pull request #872 from multiversx/1.7.1-to-1.7.2
sasurobert Aug 21, 2024
af19be4
fixing after merge
sasurobert Aug 22, 2024
27ca176
fixing after merge
sasurobert Aug 22, 2024
123123b
fixing after refactor
sasurobert Aug 22, 2024
0032ebe
fixing after refactor
sasurobert Aug 22, 2024
7046731
fixing after refactor
sasurobert Aug 22, 2024
71bea6f
cleanup VM.
sasurobert Aug 22, 2024
a96ff8c
cleanup VM.
sasurobert Aug 22, 2024
8a661cb
fixes after refactor
sasurobert Aug 22, 2024
27310f3
Merge pull request #875 from multiversx/vm-cleanup
sasurobert Aug 22, 2024
66b0899
Merge branch 'rc/v1.7.2' into withFault-refactor
sasurobert Aug 22, 2024
b0ce92c
fix after review
sasurobert Aug 22, 2024
debe21f
Merge remote-tracking branch 'origin/withFault-refactor' into withFau…
sasurobert Aug 22, 2024
dd4237b
Merge pull request #873 from multiversx/withFault-refactor
sasurobert Aug 30, 2024
bd6ef70
Merge remote-tracking branch 'origin/rc/barnard' into new-blockchain-…
laurci Oct 21, 2024
b35d85c
update gas trace names
laurci Oct 21, 2024
40d1e7c
fix handle err for UseGasBoundedAndAddTracedGas
laurci Oct 21, 2024
814ac75
Merge pull request #835 from multiversx/rc/v1.7.next1
sstanculeanu Nov 13, 2024
f2006a0
mandos test update
andrei-marinica Jun 17, 2024
7dcaecb
mandos test update v0.54.4
BiancaIalangi Nov 26, 2024
6ba220b
fix test adderLog
BiancaIalangi Nov 26, 2024
ff1c2d7
mandos test update v0.54.4 - delete dbg.wasm and dbg.mxsc.json
BiancaIalangi Nov 27, 2024
56769a1
Merge pull request #894 from multiversx/mandos-47
BiancaIalangi Nov 28, 2024
7f493a7
update executor binaries
laurci Dec 22, 2024
602348a
add managedGetAllTransfersCallValue hoook
laurci Jan 13, 2025
827357a
early return if call value exists
laurci Jan 14, 2025
4a86390
replace cmp check with sign
laurci Jan 15, 2025
5e3285d
mask internal libs error
laurci Jan 16, 2025
b3cd5fe
fix mandos test
laurci Jan 16, 2025
2980159
Merge pull request #854 from multiversx/new-blockchain-hooks
laurci Feb 3, 2025
2688019
Merge branch 'rc/barnard' into mask-internal-errors
laurci Feb 3, 2025
1cd56e4
Merge branch 'rc/barnard' into universal-call-value-hook
laurci Feb 3, 2025
ef40054
simplify erorr reporting
laurci Feb 3, 2025
687e02d
add comment to ManagedGetAllTransfersCallValueTyped
laurci Feb 3, 2025
0e4d012
Merge pull request #897 from multiversx/mask-internal-errors
laurci Feb 4, 2025
0307296
Merge branch 'rc/barnard' into universal-call-value-hook
laurci Feb 4, 2025
96937fe
Merge pull request #895 from multiversx/universal-call-value-hook
laurci Feb 4, 2025
ea14013
add managedGetCodeHash hook
laurci Feb 4, 2025
c1734c7
Merge pull request #898 from multiversx/get-code-hash-hook
laurci Feb 5, 2025
0417076
add failing tests
laurci Feb 5, 2025
579fa51
started implementation of the fix
sasurobert Feb 7, 2025
7bc49d0
fix done
sasurobert Feb 7, 2025
6543e4c
add ESDT tests for backtransfers fixes
laurci Feb 10, 2025
2ed1acd
Merge pull request #899 from multiversx/back-transfers-improvements
laurci Feb 11, 2025
6d48329
mandos test - fix transfering esdt to nonexisting account
BiancaIalangi Feb 11, 2025
662f1c1
Merge pull request #900 from multiversx/transfer-esdt-nonexisting-acc
BiancaIalangi Feb 11, 2025
c26f513
Merge branch 'master' into barnard-merge-master
andrei-marinica Feb 14, 2025
12a9da1
mandos test update - framework v0.55
andrei-marinica Feb 14, 2025
fdf3c10
mandos - fix crypto error message
andrei-marinica Feb 14, 2025
e0d48e0
Merge pull request #903 from multiversx/barnard-merge-master
sasurobert Feb 17, 2025
5d6a7b5
mandos test - only egld in multi-transfer
BiancaIalangi Feb 17, 2025
26b1b72
Merge branch 'rc/barnard' into update_go_1.22
sasurobert Feb 17, 2025
0266de0
merges fixes
sasurobert Feb 17, 2025
20e2f69
merges fixes
sasurobert Feb 17, 2025
7aef7fc
update mx-scenario
BiancaIalangi Feb 18, 2025
3466214
merges fixes
sasurobert Feb 18, 2025
0ce2e7c
updated deps
sstanculeanu Feb 18, 2025
ac81a1a
fixing tests
sasurobert Feb 18, 2025
9623846
fixing tests
sasurobert Feb 18, 2025
611c6d2
mandos tests
BiancaIalangi Feb 18, 2025
9fc1aa9
Merge pull request #904 from multiversx/mandos-only-egld-multi-transfer
BiancaIalangi Feb 18, 2025
240f5e8
updated go to 1.23.6
sstanculeanu Feb 18, 2025
b613a58
Merge branch 'rc/barnard' of https://github.com/multiversx/mx-chain-v…
sstanculeanu Feb 18, 2025
604d44b
linter to latest
sstanculeanu Feb 18, 2025
4a598f9
transferAndExecute and ExecuteOnDest with error return. new endpoints…
sasurobert Feb 24, 2025
b969bae
go generate
sasurobert Feb 24, 2025
1f90a29
update binaries
laurci Feb 25, 2025
0b142d3
fix tests
laurci Feb 25, 2025
f9f6472
add tests for transfer with no fail execution on error
laurci Feb 25, 2025
5c590cc
add execute with return error tests for ESDT
laurci Feb 26, 2025
10ff47f
Merge pull request #853 from multiversx/update_go_1.22
sstanculeanu Feb 28, 2025
8b8e725
Merge remote-tracking branch 'origin/rc/barnard' into transfer-with-r…
laurci Mar 4, 2025
2a0a9e2
add integration test
laurci Mar 4, 2025
44c62de
update wasmer binaries
laurci Mar 6, 2025
470e1a9
add managed get esdt token type hook
laurci Mar 6, 2025
ee9e637
fix failed execution when using esdt transfer and execute with return
laurci Mar 6, 2025
fa25b74
integration tests for ESDT multitransfer with return error
laurci Mar 14, 2025
95d1f87
integration tests for ESDT multitransfer with return error
laurci Mar 14, 2025
a20902f
Merge pull request #907 from multiversx/transfer-with-return-err
laurci Mar 18, 2025
876874c
Merge branch 'rc/barnard' into get-esdt-token-type
laurci Mar 18, 2025
9eb31e4
update executor and add tests
laurci Mar 18, 2025
151325e
add activation flag
laurci Mar 18, 2025
a3caca8
implement check for imported functions
laurci Mar 18, 2025
42d650e
add comment
laurci Mar 18, 2025
ac975aa
Merge pull request #909 from multiversx/get-esdt-token-type
laurci Mar 20, 2025
4865d2d
EI generator - wasmer 5
andrei-marinica Mar 31, 2025
ee6f188
deserialize modifications
mihaicalinluca Apr 1, 2025
b10bb1d
add activation flags for barnard reserved functions and rename GetRou…
laurci Apr 2, 2025
46cd55f
added constructor
mihaicalinluca Apr 3, 2025
5dd344e
Merge pull request #913 from multiversx/reserved-functions-activation…
andrei-marinica Apr 8, 2025
a555077
added Serialize
mihaicalinluca Apr 8, 2025
3843355
partialeq
mihaicalinluca Apr 9, 2025
d569706
formatting, missing import
mihaicalinluca Apr 11, 2025
1445d3f
mutable self in vmHooks
mihaicalinluca Apr 11, 2025
c2a5155
Merge pull request #912 from multiversx/opcode-cost-deserialize-gen
andrei-marinica Apr 29, 2025
2f20197
Merge pull request #911 from multiversx/wasmer5-gen
andrei-marinica Apr 29, 2025
ec4022d
Merge branch 'feat/rust-vm-gen' into vm-hooks-refactor-gen
andrei-marinica Apr 29, 2025
5a4a5c6
executor gen - generator update after merge
andrei-marinica Apr 29, 2025
47a79d3
Merge pull request #915 from multiversx/vm-hooks-refactor-gen
andrei-marinica Apr 29, 2025
62c60f0
cleanup opcodeCost gen
mihaicalinluca Apr 30, 2025
b9f0b8b
vmHooks refactor - early exit & dispatcher legacy
andrei-marinica Apr 30, 2025
54c0ec3
Merge pull request #918 from multiversx/cleanup
andrei-marinica Apr 30, 2025
1f70303
vmHooks refactor - VMHooksLegacyAdapter
andrei-marinica May 2, 2025
6985c98
vm ops
sasurobert May 12, 2025
02ddc8f
vm ops
sasurobert May 12, 2025
4d52f07
vm ops
sasurobert May 12, 2025
6442806
vm ops
andrei-marinica May 12, 2025
5afcffc
Merge pull request #920 from multiversx/imp-vm-ops
sasurobert May 14, 2025
ca080db
implementing the proper fix
sasurobert May 14, 2025
7d894cc
implementing the proper fix
sasurobert May 14, 2025
e80d556
Merge pull request #921 from multiversx/merge-vm-andromeda
sasurobert May 15, 2025
b92ecd4
executor gen - VM hooks revert & update
andrei-marinica May 16, 2025
f849a07
executor gen - revert wasmer imports
andrei-marinica May 16, 2025
b9b3a0b
Merge branch 'master' into andromeda-to-barnard
sasurobert May 19, 2025
5883dd3
fixes after merge
sasurobert May 19, 2025
2838146
go mod
sasurobert May 20, 2025
20e56de
Merge pull request #922 from multiversx/andromeda-to-barnard
sasurobert May 20, 2025
1176a41
executor gen - update
andrei-marinica May 22, 2025
60b0b2e
Merge pull request #919 from multiversx/vh2-gen
andrei-marinica May 26, 2025
4ec8cc7
Merge branch 'rc/barnard' into rust-vm-barnard
andrei-marinica May 26, 2025
327c640
executor gen - fix
andrei-marinica May 26, 2025
a8d4532
Merge pull request #925 from multiversx/rust-vm-barnard
andrei-marinica May 26, 2025
e944850
Merge pull request #917 from multiversx/feat/rust-vm-gen
andrei-marinica May 26, 2025
53e9c45
update wasmer binaries from rc/barnard
andrei-marinica May 26, 2025
b26bfaa
Merge pull request #926 from multiversx/barnard-binaries
andrei-marinica May 27, 2025
09324c1
add blockchain hooks for timestamps in millis
laurci Jun 4, 2025
eff4276
update tests
laurci Jun 4, 2025
b441d17
update gas used by hook
laurci Jun 4, 2025
9423eaa
update gas used by hook
laurci Jun 4, 2025
431713b
Experiment with cover run.
andreibancioiu Jun 5, 2025
e88f851
Fix code coverage upload.
andreibancioiu Jun 5, 2025
f0eff93
Adjust codecov config.
andreibancioiu Jun 5, 2025
76d5738
Undo some changes.
andreibancioiu Jun 5, 2025
3e55d4c
barnard-features test
andrei-marinica Jun 6, 2025
16b0784
Merge pull request #929 from multiversx/workflows-06-05
andreibancioiu Jun 6, 2025
a0906e4
barnard-features code hash test update
andrei-marinica Jun 6, 2025
5ad26b4
Add sonar scan properties.
andreibancioiu Jun 6, 2025
fd7cde8
Formatting.
andreibancioiu Jun 6, 2025
14b8ea2
rename get_block_round_time_ms
laurci Jun 10, 2025
5d7e5be
Merge branch 'timestamps-ms-blockchain-hooks' of github.com:multivers…
laurci Jun 10, 2025
f9c5fb6
generator - ei fix
andrei-marinica Jun 10, 2025
a498b2b
rename EpochStartBlockTimestampMs, barnard-features test fix
andrei-marinica Jun 10, 2025
c5112bf
barnard fallible sync and transf-exec tests
andrei-marinica Jun 12, 2025
50ea397
rename EpochStartBlockTimestampMs
laurci Jun 12, 2025
9172de9
Merge remote-tracking branch 'origin/timestamps-ms-blockchain-hooks' …
laurci Jun 13, 2025
a4233a0
simplify ExecuteESDTTransfer for barnard
laurci Jun 13, 2025
ad85cda
Revert "simplify ExecuteESDTTransfer for barnard"
laurci Jun 13, 2025
fa52715
Merge branch 'master' of https://github.com/multiversx/mx-chain-vm-go…
sstanculeanu Jun 13, 2025
895c729
Merge pull request #930 from multiversx/sonar-init
andreibancioiu Jun 13, 2025
a77dd23
Merge branch 'rc/barnard' into merge-master-into-rc-barnard-2024.16.13
sstanculeanu Jun 13, 2025
75ef95c
Merge pull request #932 from multiversx/merge-master-into-rc-barnard-…
sstanculeanu Jun 13, 2025
07d2b56
barnard fallible transf-exec test: multi egld+esdt
andrei-marinica Jun 13, 2025
3c325e6
mandos test update
andrei-marinica Jun 16, 2025
8377e2e
mandos - payable features barnard
andrei-marinica Jun 16, 2025
fb0f8f4
mandos - payable features cleanup, ReplacePath in ScenariosTestBuilder
andrei-marinica Jun 16, 2025
8b65867
mandos - basic features barnard, cleanup of ei 1.4
andrei-marinica Jun 16, 2025
4f4f7b1
simplify ExecuteESDTTransfer for barnard
laurci Jun 17, 2025
cf77b48
transfer and executre single egld esdt with multi transfer esdt
laurci Jun 17, 2025
b59b8cb
testing
sasurobert Jun 17, 2025
f6349a7
Merge remote-tracking branch 'origin/fallible-tests' into fallible-tests
sasurobert Jun 17, 2025
0564417
testing
sasurobert Jun 17, 2025
7ee7278
Merge branch 'rc/barnard' into timestamps-ms-blockchain-hooks
laurci Jun 17, 2025
abc8e33
add paths to be ignored in codecov
sergiuosvat Jun 17, 2025
5d491aa
update codecov.yml file
sergiuosvat Jun 17, 2025
e0881d0
Merge remote-tracking branch 'origin/rc/barnard' into fallible-tests
BeniaminDrasovean Jun 17, 2025
60e622f
fixes after review
sergiuosvat Jun 17, 2025
34fa967
ignore root folders too
sergiuosvat Jun 17, 2025
d00aa7d
ignore testgen folder
sergiuosvat Jun 17, 2025
ea2c07c
update go mod
BeniaminDrasovean Jun 17, 2025
f4cd942
testing
sasurobert Jun 17, 2025
600b0b0
testing
sasurobert Jun 17, 2025
5dc3e2c
mandos tests - transf exec EGLD fallible
andrei-marinica Jun 17, 2025
5a3f382
Merge pull request #933 from multiversx/ignore-codecov-paths
sergiuosvat Jun 17, 2025
521df3b
testing
sasurobert Jun 17, 2025
a8f4104
testing
sasurobert Jun 17, 2025
2491bdc
update go mod
BeniaminDrasovean Jun 17, 2025
b5a66c5
update go mod with rollback gas fix, revert tests
andrei-marinica Jun 17, 2025
5d03b25
delete comment
sasurobert Jun 17, 2025
cb5412d
Merge pull request #931 from multiversx/fallible-tests
sasurobert Jun 17, 2025
d7945dc
Merge branch 'rc/barnard' into timestamps-ms-blockchain-hooks
sasurobert Jun 17, 2025
7c2a78b
mandos - transfer execute no payment error
andrei-marinica Jun 17, 2025
0657ccf
Merge pull request #928 from multiversx/timestamps-ms-blockchain-hooks
sstanculeanu Jun 18, 2025
fe31c7c
update gas usage for hooks
laurci Jun 19, 2025
88a95c2
test fix
andrei-marinica Jun 19, 2025
46d7893
update gas usage for hooks
laurci Jun 20, 2025
366bf2b
update gas usage for hooks
laurci Jun 20, 2025
77492ed
add tests
laurci Jun 23, 2025
14b1f29
update gas usage for hooks
laurci Jun 23, 2025
f92b26c
update gas usage for hooks
laurci Jun 23, 2025
8a9e3b7
update gas usage for hooks
laurci Jun 23, 2025
89f0661
mandos - promises test update
andrei-marinica Jun 24, 2025
8156c73
Merge pull request #935 from multiversx/update-gas-for-hooks
laurci Jun 25, 2025
4af31a3
updated deps
sstanculeanu Jun 25, 2025
c2734bd
Merge pull request #938 from multiversx/update-deps
sstanculeanu Jun 26, 2025
cd9d6af
mandos - composability test update - incl back-transfers
andrei-marinica Jun 28, 2025
736053e
Merge branch 'rc/barnard' into mandos-promises-update
andrei-marinica Jun 28, 2025
23b809f
mandos test update
andrei-marinica Jun 30, 2025
14f228c
mandos test update
andrei-marinica Jul 1, 2025
51bb473
mandos test update
andrei-marinica Jul 3, 2025
0f49029
mandos - egld balance after back transfer
andrei-marinica Jul 7, 2025
9c32536
cleanup
andrei-marinica Jul 7, 2025
ca9d7d4
testing and fix
sasurobert Jul 7, 2025
7dbaf02
Merge remote-tracking branch 'origin/egld-balance-after' into egld-ba…
sasurobert Jul 7, 2025
6c7eed2
Merge pull request #937 from multiversx/mandos-promises-update
andrei-marinica Jul 7, 2025
4291dec
Merge branch 'rc/barnard' into egld-balance-after
sasurobert Jul 7, 2025
3fc47a6
fixing tests
sasurobert Jul 7, 2025
5e2a52c
Merge remote-tracking branch 'origin/egld-balance-after' into egld-ba…
sasurobert Jul 7, 2025
d7048a2
fixing tests
sasurobert Jul 7, 2025
d3b1b7e
mandos test update
andrei-marinica Jul 7, 2025
8ec203e
Merge pull request #940 from multiversx/mandos-48
andrei-marinica Jul 7, 2025
ebeafaf
Merge pull request #939 from multiversx/egld-balance-after
sstanculeanu Jul 8, 2025
05006fc
Merge pull request #901 from multiversx/rc/barnard
sstanculeanu Jul 18, 2025
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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
test:
strategy:
matrix:
go-version: [1.20.7]
go-version: [1.23.6]
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Test (Linux)
if: runner.os == 'Linux'
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
name: Build
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -33,9 +33,12 @@ jobs:
fi
- name: Run unit tests
run: |
TESTS_TO_RUN=$(go list ./... | grep -v /integrationTests/ | grep -v /fuzz/ | grep -v /mandos-go/json/integrationTests | grep -v /mandos-go/expression/integrationTests)
TESTS_TO_RUN=$(go list ./... | grep -v /integrationTests/ | grep -v /fuzz/)
go test -short -cover -coverprofile=coverage.txt -covermode=atomic -v ${TESTS_TO_RUN}

- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash) -f coverage.txt -y codecov.yml

uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
name: golangci linter
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.20.7
- uses: actions/checkout@v3
go-version: 1.23.6
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.53.2
version: v1.64.5

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,9 @@ endif
cp ./cmd/vmserver/vmserver ${VMSERVER_PATH}

test:
go clean -cache -testcache
VMEXECUTOR="wasmer1" go test ./...
go clean -cache -testcache
VMEXECUTOR="wasmer2" go test ./...

test-w1: clean
VMEXECUTOR="wasmer1" go test ./...

test-w2: clean
VMEXECUTOR="wasmer2" go test ./...

Expand Down
5 changes: 0 additions & 5 deletions cmd/scenariostest/scenariosTest.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package main
import (
scenclibase "github.com/multiversx/mx-chain-scenario-go/clibase"
scenio "github.com/multiversx/mx-chain-scenario-go/scenario/io"

vmscenario "github.com/multiversx/mx-chain-vm-go/scenario"
"github.com/multiversx/mx-chain-vm-go/wasmer"
"github.com/multiversx/mx-chain-vm-go/wasmer2"
cli "github.com/urfave/cli/v2"
)
Expand Down Expand Up @@ -42,9 +40,6 @@ func (*vm15Flags) ParseFlags(cCtx *cli.Context) scenclibase.CLIRunOptions {
}

vmBuilder := vmscenario.NewScenarioVMHostBuilder()
if cCtx.Bool("wasmer1") {
vmBuilder.OverrideVMExecutor = wasmer.ExecutorFactory()
}
if cCtx.Bool("wasmer2") {
vmBuilder.OverrideVMExecutor = wasmer2.ExecutorFactory()
}
Expand Down
11 changes: 9 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
ignore:
- "**/*.pb.go" # wildcards accepted

- "**/*.pb.go"
- "**testInitializerInputs.go"
- "**testInitializerVMOutput.go"
- "**hosttest/**"
- "**mock/**"
- "**scenario/**"
- "**test/**"
- "**testcommon/**"
- "**testgen/**"
17 changes: 17 additions & 0 deletions config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@
CleanReturnData = 10
DeleteFromReturnData = 10
GetCodeMetadata = 10
GetCodeHash = 10
IsBuiltinFunction = 10
IsReservedFunctionName = 10
GetRoundTime = 10
EpochStartBlockTimeStamp = 10
EpochStartBlockNonce = 10
EpochStartBlockRound = 10

[EthAPICost]
UseGas = 10
Expand Down Expand Up @@ -148,6 +153,7 @@
BigFloatAbs = 10
BigFloatSqrt = 10
BigFloatPow = 10
BigFloatPowPerIteration = 10
BigFloatFloor = 10
BigFloatCeil = 10
BigFloatIsInt = 10
Expand Down Expand Up @@ -184,6 +190,10 @@
MBufferToBigIntSigned = 10
MBufferFromBigIntUnsigned = 10
MBufferFromBigIntSigned = 10
MBufferToSmallIntUnsigned = 10
MBufferToSmallIntSigned = 10
MBufferFromSmallIntUnsigned = 10
MBufferFromSmallIntSigned = 10
MBufferToBigFloat = 10
MBufferFromBigFloat = 10
MBufferStorageStore = 10
Expand All @@ -192,6 +202,13 @@
MBufferFinish = 10
MBufferSetRandom = 10

[ManagedMapAPICost]
ManagedMapNew = 10
ManagedMapPut = 10
ManagedMapGet = 10
ManagedMapRemove = 10
ManagedMapContains = 10

[WASMOpcodeCost]
AtomicFence = 1
AtomicNotify = 1
Expand Down
190 changes: 100 additions & 90 deletions config/gasCost.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,58 +31,63 @@ type BaseOperationCost struct {

// BaseOpsAPICost defines the API operations gas cost config structure
type BaseOpsAPICost struct {
GetSCAddress uint64
GetOwnerAddress uint64
IsSmartContract uint64
GetShardOfAddress uint64
GetExternalBalance uint64
GetBlockHash uint64
GetOriginalTxHash uint64
GetCurrentTxHash uint64
GetPrevTxHash uint64
TransferValue uint64
GetArgument uint64
GetFunction uint64
GetNumArguments uint64
StorageStore uint64
StorageLoad uint64
CachedStorageLoad uint64
GetCaller uint64
GetCallValue uint64
Log uint64
Finish uint64
SignalError uint64
GetBlockTimeStamp uint64
GetGasLeft uint64
Int64GetArgument uint64
Int64StorageStore uint64
Int64StorageLoad uint64
Int64Finish uint64
GetStateRootHash uint64
GetBlockNonce uint64
GetBlockEpoch uint64
GetBlockRound uint64
GetBlockRandomSeed uint64
ExecuteOnSameContext uint64
ExecuteOnDestContext uint64
DelegateExecution uint64
ExecuteReadOnly uint64
AsyncCallStep uint64
AsyncCallbackGasLock uint64
CreateAsyncCall uint64
SetAsyncCallback uint64
SetAsyncGroupCallback uint64
SetAsyncContextCallback uint64
GetCallbackClosure uint64
CreateContract uint64
GetReturnData uint64
GetNumReturnData uint64
GetReturnDataSize uint64
CleanReturnData uint64
DeleteFromReturnData uint64
GetCodeMetadata uint64
IsBuiltinFunction uint64
IsReservedFunctionName uint64
GetSCAddress uint64
GetOwnerAddress uint64
IsSmartContract uint64
GetShardOfAddress uint64
GetExternalBalance uint64
GetBlockHash uint64
GetOriginalTxHash uint64
GetCurrentTxHash uint64
GetPrevTxHash uint64
TransferValue uint64
GetArgument uint64
GetFunction uint64
GetNumArguments uint64
StorageStore uint64
StorageLoad uint64
CachedStorageLoad uint64
GetCaller uint64
GetCallValue uint64
Log uint64
Finish uint64
SignalError uint64
GetBlockTimeStamp uint64
GetGasLeft uint64
Int64GetArgument uint64
Int64StorageStore uint64
Int64StorageLoad uint64
Int64Finish uint64
GetStateRootHash uint64
GetBlockNonce uint64
GetBlockEpoch uint64
GetBlockRound uint64
GetBlockRandomSeed uint64
ExecuteOnSameContext uint64
ExecuteOnDestContext uint64
DelegateExecution uint64
ExecuteReadOnly uint64
AsyncCallStep uint64
AsyncCallbackGasLock uint64
CreateAsyncCall uint64
SetAsyncCallback uint64
SetAsyncGroupCallback uint64
SetAsyncContextCallback uint64
GetCallbackClosure uint64
CreateContract uint64
GetReturnData uint64
GetNumReturnData uint64
GetReturnDataSize uint64
CleanReturnData uint64
DeleteFromReturnData uint64
GetCodeMetadata uint64
GetCodeHash uint64
IsBuiltinFunction uint64
IsReservedFunctionName uint64
GetRoundTime uint64
EpochStartBlockTimeStamp uint64
EpochStartBlockNonce uint64
EpochStartBlockRound uint64
}

// DynamicStorageLoadCostCoefficients holds the signed coefficients of the func that will compute the gas cost
Expand Down Expand Up @@ -152,24 +157,25 @@ type BigIntAPICost struct {

// BigFloatAPICost defines the big float operations gas cost config structure
type BigFloatAPICost struct {
BigFloatNewFromParts uint64
BigFloatAdd uint64
BigFloatSub uint64
BigFloatMul uint64
BigFloatDiv uint64
BigFloatTruncate uint64
BigFloatNeg uint64
BigFloatClone uint64
BigFloatCmp uint64
BigFloatAbs uint64
BigFloatSqrt uint64
BigFloatPow uint64
BigFloatFloor uint64
BigFloatCeil uint64
BigFloatIsInt uint64
BigFloatSetBigInt uint64
BigFloatSetInt64 uint64
BigFloatGetConst uint64
BigFloatNewFromParts uint64
BigFloatAdd uint64
BigFloatSub uint64
BigFloatMul uint64
BigFloatDiv uint64
BigFloatTruncate uint64
BigFloatNeg uint64
BigFloatClone uint64
BigFloatCmp uint64
BigFloatAbs uint64
BigFloatSqrt uint64
BigFloatPow uint64
BigFloatPowPerIteration uint64
BigFloatFloor uint64
BigFloatCeil uint64
BigFloatIsInt uint64
BigFloatSetBigInt uint64
BigFloatSetInt64 uint64
BigFloatGetConst uint64
}

// CryptoAPICost defines the crypto operations gas cost config structure
Expand Down Expand Up @@ -198,26 +204,30 @@ type CryptoAPICost struct {

// ManagedBufferAPICost defines the managed buffer operations gas cost config structure
type ManagedBufferAPICost struct {
MBufferNew uint64
MBufferNewFromBytes uint64
MBufferGetLength uint64
MBufferGetBytes uint64
MBufferGetByteSlice uint64
MBufferCopyByteSlice uint64
MBufferSetBytes uint64
MBufferAppend uint64
MBufferAppendBytes uint64
MBufferToBigIntUnsigned uint64
MBufferToBigIntSigned uint64
MBufferFromBigIntUnsigned uint64
MBufferFromBigIntSigned uint64
MBufferToBigFloat uint64
MBufferFromBigFloat uint64
MBufferStorageStore uint64
MBufferStorageLoad uint64
MBufferGetArgument uint64
MBufferFinish uint64
MBufferSetRandom uint64
MBufferNew uint64
MBufferNewFromBytes uint64
MBufferGetLength uint64
MBufferGetBytes uint64
MBufferGetByteSlice uint64
MBufferCopyByteSlice uint64
MBufferSetBytes uint64
MBufferAppend uint64
MBufferAppendBytes uint64
MBufferToBigIntUnsigned uint64
MBufferToBigIntSigned uint64
MBufferFromBigIntUnsigned uint64
MBufferFromBigIntSigned uint64
MBufferToSmallIntUnsigned uint64
MBufferToSmallIntSigned uint64
MBufferFromSmallIntUnsigned uint64
MBufferFromSmallIntSigned uint64
MBufferToBigFloat uint64
MBufferFromBigFloat uint64
MBufferStorageStore uint64
MBufferStorageLoad uint64
MBufferGetArgument uint64
MBufferFinish uint64
MBufferSetRandom uint64
}

// ManagedMapAPICost defines the managed map operations gas cost config structure
Expand Down
Loading
Loading