wormhole-explorer/onchain_data
ckeun e7c81723ca
Web: fix vaa parsing (#31)
* web: fix broken response objects & update parseVaa method

* Removed _parseVAAAlgorand

* onchain-data: replaced serum rpc and added more try/catch in case of failure

* update axios

* web: set proxy and fixed unique key in TokenDetails.tsx

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-11-17 17:30:11 -06:00
..
src Web: fix vaa parsing (#31) 2022-11-17 17:30:11 -06:00
.gitignore Added onchain_data/custody support (#5) 2022-10-28 10:24:25 -05:00
Dockerfile Added docker container for onchain data (#7) 2022-10-28 15:44:10 -05:00
README.md Added onchain_data/custody support (#5) 2022-10-28 10:24:25 -05:00
package-lock.json Added Near, Aptos, Algorand to Custody (#21) 2022-11-07 09:49:49 -06:00
package.json Fly: upgrade wormhole dependency & add governor p2p channels (#22) 2022-11-08 08:53:12 -06:00
tsconfig.json Added docker container for onchain data (#7) 2022-10-28 15:44:10 -05:00

README.md

Onchain data for custody monitoring

For each connected wormhole chain, query the custody contract and get the updated locked value for each token. There are two modes: (1) query a known list of tracked tokens aka allow list (2) query either a scan site (if available) or covalent (also if available) to grab list of known tokens locked in the custody contract

Set env variable allowlist=true if using allow list found at: onchain_data/data/allowList.json taken from: https://github.com/wormhole-foundation/wormhole/blob/dev.v2/event_database/cloud_functions/token-allowlist-mainnet.json Has the added benefit of also including the coin gecko ids in order to mark positions to USD

MONGODB_URI=mongodb://root:example@localhost:27017/ allowlist=true node lib/getCustodyData.js

Currently Near, Algorand, Xpla, & Aptos are not supported. Feel free to add support ;)

The aggregated custody data gets pushed to the mongodb database - "onchain_data" into the table - "custody"

There are api endpoints that the server provides which powers the wormscan website.