Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#major): Add orbit-bridge subgraph #1992

Merged
merged 53 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
dc6e413
add file a.b
Apr 9, 2023
b04ac5f
restoring original files
Apr 9, 2023
bba5272
Add working directory for orbit bridge
Apr 9, 2023
311b2a4
Merge branch 'messari:master' into orbit-bridge-add
tryouge Apr 9, 2023
d0ed6b4
Add more files
Apr 9, 2023
665eb30
Merge branch 'orbit-bridge-add' of https://github.com/tryouge/subgrap…
Apr 9, 2023
8246cdc
Update yaml and handler file for orbit
Apr 9, 2023
1bc7040
Update deployment.json and have a compiled subgraph
Apr 9, 2023
a1d36dd
Modify deployment.json
Apr 9, 2023
bbf444b
Initialize bridge SDK in orbit code
Apr 14, 2023
b33c107
add file a.b
Apr 9, 2023
66405cb
restoring original files
Apr 9, 2023
525b60b
Add working directory for orbit bridge
Apr 9, 2023
6a44418
Add more files
Apr 9, 2023
e56ef5e
Update yaml and handler file for orbit
Apr 9, 2023
e6a4838
Update deployment.json and have a compiled subgraph
Apr 9, 2023
094e745
Modify deployment.json
Apr 9, 2023
8a2109b
Initialize bridge SDK in orbit code
Apr 14, 2023
9dc0715
Merge branch 'orbit-bridge-add' of https://github.com/tryouge/subgrap…
Apr 14, 2023
f1998f2
changes to handler.ts
Apr 21, 2023
78a6b10
Add working loadPool function
Apr 21, 2023
30ac38d
Implement handleLockIn function using SDK
Apr 22, 2023
0508ab1
Add protocol revenue in _handleTransferOut
Apr 26, 2023
ed7889f
Fix build issues
Apr 26, 2023
42bd1f7
Add handling for Withdraw
May 6, 2023
851a475
Add mintHandler to template yaml
May 12, 2023
06990ff
Finish off Swap and SwapRequest handlers and add deployments for othe…
May 12, 2023
0931818
Updates
May 12, 2023
771766b
update matic deployment's network name
May 13, 2023
c7a4f0d
Debugging changes
May 19, 2023
8a4ceeb
More changes
May 19, 2023
05686e1
change TokenParams function
May 19, 2023
585505b
Make changes to fix orbit
May 26, 2023
1b19270
Add graft and debug statements for 32 byte sender addresses
Jun 2, 2023
7e2ff21
add more changes
Aug 18, 2023
c0f53e9
Add TON as possible chain
Aug 19, 2023
d1a2137
Latest changes
Oct 2, 2023
a11217f
clean up code
Oct 2, 2023
d48982d
Merge branch 'master' into orbit-bridge-add
tryouge Oct 2, 2023
502887c
Update README for Orbit
Oct 2, 2023
5e864aa
Merge branch 'orbit-bridge-add' of https://github.com/tryouge/subgrap…
Oct 2, 2023
4504d3c
latest changes
Oct 16, 2023
97c9c13
Fix linting issues
Oct 16, 2023
1f14dcd
Run npm format
Oct 26, 2023
63a2c85
Remove orbit-bridge from deployment.json
Nov 2, 2023
48ac106
Remove unused files in common and sdk folder
Nov 2, 2023
471545d
Add latest version of prices library
Nov 2, 2023
8b39191
Update to latest bridge schema
Nov 2, 2023
ab71fa3
Refactoring
Nov 2, 2023
cf1e991
refactoring
Nov 2, 2023
f6a53db
Fix format and linting issues
Nov 3, 2023
ce059d1
Removed LiquidityBoundPricing for updated stats
Nov 29, 2023
7d9effe
Clean up code for LiquidityBoundPricing
Nov 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 96 additions & 96 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -7965,6 +7965,102 @@
}
}
},
"orbit": {
melotik marked this conversation as resolved.
Show resolved Hide resolved
"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 @@ -8469,102 +8565,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
Loading