Skip to content

Create a comprehensive frontend guide for building functional user interfaces for dapps using a terminal user interface (TUI) #655

Closed

Activity

  1. pius commented on Jun 6, 2024

    @pius

    @briwylde08 thanks for opening this! I'd like to take this on as per the discussion at #612 😀

    @ElliotFriend thanks for the vote of approval! you asked:

    I'm curious what [“just meant to be served over ssh instead of http”] means "mechanically." Is there some "backend" service that the TUI would interact with (assuming via SSH)? Or, is the TUI interacting directly with contract that's deployed on-chain (like if the TUI is itself building/simulating/submitting transactions, querying rpc, etc.; or maybe kinda like if someone made a "wrapper" around the Soroban-CLI to interact with a specific contract, if that makes sense)?

    just to level set for anyone reading, it's good to remember that SSH is the "Secure SHell protocol" — so when we "SSH" into a computer, we're just asking the SSH server to securely present a shell program so that we can interact with the computer. typically that shell program is something like Bash, but it can be any program we want! so at the most basic mechanical level, if one wanted to serve this over SSH, they would just have their SSH server present our custom TUI as the shell.

    how precisely the TUI interacts with the contract is really just a design choice. of course, one can certainly just build the transactions from scratch, but the approach I'm going highlight is how to go with the grain of the UNIX philosophy and the Soroban ecosystem.

    • the UNIX philosophy recommends composing small programs that "do one thing and do it well"
    • Soroban has a thoughtfully designed developer affordance to automatically generate just such a small program for each contract

    so I'm going to orient my guide around an architecture leveraging the power of that combination =)

  2. moved this from Backlog to In Progress in Dev Docson Jun 6, 2024
  3. ElliotFriend commented on Jun 6, 2024

    @ElliotFriend
    Contributor

    This sounds awesome! I'm really excited to see how it shapes up!!

  4. silence48 commented on Jun 10, 2024

    @silence48
    Contributor

    @briwylde08 I have created a guide for making a Terminal interface for the comet liquidity pool contracts; using typescript and the node library 'inquirer' I also created a repository with the example project so it's easier to follow along at
    https://github.com/silence48/Comet-TUI
    The pull request is #665
    Hoping we see some more examples, would love to see a simple bash script that uses soroban-cli and maybe a python and a ruby implementation! Powershell would be cool too! I also am hoping people who build on top of the typescript one i published will merge back any good updates to my repo :)

    Thanks That was fun.

  5. briwylde08 commented on Jun 10, 2024

    @briwylde08
    ContributorAuthor

    This is great @silence48! Excited to take a look. @pius please feel free to continue your own work on this prompt!

  6. moved this from In Progress to In Review in Dev Docson Jul 2, 2024
  7. moved this from Blocked to Done in Dev Docson Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions