@gardenfi/core 2.0.12 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.js +1077 -992
- package/dist/src/lib/bitcoin/htlc.d.ts +2 -1
- package/dist/src/lib/garden/cache/executorCache.d.ts +5 -0
- package/dist/src/lib/garden/garden.d.ts +1 -0
- package/package.json +2 -2
|
@@ -54,6 +54,7 @@ export declare class GardenHTLC implements IHTLCWallet {
|
|
|
54
54
|
*/
|
|
55
55
|
id(): string;
|
|
56
56
|
private _buildRawTx;
|
|
57
|
+
private _tempBuildRawTx;
|
|
57
58
|
/**
|
|
58
59
|
* Builds a raw unsigned transaction with utxos from gardenHTLC address
|
|
59
60
|
* and uses signer's address as the output address
|
|
@@ -78,7 +79,7 @@ export declare class GardenHTLC implements IHTLCWallet {
|
|
|
78
79
|
/**
|
|
79
80
|
* Reveals the secret and redeems the HTLC
|
|
80
81
|
*/
|
|
81
|
-
redeem(secret: string, receiver?: string
|
|
82
|
+
redeem(secret: string, receiver?: string): Promise<string>;
|
|
82
83
|
/**
|
|
83
84
|
* Refunds the funds back to the initiator if the expiry block height + 1 is reached
|
|
84
85
|
*/
|
|
@@ -7,3 +7,8 @@ export declare class ExecutorCache implements IOrderExecutorCache {
|
|
|
7
7
|
get(order: MatchedOrder, action: OrderActions): OrderCacheValue | null;
|
|
8
8
|
remove(order: MatchedOrder, action: OrderActions): void;
|
|
9
9
|
}
|
|
10
|
+
export declare class Cache<T> {
|
|
11
|
+
private cache;
|
|
12
|
+
set(key: string, value: T): void;
|
|
13
|
+
get(key: string): T | null;
|
|
14
|
+
}
|
|
@@ -22,6 +22,7 @@ export declare class Garden extends EventBroker<GardenEvents> implements IGarden
|
|
|
22
22
|
private _evmRelay;
|
|
23
23
|
private _evmWallet;
|
|
24
24
|
private _btcWallet;
|
|
25
|
+
private bitcoinRedeemCache;
|
|
25
26
|
constructor(config: GardenProps);
|
|
26
27
|
get orderbookUrl(): string;
|
|
27
28
|
get evmRelay(): IEVMRelay;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gardenfi/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "vite build",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"registry": "https://registry.npmjs.org/"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@catalogfi/wallets": "^0.2.
|
|
29
|
+
"@catalogfi/wallets": "^0.2.57",
|
|
30
30
|
"@gardenfi/orderbook": "^2.0.4",
|
|
31
31
|
"@gardenfi/utils": "^2.0.1",
|
|
32
32
|
"bignumber.js": "^9.1.2",
|