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

Clarify format of numbers in type strings & add more docs to types #2

Conversation

jasonpaulos
Copy link

This PR adds two things:

  • More descriptions for JSON fields that were missed before
  • Clarifies how numbers in types should be encoded. This is meant to state that types with leading zeros like uint064 and bool[008] are invalid, since for method selector hashes to be consistent, there must only be one way to represent each type.

@fabrice102 fabrice102 merged commit a934652 into fabrice102:arc-0004-clarifications Feb 28, 2022
@jasonpaulos jasonpaulos deleted the arc-0004-type-number-spec branch February 28, 2022 23:27
fabrice102 pushed a commit that referenced this pull request Aug 1, 2022
Refining the `AuthAddr` checks.
SudoWeezy pushed a commit that referenced this pull request Oct 3, 2022
in the voting system and in the donation app i have came to conclusion that it is better to mark transaction for lookup with some lookup index.

eg if there is a question in the format

avote-question/v1:j{"t":"Hello world","q":"How do you like this voting system?","max":16024568,"category":"community","o":{"1":"I love it","2":"I like it","3":"I dont like it","4":"I dont want decentralized voting"}}

the answers 1:N relation we can declare like this:

avote-vote/v1/QKMLMEWCNL:j{"q":"QKMLMEWCNLDG5IB5JHMQQXJX6YYND66ALXTJIOXMVMQT3OYTKQ6A","a":{"1":100,"2":10,"3":0,"4":0}}

This has feature that one can search for all answers for any question, as well as all answers to specific question

#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants