You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow embedding deeplinks into casts and sharing them from various applications. The implementation supports both simple versions with dynamic button text and more complex versions with dynamic images.
Implementation Details
1. Embed Deeplinks into Casts
Two routes are now available for deeplinking:
/dao route
/proposal route
Examples
-Simple Version (Dynamic Button Text):
Shows fetching DAO data in the page component to populate button text content
Confirmed working URL format in browser: https://warpcast.com/?launchFrameUrl=https://proposals.farcastle.net/dao/0x2105/0xf546247ae6eed166f96d910ea22d42054acbd8cd
Possible Enhancements
Launching from a v1 Frame Intent
Currently, both approaches open new windows:
<Button.Link// href={`https://warpcast.com/~/frames/launch?url=https://proposals.farcastle.net/dao/${chainid}/${daoid}`}href={`https://warpcast.com/?launchFrameUrl=https://proposals.farcastle.net/dao/${chainid}/${daoid}`}>
Make Proposal
</Button.Link>
Further exploration needed to:
Find optimal frame embed that launches to a deeplink
Determine if launch frame URL can be used in a v1 frame intent
Handle desktop vs. mobile detection (temporary solution: isDesktop = () => window.self !== window.top;)
Allow embedding deeplinks into casts and sharing them from various applications. The implementation supports both simple versions with dynamic button text and more complex versions with dynamic images.
Implementation Details
1. Embed Deeplinks into Casts
Two routes are now available for deeplinking:
/dao
route/proposal
routeExamples
-Simple Version (Dynamic Button Text):
https://proposals.farcastle.net/dao/0xa/0x2a244bb4ccd4eb0897cf61e0c61963e1e1d161e3/POST_SIGNAL
page.tsx meta
opengraph_image
component to generate dynamic imageshttps://proposals.farcastle.net/dao/0xa/0x2a244bb4ccd4eb0897cf61e0c61963e1e1d161e3
https://proposals.farcastle.net/dao/0x2105/0x8cd82fc448e714e1bd540ddb679f5269e10d3aa6
page.tsx
andopengraph-image.tsx
2. Sharing Deeplinks
https://warpcast.com/~/frames/launch?url={{your_deeplink}}
https://warpcast.com/~/frames/launch?url=https://proposals.farcastle.net/dao/0x2105/0xf546247ae6eed166f96d910ea22d42054acbd8cd
Technical Notes
https://warpcast.com/?launchFrameUrl=https://proposals.farcastle.net/dao/0x2105/0xf546247ae6eed166f96d910ea22d42054acbd8cd
Possible Enhancements
Launching from a v1 Frame Intent
Currently, both approaches open new windows:
Further exploration needed to:
isDesktop = () => window.self !== window.top;
)References
The text was updated successfully, but these errors were encountered: