Skip to content

Commit

Permalink
Merge branch 'master' into fill-missing-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-chauhan committed Dec 5, 2023
2 parents 27165ef + 94cce12 commit 8cbecb7
Show file tree
Hide file tree
Showing 133 changed files with 43,071 additions and 12,663 deletions.
264 changes: 162 additions & 102 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -6499,6 +6499,36 @@
}
}
},
"hifi-governance": {
"schema": "governance",
"base": "governor-alpha-bravo",
"protocol": "hifi-governance",
"project": "hifi",
"deployments": {
"hifi-governance-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "1.0.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "hifi-governance.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": false
},
"services": {
"hosted-service": {
"slug": "hifi-governance",
"query-id": "hifi-governance"
}
}
}
}
},
"idle-governance": {
"schema": "governance",
"base": "governor-alpha-bravo",
Expand Down Expand Up @@ -7590,7 +7620,7 @@
"status": "prod",
"versions": {
"schema": "1.0.0",
"subgraph": "1.0.1",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"services": {
Expand Down Expand Up @@ -7991,6 +8021,102 @@
}
}
},
"orbit": {
"schema": "bridge",
"base": "orbit",
"protocol": "orbit",
"project": "orbit",
"deployments": {
"orbit-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "orbit.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "orbit-ethereum",
"query-id": "orbit-ethereum"
}
}
},
"orbit-bsc": {
"network": "bsc",
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "orbit.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "orbit-bsc",
"query-id": "orbit-bsc"
}
}
},
"orbit-celo": {
"network": "celo",
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "orbit.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "orbit-celo",
"query-id": "orbit-celo"
}
}
},
"orbit-polygon": {
"network": "polygon",
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "orbit.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "orbit-polygon",
"query-id": "orbit-polygon"
}
}
}
}
},
"polygon-bridge": {
"schema": "bridge",
"base": "polygon-bridge",
Expand Down Expand Up @@ -8184,7 +8310,7 @@
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.1",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"services": {
Expand All @@ -8210,7 +8336,7 @@
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.1",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"services": {
Expand All @@ -8236,7 +8362,7 @@
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.1",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"services": {
Expand All @@ -8258,7 +8384,7 @@
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.1",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"services": {
Expand All @@ -8284,7 +8410,7 @@
"status": "prod",
"versions": {
"schema": "1.2.0",
"subgraph": "1.0.1",
"subgraph": "1.1.0",
"methodology": "1.0.0"
},
"services": {
Expand Down Expand Up @@ -8495,102 +8621,6 @@
}
}
},
"orbit-bridge": {
"schema": "bridge",
"base": "orbit-bridge",
"protocol": "orbit-bridge",
"project": "orbit",
"deployments": {
"orbit-bridge-ethereum": {
"network": "ethereum",
"status": "dev",
"versions": {
"schema": "1.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"services": {
"hosted-service": {
"slug": "orbit-bridge-ethereum",
"query-id": "orbit-bridge-ethereum"
}
},
"files": {
"template": "orbit.bridge.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
}
},
"orbit-bridge-bsc": {
"network": "bsc",
"status": "dev",
"versions": {
"schema": "1.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"services": {
"hosted-service": {
"slug": "orbit-bridge-bsc",
"query-id": "orbit-bridge-bsc"
}
},
"files": {
"template": "orbit.bridge.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
}
},
"orbit-bridge-polygon": {
"network": "polygon",
"status": "dev",
"versions": {
"schema": "1.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"services": {
"hosted-service": {
"slug": "orbit-bridge-polygon",
"query-id": "orbit-bridge-polygon"
}
},
"files": {
"template": "orbit.bridge.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
}
},
"orbit-bridge-celo": {
"network": "celo",
"status": "dev",
"versions": {
"schema": "1.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"services": {
"hosted-service": {
"slug": "orbit-bridge-celo",
"query-id": "orbit-bridge-celo"
}
},
"files": {
"template": "orbit.bridge.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
}
}
}
},
"cbridge": {
"schema": "bridge",
"base": "cbridge",
Expand Down Expand Up @@ -9814,5 +9844,35 @@
}
}
}
},
"friend-tech": {
"schema": "generic",
"base": "friend-tech",
"protocol": "friend-tech",
"project": "friend-tech",
"deployments": {
"friend-tech-base": {
"network": "base",
"status": "prod",
"versions": {
"schema": "2.1.1",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "friend.tech.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "friend-tech-base",
"query-id": "friend-tech-base"
}
}
}
}
}
}
1 change: 1 addition & 0 deletions schema-bridge.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ enum Network {
HARMONY
PALM
CURIO
XDAI
UNKNOWN_NETWORK
}

Expand Down
3 changes: 3 additions & 0 deletions subgraphs/friend-tech/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
configure.ts
docs/
48 changes: 48 additions & 0 deletions subgraphs/friend-tech/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Friend Tech Protocol Subgraph Metrics Methodology v1.0.0

friend-tech subgraph based on a non-standard schema - (derived from generic schema v2.1.1).

## Business Summary

- Friend.tech is a decentralized social network. Users can buy and sell `keys` (previously known as `shares`) that are linked to Twitter (now X) accounts. These keys offer access to private in-app chatrooms and exclusive content from that X user.
- Social tokens combine aspects of traditional cryptocurrencies with patronage systems, allowing influencers, creators, and others to monetize a fan base in exchange for exclusive offers and content.
- The price of keys is determined based on the concept of a bonding curve. The price follows a mathematical relationship to the supply of the keys within a given group. Therefore, the more shares purchased, the higher the chances of the prices increasing.
- Every key-related buy-sell transaction attracts a 10% fee — half of which goes to the creator, and the other half goes to the treasury.
- Every user is either a "subject" or a "trader" at Friend.tech.
- Subjects (the creators) register on the platform by connecting their Twitter account, and enable people to speculate on their keys. They earn a fee on each trade.
- Traders (the followers) buy / sell keys of subjects. Depending on how big the subject’s network grows, the key price appreciates, and traders can then sell it for a profit, or keep holding.

## Financial and Usage Metrics

> Note: `trade value = key value + subject fee + protocol fee`
Total Value Locked:

- TVL = ∑ (key value in Buy trades) - ∑ (key value in Sell trades)

Revenue:

- Total Revenue = 10% total fee on trade value
- Supply Side Revenue = 5% subject fee on trade value
- Protocol Side Revenue = 5% protocol fee on trade value

Volume:

- Buy Volume = ∑ (key value in Buy trades)
- Sell Volume = ∑ (key value in Sell trades)
- Total Volume = Buy Volume + Sell Volume
- Net Volume = Buy Volume - Sell Volume

Activity:

- There are two groups of users, `Traders` and `Subjects`
- Traders can further be classified into `Buyers` and `Sellers`

## Links:

- Protocol: https://www.friend.tech/
- Main Contract: https://basescan.org/address/0xcf205808ed36593aa40a44f10c7f7c2f67d4a4d4
- Stats Dashboards:
- https://dune.com/cryptokoryo/friendtech
- https://dune.com/austin_adams/friendstech-dashboard
- https://dune.com/hildobby/friendtech
Loading

0 comments on commit 8cbecb7

Please sign in to comment.