@gardenfi/orderbook 0.2.0-beta.23 → 0.2.0-beta.25
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 +1 -1
- package/dist/index.js +16 -14
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +28 -10
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +37 -10
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/asset.d.ts +5 -2
- package/dist/src/lib/constants.d.ts +16 -3
- package/package.json +1 -1
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"),
|
|
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
|
|
2
|
-
import { BlockchainType as
|
|
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
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
13
|
+
B as SupportedAssets,
|
|
14
|
+
n as TimeLocks,
|
|
14
15
|
b as WBTCArbitrumLocalnetAsset,
|
|
15
16
|
d as WBTCEthereumLocalnetAsset,
|
|
16
17
|
f as bitcoinRegtestAsset,
|
|
17
|
-
|
|
18
|
-
p as
|
|
19
|
-
a as
|
|
20
|
-
|
|
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
|
|
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
|
|
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
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
35
|
+
i as BlockchainType,
|
|
20
36
|
t as Chains,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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"},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:{
|
|
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,13 +48,13 @@ const s = {
|
|
|
48
48
|
chain: e.ethereum_localnet,
|
|
49
49
|
atomicSwapAddress: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
|
|
50
50
|
tokenAddress: "0x5FbDB2315678afecb367f032d93F642f64180aa3"
|
|
51
|
-
},
|
|
51
|
+
}, o = {
|
|
52
52
|
localnet: {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9: a,
|
|
54
|
+
ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512: t
|
|
55
55
|
},
|
|
56
56
|
testnet: {
|
|
57
|
-
|
|
57
|
+
bitcoin_testnet_primary: {
|
|
58
58
|
name: "BTC",
|
|
59
59
|
decimals: 8,
|
|
60
60
|
symbol: "BTC",
|
|
@@ -62,7 +62,7 @@ const s = {
|
|
|
62
62
|
tokenAddress: "primary",
|
|
63
63
|
atomicSwapAddress: "primary"
|
|
64
64
|
},
|
|
65
|
-
|
|
65
|
+
ethereum_sepolia_0x3c6a17b8cd92976d1d91e491c93c98cd81998265: {
|
|
66
66
|
name: "Wrapped Bitcoin",
|
|
67
67
|
decimals: 8,
|
|
68
68
|
symbol: "WBTC",
|
|
@@ -71,7 +71,7 @@ const s = {
|
|
|
71
71
|
tokenAddress: "0x4D68da063577F98C55166c7AF6955cF58a97b20A",
|
|
72
72
|
atomicSwapAddress: "0x3C6a17b8cD92976D1D91E491c93c98cd81998265"
|
|
73
73
|
},
|
|
74
|
-
|
|
74
|
+
arbitrum_sepolia_0x1cd0bbd55fd66b4c5f7dfe434efd009c09e628d1: {
|
|
75
75
|
name: "Wrapped Bitcoin",
|
|
76
76
|
decimals: 8,
|
|
77
77
|
symbol: "WBTC",
|
|
@@ -80,7 +80,7 @@ const s = {
|
|
|
80
80
|
tokenAddress: "0x00ab86f54F436CfE15253845F139955ae0C00bAf",
|
|
81
81
|
atomicSwapAddress: "0x1cd0bBd55fD66B4C5F7dfE434eFD009C09e628d1"
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
arbitrum_sepolia_0xd5fedb4cecb0f1d32788a190d9eb47d94d23ee4e: {
|
|
84
84
|
name: "Seed",
|
|
85
85
|
decimals: 18,
|
|
86
86
|
symbol: "SEED",
|
|
@@ -89,7 +89,7 @@ const s = {
|
|
|
89
89
|
tokenAddress: "0x13DCec0762EcC5E666c207ab44Dc768e5e33070F",
|
|
90
90
|
atomicSwapAddress: "0xD5FeDb4ceCB0F1D32788a190d9EB47D94D23eE4e"
|
|
91
91
|
},
|
|
92
|
-
|
|
92
|
+
base_sepolia_0x00ab86f54f436cfe15253845f139955ae0c00baf: {
|
|
93
93
|
name: "Wrapped Bitcoin",
|
|
94
94
|
decimals: 8,
|
|
95
95
|
symbol: "WBTC",
|
|
@@ -99,12 +99,39 @@ const s = {
|
|
|
99
99
|
atomicSwapAddress: "0x00ab86f54F436CfE15253845F139955ae0C00bAf"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
mainnet: {
|
|
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
|
+
}
|
|
129
|
+
}
|
|
103
130
|
};
|
|
104
131
|
export {
|
|
105
132
|
s as ArbitrumLocalnet,
|
|
106
133
|
i as EthereumLocalnet,
|
|
107
|
-
|
|
134
|
+
o as SupportedAssets,
|
|
108
135
|
a as WBTCArbitrumLocalnetAsset,
|
|
109
136
|
t as WBTCEthereumLocalnetAsset,
|
|
110
137
|
n as bitcoinRegtestAsset
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/src/lib/asset.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from 'viem';
|
|
2
|
-
import { Asset
|
|
2
|
+
import { Asset } from './asset';
|
|
3
3
|
|
|
4
4
|
export declare const ArbitrumLocalnet: Chain;
|
|
5
5
|
export declare const EthereumLocalnet: Chain;
|
|
@@ -7,8 +7,21 @@ export declare const bitcoinRegtestAsset: Asset;
|
|
|
7
7
|
export declare const WBTCArbitrumLocalnetAsset: Asset;
|
|
8
8
|
export declare const WBTCEthereumLocalnetAsset: Asset;
|
|
9
9
|
type SupportedAssets = {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
localnet: {
|
|
11
|
+
arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9: Asset;
|
|
12
|
+
ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512: Asset;
|
|
13
|
+
};
|
|
14
|
+
testnet: {
|
|
15
|
+
bitcoin_testnet_primary: Asset;
|
|
16
|
+
ethereum_sepolia_0x3c6a17b8cd92976d1d91e491c93c98cd81998265: Asset;
|
|
17
|
+
arbitrum_sepolia_0x1cd0bbd55fd66b4c5f7dfe434efd009c09e628d1: Asset;
|
|
18
|
+
arbitrum_sepolia_0xd5fedb4cecb0f1d32788a190d9eb47d94d23ee4e: Asset;
|
|
19
|
+
base_sepolia_0x00ab86f54f436cfe15253845f139955ae0c00baf: Asset;
|
|
20
|
+
};
|
|
21
|
+
mainnet: {
|
|
22
|
+
bitcoin_primary: Asset;
|
|
23
|
+
base_0x13dcec0762ecc5e666c207ab44dc768e5e33070f: Asset;
|
|
24
|
+
base_0x00ab86f54f436cfe15253845f139955ae0c00baf: Asset;
|
|
12
25
|
};
|
|
13
26
|
};
|
|
14
27
|
export declare const SupportedAssets: SupportedAssets;
|