Replies: 2 comments 3 replies
-
For Pulling in data for 'iframe'. First part is where and how do we get this data. We have discussed a module would just live in a github repo and URL on chain would point to the repo and displaying that in the front-end. Could we in fact just have a DAO's module be hosted. Simple this only needs to be a simple app. this would allow a DAO to write in React or any compile language since it can be easily hosted either by github pages or netlify? |
Beta Was this translation helpful? Give feedback.
-
So I'm sitting here thinking about the hows and whys of iframes and modules, Obviously we this is a little further down the road and this may be somewhat of a brain dump so apologies in advance. What is a module, technically speaking?
What can a module do?
Current ImplementationsI've seen a few examples that we can go with communicating with Iframes. but the take away is that the source must be verified by a trusted source. The solution I've seen so far usually end up being a web2 solution. (I'm sure there might be a web3 solution out there with more looking). ThoughtsFunction Execution (Signer)So because the frontend already has some sort of ability to execute raw transactions. I think we should build this part up that what comes out of the iframe is an executable set of transactions that must be confirmed by user. with a specific dataset it mind we can set up validations and possibly setup some kinda encryption for more privacy (might not be needed) Trusted SourceTo prevent any problems with CORS. I saw we have a system that can we can use to do this. Plugins!. So I'm thinking that only DAOs would want custom Modules. and for a module to be installable it must be registered (by any) Fractal DAO in a proposal. This keeps both the decentralization and allow for us to have a list of 'verified' modules. What would Register Module contracts look like?
I'm not sure of the current infrastructure so I may be off on the get go and we can use what currently built to 'register' modules. Reading Data ProviderThis is a little more tricky but maybe not impossible. We could require the first pass at this to just include their own 'read-only' provider. and we can validate that the network and chainId match? This would path would leave it up to the module to figure out how to 'get' the data and only needing the 'DAO address and/or account` to do whatever it needs to do There is a library I have been playing with ethvalut/iframe-provider, but while I understand WHAT it's doing I haven't figured out the implementation in the parent app. Still thinking this part through will have to test some solutions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Each Module should be able to run in an 'iframe' popup without disrupting the UX on the app.
Beta Was this translation helpful? Give feedback.
All reactions