mirror of
https://github.com/RoboSats/taptrade-core.git
synced 2025-07-21 10:13:23 +00:00
bond and nix shell
This commit is contained in:
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Debug",
|
||||||
|
"program": "${workspaceFolder}/<executable file>",
|
||||||
|
"args": [],
|
||||||
|
"cwd": "${workspaceFolder}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
20
shell.nix
20
shell.nix
@ -1,4 +1,10 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (pkgs.lib) makeLibraryPath;
|
||||||
|
inherit (pkgs.lib) fileContents;
|
||||||
|
inherit (pkgs) stdenv;
|
||||||
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs.buildPackages; [
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||||||
pkg-config
|
pkg-config
|
||||||
@ -9,7 +15,17 @@
|
|||||||
rustfmt
|
rustfmt
|
||||||
gcc
|
gcc
|
||||||
];
|
];
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
||||||
|
NIX_LD_LIBRARY_PATH = makeLibraryPath [
|
||||||
|
stdenv.cc.cc
|
||||||
|
pkgs.openssl
|
||||||
|
pkgs.zlib
|
||||||
|
pkgs.pkg-config
|
||||||
|
pkgs.gcc
|
||||||
|
];
|
||||||
|
|
||||||
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||||
|
NIX_LD = fileContents "${stdenv.cc}/nix-support/dynamic-linker";
|
||||||
}
|
}
|
||||||
|
|
||||||
# For VSCode and Rust Analyzer use the Extension "Nix Environment Selector"
|
# For VSCode and Rust Analyzer use the Extension "Nix Environment Selector"
|
||||||
|
@ -21,7 +21,6 @@ pub struct Bond {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Bond {
|
impl Bond {
|
||||||
println!("assembling bond transaction");
|
|
||||||
pub fn assemble(wallet: &Wallet<MemoryDatabase>,
|
pub fn assemble(wallet: &Wallet<MemoryDatabase>,
|
||||||
bond_target: &OfferCreationResponse,
|
bond_target: &OfferCreationResponse,
|
||||||
trader_input: &TraderSettings) -> Result<PartiallySignedTransaction> {
|
trader_input: &TraderSettings) -> Result<PartiallySignedTransaction> {
|
||||||
|
Reference in New Issue
Block a user