wormhole-explorer/api
agodnic 4ee9abe91e
Exclude invalid chain IDs from top chain pairs (#574)
### Description

Tracking issues: https://github.com/wormhole-foundation/wormhole-explorer/issues/572, https://github.com/wormhole-foundation/wormhole-explorer/issues/573

This pull request fixes an issue in which the endpoint `GET /api/v1/top-chain-pairs-by-num-transfers` was returning invalid chain IDs for testnet.
2023-07-24 09:20:01 -03:00
..
cacheable Fix intermittent failure in x-chain-activity endpoint (#420) 2023-06-20 10:34:20 -03:00
docs Remove unused fields from the origin transaction model (#528) 2023-07-12 16:47:33 -03:00
handlers Exclude invalid chain IDs from top chain pairs (#574) 2023-07-24 09:20:01 -03:00
internal Update base URL for the external TVL API (#560) 2023-07-19 15:03:28 -03:00
middleware Fix `GET /api/v1/transactions?address={addr}` (#550) 2023-07-18 09:54:52 -03:00
response
routes Handle multiple VAAs with the same `txHash` (#564) 2023-07-20 16:37:45 -03:00
rpc Add route `GET /api/v1/address/{address}` (#228) 2023-04-12 15:51:33 -03:00
types Fix transaction hash search for Sui (#448) 2023-06-22 10:32:17 -03:00
.gitignore
Dockerfile [API/PARSER] Chain activity and last transaction endpoints (#175) 2023-03-07 16:25:42 -03:00
Makefile add make to docker 2023-02-05 09:52:56 -03:00
README.md
go.mod Add environment to promethes metrics for api (#507) 2023-07-05 16:15:29 -03:00
go.sum Add environment to promethes metrics for api (#507) 2023-07-05 16:15:29 -03:00
main.go Add environment to promethes metrics for api (#507) 2023-07-05 16:15:29 -03:00

README.md

API

How to build

make build

Config

You will need to set some env variables with the prefix WORMSCAN

  • WORMSCAN_DB_MONGO
  • WORMSCAN_DB_NAME
  • WORMSCAN_PORT

for example:

WORMSCAN_DB_URL=mongodb://localhost:27017/wormhole WORMSCAN_PORT=5555 ./api

API Documentation

Documentation is automagically generated via swaggo using annotations on code and placed inside doc/ folder.

To install swag tool run this

go install github.com/swaggo/swag/cmd/swag@latest

To generate or update the doc run:

make doc