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.44 #1238

Merged
merged 87 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
229dea7
added alloc and num-bigint features on multiversx-sc dependencies for…
mihaicalinluca Oct 10, 2023
212eb62
Merge branch 'master' into added-features-on-scenario
andrei-marinica Oct 10, 2023
806dab2
added no file and new file logs for test-gen in meta crate
mihaicalinluca Oct 10, 2023
983881b
clippy
mihaicalinluca Oct 10, 2023
1092ab3
meta - allow sc-config.toml
andrei-marinica Oct 10, 2023
62b194d
Merge pull request #1233 from multiversx/added-features-on-scenario
andrei-marinica Oct 10, 2023
1d01ca1
meta - add-unlabelled default true
andrei-marinica Oct 10, 2023
3a5f09f
meta - OutputContractBuilder default fix
andrei-marinica Oct 10, 2023
2242b9b
meta - more Debug
andrei-marinica Oct 10, 2023
ed3756f
fix after review
mihaicalinluca Oct 10, 2023
3bbf856
added allow_multiple_var_args annotation and tests for the validate f…
mihaicalinluca Oct 12, 2023
5e9b274
commit fix
mihaicalinluca Oct 12, 2023
76df05b
clippy
mihaicalinluca Oct 13, 2023
950cb31
Merge pull request #1237 from multiversx/config2
andrei-marinica Oct 13, 2023
0f631ff
Merge pull request #1239 from multiversx/config3
andrei-marinica Oct 13, 2023
c7bdd90
warning in yellow
andrei-marinica Oct 13, 2023
ffb988b
contract examples build fix
mihaicalinluca Oct 13, 2023
658c032
view build fix
mihaicalinluca Oct 13, 2023
43cdfd4
Merge pull request #1236 from multiversx/test-gen-logs
mihaicalinluca Oct 13, 2023
991b3fe
fmt
mihaicalinluca Oct 13, 2023
729f2ac
added order condition and unit tests
mihaicalinluca Oct 13, 2023
fbd7cf4
Merge pull request #1241 from multiversx/allow-multiple-var-args
andrei-marinica Oct 13, 2023
9382707
WIP: Back transfers vm and framework
CostinCarabas Oct 24, 2023
c870341
first version
mihaicalinluca Oct 24, 2023
cd5bbd4
cleanup and refactor
mihaicalinluca Oct 24, 2023
9cad9ba
Merge branch 'master' into rc/v0.44
andrei-marinica Oct 25, 2023
5257107
Merge pull request #1251 from multiversx/rc-44-merge-master
andrei-marinica Oct 25, 2023
c626f51
FunctionCall object
andrei-marinica Oct 24, 2023
23cf900
FunctionCall as multisig argument
andrei-marinica Oct 25, 2023
fc3be65
moved ESDT transfer call conversion to FunctionCall
andrei-marinica Oct 25, 2023
130830d
FunctionCall in async calls
andrei-marinica Oct 25, 2023
db56377
added go and scen args, colored comms and cleanup
mihaicalinluca Oct 26, 2023
48d013b
clippy
mihaicalinluca Oct 26, 2023
a7287d5
Merge pull request #1250 from multiversx/function-call
andrei-marinica Oct 26, 2023
8bcc3d0
added more comms
mihaicalinluca Oct 26, 2023
8844261
cargo fmt
andrei-marinica Oct 27, 2023
3bc4a7a
Merge pull request #1249 from multiversx/sc-meta-test
andrei-marinica Oct 27, 2023
007f5e2
started implementation
mihaicalinluca Oct 27, 2023
8896dd6
started implementation
mihaicalinluca Oct 27, 2023
91197cf
Merge branch 'master' into rc/v0.44
andrei-marinica Oct 30, 2023
90fefe7
Merge branch 'rc/v0.44' into back-transfers
andrei-marinica Oct 30, 2023
e15eb2b
back transfer framework cleanup
andrei-marinica Oct 30, 2023
ca87e3f
vm - back transfer getter
andrei-marinica Oct 30, 2023
6c69a55
vm - back transfer getter disabled
andrei-marinica Oct 30, 2023
015d6d2
EI test fix
andrei-marinica Oct 30, 2023
ada5f08
back transfer test
andrei-marinica Oct 30, 2023
df0362f
back transfers handle tweak
andrei-marinica Oct 30, 2023
62369e5
added base functionality
mihaicalinluca Oct 31, 2023
2d182f9
type name draft
mihaicalinluca Oct 31, 2023
8f0ca30
temporarily disabled sync retrieve tests
andrei-marinica Nov 1, 2023
4d23ba0
fix and cleanup
mihaicalinluca Nov 1, 2023
9d94ebd
clippy and tests fix
mihaicalinluca Nov 1, 2023
eb368b9
test fix
mihaicalinluca Nov 1, 2023
89a0d1c
test fix
mihaicalinluca Nov 1, 2023
c14ae7e
test fix
mihaicalinluca Nov 1, 2023
020637c
Add execute_on_dest_context_with_back_transfers
CostinCarabas Nov 1, 2023
80db926
moved back transfer test to promises-features
andrei-marinica Nov 1, 2023
bccbe1f
Merge pull request #1248 from multiversx/back-transfers
andrei-marinica Nov 1, 2023
3e535ca
added tests and fix after review
mihaicalinluca Nov 2, 2023
13cf4c0
Merge remote-tracking branch 'origin/rc/v0.44' into execute-on-dest-w…
CostinCarabas Nov 2, 2023
e8331c4
Framework: Remove generic BackTransfers
CostinCarabas Nov 2, 2023
c248011
Back Transfers forwarder-vault usage
CostinCarabas Nov 2, 2023
2d4fb50
Add blackbox test for back transfers
CostinCarabas Nov 2, 2023
8f93479
CI - VM v1.4.89
andrei-marinica Nov 2, 2023
411a60b
fix after review
mihaicalinluca Nov 3, 2023
183d2f0
esdt attributes exported in separate abis
mihaicalinluca Nov 3, 2023
9296f88
removed allow multiple var args from trait attributes
mihaicalinluca Nov 3, 2023
461aecf
clippy
mihaicalinluca Nov 3, 2023
178260e
Promises-feature: Add back transfers
CostinCarabas Nov 3, 2023
c648dcd
Test renaming
CostinCarabas Nov 3, 2023
b991184
Ignore back transfers test for now
CostinCarabas Nov 3, 2023
9629a60
Test new actions (adjust vmtools).
andreibancioiu Nov 3, 2023
01975d2
Newer actions.
andreibancioiu Nov 3, 2023
b7d64af
Promises feature refactor
CostinCarabas Nov 3, 2023
df2f5a2
Promises Feature:Back Transfers:Fixes after review
CostinCarabas Nov 3, 2023
1ccae98
Use proper release of mx-sc-actions.
andreibancioiu Nov 3, 2023
9a12317
esdt attribute individual json, tests
andrei-marinica Nov 3, 2023
e4940bc
esdt attribute abi test fix
andrei-marinica Nov 3, 2023
a427446
Merge pull request #1253 from multiversx/esdt-attribute
andrei-marinica Nov 3, 2023
eb26bc6
AddressToId storage mapper
psorinionut Nov 3, 2023
9ceb093
sc-config.toml fix
andrei-marinica Nov 3, 2023
7674415
Merge pull request #1256 from multiversx/latest-vm-1-4
andrei-marinica Nov 3, 2023
3969b02
Merge pull request #1257 from multiversx/address-to-id-mapper
andrei-marinica Nov 3, 2023
98d7891
Merge branch 'rc/v0.44' into execute-on-dest-with-back-transfers
andrei-marinica Nov 3, 2023
fa6a5ba
clippy, fmt
andrei-marinica Nov 3, 2023
308dd19
back-transfer feature flag, refactoring
andrei-marinica Nov 3, 2023
b097a18
Merge pull request #1254 from multiversx/execute-on-dest-with-back-tr…
andrei-marinica Nov 3, 2023
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
5 changes: 3 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ permissions:
jobs:
contracts:
name: Contracts
uses: multiversx/mx-sc-actions/.github/workflows/[email protected].0
uses: multiversx/mx-sc-actions/.github/workflows/[email protected].3
with:
rust-toolchain: nightly-2023-05-26
vmtools-version: v1.4.60
vmtools-repository: "https://github.com/multiversx/mx-chain-vm-v1_4-go/archive/{TAG}.tar.gz"
vmtools-version: v1.4.89
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
102 changes: 2 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ main = "str-repeat"

