Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

[RELEASE ⛰️ ] v1.10.0-RC.0 #2289

Merged
merged 132 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
325e3ea
Basic claim (#2000)
anxolin Dec 17, 2021
fccf884
Added ClaimType type (#2025)
alfetopito Dec 21, 2021
b1628bb
vCow contracts (#2029)
alfetopito Dec 22, 2021
52b416f
Claim hooks part 0 (#2032)
alfetopito Dec 23, 2021
d2060bb
Claim hooks pt 1 - useClaimCallback (#2041)
alfetopito Dec 24, 2021
956c342
Claim flow styles (#2042)
fairlighteth Jan 3, 2022
8d53e6b
Claim hooks 2 - ready to fetch (#2043)
alfetopito Jan 3, 2022
c053cf2
Real airdrop repo (#2052)
alfetopito Jan 5, 2022
319d7a9
Claim page 2 rebased (#2054)
W3stside Jan 5, 2022
42e307a
Updated claim enum usage and some other small changes
nenadV91 Jan 6, 2022
309753c
Updated claim enum and fix language selector
nenadV91 Jan 6, 2022
efcb9ad
Claim hooks 3 (#2056)
alfetopito Jan 6, 2022
0bd3858
Pr2052/follow up (#2055)
alfetopito Jan 6, 2022
6272c54
[Claim] Profile: vCOW balance (#2051)
alongoni Jan 7, 2022
efc1af0
Claim hooks 4 exclude expired claims (#2059)
alfetopito Jan 7, 2022
48d1b7a
[Claim] Context state (#2064)
W3stside Jan 11, 2022
f92674b
[Claim refactor index] - Part 1 - Extrapolate 5 small components (sum…
W3stside Jan 11, 2022
224dab3
Claim refactor index redux (#2077)
nenadV91 Jan 11, 2022
9af6cbf
Update contract
anxolin Jan 11, 2022
ab29d42
Merge pull request #2086 from gnosis/update-contract
nenadV91 Jan 11, 2022
be65cac
vCOW on profile (#2062)
alfetopito Jan 11, 2022
5d7aa61
Merge branch 'develop' into claim
anxolin Jan 12, 2022
fee0156
Merge pull request #2124 from gnosis/merge-develop-to-claim
anxolin Jan 12, 2022
ddf8ca6
Update xdai and wxdai token logo (#2122)
alongoni Jan 13, 2022
8a83dd9
[CLAIM] Pending claim UI (#2049)
W3stside Jan 13, 2022
f2765ea
Updating vCOW contract address to 0x71A377EC0026A8E35AfD082d54E2f62d3…
alfetopito Jan 13, 2022
51cde4f
Refactor claim timestamp hooks (#2127)
alfetopito Jan 13, 2022
2deafd3
[Claim] Approve flow - GNO approve (#2130)
W3stside Jan 13, 2022
f3d027b
get the chainId specific GNO (#2143)
W3stside Jan 13, 2022
8ef567f
[Claim refactor] Table / InvestmentFlow / Status (#2138)
W3stside Jan 13, 2022
f560da0
Add claim finalized middleware (#2126)
anxolin Jan 14, 2022
75d4d33
Change redux store on success claiming (#2141)
anxolin Jan 14, 2022
9899670
Replace Gnosis Protocol --> CoW Protocol (#2140)
alongoni Jan 14, 2022
84a384d
[Claim refactor] - Split InvestmentFlow and minor slider impl. (#2144)
W3stside Jan 14, 2022
bd559e6
[Claim - Approve] -> USDC (#2154)
W3stside Jan 14, 2022
e492c21
Small claim fixes (#2153)
alfetopito Jan 14, 2022
37fcffd
Use theme colors. (#2113)
fairlighteth Jan 14, 2022
5d21047
[Claim Approve] Approve button async logic and styles (#2155)
W3stside Jan 14, 2022
2830c00
Fixing assumtion regarding data format stored on redux (#2159)
alfetopito Jan 15, 2022
d1cd9a6
Fix free claims (#2160)
alfetopito Jan 15, 2022
4c41c57
2139/claim identicon (#2161)
alfetopito Jan 15, 2022
a07c696
WIP styling investment flow. (#2152)
fairlighteth Jan 15, 2022
345c482
Moved invest data redux
nenadV91 Jan 15, 2022
1346e0b
Updated invest percentage logic
nenadV91 Jan 15, 2022
af68256
[Claim - ClaimTable - Pending] - Show loader and minor style change (…
W3stside Jan 16, 2022
edd210a
Merge branch 'master' into develop
nenadV91 Jan 17, 2022
00195a9
new progressbar component of claim branch && more values available (#…
maria-vslvn Jan 17, 2022
2f2f1cb
Wording change and CSS cleanup. (#2170)
fairlighteth Jan 17, 2022
0b6b4b7
Fix native investment (#2123)
alfetopito Jan 17, 2022
706011e
remove progress bar from Profile page (#2177)
ramirotw Jan 17, 2022
325efc1
2120/claim countdowns (#2158)
alfetopito Jan 17, 2022
46410cc
PR updates
nenadV91 Jan 18, 2022
d90b526
Merge branch 'claim' into claim-investment-flow-2
fairlighteth Jan 18, 2022
b7f6eee
Pr2160/follow up (#2176)
alfetopito Jan 18, 2022
1599ccf
2120/refactor time hooks (#2179)
alfetopito Jan 18, 2022
6277b03
Use airdrop claim end date (#2178)
alfetopito Jan 18, 2022
ba6ff22
Fix bad merge (#2184)
anxolin Jan 18, 2022
8502d80
Claim style improve 10 (#2174)
fairlighteth Jan 18, 2022
172fe43
Rename constacts (#2180)
anxolin Jan 18, 2022
704c508
Update for initInvestFlowData
nenadV91 Jan 18, 2022
9f448bf
Merge branch 'claim-investment-flow-2' of github.com:gnosis/cowswap i…
nenadV91 Jan 18, 2022
fd056b1
Merge branch 'claim' into claim-investment-flow-2
nenadV91 Jan 18, 2022
95fa842
Invest amount calculation update
nenadV91 Jan 18, 2022
45c0b23
Merge pull request #2163 from gnosis/claim-investment-flow-2
nenadV91 Jan 18, 2022
1c15ca5
Claim dynamic prices (#2182)
alfetopito Jan 18, 2022
842d37d
Claim investment (#2191)
anxolin Jan 18, 2022
a57a283
New claim contract abi (#2194)
alfetopito Jan 18, 2022
7029923
Claim change account (#2173)
W3stside Jan 18, 2022
7099b6f
[Claim] Rejected/failed/errors in claim flow (#2169)
W3stside Jan 18, 2022
7751865
[Claim-Reject-Modals] Fixes empty modal (#2204)
W3stside Jan 18, 2022
a657285
Created type for price fn names (#2205)
alfetopito Jan 19, 2022
391f26c
Revert "New claim contract abi (#2194)"
anxolin Jan 19, 2022
2146760
Improve input field claim (#2186)
fairlighteth Jan 19, 2022
8c95bba
Fix error on bad merge
anxolin Jan 19, 2022
5d43dc5
Merge branch claim-investment-flow-3 into claim
nenadV91 Jan 19, 2022
f35c12f
[CLAIM] Button refactor and error fix (#2218)
W3stside Jan 19, 2022
e8dbe09
Change contract (#2210)
anxolin Jan 19, 2022
a116ab5
Claim last investment page (#2227)
alfetopito Jan 20, 2022
5aab634
Misc styling (#2228)
fairlighteth Jan 20, 2022
172b7ce
Claim instead of claim (#2220)
anxolin Jan 20, 2022
eca3a88
Simplify error messages (#2217)
anxolin Jan 20, 2022
9615e5f
Add link claiming (#2224)
anxolin Jan 20, 2022
9367f94
Fix for selectedAll field (#2226)
nenadV91 Jan 20, 2022
ffb70c8
Hide claim button for claiming/claimed states (#2222)
anxolin Jan 20, 2022
9f4605d
Merge branch 'claim' into develop
anxolin Jan 20, 2022
ef171d2
Claim style improve 20 (#2232)
fairlighteth Jan 20, 2022
81be361
Fixes the process console error (#2231)
nenadV91 Jan 20, 2022
d775d94
Claim pending icon spinner and show timezone. (#2235)
fairlighteth Jan 20, 2022
b4ea095
Pr2232/follow up (#2236)
alfetopito Jan 20, 2022
0a41de3
Claim partial investments (#2234)
nenadV91 Jan 21, 2022
0132fe7
Update address error msg text (#2248)
nenadV91 Jan 21, 2022
edac11d
Fix for investment amount reset when you go back (#2247)
nenadV91 Jan 21, 2022
d0cfce8
Pr2235/follow up (#2239)
alfetopito Jan 21, 2022
77a9d57
Change account fixes (#2238)
anxolin Jan 21, 2022
7b5ed4f
Total vcow on investment summary (#2237)
alfetopito Jan 21, 2022
a76e668
Consistent locale on claim (#2240)
alfetopito Jan 21, 2022
5bbc4d8
Fix duplicate CSS properties. (#2243)
fairlighteth Jan 21, 2022
26e7540
Disable claim review on errors (#2241)
alfetopito Jan 21, 2022
56fbeb1
Create and implement a Stepper component. (#2246)
fairlighteth Jan 21, 2022
b3c8e1b
Merge branch 'master' into develop
anxolin Jan 22, 2022
6499a5b
Add external links to const. (#2252)
fairlighteth Jan 22, 2022
4603884
Disable claim review on zero or not approved (#2250)
nenadV91 Jan 22, 2022
b9523af
Deployment in all networks (#2258)
anxolin Jan 22, 2022
ca3b4bd
Claim invest general error msg (#2254)
alfetopito Jan 22, 2022
bb7b1a1
Lowercasing searched address to find it on chunk file (#2260)
alfetopito Jan 23, 2022
0073200
Merge branch 'master' into develop
anxolin Jan 23, 2022
2ffd5fe
Add Recipient toggle (#2013)
maria-vslvn Jan 24, 2022
f5fe248
Dropdown component for vCOW balance (#2156)
alongoni Jan 24, 2022
f4ae160
Claimed amount on success screen (#2253)
alfetopito Jan 24, 2022
b1335dc
Warning claim too much eth (#2256)
alfetopito Jan 24, 2022
aa5a8a2
Add moo sounds (#2259)
anxolin Jan 24, 2022
35ba6b3
Add badges and link to etherscan (#2264)
anxolin Jan 24, 2022
b7f82f0
Fix Gnosis Safe claiming Workflow (#2277)
anxolin Jan 24, 2022
71ecc44
Simplify links (#2266)
anxolin Jan 24, 2022
bdb4403
Add link to the profile (#2269)
anxolin Jan 24, 2022
202db80
Change text (#2268)
anxolin Jan 24, 2022
88c3ce0
Add token to metamask (#2267)
anxolin Jan 24, 2022
142baaf
add paragraphs (#2278)
anxolin Jan 24, 2022
f4dd347
Add link read more in footer, and inform about changing networks (#2265)
anxolin Jan 24, 2022
456c121
Responsive balance indicator. (#2272)
fairlighteth Jan 24, 2022
1a0e727
Bump nanoid from 3.1.30 to 3.2.0 (#2257)
dependabot[bot] Jan 25, 2022
49425bf
Set initial claim invest input amount to an empty string (#2280)
alfetopito Jan 25, 2022
f58f3f0
vCOW EVERYWHERE! (not vCoW) (#2283)
alfetopito Jan 25, 2022
9b3cde3
Pr2256/follow up (#2279)
alfetopito Jan 25, 2022
19adb51
Check claims disconnected (#2281)
alfetopito Jan 25, 2022
a8d90c6
[Claim-Approve] Hook optional amountToCheckAgainstAllowance param (#2…
W3stside Jan 25, 2022
7355deb
[Claim] Revoke Approval hook (#2249)
W3stside Jan 25, 2022
22eb955
Disable vCow balance dropdown on profile page (#2291)
nenadV91 Jan 25, 2022
435874c
Disable claiming: BARN / PROD / ENS (#2298)
anxolin Jan 25, 2022
3bcd42f
Remove cow claim button desktop. (#2292)
fairlighteth Jan 25, 2022
d1fbb50
Added full amounts on hover for all claims values (#2282)
alfetopito Jan 25, 2022
926736c
Removed unused flag IS_CLAIMING_ENABLED (it's defined elsewhere)
Jan 25, 2022
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
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"semi": false,
"singleQuote": true,
"printWidth": 120
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"workbox-routing": "^6.1.0"
},
"resolutions": {
"@walletconnect/ethereum-provider": "1.6.4"
"@walletconnect/ethereum-provider": "1.6.4",
"react-error-overlay": "6.0.9"
},
"scripts": {
"start:default": "craco start",
Expand Down
Binary file added public/audio/mooooo-send.mp3.asd
Binary file not shown.
Binary file added src/assets/images/wxdai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/xdai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Confetti/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Confetti({ start, variant }: { start: boolean; variant?:

return start && width && height ? (
<ReactConfetti
style={{ zIndex: 1401 }}
style={{ zIndex: 1401, maxWidth: '100%' }} // mod fix for horizontal slider
numberOfPieces={400}
recycle={false}
run={true}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const StyledMenuButton = styled.button`
}
`

const UNIbutton = styled(ButtonPrimary)`
export const UNIbutton = styled(ButtonPrimary)`
background-color: ${({ theme }) => theme.bg3};
background: radial-gradient(174.47% 188.91% at 1.84% 0%, #ff007a 0%, #2172e5 100%), #edeef2;
border: none;
Expand Down
12 changes: 7 additions & 5 deletions src/components/claim/ClaimModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import tokenLogo from '../../assets/images/token-logo.png'
import { useActiveWeb3React } from '../../hooks/web3'
import { useModalOpen, useToggleSelfClaimModal } from '../../state/application/hooks'
import { ApplicationModal } from '../../state/application/reducer'
import { useClaimCallback, useUserClaimData, useUserUnclaimedAmount } from '../../state/claim/hooks'
import { useUserHasSubmittedClaim } from '../../state/transactions/hooks'
import { useClaimCallback, useUserClaimData, useUserUnclaimedAmount } from 'state/claim/hooks'
import { useUserHasSubmittedClaim } from 'state/transactions/hooks'
import { CloseIcon, CustomLightSpinner, ExternalLink, TYPE, UniTokenAnimated } from '../../theme'
import { ExplorerDataType, getExplorerLink } from '../../utils/getExplorerLink'
import { ButtonPrimary } from '../Button'
Expand Down Expand Up @@ -51,23 +51,25 @@ export default function ClaimModal() {
const isOpen = useModalOpen(ApplicationModal.SELF_CLAIM)
const toggleClaimModal = useToggleSelfClaimModal()

const { account, chainId } = useActiveWeb3React()
const { chainId } = useActiveWeb3React()

const account = '0x0010B775429d6C92333E363CBd6BF28dDF1A87E6'
alfetopito marked this conversation as resolved.
Show resolved Hide resolved
// used for UI loading states
const [attempting, setAttempting] = useState<boolean>(false)

// get user claim data
const userClaimData = useUserClaimData(account)

// monitor the status of the claim from contracts and txns
const { claimCallback } = useClaimCallback(account)
const { claimCallback } = useClaimCallback(account) // TODO: remove me, hard coded only for testing
const unclaimedAmount: CurrencyAmount<Token> | undefined = useUserUnclaimedAmount(account)
const { claimSubmitted, claimTxn } = useUserHasSubmittedClaim(account ?? undefined)
const claimConfirmed = Boolean(claimTxn?.receipt)

function onClaim() {
console.log(`Trying to claim!!!`, unclaimedAmount?.toString(), claimConfirmed)
setAttempting(true)
claimCallback()
claimCallback([{ index: 3 }])
// reset modal and log error
.catch((error) => {
setAttempting(false)
Expand Down
28 changes: 24 additions & 4 deletions src/components/swap/styleds.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { loadingOpacityMixin } from 'components/Loader/styled'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely modified the wrong file.
Should have created a mod but instead changes were applied to original files

import { TooltipContainer } from 'components/Tooltip'
import { transparentize } from 'polished'
import { ReactNode } from 'react'
import { MouseEventHandler, ReactNode } from 'react'
import { AlertTriangle } from 'react-feather'
import { Text } from 'rebass'
import styled, { css } from 'styled-components/macro'
Expand Down Expand Up @@ -89,9 +89,10 @@ export const Dots = styled.span`
}
`

const SwapCallbackErrorInner = styled.div`
const SwapCallbackErrorInner = styled.div<{ $css?: string }>`
background-color: ${({ theme }) => transparentize(0.9, theme.red1)};
border-radius: 1rem;
position: relative;
display: flex;
align-items: center;
font-size: 0.825rem;
Expand All @@ -105,6 +106,8 @@ const SwapCallbackErrorInner = styled.div`
margin: 0;
font-weight: 500;
}

${({ $css }) => $css}
`

const SwapCallbackErrorInnerAlertTriangle = styled.div`
Expand All @@ -118,9 +121,26 @@ const SwapCallbackErrorInnerAlertTriangle = styled.div`
height: 48px;
`

export function SwapCallbackError({ error }: { error: ReactNode }) {
const Closer = styled.div`
position: absolute;
right: 0;
top: 0;
padding: 7px 10px;
font-weight: bold;
cursor: pointer;
`

export type ErrorMessageProps = {
error?: ReactNode
handleClose?: MouseEventHandler<HTMLDivElement>
showClose?: boolean
$css?: string
}

export function SwapCallbackError({ error, handleClose, showClose, ...styleProps }: ErrorMessageProps) {
return (
<SwapCallbackErrorInner>
<SwapCallbackErrorInner {...styleProps}>
{showClose && <Closer onClick={handleClose}>X</Closer>}
<SwapCallbackErrorInnerAlertTriangle>
<AlertTriangle size={24} />
</SwapCallbackErrorInnerAlertTriangle>
Expand Down
Loading