aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ark.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ark.ts')
-rw-r--r--lib/ark.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/ark.ts b/lib/ark.ts
index 3fc33ef6..5f695f6e 100644
--- a/lib/ark.ts
+++ b/lib/ark.ts
@@ -3,6 +3,7 @@ if (!globalThis.EventSource) globalThis.EventSource = EventSource as any;
import config from "$config";
import { SingleKey, Wallet, Ramps, RestArkProvider, VtxoManager } from "@arkade-os/sdk";
+import { ValkeyWalletRepository, ValkeyContractRepository } from "$lib/arkRepository";
import { db } from "$lib/db";
import { l, warn } from "$lib/logging";
@@ -21,7 +22,15 @@ const getWallet = async () => {
const { arkPrivateKey, arkServerUrl, esploraUrl } = config.ark;
const identity = SingleKey.fromHex(arkPrivateKey);
- wallet = await Wallet.create({ identity, arkServerUrl, esploraUrl });
+ wallet = await Wallet.create({
+ identity,
+ arkServerUrl,
+ esploraUrl,
+ storage: {
+ walletRepository: new ValkeyWalletRepository(),
+ contractRepository: new ValkeyContractRepository(),
+ },
+ });
return wallet;
};