Skip to content

Commit

Permalink
ci(release): publish latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-happy-puppy committed Jun 27, 2024
1 parent 2f7d16c commit 2a6ff88
Show file tree
Hide file tree
Showing 1,441 changed files with 13,666 additions and 21,554 deletions.
282 changes: 282 additions & 0 deletions .yarn/patches/react-native-wagmi-charts-npm-2.3.0-8e836a8f3c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
diff --git a/lib/typescript/src/charts/line/useDatetime.d.ts b/lib/typescript/src/charts/line/useDatetime.d.ts
index c6f73dd8b31294d0e4c0597519dd998ccd84ad30..9f9eb03e25d1e020de37c706e8f8803d0b9dcefa 100644
--- a/lib/typescript/src/charts/line/useDatetime.d.ts
+++ b/lib/typescript/src/charts/line/useDatetime.d.ts
@@ -1,13 +1,10 @@
import type { TFormatterFn } from '../candle/types';
+import { SharedValue } from 'react-native-reanimated';
export declare function useLineChartDatetime({ format, locale, options, }?: {
format?: TFormatterFn<number>;
locale?: string;
options?: Intl.DateTimeFormatOptions;
}): {
- value: Readonly<{
- value: string;
- }>;
- formatted: Readonly<{
- value: string;
- }>;
+ value: SharedValue<string>;
+ formatted: SharedValue<string>;
};
diff --git a/src/charts/line/Dot.tsx b/src/charts/line/Dot.tsx
index dd49d3e49231a5e4f56138bbf3ec51013515f7b0..2c240689e2b51c265dc5deab885124d3fa216424 100644
--- a/src/charts/line/Dot.tsx
+++ b/src/charts/line/Dot.tsx
@@ -1,18 +1,18 @@
-import * as React from 'react';
+import * as React from "react";
import Animated, {
Easing,
useAnimatedProps,
- useDerivedValue,
+ useSharedValue,
withRepeat,
withSequence,
withTiming,
-} from 'react-native-reanimated';
-import { Circle, CircleProps } from 'react-native-svg';
-import { getYForX } from 'react-native-redash';
+} from "react-native-reanimated";
+import { getYForX } from "react-native-redash";
+import { Circle, CircleProps } from "react-native-svg";

-import { LineChartDimensionsContext } from './Chart';
-import { LineChartPathContext } from './LineChartPathContext';
-import { useLineChart } from './useLineChart';
+import { LineChartDimensionsContext } from "./Chart";
+import { LineChartPathContext } from "./LineChartPathContext";
+import { useLineChart } from "./useLineChart";

const AnimatedCircle = Animated.createAnimatedComponent(Circle);

