Skip to content

Commit

Permalink
feat(#major): Add orbit-bridge subgraph (#1992)
Browse files Browse the repository at this point in the history
Co-authored-by: tryouge <[email protected]>
  • Loading branch information
tryouge and tryouge authored Dec 5, 2023
1 parent 6911259 commit 94cce12
Show file tree
Hide file tree
Showing 88 changed files with 27,529 additions and 96 deletions.
192 changes: 96 additions & 96 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -8021,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 @@ -8525,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
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
38 changes: 38 additions & 0 deletions subgraphs/orbit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Orbit Bridge

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.

## Usage Metrics

`Active Users`, `Total Unique Users` & `Daily Transaction Count`

Transactions of interest include:
Cross-chain transfer of Tokens

### Total Value Locked USD

The TVL includes the funds locked in the tokenVault contract (canonical token bridge).

TVL = `canonical token bridge TVL`

## Total Revenue USD

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.

Total Revenue = `ProtocolSideRevenue`

## Pool-Level Metrics

### Pool Total Value Locked USD

Pool Total Value Locked = `Balance of Input Assets` \* `Price of Asset`

## Links

Links to the relevant sources to learn about this protocol.

- Protocol: https://bridge.orbitchain.io/
- Analytics: https://bridge.orbitchain.io/dashboard/transaction
- Docs: https://bridge-docs.orbitchain.io/
- Smart contracts: https://github.com/orbit-chain/bridge-contract
- Deployed addresses: https://bridge-docs.orbitchain.io/faq/integration-guide/2.-contract-addresses
Loading

0 comments on commit 94cce12

Please sign in to comment.