mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
chore: bump version
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cashu-crab"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
authors = ["thesimplekid"]
|
||||
license = "BSD-3-Clause"
|
||||
|
||||
@@ -5,7 +5,6 @@ use serde::{Deserialize, Serialize};
|
||||
use serde_json::Value;
|
||||
use url::Url;
|
||||
|
||||
use crate::amount::Amount;
|
||||
use crate::nuts::nut00::{BlindedMessage, BlindedMessages, Proof};
|
||||
use crate::nuts::nut01::Keys;
|
||||
use crate::nuts::nut03::RequestMintResponse;
|
||||
@@ -17,6 +16,7 @@ use crate::nuts::nut08::{MeltRequest, MeltResponse};
|
||||
use crate::nuts::nut09::MintInfo;
|
||||
use crate::nuts::*;
|
||||
use crate::utils;
|
||||
use crate::Amount;
|
||||
pub use crate::Invoice;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -204,7 +204,7 @@ impl Token {
|
||||
pub mod mint {
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::amount::Amount;
|
||||
use crate::Amount;
|
||||
|
||||
use super::PublicKey;
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::nut00::Proofs;
|
||||
use crate::amount::Amount;
|
||||
use crate::error::Error;
|
||||
use crate::Amount;
|
||||
use crate::Invoice;
|
||||
|
||||
/// Check Fees Response [NUT-05]
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// https://github.com/cashubtc/nuts/blob/main/06.md
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::amount::Amount;
|
||||
use crate::nuts::nut00::{BlindedMessage, BlindedMessages, Proofs};
|
||||
use crate::Amount;
|
||||
|
||||
use super::nut00::BlindedSignature;
|
||||
|
||||
@@ -16,7 +16,7 @@ pub struct SplitPayload {
|
||||
/// Split Request [NUT-06]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct SplitRequest {
|
||||
#[deprecated(since = "0.1.5", note = "mint does not need amount")]
|
||||
#[deprecated(since = "0.3.0", note = "mint does not need amount")]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub amount: Option<Amount>,
|
||||
pub proofs: Proofs,
|
||||
@@ -37,14 +37,14 @@ impl SplitRequest {
|
||||
pub struct SplitResponse {
|
||||
/// Promises to keep
|
||||
#[deprecated(
|
||||
since = "0.1.5",
|
||||
since = "0.3.0",
|
||||
note = "mint only response with one list of all promises"
|
||||
)]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub fst: Option<Vec<BlindedSignature>>,
|
||||
/// Promises to send
|
||||
#[deprecated(
|
||||
since = "0.1.5",
|
||||
since = "0.3.0",
|
||||
note = "mint only response with one list of all promises"
|
||||
)]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
@@ -63,7 +63,7 @@ impl SplitResponse {
|
||||
}
|
||||
|
||||
#[deprecated(
|
||||
since = "0.1.1",
|
||||
since = "0.3.0",
|
||||
note = "mint only response with one list of all promises"
|
||||
)]
|
||||
pub fn new_from_amount(
|
||||
@@ -78,7 +78,7 @@ impl SplitResponse {
|
||||
}
|
||||
|
||||
#[deprecated(
|
||||
since = "0.1.1",
|
||||
since = "0.3.0",
|
||||
note = "mint only response with one list of all promises"
|
||||
)]
|
||||
pub fn change_amount(&self) -> Option<Amount> {
|
||||
@@ -93,7 +93,7 @@ impl SplitResponse {
|
||||
}
|
||||
|
||||
#[deprecated(
|
||||
since = "0.1.1",
|
||||
since = "0.3.0",
|
||||
note = "mint only response with one list of all promises"
|
||||
)]
|
||||
pub fn target_amount(&self) -> Option<Amount> {
|
||||
|
||||
@@ -6,7 +6,7 @@ use bitcoin::hashes::Hash;
|
||||
use rand::prelude::*;
|
||||
use regex::Regex;
|
||||
|
||||
use crate::amount::Amount;
|
||||
use crate::Amount;
|
||||
|
||||
/// Split amount into cashu denominations (powers of 2)
|
||||
pub fn split_amount(amount: Amount) -> Vec<Amount> {
|
||||
|
||||
@@ -3,13 +3,13 @@ use std::str::FromStr;
|
||||
|
||||
use log::warn;
|
||||
|
||||
use crate::amount::Amount;
|
||||
use crate::dhke::unblind_message;
|
||||
use crate::nuts::nut00::{mint, BlindedMessages, BlindedSignature, Proof, Proofs, Token};
|
||||
use crate::nuts::nut01::Keys;
|
||||
use crate::nuts::nut03::RequestMintResponse;
|
||||
use crate::nuts::nut06::{SplitPayload, SplitRequest};
|
||||
use crate::types::{Melted, ProofsStatus, SendProofs};
|
||||
use crate::Amount;
|
||||
pub use crate::Invoice;
|
||||
use crate::{client::Client, dhke::construct_proofs, error::Error};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user