In computer programming, a primitive is a basic interface or segment of code that can be used to build more sophisticated program elements or interfaces

Existing Solidity Primitives

Emblem Solidity Primitive

v1 primitive

v1 subgraph primitive

"""
BadgeDefinitions are created by the BadgeDefinitionManager smart contract.
Subgraphs may also have genesis BadgeDefinitions that are baked in for retroactive
drops.
"""
type BadgeDefinition @entity {
  "incrementing number"
  id: ID!
  "Name of badge"
  name: String!
  "Description of badge"
  description: String!
  "IPFS URI containing metadata about this BadgeDefinition"
  ipfsURI: String!
  "Metric being tracked"
  metric: BadgeMetric!
  "Value that metric must reach in order for a badge to be awarded"
  threshold: BigInt!
  "Community score given when badge is awarded"
  communityScore: BigInt!
  "Total count of earned badges"
  earnedBadgeCount: Int!
  "Badges awarded with this definition"
  earnedBadges: [EarnedBadge!]! @derivedFrom(field: "definition")
}



v2 primitive