@gardenfi/orderbook 0.2.0-beta.24 → 0.2.0-beta.26

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 CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index2.cjs"),e=require("./index3.cjs"),s=require("./index4.cjs"),t=require("./index5.cjs");exports.Orderbook=r.Orderbook;exports.BlockchainType=e.BlockchainType;exports.Chains=e.Chains;exports.NetworkType=e.NetworkType;exports.getBlockchainType=e.getBlockchainType;exports.isBitcoin=e.isBitcoin;exports.isEVM=e.isEVM;exports.isMainnet=e.isMainnet;exports.OrdersProvider=s.OrdersProvider;exports.ArbitrumLocalnet=t.ArbitrumLocalnet;exports.EthereumLocalnet=t.EthereumLocalnet;exports.SupportedAssets=t.SupportedAssets;exports.WBTCArbitrumLocalnetAsset=t.WBTCArbitrumLocalnetAsset;exports.WBTCEthereumLocalnetAsset=t.WBTCEthereumLocalnetAsset;exports.bitcoinRegtestAsset=t.bitcoinRegtestAsset;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index2.cjs"),e=require("./index3.cjs"),o=require("./index4.cjs"),t=require("./index5.cjs");exports.Orderbook=r.Orderbook;exports.BlockchainType=e.BlockchainType;exports.Chains=e.Chains;exports.NetworkType=e.NetworkType;exports.TimeLocks=e.TimeLocks;exports.getBlockchainType=e.getBlockchainType;exports.getTimeLock=e.getTimeLock;exports.isBitcoin=e.isBitcoin;exports.isEVM=e.isEVM;exports.isMainnet=e.isMainnet;exports.OrdersProvider=o.OrdersProvider;exports.ArbitrumLocalnet=t.ArbitrumLocalnet;exports.EthereumLocalnet=t.EthereumLocalnet;exports.SupportedAssets=t.SupportedAssets;exports.WBTCArbitrumLocalnetAsset=t.WBTCArbitrumLocalnetAsset;exports.WBTCEthereumLocalnetAsset=t.WBTCEthereumLocalnetAsset;exports.bitcoinRegtestAsset=t.bitcoinRegtestAsset;
package/dist/index.js CHANGED
@@ -1,21 +1,23 @@
1
- import { Orderbook as r } from "./index2.js";
2
- import { BlockchainType as s, Chains as i, NetworkType as n, getBlockchainType as c, isBitcoin as p, isEVM as a, isMainnet as m } from "./index3.js";
1
+ import { Orderbook as o } from "./index2.js";
2
+ import { BlockchainType as i, Chains as s, NetworkType as c, TimeLocks as n, getBlockchainType as m, getTimeLock as p, isBitcoin as a, isEVM as T, isMainnet as k } from "./index3.js";
3
3
  import { OrdersProvider as A } from "./index4.js";
4
- import { ArbitrumLocalnet as u, EthereumLocalnet as B, SupportedAssets as T, WBTCArbitrumLocalnetAsset as b, WBTCEthereumLocalnetAsset as d, bitcoinRegtestAsset as f } from "./index5.js";
4
+ import { ArbitrumLocalnet as h, EthereumLocalnet as u, SupportedAssets as B, WBTCArbitrumLocalnetAsset as b, WBTCEthereumLocalnetAsset as d, bitcoinRegtestAsset as f } from "./index5.js";
5
5
  export {
6
- u as ArbitrumLocalnet,
7
- s as BlockchainType,
8
- i as Chains,
9
- B as EthereumLocalnet,
10
- n as NetworkType,
11
- r as Orderbook,
6
+ h as ArbitrumLocalnet,
7
+ i as BlockchainType,
8
+ s as Chains,
9
+ u as EthereumLocalnet,
10
+ c as NetworkType,
11
+ o as Orderbook,
12
12
  A as OrdersProvider,
13
- T as SupportedAssets,
13
+ B as SupportedAssets,
14
+ n as TimeLocks,
14
15
  b as WBTCArbitrumLocalnetAsset,
15
16
  d as WBTCEthereumLocalnetAsset,
16
17
  f as bitcoinRegtestAsset,
17
- c as getBlockchainType,
18
- p as isBitcoin,
19
- a as isEVM,
20
- m as isMainnet
18
+ m as getBlockchainType,
19
+ p as getTimeLock,
20
+ a as isBitcoin,
21
+ T as isEVM,
22
+ k as isMainnet
21
23
  };
