-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1653 from multiversx/meta-lib
meta-lib split from meta
- Loading branch information
Showing
132 changed files
with
259 additions
and
180 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[package] | ||
name = "multiversx-sc-meta-lib" | ||
version = "0.50.3" | ||
edition = "2021" | ||
|
||
authors = [ | ||
"Andrei Marinica <[email protected]>", | ||
"MultiversX <[email protected]>", | ||
] | ||
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 meta-programming tools and build system" | ||
keywords = ["multiversx", "blockchain", "contract", "debug"] | ||
categories = ["cryptography::cryptocurrencies", "development-tools::debugging"] | ||
|
||
[dependencies] | ||
clap = { version = "4.4.7", features = ["derive"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
rustc_version = "0.4" | ||
toml = { version = "0.8.6", features = ["preserve_order"] } | ||
colored = "2.0" | ||
lazy_static = "1.4.0" | ||
convert_case = "0.6.0" | ||
hex = "0.4" | ||
wasmparser = "0.208" | ||
wasmprinter = "0.208" | ||
semver = "1.0.20" | ||
|
||
[dependencies.multiversx-sc] | ||
version = "=0.50.3" | ||
path = "../base" | ||
features = ["alloc", "num-bigint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Smart contract `meta` crate support | ||
|
||
[![crates.io](https://img.shields.io/crates/v/multiversx-sc-meta.svg)](https://crates.io/crates/multiversx-sc-meta) | ||
|
||
The library that provides all the functionality of the individual contracts `meta` crates. | ||
|
||
The purpose of the contract `meta` crates is to produce the contract ABI. Because of their access to the ABI, they have other ABI-based responsibilities, such as: | ||
- generatinc the `wasm` crates, | ||
- building the contracts, | ||
- performing validations not possible otherwise, | ||
- generating snippets, | ||
- etc. | ||
|
||
For more about the build process, see https://docs.multiversx.com/developers/developer-reference/sc-build-reference/ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
framework/meta/src/cli_args.rs → framework/meta-lib/src/cli.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
15 changes: 4 additions & 11 deletions
15
framework/meta/src/cmd/contract.rs → ...ork/meta-lib/src/cli/cli_contract_main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
pub mod generate_proxy; | ||
pub mod generate_snippets; | ||
pub mod meta_abi; | ||
pub mod meta_config; | ||
pub mod sc_config; | ||
pub mod wasm_cargo_toml_data; | ||
pub mod wasm_cargo_toml_generate; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...md/contract/sc_config/contract_variant.rs → ...rc/contract/sc_config/contract_variant.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
.../cmd/contract/wasm_cargo_toml_generate.rs → .../src/contract/wasm_cargo_toml_generate.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pub mod abi_json; | ||
pub mod cargo_toml_contents; | ||
pub mod cli; | ||
pub mod contract; | ||
pub mod ei; | ||
pub mod ei_check_json; | ||
pub mod esdt_attr_file_json; | ||
mod mxsc_file_json; | ||
pub mod print_util; | ||
mod report_info_json; | ||
pub mod tools; | ||
pub mod version; | ||
pub mod version_history; | ||
|
||
#[macro_use] | ||
extern crate lazy_static; | ||
|
||
pub use cli::{cli_main, multi_contract_config}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions
5
framework/meta/src/tools.rs → framework/meta-lib/src/tools.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.