Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b75b09e
Update README.md
ikripaka Nov 19, 2025
6e08581
remove readmes
ikripaka Nov 19, 2025
be70bb1
add only one Readme.md
ikripaka Nov 19, 2025
73bee4a
rename binary to simplicity-dex, set name of package the same as folder
ikripaka Nov 19, 2025
64acc27
move code from previous pr, make it compile
ikripaka Nov 20, 2025
706cf63
update contract adapter version
ikripaka Nov 20, 2025
6296b8e
change config to parse
ikripaka Nov 20, 2025
a374c8e
correct config interaction and example.toml
ikripaka Nov 21, 2025
8780528
correct commands and fields about
ikripaka Nov 21, 2025
8557959
add cache logic for storing dcd_args
ikripaka Nov 21, 2025
cd8808e
Minor fixes. Linting.
KyrylR Nov 21, 2025
cfb15bc
Fixed config parsing.
KyrylR Nov 21, 2025
d87ad72
Deleted unused CliConfigArgs structure
KyrylR Nov 21, 2025
ed1a637
Added clippy::pedantic.
KyrylR Nov 21, 2025
f864a9e
Fixed some warnings
KyrylR Nov 21, 2025
954830f
Added TODOs
KyrylR Nov 21, 2025
299e400
add functionality of replying to events by default in dcd commands
ikripaka Nov 21, 2025
3102af6
Merge remote-tracking branch 'origin/feature/contract_impl' into feat…
ikripaka Nov 21, 2025
8981e90
fix pedantic lints
ikripaka Nov 24, 2025
9c770c2
remove unused store initialization in contract handlers
ikripaka Nov 24, 2025
cc727ee
change utxo defining from Vec to separate args
ikripaka Nov 24, 2025
a3d7d16
change broadcast field on offline
ikripaka Nov 24, 2025
9d078bd
move DcdArgs retrieval to events
ikripaka Nov 24, 2025
8024e97
comment expiration tag, remove done todo
ikripaka Nov 25, 2025
ed5120a
fix test
ikripaka Nov 25, 2025
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ dist/
**/.DS_Store

# Logs
logs/*
logs/*

/.simplicity-dex.config.toml
5 changes: 5 additions & 0 deletions .simplicity-dex.example/.simplicity-dex.config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nostr_keypair = "nsec..."
relays = [
"wss://relay.damus.io",
"wss://nostr.wine/",
]
1 change: 0 additions & 1 deletion .simplicity-dex.example/keypair.txt

This file was deleted.

1 change: 0 additions & 1 deletion .simplicity-dex.example/relays.txt

This file was deleted.

23 changes: 17 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,34 @@ version = "0.1.0"
edition = "2024"
rust-version = "1.91.0"
authors = ["Blockstream"]
readme = "README.md"
readme = "Readme.md"


[workspace.dependencies]
anyhow = { version = "1.0.100" }
bincode = { version = "2.0.1" }
chrono = { version = "0.4.42" }
clap = { version = "4.5.49", features = ["derive"] }
dirs = {version = "6.0.0"}
config = { version = "0.15.18" }
dex-nostr-relay = { path = "./crates/dex-nostr-relay" }
dirs = { version = "6.0.0" }
dotenvy = { version = "0.15.7" }
elements = { version = "0.26.1" }
futures-util = { version = "0.3.31" }
global-utils = { path = "crates/global-utils" }
global-utils = { path = "./crates/global-utils" }
hex = { version = "0.4.3" }
nostr = { version = "0.43.1", features = ["std"] }
nostr-sdk = { version = "0.43.0" }
dex-nostr-relay = { path = "./crates/dex-nostr-relay"}
serde = { version = "1.0.228", features = ["derive"] }
serde_json = { version = "1.0.145" }
serde = { version = "1.0.228" }
simplicity-contracts-adapter = { git = "https://github.com/BlockstreamResearch/simplicity-contracts.git", rev = "69e1f71", package = "contracts-adapter" }
simplicity-contracts = { git = "https://github.com/BlockstreamResearch/simplicity-contracts.git", rev = "69e1f71", package = "contracts" }
simplicity-lang = { version = "0.6.0" }
simplicityhl = { version = "0.2.0" }
simplicityhl-core = { git = "https://github.com/BlockstreamResearch/simplicity-contracts.git", rev = "69e1f71", package = "simplicityhl-core", features = ["encoding"] }
sled = { version = "0.34.7" }
thiserror = { version = "2.0.17" }
tokio = { version = "1.48.0", features = ["macros", "test-util", "rt", "rt-multi-thread"] }
tracing = { version = "0.1.41" }
tracing-appender = { version = "0.2.3" }
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
url = { version = "2.5.7" }
27 changes: 0 additions & 27 deletions Makefile

This file was deleted.

102 changes: 0 additions & 102 deletions README.md

This file was deleted.

2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ This project is licensed under the MIT License - see the LICENSE file for detail
## Disclaimer

This software is experimental and should be used with caution. Always verify contract code and understand the risks
before trading.
before trading.
36 changes: 29 additions & 7 deletions crates/dex-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
[package]
name = "simplicity-dex"
name = "dex-cli"
version = "0.1.0"
edition = "2024"
description = "Simplicity helper CLI for Liquid testnet"
license = "MIT OR Apache-2.0"
readme = "README.md"
publish = false


[[bin]]
name = "simplicity-dex"
path = "src/bin/main.rs"

[dependencies]
anyhow = { workspace = true }
nostr = { workspace = true }
global-utils = { workspace = true }
bincode = { workspace = true }
clap = { workspace = true, features = ["env"]}
config = { workspace = true }
dex-nostr-relay = { workspace = true }
dirs = { workspace = true }
dotenvy = { workspace = true }
elements = { workspace = true }
futures-util = { workspace = true }
global-utils = { workspace = true }
hex = { workspace = true }
nostr = { workspace = true }
serde_json = { workspace = true }
simplicity-contracts = { workspace = true }
simplicity-contracts-adapter = { workspace = true }
simplicity-lang = { workspace = true }
simplicityhl = { workspace = true }
simplicityhl-core = { workspace = true }
sled = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
clap = { workspace = true }
dirs = { workspace = true }
tracing = { workspace = true }
thiserror = { workspace = true }
dex-nostr-relay = { workspace = true }
serde = { workspace = true }
humantime = { version = "2.3.0"}

Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#![warn(clippy::all, clippy::pedantic)]

use clap::Parser;

use global_utils::logger::init_logger;

use simplicity_dex::cli::Cli;
use dex_cli::cli::Cli;

#[tokio::main]
#[tracing::instrument]
async fn main() -> anyhow::Result<()> {
let _ = dotenvy::dotenv();
let _logger_guard = init_logger();

Cli::parse().process().await?;
Expand Down
Loading