createDataModel
to create the data model (frontend doesn’t support creating data model)CreatePDA
function and also need to specify the dataModelId
(No frontend for issuance)dataRequestTemplate
to aggregate data for the snapshot strategy.Pocket network DNA quest PDA
Pocket network DAO quest PDA
mutation {
createDataModel(
input: {
title: "Pocket Network Citizen"
description: "Earn credentials by completing quests: The DNA Quest for understanding and committing to Pocket's purpose, vision, and values, and The DAO Quest for knowledge of the governance, grants, impact, and operations of our DAO."
// PDA can only be issued by the members of the organization
permissions: ORGANIZATIONS
organization: {
type: GATEWAY_ID
value: "POCKET_NETWORK_GATEWAY_ID"
}
tags: ["Citizen", "Pocket Network"]
consumptionPrice: 0.0
schema: {
type: "object"
default: {}
title: "Citizen Schema"
required: ["point", "quests", "pocketReferenceId"]
properties: {
/*
I believe the data model should be based on the tryodyssey.xyz
Assumption:
tryodyssey will automatically issue the PDA after user passed the quest.
Hence, the details of the data model will be specified by tryodyssey.xyz
*/
point: {
type: "integer",
title: "Point(s)",
default: 1
examples: [1, 2, 5]
}
quest: {
type: "string",
title: "Quest",
examples: ["POKT DNA", "POKT DAO"]
}
pocketReferenceId: {
type: "string",
title: "Pocket Reference Id",
examples: ["Pocket database UUID"]
}
}
}
) {
id
title
allowedUsers {
id
gatewayId
}
allowedOrganizations {
id
gatewayId
}
}
}
/*
At the time of the creation of the PDA, expiration date should be 6 months
*/