Juan Blanco
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # RFC-0002: Messari as a Frontend for Web3 Fill out metadata above. Delete notes in *italics*. Remove sections that are not applicable. Please do not modify this template. 🙂 **Approver(s)**: ***********************************************the author(s) can choose relevant approvers. Leadership may add or adjust these.*********************************************** **Other reviewer(s)**: *people whose comments would be helpful but who don’t need to approve.* ## **Overview:** Enabling web3 integrations in DataApps, which will bring about new opportunities for analysis, experiences, and revenue streams. The approach is language agnostic, secure and open-source. That easly fit with our current set up for datapps. As if we were talking of web2 service like stripe. ## **Goals and Non-Goals:** *What problems are you trying to solve? What problems are you not trying to solve?* The goal is to enhance DataApps with more interactivity and functionality, turning them into dapps. This will allow users to interact with protocols and read their wallets, among other features. ## **Background & Motivation:** *What is the current state of the world? Why is this change being proposed?* *Define any key terms or internal names here.* Thorughout history, as new technologies come along, tools and resources emerge to help people navigate them. But eventually, after enough time, aggregation tools for these technologies are released. For example, in the past, you'd have a trading analysis and intel application open, while also having another trading application to operate; but now you have both things in a single app. In the crypto space, most of things are open source. But still, the entry barrier and learning curve to interact with robust protocols and projects are higher. Visibility and a smooth developer experience for interactions are also notably more difficult, when you compare them with the classic web2 sphere. This is precisely why companies like ours exist; to give context, tools and valuable information to enable an easier navigation through the web3 world. For users and projects, products like Quarterlies, are that valuable for the protocols/projects because they bring transparency/attention and context to users, what potencial could bring them more users that at the end of the day is what they want and for what they paid for. There are many competitors providing aggregation resources, dashboards and apps giving context an insight about chains and protoocols. But almost none of them let you interact with these protocols from within their application, even for pretty simple operations. Why not reducing the entry level, create an app with analysis and also one where you can interact with that protocol or project from. This translates to less steps in the funnel/user journey. Users wouldn't need to leave our application and jump elsewhere to perform transactions. What you are about to read is the solution I came up with that enables this functionality in the most secure, scalable, native, and smooth possible for Messari. ## **Revenue:** Ideally what you would want is going to a place, where you find valuable content/tools/anaylsis, and with that information doing something. Like Uniswaps LP app, you realise something, and base on that information you can add liquidity on a pool from that same side. Without needing to leave it. As we know with more steps on the funnel the chances of a potencial user failing increases. This translates on a easy way of measurable ROI. You may be wondering how could we turn this into measurable ROI. Well, we could add a "referral code" to our transactions and partner with the organization behind projects to do some form of revenue sharing with us, given the users that we drive to them. However, charging any extra fees, or redirect user operations though anything wouldn't be ideal. The experience should be as transparent and native as interacting with a protocol directly through their own application. We do add our referral code to transtactions tho, so, for protocols/projects with revenue sharing, they will send us part of the fee they earn. (like a referral code.) It would make us more crypto native, being the real 101 of interacting with crypto and doing 10x to price for grants and enterprise. As web3 integrations have a cost. As we would directly drive clients to their protocol All protocols could host a “Messari FE”, a trusted gateway for users to interact with the protocols, that integrates analysis, tools, and educational content. This ideas, and thoughts where confirmed with uniswaps grant. They mentioned, that as a soft requirement So, concretely, how could we do that in a way that doesn't require lots of effort, doesn't compromise security, and has a smooth plug-and-play developer experience? ## **Design:** What Streamlit does is wrapping the front end, and with their components you are able to inject no python code into the applications. Althought they have a couple of limitations. Most of the things we would like to do are interacting with exisitng contracts, or doing things that a lot of people are already doing like wallet integration on the dapps world. There is a project that does a similar concept but with web3 integrations, is called "Polywrap". Polywrap, is a developer tool that enables easy integration of Web3 protocols into any application. It makes it possible for applications on any platform, written in any language, to read and write data to Web3 protocols. They are backed by a bunch of protocol, and projects. And they have grant to build "wrappers" for their SDKs, or projects. > We don't have grants, but rather making interested people in building wrapper to fund those > [name=Cesar Brazon] And they have grant to build "wrappers" for their SDKs, or projects. They have already a list of them created, like uniswaps... > Gnosis safe: https://github.com/ConsiderItDone/safe-contracts-wrapper > Coingecko: https://github.com/defiwrapper/coingecko-rs > IPFS: https://github.com/polywrap/ipfs > Ethereum: https://github.com/polywrap/ethereum > ENS: https://github.com/polywrap/ens > [name=Cesar Brazon] > And plugins with functionalties that we could leverage right aways like ...ethers, ens...(Examples here). > I would only name the wrappers and only reference plugin to access host capabilities (like signing, file system or http) > [name=Cesar Brazon] As you will see on the demo, with a line of code you will be able to get signers address. Or add liquidity to a given pool. On top of that, their tecnology has more advatages that make them great fit: - Composable. Endlessly compose and extend wrappers with imports and standard interfaces. What is perfect, and solves one limitation that streamlit has, what is being able to communicate with other components. - Secure. Sandboxing keeps users safe by isolating wrappers from application memory. - Scalable. Keep apps lightweight and efficient, download wrappers on-demand as needed. What is essential for streamlit apps. Most of this thinks can be found here, and in their docs. If you want to go deeper into it. This is how to flow would look like: --- Schema/Diagrama of the app, component, On the componenets side, we could make that way so things are hardcoded for messari, like the referral fee we said or ... Custom React Componenet creation using their react wrappers... ## **Timeline:** *What is the proposed timeline for the implementation? Include specific next steps, whose time will be required to proceed, handoff process, etc.* I think most of things we would like to do are cover by their existing pluggins, or wrappers. But when I reached out while a was doing the first interation, and I told them the idea of using it on streamlit they thought that was a really good idea and made a lot of sense as python and data people dont know about integrations that much. And X,, Y z, reasons like... They told me that are more than happy to chat about how they could help us with our web3 integration needs. ## **Alternatives Considered:** So before going with the Polwrap, I created a component by myself that would just interact with metamask. Componenent espcifico para cada aplicacion, y con sus integracions. Cada datapp, sus integraciones de cero. Y la forma de interaccion no es lo mismo, y a parte necesitamos muchos mas conocimientos para cada uno de los projectos y protocolos. En este caso todo esta estandarizado. --- Video--- But its kinda stupid to code something that eveyone is doing over and over again. And instaling libraries like web3 or hardhat cosnume made the app heavy. Took me a lot of time, and lines of code just for one feature that they had. In the thirt of the amount of time, onces the incoquer and parse was done. 3 new feautres where added, in a blick. Working right away. - Time cost - Code rewritting - Deep Web3 knowledge and awarreness. Adding liquidity on hand would be something like that: - Antonio github - Code needed right now to add liquidity. ## **Security/Privacy/Compliance:** *What security/privacy/compliance aspects should be considered?* *If you're not certain, never assume there aren’t any. Always circulate these considerations with the team.* I think there would be more risk or possible securty issue if we would build from scratch all of this functionaltys by our own. As I did with the metamask example. There risk that would exist here, would be the same ones that the existing SDKs or Contract would have. As the wrapper just involve the existing functioanlty. 1- Usar en el cliente de polywrap, igual que 2- - Legal - Hacks ## **Revisions:** 1. *RFC Created* 2. *Update for major changes, including status changes.* --- ## Discussion **Date:** *date* ***********************************************************************Here, include relevant notes from live discussions related to this RFC. Indicate the speaker and substance of the speaker’s point.***********************************************************************

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully