@gardenfi/orderbook 3.1.3-beta.2 → 3.1.3-beta.20

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/index9.js CHANGED
@@ -1,55 +1,65 @@
1
- import { Url as s, Network as d } from "@gardenfi/utils";
1
+ import { Url as s, Network as o } from "@gardenfi/utils";
2
2
  import { getBlockchainType as c } from "./index4.js";
3
3
  import { BlockchainType as i } from "./index3.js";
4
- const o = {
4
+ const d = {
5
5
  [i.bitcoin]: {
6
- address: (e, t) => new s("address", e).endpoint(t).toString(),
7
- tx: (e, t) => new s("tx", e).endpoint(t).toString()
6
+ address: (r, t) => new s("address", r).endpoint(t).toString(),
7
+ tx: (r, t) => new s("tx", r).endpoint(t).toString()
8
8
  },
9
9
  [i.tron]: {
10
- address: (e, t) => `${e}/#/address/${t}`,
11
- tx: (e, t) => `${e}/#/transaction/${t.slice(2)}`
10
+ address: (r, t) => `${r}/#/address/${t}`,
11
+ tx: (r, t) => `${r}/#/transaction/${t.slice(2)}`
12
12
  },
13
13
  [i.starknet]: {
14
- address: (e, t) => new s("contract", e).endpoint(t).toString(),
15
- tx: (e, t) => new s("tx", e).endpoint(t).toString()
14
+ address: (r, t) => new s("contract", r).endpoint(t).toString(),
15
+ tx: (r, t) => new s("tx", r).endpoint(t).toString()
16
16
  },
17
17
  [i.xrpl]: {
18
- address: (e, t) => new s("accounts", e).endpoint(t).toString(),
19
- tx: (e, t) => new s("transactions", e).endpoint(t).toString()
18
+ address: (r, t) => new s("accounts", r).endpoint(t).toString(),
19
+ tx: (r, t) => new s("transactions", r).endpoint(t).toString()
20
20
  },
21
21
  [i.solana]: {
22
- address: (e, t, n) => {
23
- let r = new s("address", e).endpoint(t);
24
- return n === d.TESTNET && (r = r.addSearchParams({ cluster: "devnet" })), r.toString();
22
+ address: (r, t, n) => {
23
+ let e = new s("address", r).endpoint(t);
24
+ return n === o.TESTNET && (e = e.addSearchParams({ cluster: "devnet" })), e.toString();
25
25
  },
26
- tx: (e, t, n) => {
27
- let r = new s("tx", e).endpoint(t);
28
- return n === d.TESTNET && (r = r.addSearchParams({ cluster: "devnet" })), r.toString();
26
+ tx: (r, t, n) => {
27
+ let e = new s("tx", r).endpoint(t);
28
+ return n === o.TESTNET && (e = e.addSearchParams({ cluster: "devnet" })), e.toString();
29
+ }
30
+ },
31
+ [i.spark]: {
32
+ address: (r, t, n) => {
33
+ const e = new s("address", r).endpoint(t);
34
+ return n === o.TESTNET ? e.addSearchParams({ network: "regtest" }).toString() : e.toString();
35
+ },
36
+ tx: (r, t, n) => {
37
+ const e = new s("tx", r).endpoint(t);
38
+ return n === o.TESTNET ? e.addSearchParams({ network: "regtest" }).toString() : e.toString();
29
39
  }
30
40
  },
31
41
  default: {
32
- address: (e, t) => new s("address", e).endpoint(t).toString(),
33
- tx: (e, t) => new s("tx", e).endpoint(t).toString()
42
+ address: (r, t) => new s("address", r).endpoint(t).toString(),
43
+ tx: (r, t) => new s("tx", r).endpoint(t).toString()
34
44
  }
35
45
  };
36
46
  class a {
37
- constructor(t, n, r) {
38
- this.explorerUrl = n, this.network = r, this.chainType = c(t);
47
+ constructor(t, n, e) {
48
+ this.explorerUrl = n, this.network = e, this.chainType = c(t);
39
49
  }
40
- static from(t, n, r) {
41
- return new a(t, n, r);
50
+ static from(t, n, e) {
51
+ return new a(t, n, e);
42
52
  }
43
53
  getAddressLink(t) {
44
- return (o[this.chainType] ?? o.default).address(this.explorerUrl, t, this.network);
54
+ return (d[this.chainType] ?? d.default).address(this.explorerUrl, t, this.network);
45
55
  }
46
56
  getTxLink(t) {
47
57
  const n = this.extractTxHash(t);
48
- return (o[this.chainType] ?? o.default).tx(this.explorerUrl, n, this.network);
58
+ return (d[this.chainType] ?? d.default).tx(this.explorerUrl, n, this.network);
49
59
  }
50
60
  extractTxHash(t) {
51
- var n, r;
52
- return ((r = (n = t.split(",").at(-1)) == null ? void 0 : n.split(":").at(0)) == null ? void 0 : r.trim()) ?? "";
61
+ var n, e;
62
+ return ((e = (n = t.split(",").at(-1)) == null ? void 0 : n.split(":").at(0)) == null ? void 0 : e.trim()) ?? "";
53
63
  }
54
64
  }
55
65
  export {
@@ -1,11 +1,11 @@
1
1
  export { Orderbook } from './lib/orderbook/orderbook';
2
2
  export type * from './lib/orderbook/orderbook.types';
3
3
  export { BlockchainType } from './lib/constants/asset.types';
4
- export type { Asset, BitcoinChains, Chain, ChainsByBlockchainType, ChainsByNetwork, EVMChains, LocalnetOnlyChains, MainnetOnlyChains, SolanaChains, SuiChains, StarknetChains, XrplChains, TestnetOnlyChains, } from './lib/constants/asset.types';
4
+ export type { Asset, BitcoinChains, Chain, ChainsByBlockchainType, ChainsByNetwork, EVMChains, LocalnetOnlyChains, MainnetOnlyChains, SolanaChains, SuiChains, StarknetChains, XrplChains, LightningChains, TestnetOnlyChains, } from './lib/constants/asset.types';
5
5
  export * from './lib/constants/asset';
6
6
  export * from './lib/constants/localnetConstants';
7
7
  export * from './lib/constants/utils';
8
- export { isSuiOrderResponse, ConstructUrl, discriminateOrderResponse, getOrderResponseType, isBitcoinOrderResponse, isEvmOrderResponse, isOrder, isSolanaOrderResponse, isStarknetOrderResponse, isXrplOrderResponse, } from './lib/utils';
8
+ export { isSuiOrderResponse, ConstructUrl, discriminateOrderResponse, getOrderResponseType, isBitcoinOrderResponse, isEvmOrderResponse, isOrder, isSolanaOrderResponse, isStarknetOrderResponse, isXrplOrderResponse, isLightningOrderResponse, } from './lib/utils';
9
9
  export { ChainAsset } from './lib/chainAsset/chainAsset';
10
10
  export type { ChainAssetString, AssetLike } from './lib/chainAsset/chainAsset';
11
11
  export { ExplorerUrlBuilder } from './lib/ExplorerUrlBuilder/ExplorerUrlBuilder';
@@ -1,2 +1,3 @@
1
1
  export declare const MAINNET_ORDERBOOK_API = "https://api.garden.finance";
2
2
  export declare const TESTNET_ORDERBOOK_API = "https://testnet.api.garden.finance";
3
+ export declare const LOCAL_ORDERBOOK_API = "http://api.localhost";
@@ -4,6 +4,7 @@ export type BaseChainData = {
4
4
  id: string;
5
5
  name: string;
6
6
  chain: string | Chain;
7
+ native_asset_id: string;
7
8
  icon: string;
8
9
  explorer_url: string;
9
10
  confirmation_target: number;
@@ -38,7 +38,7 @@ export declare const Config: {
38
38
  };
39
39
  readonly arbitrum_localnet: {
40
40
  readonly type: BlockchainType.evm;
41
- readonly WBTC: {
41
+ readonly USDC: {
42
42
  name: string;
43
43
  decimals: number;
44
44
  symbol: string;
@@ -56,6 +56,13 @@ export declare const Config: {
56
56
  atomicSwapAddress: string;
57
57
  tokenAddress: string;
58
58
  };
59
+ readonly USDC: {
60
+ name: string;
61
+ decimals: number;
62
+ symbol: string;
63
+ atomicSwapAddress: string;
64
+ tokenAddress: string;
65
+ };
59
66
  readonly network: Network.LOCALNET;
60
67
  };
61
68
  readonly bitcoin_regtest: {
@@ -1146,6 +1153,20 @@ export declare const Config: {
1146
1153
  readonly token: null;
1147
1154
  };
1148
1155
  };
1156
+ readonly lightning: {
1157
+ readonly type: BlockchainType.lightning;
1158
+ readonly network: Network.MAINNET;
1159
+ readonly BTC: {
1160
+ readonly id: "lightning:btc";
1161
+ readonly name: "Bitcoin";
1162
+ readonly symbol: "BTC";
1163
+ readonly decimals: 8;
1164
+ readonly icon: "https://garden-finance.imgix.net/assets/lightning.png";
1165
+ readonly chain: "lightning";
1166
+ readonly htlc: null;
1167
+ readonly token: null;
1168
+ };
1169
+ };
1149
1170
  readonly litecoin: {
1150
1171
  readonly type: BlockchainType.litecoin;
1151
1172
  readonly network: Network.MAINNET;
@@ -1220,6 +1241,50 @@ export declare const Config: {
1220
1241
  readonly type: BlockchainType.evm;
1221
1242
  readonly network: Network.TESTNET;
1222
1243
  };
1244
+ readonly arc_testnet: {
1245
+ readonly type: BlockchainType.evm;
1246
+ readonly network: Network.TESTNET;
1247
+ };
1248
+ readonly ink_sepolia: {
1249
+ readonly type: BlockchainType.evm;
1250
+ readonly network: Network.TESTNET;
1251
+ };
1252
+ readonly ink: {
1253
+ readonly type: BlockchainType.evm;
1254
+ readonly network: Network.MAINNET;
1255
+ };
1256
+ readonly robinhood_testnet: {
1257
+ readonly type: BlockchainType.evm;
1258
+ readonly network: Network.TESTNET;
1259
+ };
1260
+ readonly robinhood: {
1261
+ readonly type: BlockchainType.evm;
1262
+ readonly network: Network.MAINNET;
1263
+ };
1264
+ readonly tempo: {
1265
+ readonly type: BlockchainType.evm;
1266
+ readonly network: Network.MAINNET;
1267
+ };
1268
+ readonly tempo_testnet: {
1269
+ readonly type: BlockchainType.evm;
1270
+ readonly network: Network.TESTNET;
1271
+ readonly pathUSD: {
1272
+ readonly id: "tempo_testnet:pathusd";
1273
+ readonly name: "Path USD";
1274
+ readonly symbol: "pathUSD";
1275
+ readonly decimals: 6;
1276
+ readonly icon: "https://cdn.garden.finance/catalog/asset/pathusd.png";
1277
+ readonly chain: "evm:42431";
1278
+ readonly htlc: {
1279
+ readonly address: "0x8c529570277427c8cd34a9d59acff73235d370e1";
1280
+ readonly schema: "evm:htlc_erc20";
1281
+ };
1282
+ readonly token: {
1283
+ readonly address: "0x20c0000000000000000000000000000000000000";
1284
+ readonly schema: "evm:erc20";
1285
+ };
1286
+ };
1287
+ };
1223
1288
  };
1224
1289
  export declare const Chains: Record<Chain, Chain>;
1225
1290
  export declare const Assets: import('./utils').AssetsType<{
@@ -1236,7 +1301,7 @@ export declare const Assets: import('./utils').AssetsType<{
1236
1301
  };
1237
1302
  readonly arbitrum_localnet: {
1238
1303
  readonly type: BlockchainType.evm;
1239
- readonly WBTC: {
1304
+ readonly USDC: {
1240
1305
  name: string;
1241
1306
  decimals: number;
1242
1307
  symbol: string;
@@ -1254,6 +1319,13 @@ export declare const Assets: import('./utils').AssetsType<{
1254
1319
  atomicSwapAddress: string;
1255
1320
  tokenAddress: string;
1256
1321
  };
1322
+ readonly USDC: {
1323
+ name: string;
1324
+ decimals: number;
1325
+ symbol: string;
1326
+ atomicSwapAddress: string;
1327
+ tokenAddress: string;
1328
+ };
1257
1329
  readonly network: Network.LOCALNET;
1258
1330
  };
1259
1331
  readonly bitcoin_regtest: {
@@ -2344,6 +2416,20 @@ export declare const Assets: import('./utils').AssetsType<{
2344
2416
  readonly token: null;
2345
2417
  };
2346
2418
  };
2419
+ readonly lightning: {
2420
+ readonly type: BlockchainType.lightning;
2421
+ readonly network: Network.MAINNET;
2422
+ readonly BTC: {
2423
+ readonly id: "lightning:btc";
2424
+ readonly name: "Bitcoin";
2425
+ readonly symbol: "BTC";
2426
+ readonly decimals: 8;
2427
+ readonly icon: "https://garden-finance.imgix.net/assets/lightning.png";
2428
+ readonly chain: "lightning";
2429
+ readonly htlc: null;
2430
+ readonly token: null;
2431
+ };
2432
+ };
2347
2433
  readonly litecoin: {
2348
2434
  readonly type: BlockchainType.litecoin;
2349
2435
  readonly network: Network.MAINNET;
@@ -2418,10 +2504,54 @@ export declare const Assets: import('./utils').AssetsType<{
2418
2504
  readonly type: BlockchainType.evm;
2419
2505
  readonly network: Network.TESTNET;
2420
2506
  };
2507
+ readonly arc_testnet: {
2508
+ readonly type: BlockchainType.evm;
2509
+ readonly network: Network.TESTNET;
2510
+ };
2511
+ readonly ink_sepolia: {
2512
+ readonly type: BlockchainType.evm;
2513
+ readonly network: Network.TESTNET;
2514
+ };
2515
+ readonly ink: {
2516
+ readonly type: BlockchainType.evm;
2517
+ readonly network: Network.MAINNET;
2518
+ };
2519
+ readonly robinhood_testnet: {
2520
+ readonly type: BlockchainType.evm;
2521
+ readonly network: Network.TESTNET;
2522
+ };
2523
+ readonly robinhood: {
2524
+ readonly type: BlockchainType.evm;
2525
+ readonly network: Network.MAINNET;
2526
+ };
2527
+ readonly tempo: {
2528
+ readonly type: BlockchainType.evm;
2529
+ readonly network: Network.MAINNET;
2530
+ };
2531
+ readonly tempo_testnet: {
2532
+ readonly type: BlockchainType.evm;
2533
+ readonly network: Network.TESTNET;
2534
+ readonly pathUSD: {
2535
+ readonly id: "tempo_testnet:pathusd";
2536
+ readonly name: "Path USD";
2537
+ readonly symbol: "pathUSD";
2538
+ readonly decimals: 6;
2539
+ readonly icon: "https://cdn.garden.finance/catalog/asset/pathusd.png";
2540
+ readonly chain: "evm:42431";
2541
+ readonly htlc: {
2542
+ readonly address: "0x8c529570277427c8cd34a9d59acff73235d370e1";
2543
+ readonly schema: "evm:htlc_erc20";
2544
+ };
2545
+ readonly token: {
2546
+ readonly address: "0x20c0000000000000000000000000000000000000";
2547
+ readonly schema: "evm:erc20";
2548
+ };
2549
+ };
2550
+ };
2421
2551
  }>;
2422
2552
  export declare const isMainnet: (chain: Chain) => boolean;
2423
2553
  export declare function is<T extends BlockchainType>(type: T): (chain: Chain) => chain is Extract<Chain, ChainsByBlockchainType<T>>;
2424
- export declare const isEVM: (chain: Chain) => chain is "arbitrum_localnet" | "ethereum_localnet" | "ethereum_sepolia" | "arbitrum_sepolia" | "base_sepolia" | "bera_testnet" | "citrea" | "citrea_testnet" | "monad_testnet" | "hyperliquid_testnet" | "bnbchain_testnet" | "alpen_testnet" | "base" | "monad" | "arbitrum" | "ethereum" | "bera" | "hyperevm" | "unichain" | "corn" | "botanix" | "bnbchain" | "core" | "megaeth" | "hyperevm_testnet" | "hyperliquid" | "hypercore" | "hypercore_testnet";
2554
+ export declare const isEVM: (chain: Chain) => chain is "arbitrum_localnet" | "ethereum_localnet" | "ethereum_sepolia" | "arbitrum_sepolia" | "base_sepolia" | "bera_testnet" | "citrea" | "citrea_testnet" | "monad_testnet" | "hyperliquid_testnet" | "bnbchain_testnet" | "alpen_testnet" | "base" | "monad" | "arbitrum" | "ethereum" | "bera" | "hyperevm" | "unichain" | "corn" | "botanix" | "bnbchain" | "core" | "megaeth" | "hyperevm_testnet" | "hyperliquid" | "hypercore" | "hypercore_testnet" | "arc_testnet" | "ink_sepolia" | "ink" | "robinhood_testnet" | "robinhood" | "tempo" | "tempo_testnet";
2425
2555
  export declare const isBitcoin: (chain: Chain) => chain is "bitcoin" | "bitcoin_regtest" | "bitcoin_testnet";
2426
2556
  export declare const isLitecoin: (chain: Chain) => chain is "litecoin_testnet" | "litecoin";
2427
2557
  export declare const isSpark: (chain: Chain) => chain is "spark_regtest" | "spark";
@@ -2431,6 +2561,7 @@ export declare const isSui: (chain: Chain) => chain is "sui" | "sui_testnet";
2431
2561
  export declare const isTron: (chain: Chain) => chain is "tron_shasta" | "tron";
2432
2562
  export declare const isXrpl: (chain: Chain) => chain is "xrpl" | "xrpl_testnet";
2433
2563
  export declare const isAlpenSignet: (chain: Chain) => chain is "alpen_signet";
2564
+ export declare const isLightning: (chain: Chain) => chain is "lightning";
2434
2565
  export declare const getBlockchainType: (chain: Chain) => BlockchainType;
2435
2566
  export declare const NATIVE_TOKENS: {
2436
2567
  evm: string;
@@ -12,7 +12,8 @@ export declare enum BlockchainType {
12
12
  litecoin = "litecoin",
13
13
  alpen_signet = "alpen_signet",
14
14
  xrpl = "xrpl",
15
- spark = "spark"
15
+ spark = "spark",
16
+ lightning = "lightning"
16
17
  }
17
18
  export type AddressSchema = {
18
19
  address: string;
@@ -48,3 +49,4 @@ export type StarknetChains = ChainsByBlockchainType<BlockchainType.starknet>;
48
49
  export type SuiChains = ChainsByBlockchainType<BlockchainType.sui>;
49
50
  export type TronChains = ChainsByBlockchainType<BlockchainType.tron>;
50
51
  export type XrplChains = ChainsByBlockchainType<BlockchainType.xrpl>;
52
+ export type LightningChains = ChainsByBlockchainType<BlockchainType.lightning>;
@@ -31,6 +31,20 @@ export declare const WBTCEthereumLocalnetAsset: {
31
31
  atomicSwapAddress: string;
32
32
  tokenAddress: string;
33
33
  };
34
+ export declare const USDCEthereumLocalnetAsset: {
35
+ name: string;
36
+ decimals: number;
37
+ symbol: string;
38
+ atomicSwapAddress: string;
39
+ tokenAddress: string;
40
+ };
41
+ export declare const USDCArbitrumLocalnetAsset: {
42
+ name: string;
43
+ decimals: number;
44
+ symbol: string;
45
+ atomicSwapAddress: string;
46
+ tokenAddress: string;
47
+ };
34
48
  export declare const STRKStarknetLocalnetAsset: {
35
49
  name: string;
36
50
  decimals: number;
@@ -7,4 +7,5 @@ export declare const OrderbookErrors: {
7
7
  INVALID_TOKEN: string;
8
8
  INVALID_AMOUNTS: string;
9
9
  RECEIVE_AMOUNT_GREATER: string;
10
+ INSUFFICIENT_LIQUIDITY: string;
10
11
  };
@@ -2,7 +2,7 @@ import { OrderStatus } from '../constants/asset';
2
2
  import { Order } from '../orderbook/orderbook.types';
3
3
 
4
4
  export declare const ParseOrderStatus: (order: Order) => OrderStatus;
5
- export declare const isDeadlinePassed: (date: Date, tillHours?: number) => boolean;
5
+ export declare const isDeadlinePassed: (deadline: EpochTimeStamp) => boolean;
6
6
  export declare const isCompleted: (order: Order) => boolean;
7
7
  export declare enum OrderAction {
8
8
  Initiate = "Initiate",
@@ -60,6 +60,7 @@ export type CreateOrderRequest = {
60
60
  amount: string;
61
61
  };
62
62
  solver_id: string;
63
+ quote_id?: string;
63
64
  slippage?: number;
64
65
  secret_hash?: string;
65
66
  nonce: number;
@@ -82,6 +83,7 @@ export type Swap = {
82
83
  initiate_tx_hash: string;
83
84
  redeem_tx_hash: string;
84
85
  refund_tx_hash: string;
86
+ deposit_tx_hash: string;
85
87
  initiate_block_number: string | null;
86
88
  redeem_block_number: string | null;
87
89
  refund_block_number: string | null;
@@ -104,6 +106,7 @@ export type Order = {
104
106
  affiliate_fees: AffiliateFeeV2[];
105
107
  integrator: string;
106
108
  version: string;
109
+ deadline: EpochTimeStamp;
107
110
  };
108
111
  export type OrderWithStatus = Order & {
109
112
  status: OrderStatus;
@@ -187,6 +190,14 @@ export type EvmOrderResponse = WithTypedData<BaseCreateOrderResponse & {
187
190
  approval_transaction: EVMTransaction | null;
188
191
  initiate_transaction: EVMTransaction;
189
192
  }, EvmTypedData>;
193
+ export type EvmOrderResponseWithCoreTransfer = EvmOrderResponse & {
194
+ core_to_evm_transfer: {
195
+ to: string;
196
+ value: string;
197
+ data: string;
198
+ gas_limit: string;
199
+ } | null;
200
+ };
190
201
  export type StarknetOrderResponse = WithTypedData<BaseCreateOrderResponse & {
191
202
  approval_transaction: StarknetCall;
192
203
  initiate_transaction: StarknetCall;
@@ -209,6 +220,10 @@ export type XrplOrderResponse = BaseCreateOrderResponse & {
209
220
  TransactionType: string;
210
221
  };
211
222
  };
223
+ export type LightningOrderResponse = BaseCreateOrderResponse & {
224
+ to: string;
225
+ amount: number;
226
+ };
212
227
  type OrderResponseMap = {
213
228
  [BlockchainType.evm]: EvmOrderResponse;
214
229
  [BlockchainType.bitcoin]: BitcoinOrderResponse;
@@ -220,6 +235,7 @@ type OrderResponseMap = {
220
235
  [BlockchainType.alpen_signet]: BitcoinOrderResponse;
221
236
  [BlockchainType.xrpl]: XrplOrderResponse;
222
237
  [BlockchainType.spark]: BitcoinOrderResponse;
238
+ [BlockchainType.lightning]: LightningOrderResponse;
223
239
  };
224
240
  export type CreateOrderResponse<T extends BlockchainType = BlockchainType> = {
225
241
  type: T;
@@ -1,5 +1,5 @@
1
1
  import { Url } from '@gardenfi/utils';
2
- import { BaseCreateOrderResponse, CreateOrderResponse, Order, StarknetOrderResponse, EvmOrderResponse, BitcoinOrderResponse, SolanaOrderResponse, SuiOrderResponse, TronOrderResponse, XrplOrderResponse } from './orderbook/orderbook.types';
2
+ import { BaseCreateOrderResponse, CreateOrderResponse, Order, StarknetOrderResponse, EvmOrderResponse, BitcoinOrderResponse, SolanaOrderResponse, SuiOrderResponse, TronOrderResponse, XrplOrderResponse, LightningOrderResponse } from './orderbook/orderbook.types';
3
3
  import { BlockchainType } from './constants/asset.types';
4
4
 
5
5
  /**
@@ -40,6 +40,10 @@ export declare const isTronOrderResponse: OrderResponseTypeGuard<TronOrderRespon
40
40
  * Type guard for Xrpl order responses
41
41
  */
42
42
  export declare const isXrplOrderResponse: OrderResponseTypeGuard<XrplOrderResponse>;
43
+ /**
44
+ * Type guard for Lightning order responses
45
+ */
46
+ export declare const isLightningOrderResponse: OrderResponseTypeGuard<LightningOrderResponse>;
43
47
  /**
44
48
  * Type guard for Order objects (matched orders)
45
49
  */
@@ -48,7 +52,7 @@ export declare const isOrder: OrderResponseTypeGuard<Order>;
48
52
  * Discriminated union type guard that determines the specific order response type
49
53
  * and returns the appropriate typed response
50
54
  */
51
- export declare function discriminateOrderResponse(response: BaseCreateOrderResponse): CreateOrderResponse<BlockchainType.evm> | CreateOrderResponse<BlockchainType.starknet> | CreateOrderResponse<BlockchainType.bitcoin> | CreateOrderResponse<BlockchainType.solana> | CreateOrderResponse<BlockchainType.sui> | CreateOrderResponse<BlockchainType.xrpl> | null;
55
+ export declare function discriminateOrderResponse(response: BaseCreateOrderResponse): CreateOrderResponse<BlockchainType.evm> | CreateOrderResponse<BlockchainType.starknet> | CreateOrderResponse<BlockchainType.bitcoin> | CreateOrderResponse<BlockchainType.solana> | CreateOrderResponse<BlockchainType.sui> | CreateOrderResponse<BlockchainType.xrpl> | CreateOrderResponse<BlockchainType.lightning> | null;
52
56
  /**
53
57
  * Utility function to get the blockchain type from an order response
54
58
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/orderbook",
3
- "version": "3.1.3-beta.2",
3
+ "version": "3.1.3-beta.20",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@coral-xyz/anchor": "^0.31.1",
31
- "@gardenfi/utils": "3.1.1",
31
+ "@gardenfi/utils": "3.1.1-beta.18",
32
32
  "bufferutil": "^4.0.8",
33
33
  "node-cache": "^5.1.2",
34
34
  "siwe": "^2.1.4",