Skip to content

Commit

Permalink
Merge branch 'main' into feature/evm
Browse files Browse the repository at this point in the history
  • Loading branch information
chloezxyy committed Aug 24, 2023
2 parents 33b53b4 + 5c1b35e commit c236578
Show file tree
Hide file tree
Showing 48 changed files with 8,100 additions and 38,299 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
record: true
parallel: true
start: npm run start:web
wait-on: "http://localhost:19000"
wait-on: "http://localhost:8081"
browser: chrome
spec: mobile-app/cypress/e2e/**
tag: ${{ github.event_name }}
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ jobs:
- run: npm ci
- run: npx pretty-quick --staged --check --pattern "mobile-app/**"

unit:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 16
cache: "npm"

- run: npm ci
- run: npm run test:ci

- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
fail_ci_if_error: true
# unit:
# name: Unit Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
# - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
# with:
# node-version: 16
# cache: "npm"
#
# - run: npm ci
# - run: npm run test:ci
#
# - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
# with:
# fail_ci_if_error: true
2 changes: 2 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ const defaultConfig = getDefaultConfig(__dirname);

defaultConfig.resolver.extraNodeModules.stream =
require.resolve("stream-browserify");
defaultConfig.transformer.minifierConfig.compress.drop_console = true;
defaultConfig.resolver.sourceExts = [...defaultConfig.resolver.sourceExts, "mjs", "cjs"];

module.exports = defaultConfig;
18 changes: 16 additions & 2 deletions mobile-app/app/components/__snapshots__/SummaryTitle.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions mobile-app/app/components/icons/assets/DOT.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import Svg, { SvgProps, Path, G, Defs, Rect, ClipPath } from "react-native-svg";

export function DOT(props: SvgProps): JSX.Element {
return (
<Svg width="32" height="32" viewBox="0 0 32 32" fill="none" {...props}>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M0 18C0 8.05891 8.05891 0 18 0C27.9411 0 36 8.05891 36 18C36 27.9411 27.9411 36 18 36C8.05891 36 0 27.9411 0 18Z"
fill="#E6007A"
/>
<G clipPath="url(#clip0_7705_27256)">
<Path
d="M17.9992 11.4612C20.1174 11.4612 21.8346 10.4625 21.8346 9.2306C21.8346 7.99867 20.1174 7 17.9992 7C15.8811 7 14.1639 7.99867 14.1639 9.2306C14.1639 10.4625 15.8811 11.4612 17.9992 11.4612Z"
fill="white"
/>
<Path
d="M17.9992 28.2684C20.1174 28.2684 21.8346 27.2697 21.8346 26.0378C21.8346 24.8059 20.1174 23.8072 17.9992 23.8072C15.8811 23.8072 14.1639 24.8059 14.1639 26.0378C14.1639 27.2697 15.8811 28.2684 17.9992 28.2684Z"
fill="white"
/>
<Path
d="M12.6545 14.5489C13.7136 12.7145 13.7067 10.7278 12.6391 10.1115C11.5716 9.49508 9.84757 10.4824 8.78848 12.3168C7.72939 14.1511 7.73626 16.1378 8.80383 16.7542C9.8714 17.3706 11.5954 16.3832 12.6545 14.5489Z"
fill="white"
/>
<Path
d="M27.2084 22.9515C28.2675 21.1171 28.2612 19.1307 27.1943 18.5148C26.1275 17.8988 24.4041 18.8865 23.345 20.7209C22.2859 22.5552 22.2922 24.5416 23.359 25.1575C24.4259 25.7735 26.1493 24.7858 27.2084 22.9515Z"
fill="white"
/>
<Path
d="M12.6397 25.157C13.7072 24.5407 13.7141 22.554 12.655 20.7196C11.5959 18.8853 9.87193 17.8979 8.80436 18.5143C7.73679 19.1307 7.72992 21.1174 8.78901 22.9517C9.8481 24.7861 11.5721 25.7734 12.6397 25.157Z"
fill="white"
/>
<Path
d="M27.1952 16.7547C28.2621 16.1387 28.2684 14.1524 27.2093 12.318C26.1502 10.4837 24.4268 9.49597 23.3599 10.1119C22.2931 10.7279 22.2868 12.7143 23.3459 14.5486C24.405 16.383 26.1284 17.3706 27.1952 16.7547Z"
fill="white"
/>
</G>
<Defs>
<ClipPath id="clip0_7705_27256">
<Rect
width="20"
height="21.2699"
fill="white"
transform="translate(8 7)"
/>
</ClipPath>
</Defs>
</Svg>
);
}
30 changes: 30 additions & 0 deletions mobile-app/app/components/icons/assets/MATIC.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import Svg, { Rect, Path, SvgProps, Defs, G, ClipPath } from "react-native-svg";

export function MATIC(props: SvgProps): JSX.Element {
return (
<Svg width="32" height="32" viewBox="0 0 32 32" fill="none" {...props}>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M0 18C0 8.05891 8.05891 0 18 0C27.9411 0 36 8.05891 36 18C36 27.9411 27.9411 36 18 36C8.05891 36 0 27.9411 0 18Z"
fill="#8247E5"
/>
<G clipPath="url(#clip0_7700_5237)">
<Path
d="M23.6146 13.8438C23.2135 13.6146 22.6979 13.6146 22.2396 13.8438L19.0312 15.7344L16.8542 16.9375L13.7031 18.8281C13.3021 19.0573 12.7865 19.0573 12.3281 18.8281L9.86458 17.3386C9.46354 17.1094 9.17708 16.6511 9.17708 16.1354V13.2708C9.17708 12.8125 9.40625 12.3542 9.86458 12.0677L12.3281 10.6354C12.7292 10.4063 13.2448 10.4063 13.7031 10.6354L16.1667 12.125C16.5677 12.3542 16.8542 12.8125 16.8542 13.3281V15.2188L19.0312 13.9583V12.0104C19.0312 11.5521 18.8021 11.0938 18.3437 10.8073L13.7604 8.11459C13.3594 7.88543 12.8437 7.88543 12.3854 8.11459L7.6875 10.8646C7.22917 11.0938 7 11.5521 7 12.0104V17.3958C7 17.8542 7.22917 18.3125 7.6875 18.599L12.3281 21.2917C12.7292 21.5208 13.2448 21.5208 13.7031 21.2917L16.8542 19.4583L19.0312 18.1979L22.1823 16.3646C22.5833 16.1354 23.099 16.1354 23.5573 16.3646L26.0208 17.7969C26.4219 18.0261 26.7083 18.4844 26.7083 19V21.8646C26.7083 22.3229 26.4792 22.7813 26.0208 23.0677L23.6146 24.5C23.2135 24.7292 22.6979 24.7292 22.2396 24.5L19.776 23.0677C19.375 22.8386 19.0885 22.3802 19.0885 21.8646V20.0313L16.9115 21.2917V23.1823C16.9115 23.6406 17.1406 24.099 17.599 24.3854L22.2396 27.0781C22.6406 27.3073 23.1562 27.3073 23.6146 27.0781L28.2552 24.3854C28.6562 24.1563 28.9427 23.6979 28.9427 23.1823V17.7396C28.9427 17.2813 28.7135 16.8229 28.2552 16.5365L23.6146 13.8438Z"
fill="white"
/>
</G>
<Defs>
<ClipPath id="clip0_7700_5237">
<Rect
width="22"
height="19.1927"
fill="white"
transform="translate(7 8)"
/>
</ClipPath>
</Defs>
</Svg>
);
}
80 changes: 80 additions & 0 deletions mobile-app/app/components/icons/assets/SOL.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import Svg, {
Stop,
Path,
SvgProps,
G,
Defs,
Rect,
LinearGradient,
ClipPath,
} from "react-native-svg";

export function SOL(props: SvgProps): JSX.Element {
return (
<Svg width="32" height="32" viewBox="0 0 32 32" fill="none" {...props}>
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M0 18C0 8.05891 8.05891 0 18 0C27.9411 0 36 8.05891 36 18C36 27.9411 27.9411 36 18 36C8.05891 36 0 27.9411 0 18Z"
fill="#0C192B"
/>
<G clipPath="url(#clip0_7705_27225)">
<Path
d="M11.2487 21.9638C11.3694 21.8431 11.5353 21.7727 11.7113 21.7727H27.6731C27.9648 21.7727 28.1106 22.1247 27.9045 22.3309L24.7513 25.484C24.6306 25.6047 24.4647 25.6751 24.2887 25.6751H8.32688C8.0352 25.6751 7.88936 25.3231 8.09555 25.1169L11.2487 21.9638Z"
fill="url(#paint0_linear_7705_27225)"
/>
<Path
d="M11.2486 10.1911C11.3743 10.0704 11.5403 10 11.7112 10H27.673C27.9647 10 28.1105 10.352 27.9043 10.5582L24.7512 13.7113C24.6305 13.832 24.4646 13.9024 24.2886 13.9024H8.32678C8.0351 13.9024 7.88926 13.5504 8.09545 13.3442L11.2486 10.1911Z"
fill="url(#paint1_linear_7705_27225)"
/>
<Path
d="M24.7513 16.0397C24.6306 15.919 24.4647 15.8486 24.2887 15.8486H8.32688C8.0352 15.8486 7.88936 16.2007 8.09555 16.4068L11.2487 19.56C11.3694 19.6807 11.5353 19.7511 11.7113 19.7511H27.6731C27.9648 19.7511 28.1106 19.399 27.9045 19.1929L24.7513 16.0397Z"
fill="url(#paint2_linear_7705_27225)"
/>
</G>
<Defs>
<LinearGradient
id="paint0_linear_7705_27225"
x1="26.1483"
y1="8.11642"
x2="15.1015"
y2="29.2755"
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#00FFA3" />
<Stop offset="1" stopColor="#DC1FFF" />
</LinearGradient>
<LinearGradient
id="paint1_linear_7705_27225"
x1="21.3179"
y1="5.5946"
x2="10.2711"
y2="26.7537"
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#00FFA3" />
<Stop offset="1" stopColor="#DC1FFF" />
</LinearGradient>
<LinearGradient
id="paint2_linear_7705_27225"
x1="23.7178"
y1="6.84748"
x2="12.671"
y2="28.0066"
gradientUnits="userSpaceOnUse"
>
<Stop stopColor="#00FFA3" />
<Stop offset="1" stopColor="#DC1FFF" />
</LinearGradient>
<ClipPath id="clip0_7705_27225">
<Rect
width="20"
height="15.6751"
fill="white"
transform="translate(8 10)"
/>
</ClipPath>
</Defs>
</Svg>
);
}
23 changes: 23 additions & 0 deletions mobile-app/app/components/icons/assets/TwitterIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Svg, { Path, SvgProps } from "react-native-svg";

export function TwitterIcon({
testID,
color,
...props
}: SvgProps): JSX.Element {
return (
<Svg
width="48"
height="48"
viewBox="0 0 48 48"
fill="none"
testID={testID}
{...props}
>
<Path
d="M10.0681 10.8965L20.8786 25.3514L10 37.1035H12.4485L21.9729 26.8141L29.6681 37.1035H38L26.581 21.8358L36.7069 10.8965H34.2584L25.4872 20.3726L18.4 10.8965H10.0681ZM13.6688 12.7004H17.4964L34.3989 35.3001H30.5712L13.6688 12.7004Z"
fill={color}
/>
</Svg>
);
}
Loading

0 comments on commit c236578

Please sign in to comment.