Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 10 additions & 2 deletions framework/base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@ version = "0.58.0"
edition = "2021"
rust-version = "1.83"

authors = ["Andrei Marinica <andrei.marinica@multiversx.com>", "MultiversX <contact@multiversx.com>"]
authors = [
"Andrei Marinica <andrei.marinica@multiversx.com>",
"MultiversX <contact@multiversx.com>",
]
license = "GPL-3.0-only"
readme = "README.md"
repository = "https://github.com/multiversx/mx-sdk-rs"
homepage = "https://multiversx.com/"
documentation = "https://docs.multiversx.com/"
description = "MultiversX smart contract API"
keywords = ["multiversx", "wasm", "webassembly", "blockchain", "contract"]
categories = ["no-std", "wasm", "cryptography::cryptocurrencies", "development-tools"]
categories = [
"no-std",
"wasm",
"cryptography::cryptocurrencies",
"development-tools",
]

[package.metadata.docs.rs]
all-features = true
Expand Down
6 changes: 3 additions & 3 deletions framework/base/src/abi/build_info_abi.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/// Designed to hold metadata of the contract crate.
/// Must be instanced inside the smart contract crate to work,
/// that is why a `create` associated method would not make sense here.
#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub struct BuildInfoAbi {
pub contract_crate: ContractCrateBuildAbi,
pub framework: FrameworkBuildAbi,
}

#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub struct ContractCrateBuildAbi {
pub name: &'static str,
pub version: &'static str,
Expand All @@ -16,7 +16,7 @@ pub struct ContractCrateBuildAbi {

/// Gives the multiversx-sc metadata.
/// Should be instanced via the `create` associated function.
#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub struct FrameworkBuildAbi {
pub name: &'static str,
pub version: &'static str,
Expand Down
10 changes: 5 additions & 5 deletions framework/base/src/abi/endpoint_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ use alloc::{
vec::Vec,
};

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct InputAbi {
pub arg_name: String,
pub type_names: TypeNames,
pub multi_arg: bool,
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct OutputAbi {
pub output_name: String,
pub type_names: TypeNames,
Expand All @@ -21,15 +21,15 @@ pub struct OutputAbi {

pub type OutputAbis = Vec<OutputAbi>;

#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub enum EndpointMutabilityAbi {
#[default]
Mutable,
Readonly,
Pure,
}

#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub enum EndpointTypeAbi {
#[default]
Init,
Expand All @@ -38,7 +38,7 @@ pub enum EndpointTypeAbi {
PromisesCallback,
}

#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub struct EndpointAbi {
pub docs: Vec<String>,
pub name: String,
Expand Down
2 changes: 1 addition & 1 deletion framework/base/src/abi/esdt_attribute_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use alloc::string::{String, ToString};

use super::{TypeAbi, TypeDescriptionContainerImpl, TypeName};

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct EsdtAttributeAbi {
pub ticker: String,
pub ty: TypeName,
Expand Down
4 changes: 2 additions & 2 deletions framework/base/src/abi/event_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use alloc::{
vec::Vec,
};

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct EventInputAbi {
pub arg_name: String,
pub type_name: TypeName,
pub indexed: bool,
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct EventAbi {
pub docs: Vec<String>,
pub identifier: String,
Expand Down
6 changes: 3 additions & 3 deletions framework/base/src/abi/type_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use alloc::{

use super::TypeNames;

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct TypeDescription {
pub docs: Vec<String>,
pub names: TypeNames,
Expand Down Expand Up @@ -46,7 +46,7 @@ impl TypeDescription {
}
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub enum TypeContents {
NotSpecified,
Enum(Vec<EnumVariantDescription>),
Expand Down Expand Up @@ -110,7 +110,7 @@ impl StructFieldDescription {
/// This makes it easier for humans to read readable in the transaction output.
///
/// It cannot have data fields, only simple enums allowed.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct ExplicitEnumVariantDescription {
pub docs: Vec<String>,
pub name: String,
Expand Down
2 changes: 1 addition & 1 deletion framework/base/src/abi/type_description_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub trait TypeDescriptionContainer {
fn insert_all(&mut self, other: &Self);
}

#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, Debug, PartialEq)]
pub struct TypeDescriptionContainerImpl(pub Vec<(TypeNames, TypeDescription)>);

impl TypeDescriptionContainer for TypeDescriptionContainerImpl {
Expand Down
1 change: 1 addition & 0 deletions framework/meta-lib/src/contract/generate_snippets.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod snippet_abi_check;
pub mod snippet_crate_gen;
pub mod snippet_gen_common;
pub mod snippet_gen_main;
Expand Down
Loading
Loading