You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can transfer this information into the blockchain
Acceptance criteria
The user requests a list of CR tokens.
The front-end calls a pallet of SORA to return a list of CR tokens.
The SORA pallet returns the list of CR tokens from the internal storage.
The storage includes:
Id
Create date (Timestamp)
Owner (Account Id)
Status (Rating, Decision, Collect funds, Ready, Active, Closed, Decline) (Index)
First iteration only - Rating, Decision, Active, Decline
Close initial period (Timestamp)
Date of issue (Timestamp)
Place of issue (String, 100 characters)
Amount of CR in USD (Integer)
Debtor (String, 80 characters)
Creditor (String, 80 characters)
Performance time (Timestamp)
Score (Index)
JSON file (30 720 characters)
An example of a JSON is below.
The front-end shows the user the list of CR tokens.
The user wants to create a new CR token.
The front-end shows the template for the user.
The user finishes editing the template of the token and saves it.
The front-end calls a pallet of SORA to create a new CR token with adjusted data.
3. The SORA pallet creates a new token and saves data to the token.
1. Status New
The front-end shows the successful result.
The user wants to edit data into the token.
The front-end checks the status
If the status is New, the front-end shows the button Edit.
Otherwise, the front-end doesn't show.
After editing, the front-end sends the updated token to the SORA pallet.
The SORA pallet checks the status of the token.
If the status New, the pallet allows to save the token with new data.
Otherwise, the pallet returns the error.
The user clicks the button Decline.
The front-end calls the SORA pallet to decline the CR token.
The SORA pallet updates the status of the token - Declined.
The example of a template token
{ "section_1": [ { "title": "SECTION I. BASIC CONDITIONS" }, { "title": "1. The title", "value": "Example text" }, { "title": "2. The title", "value": "Another text" }, { "title": "3. Time of performance:", "value": "[insert date]" } ], "section_2": [ { "title": "SECTION II. ADDITIONAL CONDITIONS" }, { "title": "4. The title", "value": "Example:\n(i) c\n(ii) Another text and text\n(iii) One more text\n(iv) At least text\n(v) Last text" }, { "title": "5. The title:", "value": "More text" } ] }
The text was updated successfully, but these errors were encountered:
As a
SORA user
I want to
create a new token and manage data inside
So that
I can transfer this information into the blockchain
Acceptance criteria
3. The SORA pallet creates a new token and saves data to the token.
1. Status New
The example of a template token
{ "section_1": [ { "title": "SECTION I. BASIC CONDITIONS" }, { "title": "1. The title", "value": "Example text" }, { "title": "2. The title", "value": "Another text" }, { "title": "3. Time of performance:", "value": "[insert date]" } ], "section_2": [ { "title": "SECTION II. ADDITIONAL CONDITIONS" }, { "title": "4. The title", "value": "Example:\n(i) c\n(ii) Another text and text\n(iii) One more text\n(iv) At least text\n(v) Last text" }, { "title": "5. The title:", "value": "More text" } ] }
The text was updated successfully, but these errors were encountered: