@ape.swap/bonds-sdk 3.0.46 → 3.0.48
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/components/uikit-sdk/Svg/tokens/BERA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +1 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +1 -0
- package/dist/main.js +111 -4
- package/dist/state/zap/getChainParam.d.ts +2 -1
- package/dist/styles.css +4 -0
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -3927,6 +3927,7 @@ var icons;
|
|
|
3927
3927
|
icons["CROSSFI"] = "crossfi";
|
|
3928
3928
|
icons["MONAD"] = "monad";
|
|
3929
3929
|
icons["SONIC"] = "sonic";
|
|
3930
|
+
icons["BERA"] = "bera";
|
|
3930
3931
|
//Social media icons
|
|
3931
3932
|
icons["DISCORD"] = "discord";
|
|
3932
3933
|
icons["REDDIT"] = "reddit";
|
|
@@ -6766,6 +6767,10 @@ const MONAD = ({ width }) => {
|
|
|
6766
6767
|
return (jsxs("svg", { width: width || '30', height: width || '30', xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 30 30", children: [jsx$2("title", { children: "Layer 1" }), jsxs("g", { children: [jsx$2("title", { children: "Layer 1" }), jsx$2("rect", { stroke: "null", x: "-0.0133", y: "-0.12069", width: "32.0266", height: "32.15663", fill: "#1d2022", id: "svg_7" }), jsx$2("path", { id: "svg_1", fill: "#f5f5f5", d: "m17.82919,18.32412l0.00336,-0.00224s-0.00336,0.00224 -0.0056,0.00336c0.00112,0 0.00224,0 0.00336,0l0,0l-0.00112,-0.00112z", className: "cls-1", stroke: "null" }), jsxs("g", { stroke: "null", id: "svg_8", children: [jsx$2("path", { stroke: "null", id: "svg_2", fill: "#f5f5f5", d: "m17.17092,17.60435c-4.02378,1.2086 -7.3513,2.97164 -9.43583,5.03639l-0.09198,0.09198c0.55444,0.52436 1.16218,0.99369 1.81891,1.39256l0.14098,-0.17278c0.56905,-0.69542 1.17938,-1.36677 1.81462,-1.99943c1.70459,-1.69857 3.65416,-3.16848 5.7533,-4.34872z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_3", fill: "#f5f5f5", d: "m17.63597,15.81294l-13.2834,0c0.16074,2.15502 0.96103,4.13124 2.2169,5.73869l0.05759,-0.05759c1.29026,-1.27307 2.96992,-2.43008 4.99599,-3.4384c1.77594,-0.88454 3.81491,-1.64355 6.0129,-2.2427l0,0.00001l0.00001,0z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_4", fill: "#f5f5f5", d: "m12.5437,6.91914c3.60086,3.58797 8.13268,5.96046 13.10374,6.86047c-0.59914,-5.3192 -5.12665,-9.45646 -10.62809,-9.45646c-1.45273,0 -2.83754,0.28969 -4.10202,0.81232c0.51318,0.61805 1.0616,1.21978 1.62637,1.78453l0,0l0,-0.00086l0.00001,0l-0.00001,-0.00001z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_5", fill: "#f5f5f5", d: "m7.73508,7.3584c2.08454,2.0682 5.41375,3.82866 9.43841,5.03983c-2.10086,-1.18281 -4.05216,-2.65187 -5.7576,-4.35129c-0.63352,-0.63095 -1.24298,-1.3023 -1.81462,-1.99943l-0.14098,-0.17278c-0.65673,0.39885 -1.26447,0.86734 -1.81634,1.39169l0.09198,0.09198l-0.00086,0l0.00001,0z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_6", fill: "#f5f5f5", d: "m12.45773,23.08c-0.56733,0.56476 -1.11491,1.16648 -1.62637,1.78453c1.26276,0.52263 2.64928,0.81232 4.10202,0.81232c5.50144,0 10.02895,-4.13811 10.62981,-9.45903c-4.9702,0.9 -9.50202,3.2725 -13.10374,6.86047l-0.00172,0.00172l-0.00001,0l0.00001,-0.00001z", className: "cls-1" }), jsx$2("path", { stroke: "null", id: "svg_7", fill: "#f5f5f5", d: "m11.62048,11.94093l0,0.00172c-2.02436,-1.00831 -3.70316,-2.16619 -4.99342,-3.43755l-0.05759,-0.05759c-1.25587,1.60745 -2.05616,3.58367 -2.2169,5.73869l13.28082,0c-2.19714,-0.59914 -4.2344,-1.35817 -6.0129,-2.24528l0.00001,0.00001l-0.00001,0z", className: "cls-1" })] })] })] }));
|
|
6767
6768
|
};
|
|
6768
6769
|
|
|
6770
|
+
const BERA = ({ width }) => {
|
|
6771
|
+
return (jsxs("svg", { width: width || '30', height: width || '30', viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx$2("rect", { width: "64", height: "64", fill: "#814625" }), jsx$2("circle", { cx: "32", cy: "32", r: "32", fill: "#814625" }), jsx$2("path", { d: "M30.8066 30.3798C30.7714 30.2735 30.7468 30.1644 30.7278 30.0543C30.7191 30.0033 30.7089 29.9526 30.6974 29.9022C30.6723 29.7927 30.6444 29.6838 30.6143 29.5755V29.5752C31.1133 28.8475 33.4988 25.0526 30.7842 22.6168C27.7714 19.9134 24.2512 23.4568 24.2512 23.4568L24.2621 23.4726C22.6799 23.0095 20.9643 22.9551 19.2952 23.4567C19.295 23.4567 19.2949 23.4567 19.2949 23.4567C19.2743 23.4359 15.7659 19.9214 12.762 22.6168C9.75706 25.3131 13.0019 29.6754 13.0188 29.6981C13.0188 29.6981 13.0188 29.6983 13.0188 29.6984C12.9843 29.8009 12.9564 29.9055 12.938 30.0118C12.6129 31.8785 10.3999 32.4546 10.3999 35.7062C10.3999 38.9577 12.715 41.6322 17.4404 41.6322H19.3794C19.3794 41.6322 19.3796 41.6322 19.3797 41.6322C19.3884 41.6441 20.1867 42.7341 21.826 42.7328C23.3478 42.7318 24.3528 41.6415 24.3615 41.6322C24.3615 41.6322 24.3615 41.6322 24.3618 41.6322H26.2117C30.9371 41.6322 33.2522 39.0205 33.2522 35.7062C33.2522 32.6782 31.3331 31.9703 30.8068 30.3798H30.8066Z", fill: "white" }), jsx$2("path", { d: "M53.3886 26.6642C53.3886 26.6642 53.74 23.5304 51.0687 22.857V21.6001H48.9999V22.8256C46.182 23.426 46.5451 26.6642 46.5451 26.6642V27.2016C46.5451 27.2016 46.1818 30.4406 49.0009 31.0404H49.0006V33.7307C46.0304 34.2519 46.4057 37.5965 46.4057 37.5965V38.1338C46.4057 38.1338 46.0424 41.372 48.8604 41.9723V43.198H50.9292V41.9411C53.6007 41.2677 53.2491 38.1338 53.2491 38.1338C53.3659 38.1338 53.4606 38.0426 53.4606 37.9302V37.8001C53.4606 37.6877 53.3659 37.5965 53.2491 37.5965C53.2491 37.5965 53.5977 34.4898 50.9638 33.7982V31.0404H50.9327C53.7518 30.4406 53.3885 27.2016 53.3885 27.2016C53.5052 27.2016 53.5999 27.1103 53.5999 26.9979V26.8679C53.5999 26.7555 53.5052 26.6642 53.3885 26.6642H53.3886ZM51.7027 37.5965H51.5134C51.3967 37.5965 51.302 37.6877 51.302 37.8001V37.9302C51.302 38.0426 51.3967 38.1338 51.5134 38.1338H51.7027C51.7027 40.0778 51.0324 40.4049 50.8069 40.46C50.7698 40.469 50.7338 40.4425 50.7338 40.4057V39.786C50.7338 39.4435 50.5072 39.2558 50.2806 39.1538C49.9941 39.0248 49.6605 39.0248 49.3741 39.1538C49.1475 39.2558 48.9208 39.4435 48.9208 39.786V40.4057C48.9208 40.442 48.8855 40.4691 48.849 40.4602C48.6248 40.4061 47.952 40.0816 47.952 38.1338V37.5965C47.952 35.6525 48.6222 35.3254 48.8478 35.2703C48.8848 35.2613 48.9208 35.2878 48.9208 35.3246V35.9443C48.9208 36.2868 49.1475 36.4745 49.3741 36.5765C49.6605 36.7055 49.9941 36.7055 50.2806 36.5765C50.5072 36.4745 50.7338 36.2868 50.7338 35.9443V35.3246C50.7338 35.2883 50.7691 35.2612 50.8056 35.2701C51.0299 35.3242 51.7027 35.6487 51.7027 37.5965ZM51.6529 27.2016H51.8421C51.8421 29.1493 51.1694 29.474 50.9451 29.528C50.9086 29.5368 50.8733 29.5097 50.8733 29.4734V28.8538C50.8733 28.5113 50.6467 28.3236 50.42 28.2215C50.1336 28.0926 49.8 28.0926 49.5135 28.2215C49.2869 28.3236 49.0603 28.5113 49.0603 28.8538V29.4734C49.0603 29.5102 49.0243 29.5367 48.9872 29.5277C48.7617 29.4726 48.0915 29.1455 48.0915 27.2016V26.6642C48.0915 24.7165 48.7642 24.3918 48.9885 24.3378C49.025 24.329 49.0603 24.3562 49.0603 24.3924V25.012C49.0603 25.3546 49.2869 25.5422 49.5135 25.6443C49.8 25.7733 50.1336 25.7733 50.42 25.6443C50.6467 25.5422 50.8733 25.3546 50.8733 25.012V24.3924C50.8733 24.3556 50.9093 24.3291 50.9464 24.3381C51.1719 24.3932 51.8421 24.7203 51.8421 26.6642H51.6529C51.5361 26.6642 51.4414 26.7555 51.4414 26.8679V26.9979C51.4414 27.1103 51.5361 27.2016 51.6529 27.2016Z", fill: "white" }), jsx$2("path", { d: "M43.036 32.1985C43.036 32.1985 43.4013 28.9415 40.5566 28.3549V25.4287C43.3256 24.8037 42.9663 21.6001 42.9663 21.6001C42.9663 21.6001 41.4134 21.6001 41.4198 21.6001C41.4198 23.5478 40.7471 23.8725 40.5228 23.9265C40.4863 23.9354 40.451 23.9081 40.451 23.872V23.2523C40.451 22.9098 40.2244 22.7221 39.9977 22.62C39.7113 22.4911 39.3777 22.4911 39.0912 22.62C38.8646 22.7221 38.638 22.9098 38.638 23.2523V23.872C38.638 23.9088 38.602 23.9352 38.5649 23.9262C38.3394 23.8712 37.6692 23.5441 37.6692 21.6001C37.6757 21.6001 36.1227 21.6001 36.1227 21.6001C36.1227 21.6001 35.7499 24.9244 38.6908 25.4609V28.3509C35.8255 28.9269 36.1924 32.1984 36.1924 32.1984V32.7357C36.1924 32.7357 35.8255 36.0073 38.6908 36.5833V39.3389C35.7499 39.8755 36.1227 43.1997 36.1227 43.1997C36.1227 43.1997 37.6756 43.1997 37.6692 43.1997C37.6692 41.2519 38.3419 40.9273 38.5662 40.8733C38.6027 40.8644 38.638 40.8915 38.638 40.9278V41.5475C38.638 41.89 38.8646 42.0777 39.0912 42.1797C39.3777 42.3087 39.7113 42.3087 39.9977 42.1797C40.2244 42.0777 40.451 41.89 40.451 41.5475V40.9278C40.451 40.891 40.487 40.8645 40.5241 40.8735C40.7496 40.9286 41.4198 41.2557 41.4198 43.1997C41.4133 43.1997 42.9663 43.1997 42.9663 43.1997C42.9663 43.1997 43.3256 39.9961 40.5566 39.3711V36.5792C43.4013 35.9926 43.036 32.7356 43.036 32.7356C43.1528 32.7356 43.2475 32.6444 43.2475 32.5319V32.4019C43.2475 32.2895 43.1528 32.1983 43.036 32.1983V32.1985ZM41.3003 32.7359H41.4895C41.4895 34.6836 40.8168 35.0083 40.5925 35.0623C40.556 35.0711 40.5207 35.044 40.5207 35.0077V34.3881C40.5207 34.0455 40.2941 33.8579 40.0675 33.7558C39.781 33.6268 39.4474 33.6268 39.161 33.7558C38.9343 33.8579 38.7077 34.0455 38.7077 34.3881V35.0077C38.7077 35.0445 38.6717 35.071 38.6346 35.062C38.4091 35.0069 37.7389 34.6798 37.7389 32.7359V32.1985C37.7389 30.2508 38.4116 29.9261 38.6359 29.8721C38.6724 29.8633 38.7077 29.8905 38.7077 29.9267V30.5463C38.7077 30.8888 38.9343 31.0765 39.161 31.1786C39.4474 31.3075 39.781 31.3075 40.0675 31.1786C40.2941 31.0765 40.5207 30.8888 40.5207 30.5463V29.9267C40.5207 29.8899 40.5567 29.8634 40.5938 29.8724C40.8193 29.9275 41.4895 30.2546 41.4895 32.1985H41.3003C41.1836 32.1985 41.0889 32.2897 41.0889 32.4022V32.5322C41.0889 32.6446 41.1836 32.7359 41.3003 32.7359Z", fill: "white" })] }));
|
|
6772
|
+
};
|
|
6773
|
+
|
|
6769
6774
|
const Icon$a = ({ width }) => {
|
|
6770
6775
|
return (jsxs("svg", { viewBox: "0 0 32 32", width: width || '128px', children: [jsx$2("path", { d: "M24 0H8C3.58172 0 0 3.58172 0 8V24C0 28.4183 3.58172 32 8 32H24C28.4183 32 32 28.4183 32 24V8C32 3.58172 28.4183 0 24 0Z", fill: "#1E2026" }), jsx$2("path", { d: "M16.2857 4L9.97035 7.6761L12.2922 9.03415L16.2857 6.7161L20.2792 9.03415L22.6011 7.6761L16.2857 4Z", fill: "#F0B90B" }), jsx$2("path", { d: "M20.2792 10.9541L22.6011 12.3122V15.0283L18.6075 17.3463V21.9824L16.2857 23.3405L13.9639 21.9824V17.3463L9.97035 15.0283V12.3122L12.2922 10.9541L16.2857 13.2722L20.2792 10.9541Z", fill: "#F0B90B" }), jsx$2("path", { d: "M22.6011 16.9483V19.6644L20.2792 21.0224V18.3063L22.6011 16.9483Z", fill: "#F0B90B" }), jsx$2("path", { d: "M20.2561 22.9424L24.2496 20.6244V15.9883L26.5714 14.6302V21.9824L20.2561 25.6585V22.9424Z", fill: "#F0B90B" }), jsx$2("path", { d: "M24.2496 11.3522L21.9278 9.99414L24.2496 8.63609L26.5714 9.99414V12.7102L24.2496 14.0683V11.3522Z", fill: "#F0B90B" }), jsx$2("path", { d: "M13.9639 26.642V23.9259L16.2857 25.2839L18.6075 23.9259V26.642L16.2857 28L13.9639 26.642Z", fill: "#F0B90B" }), jsx$2("path", { d: "M12.2922 21.0224L9.97035 19.6644V16.9483L12.2922 18.3063V21.0224Z", fill: "#F0B90B" }), jsx$2("path", { d: "M16.2857 11.3522L13.9639 9.99414L16.2857 8.63609L18.6075 9.99414L16.2857 11.3522Z", fill: "#F0B90B" }), jsx$2("path", { d: "M10.6437 9.99414L8.32183 11.3522V14.0683L6 12.7102V9.99414L8.32183 8.63609L10.6437 9.99414Z", fill: "#F0B90B" }), jsx$2("path", { d: "M6 14.6302L8.32183 15.9883V20.6244L12.3154 22.9424V25.6585L6 21.9824V14.6302Z", fill: "#F0B90B" })] }));
|
|
6771
6776
|
};
|
|
@@ -7174,6 +7179,8 @@ const Svg = (_a) => {
|
|
|
7174
7179
|
return jsx$2(MONAD$1, Object.assign({}, props, { getStyles: getStyles }));
|
|
7175
7180
|
case icons.SONIC:
|
|
7176
7181
|
return jsx$2(MONAD, Object.assign({}, props, { getStyles: getStyles }));
|
|
7182
|
+
case icons.BERA:
|
|
7183
|
+
return jsx$2(BERA, Object.assign({}, props, { getStyles: getStyles }));
|
|
7177
7184
|
default:
|
|
7178
7185
|
return null;
|
|
7179
7186
|
}
|
|
@@ -18020,6 +18027,7 @@ var types = {};
|
|
|
18020
18027
|
// ShadowExchangeV3 = 'ShadowExchangeV3',
|
|
18021
18028
|
LiquidityDex['SwapX'] = 'SwapX';
|
|
18022
18029
|
LiquidityDex['SwapXAlgebraIntegral'] = 'SwapXAlgebraIntegral';
|
|
18030
|
+
LiquidityDex['Equalizer'] = 'Equalizer';
|
|
18023
18031
|
//BERACHAIN
|
|
18024
18032
|
LiquidityDex['KodiakV2'] = 'KodiakV2';
|
|
18025
18033
|
LiquidityDex['KodiakV3'] = 'KodiakV3';
|
|
@@ -18380,6 +18388,7 @@ var types = {};
|
|
|
18380
18388
|
// },
|
|
18381
18389
|
(_p[LiquidityDex.SwapX] = {
|
|
18382
18390
|
factory: '0x05c1be79d3aC21Cc4B727eeD58C9B2fF757F5663',
|
|
18391
|
+
router: '0xF5F7231073b3B41c04BA655e1a7438b1a7b29c27',
|
|
18383
18392
|
protocol: Protocols.Solidly,
|
|
18384
18393
|
}),
|
|
18385
18394
|
(_p[LiquidityDex.SwapXAlgebraIntegral] = {
|
|
@@ -18390,6 +18399,11 @@ var types = {};
|
|
|
18390
18399
|
factory: '0x56CFC796bC88C9c7e1b38C2b0aF9B7120B079aef',
|
|
18391
18400
|
protocol: Protocols.V3,
|
|
18392
18401
|
}),
|
|
18402
|
+
(_p[LiquidityDex.Equalizer] = {
|
|
18403
|
+
factory: '0xDDD9845Ba0D8f38d3045f804f67A1a8B9A528FcC',
|
|
18404
|
+
router: '0x7635cD591CFE965bE8beC60Da6eA69b6dcD27e4b',
|
|
18405
|
+
protocol: Protocols.Solidly,
|
|
18406
|
+
}),
|
|
18393
18407
|
_p)),
|
|
18394
18408
|
(_a[ChainId.MONAD_TESTNET] =
|
|
18395
18409
|
((_q = {}),
|
|
@@ -18701,6 +18715,7 @@ var types = {};
|
|
|
18701
18715
|
(_8[LiquidityDex.TrebleAlgebraIntegral] = {}),
|
|
18702
18716
|
(_8[LiquidityDex.KodiakV2] = {}),
|
|
18703
18717
|
(_8[LiquidityDex.KodiakV3] = {}),
|
|
18718
|
+
(_8[LiquidityDex.Equalizer] = {}),
|
|
18704
18719
|
_8);
|
|
18705
18720
|
|
|
18706
18721
|
} (types));
|
|
@@ -18722,6 +18737,7 @@ const MAINNET_CHAINS = [
|
|
|
18722
18737
|
types.ChainId.CROSSFI,
|
|
18723
18738
|
types.ChainId.SONIC,
|
|
18724
18739
|
types.ChainId.MONAD_TESTNET,
|
|
18740
|
+
types.ChainId.BERACHAIN,
|
|
18725
18741
|
];
|
|
18726
18742
|
const TESTNET_CHAINS = [types.ChainId.MONAD_TESTNET];
|
|
18727
18743
|
// Network Icons
|
|
@@ -18743,6 +18759,7 @@ const NETWORK_ICONS = {
|
|
|
18743
18759
|
[types.ChainId.CROSSFI]: icons.CROSSFI,
|
|
18744
18760
|
[types.ChainId.MONAD_TESTNET]: icons.MONAD,
|
|
18745
18761
|
[types.ChainId.SONIC]: icons.SONIC,
|
|
18762
|
+
[types.ChainId.BERACHAIN]: icons.BERA,
|
|
18746
18763
|
};
|
|
18747
18764
|
// Network labels
|
|
18748
18765
|
const NETWORK_LABEL = {
|
|
@@ -18765,6 +18782,7 @@ const NETWORK_LABEL = {
|
|
|
18765
18782
|
[types.ChainId.CROSSFI]: 'Crossfi',
|
|
18766
18783
|
[types.ChainId.MONAD_TESTNET]: 'Monad Testnet',
|
|
18767
18784
|
[types.ChainId.SONIC]: 'Sonic',
|
|
18785
|
+
[types.ChainId.BERACHAIN]: 'Berachain',
|
|
18768
18786
|
};
|
|
18769
18787
|
// Network block explorers
|
|
18770
18788
|
const BLOCK_EXPLORER = {
|
|
@@ -18787,6 +18805,7 @@ const BLOCK_EXPLORER = {
|
|
|
18787
18805
|
[types.ChainId.CROSSFI]: 'https://xfiscan.com',
|
|
18788
18806
|
[types.ChainId.MONAD_TESTNET]: 'https://testnet.monadexplorer.com/',
|
|
18789
18807
|
[types.ChainId.SONIC]: 'https://sonicscan.org',
|
|
18808
|
+
[types.ChainId.BERACHAIN]: 'https://berascan.com',
|
|
18790
18809
|
};
|
|
18791
18810
|
|
|
18792
18811
|
const supportedByLIFI = [
|
|
@@ -18799,6 +18818,7 @@ const supportedByLIFI = [
|
|
|
18799
18818
|
types.ChainId.AVAX,
|
|
18800
18819
|
types.ChainId.BLAST,
|
|
18801
18820
|
types.ChainId.SONIC,
|
|
18821
|
+
types.ChainId.BERACHAIN,
|
|
18802
18822
|
];
|
|
18803
18823
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18804
18824
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
@@ -22271,6 +22291,7 @@ const PRICE_GETTER_ADDRESSES = {
|
|
|
22271
22291
|
[types.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
|
|
22272
22292
|
[types.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
|
|
22273
22293
|
[types.ChainId.MONAD_TESTNET]: '0x0187D959A28B0D3B490c2D898fA1CcD054cCC3cd', // Price getter V3
|
|
22294
|
+
[types.ChainId.BERACHAIN]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
|
|
22274
22295
|
};
|
|
22275
22296
|
const MULTICALL_V2 = {
|
|
22276
22297
|
[types.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
|
|
@@ -22291,6 +22312,7 @@ const MULTICALL_V2 = {
|
|
|
22291
22312
|
[types.ChainId.CROSSFI]: '0x007bAC6A07894A69fBcA94ED6274005093E1c44E',
|
|
22292
22313
|
[types.ChainId.MONAD_TESTNET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
22293
22314
|
[types.ChainId.SONIC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
22315
|
+
[types.ChainId.BERACHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
22294
22316
|
};
|
|
22295
22317
|
const SoulZapTokenManager = {
|
|
22296
22318
|
[types.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
|
|
@@ -22301,6 +22323,7 @@ const SoulZapTokenManager = {
|
|
|
22301
22323
|
[types.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
|
|
22302
22324
|
[types.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
|
|
22303
22325
|
[types.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
|
|
22326
|
+
[types.ChainId.BERACHAIN]: '0xcFd581f15433899d093ca1ADfc3aC13c37DBfbe7',
|
|
22304
22327
|
};
|
|
22305
22328
|
const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
|
|
22306
22329
|
const LENS_CONTRACT = {
|
|
@@ -58103,6 +58126,7 @@ const PUBLIC_RPC_URLS = {
|
|
|
58103
58126
|
[types.ChainId.CROSSFI]: ['https://rpc.mainnet.ms'],
|
|
58104
58127
|
[types.ChainId.MONAD_TESTNET]: ['https://testnet-rpc2.monad.xyz/52227f026fa8fac9e2014c58fbf5643369b3bfc6'],
|
|
58105
58128
|
[types.ChainId.SONIC]: ['https://rpc.soniclabs.com'],
|
|
58129
|
+
[types.ChainId.BERACHAIN]: ['https://rpc.berachain.com'],
|
|
58106
58130
|
};
|
|
58107
58131
|
|
|
58108
58132
|
// This is the legacy multicall
|
|
@@ -68497,6 +68521,16 @@ const WNATIVE = {
|
|
|
68497
68521
|
},
|
|
68498
68522
|
active: true,
|
|
68499
68523
|
},
|
|
68524
|
+
[types.ChainId.BERACHAIN]: {
|
|
68525
|
+
symbol: 'wBERA',
|
|
68526
|
+
address: {
|
|
68527
|
+
[types.ChainId.BERACHAIN]: '0x6969696969696969696969696969696969696969',
|
|
68528
|
+
},
|
|
68529
|
+
decimals: {
|
|
68530
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
68531
|
+
},
|
|
68532
|
+
active: true,
|
|
68533
|
+
},
|
|
68500
68534
|
};
|
|
68501
68535
|
const zapInputTokens = {
|
|
68502
68536
|
[types.ChainId.MAINNET]: [
|
|
@@ -68935,6 +68969,58 @@ const zapInputTokens = {
|
|
|
68935
68969
|
active: true,
|
|
68936
68970
|
},
|
|
68937
68971
|
],
|
|
68972
|
+
[types.ChainId.BERACHAIN]: [
|
|
68973
|
+
{
|
|
68974
|
+
symbol: 'HONEY',
|
|
68975
|
+
address: {
|
|
68976
|
+
[types.ChainId.BERACHAIN]: '0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce',
|
|
68977
|
+
},
|
|
68978
|
+
decimals: {
|
|
68979
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
68980
|
+
},
|
|
68981
|
+
active: true,
|
|
68982
|
+
},
|
|
68983
|
+
{
|
|
68984
|
+
symbol: 'BTC',
|
|
68985
|
+
address: {
|
|
68986
|
+
[types.ChainId.BERACHAIN]: '0x0555E30da8f98308EdB960aa94C0Db47230d2B9c',
|
|
68987
|
+
},
|
|
68988
|
+
decimals: {
|
|
68989
|
+
[types.ChainId.BERACHAIN]: 8,
|
|
68990
|
+
},
|
|
68991
|
+
active: true,
|
|
68992
|
+
},
|
|
68993
|
+
{
|
|
68994
|
+
symbol: 'USDe',
|
|
68995
|
+
address: {
|
|
68996
|
+
[types.ChainId.BERACHAIN]: '0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34',
|
|
68997
|
+
},
|
|
68998
|
+
decimals: {
|
|
68999
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
69000
|
+
},
|
|
69001
|
+
active: true,
|
|
69002
|
+
},
|
|
69003
|
+
{
|
|
69004
|
+
symbol: 'WETH',
|
|
69005
|
+
address: {
|
|
69006
|
+
[types.ChainId.BERACHAIN]: '0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590',
|
|
69007
|
+
},
|
|
69008
|
+
decimals: {
|
|
69009
|
+
[types.ChainId.BERACHAIN]: 18,
|
|
69010
|
+
},
|
|
69011
|
+
active: true,
|
|
69012
|
+
},
|
|
69013
|
+
{
|
|
69014
|
+
symbol: 'USDC.e',
|
|
69015
|
+
address: {
|
|
69016
|
+
[types.ChainId.BERACHAIN]: '0x549943e04f40284185054145c6E4e9568C1D3241',
|
|
69017
|
+
},
|
|
69018
|
+
decimals: {
|
|
69019
|
+
[types.ChainId.BERACHAIN]: 6,
|
|
69020
|
+
},
|
|
69021
|
+
active: true,
|
|
69022
|
+
},
|
|
69023
|
+
]
|
|
68938
69024
|
};
|
|
68939
69025
|
|
|
68940
69026
|
var PRICE_GETTER_V3_ABI = [
|
|
@@ -74971,6 +75057,7 @@ var NetworkNames;
|
|
|
74971
75057
|
NetworkNames["AVAX"] = "ava";
|
|
74972
75058
|
NetworkNames["BLAST"] = "bls";
|
|
74973
75059
|
NetworkNames["SONIC"] = "son";
|
|
75060
|
+
NetworkNames["BERACHAIN"] = "ber";
|
|
74974
75061
|
})(NetworkNames || (NetworkNames = {}));
|
|
74975
75062
|
const getChainParam = (chain) => {
|
|
74976
75063
|
return chain === types.ChainId.LINEA
|
|
@@ -74991,7 +75078,9 @@ const getChainParam = (chain) => {
|
|
|
74991
75078
|
? NetworkNames.BLAST
|
|
74992
75079
|
: chain === types.ChainId.SONIC
|
|
74993
75080
|
? NetworkNames.SONIC
|
|
74994
|
-
:
|
|
75081
|
+
: chain === types.ChainId.BERACHAIN
|
|
75082
|
+
? NetworkNames.BERACHAIN
|
|
75083
|
+
: null;
|
|
74995
75084
|
};
|
|
74996
75085
|
const getLpType = (protocol) => {
|
|
74997
75086
|
return protocol === types.Protocols.Algebra
|
|
@@ -76592,7 +76681,7 @@ const Estimations = ({ depositAmount, bondData, youSpendString, isZap, fetchingZ
|
|
|
76592
76681
|
background: 'primaryButton',
|
|
76593
76682
|
opacity: 0.3,
|
|
76594
76683
|
borderRadius: 'normal',
|
|
76595
|
-
} }), jsxs(Flex, { className: "row-container premium", sx: { zIndex: 1 }, children: [jsx$2("img", { src: `/images/launch/${tierName === null || tierName === void 0 ? void 0 : tierName.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { color: 'success', mr: '3px', fontWeight: 700 }, children:
|
|
76684
|
+
} }), jsxs(Flex, { className: "row-container premium", sx: { zIndex: 1 }, children: [jsx$2("img", { src: `/images/launch/${tierName === null || tierName === void 0 ? void 0 : tierName.toLowerCase()}.png`, alt: "minTier", style: { width: '21px', height: '21px', marginRight: '3px', zIndex: 1 } }), jsx$2(Flex, { sx: { color: 'success', mr: '3px', fontWeight: 700 }, children: `${(_c = trueBondPrice === null || trueBondPrice === void 0 ? void 0 : trueBondPrice.boost) !== null && _c !== void 0 ? _c : 0}%` }), "Boost:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsx$2(Flex, { children: TooltipText.Boost }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, 0%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: `row-container premium-val premium-positive`, children: ["$ ", formatUSDNumber(boostAmount.toString())] }))] })), !!bondData.feeInPayout && (jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container premium", children: ["Fee:", jsx$2(TooltipBubble, { className: "tooltip-bubble", body: jsxs(Flex, { children: ["This is the platform fee (", bondData.feeInPayout, "%)."] }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: jsx$2(Flex, { className: "row-container premium-icon", children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: `row-container premium-val`, children: ["$ ", formatUSDNumber(feeUSD.toString())] }))] })), jsxs(Flex, { className: "text-container row", children: [jsxs(Flex, { className: "row-container get", children: ["You Get (over ", vestingTime(((_d = bondData === null || bondData === void 0 ? void 0 : bondData.vestingTerm) !== null && _d !== void 0 ? _d : 0) - ((_e = bondData.vestingCliff) !== null && _e !== void 0 ? _e : 0)).days, " days):"] }), isZap && fetchingZapQuote ? (jsx$2(Dots, {})) : isZap && zapError ? ('-') : (jsxs(Flex, { className: "row-container get-val", children: [formatNumber$1(estimatedOutputAmount.toString()), " ", bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName, " = $", ' ', formatUSDNumber(estimatedOutputUSD.toString())] }))] })] }));
|
|
76596
76685
|
};
|
|
76597
76686
|
|
|
76598
76687
|
const ProjectDescription = ({ description, isProjectView }) => {
|
|
@@ -77138,7 +77227,7 @@ const CheckUrl = () => {
|
|
|
77138
77227
|
const ChainTitle = ({ chain, pt, hideTitles, isOpen, }) => {
|
|
77139
77228
|
var _a;
|
|
77140
77229
|
const isMobile = useIsMobile();
|
|
77141
|
-
return (jsxs(Flex, { className: "chaintitle", sx: {
|
|
77230
|
+
return (jsxs(Flex, { id: `${NETWORK_LABEL[chain].toLowerCase()}`, className: "chaintitle", sx: {
|
|
77142
77231
|
pt,
|
|
77143
77232
|
pb: '10px',
|
|
77144
77233
|
color: 'textDisabledButton',
|
|
@@ -77191,6 +77280,7 @@ const NETWORK_COLORS = {
|
|
|
77191
77280
|
[types.ChainId.CROSSFI]: '#7c80844d',
|
|
77192
77281
|
[types.ChainId.MONAD_TESTNET]: '#836EF94d',
|
|
77193
77282
|
[types.ChainId.SONIC]: '#fb9a4c4d',
|
|
77283
|
+
[types.ChainId.BERACHAIN]: '#783e244d',
|
|
77194
77284
|
};
|
|
77195
77285
|
const BondRow = ({ bond }) => {
|
|
77196
77286
|
var _a, _b, _c, _d, _e;
|
|
@@ -77612,12 +77702,29 @@ const Bonds = () => {
|
|
|
77612
77702
|
const { data: tokenPrices } = useTokenPrices();
|
|
77613
77703
|
const SDKConfig = useSDKConfig();
|
|
77614
77704
|
useEffect(() => {
|
|
77705
|
+
const hash = window.location.hash;
|
|
77706
|
+
if ((bondData === null || bondData === void 0 ? void 0 : bondData.length) > 0 &&
|
|
77707
|
+
(tokenPrices === null || tokenPrices === void 0 ? void 0 : tokenPrices.length) > 0 &&
|
|
77708
|
+
(allBonds === null || allBonds === void 0 ? void 0 : allBonds.length) > 0 &&
|
|
77709
|
+
hash) {
|
|
77710
|
+
const tryScroll = () => {
|
|
77711
|
+
const element = document.querySelector(hash);
|
|
77712
|
+
if (element) {
|
|
77713
|
+
const y = element.getBoundingClientRect().top + window.scrollY - 70;
|
|
77714
|
+
window.scrollTo({ top: y, behavior: 'smooth' });
|
|
77715
|
+
}
|
|
77716
|
+
else {
|
|
77717
|
+
setTimeout(tryScroll, 50);
|
|
77718
|
+
}
|
|
77719
|
+
};
|
|
77720
|
+
tryScroll();
|
|
77721
|
+
}
|
|
77615
77722
|
//@ts-ignore
|
|
77616
77723
|
if ((bondData === null || bondData === void 0 ? void 0 : bondData.length) === 0 && (tokenPrices === null || tokenPrices === void 0 ? void 0 : tokenPrices.length) > 0 && (allBonds === null || allBonds === void 0 ? void 0 : allBonds.length) > 0) {
|
|
77617
77724
|
console.log('Real time api call failed, triggering fallback strategy');
|
|
77618
77725
|
refetchBondsData();
|
|
77619
77726
|
}
|
|
77620
|
-
}, [bondData === null || bondData === void 0 ? void 0 : bondData.length, tokenPrices === null || tokenPrices === void 0 ? void 0 : tokenPrices.length]);
|
|
77727
|
+
}, [bondData === null || bondData === void 0 ? void 0 : bondData.length, tokenPrices === null || tokenPrices === void 0 ? void 0 : tokenPrices.length, allBonds === null || allBonds === void 0 ? void 0 : allBonds.length]);
|
|
77621
77728
|
// State
|
|
77622
77729
|
const [sortConfig, setSortConfig] = useState({ key: 'bonus', direction: 'desc' });
|
|
77623
77730
|
const [searchQuery, setSearchQuery] = useState('');
|
|
@@ -8,7 +8,8 @@ declare enum NetworkNames {
|
|
|
8
8
|
BASE = "bas",
|
|
9
9
|
AVAX = "ava",
|
|
10
10
|
BLAST = "bls",
|
|
11
|
-
SONIC = "son"
|
|
11
|
+
SONIC = "son",
|
|
12
|
+
BERACHAIN = "ber"
|
|
12
13
|
}
|
|
13
14
|
export declare const getChainParam: (chain?: ChainId) => NetworkNames | null;
|
|
14
15
|
export declare const getLpType: (protocol?: Protocols) => "ichi" | "solidly" | "univ2" | "curve" | null;
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ape Bond SDK",
|
|
4
4
|
"author": "Ape Bond",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.48",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"yalc": "^1.0.0-pre.53"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@ape.swap/apeswap-lists": "
|
|
60
|
+
"@ape.swap/apeswap-lists": "4.3.6",
|
|
61
61
|
"@emotion/react": "11.11.4",
|
|
62
62
|
"bignumber.js": "^9.1.2",
|
|
63
63
|
"chart.js": "4.2.0",
|