hey
hey copied to clipboard
superfluid integration [Superfluid Wave pool hackathon]
What does this PR do?
π€ Generated by Copilot at d088d9b
This pull request adds Superfluid integration to the Lens web app, allowing content creators and viewers to use streaming payments for accessing and publishing content. It adds new components, state, queries, and dependencies to the web app, and new types, hooks, and clients to the @lenster/lens
package. It also updates the Snapshot relay worker to support delegate addresses. It modifies files such as BasicSettings.tsx
, NewPublication.tsx
, Details.tsx
, access-settings.ts
, package.json
, index.tsx
, paymentDetails.ts
, constants.ts
, superfluidClient.ts
, superfluidLink.ts
, codegen.ts
, and SuperfluidInflows.graphql
. It also adds files such as SuperfluidWidget.tsx
and paymentOptions.ts
.
Related issues
Fixes # (issue)
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Enhancement (non-breaking small changes to existing functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
Explanation of the changes
π€ Generated by Copilot at d088d9b
- Add Superfluid integration to the web app and the lens package (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
- Add two dependencies,
@superfluid-finance/tokenlist
and@superfluid-finance/widget
, to theapps/web/package.json
file (link) - Import a new icon,
CurrencyDollarIcon
, from the@heroicons/react/outline
package in theBasicSettings
component (link) - Define and update the
superfluidToView
state variable using theuseAccessSettingsStore
hook in theBasicSettings
andaccess-settings.ts
modules (link, link, link) - Add a
ToggleWithHelper
component to theBasicSettings
component to render a switch and a helper text for thesuperfluidToView
option (link) - Import the
EoaOwnership
type, theSuperfluidInflowsDocument
query, and thesuperfluidClient
from the@lenster/lens
package in theNewPublication
component (link, link, link) - Import the
InflowType
from thesrc/types
module in theNewPublication
component (link) - Add the
superfluidToView
state variable to the variables for creating a new publication in theNewPublication
component (link) - Modify the logic for creating the access condition for the new publication in the
NewPublication
component to query the Superfluid subgraph and create an EOA ownership condition based on the inflow senders (link) - Import the
SuperfluidSubscribe
component from the@components/Superfluid
module in theDetails
component (link) - Add the
SuperfluidSubscribe
component to theDetails
component and pass theprofile
prop to it (link) - Define and export the
SuperfluidSubscribe
component in theindex.tsx
module in the@components/Superfluid
folder (link) - Define and export the
paymentDetails
object in thepaymentDetails.ts
module in the@components/Superfluid
folder (link) - Add the
SUPERFLUID_SUBGRAPH
constant to theconstants.ts
module in the@lenster/data
package (link) - Import and export the
superfluidClient
in theindex.ts
andsuperfluidClient.ts
modules in the@lenster/lens/apollo
package (link, link, link) - Define and export the
superfluidLink
in thesuperfluidLink.ts
module in the@lenster/lens/apollo
package (link) - Add the
SUPERFLUID_SUBGRAPH
constant to theschema
array in thecodegen.ts
module in the@lenster/lens
package (link) - Define and export the
SuperfluidInflows
query in theSuperfluidInflows.graphql
module in the@lenster/lens/documents/queries
folder (link) - Add the
delegate
property to theStatement
andStatementsWhere
types in thegenerated.ts
module in the@lenster/workers/snapshot-relay
package (link, link)
Emoji
πΈπ°π°
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
prerender | π Canceled (Inspect) | Jul 1, 2023 3:51am | |
web | π Canceled (Inspect) | Jul 1, 2023 3:51am |
We suggest to run this on own fork and if the experimentation is success we can move forward ππΌ