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.55 #1853

Draft
wants to merge 110 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
abe973a
integration of executor v1.7.next1
andrei-marinica Jul 18, 2024
36aedd4
ManagedRefMut implementation
andrei-marinica Nov 8, 2024
59047ab
ManagedType from_handle marked unsafe, refactoring
andrei-marinica Nov 9, 2024
9669110
test fix
andrei-marinica Nov 10, 2024
6e5b66a
ManagedType from_handle refactor - BigFloat
andrei-marinica Nov 10, 2024
11898ea
ManagedType from_handle refactor - BigInt/BigUint
andrei-marinica Nov 11, 2024
812e9e5
cleanup
andrei-marinica Nov 11, 2024
08fcd29
Merge pull request #1850 from multiversx/managed-ref-mut
andrei-marinica Nov 11, 2024
da9bea3
ManagedOption refactor
andrei-marinica Nov 12, 2024
a97945c
cleanup
andrei-marinica Nov 12, 2024
5b7a803
Merge branch 'rc/v0.55' into 'feat/vm-1.7.next1'
andrei-marinica Nov 15, 2024
9eac9fd
cargo fmt
andrei-marinica Nov 15, 2024
9f1cd4c
Merge branch 'master' into 'rc/v0.55'
andrei-marinica Nov 15, 2024
7409cb8
Merge pull request #1861 from multiversx/merge-master-55
andrei-marinica Nov 15, 2024
029ab4b
Merge branch 'rc/v0.55' into 'feat/vm-1.7.next1'
andrei-marinica Nov 15, 2024
55c3842
Merge pull request #1860 from multiversx/merge-spica-55
andrei-marinica Nov 15, 2024
f6d62d1
using multiversx-chain-vm-executor v0.3.0
andrei-marinica Nov 15, 2024
57a580b
EI version comment
andrei-marinica Nov 15, 2024
320e292
Merge pull request #1862 from multiversx/executor-3
andrei-marinica Nov 15, 2024
28d5b91
ManagedType - forget_into_handle; ManagedOption fix
andrei-marinica Nov 18, 2024
cc250e1
ManagedType - forget_into_handle in to ManagedVecItem impl for manage…
andrei-marinica Nov 18, 2024
835d656
cargo clippy & fmt
andrei-marinica Nov 18, 2024
04e59ef
set state initial implementation for chain simulator, test in adder
mihaicalinluca Nov 20, 2024
de44b3e
Merge pull request #1712 from multiversx/feat/vm-1.7.next1
andrei-marinica Nov 21, 2024
445d7bc
typos
mihaicalinluca Nov 21, 2024
43d5c1f
Merge pull request #1854 from multiversx/man-opt-refactor
andrei-marinica Nov 22, 2024
d829a3d
ManagedVecItem payload refactor - several attempts
andrei-marinica Nov 25, 2024
6a6ff5c
sync mandos with v0.54.4
BiancaIalangi Nov 26, 2024
3f400e2
impl write to/ read from state file in interactor and new set state f…
mihaicalinluca Nov 26, 2024
4acebb0
VM Rust - fix transferValueOnly in async call
BiancaIalangi Nov 26, 2024
8c6ae73
clippy fix
BiancaIalangi Nov 26, 2024
bb59ac1
ManagedVecItem payload refactor - more attempts, read_from_payload impl
andrei-marinica Nov 26, 2024
08b47ef
ManagedVecItem payload refactor - cleanup
andrei-marinica Nov 26, 2024
58090a1
ManagedVecItem payload refactor - borrow_from_payload impl
andrei-marinica Nov 27, 2024
b6c31f1
clippy fix
andrei-marinica Nov 27, 2024
50c674c
ManagedVecItem payload refactor - remove from_byte_reader_as_borrow
andrei-marinica Nov 27, 2024
348f046
ManagedVecItem payload refactor - remove read_from_payload
andrei-marinica Nov 27, 2024
1db9f8e
clippy fix
andrei-marinica Nov 27, 2024
91011d0
ManagedVecItem payload refactor - eq fix
andrei-marinica Nov 27, 2024
a886acc
ManagedVecItem payload refactor - save_to_payload impl
andrei-marinica Nov 27, 2024
01a849e
ManagedVecItem payload refactor - remove into_byte_writer
andrei-marinica Nov 27, 2024
2afe444
ManagedVecItem payload refactor - cleanup
andrei-marinica Nov 27, 2024
a37d26f
Merge branch 'rc/v0.55' into merge-master
BiancaIalangi Nov 27, 2024
5b74562
Merge pull request #1879 from multiversx/merge-master
andrei-marinica Nov 27, 2024
922d7b4
Merge branch 'rc/v0.55' into payload-refactor
andrei-marinica Nov 27, 2024
cb60d95
ManagedVecItem payload refactor - fix after merge
andrei-marinica Nov 27, 2024
567b8f1
clippy fix
BiancaIalangi Nov 27, 2024
2a5343e
Merge branch 'rc/v0.55' into chain-simulator-set-state
mihaicalinluca Nov 27, 2024
dcaad24
interactor tests run sequentially, test fix
mihaicalinluca Nov 27, 2024
ff19ae5
Merge pull request #1877 from multiversx/payload-refactor
andrei-marinica Nov 28, 2024
2fac9aa
update mx-scenario-go v3.0.0
BiancaIalangi Nov 28, 2024
7f67242
Merge branch 'master' into sync-mandos
BiancaIalangi Nov 28, 2024
c685ed3
Merge pull request #1875 from multiversx/sync-mandos
andrei-marinica Nov 28, 2024
1c03cb3
merge master into rc/v0.55
andrei-marinica Nov 28, 2024
5aa2f18
Merge pull request #1883 from multiversx/merge-master
andrei-marinica Nov 28, 2024
4b320be
ManagedVecRefMut rename
andrei-marinica Nov 28, 2024
69c6974
clippy fix (rustc 1.83.0)
andrei-marinica Nov 28, 2024
d173698
clippy fix
andrei-marinica Nov 28, 2024
cbd9a3c
Merge pull request #1884 from multiversx/mvec-ref-mut-rename
andrei-marinica Nov 28, 2024
31c3a9a
ManagedVecItem - lo longer implemented for handles directly
andrei-marinica Nov 28, 2024
16fac80
ManagedVecItem - struct derive yields ManagedVecRef
andrei-marinica Nov 29, 2024
baf458e
remove #![allow(clippy::needless_lifetimes)]
alyn509 Nov 29, 2024
b605597
easy `cargo clippy --tests --fix`
alyn509 Nov 29, 2024
205e434
cargo fmt
alyn509 Nov 29, 2024
dfc3b48
Merge pull request #1886 from multiversx/clippy-fixes
alyn509 Nov 29, 2024
05ddbbc
ManagedVec - iterator cleanup (ref vs. owned)
andrei-marinica Nov 29, 2024
8b40e9e
Merge branch 'rc/v0.55' into mvec-ref
andrei-marinica Nov 29, 2024
320a314
Merge pull request #1869 from multiversx/chain-simulator-set-state
mihaicalinluca Nov 29, 2024
490a31c
stack overflow fix
andrei-marinica Nov 29, 2024
809b71a
ManagedVecItem - ref for tuples
andrei-marinica Nov 29, 2024
d1095ad
unified - payable blackbox
BiancaIalangi Dec 2, 2024
1401103
insert payable token test
BiancaIalangi Dec 2, 2024
afab864
ManagedVecItem - ref for EsdtTokenPayment
andrei-marinica Dec 3, 2024
d64d688
Merge pull request #1890 from multiversx/payable-blackbox
BiancaIalangi Dec 3, 2024
027b75a
Merge pull request #1885 from multiversx/mvec-ref
andrei-marinica Dec 3, 2024
f1e591b
Merge pull request #1891 from multiversx/esdt-refactor
andrei-marinica Dec 3, 2024
98ef758
ManagedVec iter - file rename
andrei-marinica Dec 4, 2024
1db87bb
Cargo.lock update
andrei-marinica Dec 4, 2024
0df3c0a
ManagedVec iterator refactor, ManagedVecPayloadIterator
andrei-marinica Dec 4, 2024
42770e2
Merge pull request #1894 from multiversx/mvec-iter-refactor
andrei-marinica Dec 4, 2024
65f9681
EndpointWrappers call_* method refactor
andrei-marinica Dec 11, 2024
de3b6df
cleanup, comments
andrei-marinica Dec 11, 2024
81f28d5
refactor: ManagedResultArgLoader replaced with ManagedVec iterators
andrei-marinica Dec 11, 2024
2e776b7
clippy fix
andrei-marinica Dec 11, 2024
7955fcc
refactor: ManagedResultArgLoader replaced in legacy callback
andrei-marinica Dec 11, 2024
d74aa6a
simplified callback_selector
andrei-marinica Dec 11, 2024
eedd7f2
refactor: ManagedResultArgLoader removed from load_callback_closure_args
andrei-marinica Dec 11, 2024
806aa3f
removed ManagedResultArgLoader
andrei-marinica Dec 11, 2024
f84bbd7
code report - show diff size in report
BiancaIalangi Dec 12, 2024
e74dada
Merge pull request #1900 from multiversx/report-show-diff-size
andrei-marinica Dec 12, 2024
8df600b
Merge pull request #1898 from multiversx/method-call-refactor
andrei-marinica Dec 12, 2024
3f2771d
Merge branch 'rc/v0.55' into refactor-ManagedResultArgLoader
andrei-marinica Dec 12, 2024
bef75c5
Merge pull request #1899 from multiversx/refactor-ManagedResultArgLoader
andrei-marinica Dec 12, 2024
96a414a
ContractObj wraps UniversalContractObj
andrei-marinica Dec 12, 2024
4bc903f
Merge pull request #1901 from multiversx/contract-obj-refactor
andrei-marinica Dec 13, 2024
5230240
static api - initialization flags grouped into single bitfield
andrei-marinica Dec 13, 2024
de2c630
static api - removing old call value handle fields
andrei-marinica Dec 14, 2024
1bac654
Merge pull request #1903 from multiversx/static-flags
andrei-marinica Dec 20, 2024
5454b26
Merge branch 'master' into 'rc/v0.55'
andrei-marinica Dec 23, 2024
ebdd8ee
Merge pull request #1906 from multiversx/merge-master-rc-55
andrei-marinica Dec 23, 2024
9fa14b5
payable attribute - allow `#[payable]`
andrei-marinica Dec 22, 2024
0fad48a
payable attribute - `#[payable]` in examples
andrei-marinica Dec 22, 2024
1e0d401
payable attribute - refactoring
andrei-marinica Dec 22, 2024
a56917f
Merge pull request #1904 from multiversx/payable-attr
andrei-marinica Dec 23, 2024
a21448e
ManagedVec is_single_item, some refactor
andrei-marinica Dec 31, 2024
3919df1
Merge pull request #1909 from multiversx/mvec-is-single-item
andrei-marinica Dec 31, 2024
f7d8d62
Merge branch 'master' into merge-master
andrei-marinica Jan 4, 2025
eb91cb0
Merge pull request #1910 from multiversx/merge-master
andrei-marinica Jan 4, 2025
b823eb4
removed unnecessary bounds check in to_array_of_refs/multi_esdt
andrei-marinica Jan 6, 2025
f24601d
Merge pull request #1911 from multiversx/multi-esdt-opt
andrei-marinica Jan 6, 2025
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
Prev Previous commit
Next Next commit
ManagedVecItem - lo longer implemented for handles directly
andrei-marinica committed Nov 28, 2024
commit 31c3a9a3e2382352a66c3630331153e2300b1954
7 changes: 2 additions & 5 deletions framework/base/src/api/managed_types/handles.rs
Original file line number Diff line number Diff line change
@@ -10,15 +10,12 @@ pub trait HandleTypeInfo {

use crate::codec::TryStaticCast;

use crate::{
api::{ErrorApi, ErrorApiImpl},
types::ManagedVecItem,
};
use crate::api::{ErrorApi, ErrorApiImpl};

pub type RawHandle = i32;

pub trait HandleConstraints:
ManagedVecItem + TryStaticCast + Debug + Clone + From<RawHandle> + PartialEq + PartialEq<RawHandle>
TryStaticCast + Debug + Clone + From<RawHandle> + PartialEq + PartialEq<RawHandle>
{
fn new(handle: RawHandle) -> Self;
fn to_be_bytes(&self) -> [u8; 4];
23 changes: 1 addition & 22 deletions framework/scenario/src/api/impl_vh/debug_handle_vh.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use multiversx_chain_vm::tx_mock::{TxContext, TxContextStack};
use multiversx_sc::{
api::{use_raw_handle, HandleConstraints, RawHandle},
api::{HandleConstraints, RawHandle},
codec::TryStaticCast,
types::ManagedVecItem,
};
use std::sync::Arc;

@@ -76,24 +75,4 @@ impl From<i32> for DebugHandle {
}
}

impl ManagedVecItem for DebugHandle {
type PAYLOAD = <RawHandle as ManagedVecItem>::PAYLOAD;

const SKIPS_RESERIALIZATION: bool = <RawHandle as ManagedVecItem>::SKIPS_RESERIALIZATION;

type Ref<'a> = Self;

fn read_from_payload(payload: &Self::PAYLOAD) -> Self {
use_raw_handle(RawHandle::read_from_payload(payload))
}

unsafe fn borrow_from_payload<'a>(payload: &Self::PAYLOAD) -> Self::Ref<'a> {
Self::read_from_payload(payload)
}

fn save_to_payload(self, payload: &mut Self::PAYLOAD) {
self.get_raw_handle().save_to_payload(payload);
}
}

impl TryStaticCast for DebugHandle {}