October Bitshares Astro UI Development blog - Demonstrating the construction and resolution of Bitshares proposals!

image.png

Bitshares Astro October Dev Update - Proposals!

Thank you for exploring the latest Bitshares Astro UI development blog!

The Bitshares Astro UI aims to be an ongoing, innovative project, enhancing Bitshares front-end user interfaces with cutting-edge technology for 2024 and beyond.

So, what’s in today’s update?

A new page and new functionality has been introduced to the Bitshares Astro UI!

You can now create a proposal for all existing operation functionality in the Astro UI; this was achieved by creating the proposal from within the Deeplink Dialog component.

You can now overview your account's proposals, enabling you to approve/reject them at will, with a major UX overhaul in mind!

There's a new release for the Bitshares Astro UI project! Check it out

Note: Currently the BeetEOS wallet cannot broadcast proposal_create operations, due to a bug in bitsharesjs, a fix has been proposed which once implemented will be followed swiftly by a new BeetEOS release!

What are Proposals on the Bitshares blockchain?

First off, we're not talking about worker proposals, we're specifically talking about the following user proposal operations:

  • proposal_create (operation 22)
    • Used to propose a transaction (one/many blockchain operations) for another account to either approve or reject.
    • Can be used to suggest actions for a blockchain to carry out, enabling advanced multi-signature blockchain operations, offering uniquely secure blockchain handling, and more!
     {
        fee_paying_account: "1.2.x",
        expiration_time: 1763764722,
        proposed_ops: [{}],
        review_period_seconds: 60000, // optional
        extensions: []
      }
    
  • proposal_update (operation 23)
    • Used to either update the proposal (owner of the proposal), or used to approve the proposal (by the owner of the target account for blockchain broadcast)
     {
        fee_paying_account: "1.2.x",
        proposal: "1.10.x",
        active_approvals_to_add: ["1.2.x"],
        active_approvals_to_remove: ["1.2.x"],
        owner_approvals_to_add: ["1.2.x"],
        owner_approvals_to_remove: ["1.2.x"],
        key_approvals_to_add: [""],
        key_approvals_to_remove: [""],
        extensions: []
      }
    
  • proposal_delete (operation 24)
    • Used to permanently reject the proposal on the blockchain.
     {
        fee_paying_account: "1.2.x",
        using_owner_authority: true, // optional
        proposal: "1.10.x",
        extensions: []
      }
    

First, let's generate a proposal!

In order to support the creation of proposals, I've modified the deeplink dialog component to now offer creating proposals once you're ready to interact with the BeetEOS client!

So, in order to create a proposal for another account, follow these steps:

  1. Switch to the end user account via the change account button in the page footer
  2. Configure your operation, click submit and you'll be prompted with the deeplink dialog prompt.
  3. From the deeplink dialog go to the Proposal tab, and enter your bitshares account name which you're using to broadcast the proposal with.
  4. Click submit, proceed with the deeplink/json beeteos broadcast instructions to broadcast your bitshares transaction proposal!

Secondly, let's view and evaluate received proposals!

This feature has been placed under "Overviews" section of the home page:

image.png

And here's a live demo!

The above demonstrates:

  • Showing your active proposals awaiting resolution
  • Offer user the ability to reject the proposal
  • Blocksights explorer external links for the proposal id and proposer account
  • Access the JSON for the proposal and the proposer account
  • Access the JSON for the proposed operations
  • Approval process involved individually approving each proposed operation, which is shown alongside its JSON and a description of the technology.
  • Once fully approved, the user is prompted with a deeplink dialog to either approve the broadcast of the approve/reject proposal operations, or you can propose the account does so..

So, how will you make use of this functionality? Comment below!


Check out the previous hive posts regarding the Astro UI:


Thanks for reading this far, I'm looking forwards to any comments you have!

Download the Bitshares Astro UI today! https://github.com/BTS-CM/astro-ui/releases

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center