package/dist/index3.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(e=>(e.Bitcoin="Bitcoin",e.EVM="EVM",e))(r||{}),i=(e=>(e.mainnet="mainnet",e.testnet="testnet",e.localnet="localnet",e))(i||{});const t={bitcoin:"bitcoin",bitcoin_testnet:"bitcoin_testnet",bitcoin_regtest:"bitcoin_regtest",ethereum:"ethereum",ethereum_arbitrum:"ethereum_arbitrum",ethereum_sepolia:"ethereum_sepolia",arbitrum_localnet:"arbitrum_localnet",arbitrum_sepolia:"arbitrum_sepolia",ethereum_localnet:"ethereum_localnet",base_sepolia:"base_sepolia"},s=e=>!(e===t.ethereum_sepolia||e===t.bitcoin_testnet||e===t.bitcoin_regtest||e===t.arbitrum_localnet||e===t.ethereum_localnet||e===t.arbitrum_sepolia||e===t.base_sepolia),o=e=>e===t.bitcoin||e===t.bitcoin_testnet||e===t.bitcoin_regtest,n=e=>e===t.ethereum||e===t.ethereum_arbitrum||e===t.ethereum_sepolia||e===t.ethereum_localnet||e===t.arbitrum_localnet||e===t.arbitrum_sepolia||e===t.base_sepolia,l=e=>{if(o(e))return"Bitcoin";if(n(e))return"EVM";throw new Error("Invalid or unsupported chain")};exports.BlockchainType=r;exports.Chains=t;exports.NetworkType=i;exports.getBlockchainType=l;exports.isBitcoin=o;exports.isEVM=n;exports.isMainnet=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i=(e=>(e.Bitcoin="Bitcoin",e.EVM="EVM",e))(i||{}),o=(e=>(e.mainnet="mainnet",e.testnet="testnet",e.localnet="localnet",e))(o||{});const t={bitcoin:"bitcoin",bitcoin_testnet:"bitcoin_testnet",bitcoin_regtest:"bitcoin_regtest",ethereum:"ethereum",base:"base",ethereum_arbitrum:"ethereum_arbitrum",ethereum_sepolia:"ethereum_sepolia",arbitrum_localnet:"arbitrum_localnet",arbitrum_sepolia:"arbitrum_sepolia",ethereum_localnet:"ethereum_localnet",base_sepolia:"base_sepolia"},a=e=>!(e===t.ethereum_sepolia||e===t.bitcoin_testnet||e===t.bitcoin_regtest||e===t.arbitrum_localnet||e===t.ethereum_localnet||e===t.arbitrum_sepolia||e===t.base_sepolia),n=e=>e===t.bitcoin||e===t.bitcoin_testnet||e===t.bitcoin_regtest,s=e=>e===t.ethereum||e===t.ethereum_arbitrum||e===t.ethereum_sepolia||e===t.ethereum_localnet||e===t.arbitrum_localnet||e===t.arbitrum_sepolia||e===t.base_sepolia||e===t.base,r={[t.bitcoin]:288,[t.bitcoin_testnet]:288,[t.bitcoin_regtest]:288,[t.ethereum]:14400,[t.ethereum_arbitrum]:14400,[t.ethereum_sepolia]:14400,[t.arbitrum_localnet]:14400,[t.arbitrum_sepolia]:14400,[t.ethereum_localnet]:14400,[t.base_sepolia]:14400,[t.base]:86400},u=e=>{if(n(e))return"Bitcoin";if(s(e))return"EVM";throw new Error("Invalid or unsupported chain")},l=e=>{if(!r[e])throw new Error("Invalid or unsupported chain");return r[e]};exports.BlockchainType=i;exports.Chains=t;exports.NetworkType=o;exports.TimeLocks=r;exports.getBlockchainType=u;exports.getTimeLock=l;exports.isBitcoin=n;exports.isEVM=s;exports.isMainnet=a;
package/dist/index3.js CHANGED
@@ -1,26 +1,44 @@
1
- var r = /* @__PURE__ */ ((e) => (e.Bitcoin = "Bitcoin", e.EVM = "EVM", e))(r || {}), i = /* @__PURE__ */ ((e) => (e.mainnet = "mainnet", e.testnet = "testnet", e.localnet = "localnet", e))(i || {});
1
+ var i = /* @__PURE__ */ ((e) => (e.Bitcoin = "Bitcoin", e.EVM = "EVM", e))(i || {}), o = /* @__PURE__ */ ((e) => (e.mainnet = "mainnet", e.testnet = "testnet", e.localnet = "localnet", e))(o || {});
2
2
  const t = {
3
3
  bitcoin: "bitcoin",
4
4
  bitcoin_testnet: "bitcoin_testnet",
5
5
  bitcoin_regtest: "bitcoin_regtest",
6
6
  ethereum: "ethereum",
7
+ base: "base",
7
8
  ethereum_arbitrum: "ethereum_arbitrum",
8
9
  ethereum_sepolia: "ethereum_sepolia",
9
10
  arbitrum_localnet: "arbitrum_localnet",
10
11
  arbitrum_sepolia: "arbitrum_sepolia",
11
12
  ethereum_localnet: "ethereum_localnet",
12
13
  base_sepolia: "base_sepolia"
13
- }, s = (e) => !(e === t.ethereum_sepolia || e === t.bitcoin_testnet || e === t.bitcoin_regtest || e === t.arbitrum_localnet || e === t.ethereum_localnet || e === t.arbitrum_sepolia || e === t.base_sepolia), o = (e) => e === t.bitcoin || e === t.bitcoin_testnet || e === t.bitcoin_regtest, n = (e) => e === t.ethereum || e === t.ethereum_arbitrum || e === t.ethereum_sepolia || e === t.ethereum_localnet || e === t.arbitrum_localnet || e === t.arbitrum_sepolia || e === t.base_sepolia, u = (e) => {
14
- if (o(e)) return "Bitcoin";
15
- if (n(e)) return "EVM";
14
+ }, u = (e) => !(e === t.ethereum_sepolia || e === t.bitcoin_testnet || e === t.bitcoin_regtest || e === t.arbitrum_localnet || e === t.ethereum_localnet || e === t.arbitrum_sepolia || e === t.base_sepolia), n = (e) => e === t.bitcoin || e === t.bitcoin_testnet || e === t.bitcoin_regtest, s = (e) => e === t.ethereum || e === t.ethereum_arbitrum || e === t.ethereum_sepolia || e === t.ethereum_localnet || e === t.arbitrum_localnet || e === t.arbitrum_sepolia || e === t.base_sepolia || e === t.base, r = {
15
+ [t.bitcoin]: 288,
16
+ [t.bitcoin_testnet]: 288,
17
+ [t.bitcoin_regtest]: 288,
18
+ [t.ethereum]: 14400,
19
+ [t.ethereum_arbitrum]: 14400,
20
+ [t.ethereum_sepolia]: 14400,
21
+ [t.arbitrum_localnet]: 14400,
22
+ [t.arbitrum_sepolia]: 14400,
23
+ [t.ethereum_localnet]: 14400,
24
+ [t.base_sepolia]: 14400,
25
+ [t.base]: 86400
26
+ }, a = (e) => {
27
+ if (n(e)) return "Bitcoin";
28
+ if (s(e)) return "EVM";
16
29
  throw new Error("Invalid or unsupported chain");
30
+ }, l = (e) => {
31
+ if (!r[e]) throw new Error("Invalid or unsupported chain");
32
+ return r[e];
17
33
  };
