@gardenfi/orderbook 0.2.0-beta.37 → 0.2.0-beta.39
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/index3.cjs +1 -1
- package/dist/index3.js +18 -18
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +67 -13
- package/dist/src/lib/asset.d.ts +3 -3
- package/dist/src/lib/constants.d.ts +8 -2
- package/package.json +1 -1
package/dist/index3.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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",
|
|
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",arbitrum:"arbitrum",ethereum_sepolia:"ethereum_sepolia",arbitrum_localnet:"arbitrum_localnet",arbitrum_sepolia:"arbitrum_sepolia",ethereum_localnet:"ethereum_localnet",base_sepolia:"base_sepolia",bera_testnet:"bera_testnet"},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||e===t.bera_testnet),s=e=>e===t.bitcoin||e===t.bitcoin_testnet||e===t.bitcoin_regtest,n=e=>e===t.ethereum||e===t.arbitrum||e===t.ethereum_sepolia||e===t.ethereum_localnet||e===t.arbitrum_localnet||e===t.arbitrum_sepolia||e===t.base_sepolia||e===t.base||e===t.bera_testnet,r={[t.bitcoin]:144,[t.bitcoin_testnet]:144,[t.bitcoin_regtest]:144,[t.ethereum]:7200,[t.arbitrum]:7200,[t.ethereum_sepolia]:7200,[t.arbitrum_localnet]:7200,[t.arbitrum_sepolia]:7200,[t.ethereum_localnet]:7200,[t.base_sepolia]:7200,[t.base]:43200,[t.bera_testnet]:28800},l=e=>{if(s(e))return"Bitcoin";if(n(e))return"EVM";throw new Error("Invalid or unsupported chain")},b=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=l;exports.getTimeLock=b;exports.isBitcoin=s;exports.isEVM=n;exports.isMainnet=a;
|
package/dist/index3.js
CHANGED
|
@@ -5,31 +5,31 @@ const t = {
|
|
|
5
5
|
bitcoin_regtest: "bitcoin_regtest",
|
|
6
6
|
ethereum: "ethereum",
|
|
7
7
|
base: "base",
|
|
8
|
-
|
|
8
|
+
arbitrum: "arbitrum",
|
|
9
9
|
ethereum_sepolia: "ethereum_sepolia",
|
|
10
10
|
arbitrum_localnet: "arbitrum_localnet",
|
|
11
11
|
arbitrum_sepolia: "arbitrum_sepolia",
|
|
12
12
|
ethereum_localnet: "ethereum_localnet",
|
|
13
13
|
base_sepolia: "base_sepolia",
|
|
14
14
|
bera_testnet: "bera_testnet"
|
|
15
|
-
}, 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 || e === t.bera_testnet), s = (e) => e === t.bitcoin || e === t.bitcoin_testnet || e === t.bitcoin_regtest, n = (e) => e === t.ethereum || e === t.
|
|
16
|
-
[t.bitcoin]:
|
|
17
|
-
[t.bitcoin_testnet]:
|
|
18
|
-
[t.bitcoin_regtest]:
|
|
19
|
-
[t.ethereum]:
|
|
20
|
-
[t.
|
|
21
|
-
[t.ethereum_sepolia]:
|
|
22
|
-
[t.arbitrum_localnet]:
|
|
23
|
-
[t.arbitrum_sepolia]:
|
|
24
|
-
[t.ethereum_localnet]:
|
|
25
|
-
[t.base_sepolia]:
|
|
26
|
-
[t.base]:
|
|
27
|
-
[t.bera_testnet]:
|
|
28
|
-
},
|
|
15
|
+
}, 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 || e === t.bera_testnet), s = (e) => e === t.bitcoin || e === t.bitcoin_testnet || e === t.bitcoin_regtest, n = (e) => e === t.ethereum || e === t.arbitrum || e === t.ethereum_sepolia || e === t.ethereum_localnet || e === t.arbitrum_localnet || e === t.arbitrum_sepolia || e === t.base_sepolia || e === t.base || e === t.bera_testnet, r = {
|
|
16
|
+
[t.bitcoin]: 144,
|
|
17
|
+
[t.bitcoin_testnet]: 144,
|
|
18
|
+
[t.bitcoin_regtest]: 144,
|
|
19
|
+
[t.ethereum]: 7200,
|
|
20
|
+
[t.arbitrum]: 7200,
|
|
21
|
+
[t.ethereum_sepolia]: 7200,
|
|
22
|
+
[t.arbitrum_localnet]: 7200,
|
|
23
|
+
[t.arbitrum_sepolia]: 7200,
|
|
24
|
+
[t.ethereum_localnet]: 7200,
|
|
25
|
+
[t.base_sepolia]: 7200,
|
|
26
|
+
[t.base]: 43200,
|
|
27
|
+
[t.bera_testnet]: 28800
|
|
28
|
+
}, b = (e) => {
|
|
29
29
|
if (s(e)) return "Bitcoin";
|
|
30
30
|
if (n(e)) return "EVM";
|
|
31
31
|
throw new Error("Invalid or unsupported chain");
|
|
32
|
-
},
|
|
32
|
+
}, l = (e) => {
|
|
33
33
|
if (!r[e]) throw new Error("Invalid or unsupported chain");
|
|
34
34
|
return r[e];
|
|
35
35
|
};
|
|
@@ -38,8 +38,8 @@ export {
|
|
|
38
38
|
t as Chains,
|
|
39
39
|
o as NetworkType,
|
|
40
40
|
r as TimeLocks,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
b as getBlockchainType,
|
|
42
|
+
l as getTimeLock,
|
|
43
43
|
s as isBitcoin,
|
|
44
44
|
n as isEVM,
|
|
45
45
|
a as isMainnet
|
package/dist/index5.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index3.cjs"),t={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},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index3.cjs"),t={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},d={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"},s={name:"WBTC Ethereum Localnet",decimals:8,symbol:"WBTC",chain:e.Chains.ethereum_localnet,atomicSwapAddress:"0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",tokenAddress:"0x5FbDB2315678afecb367f032d93F642f64180aa3"},i={localnet:{arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9:a,ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512:s},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"},arbitrum_sepolia_0xdfe6d9363ee96152d39391009a6723819d9e25eb:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.arbitrum_sepolia,logo:"https://garden-finance.imgix.net/token-images/dlcBTCIcon.svg",tokenAddress:"0x685437f025c5f33a94818408c286bc1f023201fc",atomicSwapAddress:"0xdfe6d9363ee96152d39391009a6723819d9e25eb"},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"},base_sepolia_0xb391ca6d0a76cd2a927bc314856e8a374a225cfc:{name:"Tether USD",decimals:6,symbol:"USDT",chain:e.Chains.base_sepolia,logo:"https://garden-finance.imgix.net/token-images/usdt.svg",tokenAddress:"0xD72Fc3e7D52301b3e5f7d4E3366F88d5C8747520",atomicSwapAddress:"0xB391CA6D0A76CD2A927bC314856E8a374a225CFc"},base_sepolia_0xbcdad29ac77e5bb27fd528ab0045af630259fe4f:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.base_sepolia,logo:"https://garden-finance.imgix.net/token-images/dlcBTCIcon.svg",tokenAddress:"0x0b0D554D9573bAe1a7556d220847f45182918B28",atomicSwapAddress:"0xbcdad29ac77e5bb27fd528ab0045af630259fe4f"},bera_testnet_0x1dc94fdcad8aee13cfd34db8a26d26e31572805c:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.bera_testnet,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf",atomicSwapAddress:"0x1dC94FdcAd8Aee13cfd34Db8a26d26E31572805c"}},mainnet:{bitcoin_primary:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin,tokenAddress:"primary",atomicSwapAddress:"primary"},base_0xeae7721d779276eb0f5837e2fe260118724a2ba4:{name:"Coinbase Bitcoin",decimals:8,symbol:"cbBTC",chain:e.Chains.base,logo:"https://garden-finance.imgix.net/token-images/cbBTC.svg",tokenAddress:"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",atomicSwapAddress:"0xeae7721d779276eb0f5837e2fe260118724a2ba4"},base_0xd8a6e3fca403d79b6ad6216b60527f51cc967d39:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.base,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",atomicSwapAddress:"0xd8a6e3fca403d79b6ad6216b60527f51cc967d39"},ethereum_0x795dcb58d1cd4789169d5f938ea05e17eceb68ca:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.ethereum,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",atomicSwapAddress:"0x795dcb58d1cd4789169d5f938ea05e17eceb68ca"},ethereum_0xd8a6e3fca403d79b6ad6216b60527f51cc967d39:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.ethereum,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",atomicSwapAddress:"0xd8a6e3fca403d79b6ad6216b60527f51cc967d39"},ethereum_0xeae7721d779276eb0f5837e2fe260118724a2ba4:{name:"Coinbase Bitcoin",decimals:8,symbol:"cbBTC",chain:e.Chains.ethereum,logo:"https://garden-finance.imgix.net/token-images/cbBTC.svg",tokenAddress:"0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",atomicSwapAddress:"0xeae7721d779276eb0f5837e2fe260118724a2ba4"},arbitrum_0x6b6303fab8ec7232b4f2a7b9fa58e5216f608fcb:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.arbitrum,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",atomicSwapAddress:"0x6b6303fab8ec7232b4f2a7b9fa58e5216f608fcb"},arbitrum_0xeae7721d779276eb0f5837e2fe260118724a2ba4:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.arbitrum,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",atomicSwapAddress:"0xeae7721d779276eb0f5837e2fe260118724a2ba4"},arbitrum_0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.arbitrum,logo:"https://garden-finance.imgix.net/token-images/iBTC.svg",tokenAddress:"0x050C24dBf1eEc17babE5fc585F06116A259CC77A",atomicSwapAddress:"0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72"}}};exports.ArbitrumLocalnet=t;exports.EthereumLocalnet=c;exports.SupportedAssets=i;exports.WBTCArbitrumLocalnetAsset=a;exports.WBTCEthereumLocalnetAsset=s;exports.bitcoinRegtestAsset=d;
|
package/dist/index5.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chains as e } from "./index3.js";
|
|
2
|
-
const
|
|
2
|
+
const s = {
|
|
3
3
|
id: 31338,
|
|
4
4
|
name: "Arbitrum Localnet",
|
|
5
5
|
nativeCurrency: {
|
|
@@ -13,7 +13,7 @@ const t = {
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
testnet: !0
|
|
16
|
-
},
|
|
16
|
+
}, t = {
|
|
17
17
|
id: 31337,
|
|
18
18
|
name: "Ethereum Localnet",
|
|
19
19
|
nativeCurrency: {
|
|
@@ -41,7 +41,7 @@ const t = {
|
|
|
41
41
|
chain: e.arbitrum_localnet,
|
|
42
42
|
atomicSwapAddress: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9",
|
|
43
43
|
tokenAddress: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
|
|
44
|
-
},
|
|
44
|
+
}, d = {
|
|
45
45
|
name: "WBTC Ethereum Localnet",
|
|
46
46
|
decimals: 8,
|
|
47
47
|
symbol: "WBTC",
|
|
@@ -51,7 +51,7 @@ const t = {
|
|
|
51
51
|
}, n = {
|
|
52
52
|
localnet: {
|
|
53
53
|
arbitrum_localnet_0xdc64a140aa3e981100a9beca4e685f962f0cf6c9: a,
|
|
54
|
-
ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512:
|
|
54
|
+
ethereum_localnet_0xe7f1725e7734ce288f8367e1bb143e90bb3f0512: d
|
|
55
55
|
},
|
|
56
56
|
testnet: {
|
|
57
57
|
bitcoin_testnet_primary: {
|
|
@@ -109,7 +109,7 @@ const t = {
|
|
|
109
109
|
},
|
|
110
110
|
base_sepolia_0xb391ca6d0a76cd2a927bc314856e8a374a225cfc: {
|
|
111
111
|
name: "Tether USD",
|
|
112
|
-
decimals:
|
|
112
|
+
decimals: 6,
|
|
113
113
|
symbol: "USDT",
|
|
114
114
|
chain: e.base_sepolia,
|
|
115
115
|
logo: "https://garden-finance.imgix.net/token-images/usdt.svg",
|
|
@@ -144,31 +144,85 @@ const t = {
|
|
|
144
144
|
tokenAddress: "primary",
|
|
145
145
|
atomicSwapAddress: "primary"
|
|
146
146
|
},
|
|
147
|
-
|
|
147
|
+
base_0xeae7721d779276eb0f5837e2fe260118724a2ba4: {
|
|
148
148
|
name: "Coinbase Bitcoin",
|
|
149
149
|
decimals: 8,
|
|
150
150
|
symbol: "cbBTC",
|
|
151
151
|
chain: e.base,
|
|
152
|
-
logo: "https://
|
|
152
|
+
logo: "https://garden-finance.imgix.net/token-images/cbBTC.svg",
|
|
153
153
|
tokenAddress: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
|
|
154
|
-
atomicSwapAddress: "
|
|
154
|
+
atomicSwapAddress: "0xeae7721d779276eb0f5837e2fe260118724a2ba4"
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
base_0xd8a6e3fca403d79b6ad6216b60527f51cc967d39: {
|
|
157
157
|
name: "USD Coin",
|
|
158
158
|
decimals: 6,
|
|
159
159
|
symbol: "USDC",
|
|
160
160
|
chain: e.base,
|
|
161
161
|
logo: "https://garden-finance.imgix.net/token-images/usdc.svg",
|
|
162
162
|
tokenAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
163
|
-
atomicSwapAddress: "
|
|
163
|
+
atomicSwapAddress: "0xd8a6e3fca403d79b6ad6216b60527f51cc967d39"
|
|
164
|
+
},
|
|
165
|
+
ethereum_0x795dcb58d1cd4789169d5f938ea05e17eceb68ca: {
|
|
166
|
+
name: "Wrapped Bitcoin",
|
|
167
|
+
decimals: 8,
|
|
168
|
+
symbol: "WBTC",
|
|
169
|
+
chain: e.ethereum,
|
|
170
|
+
logo: "https://garden-finance.imgix.net/token-images/wbtc.svg",
|
|
171
|
+
tokenAddress: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
|
|
172
|
+
atomicSwapAddress: "0x795dcb58d1cd4789169d5f938ea05e17eceb68ca"
|
|
173
|
+
},
|
|
174
|
+
ethereum_0xd8a6e3fca403d79b6ad6216b60527f51cc967d39: {
|
|
175
|
+
name: "USD Coin",
|
|
176
|
+
decimals: 6,
|
|
177
|
+
symbol: "USDC",
|
|
178
|
+
chain: e.ethereum,
|
|
179
|
+
logo: "https://garden-finance.imgix.net/token-images/usdc.svg",
|
|
180
|
+
tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
181
|
+
atomicSwapAddress: "0xd8a6e3fca403d79b6ad6216b60527f51cc967d39"
|
|
182
|
+
},
|
|
183
|
+
ethereum_0xeae7721d779276eb0f5837e2fe260118724a2ba4: {
|
|
184
|
+
name: "Coinbase Bitcoin",
|
|
185
|
+
decimals: 8,
|
|
186
|
+
symbol: "cbBTC",
|
|
187
|
+
chain: e.ethereum,
|
|
188
|
+
logo: "https://garden-finance.imgix.net/token-images/cbBTC.svg",
|
|
189
|
+
tokenAddress: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
|
|
190
|
+
atomicSwapAddress: "0xeae7721d779276eb0f5837e2fe260118724a2ba4"
|
|
191
|
+
},
|
|
192
|
+
arbitrum_0x6b6303fab8ec7232b4f2a7b9fa58e5216f608fcb: {
|
|
193
|
+
name: "Wrapped Bitcoin",
|
|
194
|
+
decimals: 8,
|
|
195
|
+
symbol: "WBTC",
|
|
196
|
+
chain: e.arbitrum,
|
|
197
|
+
logo: "https://garden-finance.imgix.net/token-images/wbtc.svg",
|
|
198
|
+
tokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
199
|
+
atomicSwapAddress: "0x6b6303fab8ec7232b4f2a7b9fa58e5216f608fcb"
|
|
200
|
+
},
|
|
201
|
+
arbitrum_0xeae7721d779276eb0f5837e2fe260118724a2ba4: {
|
|
202
|
+
name: "USD Coin",
|
|
203
|
+
decimals: 6,
|
|
204
|
+
symbol: "USDC",
|
|
205
|
+
chain: e.arbitrum,
|
|
206
|
+
logo: "https://garden-finance.imgix.net/token-images/usdc.svg",
|
|
207
|
+
tokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
208
|
+
atomicSwapAddress: "0xeae7721d779276eb0f5837e2fe260118724a2ba4"
|
|
209
|
+
},
|
|
210
|
+
arbitrum_0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72: {
|
|
211
|
+
name: "iBTC",
|
|
212
|
+
decimals: 8,
|
|
213
|
+
symbol: "iBTC",
|
|
214
|
+
chain: e.arbitrum,
|
|
215
|
+
logo: "https://garden-finance.imgix.net/token-images/iBTC.svg",
|
|
216
|
+
tokenAddress: "0x050C24dBf1eEc17babE5fc585F06116A259CC77A",
|
|
217
|
+
atomicSwapAddress: "0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72"
|
|
164
218
|
}
|
|
165
219
|
}
|
|
166
220
|
};
|
|
167
221
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
222
|
+
s as ArbitrumLocalnet,
|
|
223
|
+
t as EthereumLocalnet,
|
|
170
224
|
n as SupportedAssets,
|
|
171
225
|
a as WBTCArbitrumLocalnetAsset,
|
|
172
|
-
|
|
226
|
+
d as WBTCEthereumLocalnetAsset,
|
|
173
227
|
i as bitcoinRegtestAsset
|
|
174
228
|
};
|
package/dist/src/lib/asset.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const Chains: {
|
|
|
35
35
|
readonly bitcoin_regtest: "bitcoin_regtest";
|
|
36
36
|
readonly ethereum: "ethereum";
|
|
37
37
|
readonly base: "base";
|
|
38
|
-
readonly
|
|
38
|
+
readonly arbitrum: "arbitrum";
|
|
39
39
|
readonly ethereum_sepolia: "ethereum_sepolia";
|
|
40
40
|
readonly arbitrum_localnet: "arbitrum_localnet";
|
|
41
41
|
readonly arbitrum_sepolia: "arbitrum_sepolia";
|
|
@@ -45,9 +45,9 @@ export declare const Chains: {
|
|
|
45
45
|
};
|
|
46
46
|
export type Chain = keyof typeof Chains;
|
|
47
47
|
export type EvmChain = keyof Omit<typeof Chains, 'bitcoin' | 'bitcoin_testnet' | 'bitcoin_regtest'>;
|
|
48
|
-
export declare const isMainnet: (chain: Chain) => chain is "bitcoin" | "ethereum" | "base" | "
|
|
48
|
+
export declare const isMainnet: (chain: Chain) => chain is "bitcoin" | "ethereum" | "base" | "arbitrum";
|
|
49
49
|
export declare const isBitcoin: (chain: Chain) => chain is "bitcoin" | "bitcoin_testnet" | "bitcoin_regtest";
|
|
50
|
-
export declare const isEVM: (chain: Chain) => chain is "ethereum" | "base" | "
|
|
50
|
+
export declare const isEVM: (chain: Chain) => chain is "ethereum" | "base" | "arbitrum" | "ethereum_sepolia" | "arbitrum_localnet" | "arbitrum_sepolia" | "ethereum_localnet" | "base_sepolia" | "bera_testnet";
|
|
51
51
|
export declare const TimeLocks: Record<Chain, number>;
|
|
52
52
|
export declare const getBlockchainType: (chain: Chain) => BlockchainType;
|
|
53
53
|
export declare const getTimeLock: (chain: Chain) => number;
|
|
@@ -24,8 +24,14 @@ type SupportedAssets = {
|
|
|
24
24
|
};
|
|
25
25
|
mainnet: {
|
|
26
26
|
bitcoin_primary: Asset;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
base_0xeae7721d779276eb0f5837e2fe260118724a2ba4: Asset;
|
|
28
|
+
base_0xd8a6e3fca403d79b6ad6216b60527f51cc967d39: Asset;
|
|
29
|
+
ethereum_0x795dcb58d1cd4789169d5f938ea05e17eceb68ca: Asset;
|
|
30
|
+
ethereum_0xd8a6e3fca403d79b6ad6216b60527f51cc967d39: Asset;
|
|
31
|
+
ethereum_0xeae7721d779276eb0f5837e2fe260118724a2ba4: Asset;
|
|
32
|
+
arbitrum_0xeae7721d779276eb0f5837e2fe260118724a2ba4: Asset;
|
|
33
|
+
arbitrum_0x6b6303fab8ec7232b4f2a7b9fa58e5216f608fcb: Asset;
|
|
34
|
+
arbitrum_0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72: Asset;
|
|
29
35
|
};
|
|
30
36
|
};
|
|
31
37
|
export declare const SupportedAssets: SupportedAssets;
|