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

Release candidate: v0.53 #1739

Merged
merged 120 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
865040c
impl tries
mihaicalinluca Jul 12, 2024
dbdb627
fix debugger backend issue
mihaicalinluca Jul 12, 2024
dfb43b9
changed contract obj api
mihaicalinluca Jul 12, 2024
f0bf090
Merge branch 'master' into whitebox-unified
mihaicalinluca Jul 12, 2024
3fc3410
return new node id on insert element
mihaicalinluca Jul 31, 2024
b98c1f7
pem wallet generation
andreivasilescu24 Aug 12, 2024
b530c1f
[WIP] generated pem file
andreivasilescu24 Aug 12, 2024
d5be23d
demo wallet creation & conversion
andreivasilescu24 Aug 13, 2024
47ef8de
added bech32 command and updated conversion
andreivasilescu24 Aug 13, 2024
eba0141
deleted unnecessary dependency
andreivasilescu24 Aug 13, 2024
a483001
unified syntax - whitebox fix
andrei-marinica Aug 13, 2024
df9abe3
Merge branch 'master' into whitebox-unified
andrei-marinica Aug 13, 2024
9f922b8
unified syntax - whitebox contract_obj cleanup
andrei-marinica Aug 13, 2024
b9dd460
unified syntax - whitebox impl for empty data
andrei-marinica Aug 18, 2024
bcc1b20
fetch transaction status from the process-status endpoint
mihaicalinluca Aug 19, 2024
8d5a21e
Merge pull request #1729 from multiversx/sc-meta-wallet-new
BiancaIalangi Aug 19, 2024
43a99d8
keystore signing done
andreivasilescu24 Aug 14, 2024
695f622
whitebox migration to unified for adder, scenario tester and staking …
mihaicalinluca Aug 19, 2024
a8f1377
upgrade blackbox rust_testing_framework_tester
BiancaIalangi Aug 20, 2024
5c115d3
Merge branch 'rc/v0.53' into unified-blackbox-rust-testing
BiancaIalangi Aug 20, 2024
2d508a9
fix clippy
BiancaIalangi Aug 20, 2024
0490e81
password prompt separated
andreivasilescu24 Aug 20, 2024
3c5bd4f
Merge pull request #1738 from multiversx/unified-blackbox-rust-testing
andrei-marinica Aug 20, 2024
db6da05
Merge pull request #1737 from multiversx/kstore-secret-signing
JustEatAnApple Aug 21, 2024
c1b54c1
Keystore <-> Pem Sc-meta
JustEatAnApple Aug 21, 2024
59ef560
whitebox migration for price aggregator, transfer role, gov module
mihaicalinluca Aug 21, 2024
c00a93f
fixed unittests + small refactors
andreivasilescu24 Aug 22, 2024
dbca030
tests fixed
andreivasilescu24 Aug 22, 2024
fe2ef22
multisig whitebox migration
mihaicalinluca Aug 22, 2024
1de1b5b
impl new crypto opcodes
mihaicalinluca Aug 22, 2024
ea1a01a
Merge pull request #1742 from multiversx/sc-meta-keystore
andreivasilescu24 Aug 22, 2024
9543e03
added in crypto wrapper and test contract
mihaicalinluca Aug 22, 2024
38422b0
register token from interactor
andreivasilescu24 Aug 22, 2024
3fc082a
added tests
mihaicalinluca Aug 22, 2024
6e59c53
created contract variant from new crypto endpoints
mihaicalinluca Aug 23, 2024
97c63ab
basic features sc-config fix
andrei-marinica Aug 23, 2024
e5f07ad
Merge pull request #1721 from multiversx/ordered-binary-mapper-fix
BiancaIalangi Aug 23, 2024
e437447
test reorg
mihaicalinluca Aug 23, 2024
edc2dba
Merge pull request #1707 from multiversx/whitebox-unified
andrei-marinica Aug 24, 2024
93ebae9
deprecated the older whitebox methods
andrei-marinica Aug 24, 2024
e9397b0
price aggregator whitebox migration
andrei-marinica Aug 24, 2024
c841e2a
forwarder whitebox migration
andrei-marinica Aug 24, 2024
ed3af84
rewards distribution test migration
andrei-marinica Aug 24, 2024
6e2d673
allow deprecated
andrei-marinica Aug 24, 2024
f9c8de7
TestTokenIdentifier
andrei-marinica Aug 24, 2024
dc1bcc1
added keystore signing interactor example + system SC func calls inte…
andreivasilescu24 Aug 24, 2024
266b717
test fix
andrei-marinica Aug 26, 2024
e21a5ae
clippy fix
andrei-marinica Aug 26, 2024
2251e8a
Merge pull request #1744 from multiversx/whitebox-depr
andrei-marinica Aug 26, 2024
d0c0231
modified original interactor
andreivasilescu24 Aug 26, 2024
30c251a
small refactor in from_keystore_secret function
andreivasilescu24 Aug 26, 2024
4fa9ccc
Merge pull request #1745 from multiversx/test-esdt-transfer
andrei-marinica Aug 26, 2024
5b28351
Merge pull request #1746 from multiversx/clippy
andrei-marinica Aug 26, 2024
d0b7056
added token ticker saving in interactor storage
andreivasilescu24 Aug 26, 2024
112120f
ed25519-dalek reverted downgrade
andrei-marinica Aug 26, 2024
2a13279
wasm-incompatible feature typo
andrei-marinica Aug 26, 2024
12d3da5
dependency upgrade
andrei-marinica Aug 26, 2024
259aaf2
rand_seeder & ed25519-dalek no longer wasm-incompatible
andrei-marinica Aug 26, 2024
9176321
added more sys calls (SFTs/MetaESDTs)
andreivasilescu24 Aug 26, 2024
82cd85a
updated bech32 crate v0.11
andreivasilescu24 Aug 26, 2024
b49b9df
added unset-roles
andreivasilescu24 Aug 26, 2024
911900e
added transfering ownership example for nft/sft/fungible
andreivasilescu24 Aug 26, 2024
29751a9
[WIP] Added more system func calls
JustEatAnApple Aug 26, 2024
85e06df
added esdt processing for transfer step in interactor
mihaicalinluca Aug 26, 2024
a86a9d8
system SC func calls interactor example done
andreivasilescu24 Aug 27, 2024
48a41f9
unified - whitebox token_merge
BiancaIalangi Aug 27, 2024
e2daf81
verify_bls_aggregated_signature test fix
andrei-marinica Aug 27, 2024
29c5bec
fixed ReturnsNewTokenIdentifier + sugestive prints in interactor func…
andreivasilescu24 Aug 27, 2024
b13757b
unified - compare expected_uri with serialized merged_token_data uri
BiancaIalangi Aug 28, 2024
3a1ee56
Modified the adder interactor example to work with keystore-signing
JustEatAnApple Aug 28, 2024
4928800
Password can now be passed either in terminal or as a string parameter
JustEatAnApple Aug 28, 2024
ca748ff
Decommented a line to showcase the upgrade failure
JustEatAnApple Aug 28, 2024
6f41c77
Made the upgrade failure more clear
JustEatAnApple Aug 28, 2024
5933f50
Updated gas prices
JustEatAnApple Aug 28, 2024
804bf49
added README + small changes in interactor
andreivasilescu24 Aug 28, 2024
1f6f644
Finished updating the adder example
JustEatAnApple Aug 29, 2024
6e6c9e1
ESDTSystemSCAddress in interactor
andrei-marinica Aug 29, 2024
1bf4b45
changed test wallet
andreivasilescu24 Aug 29, 2024
6dc9868
refactored upgrade code
andreivasilescu24 Aug 29, 2024
3e35a45
refactored file system
andreivasilescu24 Aug 29, 2024
02f3c9c
Merge pull request #1751 from multiversx/unified-token-merge-whitebox
andrei-marinica Aug 29, 2024
1d7f495
fixed returnsNewTokenIdentifier interactor
andreivasilescu24 Aug 29, 2024
cc48860
added fix for sc calls creating systemSC issues
andreivasilescu24 Aug 29, 2024
0441536
fixed clippy warnings
andreivasilescu24 Aug 29, 2024
3e46541
Added requested changes for clarity
JustEatAnApple Aug 29, 2024
47b4357
Merge pull request #1755 from multiversx/returns_new_token_identifier…
andreivasilescu24 Aug 29, 2024
bbaae29
Resolved changes requested
JustEatAnApple Aug 29, 2024
ddc233b
Merge pull request #1747 from multiversx/deps-upgrade
andrei-marinica Aug 30, 2024
d31ffa7
crypto EI 1.4 tests ignored
andrei-marinica Aug 30, 2024
4517c25
crypto_verify_secp256r1 test fix
andrei-marinica Aug 30, 2024
f58b4f3
crypto_verify_bls_share test fix
andrei-marinica Aug 31, 2024
d31643c
crypto functions that fail directly no longer return bool
andrei-marinica Aug 31, 2024
0b43a3b
scenario fmt
andrei-marinica Aug 31, 2024
c1a459a
Merge pull request #1743 from multiversx/crypto-opcodes
andrei-marinica Sep 2, 2024
a112965
Merge branch 'rc/v0.53' into system-func-calls-interactor
andreivasilescu24 Sep 2, 2024
e711f65
Refactored system SC proxies
andreivasilescu24 Sep 2, 2024
55f1c40
process status fixes, returnsLogs result handler
mihaicalinluca Sep 2, 2024
cadd246
conflicts
mihaicalinluca Sep 2, 2024
1866c74
removed debug comment
mihaicalinluca Sep 2, 2024
f34c9d0
invalid transaction case
mihaicalinluca Sep 2, 2024
c409864
moved returnsLogs to a different PR
mihaicalinluca Sep 3, 2024
5c5f159
result handler impl
mihaicalinluca Sep 3, 2024
5724b7d
Merge pull request #1753 from multiversx/adder-keystore-signing-example
JustEatAnApple Sep 3, 2024
f634c4c
populate txResult logs with transactionFromNetwork
mihaicalinluca Sep 3, 2024
8f5088f
Merge branch 'rc/v0.53' into system-func-calls-interactor
JustEatAnApple Sep 3, 2024
c7cf953
Merge pull request #1749 from multiversx/system-func-calls-interactor
andrei-marinica Sep 3, 2024
84e6f05
Merge pull request #1748 from multiversx/interactor-esdt-transfer
andrei-marinica Sep 3, 2024
b26f964
Merge pull request #1760 from multiversx/process-status-fixes
andrei-marinica Sep 3, 2024
2659d23
added more tests for managed decimal var
mihaicalinluca Sep 3, 2024
6b1f314
fix after review and tests
mihaicalinluca Sep 3, 2024
ca3489a
added support for object or vec as event data
mihaicalinluca Sep 3, 2024
b9cdef7
log data refactor
andrei-marinica Sep 4, 2024
6ce2d1e
log data refactor
andrei-marinica Sep 4, 2024
d2d2d15
mandos refactor
andrei-marinica Sep 4, 2024
9781aa9
Merge branch 'master' into rc-53-merge-master
andrei-marinica Sep 4, 2024
131a04b
Merge pull request #1763 from multiversx/rc-53-merge-master
andrei-marinica Sep 4, 2024
4ae95f1
Merge pull request #1761 from multiversx/returns-logs-rh
andrei-marinica Sep 4, 2024
29e5061
Merge branch 'rc/v0.53' into managed-decimal-var-tests
andrei-marinica Sep 4, 2024
1aa35d6
dependency upgrade
andrei-marinica Sep 4, 2024
896403a
Merge pull request #1762 from multiversx/managed-decimal-var-tests
andrei-marinica Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
656 changes: 380 additions & 276 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ members = [
"tools/mxpy-snippet-generator",
"tools/payload-macro-generator",
# "tools/plotter",
"tools/interactor-system-func-calls/",

"vm",

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use multiversx_price_aggregator_sc::{
price_aggregator_data::{OracleStatus, TimestampedPrice, TokenPair},
ContractObj, PriceAggregator, MAX_ROUND_DURATION_SECONDS,
PriceAggregator, MAX_ROUND_DURATION_SECONDS,
};

use multiversx_sc_scenario::imports::*;
Expand Down Expand Up @@ -35,7 +35,6 @@ fn world() -> ScenarioWorld {
struct PriceAggregatorTestState {
world: ScenarioWorld,
oracles: Vec<AddressValue>,
price_aggregator_whitebox: WhiteboxContract<ContractObj<DebugApi>>,
}

impl PriceAggregatorTestState {
Expand All @@ -57,16 +56,7 @@ impl PriceAggregatorTestState {
oracles.push(address_value);
}

let price_aggregator_whitebox = WhiteboxContract::new(
PRICE_AGGREGATOR_ADDRESS,
multiversx_price_aggregator_sc::contract_obj,
);

Self {
world,
oracles,
price_aggregator_whitebox,
}
Self { world, oracles }
}

fn deploy(&mut self) -> &mut Self {
Expand Down Expand Up @@ -203,9 +193,10 @@ fn test_price_aggregator_submit() {
state.submit(&state.oracles[0].clone(), 95, 100);

let current_timestamp = 100;
state
.world
.whitebox_query(&state.price_aggregator_whitebox, |sc| {

state.world.query().to(PRICE_AGGREGATOR_ADDRESS).whitebox(
multiversx_price_aggregator_sc::contract_obj,
|sc| {
let token_pair = TokenPair {
from: managed_buffer!(EGLD_TICKER),
to: managed_buffer!(USD_TICKER),
Expand Down Expand Up @@ -237,14 +228,15 @@ fn test_price_aggregator_submit() {
accepted_submissions: 1
}
);
});
},
);

// first oracle submit again - submission not accepted
state.submit(&state.oracles[0].clone(), 95, 100);

state
.world
.whitebox_query(&state.price_aggregator_whitebox, |sc| {
state.world.query().to(PRICE_AGGREGATOR_ADDRESS).whitebox(
multiversx_price_aggregator_sc::contract_obj,
|sc| {
assert_eq!(
sc.oracle_status()
.get(&managed_address!(&state.oracles[0].to_address()))
Expand All @@ -254,7 +246,8 @@ fn test_price_aggregator_submit() {
accepted_submissions: 1
}
);
});
},
);
}

#[test]
Expand Down Expand Up @@ -283,9 +276,9 @@ fn test_price_aggregator_submit_round_ok() {
// submit third
state.submit(&state.oracles[2].clone(), 105, 12_000);

state
.world
.whitebox_query(&state.price_aggregator_whitebox, |sc| {
state.world.query().to(PRICE_AGGREGATOR_ADDRESS).whitebox(
multiversx_price_aggregator_sc::contract_obj,
|sc| {
let result =
sc.latest_price_feed(managed_buffer!(EGLD_TICKER), managed_buffer!(USD_TICKER));

Expand All @@ -312,7 +305,8 @@ fn test_price_aggregator_submit_round_ok() {
decimals
}
);
});
},
);
}

#[test]
Expand All @@ -338,9 +332,9 @@ fn test_price_aggregator_discarded_round() {
// submit second - this will discard the previous submission
state.submit(&state.oracles[1].clone(), current_timestamp - 1, 11_000);

state
.world
.whitebox_query(&state.price_aggregator_whitebox, |sc| {
state.world.query().to(PRICE_AGGREGATOR_ADDRESS).whitebox(
multiversx_price_aggregator_sc::contract_obj,
|sc| {
let token_pair = TokenPair {
from: managed_buffer!(EGLD_TICKER),
to: managed_buffer!(USD_TICKER),
Expand All @@ -353,7 +347,8 @@ fn test_price_aggregator_discarded_round() {
.unwrap(),
managed_biguint!(11_000)
);
});
},
);
}

#[test]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use multiversx_price_aggregator_sc::{
price_aggregator_data::{OracleStatus, TokenPair},
ContractObj, PriceAggregator,
PriceAggregator,
};

use multiversx_sc_scenario::imports::*;
Expand Down Expand Up @@ -34,7 +34,6 @@ fn world() -> ScenarioWorld {
struct PriceAggregatorTestState {
world: ScenarioWorld,
oracles: Vec<AddressValue>,
price_aggregator_whitebox: WhiteboxContract<ContractObj<DebugApi>>,
}

impl PriceAggregatorTestState {
Expand All @@ -60,16 +59,7 @@ impl PriceAggregatorTestState {
oracles.push(address_value);
}

let price_aggregator_whitebox = WhiteboxContract::new(
PRICE_AGGREGATOR_ADDRESS,
multiversx_price_aggregator_sc::contract_obj,
);

Self {
world,
oracles,
price_aggregator_whitebox,
}
Self { world, oracles }
}

fn deploy(&mut self) -> &mut Self {
Expand Down Expand Up @@ -170,9 +160,9 @@ fn test_price_aggregator_submit() {
}

let current_timestamp = 100;
state
.world
.whitebox_query(&state.price_aggregator_whitebox, |sc| {
state.world.query().to(PRICE_AGGREGATOR_ADDRESS).whitebox(
multiversx_price_aggregator_sc::contract_obj,
|sc| {
let blockchain_timestamp = sc.blockchain().get_block_timestamp();

let token_pair = TokenPair {
Expand Down Expand Up @@ -207,7 +197,8 @@ fn test_price_aggregator_submit() {
}
);
}
});
},
);

// submit last that resets the round
state.submit(
Expand Down
Loading
Loading