@gardenfi/orderbook 2.1.7-beta.13 → 2.1.7-beta.15
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 +37 -35
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +11 -2
- package/dist/src/lib/asset.d.ts +3 -2
- package/dist/src/lib/constants.d.ts +9 -0
- package/dist/src/lib/orderbook/orderbook.d.ts +2 -2
- package/dist/src/lib/orderbook/orderbook.types.d.ts +4 -4
- package/package.json +1 -1
package/dist/index3.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var s=(t=>(t.Bitcoin="Bitcoin",t.EVM="EVM",t.Starknet="Starknet",t))(s||{}),i=(t=>(t.mainnet="mainnet",t.testnet="testnet",t.localnet="localnet",t))(i||{});const e={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",citrea_testnet:"citrea_testnet",bera:"bera",monad_testnet:"monad_testnet",starknet:"starknet",starknet_sepolia:"starknet_sepolia",starknet_devnet:"starknet_devnet",hyperliquid_testnet:"hyperliquid_testnet",hyperliquid:"hyperliquid",unichain:"unichain",corn:"corn"},u=t=>!(t===e.ethereum_sepolia||t===e.bitcoin_testnet||t===e.bitcoin_regtest||t===e.arbitrum_localnet||t===e.ethereum_localnet||t===e.arbitrum_sepolia||t===e.base_sepolia||t===e.bera_testnet||t===e.citrea_testnet||t===e.monad_testnet||t===e.starknet_devnet||t===e.starknet_sepolia||t===e.hyperliquid_testnet),o=t=>t===e.bitcoin||t===e.bitcoin_testnet||t===e.bitcoin_regtest,n=t=>t===e.ethereum||t===e.arbitrum||t===e.ethereum_sepolia||t===e.ethereum_localnet||t===e.arbitrum_localnet||t===e.arbitrum_sepolia||t===e.base_sepolia||t===e.base||t===e.bera_testnet||t===e.citrea_testnet||t===e.bera||t===e.monad_testnet||t===e.hyperliquid_testnet||t===e.hyperliquid||t===e.unichain||t===e.corn,a=t=>t===e.starknet||t===e.starknet_devnet||t===e.starknet_sepolia,r={[e.bitcoin]:144,[e.bitcoin_testnet]:144,[e.bitcoin_regtest]:144,[e.ethereum]:7200,[e.arbitrum]:7200,[e.ethereum_sepolia]:7200,[e.arbitrum_localnet]:7200,[e.arbitrum_sepolia]:7200,[e.ethereum_localnet]:7200,[e.base_sepolia]:43200,[e.base]:43200,[e.bera_testnet]:43200,[e.citrea_testnet]:43200,[e.bera]:43200,[e.monad_testnet]:172800,[e.starknet]:2880,[e.starknet_devnet]:2880,[e.starknet_sepolia]:2880,[e.hyperliquid_testnet]:43200,[e.hyperliquid]:43200,[e.unichain]:86400,[e.corn]:17136},b=t=>{if(o(t))return"Bitcoin";if(n(t))return"EVM";if(a(t))return"Starknet";throw new Error("Invalid or unsupported chain")},m=t=>{if(!r[t])throw new Error("Invalid or unsupported chain");return r[t]},_="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",p=(t,l)=>n(t)&&l.toLowerCase()===_.toLowerCase();exports.BlockchainType=s;exports.Chains=e;exports.NativeTokenAddress=_;exports.NetworkType=i;exports.TimeLocks=r;exports.getBlockchainType=b;exports.getTimeLock=m;exports.isBitcoin=o;exports.isEVM=n;exports.isEvmNativeToken=p;exports.isMainnet=u;exports.isStarknet=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var s=(t=>(t.Bitcoin="Bitcoin",t.EVM="EVM",t.Starknet="Starknet",t))(s||{}),i=(t=>(t.mainnet="mainnet",t.testnet="testnet",t.localnet="localnet",t))(i||{});const e={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",citrea_testnet:"citrea_testnet",bera:"bera",monad_testnet:"monad_testnet",starknet:"starknet",starknet_sepolia:"starknet_sepolia",starknet_devnet:"starknet_devnet",hyperliquid_testnet:"hyperliquid_testnet",hyperliquid:"hyperliquid",unichain:"unichain",corn:"corn",botanix:"botanix"},u=t=>!(t===e.ethereum_sepolia||t===e.bitcoin_testnet||t===e.bitcoin_regtest||t===e.arbitrum_localnet||t===e.ethereum_localnet||t===e.arbitrum_sepolia||t===e.base_sepolia||t===e.bera_testnet||t===e.citrea_testnet||t===e.monad_testnet||t===e.starknet_devnet||t===e.starknet_sepolia||t===e.hyperliquid_testnet),o=t=>t===e.bitcoin||t===e.bitcoin_testnet||t===e.bitcoin_regtest,n=t=>t===e.ethereum||t===e.arbitrum||t===e.ethereum_sepolia||t===e.ethereum_localnet||t===e.arbitrum_localnet||t===e.arbitrum_sepolia||t===e.base_sepolia||t===e.base||t===e.bera_testnet||t===e.citrea_testnet||t===e.bera||t===e.monad_testnet||t===e.hyperliquid_testnet||t===e.hyperliquid||t===e.unichain||t===e.corn||t===e.botanix,a=t=>t===e.starknet||t===e.starknet_devnet||t===e.starknet_sepolia,r={[e.bitcoin]:144,[e.bitcoin_testnet]:144,[e.bitcoin_regtest]:144,[e.ethereum]:7200,[e.arbitrum]:7200,[e.ethereum_sepolia]:7200,[e.arbitrum_localnet]:7200,[e.arbitrum_sepolia]:7200,[e.ethereum_localnet]:7200,[e.base_sepolia]:43200,[e.base]:43200,[e.bera_testnet]:43200,[e.citrea_testnet]:43200,[e.bera]:43200,[e.monad_testnet]:172800,[e.starknet]:2880,[e.starknet_devnet]:2880,[e.starknet_sepolia]:2880,[e.hyperliquid_testnet]:43200,[e.hyperliquid]:43200,[e.unichain]:86400,[e.corn]:17136,[e.botanix]:34560},b=t=>{if(o(t))return"Bitcoin";if(n(t))return"EVM";if(a(t))return"Starknet";throw new Error("Invalid or unsupported chain")},m=t=>{if(!r[t])throw new Error("Invalid or unsupported chain");return r[t]},_="0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",p=(t,l)=>n(t)&&l.toLowerCase()===_.toLowerCase();exports.BlockchainType=s;exports.Chains=e;exports.NativeTokenAddress=_;exports.NetworkType=i;exports.TimeLocks=r;exports.getBlockchainType=b;exports.getTimeLock=m;exports.isBitcoin=o;exports.isEVM=n;exports.isEvmNativeToken=p;exports.isMainnet=u;exports.isStarknet=a;
|
package/dist/index3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var i = /* @__PURE__ */ ((
|
|
2
|
-
const
|
|
1
|
+
var i = /* @__PURE__ */ ((t) => (t.Bitcoin = "Bitcoin", t.EVM = "EVM", t.Starknet = "Starknet", t))(i || {}), o = /* @__PURE__ */ ((t) => (t.mainnet = "mainnet", t.testnet = "testnet", t.localnet = "localnet", t))(o || {});
|
|
2
|
+
const e = {
|
|
3
3
|
bitcoin: "bitcoin",
|
|
4
4
|
bitcoin_testnet: "bitcoin_testnet",
|
|
5
5
|
bitcoin_regtest: "bitcoin_regtest",
|
|
@@ -21,42 +21,44 @@ const t = {
|
|
|
21
21
|
hyperliquid_testnet: "hyperliquid_testnet",
|
|
22
22
|
hyperliquid: "hyperliquid",
|
|
23
23
|
unichain: "unichain",
|
|
24
|
-
corn: "corn"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (
|
|
24
|
+
corn: "corn",
|
|
25
|
+
botanix: "botanix"
|
|
26
|
+
}, l = (t) => !(t === e.ethereum_sepolia || t === e.bitcoin_testnet || t === e.bitcoin_regtest || t === e.arbitrum_localnet || t === e.ethereum_localnet || t === e.arbitrum_sepolia || t === e.base_sepolia || t === e.bera_testnet || t === e.citrea_testnet || t === e.monad_testnet || t === e.starknet_devnet || t === e.starknet_sepolia || t === e.hyperliquid_testnet), a = (t) => t === e.bitcoin || t === e.bitcoin_testnet || t === e.bitcoin_regtest, n = (t) => t === e.ethereum || t === e.arbitrum || t === e.ethereum_sepolia || t === e.ethereum_localnet || t === e.arbitrum_localnet || t === e.arbitrum_sepolia || t === e.base_sepolia || t === e.base || t === e.bera_testnet || t === e.citrea_testnet || t === e.bera || t === e.monad_testnet || t === e.hyperliquid_testnet || t === e.hyperliquid || t === e.unichain || t === e.corn || t === e.botanix, _ = (t) => t === e.starknet || t === e.starknet_devnet || t === e.starknet_sepolia, r = {
|
|
27
|
+
[e.bitcoin]: 144,
|
|
28
|
+
[e.bitcoin_testnet]: 144,
|
|
29
|
+
[e.bitcoin_regtest]: 144,
|
|
30
|
+
[e.ethereum]: 7200,
|
|
31
|
+
[e.arbitrum]: 7200,
|
|
32
|
+
[e.ethereum_sepolia]: 7200,
|
|
33
|
+
[e.arbitrum_localnet]: 7200,
|
|
34
|
+
[e.arbitrum_sepolia]: 7200,
|
|
35
|
+
[e.ethereum_localnet]: 7200,
|
|
36
|
+
[e.base_sepolia]: 43200,
|
|
37
|
+
[e.base]: 43200,
|
|
38
|
+
[e.bera_testnet]: 43200,
|
|
39
|
+
[e.citrea_testnet]: 43200,
|
|
40
|
+
[e.bera]: 43200,
|
|
41
|
+
[e.monad_testnet]: 172800,
|
|
42
|
+
[e.starknet]: 2880,
|
|
43
|
+
[e.starknet_devnet]: 2880,
|
|
44
|
+
[e.starknet_sepolia]: 2880,
|
|
45
|
+
[e.hyperliquid_testnet]: 43200,
|
|
46
|
+
[e.hyperliquid]: 43200,
|
|
47
|
+
[e.unichain]: 86400,
|
|
48
|
+
[e.corn]: 17136,
|
|
49
|
+
[e.botanix]: 34560
|
|
50
|
+
}, b = (t) => {
|
|
51
|
+
if (a(t)) return "Bitcoin";
|
|
52
|
+
if (n(t)) return "EVM";
|
|
53
|
+
if (_(t)) return "Starknet";
|
|
52
54
|
throw new Error("Invalid or unsupported chain");
|
|
53
|
-
}, m = (
|
|
54
|
-
if (!r[
|
|
55
|
-
return r[
|
|
56
|
-
}, u = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", p = (
|
|
55
|
+
}, m = (t) => {
|
|
56
|
+
if (!r[t]) throw new Error("Invalid or unsupported chain");
|
|
57
|
+
return r[t];
|
|
58
|
+
}, u = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", p = (t, s) => n(t) && s.toLowerCase() === u.toLowerCase();
|
|
57
59
|
export {
|
|
58
60
|
i as BlockchainType,
|
|
59
|
-
|
|
61
|
+
e as Chains,
|
|
60
62
|
u as NativeTokenAddress,
|
|
61
63
|
o as NetworkType,
|
|
62
64
|
r as TimeLocks,
|
package/dist/index5.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index3.cjs"),i={id:1001,name:"Starknet Localnet",nativeCurrency:{name:"Stark Token",symbol:"STRK",decimals:18},rpcUrls:{default:{http:["http://127.0.0.1:8547/"]}},testnet:!0},c={id:31338,name:"Arbitrum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8546/"]}},testnet:!0},d={id:31337,name:"Ethereum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8545/"]}},testnet:!0},o={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"},s={name:"STRK Starknet Localnet",decimals:18,symbol:"STRK",chain:e.Chains.starknet_devnet,atomicSwapAddress:"0x15cf8b127aa850c97ed10de6f8b300cabc4f09232a57e63667af02fdef8a55a",tokenAddress:"0x51aa025f1c9948790113e4ebea826dee24542bc50902076c05892774210e8d2"},n={name:"ETH Starknet Localnet",decimals:18,symbol:"ETH",chain:e.Chains.starknet_devnet,atomicSwapAddress:"0x1890470168440bbb9df50988748924a74ea22de10d22a081e458737b9574e75",tokenAddress:"0x51aa025f1c9948790113e4ebea826dee24542bc50902076c05892774210e8d2"},m={localnet:{arbitrum_localnet_WBTC:a,ethereum_localnet_WBTC:t,starknet_localnet_STRK:s,starknet_localnet_ETH:n},testnet:{bitcoin_testnet_BTC:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin_testnet,tokenAddress:"primary",atomicSwapAddress:"primary"},ethereum_sepolia_WBTC:{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_WBTC:{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_SEED:{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_iBTC:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.arbitrum_sepolia,logo:"https://garden-finance.imgix.net/token-images/dlcBTCIcon.svg",tokenAddress:"0x8219B871534F29ff7434519287131a875e0D8eCa",atomicSwapAddress:"0xdfe6d9363ee96152d39391009a6723819d9e25eb"},base_sepolia_WBTC:{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_USDT:{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_iBTC:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.base_sepolia,logo:"https://garden-finance.imgix.net/token-images/dlcBTCIcon.svg",tokenAddress:"0xbaFb499B60F9E30fd82A54342cb7695C92F5B527",atomicSwapAddress:"0xbcdad29ac77e5bb27fd528ab0045af630259fe4f"},citrea_testnet_WCBTC:{name:"Wrapped Citrea Bitcoin",decimals:18,symbol:"WCBTC",chain:e.Chains.citrea_testnet,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x8d0c9d1c17aE5e40ffF9bE350f57840E9E66Cd93",atomicSwapAddress:"0xaD9d14CA82d9BF97fFf745fFC7d48172A1c0969E"},citrea_testnet_cBTC:{name:"Citrea Bitcoin",decimals:18,symbol:"cBTC",chain:e.Chains.citrea_testnet,logo:"https://garden-finance.imgix.net/token-images/bitcoin.svg",tokenAddress:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",atomicSwapAddress:"0x6218FA00f47a61aCD8B46D6f1b15c4D730F803F2"},starknet_testnet_WBTC:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.starknet_sepolia,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x496bef3ed20371382fbe0ca6a5a64252c5c848f9f1f0cccf8110fc4def912d5",atomicSwapAddress:"0x06579d255314109429a4477d89629bc2b94f529ae01979c2f8014f9246482603"},monad_testnet_cbBTC:{name:"Coinbase Bitcoin",decimals:8,symbol:"cbBTC",chain:e.Chains.monad_testnet,logo:"https://garden-finance.imgix.net/token-images/cbBTC.svg",tokenAddress:"0xaD9d14CA82d9BF97fFf745fFC7d48172A1c0969E",atomicSwapAddress:"0x1dC94FdcAd8Aee13cfd34Db8a26d26E31572805c"},monad_testnet_USDC:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.monad_testnet,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf",atomicSwapAddress:"0xE99D8A21d4F2ad2f90c279c869311503f9e25867"}},mainnet:{bitcoin_BTC:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin,tokenAddress:"primary",atomicSwapAddress:"primary"},base_cbBTC:{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_USDC:{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_WBTC:{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_USDC:{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_cbBTC:{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_WBTC:{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_USDC:{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_iBTC:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.arbitrum,logo:"https://garden-finance.imgix.net/token-images/iBTC.svg",tokenAddress:"0x050C24dBf1eEc17babE5fc585F06116A259CC77A",atomicSwapAddress:"0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72"},bera_LBTC:{name:"Lombard Bitcoin",decimals:8,symbol:"LBTC",chain:e.Chains.bera,logo:"https://garden-finance.imgix.net/token-images/LBTC.svg",tokenAddress:"0xecAc9C5F704e954931349Da37F60E39f515c11c1",atomicSwapAddress:"0x39f3294352208905fc6ebf033954E6c6455CdB4C"},hyperliquid_uBTC:{name:"Unit Bitcoin",decimals:8,symbol:"uBTC",chain:e.Chains.hyperliquid,tokenAddress:"0x9FDBdA0A5e284c32744D2f17Ee5c74B284993463",atomicSwapAddress:"0x39f3294352208905fc6ebf033954E6c6455CdB4C"},starknet_WBTC:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.starknet,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac",atomicSwapAddress:"0x7defd8eb3b770005ab1ca5f89ad31f98fb5bc3c52deaeafd130be3b49f967b4"},unichain_USDC:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.unichain,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0x078D782b760474a361dDA0AF3839290b0EF57AD6",atomicSwapAddress:"0x795Dcb58d1cd4789169D5F938Ea05E17ecEB68cA"},corn_BTCN:{name:"Bitcorn",decimals:18,symbol:"BTCN",chain:e.Chains.corn,logo:"https://garden-finance.imgix.net/token-images/bitcorn.jpg",tokenAddress:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",atomicSwapAddress:"0xeaE7721d779276eb0f5837e2fE260118724a2Ba4"}}};exports.ArbitrumLocalnet=c;exports.ETHStarknetLocalnetAsset=n;exports.EthereumLocalnet=d;exports.STRKStarknetLocalnetAsset=s;exports.StarknetLocalnet=i;exports.SupportedAssets=m;exports.WBTCArbitrumLocalnetAsset=a;exports.WBTCEthereumLocalnetAsset=t;exports.bitcoinRegtestAsset=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index3.cjs"),i={id:1001,name:"Starknet Localnet",nativeCurrency:{name:"Stark Token",symbol:"STRK",decimals:18},rpcUrls:{default:{http:["http://127.0.0.1:8547/"]}},testnet:!0},c={id:31338,name:"Arbitrum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8546/"]}},testnet:!0},d={id:31337,name:"Ethereum Localnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8545/"]}},testnet:!0},o={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"},s={name:"STRK Starknet Localnet",decimals:18,symbol:"STRK",chain:e.Chains.starknet_devnet,atomicSwapAddress:"0x15cf8b127aa850c97ed10de6f8b300cabc4f09232a57e63667af02fdef8a55a",tokenAddress:"0x51aa025f1c9948790113e4ebea826dee24542bc50902076c05892774210e8d2"},n={name:"ETH Starknet Localnet",decimals:18,symbol:"ETH",chain:e.Chains.starknet_devnet,atomicSwapAddress:"0x1890470168440bbb9df50988748924a74ea22de10d22a081e458737b9574e75",tokenAddress:"0x51aa025f1c9948790113e4ebea826dee24542bc50902076c05892774210e8d2"},m={localnet:{arbitrum_localnet_WBTC:a,ethereum_localnet_WBTC:t,starknet_localnet_STRK:s,starknet_localnet_ETH:n},testnet:{bitcoin_testnet_BTC:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin_testnet,tokenAddress:"primary",atomicSwapAddress:"primary"},ethereum_sepolia_WBTC:{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_WBTC:{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_SEED:{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_iBTC:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.arbitrum_sepolia,logo:"https://garden-finance.imgix.net/token-images/dlcBTCIcon.svg",tokenAddress:"0x8219B871534F29ff7434519287131a875e0D8eCa",atomicSwapAddress:"0xdfe6d9363ee96152d39391009a6723819d9e25eb"},base_sepolia_WBTC:{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_USDT:{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_iBTC:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.base_sepolia,logo:"https://garden-finance.imgix.net/token-images/dlcBTCIcon.svg",tokenAddress:"0xbaFb499B60F9E30fd82A54342cb7695C92F5B527",atomicSwapAddress:"0xbcdad29ac77e5bb27fd528ab0045af630259fe4f"},citrea_testnet_WCBTC:{name:"Wrapped Citrea Bitcoin",decimals:18,symbol:"WCBTC",chain:e.Chains.citrea_testnet,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x8d0c9d1c17aE5e40ffF9bE350f57840E9E66Cd93",atomicSwapAddress:"0xaD9d14CA82d9BF97fFf745fFC7d48172A1c0969E"},citrea_testnet_cBTC:{name:"Citrea Bitcoin",decimals:18,symbol:"cBTC",chain:e.Chains.citrea_testnet,logo:"https://garden-finance.imgix.net/token-images/bitcoin.svg",tokenAddress:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",atomicSwapAddress:"0x6218FA00f47a61aCD8B46D6f1b15c4D730F803F2"},starknet_testnet_WBTC:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.starknet_sepolia,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x496bef3ed20371382fbe0ca6a5a64252c5c848f9f1f0cccf8110fc4def912d5",atomicSwapAddress:"0x06579d255314109429a4477d89629bc2b94f529ae01979c2f8014f9246482603"},monad_testnet_cbBTC:{name:"Coinbase Bitcoin",decimals:8,symbol:"cbBTC",chain:e.Chains.monad_testnet,logo:"https://garden-finance.imgix.net/token-images/cbBTC.svg",tokenAddress:"0xaD9d14CA82d9BF97fFf745fFC7d48172A1c0969E",atomicSwapAddress:"0x1dC94FdcAd8Aee13cfd34Db8a26d26E31572805c"},monad_testnet_USDC:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.monad_testnet,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0x00ab86f54F436CfE15253845F139955ae0C00bAf",atomicSwapAddress:"0xE99D8A21d4F2ad2f90c279c869311503f9e25867"}},mainnet:{bitcoin_BTC:{name:"BTC",decimals:8,symbol:"BTC",chain:e.Chains.bitcoin,tokenAddress:"primary",atomicSwapAddress:"primary"},base_cbBTC:{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_USDC:{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_WBTC:{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_USDC:{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_cbBTC:{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_WBTC:{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_USDC:{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_iBTC:{name:"iBTC",decimals:8,symbol:"iBTC",chain:e.Chains.arbitrum,logo:"https://garden-finance.imgix.net/token-images/iBTC.svg",tokenAddress:"0x050C24dBf1eEc17babE5fc585F06116A259CC77A",atomicSwapAddress:"0xdc74a45e86dedf1ff7c6dac77e0c2f082f9e4f72"},bera_LBTC:{name:"Lombard Bitcoin",decimals:8,symbol:"LBTC",chain:e.Chains.bera,logo:"https://garden-finance.imgix.net/token-images/LBTC.svg",tokenAddress:"0xecAc9C5F704e954931349Da37F60E39f515c11c1",atomicSwapAddress:"0x39f3294352208905fc6ebf033954E6c6455CdB4C"},hyperliquid_uBTC:{name:"Unit Bitcoin",decimals:8,symbol:"uBTC",chain:e.Chains.hyperliquid,tokenAddress:"0x9FDBdA0A5e284c32744D2f17Ee5c74B284993463",atomicSwapAddress:"0x39f3294352208905fc6ebf033954E6c6455CdB4C"},starknet_WBTC:{name:"Wrapped Bitcoin",decimals:8,symbol:"WBTC",chain:e.Chains.starknet,logo:"https://garden-finance.imgix.net/token-images/wbtc.svg",tokenAddress:"0x3fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac",atomicSwapAddress:"0x7defd8eb3b770005ab1ca5f89ad31f98fb5bc3c52deaeafd130be3b49f967b4"},unichain_USDC:{name:"USD Coin",decimals:6,symbol:"USDC",chain:e.Chains.unichain,logo:"https://garden-finance.imgix.net/token-images/usdc.svg",tokenAddress:"0x078D782b760474a361dDA0AF3839290b0EF57AD6",atomicSwapAddress:"0x795Dcb58d1cd4789169D5F938Ea05E17ecEB68cA"},corn_BTCN:{name:"Bitcorn",decimals:18,symbol:"BTCN",chain:e.Chains.corn,logo:"https://garden-finance.imgix.net/token-images/bitcorn.jpg",tokenAddress:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",atomicSwapAddress:"0xeaE7721d779276eb0f5837e2fE260118724a2Ba4"},botanix_BOTX:{name:"Botanix",decimals:18,symbol:"BOTX",chain:e.Chains.botanix,logo:"https://garden-finance.imgix.net/chain_images/BotanixLogo.svg",tokenAddress:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",atomicSwapAddress:"0x39f3294352208905fc6ebf033954E6c6455CdB4C"}}};exports.ArbitrumLocalnet=c;exports.ETHStarknetLocalnetAsset=n;exports.EthereumLocalnet=d;exports.STRKStarknetLocalnetAsset=s;exports.StarknetLocalnet=i;exports.SupportedAssets=m;exports.WBTCArbitrumLocalnetAsset=a;exports.WBTCEthereumLocalnetAsset=t;exports.bitcoinRegtestAsset=o;
|
package/dist/index5.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chains as e } from "./index3.js";
|
|
2
|
-
const
|
|
2
|
+
const c = {
|
|
3
3
|
id: 1001,
|
|
4
4
|
name: "Starknet Localnet",
|
|
5
5
|
nativeCurrency: {
|
|
@@ -325,6 +325,15 @@ const i = {
|
|
|
325
325
|
logo: "https://garden-finance.imgix.net/token-images/bitcorn.jpg",
|
|
326
326
|
tokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
327
327
|
atomicSwapAddress: "0xeaE7721d779276eb0f5837e2fE260118724a2Ba4"
|
|
328
|
+
},
|
|
329
|
+
botanix_BOTX: {
|
|
330
|
+
name: "Botanix",
|
|
331
|
+
decimals: 18,
|
|
332
|
+
symbol: "BOTX",
|
|
333
|
+
chain: e.botanix,
|
|
334
|
+
logo: "https://garden-finance.imgix.net/chain_images/BotanixLogo.svg",
|
|
335
|
+
tokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
336
|
+
atomicSwapAddress: "0x39f3294352208905fc6ebf033954E6c6455CdB4C"
|
|
328
337
|
}
|
|
329
338
|
}
|
|
330
339
|
};
|
|
@@ -333,7 +342,7 @@ export {
|
|
|
333
342
|
n as ETHStarknetLocalnetAsset,
|
|
334
343
|
o as EthereumLocalnet,
|
|
335
344
|
s as STRKStarknetLocalnetAsset,
|
|
336
|
-
|
|
345
|
+
c as StarknetLocalnet,
|
|
337
346
|
r as SupportedAssets,
|
|
338
347
|
a as WBTCArbitrumLocalnetAsset,
|
|
339
348
|
t as WBTCEthereumLocalnetAsset,
|
package/dist/src/lib/asset.d.ts
CHANGED
|
@@ -53,12 +53,13 @@ export declare const Chains: {
|
|
|
53
53
|
readonly hyperliquid: "hyperliquid";
|
|
54
54
|
readonly unichain: "unichain";
|
|
55
55
|
readonly corn: "corn";
|
|
56
|
+
readonly botanix: "botanix";
|
|
56
57
|
};
|
|
57
58
|
export type Chain = keyof typeof Chains;
|
|
58
59
|
export type EvmChain = keyof Omit<typeof Chains, 'bitcoin' | 'bitcoin_testnet' | 'bitcoin_regtest' | 'starknet' | 'starknet_devnet' | 'starknet_sepolia'>;
|
|
59
|
-
export declare const isMainnet: (chain: Chain) => chain is "bitcoin" | "ethereum" | "base" | "arbitrum" | "bera" | "starknet" | "hyperliquid" | "unichain" | "corn";
|
|
60
|
+
export declare const isMainnet: (chain: Chain) => chain is "bitcoin" | "ethereum" | "base" | "arbitrum" | "bera" | "starknet" | "hyperliquid" | "unichain" | "corn" | "botanix";
|
|
60
61
|
export declare const isBitcoin: (chain: Chain) => chain is "bitcoin" | "bitcoin_testnet" | "bitcoin_regtest";
|
|
61
|
-
export declare const isEVM: (chain: Chain) => chain is "ethereum" | "base" | "arbitrum" | "ethereum_sepolia" | "arbitrum_localnet" | "arbitrum_sepolia" | "ethereum_localnet" | "base_sepolia" | "bera_testnet" | "citrea_testnet" | "bera" | "monad_testnet" | "hyperliquid_testnet" | "hyperliquid" | "unichain" | "corn";
|
|
62
|
+
export declare const isEVM: (chain: Chain) => chain is "ethereum" | "base" | "arbitrum" | "ethereum_sepolia" | "arbitrum_localnet" | "arbitrum_sepolia" | "ethereum_localnet" | "base_sepolia" | "bera_testnet" | "citrea_testnet" | "bera" | "monad_testnet" | "hyperliquid_testnet" | "hyperliquid" | "unichain" | "corn" | "botanix";
|
|
62
63
|
export declare const isStarknet: (chain: Chain) => chain is "starknet" | "starknet_sepolia" | "starknet_devnet";
|
|
63
64
|
export declare const TimeLocks: Record<Chain, number>;
|
|
64
65
|
export declare const getBlockchainType: (chain: Chain) => BlockchainType;
|
|
@@ -259,5 +259,14 @@ export declare const SupportedAssets: {
|
|
|
259
259
|
readonly tokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
260
260
|
readonly atomicSwapAddress: "0xeaE7721d779276eb0f5837e2fE260118724a2Ba4";
|
|
261
261
|
};
|
|
262
|
+
readonly botanix_BOTX: {
|
|
263
|
+
readonly name: "Botanix";
|
|
264
|
+
readonly decimals: 18;
|
|
265
|
+
readonly symbol: "BOTX";
|
|
266
|
+
readonly chain: "botanix";
|
|
267
|
+
readonly logo: "https://garden-finance.imgix.net/chain_images/BotanixLogo.svg";
|
|
268
|
+
readonly tokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
269
|
+
readonly atomicSwapAddress: "0x39f3294352208905fc6ebf033954E6c6455CdB4C";
|
|
270
|
+
};
|
|
262
271
|
};
|
|
263
272
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncResult } from '@catalogfi/utils';
|
|
2
|
-
import { CreateOrder,
|
|
2
|
+
import { CreateOrder, CreateOrderRequestWithAdditionalData, IOrderbook, MatchedOrder, PaginatedData, PaginationConfig, Status } from './orderbook.types';
|
|
3
3
|
import { IAuth, Url } from '@gardenfi/utils';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -16,7 +16,7 @@ export declare class Orderbook implements IOrderbook {
|
|
|
16
16
|
* @param {IAuth} auth - The auth object.
|
|
17
17
|
* @returns {string} The create order ID.
|
|
18
18
|
*/
|
|
19
|
-
createOrder(order:
|
|
19
|
+
createOrder(order: CreateOrderRequestWithAdditionalData, auth: IAuth): AsyncResult<string, string>;
|
|
20
20
|
getOrder<T extends boolean>(id: string, matched: T): AsyncResult<T extends true ? MatchedOrder : CreateOrder, string>;
|
|
21
21
|
getMatchedOrders(address: string, status: Status, paginationConfig?: PaginationConfig): AsyncResult<PaginatedData<MatchedOrder>, string>;
|
|
22
22
|
getUnMatchedOrders(address: string, paginationConfig?: PaginationConfig): AsyncResult<PaginatedData<CreateOrder>, string>;
|
|
@@ -89,7 +89,7 @@ export interface IOrderbook {
|
|
|
89
89
|
* @param {CreateOrderConfig} orderConfig - The configuration for the creating the order.
|
|
90
90
|
* @returns {number} The create order ID.
|
|
91
91
|
*/
|
|
92
|
-
createOrder(order:
|
|
92
|
+
createOrder(order: CreateOrderRequestWithAdditionalData, auth: IAuth): AsyncResult<string, string>;
|
|
93
93
|
/**
|
|
94
94
|
* Get the order from orderbook based on provided Id and match status.
|
|
95
95
|
* @param id - The create Id of the order
|
|
@@ -192,15 +192,15 @@ export type CreateOrderRequest = {
|
|
|
192
192
|
destination_chain: string;
|
|
193
193
|
source_asset: string;
|
|
194
194
|
destination_asset: string;
|
|
195
|
-
initiator_source_address
|
|
196
|
-
initiator_destination_address
|
|
195
|
+
initiator_source_address: string;
|
|
196
|
+
initiator_destination_address: string;
|
|
197
197
|
source_amount: string;
|
|
198
198
|
destination_amount: string;
|
|
199
199
|
fee: string;
|
|
200
200
|
nonce: string;
|
|
201
201
|
min_destination_confirmations: number;
|
|
202
202
|
timelock: number;
|
|
203
|
-
secret_hash
|
|
203
|
+
secret_hash: string;
|
|
204
204
|
};
|
|
205
205
|
export type CreateOrderRequestWithAdditionalData = CreateOrderRequest & AdditionalData & AffiliateFeeList<AffiliateFeeWithAmount>;
|
|
206
206
|
export type CreateOrder = CreateOrderRequestWithAdditionalData & {
|