Skip to content

[DMP 2024]: Use Once Statements Pallet #17

Description

@NiranjanAP

KIIT Workshop 11-Dec.docx

Ticket Contents

Description

Use ONCE with 'statement' can be more clearly explained with an usecase of event ticket which is 'use once'. It can be true with flight tickets, museum tickets, event tickets etc.

So, think of a usecase, where any 'approved' applications can look at a statement (VC, PDF file, image etc), and if found valid, this app should be having a method to update the statement's status to 'Consumed' (or something similar).

This way, the validity of tickets verification is logged on chain.

Goals

Goals

  • Create a new Pallet called UseOnce and implement the requirements mentioned in the description
  • Add unit test cases
  • SDK implementation that calls the corresponding methods in CORD pallet
  • Build a demo script to demonstrate the usecase

Expected Outcome

A new pallet call UseOnce that can make sure that an entity is used only once

Acceptance Criteria

A Demo script that demonstrates the right behaviour

Implementation Details

Need RUST and Substrate knowledge as a pre requisite for implementing the pallet, Typescript to SDK and a demo script
Go through the other pallets for reference and understand the implementation

Mockups/Wireframes

NA

Product Name

CORD and CORD.js

Organisation Name

Dhiway

Domain

Open Source Library

Tech Skills Needed

Rust, TypeScript

Mentor(s)

@amarts @NiranjanAP @vatsa@dhiway.com

Category

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions