Skip to content

Commit

Permalink
initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dorin-iancu committed Apr 4, 2022
1 parent ee19d11 commit 4373dc8
Show file tree
Hide file tree
Showing 32 changed files with 342 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"type": "node",
"name": "Dump env",
"args": ["-e", "console.log(JSON.stringify(process.env, null, 4))"],
"env": {"PATH":"${env:HOME}/elrondsdk/vendor-rust/bin:${env:HOME}/elrondsdk/erdpy-venv/bin:${env:HOME}/elrondsdk/vmtools:${env:HOME}/elrondsdk/nodejs/latest/bin:${env:PATH}","VIRTUAL_ENV":"${env:HOME}/elrondsdk/erdpy-venv","RUSTUP_HOME":"${env:HOME}/elrondsdk/vendor-rust","CARGO_HOME":"${env:HOME}/elrondsdk/vendor-rust"}
}
]
}
21 changes: 21 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"terminal.integrated.env.linux": {
"PATH": "${env:HOME}/elrondsdk/vendor-rust/bin:${env:HOME}/elrondsdk/erdpy-venv/bin:${env:HOME}/elrondsdk/vmtools:${env:HOME}/elrondsdk/nodejs/latest/bin:${env:PATH}",
"VIRTUAL_ENV": "${env:HOME}/elrondsdk/erdpy-venv",
"RUSTUP_HOME": "${env:HOME}/elrondsdk/vendor-rust",
"CARGO_HOME": "${env:HOME}/elrondsdk/vendor-rust"
},
"terminal.integrated.env.osx": {
"PATH": "${env:HOME}/elrondsdk/vendor-rust/bin:${env:HOME}/elrondsdk/erdpy-venv/bin:${env:HOME}/elrondsdk/vmtools:${env:HOME}/elrondsdk/nodejs/latest/bin:${env:PATH}",
"VIRTUAL_ENV": "${env:HOME}/elrondsdk/erdpy-venv",
"RUSTUP_HOME": "${env:HOME}/elrondsdk/vendor-rust",
"CARGO_HOME": "${env:HOME}/elrondsdk/vendor-rust"
},
"terminal.integrated.environmentChangesIndicator": "on",
"terminal.integrated.inheritEnv": true,
"workbench.dialogs.customEnabled": true,
"rust-client.rustupPath": "${env:HOME}/elrondsdk/vendor-rust/bin/rustup",
"rust-client.rlsPath": "${env:HOME}/elrondsdk/vendor-rust/bin/rls",
"rust-client.disableRustup": true,
"rust-client.autoStartRls": false
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Dump env",
"command": "node",
"args": ["-e", "console.log(JSON.stringify(process.env, null, 4))"],
"type": "process",
"options": {
"env": {"PATH":"${env:HOME}/elrondsdk/vendor-rust/bin:${env:HOME}/elrondsdk/erdpy-venv/bin:${env:HOME}/elrondsdk/vmtools:${env:HOME}/elrondsdk/nodejs/latest/bin:${env:PATH}","VIRTUAL_ENV":"${env:HOME}/elrondsdk/erdpy-venv","RUSTUP_HOME":"${env:HOME}/elrondsdk/vendor-rust","CARGO_HOME":"${env:HOME}/elrondsdk/vendor-rust"}
}
}
]
}
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[workspace]
members = [
"collection-manager",
"collection-manager/meta",
"nft-minter",
"nft-minter/meta",
"royalties-handler",
"royalties-handler/meta",
]
7 changes: 7 additions & 0 deletions collection-manager/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/
*/target/

# The erdpy output
output*
15 changes: 15 additions & 0 deletions collection-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "collection-manager"
version = "0.0.0"
authors = [ "Dorin Marian Iancu, [email protected]" ]
edition = "2018"
publish = false

[lib]
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.30.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.30.0"
3 changes: 3 additions & 0 deletions collection-manager/elrond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"language": "rust"
}
14 changes: 14 additions & 0 deletions collection-manager/meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "collection-manager-meta"
version = "0.0.0"
edition = "2018"
publish = false
authors = [ "Dorin Marian Iancu, [email protected]" ]

[dev-dependencies]

[dependencies.collection-manager]
path = ".."

[dependencies.elrond-wasm-debug]
version = "0.30.0"
3 changes: 3 additions & 0 deletions collection-manager/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
elrond_wasm_debug::meta::perform::<collection_manager::AbiProvider>();
}
9 changes: 9 additions & 0 deletions collection-manager/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![no_std]

elrond_wasm::imports!();

#[elrond_wasm::contract]
pub trait CollectionManager {
#[init]
fn init(&self) {}
}
Empty file added collection-manager/testnet.toml
Empty file.
31 changes: 31 additions & 0 deletions collection-manager/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "collection-manager-wasm"
version = "0.0.0"
authors = [ "Dorin Marian Iancu, [email protected]" ]
edition = "2018"
publish = false

[lib]
crate-type = [ "cdylib",]

[workspace]
members = [ ".",]

[dev-dependencies]

[profile.release]
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"

