Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/sre-618-add-w…
Browse files Browse the repository at this point in the history
…orkflow
  • Loading branch information
br3d committed Sep 18, 2023
2 parents d6dde1f + 88fbad0 commit 1cf4532
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
admin off
auto_https off
log default {
format json
}
persist_config off
}

:3000 {
log
metrics /api/metrics
file_server
}
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM caddy:2.7-alpine as building

RUN apk update && apk upgrade && apk add bash

Check failure on line 3 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker / Check docker issues

DL3018 warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`

Check failure on line 3 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker / Check docker issues

DL3019 info: Use the `--no-cache` switch to avoid the need to use `--update` and remove `/var/cache/apk/*` when done installing packages
RUN mkdir /app

WORKDIR /app

COPY . .

RUN ./scripts/build.sh

FROM caddy:2.7-alpine

RUN addgroup -S caddy && \
adduser -S caddy -G caddy -h /app

USER caddy

WORKDIR /app

COPY --from=building /app/Caddyfile ./Caddyfile
COPY --from=building /app/lido-landing ./lido-landing

EXPOSE 3000

CMD ["caddy", "run"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
id: 502b88b9-67be-4900-8663-9b8abd826bc6
logo: data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_14472_3246)%22%3E%0A%3Cpath%20d%3D%22M24%2048C37.2552%2048%2048%2037.2552%2048%2024C48%2010.7448%2037.2552%200%2024%200C10.7448%200%200%2010.7448%200%2024C0%2037.2552%2010.7448%2048%2024%2048Z%22%20fill%3D%22%23130E20%22%2F%3E%0A%3C%2Fg%3E%0A%3Cg%20clip-path%3D%22url(%23clip1_14472_3246)%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M23.9463%2017.5833C25.1559%2017.5833%2026.316%2017.1004%2027.1714%2016.2409C28.0267%2015.3814%2028.5073%2014.2156%2028.5073%2013H19.3853C19.3853%2014.2156%2019.8659%2015.3814%2020.7212%2016.2409C21.5766%2017.1004%2022.7367%2017.5833%2023.9463%2017.5833ZM13%2028.5833V19.4167C14.2096%2019.4167%2015.3697%2019.8996%2016.2251%2020.7591C17.0804%2021.6186%2017.561%2022.7844%2017.561%2024C17.561%2025.2156%2017.0804%2026.3814%2016.2251%2027.2409C15.3697%2028.1004%2014.2096%2028.5833%2013%2028.5833ZM23.9463%2028.5833C26.4653%2028.5833%2028.5073%2026.5313%2028.5073%2024C28.5073%2021.4687%2026.4653%2019.4167%2023.9463%2019.4167C21.4274%2019.4167%2019.3853%2021.4687%2019.3853%2024C19.3853%2026.5313%2021.4274%2028.5833%2023.9463%2028.5833ZM30.3317%2024C30.3317%2025.2156%2030.8122%2026.3814%2031.6675%2027.2409C32.5229%2028.1004%2033.683%2028.5833%2034.8926%2028.5833V19.4167C33.683%2019.4167%2032.5229%2019.8996%2031.6675%2020.7591C30.8122%2021.6186%2030.3317%2022.7844%2030.3317%2024ZM34.8926%2013V17.5833C33.683%2017.5833%2032.5229%2017.1004%2031.6675%2016.2409C30.8122%2015.3814%2030.3317%2014.2156%2030.3317%2013H34.8926ZM13%2017.5833C14.2096%2017.5833%2015.3697%2017.1004%2016.2251%2016.2409C17.0804%2015.3814%2017.561%2014.2156%2017.561%2013H13V17.5833ZM20.7212%2031.7591C21.5766%2030.8996%2022.7367%2030.4167%2023.9463%2030.4167C25.1559%2030.4167%2026.316%2030.8996%2027.1714%2031.7591C28.0267%2032.6186%2028.5073%2033.7844%2028.5073%2035H19.3853C19.3853%2033.7844%2019.8659%2032.6186%2020.7212%2031.7591ZM30.3317%2035H34.8926V30.4167C33.683%2030.4167%2032.5229%2030.8996%2031.6675%2031.7591C30.8122%2032.6186%2030.3317%2033.7844%2030.3317%2035ZM13%2035V30.4167C14.2096%2030.4167%2015.3697%2030.8996%2016.2251%2031.7591C17.0804%2032.6186%2017.561%2033.7844%2017.561%2035H13Z%22%20fill%3D%22white%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_14472_3246%22%3E%0A%3Crect%20width%3D%2248%22%20height%3D%2248%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3CclipPath%20id%3D%22clip1_14472_3246%22%3E%0A%3Crect%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22white%22%20transform%3D%22translate(13%2013)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A
name: Sommelier
description: Real Yield ETH vault that optimally allocates across w/stETH and
those tokens in leveraged staking on Aave and Morpho and concentrated LPing on
Uniswap V3.
link: https://www.sommelier.finance
tokens:
- 62d6e448-346b-4d71-9688-6a043d5c25ee
- 3a647da0-c0d8-4ebd-abce-bac0390880f4
categories:
- e1e552f6-ff37-4185-a33f-4230cd45d7ff
networks:
- 85d2c16e-7a34-4a16-8996-304b6673c6d0
ready: true
---
10 changes: 6 additions & 4 deletions lido-landing/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ categories:
using the Claim tab. Also, you can exchange stETH on [DEX Lido
integrations](https://lido.fi/lido-ecosystem?tokens=stETH&categories=Get).
- question: What is wstETH?
answer: wstETH (wrapped stETH) is a non-rebasing version of stETH. Unlike the
stETH balance, which updates every day and communicates your share of
rewards, the wstETH balance stays the same while the stETH balance
updates inside the wrapper daily.
answer: wstETH (wrapped stETH) is a non-rebasing version of stETH, wstETH's
price denominated in stETH changes instead. The wstETH balance can
only be changed upon transfers, minting, and burning. At any given
time, anyone holding wstETH can convert any amount of it to stETH at a
fixed rate, and vice versa. Normally, the rate gets updated once a
day, when stETH undergoes a rebase.
- question: How can I get wstETH?
answer: You can wrap your stETH or ETH tokens using [Wrap & Unwrap staking
widget](https://stake.lido.fi/wrap) or [DEX Lido
Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "lido-content",
"version": "1.0.0",
"repository": "[email protected]:lidofinance/lido-content.git",
"scripts": {
"dev": "caddy run --watch",
"format": "caddy fmt --overwrite",
"build": "docker build . -t lido-content",
"start": "docker run -p 3000:3000 lido-content"
}
}
4 changes: 4 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

./scripts/combine.sh lido-landing/ecosystem/projects/
./scripts/combine.sh lido-landing/validators/projects/
28 changes: 28 additions & 0 deletions widget-frontend-template/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
pages:
- identification: index_page
faq:
- question: What is Lido Frontend Template?
answer: Lido Frontend Template is a project template for developing
[Lido](https://lido.fi/) applications. It features the standard Lido
frontend stack including Next.js, SWR, ethers, Lido UI and
styled-components. The purpose of this template is to standardize Lido
frontends and to enable developers to start working on the application
as soon as possible with minimal setup required.
- question: What is Lido?
answer: Lido is the name of a family of open-source peer-to-system software
tools deployed and functioning on the Ethereum, Solana, and Polygon
blockchain networks. The software enables users to mint transferable
utility tokens, which receive rewards linked to the related validation
activities of writing data to the blockchain, while the tokens can be
used in other on-chain activities.
- identification: example_page
faq:
- question: What is Lido Frontend Template?
answer: Lido Frontend Template is a project template for developing
[Lido](https://lido.fi/) applications. It features the standard Lido
frontend stack including Next.js, SWR, ethers, Lido UI and
styled-components. The purpose of this template is to standardize Lido
frontends and to enable developers to start working on the application
as soon as possible with minimal setup required.
---

0 comments on commit 1cf4532

Please sign in to comment.