@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.
@@ -1,5 +1,5 @@
1
1
  export { Garden } from './lib/garden/garden';
2
- export type { IGardenJS, SwapParams, TimeLocks, OrderActions, GardenEvents, IOrderCache, OrderCacheValue, EventCallback, } from './lib/garden/garden.types';
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 { IOrderCache, OrderActions, OrderCacheValue } from './garden.types';
2
+ import { IOrderExecutorCache, OrderActions, OrderCacheValue } from '../garden.types';
3
3
 
4
- export declare class OrderCache implements IOrderCache {
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;
@@ -19,7 +19,6 @@ export declare class Garden implements IGardenJS {
19
19
  private useRelay;
20
20
  private wallets;
21
21
  private evmAddress;
22
- private store;
23
22
  private orderExecutorCache;
24
23
  constructor(config: {
25
24
  orderbookURl: string;
@@ -71,7 +71,7 @@ export type OrderCacheValue = {
71
71
  timeStamp: number;
72
72
  btcRedeemUTXO?: string;
73
73
  };
74
- export interface IOrderCache {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/core",
3
- "version": "0.2.0-beta.26",
3
+ "version": "0.2.0-beta.28",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"