upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/stubs')
-rw-r--r--tests/unit/stubs/esp_err.h1
-rw-r--r--tests/unit/stubs/nucula_wallet.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit/stubs/esp_err.h b/tests/unit/stubs/esp_err.h
index 9bedb72..2a8e216 100644
--- a/tests/unit/stubs/esp_err.h
+++ b/tests/unit/stubs/esp_err.h
@@ -12,6 +12,7 @@ typedef int esp_err_t;
12#define ESP_ERR_INVALID_ARG 0x102 12#define ESP_ERR_INVALID_ARG 0x102
13#define ESP_ERR_NO_MEM 0x101 13#define ESP_ERR_NO_MEM 0x101
14#define ESP_ERR_NOT_FOUND 0x104 14#define ESP_ERR_NOT_FOUND 0x104
15#define ESP_ERR_INVALID_STATE 0x103
15 16
16static inline const char *esp_err_to_name(esp_err_t err) { (void)err; return "ESP_OK"; } 17static inline const char *esp_err_to_name(esp_err_t err) { (void)err; return "ESP_OK"; }
17 18
diff --git a/tests/unit/stubs/nucula_wallet.h b/tests/unit/stubs/nucula_wallet.h
new file mode 100644
index 0000000..260ec35
--- /dev/null
+++ b/tests/unit/stubs/nucula_wallet.h
@@ -0,0 +1,17 @@
1#ifndef STUBS_NUCULA_WALLET_H
2#define STUBS_NUCULA_WALLET_H
3
4#include "esp_err.h"
5#include <stdint.h>
6#include <stddef.h>
7
8esp_err_t nucula_wallet_init(const char *mint_url);
9esp_err_t nucula_wallet_receive(const char *token_str);
10esp_err_t nucula_wallet_send(uint64_t amount_sat, char *token_out, size_t token_out_size);
11uint64_t nucula_wallet_balance(void);
12int nucula_wallet_proof_count(void);
13char *nucula_wallet_proofs_json(void);
14esp_err_t nucula_wallet_swap_all(void);
15void nucula_wallet_print_status(void);
16
17#endif