[dependencies.collection-manager]
path = ".."

[dependencies.elrond-wasm-node]
version = "0.30.0"

[dependencies.elrond-wasm-output]
version = "0.30.0"
features = [ "wasm-output-mode",]
13 changes: 13 additions & 0 deletions collection-manager/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
////////////////////////////////////////////////////
////////////////// AUTO-GENERATED //////////////////
////////////////////////////////////////////////////

#![no_std]

elrond_wasm_node::wasm_endpoints! {
collection_manager
(
)
}

elrond_wasm_node::wasm_empty_callback! {}
1 change: 1 addition & 0 deletions elrond.workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
7 changes: 7 additions & 0 deletions nft-minter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/
*/target/

# The erdpy output
output*
15 changes: 15 additions & 0 deletions nft-minter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "nft-minter"
version = "0.0.0"
authors = [ "Dorin Marian Iancu, [email protected]" ]
edition = "2018"
publish = false

[lib]
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.30.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.30.0"
3 changes: 3 additions & 0 deletions nft-minter/elrond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"language": "rust"
}
14 changes: 14 additions & 0 deletions nft-minter/meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "nft-minter-meta"
version = "0.0.0"
edition = "2018"
publish = false
authors = [ "Dorin Marian Iancu, [email protected]" ]

[dev-dependencies]

[dependencies.nft-minter]
path = ".."

[dependencies.elrond-wasm-debug]
version = "0.30.0"
3 changes: 3 additions & 0 deletions nft-minter/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
elrond_wasm_debug::meta::perform::<nft_minter::AbiProvider>();
}
9 changes: 9 additions & 0 deletions nft-minter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![no_std]

elrond_wasm::imports!();

#[elrond_wasm::contract]
pub trait NftMinter {
#[init]
fn init(&self) {}
}
Empty file added nft-minter/testnet.toml
Empty file.
31 changes: 31 additions & 0 deletions nft-minter/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "nft-minter-wasm"
version = "0.0.0"
authors = [ "Dorin Marian Iancu, [email protected]" ]
edition = "2018"
publish = false

[lib]
crate-type = [ "cdylib",]

[workspace]
members = [ ".",]

[dev-dependencies]

[profile.release]
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"

[dependencies.nft-minter]
path = ".."

[dependencies.elrond-wasm-node]
version = "0.30.0"

[dependencies.elrond-wasm-output]
version = "0.30.0"
features = [ "wasm-output-mode",]
13 changes: 13 additions & 0 deletions nft-minter/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
////////////////////////////////////////////////////
////////////////// AUTO-GENERATED //////////////////
////////////////////////////////////////////////////

#![no_std]

elrond_wasm_node::wasm_endpoints! {
nft_minter
(
)
}

elrond_wasm_node::wasm_empty_callback! {}
7 changes: 7 additions & 0 deletions royalties-handler/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/
*/target/

# The erdpy output
output*
15 changes: 15 additions & 0 deletions royalties-handler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "royalties-handler"
version = "0.0.0"
authors = [ "Dorin Marian Iancu, [email protected]" ]
edition = "2018"
publish = false

[lib]
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.30.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.30.0"
3 changes: 3 additions & 0 deletions royalties-handler/elrond.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"language": "rust"
}
14 changes: 14 additions & 0 deletions royalties-handler/meta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "royalties-handler-meta"
version = "0.0.0"
edition = "2018"
publish = false
authors = [ "Dorin Marian Iancu, [email protected]" ]

[dev-dependencies]

[dependencies.royalties-handler]
path = ".."

[dependencies.elrond-wasm-debug]
version = "0.30.0"
3 changes: 3 additions & 0 deletions royalties-handler/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
elrond_wasm_debug::meta::perform::<royalties_handler::AbiProvider>();
}
9 changes: 9 additions & 0 deletions royalties-handler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![no_std]

elrond_wasm::imports!();

#[elrond_wasm::contract]
pub trait RoyaltiesHandler {
#[init]
fn init(&self) {}
}
Empty file added royalties-handler/testnet.toml
Empty file.
31 changes: 31 additions & 0 deletions royalties-handler/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "royalties-handler-wasm"
version = "0.0.0"
authors = [ "Dorin Marian Iancu, [email protected]" ]
edition = "2018"
publish = false

[lib]
crate-type = [ "cdylib",]

[workspace]
members = [ ".",]

[dev-dependencies]

[profile.release]
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"

[dependencies.royalties-handler]
path = ".."

[dependencies.elrond-wasm-node]
version = "0.30.0"

[dependencies.elrond-wasm-output]
version = "0.30.0"
features = [ "wasm-output-mode",]
13 changes: 13 additions & 0 deletions royalties-handler/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
////////////////////////////////////////////////////
////////////////// AUTO-GENERATED //////////////////
////////////////////////////////////////////////////

#![no_std]

elrond_wasm_node::wasm_endpoints! {
royalties_handler
(
)
}

elrond_wasm_node::wasm_empty_callback! {}

0 comments on commit 4373dc8

Please sign in to comment.