aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/bank.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/skyblock/bank.ts')
-rw-r--r--src/cleaners/skyblock/bank.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/bank.ts b/src/cleaners/skyblock/bank.ts
new file mode 100644
index 0000000..7db7a37
--- /dev/null
+++ b/src/cleaners/skyblock/bank.ts
@@ -0,0 +1,14 @@
+import { cleanSkyblockProfileResponseLighter } from "./profile"
+
+export interface Bank {
+ balance: number
+ history: any[]
+}
+
+export function cleanBank(data: any): Bank {
+ return {
+ balance: data?.banking?.balance ?? 0,
+ // TODO: make transactions good
+ history: data?.banking?.transactions ?? []
+ }
+} \ No newline at end of file