Skip to content

Commit

Permalink
release preparations - WEGLD swap contract
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Jul 19, 2022
1 parent 025580a commit 18c077f
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 40 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ members = [
"contracts/benchmarks/send-tx-repeat",
"contracts/benchmarks/send-tx-repeat/meta",

"contracts/core/egld-esdt-swap",
"contracts/core/egld-esdt-swap/meta",
"contracts/core/price-aggregator",
"contracts/core/price-aggregator/meta",
"contracts/core/wegld-swap",
"contracts/core/wegld-swap/meta",

"contracts/examples/adder",
"contracts/examples/adder/meta",
Expand Down
21 changes: 0 additions & 21 deletions contracts/core/egld-esdt-swap/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions contracts/core/egld-esdt-swap/meta/src/main.rs

This file was deleted.

6 changes: 4 additions & 2 deletions contracts/core/price-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[package]
name = "elrond-sc-price-aggregator"
version = "0.34.1"

authors = ["Claudiu-Marcel Bruda <[email protected]>", "Elrond Network <[email protected]>"]
authors = [
"Claudiu-Marcel Bruda <[email protected]>",
"Elrond Network <[email protected]>",
]
license = "GPL-3.0-only"
readme = "README.md"
repository = "https://github.com/ElrondNetwork/elrond-wasm-rs"
Expand Down
File renamed without changes.
32 changes: 32 additions & 0 deletions contracts/core/wegld-swap/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[package]
name = "elrond-sc-wegld-swap"
version = "0.34.1"

authors = [
"Dorin Iancu <[email protected]>",
"Elrond Network <[email protected]>",
]
license = "GPL-3.0-only"
readme = "README.md"
repository = "https://github.com/ElrondNetwork/elrond-wasm-rs"
homepage = "https://elrond.com/"
documentation = "https://docs.elrond.com/"
description = "Elrond Price aggregator Smart Contract"
keywords = ["elrond", "wasm", "webassembly", "blockchain", "contract"]
categories = ["no-std", "wasm", "cryptography::cryptocurrencies"]
edition = "2018"

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

[dependencies.elrond-wasm]
version = "0.34.1"
path = "../../../elrond-wasm"

[dependencies.elrond-wasm-modules]
version = "0.34.1"
path = "../../../elrond-wasm-modules"

[dev-dependencies.elrond-wasm-debug]
version = "0.34.1"
path = "../../../elrond-wasm-debug"
7 changes: 7 additions & 0 deletions contracts/core/wegld-swap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# EGLD-WEGLD swap

## Overview

The EGLD-WEGLD swap contract mints and distributes the WEGLD token, in equal amount to the amount of EGLD locked in the contract.

There are such contracts deployed in each shard.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"storage": {
"str:wrappedEgldTokenId": "str:EGLD-abcdef"
},
"code": "file:../output/egld-esdt-swap.wasm"
"code": "file:../output/elrond-sc-wegld-swap.wasm"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"storage": {
"str:wrappedEgldTokenId": "str:EGLD-abcdef"
},
"code": "file:../output/egld-esdt-swap.wasm"
"code": "file:../output/elrond-sc-wegld-swap.wasm"
}
}
},
Expand Down Expand Up @@ -77,7 +77,7 @@
"storage": {
"str:wrappedEgldTokenId": "str:EGLD-abcdef"
},
"code": "file:../output/egld-esdt-swap.wasm"
"code": "file:../output/elrond-sc-wegld-swap.wasm"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
name = "egld-esdt-swap-meta"
name = "elrond-sc-wegld-swap-meta"
version = "0.0.0"
authors = [ "Dorin Iancu <[email protected]>",]
edition = "2018"
publish = false

[dev-dependencies]

[dependencies.egld-esdt-swap]
[dependencies.elrond-sc-wegld-swap]
path = ".."

[dependencies.elrond-wasm]
version = "0.34.0"
version = "0.34.1"
path = "../../../../elrond-wasm"

[dependencies.elrond-wasm-debug]
version = "0.34.0"
version = "0.34.1"
path = "../../../../elrond-wasm-debug"
3 changes: 3 additions & 0 deletions contracts/core/wegld-swap/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::<elrond_sc_wegld_swap::AbiProvider>();
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "egld-esdt-swap-wasm"
name = "elrond-sc-wegld-swap-wasm"
version = "0.0.0"
authors = [ "Dorin Iancu <[email protected]>",]
edition = "2018"
Expand All @@ -20,14 +20,14 @@ lto = true
debug = false
panic = "abort"

[dependencies.egld-esdt-swap]
[dependencies.elrond-sc-wegld-swap]
path = ".."

[dependencies.elrond-wasm-node]
version = "0.34.0"
version = "0.34.1"
path = "../../../../elrond-wasm-node"

[dependencies.elrond-wasm-output]
version = "0.34.0"
version = "0.34.1"
path = "../../../../elrond-wasm-output"
features = ["wasm-output-mode"]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![no_std]

elrond_wasm_node::wasm_endpoints! {
egld_esdt_swap
elrond_sc_wegld_swap
(
getLockedEgldBalance
getWrappedEgldTokenId
Expand Down

0 comments on commit 18c077f

Please sign in to comment.