Skip to content

Commit fd85b5f

Browse files
authored
Merge branch 'main' into topup
2 parents cf36d08 + b123fe1 commit fd85b5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3210
-2849
lines changed

.env.example

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ REACT_APP_FEATURE_FLAG_TBTC_V2=true
88
REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true
99
REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true
1010
REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false
11-
REACT_APP_FEATURE_FLAG_POSTHOG=false
12-
REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT
1311
REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true
12+
13+
REACT_APP_FEATURE_FLAG_GOOGLE_TAG_MANAGER=false
14+
REACT_APP_GOOGLE_TAG_MANAGER_ID=$GOOGLE_TAG_MANAGER_ID
15+
16+
REACT_APP_FEATURE_FLAG_POSTHOG=false
17+
18+
REACT_APP_FEATURE_FLAG_SENTRY=false
1419
REACT_APP_SENTRY_DSN=$SENTRY_DSN
1520

1621
REACT_APP_ELECTRUM_PROTOCOL=$ELECTRUM_PROTOCOL

.env.production

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ REACT_APP_FEATURE_FLAG_TBTC_V2=true
77
REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true
88
REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true
99
REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false
10+
REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true
11+
12+
REACT_APP_FEATURE_FLAG_GOOGLE_TAG_MANAGER=$GOOGLE_TAG_MANAGER_SUPPORT
13+
REACT_APP_GOOGLE_TAG_MANAGER_ID=$GOOGLE_TAG_MANAGER_ID
14+
1015
REACT_APP_FEATURE_FLAG_POSTHOG=$POSTHOG_SUPPORT
1116
REACT_APP_POSTHOG_API_KEY=$POSTHOG_API_KEY
1217
REACT_APP_POSTHOG_HOSTNAME_HTTP=$POSTHOG_HOSTNAME_HTTP
18+
1319
REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT
14-
REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true
1520
REACT_APP_SENTRY_DSN=$SENTRY_DSN
1621

1722
REACT_APP_ELECTRUM_PROTOCOL=$ELECTRUM_PROTOCOL

.github/workflows/dashboard-mainnet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
SENTRY_SUPPORT: true
5959
SENTRY_DSN: ${{ secrets.MAINNET_SENTRY_DSN }}
6060
WALLET_CONNECT_PROJECT_ID: ${{ secrets.WALLET_CONNECT_PROJECT_ID }}
61+
GOOGLE_TAG_MANAGER_SUPPORT: false
62+
GOOGLE_TAG_MANAGER_ID: ${{ secrets.GOOGLE_TAG_MANAGER_ID }}
6163

6264
- name: Build
6365
if: github.event_name == 'release'
@@ -77,6 +79,8 @@ jobs:
7779
SENTRY_SUPPORT: true
7880
SENTRY_DSN: ${{ secrets.MAINNET_SENTRY_DSN }}
7981
WALLET_CONNECT_PROJECT_ID: ${{ secrets.WALLET_CONNECT_PROJECT_ID }}
82+
GOOGLE_TAG_MANAGER_SUPPORT: true
83+
GOOGLE_TAG_MANAGER_ID: ${{ secrets.GOOGLE_TAG_MANAGER_ID }}
8084

8185
- uses: actions/upload-artifact@v3
8286
with:

.github/workflows/reusable-build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
- name: Resolve contracts
139139
shell: bash
140140
run: |
141-
yarn upgrade \
141+
yarn upgrade --ignore-scripts \
142142
@threshold-network/solidity-contracts@${{ steps.set-packages-versions.outputs.threshold-contracts-version }} \
143143
@keep-network/keep-core@${{ inputs.environment }} \
144144
@keep-network/keep-ecdsa@${{ inputs.environment }} \

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ git config --global url."https://".insteadOf git://
5656

5757
Ref: https://github.com/keep-network/tbtc-v2/pull/403
5858

