Skip to content

Commit

Permalink
[Misc]: Add version of DEX package to name
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Feb 9, 2024
1 parent ff1480c commit b055bc4
Show file tree
Hide file tree
Showing 20 changed files with 335 additions and 318 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ members = [
# Packages
"packages/ignition",
"packages/simple-oracle",
"packages/ociswap-adapter-v1",
"packages/caviarnine-adapter-v1",
"packages/ociswap-v1-adapter-v1",
"packages/caviarnine-v1-adapter-v1",
# Libraries
"libraries/package-loader",
"libraries/gateway-client",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "caviarnine-adapter-v1"
name = "caviarnine-v1-adapter-v1"
version.workspace = true
edition.workspace = true
description = "Defines the adapter for Caviarnine"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use scrypto::prelude::*;
use scrypto_interface::*;

define_interface! {
QuantaSwap as CaviarninePool impl [
QuantaSwap as CaviarnineV1Pool impl [
ScryptoStub,
ScryptoTestStub,
#[cfg(feature = "manifest-builder-stubs")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ macro_rules! define_error {
)*
) => {
$(
const $name: &'static str = concat!("[Caviarnine Adapter]", " ", $item);
const $name: &'static str = concat!("[Caviarnine v1 Adapter v1]", " ", $item);
)*
};
}
Expand Down Expand Up @@ -104,8 +104,8 @@ pub mod adapter {

fn pool(
component_address: ComponentAddress,
) -> CaviarninePoolInterfaceScryptoStub {
CaviarninePoolInterfaceScryptoStub::from(component_address)
) -> CaviarnineV1PoolInterfaceScryptoStub {
CaviarnineV1PoolInterfaceScryptoStub::from(component_address)
}

fn get_pool_information(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ociswap-adapter-v1"
name = "ociswap-v1-adapter-v1"
version.workspace = true
edition.workspace = true
description = "Defines the adapter for Ociswap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use scrypto::prelude::*;
use scrypto_interface::*;

define_interface! {
BasicPool as OciswapPool impl [
BasicPool as OciswapV1Pool impl [
ScryptoStub,
ScryptoTestStub,
#[cfg(feature = "manifest-builder-stubs")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ macro_rules! define_error {
)*
) => {
$(
pub const $name: &'static str = concat!("[Ociswap Adapter]", " ", $item);
pub const $name: &'static str = concat!("[Ociswap v1 Adapter v1]", " ", $item);
)*
};
}
Expand Down Expand Up @@ -64,8 +64,8 @@ pub mod adapter {

fn pool(
component_address: ComponentAddress,
) -> OciswapPoolInterfaceScryptoStub {
OciswapPoolInterfaceScryptoStub::from(component_address)
) -> OciswapV1PoolInterfaceScryptoStub {
OciswapV1PoolInterfaceScryptoStub::from(component_address)
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ radix-engine-interface = { workspace = true }

ignition = { path = "../packages/ignition", features = ["test"] }
simple-oracle = { path = "../packages/simple-oracle", features = ["test"] }
ociswap-adapter-v1 = { path = "../packages/ociswap-adapter-v1", features = [
ociswap-v1-adapter-v1 = { path = "../packages/ociswap-v1-adapter-v1", features = [
"test",
"manifest-builder-stubs"
] }
caviarnine-adapter-v1 = { path = "../packages/caviarnine-adapter-v1", features = [
caviarnine-v1-adapter-v1 = { path = "../packages/caviarnine-v1-adapter-v1", features = [
"test",
"manifest-builder-stubs"
] }
Expand Down
Loading

0 comments on commit b055bc4

Please sign in to comment.