Parcourir la source

Merge pull request #737 from thesimplekid/replace_testnut

feat: use tsk testmint
thesimplekid il y a 1 mois
Parent
commit
052f4e812d

+ 1 - 1
crates/cdk/README.md

@@ -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);
 

+ 1 - 1
crates/cdk/examples/melt-token.rs

@@ -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);
 

+ 1 - 1
crates/cdk/examples/mint-token.rs

@@ -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);
 

+ 1 - 1
crates/cdk/examples/p2pk.rs

@@ -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);
 

+ 1 - 1
crates/cdk/examples/proof-selection.rs

@@ -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

+ 1 - 1
crates/cdk/examples/wallet.rs

@@ -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);
 

+ 1 - 1
crates/cdk/src/wallet/README.md

@@ -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?;

+ 2 - 2
crates/cdk/src/wallet/melt.rs

@@ -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?;

+ 2 - 2
crates/cdk/src/wallet/mint.rs

@@ -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?;

+ 1 - 1
crates/cdk/src/wallet/mod.rs

@@ -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?;

+ 2 - 2
crates/cdk/src/wallet/receive.rs

@@ -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?;