59-
Instead of the goerli contracts above you can also use `dapp-development-sepolia` contracts. They offer shorter durations for some specific elements in the contracts in comparison to goerli/mainnet and also allow to manually control mint and unmint process of tbtc-v2 (for more information see please see https://github.com/keep-network/tbtc-v2/pull/403) To install sepolia-dev contracts run:
59+
Instead of the `sepolia` contracts above you can also use `dapp-development-sepolia` contracts. They offer shorter durations for some specific elements in the contracts in comparison to `sepolia`/`mainnet` and also allow to manually control mint and unmint process of `tbtc-v2` (for more information see please see https://github.com/keep-network/tbtc-v2/pull/403). To install sepolia-dev contracts run:
6060

6161
```
6262
yarn @keep-network/keep-core@sepolia \
@@ -118,8 +118,14 @@ REACT_APP_FEATURE_FLAG_TBTC_V2=true
118118
REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true
119119
REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true
120120
REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false
121+
REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true
122+
123+
REACT_APP_FEATURE_FLAG_GOOGLE_TAG_MANAGER=false
124+
REACT_APP_GOOGLE_TAG_MANAGER_ID=$GOOGLE_TAG_MANAGER_ID
125+
121126
REACT_APP_FEATURE_FLAG_POSTHOG=false
122-
REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT
127+
128+
REACT_APP_FEATURE_FLAG_SENTRY=false
123129
REACT_APP_SENTRY_DSN=$SENTRY_DSN
124130
125131
REACT_APP_ELECTRUM_PROTOCOL=wss

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "token-dashboard",
3-
"version": "1.15.0-pre",
3+
"version": "1.16.0-pre",
44
"private": true,
55
"engines": {
66
"node": ">=16"

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ import { useSentry } from "./hooks/sentry"
6262
import { useIsEmbed } from "./hooks/useIsEmbed"
6363
import TBTC from "./pages/tBTC"
6464
import { useDetectIfEmbed } from "./hooks/useDetectIfEmbed"
65+
import { useGoogleTagManager } from "./hooks/google-tag-manager"
6566

6667
const Web3EventHandlerComponent = () => {
6768
useSubscribeToVendingMachineContractEvents()
@@ -175,6 +176,7 @@ const AppBody = () => {
175176
}, [dispatch])
176177

177178
useDetectIfEmbed()
179+
useGoogleTagManager()
178180
usePosthog()
179181
useCheckBonusEligibility()
180182
useFetchStakingRewards()

src/components/AnnouncementBanner/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from "@threshold-network/components"
1515
import ButtonLink from "../ButtonLink"
1616

17-
export type AnnouncementBannerContainerProps = {
17+
type AnnouncementBannerContainerProps = {
1818
variant?: "primary" | "secondary"
1919
size?: "sm" | "lg"
2020
hideCloseBtn?: boolean

src/components/Modal/DeauthorizeApplicationModal/InititateDeauthorization.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@ const InitiateDeauthorization: FC<
4343
isOperatorInPool,
4444
operator,
4545
}) => {
46-
const shouldUpdateOperatorStatusAfterInitiation =
47-
isOperatorInPool !== undefined && !isOperatorInPool
46+
let shouldUpdateOperatorStatusAfterInitiation
47+
if (stakingAppName === "taco") {
48+
shouldUpdateOperatorStatusAfterInitiation = false
49+
} else {
50+
shouldUpdateOperatorStatusAfterInitiation =
51+
isOperatorInPool !== undefined && !isOperatorInPool
52+
}
4853
const { sendTransaction } = useInitiateDeauthorization(
4954
stakingAppName,
5055
shouldUpdateOperatorStatusAfterInitiation

src/components/Modal/SelectWalletModal/ConnectCoinbase.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { FC } from "react"
22
import { useWeb3React } from "@web3-react/core"
33
import { WalletConnectionModalBase } from "./components"
4-
import { ConnectionError, WalletType } from "../../../enums"
4+
import { ConnectionError } from "../../../enums"
55
import { coinbaseConnector } from "../../../web3/connectors"
66
import CoinbaseStatusAlert from "./components/CoinbaseStatusAlert"
77
import { CoinbaseWallet } from "../../../static/icons/CoinbaseWallet"
@@ -34,7 +34,6 @@ const ConnectCoinbase: FC<{ goBack: () => void; closeModal: () => void }> = ({
3434
tryAgain={
3535
connectionRejected ? () => activate(coinbaseConnector) : undefined
3636
}
37-
walletType={WalletType.Coinbase}
3837
>
3938
<CoinbaseStatusAlert
4039
connectionRejected={connectionRejected}

0 commit comments

Comments
 (0)