@@ -33,7 +33,7 @@ export type LineChartDotProps = {
*
* Default: `while-inactive`
*/
- pulseBehaviour?: 'always' | 'while-inactive';
+ pulseBehaviour?: "always" | "while-inactive";
/**
* Defaults to `size * 4`
*/
@@ -41,17 +41,19 @@ export type LineChartDotProps = {
pulseDurationMs?: number;
};

-LineChartDot.displayName = 'LineChartDot';
+LineChartDot.displayName = "LineChartDot";
+
+const easing = Easing.out(Easing.sin);

export function LineChartDot({
at,
- color: defaultColor = 'black',
+ color: defaultColor = "black",
dotProps,
hasOuterDot: defaultHasOuterDot = false,
hasPulse = false,
inactiveColor,
outerDotProps,
- pulseBehaviour = 'while-inactive',
+ pulseBehaviour = "while-inactive",
pulseDurationMs = 800,
showInactiveColor = true,
size = 4,
@@ -72,29 +74,44 @@ export function LineChartDot({

////////////////////////////////////////////////////////////

- const x = useDerivedValue(
- () => withTiming(pointWidth * at),
- [at, pointWidth]
- );
- const y = useDerivedValue(
- () => withTiming(getYForX(parsedPath!, x.value) || 0),
- [parsedPath, x]
- );
+ const x = pointWidth * at;
+ const y = getYForX(parsedPath!, x) ?? 0;

////////////////////////////////////////////////////////////

- const animatedDotProps = useAnimatedProps(
- () => ({
- cx: x.value,
- cy: y.value,
- }),
- [x, y]
- );
+ const animatedOpacity = useSharedValue(0.1);
+ const animatedScale = useSharedValue(0);
+
+ React.useEffect(() => {
+ animatedOpacity.value = withRepeat(
+ withSequence(
+ withTiming(0.8, {
+ duration: 0,
+ }),
+ withTiming(0, {
+ duration: pulseDurationMs,
+ easing,
+ })
+ ),
+ -1
+ );
+
+ animatedScale.value = withRepeat(
+ withSequence(
+ withTiming(0, {
+ duration: 0,
+ }),
+ withTiming(1, {
+ duration: pulseDurationMs,
+ easing,
+ })
+ ),
+ -1
+ );
+ }, []);

const animatedOuterDotProps = useAnimatedProps(() => {
let defaultProps = {
- cx: x.value,
- cy: y.value,
opacity: 0.1,
r: outerSize,
};
@@ -103,58 +120,35 @@ export function LineChartDot({
return defaultProps;
}

- if (isActive.value && pulseBehaviour === 'while-inactive') {
+ if (isActive.value && pulseBehaviour === "while-inactive") {
return {
...defaultProps,
r: 0,
};
}

- const easing = Easing.out(Easing.sin);
- const animatedOpacity = withRepeat(
- withSequence(
- withTiming(0.8),
- withTiming(0, {
- duration: pulseDurationMs,
- easing,
- })
- ),
- -1,
- false
- );
- const scale = withRepeat(
- withSequence(
- withTiming(0),
- withTiming(outerSize, {
- duration: pulseDurationMs,
- easing,
- })
- ),
- -1,
- false
- );
-
- if (pulseBehaviour === 'while-inactive') {
+ if (pulseBehaviour === "while-inactive") {
return {
...defaultProps,
- opacity: isActive.value ? withTiming(0) : animatedOpacity,
- r: isActive.value ? withTiming(0) : scale,
+ opacity: isActive.value ? withTiming(0) : animatedOpacity.value,
+ r: isActive.value ? withTiming(0) : outerSize * animatedScale.value,
};
}
return {
...defaultProps,
- opacity: animatedOpacity,
- r: scale,
+ opacity: animatedOpacity.value,
+ r: outerSize * animatedScale.value,
};
- }, [hasPulse, isActive, outerSize, pulseBehaviour, pulseDurationMs, x, y]);
+ }, []);

////////////////////////////////////////////////////////////

return (
<>
<AnimatedCircle
- animatedProps={animatedDotProps}
r={size}
+ cx={x}
+ cy={y}
fill={color}
opacity={opacity}
{...dotProps}
@@ -163,6 +157,8 @@ export function LineChartDot({
<AnimatedCircle
animatedProps={animatedOuterDotProps}
fill={color}
+ cx={x}
+ cy={y}
{...outerDotProps}
/>
)}
diff --git a/src/charts/line/Path.tsx b/src/charts/line/Path.tsx
index 5c5830792b0ac9ace3316d869b24f98400694f63..ca8a083a740f70ebe673e22820ae77db48dbe9c0 100644
--- a/src/charts/line/Path.tsx
+++ b/src/charts/line/Path.tsx
@@ -1,10 +1,10 @@
-import * as React from 'react';
-import Animated from 'react-native-reanimated';
-import { Path, PathProps } from 'react-native-svg';
+import * as React from "react";
+import Animated from "react-native-reanimated";
+import { Path, PathProps } from "react-native-svg";

-import { LineChartDimensionsContext } from './Chart';
-import { LineChartPathContext } from './LineChartPathContext';
-import useAnimatedPath from './useAnimatedPath';
+import { LineChartDimensionsContext } from "./Chart";
+import { LineChartPathContext } from "./LineChartPathContext";
+import useAnimatedPath from "./useAnimatedPath";

const AnimatedPath = Animated.createAnimatedComponent(Path);

@@ -31,10 +31,10 @@ export type LineChartPathProps = Animated.AnimateProps<PathProps> & {
isTransitionEnabled?: boolean;
};

-LineChartPath.displayName = 'LineChartPath';
+LineChartPath.displayName = "LineChartPath";

export function LineChartPath({
- color = 'black',
+ color = "black",
inactiveColor,
width: strokeWidth = 3,
...props
@@ -53,15 +53,14 @@ export function LineChartPath({
////////////////////////////////////////////////

return (
- <>
- <AnimatedPath
- animatedProps={animatedProps}
- fill="transparent"
- stroke={isInactive ? inactiveColor || color : color}
- strokeOpacity={isInactive && !inactiveColor ? 0.2 : 1}
- strokeWidth={strokeWidth}
- {...props}
- />
- </>
+ <AnimatedPath
+ animatedProps={animatedProps}
+ d={isTransitionEnabled ? undefined : path}
+ fill="transparent"
+ stroke={isInactive ? inactiveColor || color : color}
+ strokeOpacity={isInactive && !inactiveColor ? 0.2 : 1}
+ strokeWidth={strokeWidth}
+ {...props}
+ />
);
}
1 change: 0 additions & 1 deletion CODEOWNERS

This file was deleted.

60 changes: 5 additions & 55 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,58 +1,8 @@
IPFS hash of the deployment:
- CIDv0: `QmW47HPC4SPLcqU9J19iTWNzjsqyaTmbUyhxUyNLcPNqhu`
- CIDv1: `bafybeidsucvs434zirxhib6npfzfqg4jagv6xkccfxjz3gmegib2bu36zq`
Here’s the latest:

The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).

You can also access the Uniswap Interface from an IPFS gateway.
**BEWARE**: The Uniswap interface uses [`localStorage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to remember your settings, such as which tokens you have imported.
**You should always use an IPFS gateway that enforces origin separation**, or our hosted deployment of the latest release at [app.uniswap.org](https://app.uniswap.org).
Your Uniswap settings are never remembered across different URLs.

IPFS gateways:
- https://bafybeidsucvs434zirxhib6npfzfqg4jagv6xkccfxjz3gmegib2bu36zq.ipfs.dweb.link/
- https://bafybeidsucvs434zirxhib6npfzfqg4jagv6xkccfxjz3gmegib2bu36zq.ipfs.cf-ipfs.com/
- [ipfs://QmW47HPC4SPLcqU9J19iTWNzjsqyaTmbUyhxUyNLcPNqhu/](ipfs://QmW47HPC4SPLcqU9J19iTWNzjsqyaTmbUyhxUyNLcPNqhu/)

## 5.37.0 (2024-06-26)


### Features

* **web:** add fiat currency selection to buy flow (#8868) 25d35a7
* **web:** country picker for buy flow (+ tests/snapshots) (#8825) a342a3a
* **web:** Enable Avax on /explore (#8965) c9f8ed5
* **web:** move BaseCard and dependencies to uniswap (#9084) 61c6c15


### Bug Fixes

* **web:** Divide 1 day APR by 100 (#9343) 838a3c7
* **web:** ensure explore and pools tabs are highlighted when active (#9151) 63673b1
* **web:** fix a few translations where components need a tag for inte… (#9152) cfe7ed5
* **web:** fix broken link, translation, and importing v2 positions (#9543) 51335c2
* **web:** fix height of token safety modal (#9258) f8bb7f4
* **web:** fix moonpay modal height (#9270) ce92266
* **web:** ignore GQL errors in SearchTokens query (#9544) e687bd0
* **web:** language/currency label (#9158) af0c676
* **web:** legacy nav should not transition out of view on scroll (#9540) 1ae4664
* **web:** reconcile multichainUx with refreshedNavbar (#9122) 6519f2c
* **web:** unblock ENS namewrapper contract address (#9254) 050fe29
* **web:** update redux store to v12 to match migrations (#8844) a9c162b
* **web:** use Add/Remove language in Transactions table (#9133) f78bb31
* **web:** use nullable valueModifiers (#9268) 8ccdf1c
* **web:** use uniswapx-sdk for cancel limits params (#8912) 83d70ab
* **web:** use valueModifiers in web portfolio query (#8942) ff5a840
* **web:** web config (#9169) 39c336a


### Reverts

* **web:** place hotkeys under feature flag for nav release (#9196) c1fff38


### Continuous Integration

* **web:** update sitemaps be4b927
Expanded network support — we now support 3 new networks; Zora, Celo, and Avalanche!

Other changes:

- Transfer more assets from CEXs to the wallet using our built-in integration
- Various bug fixes and performance improvements
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.37.0
mobile/1.29.2
14 changes: 0 additions & 14 deletions apps/mobile/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,4 @@ module.exports = {
ecmaVersion: 2018,
sourceType: 'module',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-relative-import-paths/no-relative-import-paths': [
'error',
{
allowSameFolder: false,
prefix: 'src',
},
],
},
},
],
}
6 changes: 3 additions & 3 deletions apps/mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@ android {
dev {
isDefault(true)
applicationIdSuffix ".dev"
versionName "1.30"
versionName "1.29.2"
dimension "variant"
}
beta {
applicationIdSuffix ".beta"
versionName "1.30"
versionName "1.29.2"
dimension "variant"
}
prod {
dimension "variant"
versionName "1.30"
versionName "1.29.2"
}
}

Expand Down
Loading

0 comments on commit 2a6ff88

Please sign in to comment.