Merge pull request #737 from thesimplekid/replace_testnut

feat: use tsk testmint
This commit is contained in:
thesimplekid
2025-04-29 08:07:40 +01:00
committed by GitHub
11 changed files with 14 additions and 14 deletions

View File

@@ -68,7 +68,7 @@ async fn main() {
{
let seed = random::<[u8; 32]>();
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
let amount = Amount::from(10);

View File

@@ -22,7 +22,7 @@ async fn main() -> Result<(), Error> {
let seed = rand::thread_rng().gen::<[u8; 32]>();
// Define the mint URL and currency unit
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
let amount = Amount::from(10);

View File

@@ -28,7 +28,7 @@ async fn main() -> Result<(), Error> {
let seed = random::<[u8; 32]>();
// Define the mint URL and currency unit
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
let amount = Amount::from(10);

View File

@@ -27,7 +27,7 @@ async fn main() -> Result<(), Error> {
let seed = random::<[u8; 32]>();
// Define the mint URL and currency unit
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
let amount = Amount::from(100);

View File

@@ -17,7 +17,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let seed = random::<[u8; 32]>();
// Mint URL and currency unit
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
// Initialize the memory store

View File

@@ -16,7 +16,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let seed = random::<[u8; 32]>();
// Mint URL and currency unit
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
let amount = Amount::from(10);

View File

@@ -16,7 +16,7 @@ The CDK [`Wallet`] is a high level Cashu wallet. The [`Wallet`] is for a single
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let seed = random::<[u8; 32]>();
let mint_url = "https://testnut.cashu.space";
let mint_url = "https://fake.thesimplekid.dev";
let unit = CurrencyUnit::Sat;
let localstore = memory::empty().await?;

View File

@@ -30,7 +30,7 @@ impl Wallet {
/// #[tokio::main]
/// async fn main() -> anyhow::Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;
@@ -276,7 +276,7 @@ impl Wallet {
/// #[tokio::main]
/// async fn main() -> anyhow::Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;

View File

@@ -32,7 +32,7 @@ impl Wallet {
/// #[tokio::main]
/// async fn main() -> anyhow::Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;
@@ -154,7 +154,7 @@ impl Wallet {
/// #[tokio::main]
/// async fn main() -> Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;

View File

@@ -145,7 +145,7 @@ impl Wallet {
///
/// async fn test() -> anyhow::Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;

View File

@@ -193,7 +193,7 @@ impl Wallet {
/// #[tokio::main]
/// async fn main() -> anyhow::Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;
@@ -245,7 +245,7 @@ impl Wallet {
/// #[tokio::main]
/// async fn main() -> anyhow::Result<()> {
/// let seed = random::<[u8; 32]>();
/// let mint_url = "https://testnut.cashu.space";
/// let mint_url = "https://fake.thesimplekid.dev";
/// let unit = CurrencyUnit::Sat;
///
/// let localstore = memory::empty().await?;