Skip to content
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

On-chain inputs validation #377

Closed
MSzalowski opened this issue Mar 4, 2024 · 5 comments · Fixed by #490
Closed

On-chain inputs validation #377

MSzalowski opened this issue Mar 4, 2024 · 5 comments · Fixed by #490
Assignees
Labels
🖥 Frontend Frontend related

Comments

@MSzalowski
Copy link
Contributor

MSzalowski commented Mar 4, 2024

PART OF #376

Why

As a user, I want to be informed if the provided data is wrong.

What

Each of the inputs of Treasury Governance Action type should provide the validation.

Link to figma

How

Validate if the input values might be submitted on-chain.

Rules that should be applied to fields:

Input Name Shape
Stake (Reward) Addresses Array of Betch32 or Hex encoded stake addresses
Amount in Lovelace for each address Decimal Numbers
@m-i-k-e
Copy link

m-i-k-e commented Mar 4, 2024

There are two errors: 'hash not correct' and Missing URL

Note: the Feedback button should be coming from or pointed at UserSnap. @MSzalowski There needs to be an issue to find out how to connect UserSnap to GovTool in a way that we can make these buttons. Perhaps there is a way to tag the button in the HTML so it goes directly to UserSnap?

https://www.figma.com/file/mJTBiUofLfb74Xc3W2U59o/Voltaire---GOV-TOOL?type=design&node-id=8601%3A55827&mode=design&t=ddbBbWrFuXASbzFR-1

https://www.figma.com/file/mJTBiUofLfb74Xc3W2U59o/Voltaire---GOV-TOOL?type=design&node-id=8526%3A89666&mode=design&t=ddbBbWrFuXASbzFR-1

@MSzalowski
Copy link
Contributor Author

Closed with #445

@MSzalowski MSzalowski self-assigned this Mar 12, 2024
@MSzalowski
Copy link
Contributor Author

@qa:
Status of current implementation:

Stake key and amount are agreed to be just strings (NOT AN ARRAYS)

@pmbinapps
Copy link

OK

  • positive integer is approved
  • 0 amount
  • 1234e100

NOT OK for:

  • 100,0
  • 1000.0
  • 100.0

@pmbinapps
Copy link

OK NOW

100,0
1000.0
100.0

GA transaction submitted correctly:
https://jam.dev/c/c076672d-518a-4349-a59d-8f00b1ca5cab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 Frontend Frontend related
Projects
Status: In staging
Development

Successfully merging a pull request may close this issue.

3 participants