Rename nectar to asb (automated swap backend)

This commit is contained in:
Daniel Karzel 2021-02-22 10:24:11 +11:00
parent 374c2d4372
commit fe3d6f1fef
6 changed files with 13 additions and 13 deletions

View File

@ -74,11 +74,11 @@ jobs:
name: swap-${{ matrix.target }} name: swap-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/swap_cli path: target/${{ matrix.target }}/debug/swap_cli
- name: Upload nectar binary - name: Upload asb binary
uses: actions/upload-artifact@v2-preview uses: actions/upload-artifact@v2-preview
with: with:
name: nectar-${{ matrix.target }} name: asb-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/nectar path: target/${{ matrix.target }}/debug/asb
test: test:
env: env:

View File

@ -104,7 +104,7 @@ where
pub fn query_user_for_initial_testnet_config() -> Result<Config> { pub fn query_user_for_initial_testnet_config() -> Result<Config> {
println!(); println!();
let data_dir = Input::with_theme(&ColorfulTheme::default()) let data_dir = Input::with_theme(&ColorfulTheme::default())
.with_prompt("Enter data directory for nectar or hit return to use default") .with_prompt("Enter data directory for asb or hit return to use default")
.default( .default(
default_data_dir() default_data_dir()
.context("No default data dir value for this system")? .context("No default data dir value for this system")?
@ -116,7 +116,7 @@ pub fn query_user_for_initial_testnet_config() -> Result<Config> {
let data_dir = data_dir.as_str().parse()?; let data_dir = data_dir.as_str().parse()?;
let listen_address = Input::with_theme(&ColorfulTheme::default()) let listen_address = Input::with_theme(&ColorfulTheme::default())
.with_prompt("Enter multiaddress on which nectar should list for peer-to-peer communications or hit return to use default") .with_prompt("Enter multiaddress on which asb should list for peer-to-peer communications or hit return to use default")
.default(DEFAULT_LISTEN_ADDRESS.to_owned()) .default(DEFAULT_LISTEN_ADDRESS.to_owned())
.interact_text()?; .interact_text()?;
let listen_address = listen_address.as_str().parse()?; let listen_address = listen_address.as_str().parse()?;

View File

@ -18,6 +18,13 @@ use prettytable::{row, Table};
use std::{path::Path, sync::Arc}; use std::{path::Path, sync::Arc};
use structopt::StructOpt; use structopt::StructOpt;
use swap::{ use swap::{
asb::{
command::{Arguments, Command},
config::{
initial_setup, query_user_for_initial_testnet_config, read_config, Config,
ConfigNotInitialized,
},
},
bitcoin, bitcoin,
database::Database, database::Database,
execution_params, execution_params,
@ -25,13 +32,6 @@ use swap::{
fs::default_config_path, fs::default_config_path,
monero, monero,
monero::{CreateWallet, OpenWallet}, monero::{CreateWallet, OpenWallet},
nectar::{
command::{Arguments, Command},
config::{
initial_setup, query_user_for_initial_testnet_config, read_config, Config,
ConfigNotInitialized,
},
},
protocol::alice::EventLoop, protocol::alice::EventLoop,
seed::Seed, seed::Seed,
trace::init_tracing, trace::init_tracing,

View File

@ -16,13 +16,13 @@
missing_copy_implementations missing_copy_implementations
)] )]
pub mod asb;
pub mod bitcoin; pub mod bitcoin;
pub mod cli; pub mod cli;
pub mod database; pub mod database;
pub mod execution_params; pub mod execution_params;
pub mod fs; pub mod fs;
pub mod monero; pub mod monero;
pub mod nectar;
pub mod protocol; pub mod protocol;
pub mod seed; pub mod seed;
pub mod trace; pub mod trace;