Skip to content

Commit 980a51d

Browse files
committed
Merge branch 'develop' into erc-20-bridge
2 parents aafa613 + a3de1ac commit 980a51d

22 files changed

Lines changed: 180 additions & 127 deletions

File tree

.changeset/curvy-maps-rush.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/forty-flies-vanish.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/red-dragons-turn.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tasty-bats-tan.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/frontend/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# frontend
22

3+
## 1.1.38
4+
5+
### Patch Changes
6+
7+
- 1974ce47: chore: USDT and WBTC on BOB migration
8+
- ba60a4a8: feat(SOV-5169): new bob pools routes
9+
- ab168f4e: SOV-5152: Update packages
10+
- 0d399ab3: SOV-5155: update display value
11+
- 682e42cf: SOV-5129: Fix Fast BTC address validation
12+
- Updated dependencies [0b4f5048]
13+
- Updated dependencies [1974ce47]
14+
- Updated dependencies [ba60a4a8]
15+
- Updated dependencies [ab168f4e]
16+
- Updated dependencies [e8cf255f]
17+
- @sovryn/utils@0.0.3
18+
- @sovryn/contracts@1.2.6
19+
- @sovryn/sdk@2.0.8
20+
- @sovryn/ui@1.0.33
21+
322
## 1.1.37
423

524
### Patch Changes

apps/frontend/package.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "frontend",
3-
"version": "1.1.37",
3+
"version": "1.1.38",
44
"homepage": ".",
55
"private": true,
66
"dependencies": {
77
"@apollo/client": "3.7.1",
8-
"@apollo/react-hooks": "4.0.0",
98
"@gobob/bob-sdk": "^3.1.7-alpha0",
109
"@gobob/sats-wagmi": "^0.3.21-alpha1",
1110
"@loadable/component": "5.15.2",
@@ -27,35 +26,34 @@
2726
"@sovryn/sdk": "*",
2827
"@sovryn/tailwindcss-config": "*",
2928
"@sovryn/ui": "*",
30-
"@sovryn/utils": "0.0.2",
29+
"@sovryn/utils": "0.0.3",
3130
"@tanstack/react-query": "^5.59.0",
3231
"@uniswap/permit2-sdk": "1.2.0",
3332
"bitcoin-address-validation": "2.2.1",
3433
"chart.js": "4.1.1",
35-
"classnames": "2.3.2",
36-
"date-fns": "2.30.0",
37-
"dayjs": "1.11.7",
34+
"classnames": "2.5.1",
35+
"date-fns": "4.1.0",
36+
"dayjs": "1.11.18",
3837
"env-cmd": "10.1.0",
3938
"ethers": "5.7.1",
4039
"ethers-eip712": "0.2.0",
4140
"graphql": "16.6.0",
4241
"i18next": "22.0.4",
4342
"i18next-browser-languagedetector": "7.0.0",
4443
"immer": "^10.0.3",
45-
"nanoid": "4.0.0",
44+
"nanoid": "5.1.6",
4645
"qrcode.react": "3.1.0",
4746
"react": "18.2.0",
48-
"react-chartjs-2": "5.1.0",
49-
"react-countup": "6.4.0",
50-
"react-day-picker": "8.8.0",
47+
"react-chartjs-2": "5.3.0",
48+
"react-countup": "6.5.3",
49+
"react-day-picker": "9.11.0",
5150
"react-dom": "18.2.0",
52-
"react-helmet-async": "1.3.0",
51+
"react-helmet-async": "2.0.5",
5352
"react-i18next": "12.0.0",
5453
"react-markdown": "8.0.7",
5554
"react-multi-carousel": "2.8.4",
5655
"react-router-dom": "6.4.2",
5756
"react-scripts": "5.0.1",
58-
"react-slider": "2.0.6",
5957
"react-timer-hook": "3.0.7",
6058
"reactjs-localstorage": "1.0.1",
6159
"remark-gfm": "3.0.1",

apps/frontend/src/app/3_organisms/Header/components/BridgeMenuItem/BridgeMenuItem.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import classNames from 'classnames';
44
import { t } from 'i18next';
55

66
import { ChainIds } from '@sovryn/ethers-provider';
7-
import { Menu, MenuItem, Tooltip } from '@sovryn/ui';
7+
import { Badge, Menu, MenuItem, Tooltip } from '@sovryn/ui';
88

99
import { POWPEG, RSK_FAUCET } from '../../../../../constants/general';
1010
import { BOB } from '../../../../../constants/infrastructure/bob';
@@ -141,7 +141,12 @@ export const BridgeMenuItem: FC<BridgeMenuItemProps> = ({ dataAttribute }) => {
141141
/>
142142
<MenuItem
143143
key={t('header.nav.bridges.subMenu.btcBridge')}
144-
text={t('header.nav.bridges.subMenu.btcBridge')}
144+
text={
145+
<span className="flex items-center gap-1.5">
146+
{t('header.nav.bridges.subMenu.btcBridge')}
147+
<Badge content={t('common.deprecated')} className="px-1.5" />
148+
</span>
149+
}
145150
label={
146151
!isMobile &&
147152
t('header.nav.bridges.subMenu.btcBridgeDescription')

apps/frontend/src/app/5_pages/MarketMakingPage/components/AmbientMarketMaking/components/BOBMigrationBanner/BOBMigrationBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const BOBMigrationBanner: FC = () => {
2424
<Button
2525
text={t(translations.common.learnMore)}
2626
style={ButtonStyle.ghost}
27-
href="/"
27+
href="https://app.gobob.xyz/en/migrate"
2828
hrefExternal
2929
/>
3030
</div>

apps/frontend/src/app/5_pages/MarketMakingPage/components/BobDepositModal/hooks/useGetPoolInfo.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import { useCallback } from 'react';
44

55
import { Pool } from '@sovryn/sdk';
66

7+
import { BOB } from '../../../../../../constants/infrastructure/bob';
78
import { useCurrentChain } from '../../../../../../hooks/useChainStore';
8-
import { loadIndexer } from '../../../../../../lib/indexer';
9+
import { Environments } from '../../../../../../types/global';
10+
import { isMainnet } from '../../../../../../utils/helpers';
911
import { useGetPool } from '../../../hooks/useGetPool';
1012

1113
export const useGetPoolInfo = (pool: Pool) => {
@@ -17,7 +19,10 @@ export const useGetPoolInfo = (pool: Pool) => {
1719
return '0';
1820
}
1921

20-
const poolStatsFreshEndpoint = loadIndexer(chainId).url + '/pool_stats?';
22+
const poolStatsFreshEndpoint =
23+
(isMainnet()
24+
? BOB.indexer[Environments.Mainnet]
25+
: BOB.indexer[Environments.Testnet]) + '/pool_stats?';
2126

2227
return fetch(
2328
poolStatsFreshEndpoint +

apps/frontend/src/locales/en/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"withdrawal": "Withdrawal"
7272
},
7373
"learnMore": "Learn more",
74-
"invalidAmountError": "Exceeds maximum amount"
74+
"invalidAmountError": "Exceeds maximum amount",
75+
"deprecated": "deprecated"
7576
},
7677
"connectWalletButton": {
7778
"connect": "Get started",

0 commit comments

Comments
 (0)