Graphite
  • Overview
    • Introduction
    • What is Graphite?
    • Connect to Graphite
    • Graphite account activation
    • Graphite Wrapped Tokens
  • Build on Graphite
    • Getting started
    • System Contracts
      • Account Activation
      • Filter Contract (KYC Transaction Filters)
      • KYC Contract
      • Reputation
    • How to Complete KYC in a Testnet
    • How to Deploy Smart Contracts Using Hardhat: A Step-by-Step Guide
    • SDK
      • JS SDK
  • Infrastructure
    • Graphite Nodes
      • Graphite testnet node setup
      • Graphite mainnet node setup
  • Ecosystem
    • Graphite Wallet
      • Graphite Web3 Documentation
    • Graphite Bridge
    • The Graphite Explorer
      • API documentation
    • Faucet Testnet
Powered by GitBook
On this page
  • Intro
  • Network address of the contract
  • Functions
  • getReputation(address addr)
  1. Build on Graphite
  2. System Contracts

Reputation

Intro

Reputation.sol is a Graphite system smart contract. It's needed for users to create their own reputation-based smart contracts.

Reputation is calculated as follows:

Reputation=CD+A+KYC+QTx+DiffReputation=CD+A+KYC+QTx+DiffReputation=CD+A+KYC+QTx+Diff
Parameter
Сriteria
Reputation Score

Creation date (CD)

more 100000 blocks ago

1

50000 - 100000 blocks ago

0.7

10000 - 50000 blocks ago

0.5

less 10000 blocks ago

0

Parameter
Criteria
Reputation Score

Activated (A)

Activated

1

Not Activated

0

Parameter
Criteria
Reputation Score

KYC

Level 0

0

Level 1

1

Level 2

3

Parameter
Criteria
Reputation Score

Quantity of txn (QTx)

more 1000

1

500 - 1000

0.8

100 - 500

0.5

10 - 100

0.3

1 - 10

0.05

0

0

Parameter
Criteria
Reputation Score

Difference (Diff)

(all in - all in) more 0.1 @G

0.5

(all in - all out) less 0.1 @G

0

Network address of the contract

Reputation_address = "0x0000000000000000000000000000000000001008"

Functions

getReputation(address addr)

  • Purpose

Call getReputation(address addr) to get the reputation of a particular address.

  • Arguments

address - wallet address.

  • After Execution

This function returns the reputation.

PreviousKYC ContractNextHow to Complete KYC in a Testnet

Last updated 6 months ago