Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pause op #2498

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import { WarningMessage } from '../../../Warning'
*/

/** Banner start time */
const MAINTENANCE_BANNERS_START = new Date(Date.UTC(2024, 3, 11, 0, 0, 0))
const MAINTENANCE_BANNERS_START = new Date(Date.UTC(2024, 3, 15, 0, 0, 0))
/** Countdown Progress Bar, Bridge Warning Message + Bridge Pause start time */
const MAINTENANCE_START_DATE = new Date(Date.UTC(2024, 3, 11, 0, 0, 0))
const MAINTENANCE_START_DATE = new Date(Date.UTC(2024, 3, 15, 0, 0, 0))
/** Ends Banner, Countdown Progress Bar, Bridge Warning Message, Bridge Pause */
const MAINTENANCE_END_DATE = new Date(Date.UTC(2024, 3, 11, 20, 20, 0))
const MAINTENANCE_END_DATE = new Date(Date.UTC(2024, 3, 16, 20, 20, 0))

export const MaintenanceBanner = () => {
const { isComplete } = getCountdownTimeStatus(
Expand All @@ -35,7 +35,7 @@ export const MaintenanceBanner = () => {
bannerId="03262024-pause-blast-banner"
bannerContents={
<>
<p className="m-auto">Bridging on Metis is temporarily paused.</p>
<p className="m-auto">Bridging on Optimism is temporarily paused.</p>
</>
}
startDate={MAINTENANCE_BANNERS_START}
Expand All @@ -49,7 +49,7 @@ export const MaintenanceWarningMessage = () => {

const isWarningChain = isChainIncluded(
[fromChainId, toChainId],
[METIS.id] // Update for Chains to show warning on
[OPTIMISM.id] // Update for Chains to show warning on
)

const { isComplete } = getCountdownTimeStatus(
Expand All @@ -64,7 +64,7 @@ export const MaintenanceWarningMessage = () => {
<WarningMessage
message={
<>
<p>Bridging on Metis is temporarily paused.</p>
<p>Bridging on Optimism is temporarily paused.</p>
</>
}
/>
Expand All @@ -79,14 +79,14 @@ export const useMaintenanceCountdownProgress = () => {

const isCurrentChain = isChainIncluded(
[fromChainId, toChainId],
[METIS.id] // Update for Chains to show maintenance on
[OPTIMISM.id] // Update for Chains to show maintenance on
)

const {
isPending: isMaintenancePending,
EventCountdownProgressBar: MaintenanceCountdownProgressBar,
} = useEventCountdownProgressBar(
'Bridging on METIS paused.',
'Bridging on Optimism paused.',
MAINTENANCE_START_DATE, // Countdown Bar will automatically appear after start time
MAINTENANCE_END_DATE // Countdown Bar will automatically disappear when end time is reached
)
Expand Down
2 changes: 1 addition & 1 deletion services/cctp-relayer/external/synapse-contracts
Submodule synapse-contracts updated 353 files
Loading