hey icon indicating copy to clipboard operation
hey copied to clipboard

superfluid integration [Superfluid Wave pool hackathon]

Open BrunoEleodoro opened this issue 1 year ago β€’ 1 comments

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 the apps/web/package.json file (link)
  • Import a new icon, CurrencyDollarIcon, from the @heroicons/react/outline package in the BasicSettings component (link)
  • Define and update the superfluidToView state variable using the useAccessSettingsStore hook in the BasicSettings and access-settings.ts modules (link, link, link)
  • Add a ToggleWithHelper component to the BasicSettings component to render a switch and a helper text for the superfluidToView option (link)
  • Import the EoaOwnership type, the SuperfluidInflowsDocument query, and the superfluidClient from the @lenster/lens package in the NewPublication component (link, link, link)
  • Import the InflowType from the src/types module in the NewPublication component (link)
  • Add the superfluidToView state variable to the variables for creating a new publication in the NewPublication 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 the Details component (link)
  • Add the SuperfluidSubscribe component to the Details component and pass the profile prop to it (link)
  • Define and export the SuperfluidSubscribe component in the index.tsx module in the @components/Superfluid folder (link)
  • Define and export the paymentDetails object in the paymentDetails.ts module in the @components/Superfluid folder (link)
  • Add the SUPERFLUID_SUBGRAPH constant to the constants.ts module in the @lenster/data package (link)
  • Import and export the superfluidClient in the index.ts and superfluidClient.ts modules in the @lenster/lens/apollo package (link, link, link)
  • Define and export the superfluidLink in the superfluidLink.ts module in the @lenster/lens/apollo package (link)
  • Add the SUPERFLUID_SUBGRAPH constant to the schema array in the codegen.ts module in the @lenster/lens package (link)
  • Define and export the SuperfluidInflows query in the SuperfluidInflows.graphql module in the @lenster/lens/documents/queries folder (link)
  • Add the delegate property to the Statement and StatementsWhere types in the generated.ts module in the @lenster/workers/snapshot-relay package (link, link)

Emoji

πŸ’ΈπŸš°πŸ“°

BrunoEleodoro avatar Jun 18 '23 01:06 BrunoEleodoro

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

vercel[bot] avatar Jun 18 '23 01:06 vercel[bot]

We suggest to run this on own fork and if the experimentation is success we can move forward πŸ™‡πŸΌ

bigint avatar Jul 03 '23 05:07 bigint