-
Notifications
You must be signed in to change notification settings - Fork 27
feat: upgrade gno feed #1522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upgrade gno feed #1522
Conversation
✅ Deploy Preview for gno-dapp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for teritori-dapp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
43a0e25 to
0bd9312
Compare
- Updated gno-zenao network configuration with correct endpoints and social feeds package path. - Added new constant for Hyperaktive event ID. - Enhanced useFetchComments hook to fetch comments from Gno Zenao network, including new fetchGnoZenaoComments function. - Implemented useFetchFeed hook to support fetching feeds from Gno Zenao network. - Modified usePost hook to retrieve post views from Gno Zenao network. - Introduced utility functions for handling Zenao post views and metadata extraction. - Updated OptimizedImage component to utilize selected network ID for image URI transformation. - Updated yarn.lock to include new dependencies and versions. - Added @bufbuild/protobuf/codegenv2 support in metro config
0bd9312 to
754f97e
Compare
Just catched a little typo here on the constant Otherwise, it's exciting to see this! 👍 |
d819b52 to
82d8e0f
Compare
apps/gnotribe/App.tsx
Outdated
| disableBuyTokensButton: true, | ||
| disableDAppStore: true, | ||
| forceNetworkList: ["gno-test5", "gno-zenao"], | ||
| forceNetworkList: ["gno-test5", "gno-zenao", "gno-zenao-staging"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove test5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit a89ca9b
apps/gnotribe/App.tsx
Outdated
| forceNetworkList: ["gno-test5", "gno-zenao"], | ||
| forceNetworkList: ["gno-test5", "gno-zenao", "gno-zenao-staging"], | ||
| forceDAppsList: ["feed", "organizations"], | ||
| defaultNetworkId: "gno-test5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this gno-zenao
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit a89ca9b
metro.config.js
Outdated
| "@bufbuild/protobuf/codegenv2": path.resolve( | ||
| __dirname, | ||
| "node_modules/@bufbuild/protobuf/dist/cjs/codegenv2/index.js", | ||
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not needed, I forgot to remove it.
Since this works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in commit a89ca9b
networks.json
Outdated
| "nameServiceContractAddress": "gno.land/r/demo/users", | ||
| "nameServiceDefaultImage": "ipfs://bafkreigqm3i4urywxohvpkbz5sgxosiogwn433ufmzz7eqldjxoi6xmwma", | ||
| "daoRegistryPkgPath": "gno.land/r/teritori/dao_registry", | ||
| "socialFeedsFeedId": "1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "socialFeedsFeedId": "1", | |
| "globalFeedId": "1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit a89ca9b
| networkId === gnoZenaoStagingNetwork.id | ||
| ? "https://pinata.zenao.io" | ||
| : "https://teritori.mypinata.cloud"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed? I think we should use a single gateway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I though these zenao files can be reached only with the pinata.zenao.io gateway, but no, bad move ^^'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in commit a89ca9b
|
|
||
| const onPress = useCallback(() => { | ||
| const isReadonlyFeed = selectedNetwork?.features.includes( | ||
| NetworkFeature.SocialFeedReadonly, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this feature, it's only temporary, adds complexity and it's okay if we have errors on interaction for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it since it's temporary for now, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in commit f4efd68
package.json
Outdated
| "@types/markdown-it-footnote": "^3.0.4", | ||
| "@types/papaparse": "^5.3.14", | ||
| "@types/pluralize": "^0.0.33", | ||
| "@yornaath/batshit": "^0.10.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't see where this is used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to profiles in zenao, I don't remember why it's here, my bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in commit a89ca9b
gno-zenaonetwork configuration with correct endpoints and social feeds package path.gno-zenao-stagingnetworkglobalFeedIdtoGnoNetworkInfouseFetchCommentshook to fetch comments from Gno Zenao network.useFetchFeedhook to support fetching feeds from Gno Zenao network.usePosthook to retrieve posts from Gno Zenao network.yarn.lockto include new dependencies and versions.gno-test5andgno-test3networks