Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Fix updates #127

Merged
merged 85 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
7ccb5c8
Update command.sh
22388o Nov 9, 2023
05e3e58
Update cli.rs
22388o Nov 9, 2023
1e9b340
Update cli.rs
22388o Nov 9, 2023
1f21217
Update command.sh
22388o Nov 10, 2023
2939bf1
Update command.sh
22388o Nov 10, 2023
c6f0fe8
Update command.sh
22388o Nov 13, 2023
058e933
Update cli.rs
22388o Nov 24, 2023
128d0f4
Create rgb20.rs
22388o Dec 2, 2023
849008f
Update rgb20.rs
22388o Dec 4, 2023
e1d1b56
Update rgb20.rs
22388o Dec 5, 2023
f6f7c88
Update rgb20.rs
22388o Dec 5, 2023
6329a9e
Update rgb20.rs
22388o Dec 19, 2023
c322a0e
Update swap.rs
22388o Dec 26, 2023
ddcc3e5
Update swap.rs
22388o Dec 27, 2023
f94f7b9
Update swap.rs
22388o Dec 27, 2023
ea2db5a
Update swap.rs
22388o Dec 27, 2023
27fa375
Update swap.rs
22388o Dec 27, 2023
a798d05
Update swap.rs
22388o Dec 27, 2023
4ceafee
Update swap.rs
22388o Dec 27, 2023
e75f280
Update swap.rs
22388o Dec 27, 2023
321a6de
Update swap.rs
22388o Dec 27, 2023
75c3017
Update swap.rs
22388o Dec 27, 2023
139595d
Update CONTRIBUTING.md
22388o Dec 27, 2023
afd9ed0
Create lib.rs
22388o Dec 28, 2023
3e4aca4
Update README.md
22388o Dec 28, 2023
ad6b300
Update README.md
22388o Dec 28, 2023
a626300
Update README.md
22388o Dec 28, 2023
b2a146f
Create lib.rs
22388o Dec 29, 2023
bdc4762
Update op.rs
22388o Dec 29, 2023
239e11c
Update op.rs
22388o Dec 29, 2023
0c978ef
Create script.rs
22388o Dec 29, 2023
c21a4c6
Update README.md
22388o Dec 30, 2023
631158b
Fixed for new v0.11 beta version
22388o Dec 30, 2023
27e26c6
Merge pull request #120 from BitSwap-BiFi/feat/ldk-0.0.118
22388o Jan 1, 2024
e4e0aad
Update CHANGELOG.md
22388o Jan 1, 2024
efe05ad
Update CHANGELOG.md
22388o Jan 1, 2024
bb4b116
Update .env
22388o Jan 1, 2024
7ce6529
Update .env
22388o Jan 1, 2024
871f3c9
Update and rename .env to .env.sample
22388o Jan 1, 2024
bbee9e3
Fixed LDK, BP and RGB
22388o Jan 1, 2024
470c571
Update Cargo.toml
22388o Jan 1, 2024
a7d8326
Update README.md
22388o Jan 1, 2024
7a4c4de
Update Cargo.toml
22388o Jan 2, 2024
d323671
Update Cargo.toml
22388o Jan 2, 2024
5d7ff21
Create data.rs
22388o Jan 2, 2024
947f0ad
Create channel.rs
22388o Jan 2, 2024
1b1f361
Create app.rs
22388o Jan 2, 2024
193fcb1
Update architecture.md
22388o Jan 3, 2024
47de7fd
Update Cargo.toml
22388o Jan 3, 2024
147e7a8
Update cli.rs
22388o Jan 3, 2024
5ca2844
Merge branch 'main' into 22388o-patch-33
22388o Jan 3, 2024
6e3218c
Merge pull request #66 from BitSwap-BiFi/22388o-patch-33
22388o Jan 3, 2024
7e238fe
Merge pull request #65 from BitSwap-BiFi/cli/upgrade
22388o Jan 3, 2024
ab4374a
Fix command line in Sheell
22388o Jan 4, 2024
728be2c
Create Cargo.toml
22388o Jan 4, 2024
aa94d2c
Update Cargo.toml
22388o Jan 4, 2024
82b3a06
Update Cargo.toml
22388o Jan 4, 2024
a9c85f9
Update .env.sample
22388o Jan 4, 2024
016d515
Update rgb20.rs
22388o Jan 4, 2024
95c963a
Update rgb20.rs
22388o Jan 4, 2024
6ee5437
Update rgb20.rs
22388o Jan 5, 2024
17a7433
Create Cargo.toml
22388o Jan 5, 2024
d47a249
Fix for Payjoin v0.13.0
22388o Jan 5, 2024
27c8761
Update rgb20.rs
22388o Jan 5, 2024
00e8ba0
Create docs.yml
22388o Jan 5, 2024
b6095d4
Update Cargo.toml
22388o Jan 5, 2024
6f0afb3
Update .env.sample
22388o Jan 5, 2024
69357da
Create Cargo.toml
22388o Jan 6, 2024
bfc63f5
Update Cargo.toml
22388o Jan 6, 2024
9411c2f
Update rgb20.rs
22388o Jan 8, 2024
43819d6
Update Cargo.toml
22388o Jan 8, 2024
bc57d78
Update rgb20.rs
22388o Jan 8, 2024
ae3b2cf
Update rgb20.rs
22388o Jan 8, 2024
8861a93
Update rgb20.rs
22388o Jan 8, 2024
e955c08
Update rgb20.rs
22388o Jan 8, 2024
76390ec
Update rgb20.rs
22388o Jan 8, 2024
12b6047
Update .env.sample
22388o Jan 8, 2024
2efa580
Update rgb20.rs
22388o Jan 8, 2024
b93105b
Update rgb20.rs
22388o Jan 8, 2024
cba9783
Update rgb20.rs
22388o Jan 8, 2024
c392b08
Update rgb20.rs
22388o Jan 8, 2024
fe5859c
Merge pull request #91 from BitSwap-BiFi/feat/rgb20
Rsync25 Jan 8, 2024
6c2fdd3
Fix DLC endpoint
22388o Jan 8, 2024
966444a
Fix assets
22388o Jan 8, 2024
3a85db9
Update README.md
22388o Jan 8, 2024
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
21 changes: 15 additions & 6 deletions .env → .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,31 @@

BITCOIN_NODE_SERVER =
ELECTRUM_API_SERVER =
BITCOIN_API_EXPLORER_MAINNET =
BITCOIN_API_EXPLORER_MAINNET = false
BITCOIN_API_EXPLORER_TESTNET =
BITCOIN_API_EXPLORER_SIGNET = false
APP_DIR=.rgb-proxy-server

# LN
# lightning network

LNNDHUB_ENDPOINT =
RGB_LIGHTNING_NODE =

# bitswap

# oracle

ORACLE_ENDPOINT =
ORACLE_PUBKEY =

# web

LOCAL_HOST =

# network 1

STRESS_TEST=false
BITCOIN_NETWORK_MAINNET=false
BITCOIN_NETWORK_SIGNET=false
BITCOIN_NETWORK_TESTNET=true
BITSWAP_ENDPOINT=

## dex

Expand All @@ -26,7 +35,7 @@ DEX_SEED=
# 0.5...1
DEX_FEE_PERC=

# network
# network 2

BITCOIN_NETWORK_TESTNET=https://mempool.space/testnet
BITCOIN_NETWORK_MAINNET=https://mempool.space/
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish docs

on:
push:
branches:
- master

jobs:
docs:
name: Publish docs
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: actions/setup-rust@1
with:
name: fedimint
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
continue-on-error: true

- name: Build docs
run: cargo doc --no-deps

- if: github.repository == 'BiSwap/Bitswap'
name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result/
cname: https://bitswap-bifi.github.io/Bitswap-core/
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ See last versions and releases around Bitswap development

## Alpha v1.0.17

TBA
**Highlights**

- Fixed Cargo.toml with LDK and RGB
- RGB PSBT
- OP_RETURN
- Fixed typos

