@gardenfi/core 0.2.0-beta.26 → 0.2.0-beta.28
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/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Garden } from './lib/garden/garden';
|
|
2
|
-
export type { IGardenJS, SwapParams, TimeLocks, OrderActions, GardenEvents,
|
|
2
|
+
export type { IGardenJS, SwapParams, TimeLocks, OrderActions, GardenEvents, IOrderExecutorCache, OrderCacheValue, EventCallback, } from './lib/garden/garden.types';
|
|
3
3
|
export { EvmRelay } from './lib/evm/relay/evmRelay';
|
|
4
4
|
export type { IEVMRelay } from './lib/evm/relay/evmRelay.types';
|
|
5
5
|
export type { OrderStatus, SwapStatus } from './lib/status';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatchedOrder } from '@gardenfi/orderbook';
|
|
2
|
-
import {
|
|
2
|
+
import { IOrderExecutorCache, OrderActions, OrderCacheValue } from '../garden.types';
|
|
3
3
|
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ExecutorCache implements IOrderExecutorCache {
|
|
5
5
|
private cache;
|
|
6
6
|
set(order: MatchedOrder, action: OrderActions, txHash: string, utxo?: string): void;
|
|
7
7
|
get(order: MatchedOrder, action: OrderActions): OrderCacheValue | null;
|
|
@@ -71,7 +71,7 @@ export type OrderCacheValue = {
|
|
|
71
71
|
timeStamp: number;
|
|
72
72
|
btcRedeemUTXO?: string;
|
|
73
73
|
};
|
|
74
|
-
export interface
|
|
74
|
+
export interface IOrderExecutorCache {
|
|
75
75
|
set(order: MatchedOrder, action: OrderActions, txHash: string, utxo?: string): void;
|
|
76
76
|
get(order: MatchedOrder, action: OrderActions): OrderCacheValue | null;
|
|
77
77
|
remove(order: MatchedOrder, action: OrderActions): void;
|