Go to file
agodnic 29f7900c7d
[API] Accept emitter addresses in Solana format (#200)
### Summary

This PR enables passing emitter addresses in Solana format when the `chainId` parameter is set to 1. If `chainId` is set to a different value, the API will expect a regular Wormhole address.

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/189

### Endpoints affected
- `GET /api/v1/global-tx/{chain_id}/{emitter}/{seq}`
- `GET /api/v1/observations/:chain/:emitter`
- `GET /api/v1/observations/:chain/:emitter/:sequence`
- `GET /api/v1/observations/:chain/:emitter/:sequence/:signer/:hash`
- `GET /api/v1/vaas/{chain_id}/{emitter}`
- `GET /api/v1/vaas/{chain_id}/{emitter}/{seq}`

### Example
These two calls should be equivalent:
- `GET /api/v1/vaas/1/ec7372995d5cc8732397fb0ad35c0121e0eaa90d26f828a534cab54391b3a4f5` (address in Wormhole format)
- `GET /api/v1/vaas/1/Gv1KWf8DT1jKv5pKBmGaTmVszqa56Xn8YGx2Pg7i7qAk` (the same address, in Solana format)
2023-03-21 16:12:23 -03:00
.github/workflows Build API swagger on github workflows (#123) 2023-02-02 15:07:09 -03:00
analytic [API/PARSER] Chain activity and last transaction endpoints (#175) 2023-03-07 16:25:42 -03:00
api [API] Accept emitter addresses in Solana format (#200) 2023-03-21 16:12:23 -03:00
common [TX TRACKER] Add component that obtains transaction data (#159) 2023-03-14 15:49:10 -03:00
contract-watcher Fix timestamp and blockNumber for EVM and Solana blochains (#199) 2023-03-21 15:59:40 -03:00
deploy Add terra to contract watcher (#195) 2023-03-20 17:08:00 -03:00
devnet 18 fly api cache most recent data for most frequent queries (#51) 2023-01-05 16:40:24 -03:00
fly Add contract watcher component (#190) 2023-03-15 16:52:50 -03:00
onchain_data Web: fix vaa parsing (#31) 2022-11-17 17:30:11 -06:00
parser [API/PARSER] Chain activity and last transaction endpoints (#175) 2023-03-07 16:25:42 -03:00
pipeline [API/PARSER] Chain activity and last transaction endpoints (#175) 2023-03-07 16:25:42 -03:00
server web: fixed vaa timestamp col (#26) 2022-11-10 07:46:02 -06:00
spy fix spy dependencies (#191) 2023-03-16 10:32:39 -03:00
tx-tracker [TX TRACKER] Add backfiller for source transactions (#194) 2023-03-20 16:36:19 -03:00
web Web: fix vaa parsing (#31) 2022-11-17 17:30:11 -06:00
.gitignore Add solana support to contract watcher (#197) 2023-03-20 15:56:31 -03:00
LICENSE first commit 2022-09-07 18:43:05 +00:00
Makefile Add contract watcher component (#190) 2023-03-15 16:52:50 -03:00
README.md Update README.md 2022-10-05 03:08:42 -04:00
Tiltfile fix: MongoDB Replica Set when Titl is restarted (#43) 2022-12-15 12:51:15 -03:00
go.work Add contract watcher component (#190) 2023-03-15 16:52:50 -03:00

README.md

Wormhole Explorer

Background

WIP

It would be more efficient and reliable for...

  • an indexer to be populated by an independent party (Fly) listening on the p2p network
  • integrators to query a service for signed VAAs instead of round-robining the public guardian endpoints

More insight into Wormhole network status, stats, and messages would be great!

The service can even be extended to offer websockets or webhooks to stream new VAAs.

Components

Mongo

Mongo Express

Fly

References

https://hub.docker.com/_/mongo

https://www.mongodb.com/docs/drivers/go/current/