DHPC
  • 👋Welcome to DHPC
  • 🎆DHPC Network
  • Product Guides
    • ⭕How to run a node
    • ⛏️How to run miners
  • Fundamentals
    • 🪄Providing data
    • 🏛️Reputation and Score
  • Specs
    • 🧍Users
    • 💿Data
    • ❓Requests
  • Integration
    • EVM
      • Dapp Integration
  • API
    • 📗DHPC API Guide
    • 📑API Reference
    • Build Node from source code
    • Build Miner from source code
Powered by GitBook
On this page
  1. Specs

Users

This data model represents individual users and their attributes such as

  • reputation

  • total locked tokens

  • linked requesters

  • L1 tokens locked for network requests

  • native tokens locked for requests

  • slash count

syntax = "proto3";
package dhpc.user;

option go_package = "github.com/DhpcChain/Dhpc/x/user/types";
import "dhpc/user/linked_requesters.proto"; 
import "dhpc/user/slash_history.proto"; 
import "gogoproto/gogo.proto"; 
import "cosmos/base/v1beta1/coin.proto"; 

message User {
  string account = 1; 
  int32 reputation = 2;
  repeated cosmos.base.v1beta1.Coin deposit = 3 [(gogoproto.nullable) = false];
  repeated LinkedRequesters linkedRequester = 4; 
  repeated SlashHistory slashHistory = 5; 
}
PreviousReputation and ScoreNextData

Last updated 1 year ago

🧍