mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-05 14:05:29 +01:00
Merge pull request #737 from thesimplekid/replace_testnut
feat: use tsk testmint
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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?;
|
||||
|
||||
@@ -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?;
|
||||
|
||||
@@ -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?;
|
||||
|
||||
@@ -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?;
|
||||
|
||||
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user