# the only purpose of this config is to specify the allocator
[contracts.str-repeat]
add-unlabelled = true
allocator = "leaking"
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use random::*;

#[multiversx_sc::contract]
pub trait KittyOwnership {
#[allow_multiple_var_args]
#[init]
fn init(
&self,
Expand Down
3 changes: 3 additions & 0 deletions contracts/examples/lottery-esdt/src/lottery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub trait Lottery {
#[init]
fn init(&self) {}

#[allow_multiple_var_args]
#[endpoint]
fn start(
&self,
Expand All @@ -43,6 +44,7 @@ pub trait Lottery {
);
}

#[allow_multiple_var_args]
#[endpoint(createLotteryPool)]
fn create_lottery_pool(
&self,
Expand All @@ -69,6 +71,7 @@ pub trait Lottery {
);
}

#[allow_multiple_var_args]
#[allow(clippy::too_many_arguments)]
fn start_lottery(
&self,
Expand Down
94 changes: 48 additions & 46 deletions contracts/examples/multisig/interact/src/multisig_interact_nfts.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::time::Duration;

use multiversx_sc_scenario::multiversx_sc::codec::multi_types::IgnoreValue;
use multiversx_sc_snippets::multiversx_sc::codec::test_util::top_encode_to_vec_u8_or_panic;
use multiversx_sc_scenario::multiversx_sc::{
codec::{multi_types::IgnoreValue, Empty},
types::FunctionCall,
};

use super::*;

Expand Down Expand Up @@ -39,17 +41,17 @@ impl MultisigInteract {
.interactor
.sc_call_get_result(
ScCallStep::new()
.call(self.state.multisig().propose_async_call(
system_sc_address,
ISSUE_COST,
"registerAndSetAllRoles".to_string(),
MultiValueVec::from([
COLLECTION_NAME.as_bytes(),
COLLECTION_TICKER.as_bytes(),
TOKEN_TYPE.as_bytes(),
top_encode_to_vec_u8_or_panic(&0u32).as_slice(),
]),
))
.call(
self.state.multisig().propose_async_call(
system_sc_address,
ISSUE_COST,
FunctionCall::new("registerAndSetAllRoles")
.argument(&COLLECTION_NAME)
.argument(&COLLECTION_TICKER)
.argument(&TOKEN_TYPE)
.argument(&0u32),
),
)
.from(&self.wallet_address)
.gas_limit("10,000,000")
.expect(TxExpect::ok().additional_error_message("failed to issue collection")),
Expand Down Expand Up @@ -100,15 +102,15 @@ impl MultisigInteract {
.interactor
.sc_call_get_result(
ScCallStep::new()
.call(self.state.multisig().propose_async_call(
system_sc_address,
ISSUE_COST,
"issueNonFungible".to_string(),
MultiValueVec::from([
COLLECTION_NAME.to_string(),
COLLECTION_TICKER.to_string(),
]),
))
.call(
self.state.multisig().propose_async_call(
system_sc_address,
ISSUE_COST,
FunctionCall::new("issueNonFungible")
.argument(&COLLECTION_NAME)
.argument(&COLLECTION_TICKER),
),
)
.from(&self.wallet_address)
.gas_limit("10,000,000"),
)
Expand Down Expand Up @@ -158,16 +160,16 @@ impl MultisigInteract {
.interactor
.sc_call_get_result(
ScCallStep::new()
.call(self.state.multisig().propose_async_call(
&self.system_sc_address,
0u64,
"setSpecialRole".to_string(),
MultiValueVec::from([
self.collection_token_identifier.as_bytes(),
multisig_address.as_bytes(),
"ESDTRoleNFTCreate".as_bytes(),
]),
))
.call(
self.state.multisig().propose_async_call(
&self.system_sc_address,
0u64,
FunctionCall::new("setSpecialRole")
.argument(&self.collection_token_identifier)
.argument(&multisig_address)
.argument(&"ESDTRoleNFTCreate"),
),
)
.from(&self.wallet_address)
.gas_limit("10,000,000"),
)
Expand Down Expand Up @@ -200,20 +202,20 @@ impl MultisigInteract {
);

let typed_sc_call = ScCallStep::new()
.call(self.state.multisig().propose_async_call(
&multisig_address,
0u64,
"ESDTNFTCreate".to_string(),
MultiValueVec::from([
self.collection_token_identifier.as_bytes(),
top_encode_to_vec_u8_or_panic(&1u32).as_slice(),
item_name.as_bytes(),
top_encode_to_vec_u8_or_panic(&ROYALTIES).as_slice(),
&[][..],
METADATA.as_bytes(),
image_cid.as_bytes(),
]),
))
.call(
self.state.multisig().propose_async_call(
&multisig_address,
0u64,
FunctionCall::new("ESDTNFTCreate")
.argument(&self.collection_token_identifier)
.argument(&1u32)
.argument(&item_name)
.argument(&ROYALTIES)
.argument(&Empty)
.argument(&METADATA)
.argument(&image_cid),
),
)
.from(&self.wallet_address)
.gas_limit("10,000,000");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::time::Duration;

use multiversx_sc_scenario::multiversx_sc::types::FunctionCall;
#[allow(unused_imports)]
use multiversx_sc_snippets::multiversx_sc::types::{
EsdtTokenPayment, MultiValueEncoded, TokenIdentifier,
Expand Down Expand Up @@ -66,8 +67,7 @@ impl MultisigInteract {
.call(self.state.multisig().propose_async_call(
bech32::decode(WEGLD_SWAP_SC_BECH32),
WRAP_AMOUNT,
"wrapEgld".to_string(),
MultiValueEncoded::new(),
FunctionCall::new("wrapEgld"),
))
.from(&self.wallet_address)
.gas_limit("10,000,000"),
Expand Down Expand Up @@ -99,8 +99,7 @@ impl MultisigInteract {
.call(self.state.multisig().propose_async_call(
contract_call.basic.to,
0u64,
contract_call.basic.endpoint_name,
contract_call.basic.arg_buffer.into_multi_value_encoded(),
contract_call.basic.function_call,
))
.from(&self.wallet_address)
.gas_limit("10,000,000"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ main = "main"

[contracts.main]
name = "multisig"
add-unlabelled = true

[contracts.full]
name = "multisig-full"
Expand All @@ -13,4 +12,5 @@ add-labels = ["multisig-external-view"]
[contracts.view]
name = "multisig-view"
external-view = true
add-unlabelled = false
add-labels = ["multisig-external-view"]
Loading
Loading