18
34
  export {
19
- r as BlockchainType,
35
+ i as BlockchainType,
20
36
  t as Chains,
21
- i as NetworkType,
22
- u as getBlockchainType,
23
- o as isBitcoin,
24
- n as isEVM,
25
- s as isMainnet
37
+ o as NetworkType,
38
+ r as TimeLocks,
39
+ a as getBlockchainType,
40
+ l as getTimeLock,
41
+ n as isBitcoin,
42
+ s as isEVM,
43
+ u as isMainnet
26
44
  };
package/dist/index5.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index3.cjs"),s={id:31338,name:"Arbitrum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8546/"]}},testnet:!0},c={id:31337,name:"Ethereum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8545/"]}},testnet:!0},i={name:"Bitcoin Regtest",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin_regtest,atomicSwapAddress:"primary",tokenAddress:"primary"},t={name:"WBTC Arbitrum Localnet",decimals:8,symbol:"WBTC",chain:e.Chains.arbitrum_localnet,atomicSwapAddress:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",tokenAddress:"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"},a={name:"WBTC Ethereum Localnet",decimals:8,symbol:"WBTC",chain:e.Chains.ethereum_localnet,atomicSwapAddress:"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",tokenAddress:"0x5FbDB2315678afecb367f032d93F642f64180aa3"},n={localnet:{arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9:t,ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512:a},testnet:{bitcoin_testnet_primary:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin_testnet,tokenAddress:"primary",atomicSwapAddress:"primary"},ethereum_sepolia_0x3c6a17b8cd92976d1d91e491c93c98cd81998265:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.ethereum_sepolia,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x4D68da063577F98C55166c7AF6955cF58a97b20A",atomicSwapAddress:"0x3C6a17b8cD92976D1D91E491c93c98cd81998265"},arbitrum_sepolia_0x1cd0bbd55fd66b4c5f7dfe434efd009c09e628d1:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",chain:e.Chains.arbitrum_sepolia,tokenAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf",atomicSwapAddress:"0x1cd0bBd55fD66B4C5F7dfE434eFD009C09e628d1"},arbitrum_sepolia_0xd5fedb4cecb0f1d32788a190d9eb47d94d23ee4e:{name:"Seed",decimals:18,symbol:"SEED",chain:e.Chains.arbitrum_sepolia,logo:"https://garden-finance.imgix.net/token-images/seed.svg",tokenAddress:"0x13DCec0762EcC5E666c207ab44Dc768e5e33070F",atomicSwapAddress:"0xD5FeDb4ceCB0F1D32788a190d9EB47D94D23eE4e"},base_sepolia_0x00ab86f54f436cfe15253845f139955ae0c00baf:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.base_sepolia,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x13DCec0762EcC5E666c207ab44Dc768e5e33070F",atomicSwapAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf"}}};exports.ArbitrumLocalnet=s;exports.EthereumLocalnet=c;exports.SupportedAssets=n;exports.WBTCArbitrumLocalnetAsset=t;exports.WBTCEthereumLocalnetAsset=a;exports.bitcoinRegtestAsset=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index3.cjs"),s={id:31338,name:"Arbitrum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8546/"]}},testnet:!0},c={id:31337,name:"Ethereum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8545/"]}},testnet:!0},i={name:"Bitcoin Regtest",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin_regtest,atomicSwapAddress:"primary",tokenAddress:"primary"},a={name:"WBTC Arbitrum Localnet",decimals:8,symbol:"WBTC",chain:e.Chains.arbitrum_localnet,atomicSwapAddress:"0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",tokenAddress:"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"},t={name:"WBTC Ethereum Localnet",decimals:8,symbol:"WBTC",chain:e.Chains.ethereum_localnet,atomicSwapAddress:"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",tokenAddress:"0x5FbDB2315678afecb367f032d93F642f64180aa3"},n={localnet:{arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9:a,ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512:t},testnet:{bitcoin_testnet_primary:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin_testnet,tokenAddress:"primary",atomicSwapAddress:"primary"},ethereum_sepolia_0x3c6a17b8cd92976d1d91e491c93c98cd81998265:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.ethereum_sepolia,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x4D68da063577F98C55166c7AF6955cF58a97b20A",atomicSwapAddress:"0x3C6a17b8cD92976D1D91E491c93c98cd81998265"},arbitrum_sepolia_0x1cd0bbd55fd66b4c5f7dfe434efd009c09e628d1:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",chain:e.Chains.arbitrum_sepolia,tokenAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf",atomicSwapAddress:"0x1cd0bBd55fD66B4C5F7dfE434eFD009C09e628d1"},arbitrum_sepolia_0xd5fedb4cecb0f1d32788a190d9eb47d94d23ee4e:{name:"Seed",decimals:18,symbol:"SEED",chain:e.Chains.arbitrum_sepolia,logo:"https://garden-finance.imgix.net/token-images/seed.svg",tokenAddress:"0x13DCec0762EcC5E666c207ab44Dc768e5e33070F",atomicSwapAddress:"0xD5FeDb4ceCB0F1D32788a190d9EB47D94D23eE4e"},base_sepolia_0x00ab86f54f436cfe15253845f139955ae0c00baf:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.base_sepolia,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x13DCec0762EcC5E666c207ab44Dc768e5e33070F",atomicSwapAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf"}},mainnet:{bitcoin_primary:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin,tokenAddress:"primary",atomicSwapAddress:"primary"},base_0x13dcec0762ecc5e666c207ab44dc768e5e33070f:{name:"Coinbase Bitcoin",decimals:8,symbol:"cbBTC",chain:e.Chains.base,logo:"https://coin-images.coingecko.com/coins/images/51336/large/cbbtc.png?1730814747",tokenAddress:"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",atomicSwapAddress:"0x13DCec0762EcC5E666c207ab44Dc768e5e33070F"},base_0x00ab86f54f436cfe15253845f139955ae0c00baf:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.base,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",atomicSwapAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf"}}};exports.ArbitrumLocalnet=s;exports.EthereumLocalnet=c;exports.SupportedAssets=n;exports.WBTCArbitrumLocalnetAsset=a;exports.WBTCEthereumLocalnetAsset=t;exports.bitcoinRegtestAsset=i;
package/dist/index5.js CHANGED
@@ -48,7 +48,7 @@ const s = {
48
48
  chain: e.ethereum_localnet,
49
49
  atomicSwapAddress: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
50
50
  tokenAddress: "0x5FbDB2315678afecb367f032d93F642f64180aa3"
51
- }, d = {
51
+ }, o = {
52
52
  localnet: {
53
53
  arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9: a,
54
54
  ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512: t
@@ -98,12 +98,40 @@ const s = {
98
98
  tokenAddress: "0x13DCec0762EcC5E666c207ab44Dc768e5e33070F",
99
99
  atomicSwapAddress: "0x00ab86f54F436CfE15253845F139955ae0C00bAf"
100
100
  }
101
+ },
102
+ mainnet: {
103
+ bitcoin_primary: {
104
+ name: "BTC",
105
+ decimals: 8,
106
+ symbol: "BTC",
107
+ chain: e.bitcoin,
108
+ tokenAddress: "primary",
109
+ atomicSwapAddress: "primary"
110
+ },
111
+ base_0x13dcec0762ecc5e666c207ab44dc768e5e33070f: {
112
+ name: "Coinbase Bitcoin",
113
+ decimals: 8,
114
+ symbol: "cbBTC",
115
+ chain: e.base,
116
+ logo: "https://coin-images.coingecko.com/coins/images/51336/large/cbbtc.png?1730814747",
117
+ tokenAddress: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
118
+ atomicSwapAddress: "0x13DCec0762EcC5E666c207ab44Dc768e5e33070F"
119
+ },
120
+ base_0x00ab86f54f436cfe15253845f139955ae0c00baf: {
121
+ name: "USD Coin",
122
+ decimals: 6,
123
+ symbol: "USDC",
124
+ chain: e.base,
125
+ logo: "https://garden-finance.imgix.net/token-images/usdc.svg",
126
+ tokenAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
127
+ atomicSwapAddress: "0x00ab86f54F436CfE15253845F139955ae0C00bAf"
128
+ }
101
129
  }
102
130
  };
103
131
  export {
104
132
  s as ArbitrumLocalnet,
105
133
  i as EthereumLocalnet,
106
- d as SupportedAssets,
134
+ o as SupportedAssets,
107
135
  a as WBTCArbitrumLocalnetAsset,
108
136
  t as WBTCEthereumLocalnetAsset,
109
137
  n as bitcoinRegtestAsset
@@ -1,7 +1,7 @@
1
1
  export { Orderbook } from './lib/orderbook/orderbook';
2
2
  export type * from './lib/orderbook/orderbook.types';
3
3
  export type { Chain, EvmChain, Asset } from './lib/asset';
4
- export { Chains, BlockchainType, isMainnet, isBitcoin, isEVM, getBlockchainType, NetworkType, } from './lib/asset';
4
+ export { Chains, BlockchainType, isMainnet, isBitcoin, isEVM, getBlockchainType, NetworkType, TimeLocks, getTimeLock, } from './lib/asset';
5
5
  export { OrdersProvider } from './lib/orders/ordersProvider';
6
6
  export type { IOrderProvider } from './lib/orders/orders.types';
7
7
  export { WBTCArbitrumLocalnetAsset, WBTCEthereumLocalnetAsset, ArbitrumLocalnet, EthereumLocalnet, bitcoinRegtestAsset, SupportedAssets, } from './lib/constants';
@@ -34,6 +34,7 @@ export declare const Chains: {
34
34
  readonly bitcoin_testnet: "bitcoin_testnet";
35
35
  readonly bitcoin_regtest: "bitcoin_regtest";
36
36
  readonly ethereum: "ethereum";
37
+ readonly base: "base";
37
38
  readonly ethereum_arbitrum: "ethereum_arbitrum";
38
39
  readonly ethereum_sepolia: "ethereum_sepolia";
39
40
  readonly arbitrum_localnet: "arbitrum_localnet";
@@ -43,7 +44,9 @@ export declare const Chains: {
43
44
  };
44
45
  export type Chain = keyof typeof Chains;
45
46
  export type EvmChain = keyof Omit<typeof Chains, 'bitcoin' | 'bitcoin_testnet' | 'bitcoin_regtest'>;
46
- export declare const isMainnet: (chain: Chain) => chain is "bitcoin" | "ethereum" | "ethereum_arbitrum";
47
+ export declare const isMainnet: (chain: Chain) => chain is "bitcoin" | "ethereum" | "base" | "ethereum_arbitrum";
47
48
  export declare const isBitcoin: (chain: Chain) => chain is "bitcoin" | "bitcoin_testnet" | "bitcoin_regtest";
48
- export declare const isEVM: (chain: Chain) => chain is "ethereum" | "ethereum_arbitrum" | "ethereum_sepolia" | "arbitrum_localnet" | "arbitrum_sepolia" | "ethereum_localnet" | "base_sepolia";
49
+ export declare const isEVM: (chain: Chain) => chain is "ethereum" | "base" | "ethereum_arbitrum" | "ethereum_sepolia" | "arbitrum_localnet" | "arbitrum_sepolia" | "ethereum_localnet" | "base_sepolia";
50
+ export declare const TimeLocks: Record<Chain, number>;
49
51
  export declare const getBlockchainType: (chain: Chain) => BlockchainType;
52
+ export declare const getTimeLock: (chain: Chain) => number;
@@ -18,6 +18,11 @@ type SupportedAssets = {
18
18
  arbitrum_sepolia_0xd5fedb4cecb0f1d32788a190d9eb47d94d23ee4e: Asset;
19
19
  base_sepolia_0x00ab86f54f436cfe15253845f139955ae0c00baf: Asset;
20
20
  };
21
+ mainnet: {
22
+ bitcoin_primary: Asset;
23
+ base_0x13dcec0762ecc5e666c207ab44dc768e5e33070f: Asset;
24
+ base_0x00ab86f54f436cfe15253845f139955ae0c00baf: Asset;
25
+ };
21
26
  };
22
27
  export declare const SupportedAssets: SupportedAssets;
23
28
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/orderbook",
3
- "version": "0.2.0-beta.24",
3
+ "version": "0.2.0-beta.26",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",