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/market.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/stubs/market.h b/tests/unit/stubs/market.h
new file mode 100644
index 0000000..b81564d
--- /dev/null
+++ b/tests/unit/stubs/market.h
@@ -0,0 +1,21 @@
1#ifndef STUBS_MARKET_H
2#define STUBS_MARKET_H
3
4#include <stdint.h>
5#include <stdbool.h>
6
7typedef struct {
8 uint8_t bssid[6];
9 int8_t rssi;
10 uint16_t price_per_step;
11 uint32_t step_size;
12 uint8_t metric;
13 uint8_t mint_hash[4];
14 uint8_t npub_hash[4];
15 int64_t discovered_ms;
16} market_t;
17
18static inline const market_t *market_get(void) { return NULL; }
19static inline int market_find_cheapest(void) { return -1; }
20
21#endif