## Alpha v1.0.16

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- If your find some bug, please open "Issue"
- If you want make a new upgrade or feature, please open PR
- We not 'listing' token on Core
- We'll not integrate with sidechains or altcoins (chains) on DEX
- We'll not support Taproot Assets, Runes, Ordinals, NFTs, etc
- Check our [ossification DEX](https://github.com/BitSwap-BiFi/Bitswap-core/tree/main#ossification-dex)
46 changes: 23 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ members = ["rgb-core", "rust-dlc", "bitswap", "payjoin", "aluvm", "baid58"]
name = "Bitswap-Core"
version = "1.0.17-alpha"
edition = "2021"
description = "AMM DEX on RGB Protocol"
description = "AMM DEX on RGB Protocol and Lightning Network"
license = "Business Source License 1.1"

[memmbers]

swap = "algorithm, dlc"
swap = "amm, dlc"
dlc = "message"
algorithm = "amm contract"
ldk = "invoice"
amm_contract = "amm contract"
ldk = "invoice, paymenthash, rgb_assets"

[dex.dependencies]
swap = "pairs, ldk"
bp-core = "tapret, op"


[core_functions]
rgb-core = "0.11.0-beta.3"
rgb-core = "0.11.0-beta.4"
rust-dlc = "0.4"
bitswap = "1.0.13"
rust-aluvm = "0.11.0-beta.3"
rust-aluvm = "0.11.0-beta.4"
rust-lighting = "0.0.118"
rust-baid58 = "0.4.0"
bp-std = "0.11.0-beta.3"
bp-core="v0.11.0-beta.3"
rgb-std = "0.11.0-beta.3"
payjoin = "0.12.0"
rgb-schemata = "0.11.0-beta.3"
bp-std = "0.11.0-beta.4"
bp-core="v0.11.0-beta.4"
rgb-std = "0.11.0-beta.4"
payjoin = "0.13.0"
rgb-schemata = "0.11.0-beta.4"
strict_types = "1.6.3"
rgb-runtime = "0.11.0-beta.1"
rgb-runtime = "0.11.0-beta.4"



Expand All @@ -50,12 +50,12 @@ required-features = ["stl"]
[dependencies]
strict_encoding = "~2.3.1"
strict_types = "~1.6.3"
bp-core = { version = "~0.11.0-alpha.3 }
bp-core = { version = "~0.11.0-alpha.4"}
aluvm = { version = "~0.11.0-beta.3", features = ["std"] }
commit_verify = { version = "~0.10.3", features = ["rand", "derive"] }
single_use_seals = "~0.10.0"
baid58 = "0.4.0"
rgb-std = { version = "0.11.0-beta.3", optional = true }
rgb-std = { version = "0.11.0-beta.4", optional = true }
psbt = { workspace = true }

[lihghtning]
Expand All @@ -71,10 +71,10 @@ lightning-rapid-gossip-sync = { version = "0.0.119" }
amplify = "~4.5.0"
strict_encoding = "~2.6.1"
strict_types = "~1.6.3"
aluvm = { version = "~0.11.0-beta.1", features = ["std"] }
aluvm = { version = "~0.11.0-beta.4", features = ["std"] }
commit_verify = { version = "~0.10.6", features = ["rand", "derive"] }
single_use_seals = "~0.10.1"
bp-core = { version = "~0.10.10" }
bp-core = { version = "~0.11.0" }
secp256k1-zkp = { version = "0.28.0", features = ["rand", "rand-std", "global-context"] }
baid58 = "~0.4.4"
mime = "~0.3.17"
Expand Down Expand Up @@ -135,15 +135,15 @@ baid58 = "0.4.4"
strict_encoding = "2.5.0"
strict_types = "1.6.0"
commit_verify = { version = "0.10.5", features = ["stl"] }
bp-core = { version = "0.11.0", features = ["stl"] }
rgb-core = { version = "0.11.0", features = ["stl"] }
bp-core = { version = "0.11.0-beta.4", features = ["stl"] }
rgb-core = { version = "0.11.0-beta.4, features = ["stl"] }

[ldk]

tokio = { version = "1.14", features = [ "macros", "rt", "rt-multi-thread", "sync", "time" ] }
lightning = { version = "0.0.117", path = "../lightning", features = ["_test_utils"] }
lightning = { version = "0.0.119", path = "../lightning", features = ["_test_utils"] }
lightning-invoice = { version = "0.24.0", path = "../lightning-invoice" }
lightning-persister = { version = "0.0.116", path = "../lightning-persister" }
lightning-persister = { version = "0.0.119", path = "../lightning-persister" }


bech32 = { version = "0.9.0", default-features = false }
Expand All @@ -161,7 +161,7 @@ bitcoin = {version = "0.29.2"}
dlc = {version = "0.4.0", path = "../dlc"}
dlc-messages = {version = "0.4.0", path = "../dlc-messages"}
dlc-trie = {version = "0.4.0", path = "../dlc-trie"}
lightning = {version = "0.0.116" }
lightning = {version = "0.0.119" }
log = "0.4.14"
rand_chacha = {version = "0.3.1", optional = true}
serde = {version = "1.0", optional = true}
Expand All @@ -185,7 +185,7 @@ simple-wallet = {path = "../simple-wallet"}

bitcoin = {version = "0.29.2"}
dlc = {version = "0.4.0", path = "../dlc"}
lightning = {version = "0.0.116" }
lightning = {version = "0.0.119" }
secp256k1-zkp = {version = "0.7.0", features = ["bitcoin_hashes", "rand", "rand-std"]}
serde = {version = "1.0", features = ["derive"], optional = true}

Expand Down Expand Up @@ -310,7 +310,7 @@ sha2 = "0.10.7"
[bifrost]
amplify = { version = "3.13.0", features = ["hex", "rand"] }
lnpbp = "0.9.0"
bp-core = "0.11.0"
bp-core = "0.11.0-beta.4"
strict_encoding = { version = "0.11.0", optional = true, features = ["chrono", "miniscript"] }
lightning_encoding = { version = "0.9.0", optional = true }
bitcoin_scripts = "0.9.0"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ How there's no lunch free, you can lose sats in these scenarios:

## Roadmap

- [x] CLI
- [x] CLI powered by RGB CLI
- [x] On-Chain RGB Assets with Swap using [Bitcoin Protocol](https://github.com/BP-WG/bp-core)
- [x] RGB PSBT
- [x] RGB wallet (new version stable)
- [x] DLC Off chain thought Lightning swaps
- [x] Payjoin and Taproot full implementation (WIP)
- [x] Complete PRs pendents (WIP)
- [x] Add [RGB CLI](https://github.com/RGB-WG/rgb) as tool complementary for CLI from DEX
- [x] Integration with Bitlight wallet (WIP)
- [x] OP_RETURN (WIP)
- [x] API integration from RLN (WIP)
- [x] RGB Proxy (WIP)
Expand All @@ -85,17 +84,18 @@ How there's no lunch free, you can lose sats in these scenarios:
- [x] Prime (WIP)
- [x] Complete PRs pendents (WIP)
- [x] WASM (WIP)
- [ ] RGB Core, STD, BP, AluVM and many more to v0.11 - Part.2
- [x] RGB Core, STD, BP, AluVM and many more to v0.11 - Part.2 (WIP)
- [x] AMM lib (WIP)
- [x] Web server and domain
- [ ] Liquid integration
- [ ] User friendly UI for allow mint tokens, send, receive and swap tokens on Lightning Network and DEX
- [ ] Taproot Channels by LDK
- [ ] Mainnet
- [ ] Beta app
- [ ] UI/UX
- [x] Web server and domain
- [ ] Official USDT implementation by Bitifinex
- [ ] Integration with APIs from [RGBex](https://rgbex.io/)
- [ ] Bitlight Wallet
- [ ] [Bitlight Wallet](https://bitlightlabs.com)
- [ ] [BitMask](https://bitmask.app/)
- [ ] Storm
- [ ] Contractrum
Expand Down
1 change: 1 addition & 0 deletions doc/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Discover architecture repository about Bitswap
- Liquid: TBD
- Prime: TBD
- Bifrost: TBD
- Storm: TBD

1 change: 1 addition & 0 deletions server/amm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

16 changes: 15 additions & 1 deletion src/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
[package]

name = "Core"
name = "Src_core"
version = "1.0.17-alpha"
lib =
bifrost =
lightning =
bitcoin =
error =
proxy =
rgb =
testnet =
validators =
util =
web =
struct =
constants =

3 changes: 3 additions & 0 deletions src/aluvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspcae]
name = "src/aluvm"
version = "1.0.17-alpha"
6 changes: 6 additions & 0 deletions src/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]

cli = "1.0.17-alpha"

[dev.depedencies]
src = "cli"
14 changes: 8 additions & 6 deletions src/cli/cli.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
use ldk::wallet::Wallet;
use rgb::core::contract::Contract;
use rgb::core::fungible::{Mint, OutpointValue, ValueSum};
use rgb::core::issue::Amount;
use rgb_contract::cli;
use lightning::wallet::Wallet;
use rgbstd::interface::{Mint, OutpointValue, ValueSum, Amount, ContractID};
use std::error::Error;
Expand Down Expand Up @@ -34,10 +39,7 @@ fn main() -> Result<(), Box<dyn Error>> {
match args[0] {
"swaps" => {
let swap = swap::BTC();
let swap = swap::USDT();
}
"mint" => {
let mint = mint::USDT();
let swap = swap::RGB20();
}
"enable_channel" => {
let channel = open::new();
Expand All @@ -51,13 +53,13 @@ fn main() -> Result<(), Box<dyn Error>> {
"enter_liquidity" => {
let mut input = String::new();
let input = asset::BTC:();
let input = asset::USDT();
let input = asset::RGB20();

}
"exit_liquidity" => {
let mut output = String::new();
let output = asset::BTC:();
let output = asset::USDT();
let output = asset::RGB20();
}
"exit" => {
// Exit the program
Expand Down
Loading
Loading