-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
What needs to be done
Create Battlepass pallet with basic support for battlepass functionality.
Acceptance Criteria/Task List**
Next extrinsics should be created:
- create_battlepass
- claim_battlepass
create_battlepass - extrinsic to create battle pass for organization.
Parameters:
- origin - should be one of: sudo, org prime
- org_id - organization id to create battlepass for
- price - price to pay for the user to get access to battle pass
- cid - content id
Outcome:
Battlepass entity created onchain with given parameters (org_id, price, cide). Later this entity will be used to track battlepass progress.
claim_battlepass - extrinsic to get access to existing battlepass for the user, who wants to participate
Parameters:
- origin - user which wants buys battlepass
- org_id - organization id, which battlepass belongs to
- battlepass_id - battlepass id
- discord_id [optional] - discord id for the user, if any
- payment_id [optional] - external id for the payment, made by the user
Outcome
NFT is generated and assigned to the user, granting access to the battlepass, it was requested for.
In future it will allow user to finish tasks, earn points and claim battlepass rewards with those points.
Reactions are currently unavailable