-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor/tokens-lib-wiring-4' of https://github.com/cow…
…protocol/cowswap into refactor/tokens-lib-wiring-5
- Loading branch information
Showing
182 changed files
with
3,543 additions
and
1,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
apps/cowswap-frontend/src/api/gnosisProtocol/getIsOrderBookTypedError.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { OrderBookApiError } from '@cowprotocol/cow-sdk' | ||
|
||
import { ApiErrorObject } from './errors/OperatorError' | ||
|
||
export type OrderBookTypedError = OrderBookApiError<ApiErrorObject> | ||
|
||
export function getIsOrderBookTypedError(e: any): e is OrderBookTypedError { | ||
const error = e as OrderBookTypedError | ||
return error.body.errorType !== undefined && error.body.description !== undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
apps/cowswap-frontend/src/common/hooks/featureFlags/useIsPermitEnabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
apps/cowswap-frontend/src/common/pure/PoweredFooter/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { COW_PROTOCOL_LINK } from '@cowprotocol/common-const' | ||
import { ExternalLink } from '@cowprotocol/ui' | ||
|
||
import { Trans } from '@lingui/macro' | ||
import cowIcon from 'assets/logo/cow-icon.svg' | ||
import SVG from 'react-inlinesvg' | ||
import styled from 'styled-components/macro' | ||
|
||
import { UI } from 'common/constants/theme' | ||
|
||
const Wrapper = styled.div` | ||
display: flex; | ||
flex-flow: row wrap; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: var(${UI.FONT_SIZE_SMALLER}); | ||
padding: 4px 0; | ||
` | ||
|
||
const StyledExternalLink = styled(ExternalLink)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 4px; | ||
color: var(${UI.COLOR_TEXT2}); | ||
> svg { | ||
--size: 14px; | ||
width: var(--size); | ||
height: var(--size); | ||
} | ||
> svg > g > path { | ||
fill: var(${UI.COLOR_TEXT2}); | ||
} | ||
` | ||
|
||
export function PoweredFooter() { | ||
return ( | ||
<Wrapper> | ||
<StyledExternalLink href={COW_PROTOCOL_LINK}> | ||
<SVG src={cowIcon} title="CoW Protocol" /> | ||
<Trans>Powered by CoW Protocol</Trans> | ||
</StyledExternalLink> | ||
</Wrapper> | ||
) | ||
} |
Oops, something went wrong.