Skip to content

Commit 94cce12

Browse files
tryougetryouge
and
tryouge
authored
feat(#major): Add orbit-bridge subgraph (#1992)
Co-authored-by: tryouge <[email protected]>
1 parent 6911259 commit 94cce12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+27529
-96
lines changed

deployment/deployment.json

+96-96
Original file line numberDiff line numberDiff line change
@@ -8021,6 +8021,102 @@
80218021
}
80228022
}
80238023
},
8024+
"orbit": {
8025+
"schema": "bridge",
8026+
"base": "orbit",
8027+
"protocol": "orbit",
8028+
"project": "orbit",
8029+
"deployments": {
8030+
"orbit-ethereum": {
8031+
"network": "ethereum",
8032+
"status": "prod",
8033+
"versions": {
8034+
"schema": "1.2.0",
8035+
"subgraph": "1.0.0",
8036+
"methodology": "1.0.0"
8037+
},
8038+
"files": {
8039+
"template": "orbit.template.yaml"
8040+
},
8041+
"options": {
8042+
"prepare:yaml": true,
8043+
"prepare:constants": true
8044+
},
8045+
"services": {
8046+
"hosted-service": {
8047+
"slug": "orbit-ethereum",
8048+
"query-id": "orbit-ethereum"
8049+
}
8050+
}
8051+
},
8052+
"orbit-bsc": {
8053+
"network": "bsc",
8054+
"status": "prod",
8055+
"versions": {
8056+
"schema": "1.2.0",
8057+
"subgraph": "1.0.0",
8058+
"methodology": "1.0.0"
8059+
},
8060+
"files": {
8061+
"template": "orbit.template.yaml"
8062+
},
8063+
"options": {
8064+
"prepare:yaml": true,
8065+
"prepare:constants": true
8066+
},
8067+
"services": {
8068+
"hosted-service": {
8069+
"slug": "orbit-bsc",
8070+
"query-id": "orbit-bsc"
8071+
}
8072+
}
8073+
},
8074+
"orbit-celo": {
8075+
"network": "celo",
8076+
"status": "prod",
8077+
"versions": {
8078+
"schema": "1.2.0",
8079+
"subgraph": "1.0.0",
8080+
"methodology": "1.0.0"
8081+
},
8082+
"files": {
8083+
"template": "orbit.template.yaml"
8084+
},
8085+
"options": {
8086+
"prepare:yaml": true,
8087+
"prepare:constants": true
8088+
},
8089+
"services": {
8090+
"hosted-service": {
8091+
"slug": "orbit-celo",
8092+
"query-id": "orbit-celo"
8093+
}
8094+
}
8095+
},
8096+
"orbit-polygon": {
8097+
"network": "polygon",
8098+
"status": "prod",
8099+
"versions": {
8100+
"schema": "1.2.0",
8101+
"subgraph": "1.0.0",
8102+
"methodology": "1.0.0"
8103+
},
8104+
"files": {
8105+
"template": "orbit.template.yaml"
8106+
},
8107+
"options": {
8108+
"prepare:yaml": true,
8109+
"prepare:constants": true
8110+
},
8111+
"services": {
8112+
"hosted-service": {
8113+
"slug": "orbit-polygon",
8114+
"query-id": "orbit-polygon"
8115+
}
8116+
}
8117+
}
8118+
}
8119+
},
80248120
"polygon-bridge": {
80258121
"schema": "bridge",
80268122
"base": "polygon-bridge",
@@ -8525,102 +8621,6 @@
85258621
}
85268622
}
85278623
},
8528-
"orbit-bridge": {
8529-
"schema": "bridge",
8530-
"base": "orbit-bridge",
8531-
"protocol": "orbit-bridge",
8532-
"project": "orbit",
8533-
"deployments": {
8534-
"orbit-bridge-ethereum": {
8535-
"network": "ethereum",
8536-
"status": "dev",
8537-
"versions": {
8538-
"schema": "1.1.1",
8539-
"subgraph": "1.0.0",
8540-
"methodology": "1.0.0"
8541-
},
8542-
"services": {
8543-
"hosted-service": {
8544-
"slug": "orbit-bridge-ethereum",
8545-
"query-id": "orbit-bridge-ethereum"
8546-
}
8547-
},
8548-
"files": {
8549-
"template": "orbit.bridge.template.yaml"
8550-
},
8551-
"options": {
8552-
"prepare:yaml": true,
8553-
"prepare:constants": true
8554-
}
8555-
},
8556-
"orbit-bridge-bsc": {
8557-
"network": "bsc",
8558-
"status": "dev",
8559-
"versions": {
8560-
"schema": "1.1.1",
8561-
"subgraph": "1.0.0",
8562-
"methodology": "1.0.0"
8563-
},
8564-
"services": {
8565-
"hosted-service": {
8566-
"slug": "orbit-bridge-bsc",
8567-
"query-id": "orbit-bridge-bsc"
8568-
}
8569-
},
8570-
"files": {
8571-
"template": "orbit.bridge.template.yaml"
8572-
},
8573-
"options": {
8574-
"prepare:yaml": true,
8575-
"prepare:constants": true
8576-
}
8577-
},
8578-
"orbit-bridge-polygon": {
8579-
"network": "polygon",
8580-
"status": "dev",
8581-
"versions": {
8582-
"schema": "1.1.1",
8583-
"subgraph": "1.0.0",
8584-
"methodology": "1.0.0"
8585-
},
8586-
"services": {
8587-
"hosted-service": {
8588-
"slug": "orbit-bridge-polygon",
8589-
"query-id": "orbit-bridge-polygon"
8590-
}
8591-
},
8592-
"files": {
8593-
"template": "orbit.bridge.template.yaml"
8594-
},
8595-
"options": {
8596-
"prepare:yaml": true,
8597-
"prepare:constants": true
8598-
}
8599-
},
8600-
"orbit-bridge-celo": {
8601-
"network": "celo",
8602-
"status": "dev",
8603-
"versions": {
8604-
"schema": "1.1.1",
8605-
"subgraph": "1.0.0",
8606-
"methodology": "1.0.0"
8607-
},
8608-
"services": {
8609-
"hosted-service": {
8610-
"slug": "orbit-bridge-celo",
8611-
"query-id": "orbit-bridge-celo"
8612-
}
8613-
},
8614-
"files": {
8615-
"template": "orbit.bridge.template.yaml"
8616-
},
8617-
"options": {
8618-
"prepare:yaml": true,
8619-
"prepare:constants": true
8620-
}
8621-
}
8622-
}
8623-
},
86248624
"cbridge": {
86258625
"schema": "bridge",
86268626
"base": "cbridge",

schema-bridge.graphql

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ enum Network {
8484
HARMONY
8585
PALM
8686
CURIO
87+
XDAI
8788
UNKNOWN_NETWORK
8889
}
8990

subgraphs/orbit/README.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Orbit Bridge
2+
3+
Orbit Bridge is an interchain communication protocol that allows communication between heterogeneous blockchains. This is a simple bridge operating on the `LOCK_RELEASE` and `BURN_MINT` mechanism without any Liquidity Pools.
4+
5+
## Usage Metrics
6+
7+
`Active Users`, `Total Unique Users` & `Daily Transaction Count`
8+
9+
Transactions of interest include:
10+
Cross-chain transfer of Tokens
11+
12+
### Total Value Locked USD
13+
14+
The TVL includes the funds locked in the tokenVault contract (canonical token bridge).
15+
16+
TVL = `canonical token bridge TVL`
17+
18+
## Total Revenue USD
19+
20+
Total revenue is a measure of the fees paid by the traders over a specific period. Since there are no LPs involved, there is only protocol fees - which is .1% of transaction.
21+
22+
Total Revenue = `ProtocolSideRevenue`
23+
24+
## Pool-Level Metrics
25+
26+
### Pool Total Value Locked USD
27+
28+
Pool Total Value Locked = `Balance of Input Assets` \* `Price of Asset`
29+
30+
## Links
31+
32+
Links to the relevant sources to learn about this protocol.
33+
34+
- Protocol: https://bridge.orbitchain.io/
35+
- Analytics: https://bridge.orbitchain.io/dashboard/transaction
36+
- Docs: https://bridge-docs.orbitchain.io/
37+
- Smart contracts: https://github.com/orbit-chain/bridge-contract
38+
- Deployed addresses: https://bridge-docs.orbitchain.io/faq/integration-guide/2.-contract-addresses

0 commit comments

Comments
 (0)