diff --git a/api/docs/docs.go b/api/docs/docs.go index fae5293f2..f0a6bcd98 100644 --- a/api/docs/docs.go +++ b/api/docs/docs.go @@ -1,4 +1,4 @@ -// Code generated by swaggo/swag. DO NOT EDIT +// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" @@ -12,7 +12,7 @@ const docTemplate = `{ "termsOfService": "https://wormhole.com/", "contact": { "name": "API Support", - "url": "http://wormhole.com/support", + "url": "https://discord.com/invite/wormholecrypto", "email": "info@wormhole.com" }, "license": { @@ -28,7 +28,7 @@ const docTemplate = `{ "get": { "description": "Lookup an address", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-address-by-id", "parameters": [ @@ -56,7 +56,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-address_AddressOverview" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_address_AddressOverview" } }, "400": { @@ -75,7 +75,7 @@ const docTemplate = `{ "get": { "description": "Find a global transaction by VAA ID\nGlobal transactions is a logical association of two transactions that are related to each other by a unique VAA ID.\nThe first transaction is created on the origin chain when the VAA is emitted.\nThe second transaction is created on the destination chain when the VAA is redeemed.\nIf the response only contains an origin tx the VAA was not redeemed.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-global-transaction-by-id", "parameters": [ @@ -105,7 +105,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.Tx" + "$ref": "#/definitions/routes_wormscan_transactions.Tx" } }, "400": { @@ -121,7 +121,7 @@ const docTemplate = `{ "get": { "description": "Returns governor configuration for all guardians.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-config", "parameters": [ @@ -142,7 +142,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_GovConfig" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig" } }, "400": { @@ -158,14 +158,14 @@ const docTemplate = `{ "get": { "description": "Returns governor configuration for a given guardian.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-config-by-guardian-address", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_GovConfig" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig" } }, "400": { @@ -181,7 +181,7 @@ const docTemplate = `{ "get": { "description": "Returns enqueued VAAs for each blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-enqueued-vaas", "parameters": [ @@ -212,7 +212,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_EnqueuedVaas" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaas" } }, "400": { @@ -228,7 +228,7 @@ const docTemplate = `{ "get": { "description": "Returns all enqueued VAAs for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "guardians-enqueued-vaas-by-chain", "parameters": [ @@ -259,7 +259,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_EnqueuedVaaDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaaDetail" } }, "400": { @@ -275,7 +275,7 @@ const docTemplate = `{ "get": { "description": "Returns the governor limit for all blockchains.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-limit", "parameters": [ @@ -296,7 +296,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_GovernorLimit" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovernorLimit" } }, "400": { @@ -312,7 +312,7 @@ const docTemplate = `{ "get": { "description": "Returns the amount of notional value available for each blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-available", "parameters": [ @@ -343,7 +343,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalAvailable" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailable" } }, "400": { @@ -359,7 +359,7 @@ const docTemplate = `{ "get": { "description": "Returns the amount of notional value available for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-available-by-chain", "parameters": [ @@ -380,7 +380,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalAvailableDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailableDetail" } }, "400": { @@ -396,7 +396,7 @@ const docTemplate = `{ "get": { "description": "Returns the detailed notional limit for all blockchains.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-limit-detail", "parameters": [ @@ -417,7 +417,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalLimitDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail" } }, "400": { @@ -433,7 +433,7 @@ const docTemplate = `{ "get": { "description": "Returns the detailed notional limit available for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-limit-detail-by-chain", "parameters": [ @@ -454,7 +454,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalLimitDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail" } }, "400": { @@ -470,14 +470,14 @@ const docTemplate = `{ "get": { "description": "Returns the maximum amount of notional value available for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-max-notional-available-by-chain", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_MaxNotionalAvailableRecord" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_MaxNotionalAvailableRecord" } }, "400": { @@ -493,7 +493,7 @@ const docTemplate = `{ "get": { "description": "Returns the governor status for all guardians.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-status", "parameters": [ @@ -514,7 +514,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus" } }, "400": { @@ -530,7 +530,7 @@ const docTemplate = `{ "get": { "description": "Returns the governor status for a given guardian.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-status-by-guardian-address", "parameters": [ @@ -551,7 +551,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus" } }, "400": { @@ -567,26 +567,19 @@ const docTemplate = `{ "get": { "description": "Health check", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "health-check", "responses": { "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "status": { - "type": "string" - } - } + "type": "object", + "properties": { + "status": { + "type": "string" } - ] + } } }, "400": { @@ -602,7 +595,7 @@ const docTemplate = `{ "get": { "description": "Returns the number of transactions by a defined time span and sample rate.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-last-transactions", "parameters": [ @@ -625,7 +618,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/transactions.TransactionCountResult" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.TransactionCountResult" } } }, @@ -642,7 +635,7 @@ const docTemplate = `{ "get": { "description": "Returns all observations, sorted in descending timestamp order.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations", "parameters": [ @@ -675,7 +668,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -692,7 +685,7 @@ const docTemplate = `{ "get": { "description": "Returns all observations for a given blockchain, sorted in descending timestamp order.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-chain", "parameters": [ @@ -725,7 +718,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -742,7 +735,7 @@ const docTemplate = `{ "get": { "description": "Returns all observations for a specific emitter address, sorted in descending timestamp order.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-emitter", "parameters": [ @@ -775,7 +768,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -792,7 +785,7 @@ const docTemplate = `{ "get": { "description": "Find observations identified by emitter chain, emitter address and sequence.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-sequence", "parameters": [ @@ -825,7 +818,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -842,7 +835,7 @@ const docTemplate = `{ "get": { "description": "Find a specific observation.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-id", "parameters": [ @@ -875,7 +868,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -892,26 +885,19 @@ const docTemplate = `{ "get": { "description": "Ready check", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "ready-check", "responses": { "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "ready": { - "type": "string" - } - } + "type": "object", + "properties": { + "ready": { + "type": "string" } - ] + } } }, "400": { @@ -927,14 +913,14 @@ const docTemplate = `{ "get": { "description": "Returns a list of KPIs for Wormhole.\nTVL is total value locked by token bridge contracts in USD.\nVolume is the all-time total volume transferred through the token bridge in USD.\n24h volume is the volume transferred through the token bridge in the last 24 hours, in USD.\nTotal Tx count is the number of transaction bridging assets since the creation of the network (does not include Pyth or other messages).\n24h tx count is the number of transaction bridging assets in the last 24 hours (does not include Pyth or other messages).\nTotal messages is the number of VAAs emitted since the creation of the network (includes Pyth messages).", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-scorecards", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.ScorecardsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.ScorecardsResponse" } }, "500": { @@ -947,7 +933,7 @@ const docTemplate = `{ "get": { "description": "Returns a token symbol, coingecko id and address by chain and token address.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-token-by-chain-and-address", "parameters": [ @@ -970,7 +956,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.Token" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.Token" } }, "400": { @@ -986,7 +972,7 @@ const docTemplate = `{ "get": { "description": "Returns a list of emitter_chain and asset pairs with ordered by volume.\nThe volume is calculated using the notional price of the symbol at the day the VAA was emitted.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-top-assets-by-volume", "parameters": [ @@ -1002,7 +988,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.TopAssetsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.TopAssetsResponse" } }, "500": { @@ -1015,7 +1001,7 @@ const docTemplate = `{ "get": { "description": "Returns a list of the emitter_chain and destination_chain pair ordered by transfer count.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-top-chain-pairs-by-num-transfers", "parameters": [ @@ -1031,7 +1017,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.TopChainPairsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.TopChainPairsResponse" } }, "500": { @@ -1044,7 +1030,7 @@ const docTemplate = `{ "get": { "description": "Returns transactions. Output is paginated.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "list-transactions", "parameters": [ @@ -1065,7 +1051,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.ListTransactionsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.ListTransactionsResponse" } }, "400": { @@ -1081,7 +1067,7 @@ const docTemplate = `{ "get": { "description": "Find VAA metadata by ID.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-transaction-by-id", "parameters": [ @@ -1111,7 +1097,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.TransactionDetail" + "$ref": "#/definitions/routes_wormscan_transactions.TransactionDetail" } }, "400": { @@ -1127,7 +1113,7 @@ const docTemplate = `{ "get": { "description": "Returns all VAAs. Output is paginated and can also be be sorted.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-all-vaas", "parameters": [ @@ -1176,7 +1162,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1192,7 +1178,7 @@ const docTemplate = `{ "post": { "description": "Parse a VAA.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "parse-vaa", "responses": { @@ -1218,14 +1204,14 @@ const docTemplate = `{ "get": { "description": "Returns the total number of VAAs emitted for each blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-vaa-counts", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaStats" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaStats" } }, "400": { @@ -1241,7 +1227,7 @@ const docTemplate = `{ "get": { "description": "Returns all the VAAs generated in specific blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-vaas-by-chain", "parameters": [ @@ -1279,7 +1265,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1295,7 +1281,7 @@ const docTemplate = `{ "get": { "description": "Returns all all the VAAs generated by a specific emitter address.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-vaas-by-emitter", "parameters": [ @@ -1346,7 +1332,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1362,7 +1348,7 @@ const docTemplate = `{ "get": { "description": "Find a VAA by ID.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-vaa-by-id", "parameters": [ @@ -1398,7 +1384,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1414,14 +1400,14 @@ const docTemplate = `{ "get": { "description": "Get version/release information.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-version", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/infrastructure.VersionResponse" + "$ref": "#/definitions/routes_wormscan_infrastructure.VersionResponse" } }, "400": { @@ -1437,7 +1423,7 @@ const docTemplate = `{ "get": { "description": "Returns a list of chain pairs by origin chain and destination chain.\nThe list could be rendered by notional or transaction count.\nThe volume is calculated using the notional price of the symbol at the day the VAA was emitted.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "x-chain-activity", "parameters": [ @@ -1464,7 +1450,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.ChainActivity" + "$ref": "#/definitions/routes_wormscan_transactions.ChainActivity" } }, "400": { @@ -1480,7 +1466,7 @@ const docTemplate = `{ "get": { "description": "Returns the swagger specification for this API.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "swagger", "responses": { @@ -1510,7 +1496,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/governor.AvailableNotionalResponse" + "$ref": "#/definitions/routes_guardian_governor.AvailableNotionalResponse" } }, "400": { @@ -1533,7 +1519,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/governor.EnqueuedVaaResponse" + "$ref": "#/definitions/routes_guardian_governor.EnqueuedVaaResponse" } }, "400": { @@ -1579,7 +1565,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/governor.EnqueuedVaaResponse" + "$ref": "#/definitions/routes_guardian_governor.EnqueuedVaaResponse" } }, "400": { @@ -1604,7 +1590,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "$ref": "#/definitions/governor.TokenList" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.TokenList" } } }, @@ -1628,7 +1614,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/guardian.GuardianSetResponse" + "$ref": "#/definitions/routes_guardian_guardian.GuardianSetResponse" } }, "400": { @@ -1651,7 +1637,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/heartbeats.HeartbeatsResponse" + "$ref": "#/definitions/routes_guardian_heartbeats.HeartbeatsResponse" } }, "400": { @@ -1697,22 +1683,15 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1758,22 +1737,15 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1787,60 +1759,18 @@ const docTemplate = `{ } }, "definitions": { - "address.AddressOverview": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_address.AddressOverview": { "type": "object", "properties": { "vaas": { "type": "array", "items": { - "$ref": "#/definitions/vaa.VaaDoc" - } - } - } - }, - "github_com_wormhole-foundation_wormhole-explorer_api_routes_guardian_guardian.GuardianSet": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "items": { - "type": "string" - } - }, - "index": { - "type": "integer" - } - } - }, - "governor.AvailableNotionalItemResponse": { - "type": "object", - "properties": { - "bigTransactionSize": { - "type": "string" - }, - "chainId": { - "$ref": "#/definitions/vaa.ChainID" - }, - "notionalLimit": { - "type": "string" - }, - "remainingAvailableNotional": { - "type": "string" - } - } - }, - "governor.AvailableNotionalResponse": { - "type": "object", - "properties": { - "entries": { - "type": "array", - "items": { - "$ref": "#/definitions/governor.AvailableNotionalItemResponse" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc" } } } }, - "governor.Emitter": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.Emitter": { "type": "object", "properties": { "emitterAddress": { @@ -1854,7 +1784,7 @@ const docTemplate = `{ } } }, - "governor.EnqueuedVaa": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaa": { "type": "object", "properties": { "chainId": { @@ -1874,7 +1804,7 @@ const docTemplate = `{ } } }, - "governor.EnqueuedVaaDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaaDetail": { "type": "object", "properties": { "chainId": { @@ -1897,41 +1827,7 @@ const docTemplate = `{ } } }, - "governor.EnqueuedVaaItemResponse": { - "type": "object", - "properties": { - "emitterAddress": { - "type": "string" - }, - "emitterChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "notionalValue": { - "type": "string" - }, - "releaseTime": { - "type": "integer" - }, - "sequence": { - "type": "integer" - }, - "txHash": { - "type": "string" - } - } - }, - "governor.EnqueuedVaaResponse": { - "type": "object", - "properties": { - "entries": { - "type": "array", - "items": { - "$ref": "#/definitions/governor.EnqueuedVaaItemResponse" - } - } - } - }, - "governor.EnqueuedVaas": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaas": { "type": "object", "properties": { "chainId": { @@ -1940,18 +1836,18 @@ const docTemplate = `{ "enqueuedVaas": { "type": "array", "items": { - "$ref": "#/definitions/governor.EnqueuedVaa" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaa" } } } }, - "governor.GovConfig": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfig": { "type": "object", "properties": { "chains": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovConfigChains" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigChains" } }, "counter": { @@ -1969,7 +1865,7 @@ const docTemplate = `{ "tokens": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovConfigfTokens" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigfTokens" } }, "updatedAt": { @@ -1977,7 +1873,7 @@ const docTemplate = `{ } } }, - "governor.GovConfigChains": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigChains": { "type": "object", "properties": { "bigTransactionSize": { @@ -1991,7 +1887,7 @@ const docTemplate = `{ } } }, - "governor.GovConfigfTokens": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigfTokens": { "type": "object", "properties": { "originAddress": { @@ -2005,13 +1901,13 @@ const docTemplate = `{ } } }, - "governor.GovStatus": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus": { "type": "object", "properties": { "chains": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovStatusChains" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChains" } }, "createdAt": { @@ -2028,7 +1924,7 @@ const docTemplate = `{ } } }, - "governor.GovStatusChainEmitter": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChainEmitter": { "type": "object", "properties": { "emitterAddress": { @@ -2040,7 +1936,7 @@ const docTemplate = `{ } } }, - "governor.GovStatusChains": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChains": { "type": "object", "properties": { "chainId": { @@ -2049,7 +1945,7 @@ const docTemplate = `{ "emitters": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovStatusChainEmitter" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChainEmitter" } }, "remainingAvailableNotional": { @@ -2057,7 +1953,7 @@ const docTemplate = `{ } } }, - "governor.GovernorLimit": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovernorLimit": { "type": "object", "properties": { "availableNotional": { @@ -2074,7 +1970,7 @@ const docTemplate = `{ } } }, - "governor.MaxNotionalAvailableRecord": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.MaxNotionalAvailableRecord": { "type": "object", "properties": { "availableNotional": { @@ -2089,7 +1985,7 @@ const docTemplate = `{ "emitters": { "type": "array", "items": { - "$ref": "#/definitions/governor.Emitter" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.Emitter" } }, "id": { @@ -2103,7 +1999,7 @@ const docTemplate = `{ } } }, - "governor.NotionalAvailable": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailable": { "type": "object", "properties": { "availableNotional": { @@ -2114,7 +2010,7 @@ const docTemplate = `{ } } }, - "governor.NotionalAvailableDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailableDetail": { "type": "object", "properties": { "availableNotional": { @@ -2137,7 +2033,7 @@ const docTemplate = `{ } } }, - "governor.NotionalLimitDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalLimitDetail": { "type": "object", "properties": { "chainId": { @@ -2163,7 +2059,7 @@ const docTemplate = `{ } } }, - "governor.TokenList": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.TokenList": { "type": "object", "properties": { "originAddress": { @@ -2177,128 +2073,153 @@ const docTemplate = `{ } } }, - "guardian.GuardianSetResponse": { - "type": "object", - "properties": { - "guardianSet": { - "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_routes_guardian_guardian.GuardianSet" - } - } - }, - "heartbeats.HeartbeatNetworkResponse": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc": { "type": "object", "properties": { - "contractAddress": { + "emitterAddr": { "type": "string" }, - "errorCount": { - "type": "string" + "emitterChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "height": { + "guardianAddr": { "type": "string" }, + "hash": { + "type": "array", + "items": { + "type": "integer" + } + }, "id": { - "type": "integer" - } - } - }, - "heartbeats.HeartbeatResponse": { - "type": "object", - "properties": { - "p2pNodeAddr": { "type": "string" }, - "rawHeartbeat": { - "$ref": "#/definitions/heartbeats.RawHeartbeat" + "indexedAt": { + "type": "string" }, - "verifiedGuardianAddr": { + "sequence": { "type": "string" - } - } - }, - "heartbeats.HeartbeatsResponse": { - "type": "object", - "properties": { - "entries": { + }, + "signature": { + "type": "array", + "items": { + "type": "integer" + } + }, + "txHash": { "type": "array", "items": { - "$ref": "#/definitions/heartbeats.HeartbeatResponse" + "type": "integer" } + }, + "updatedAt": { + "type": "string" } } }, - "heartbeats.RawHeartbeat": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.DestinationTx": { "type": "object", "properties": { - "bootTimestamp": { + "blockNumber": { "type": "string" }, - "counter": { + "chainId": { + "$ref": "#/definitions/vaa.ChainID" + }, + "from": { "type": "string" }, - "features": { - "type": "array", - "items": { - "type": "string" - } + "method": { + "type": "string" }, - "guardianAddr": { + "status": { "type": "string" }, - "networks": { - "type": "array", - "items": { - "$ref": "#/definitions/heartbeats.HeartbeatNetworkResponse" - } + "timestamp": { + "type": "string" }, - "nodeName": { + "to": { "type": "string" }, - "timestamp": { + "txHash": { "type": "string" }, - "version": { + "updatedAt": { "type": "string" } } }, - "infrastructure.VersionResponse": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.GlobalTransactionDoc": { "type": "object", "properties": { - "branch": { + "destinationTx": { + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.DestinationTx" + }, + "id": { "type": "string" }, - "build": { + "originTx": { + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.OriginTx" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.OriginTx": { + "type": "object", + "properties": { + "from": { "type": "string" }, - "build_date": { + "status": { "type": "string" }, - "machine": { + "txHash": { + "type": "string" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.Token": { + "type": "object", + "properties": { + "coingeckoId": { "type": "string" }, - "user": { + "decimals": { + "type": "integer" + }, + "symbol": { + "type": "string" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.TransactionCountResult": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "time": { "type": "string" } } }, - "observations.ObservationDoc": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc": { "type": "object", "properties": { + "appId": { + "description": "AppId is an extension field - it is not present in the guardian API.", + "type": "string" + }, "emitterAddr": { "type": "string" }, "emitterChain": { "$ref": "#/definitions/vaa.ChainID" }, - "guardianAddr": { + "emitterNativeAddr": { "type": "string" }, - "hash": { - "type": "array", - "items": { - "type": "integer" - } + "guardianSetIndex": { + "type": "integer" }, "id": { "type": "string" @@ -2306,94 +2227,78 @@ const docTemplate = `{ "indexedAt": { "type": "string" }, - "sequence": { - "type": "string" + "payload": { + "description": "Payload is an extension field - it is not present in the guardian API.", + "type": "object", + "additionalProperties": true }, - "signature": { - "type": "array", - "items": { - "type": "integer" - } + "timestamp": { + "type": "string" }, "txHash": { + "description": "TxHash is an extension field - it is not present in the guardian API.", + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "vaa": { "type": "array", "items": { "type": "integer" } }, - "updatedAt": { - "type": "string" + "version": { + "type": "integer" } } }, - "parser.ParseVaaWithStandarizedPropertiesdResponse": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaStats": { "type": "object", "properties": { - "parsedPayload": {}, - "standardizedProperties": { - "$ref": "#/definitions/parser.StandardizedProperties" + "chainId": { + "$ref": "#/definitions/vaa.ChainID" + }, + "count": { + "type": "integer" } } }, - "parser.StandardizedProperties": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaaDetail": { "type": "object", "properties": { - "amount": { - "type": "string" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaaDetail" + } }, - "appIds": { + "pagination": { + "$ref": "#/definitions/response.ResponsePagination" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaas": { + "type": "object", + "properties": { + "data": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaas" } }, - "fee": { - "type": "string" - }, - "feeAddress": { - "type": "string" - }, - "feeChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "fromAddress": { - "type": "string" - }, - "fromChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "toAddress": { - "type": "string" - }, - "toChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "tokenAddress": { - "type": "string" - }, - "tokenChain": { - "$ref": "#/definitions/vaa.ChainID" - } - } - }, - "response.Response-address_AddressOverview": { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/address.AddressOverview" - }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-array_governor_EnqueuedVaaDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.EnqueuedVaaDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus" } }, "pagination": { @@ -2401,13 +2306,13 @@ const docTemplate = `{ } } }, - "response.Response-array_governor_EnqueuedVaas": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovernorLimit": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.EnqueuedVaas" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovernorLimit" } }, "pagination": { @@ -2415,13 +2320,13 @@ const docTemplate = `{ } } }, - "response.Response-array_governor_GovStatus": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailable": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailable" } }, "pagination": { @@ -2429,13 +2334,13 @@ const docTemplate = `{ } } }, - "response.Response-array_governor_GovernorLimit": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailableDetail": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovernorLimit" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailableDetail" } }, "pagination": { @@ -2443,13 +2348,13 @@ const docTemplate = `{ } } }, - "response.Response-array_governor_NotionalAvailable": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.NotionalAvailable" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalLimitDetail" } }, "pagination": { @@ -2457,13 +2362,13 @@ const docTemplate = `{ } } }, - "response.Response-array_governor_NotionalAvailableDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.NotionalAvailableDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc" } }, "pagination": { @@ -2471,13 +2376,13 @@ const docTemplate = `{ } } }, - "response.Response-array_governor_NotionalLimitDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaStats": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.NotionalLimitDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaStats" } }, "pagination": { @@ -2485,64 +2390,97 @@ const docTemplate = `{ } } }, - "response.Response-array_vaa_VaaDoc": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_address_AddressOverview": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/vaa.VaaDoc" - } + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_address.AddressOverview" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-array_vaa_VaaStats": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/vaa.VaaStats" - } + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfig" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-governor_GovConfig": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/governor.GovConfig" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-governor_GovStatus": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_MaxNotionalAvailableRecord": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/governor.GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.MaxNotionalAvailableRecord" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-governor_MaxNotionalAvailableRecord": { + "parser.ParseVaaWithStandarizedPropertiesdResponse": { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/governor.MaxNotionalAvailableRecord" + "parsedPayload": {}, + "standardizedProperties": { + "$ref": "#/definitions/parser.StandardizedProperties" + } + } + }, + "parser.StandardizedProperties": { + "type": "object", + "properties": { + "amount": { + "type": "string" }, - "pagination": { - "$ref": "#/definitions/response.ResponsePagination" + "appIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "fee": { + "type": "string" + }, + "feeAddress": { + "type": "string" + }, + "feeChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "fromAddress": { + "type": "string" + }, + "fromChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "toAddress": { + "type": "string" + }, + "toChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "tokenAddress": { + "type": "string" + }, + "tokenChain": { + "$ref": "#/definitions/vaa.ChainID" } } }, @@ -2554,137 +2492,258 @@ const docTemplate = `{ } } }, - "transactions.AssetWithVolume": { + "routes_guardian_governor.AvailableNotionalItemResponse": { "type": "object", "properties": { - "emitterChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "symbol": { - "type": "string" - }, - "tokenAddress": { + "bigTransactionSize": { "type": "string" }, - "tokenChain": { + "chainId": { "$ref": "#/definitions/vaa.ChainID" }, - "volume": { + "notionalLimit": { + "type": "string" + }, + "remainingAvailableNotional": { "type": "string" } } }, - "transactions.ChainActivity": { + "routes_guardian_governor.AvailableNotionalResponse": { "type": "object", "properties": { - "txs": { + "entries": { "type": "array", "items": { - "$ref": "#/definitions/transactions.Tx" + "$ref": "#/definitions/routes_guardian_governor.AvailableNotionalItemResponse" } } } }, - "transactions.ChainPair": { + "routes_guardian_governor.EnqueuedVaaItemResponse": { "type": "object", "properties": { - "destinationChain": { - "$ref": "#/definitions/vaa.ChainID" + "emitterAddress": { + "type": "string" }, "emitterChain": { "$ref": "#/definitions/vaa.ChainID" }, - "numberOfTransfers": { + "notionalValue": { + "type": "string" + }, + "releaseTime": { + "type": "integer" + }, + "sequence": { + "type": "integer" + }, + "txHash": { "type": "string" } } }, - "transactions.Destination": { + "routes_guardian_governor.EnqueuedVaaResponse": { "type": "object", "properties": { - "chain": { + "entries": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_guardian_governor.EnqueuedVaaItemResponse" + } + } + } + }, + "routes_guardian_guardian.GuardianSet": { + "type": "object", + "properties": { + "addresses": { + "type": "array", + "items": { + "type": "string" + } + }, + "index": { "type": "integer" + } + } + }, + "routes_guardian_guardian.GuardianSetResponse": { + "type": "object", + "properties": { + "guardianSet": { + "$ref": "#/definitions/routes_guardian_guardian.GuardianSet" + } + } + }, + "routes_guardian_heartbeats.HeartbeatNetworkResponse": { + "type": "object", + "properties": { + "contractAddress": { + "type": "string" }, - "percentage": { - "type": "number" + "errorCount": { + "type": "string" }, - "volume": { - "type": "number" + "height": { + "type": "string" + }, + "id": { + "type": "integer" } } }, - "transactions.DestinationTx": { + "routes_guardian_heartbeats.HeartbeatResponse": { "type": "object", "properties": { - "blockNumber": { + "p2pNodeAddr": { "type": "string" }, - "chainId": { - "$ref": "#/definitions/vaa.ChainID" + "rawHeartbeat": { + "$ref": "#/definitions/routes_guardian_heartbeats.RawHeartbeat" }, - "from": { + "verifiedGuardianAddr": { + "type": "string" + } + } + }, + "routes_guardian_heartbeats.HeartbeatsResponse": { + "type": "object", + "properties": { + "entries": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_guardian_heartbeats.HeartbeatResponse" + } + } + } + }, + "routes_guardian_heartbeats.RawHeartbeat": { + "type": "object", + "properties": { + "bootTimestamp": { "type": "string" }, - "method": { + "counter": { "type": "string" }, - "status": { + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "guardianAddr": { + "type": "string" + }, + "networks": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_guardian_heartbeats.HeartbeatNetworkResponse" + } + }, + "nodeName": { "type": "string" }, "timestamp": { "type": "string" }, - "to": { + "version": { + "type": "string" + } + } + }, + "routes_wormscan_infrastructure.VersionResponse": { + "type": "object", + "properties": { + "branch": { "type": "string" }, - "txHash": { + "build": { "type": "string" }, - "updatedAt": { + "build_date": { + "type": "string" + }, + "machine": { + "type": "string" + }, + "user": { "type": "string" } } }, - "transactions.GlobalTransactionDoc": { + "routes_wormscan_transactions.AssetWithVolume": { "type": "object", "properties": { - "destinationTx": { - "$ref": "#/definitions/transactions.DestinationTx" + "emitterChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "id": { + "symbol": { "type": "string" }, - "originTx": { - "$ref": "#/definitions/transactions.OriginTx" + "tokenAddress": { + "type": "string" + }, + "tokenChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "volume": { + "type": "string" } } }, - "transactions.ListTransactionsResponse": { + "routes_wormscan_transactions.ChainActivity": { "type": "object", "properties": { - "transactions": { + "txs": { "type": "array", "items": { - "$ref": "#/definitions/transactions.TransactionDetail" + "$ref": "#/definitions/routes_wormscan_transactions.Tx" } } } }, - "transactions.OriginTx": { + "routes_wormscan_transactions.ChainPair": { "type": "object", "properties": { - "from": { - "type": "string" + "destinationChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "status": { - "type": "string" + "emitterChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "txHash": { + "numberOfTransfers": { "type": "string" } } }, - "transactions.ScorecardsResponse": { + "routes_wormscan_transactions.Destination": { + "type": "object", + "properties": { + "chain": { + "type": "integer" + }, + "percentage": { + "type": "number" + }, + "volume": { + "type": "number" + } + } + }, + "routes_wormscan_transactions.ListTransactionsResponse": { + "type": "object", + "properties": { + "transactions": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_wormscan_transactions.TransactionDetail" + } + } + } + }, + "routes_wormscan_transactions.ScorecardsResponse": { "type": "object", "properties": { "24h_messages": { @@ -2712,54 +2771,29 @@ const docTemplate = `{ } } }, - "transactions.Token": { - "type": "object", - "properties": { - "coingeckoId": { - "type": "string" - }, - "decimals": { - "type": "integer" - }, - "symbol": { - "type": "string" - } - } - }, - "transactions.TopAssetsResponse": { + "routes_wormscan_transactions.TopAssetsResponse": { "type": "object", "properties": { "assets": { "type": "array", "items": { - "$ref": "#/definitions/transactions.AssetWithVolume" + "$ref": "#/definitions/routes_wormscan_transactions.AssetWithVolume" } } } }, - "transactions.TopChainPairsResponse": { + "routes_wormscan_transactions.TopChainPairsResponse": { "type": "object", "properties": { "chainPairs": { "type": "array", "items": { - "$ref": "#/definitions/transactions.ChainPair" + "$ref": "#/definitions/routes_wormscan_transactions.ChainPair" } } } }, - "transactions.TransactionCountResult": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "time": { - "type": "string" - } - } - }, - "transactions.TransactionDetail": { + "routes_wormscan_transactions.TransactionDetail": { "type": "object", "properties": { "emitterAddress": { @@ -2774,7 +2808,7 @@ const docTemplate = `{ "type": "string" }, "globalTx": { - "$ref": "#/definitions/transactions.GlobalTransactionDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.GlobalTransactionDoc" }, "id": { "type": "string" @@ -2804,7 +2838,7 @@ const docTemplate = `{ } } }, - "transactions.Tx": { + "routes_wormscan_transactions.Tx": { "type": "object", "properties": { "chain": { @@ -2813,7 +2847,7 @@ const docTemplate = `{ "destinations": { "type": "array", "items": { - "$ref": "#/definitions/transactions.Destination" + "$ref": "#/definitions/routes_wormscan_transactions.Destination" } }, "percentage": { @@ -2892,68 +2926,6 @@ const docTemplate = `{ "ChainIDWormchain", "ChainIDSepolia" ] - }, - "vaa.VaaDoc": { - "type": "object", - "properties": { - "appId": { - "description": "AppId is an extension field - it is not present in the guardian API.", - "type": "string" - }, - "emitterAddr": { - "type": "string" - }, - "emitterChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "emitterNativeAddr": { - "type": "string" - }, - "guardianSetIndex": { - "type": "integer" - }, - "id": { - "type": "string" - }, - "indexedAt": { - "type": "string" - }, - "payload": { - "description": "Payload is an extension field - it is not present in the guardian API.", - "type": "object", - "additionalProperties": true - }, - "timestamp": { - "type": "string" - }, - "txHash": { - "description": "TxHash is an extension field - it is not present in the guardian API.", - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "vaa": { - "type": "array", - "items": { - "type": "integer" - } - }, - "version": { - "type": "integer" - } - } - }, - "vaa.VaaStats": { - "type": "object", - "properties": { - "chainId": { - "$ref": "#/definitions/vaa.ChainID" - }, - "count": { - "type": "integer" - } - } } } }` @@ -2964,10 +2936,12 @@ var SwaggerInfo = &swag.Spec{ Host: "", BasePath: "/", Schemes: []string{}, - Title: "Wormhole Guardian API", - Description: "Wormhole Guardian API\nThis is the API for the Wormhole Guardian and Explorer.\nThe API has two namespaces: wormscan and guardian.\nwormscan is the namespace for the explorer and the new endpoints. The prefix is /api/v1.\nguardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1.\nThis API is public and does not require authentication although some endpoints are rate limited.\nCheck each endpoint documentation for more information.", + Title: "Wormholescan API", + Description: "Wormhole Guardian API\nThis is the API for the Wormhole Guardian and Explorer.\nThe API has two namespaces: wormholescan and guardian.\nwormholescan is the namespace for the explorer and the new endpoints. The prefix is /api/v1.\nguardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1.\nThis API is public and does not require authentication although some endpoints are rate limited.\nCheck each endpoint documentation for more information.", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, + LeftDelim: "{{", + RightDelim: "}}", } func init() { diff --git a/api/docs/swagger.json b/api/docs/swagger.json index 4c72e3267..6a3f639fa 100644 --- a/api/docs/swagger.json +++ b/api/docs/swagger.json @@ -1,12 +1,12 @@ { "swagger": "2.0", "info": { - "description": "Wormhole Guardian API\nThis is the API for the Wormhole Guardian and Explorer.\nThe API has two namespaces: wormscan and guardian.\nwormscan is the namespace for the explorer and the new endpoints. The prefix is /api/v1.\nguardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1.\nThis API is public and does not require authentication although some endpoints are rate limited.\nCheck each endpoint documentation for more information.", - "title": "Wormhole Guardian API", + "description": "Wormhole Guardian API\nThis is the API for the Wormhole Guardian and Explorer.\nThe API has two namespaces: wormholescan and guardian.\nwormholescan is the namespace for the explorer and the new endpoints. The prefix is /api/v1.\nguardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1.\nThis API is public and does not require authentication although some endpoints are rate limited.\nCheck each endpoint documentation for more information.", + "title": "Wormholescan API", "termsOfService": "https://wormhole.com/", "contact": { "name": "API Support", - "url": "http://wormhole.com/support", + "url": "https://discord.com/invite/wormholecrypto", "email": "info@wormhole.com" }, "license": { @@ -21,7 +21,7 @@ "get": { "description": "Lookup an address", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-address-by-id", "parameters": [ @@ -49,7 +49,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-address_AddressOverview" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_address_AddressOverview" } }, "400": { @@ -68,7 +68,7 @@ "get": { "description": "Find a global transaction by VAA ID\nGlobal transactions is a logical association of two transactions that are related to each other by a unique VAA ID.\nThe first transaction is created on the origin chain when the VAA is emitted.\nThe second transaction is created on the destination chain when the VAA is redeemed.\nIf the response only contains an origin tx the VAA was not redeemed.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-global-transaction-by-id", "parameters": [ @@ -98,7 +98,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.Tx" + "$ref": "#/definitions/routes_wormscan_transactions.Tx" } }, "400": { @@ -114,7 +114,7 @@ "get": { "description": "Returns governor configuration for all guardians.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-config", "parameters": [ @@ -135,7 +135,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_GovConfig" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig" } }, "400": { @@ -151,14 +151,14 @@ "get": { "description": "Returns governor configuration for a given guardian.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-config-by-guardian-address", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_GovConfig" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig" } }, "400": { @@ -174,7 +174,7 @@ "get": { "description": "Returns enqueued VAAs for each blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-enqueued-vaas", "parameters": [ @@ -205,7 +205,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_EnqueuedVaas" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaas" } }, "400": { @@ -221,7 +221,7 @@ "get": { "description": "Returns all enqueued VAAs for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "guardians-enqueued-vaas-by-chain", "parameters": [ @@ -252,7 +252,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_EnqueuedVaaDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaaDetail" } }, "400": { @@ -268,7 +268,7 @@ "get": { "description": "Returns the governor limit for all blockchains.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-limit", "parameters": [ @@ -289,7 +289,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_GovernorLimit" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovernorLimit" } }, "400": { @@ -305,7 +305,7 @@ "get": { "description": "Returns the amount of notional value available for each blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-available", "parameters": [ @@ -336,7 +336,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalAvailable" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailable" } }, "400": { @@ -352,7 +352,7 @@ "get": { "description": "Returns the amount of notional value available for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-available-by-chain", "parameters": [ @@ -373,7 +373,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalAvailableDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailableDetail" } }, "400": { @@ -389,7 +389,7 @@ "get": { "description": "Returns the detailed notional limit for all blockchains.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-limit-detail", "parameters": [ @@ -410,7 +410,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalLimitDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail" } }, "400": { @@ -426,7 +426,7 @@ "get": { "description": "Returns the detailed notional limit available for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-notional-limit-detail-by-chain", "parameters": [ @@ -447,7 +447,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_NotionalLimitDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail" } }, "400": { @@ -463,14 +463,14 @@ "get": { "description": "Returns the maximum amount of notional value available for a given blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-max-notional-available-by-chain", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_MaxNotionalAvailableRecord" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_MaxNotionalAvailableRecord" } }, "400": { @@ -486,7 +486,7 @@ "get": { "description": "Returns the governor status for all guardians.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-status", "parameters": [ @@ -507,7 +507,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_governor_GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus" } }, "400": { @@ -523,7 +523,7 @@ "get": { "description": "Returns the governor status for a given guardian.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "governor-status-by-guardian-address", "parameters": [ @@ -544,7 +544,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-governor_GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus" } }, "400": { @@ -560,26 +560,19 @@ "get": { "description": "Health check", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "health-check", "responses": { "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "status": { - "type": "string" - } - } + "type": "object", + "properties": { + "status": { + "type": "string" } - ] + } } }, "400": { @@ -595,7 +588,7 @@ "get": { "description": "Returns the number of transactions by a defined time span and sample rate.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-last-transactions", "parameters": [ @@ -618,7 +611,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/transactions.TransactionCountResult" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.TransactionCountResult" } } }, @@ -635,7 +628,7 @@ "get": { "description": "Returns all observations, sorted in descending timestamp order.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations", "parameters": [ @@ -668,7 +661,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -685,7 +678,7 @@ "get": { "description": "Returns all observations for a given blockchain, sorted in descending timestamp order.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-chain", "parameters": [ @@ -718,7 +711,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -735,7 +728,7 @@ "get": { "description": "Returns all observations for a specific emitter address, sorted in descending timestamp order.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-emitter", "parameters": [ @@ -768,7 +761,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -785,7 +778,7 @@ "get": { "description": "Find observations identified by emitter chain, emitter address and sequence.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-sequence", "parameters": [ @@ -818,7 +811,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -835,7 +828,7 @@ "get": { "description": "Find a specific observation.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-observations-by-id", "parameters": [ @@ -868,7 +861,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/observations.ObservationDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc" } } }, @@ -885,26 +878,19 @@ "get": { "description": "Ready check", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "ready-check", "responses": { "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "ready": { - "type": "string" - } - } + "type": "object", + "properties": { + "ready": { + "type": "string" } - ] + } } }, "400": { @@ -920,14 +906,14 @@ "get": { "description": "Returns a list of KPIs for Wormhole.\nTVL is total value locked by token bridge contracts in USD.\nVolume is the all-time total volume transferred through the token bridge in USD.\n24h volume is the volume transferred through the token bridge in the last 24 hours, in USD.\nTotal Tx count is the number of transaction bridging assets since the creation of the network (does not include Pyth or other messages).\n24h tx count is the number of transaction bridging assets in the last 24 hours (does not include Pyth or other messages).\nTotal messages is the number of VAAs emitted since the creation of the network (includes Pyth messages).", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-scorecards", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.ScorecardsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.ScorecardsResponse" } }, "500": { @@ -940,7 +926,7 @@ "get": { "description": "Returns a token symbol, coingecko id and address by chain and token address.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-token-by-chain-and-address", "parameters": [ @@ -963,7 +949,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.Token" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.Token" } }, "400": { @@ -979,7 +965,7 @@ "get": { "description": "Returns a list of emitter_chain and asset pairs with ordered by volume.\nThe volume is calculated using the notional price of the symbol at the day the VAA was emitted.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-top-assets-by-volume", "parameters": [ @@ -995,7 +981,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.TopAssetsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.TopAssetsResponse" } }, "500": { @@ -1008,7 +994,7 @@ "get": { "description": "Returns a list of the emitter_chain and destination_chain pair ordered by transfer count.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-top-chain-pairs-by-num-transfers", "parameters": [ @@ -1024,7 +1010,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.TopChainPairsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.TopChainPairsResponse" } }, "500": { @@ -1037,7 +1023,7 @@ "get": { "description": "Returns transactions. Output is paginated.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "list-transactions", "parameters": [ @@ -1058,7 +1044,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.ListTransactionsResponse" + "$ref": "#/definitions/routes_wormscan_transactions.ListTransactionsResponse" } }, "400": { @@ -1074,7 +1060,7 @@ "get": { "description": "Find VAA metadata by ID.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-transaction-by-id", "parameters": [ @@ -1104,7 +1090,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.TransactionDetail" + "$ref": "#/definitions/routes_wormscan_transactions.TransactionDetail" } }, "400": { @@ -1120,7 +1106,7 @@ "get": { "description": "Returns all VAAs. Output is paginated and can also be be sorted.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-all-vaas", "parameters": [ @@ -1169,7 +1155,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1185,7 +1171,7 @@ "post": { "description": "Parse a VAA.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "parse-vaa", "responses": { @@ -1211,14 +1197,14 @@ "get": { "description": "Returns the total number of VAAs emitted for each blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-vaa-counts", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaStats" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaStats" } }, "400": { @@ -1234,7 +1220,7 @@ "get": { "description": "Returns all the VAAs generated in specific blockchain.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-vaas-by-chain", "parameters": [ @@ -1272,7 +1258,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1288,7 +1274,7 @@ "get": { "description": "Returns all all the VAAs generated by a specific emitter address.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-vaas-by-emitter", "parameters": [ @@ -1339,7 +1325,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1355,7 +1341,7 @@ "get": { "description": "Find a VAA by ID.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "find-vaa-by-id", "parameters": [ @@ -1391,7 +1377,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.Response-array_vaa_VaaDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc" } }, "400": { @@ -1407,14 +1393,14 @@ "get": { "description": "Get version/release information.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "get-version", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/infrastructure.VersionResponse" + "$ref": "#/definitions/routes_wormscan_infrastructure.VersionResponse" } }, "400": { @@ -1430,7 +1416,7 @@ "get": { "description": "Returns a list of chain pairs by origin chain and destination chain.\nThe list could be rendered by notional or transaction count.\nThe volume is calculated using the notional price of the symbol at the day the VAA was emitted.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "x-chain-activity", "parameters": [ @@ -1457,7 +1443,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/transactions.ChainActivity" + "$ref": "#/definitions/routes_wormscan_transactions.ChainActivity" } }, "400": { @@ -1473,7 +1459,7 @@ "get": { "description": "Returns the swagger specification for this API.", "tags": [ - "Wormscan" + "wormholescan" ], "operationId": "swagger", "responses": { @@ -1503,7 +1489,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/governor.AvailableNotionalResponse" + "$ref": "#/definitions/routes_guardian_governor.AvailableNotionalResponse" } }, "400": { @@ -1526,7 +1512,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/governor.EnqueuedVaaResponse" + "$ref": "#/definitions/routes_guardian_governor.EnqueuedVaaResponse" } }, "400": { @@ -1572,7 +1558,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/governor.EnqueuedVaaResponse" + "$ref": "#/definitions/routes_guardian_governor.EnqueuedVaaResponse" } }, "400": { @@ -1597,7 +1583,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/definitions/governor.TokenList" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.TokenList" } } }, @@ -1621,7 +1607,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/guardian.GuardianSetResponse" + "$ref": "#/definitions/routes_guardian_guardian.GuardianSetResponse" } }, "400": { @@ -1644,7 +1630,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/heartbeats.HeartbeatsResponse" + "$ref": "#/definitions/routes_guardian_heartbeats.HeartbeatsResponse" } }, "400": { @@ -1690,22 +1676,15 @@ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1751,22 +1730,15 @@ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1780,60 +1752,18 @@ } }, "definitions": { - "address.AddressOverview": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_address.AddressOverview": { "type": "object", "properties": { "vaas": { "type": "array", "items": { - "$ref": "#/definitions/vaa.VaaDoc" - } - } - } - }, - "github_com_wormhole-foundation_wormhole-explorer_api_routes_guardian_guardian.GuardianSet": { - "type": "object", - "properties": { - "addresses": { - "type": "array", - "items": { - "type": "string" - } - }, - "index": { - "type": "integer" - } - } - }, - "governor.AvailableNotionalItemResponse": { - "type": "object", - "properties": { - "bigTransactionSize": { - "type": "string" - }, - "chainId": { - "$ref": "#/definitions/vaa.ChainID" - }, - "notionalLimit": { - "type": "string" - }, - "remainingAvailableNotional": { - "type": "string" - } - } - }, - "governor.AvailableNotionalResponse": { - "type": "object", - "properties": { - "entries": { - "type": "array", - "items": { - "$ref": "#/definitions/governor.AvailableNotionalItemResponse" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc" } } } }, - "governor.Emitter": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.Emitter": { "type": "object", "properties": { "emitterAddress": { @@ -1847,7 +1777,7 @@ } } }, - "governor.EnqueuedVaa": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaa": { "type": "object", "properties": { "chainId": { @@ -1867,7 +1797,7 @@ } } }, - "governor.EnqueuedVaaDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaaDetail": { "type": "object", "properties": { "chainId": { @@ -1890,41 +1820,7 @@ } } }, - "governor.EnqueuedVaaItemResponse": { - "type": "object", - "properties": { - "emitterAddress": { - "type": "string" - }, - "emitterChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "notionalValue": { - "type": "string" - }, - "releaseTime": { - "type": "integer" - }, - "sequence": { - "type": "integer" - }, - "txHash": { - "type": "string" - } - } - }, - "governor.EnqueuedVaaResponse": { - "type": "object", - "properties": { - "entries": { - "type": "array", - "items": { - "$ref": "#/definitions/governor.EnqueuedVaaItemResponse" - } - } - } - }, - "governor.EnqueuedVaas": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaas": { "type": "object", "properties": { "chainId": { @@ -1933,18 +1829,18 @@ "enqueuedVaas": { "type": "array", "items": { - "$ref": "#/definitions/governor.EnqueuedVaa" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaa" } } } }, - "governor.GovConfig": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfig": { "type": "object", "properties": { "chains": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovConfigChains" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigChains" } }, "counter": { @@ -1962,7 +1858,7 @@ "tokens": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovConfigfTokens" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigfTokens" } }, "updatedAt": { @@ -1970,7 +1866,7 @@ } } }, - "governor.GovConfigChains": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigChains": { "type": "object", "properties": { "bigTransactionSize": { @@ -1984,7 +1880,7 @@ } } }, - "governor.GovConfigfTokens": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigfTokens": { "type": "object", "properties": { "originAddress": { @@ -1998,13 +1894,13 @@ } } }, - "governor.GovStatus": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus": { "type": "object", "properties": { "chains": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovStatusChains" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChains" } }, "createdAt": { @@ -2021,7 +1917,7 @@ } } }, - "governor.GovStatusChainEmitter": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChainEmitter": { "type": "object", "properties": { "emitterAddress": { @@ -2033,7 +1929,7 @@ } } }, - "governor.GovStatusChains": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChains": { "type": "object", "properties": { "chainId": { @@ -2042,7 +1938,7 @@ "emitters": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovStatusChainEmitter" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChainEmitter" } }, "remainingAvailableNotional": { @@ -2050,7 +1946,7 @@ } } }, - "governor.GovernorLimit": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovernorLimit": { "type": "object", "properties": { "availableNotional": { @@ -2067,7 +1963,7 @@ } } }, - "governor.MaxNotionalAvailableRecord": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.MaxNotionalAvailableRecord": { "type": "object", "properties": { "availableNotional": { @@ -2082,7 +1978,7 @@ "emitters": { "type": "array", "items": { - "$ref": "#/definitions/governor.Emitter" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.Emitter" } }, "id": { @@ -2096,7 +1992,7 @@ } } }, - "governor.NotionalAvailable": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailable": { "type": "object", "properties": { "availableNotional": { @@ -2107,7 +2003,7 @@ } } }, - "governor.NotionalAvailableDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailableDetail": { "type": "object", "properties": { "availableNotional": { @@ -2130,7 +2026,7 @@ } } }, - "governor.NotionalLimitDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalLimitDetail": { "type": "object", "properties": { "chainId": { @@ -2156,7 +2052,7 @@ } } }, - "governor.TokenList": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.TokenList": { "type": "object", "properties": { "originAddress": { @@ -2170,128 +2066,153 @@ } } }, - "guardian.GuardianSetResponse": { - "type": "object", - "properties": { - "guardianSet": { - "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_routes_guardian_guardian.GuardianSet" - } - } - }, - "heartbeats.HeartbeatNetworkResponse": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc": { "type": "object", "properties": { - "contractAddress": { + "emitterAddr": { "type": "string" }, - "errorCount": { - "type": "string" + "emitterChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "height": { + "guardianAddr": { "type": "string" }, + "hash": { + "type": "array", + "items": { + "type": "integer" + } + }, "id": { - "type": "integer" - } - } - }, - "heartbeats.HeartbeatResponse": { - "type": "object", - "properties": { - "p2pNodeAddr": { "type": "string" }, - "rawHeartbeat": { - "$ref": "#/definitions/heartbeats.RawHeartbeat" + "indexedAt": { + "type": "string" }, - "verifiedGuardianAddr": { + "sequence": { "type": "string" - } - } - }, - "heartbeats.HeartbeatsResponse": { - "type": "object", - "properties": { - "entries": { + }, + "signature": { + "type": "array", + "items": { + "type": "integer" + } + }, + "txHash": { "type": "array", "items": { - "$ref": "#/definitions/heartbeats.HeartbeatResponse" + "type": "integer" } + }, + "updatedAt": { + "type": "string" } } }, - "heartbeats.RawHeartbeat": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.DestinationTx": { "type": "object", "properties": { - "bootTimestamp": { + "blockNumber": { "type": "string" }, - "counter": { + "chainId": { + "$ref": "#/definitions/vaa.ChainID" + }, + "from": { "type": "string" }, - "features": { - "type": "array", - "items": { - "type": "string" - } + "method": { + "type": "string" }, - "guardianAddr": { + "status": { "type": "string" }, - "networks": { - "type": "array", - "items": { - "$ref": "#/definitions/heartbeats.HeartbeatNetworkResponse" - } + "timestamp": { + "type": "string" }, - "nodeName": { + "to": { "type": "string" }, - "timestamp": { + "txHash": { "type": "string" }, - "version": { + "updatedAt": { "type": "string" } } }, - "infrastructure.VersionResponse": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.GlobalTransactionDoc": { "type": "object", "properties": { - "branch": { + "destinationTx": { + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.DestinationTx" + }, + "id": { "type": "string" }, - "build": { + "originTx": { + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.OriginTx" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.OriginTx": { + "type": "object", + "properties": { + "from": { "type": "string" }, - "build_date": { + "status": { "type": "string" }, - "machine": { + "txHash": { + "type": "string" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.Token": { + "type": "object", + "properties": { + "coingeckoId": { "type": "string" }, - "user": { + "decimals": { + "type": "integer" + }, + "symbol": { + "type": "string" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.TransactionCountResult": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "time": { "type": "string" } } }, - "observations.ObservationDoc": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc": { "type": "object", "properties": { + "appId": { + "description": "AppId is an extension field - it is not present in the guardian API.", + "type": "string" + }, "emitterAddr": { "type": "string" }, "emitterChain": { "$ref": "#/definitions/vaa.ChainID" }, - "guardianAddr": { + "emitterNativeAddr": { "type": "string" }, - "hash": { - "type": "array", - "items": { - "type": "integer" - } + "guardianSetIndex": { + "type": "integer" }, "id": { "type": "string" @@ -2299,94 +2220,78 @@ "indexedAt": { "type": "string" }, - "sequence": { - "type": "string" + "payload": { + "description": "Payload is an extension field - it is not present in the guardian API.", + "type": "object", + "additionalProperties": true }, - "signature": { - "type": "array", - "items": { - "type": "integer" - } + "timestamp": { + "type": "string" }, "txHash": { + "description": "TxHash is an extension field - it is not present in the guardian API.", + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "vaa": { "type": "array", "items": { "type": "integer" } }, - "updatedAt": { - "type": "string" + "version": { + "type": "integer" } } }, - "parser.ParseVaaWithStandarizedPropertiesdResponse": { + "github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaStats": { "type": "object", "properties": { - "parsedPayload": {}, - "standardizedProperties": { - "$ref": "#/definitions/parser.StandardizedProperties" + "chainId": { + "$ref": "#/definitions/vaa.ChainID" + }, + "count": { + "type": "integer" } } }, - "parser.StandardizedProperties": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaaDetail": { "type": "object", "properties": { - "amount": { - "type": "string" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaaDetail" + } }, - "appIds": { + "pagination": { + "$ref": "#/definitions/response.ResponsePagination" + } + } + }, + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaas": { + "type": "object", + "properties": { + "data": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaas" } }, - "fee": { - "type": "string" - }, - "feeAddress": { - "type": "string" - }, - "feeChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "fromAddress": { - "type": "string" - }, - "fromChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "toAddress": { - "type": "string" - }, - "toChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "tokenAddress": { - "type": "string" - }, - "tokenChain": { - "$ref": "#/definitions/vaa.ChainID" - } - } - }, - "response.Response-address_AddressOverview": { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/address.AddressOverview" - }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-array_governor_EnqueuedVaaDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.EnqueuedVaaDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus" } }, "pagination": { @@ -2394,13 +2299,13 @@ } } }, - "response.Response-array_governor_EnqueuedVaas": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovernorLimit": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.EnqueuedVaas" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovernorLimit" } }, "pagination": { @@ -2408,13 +2313,13 @@ } } }, - "response.Response-array_governor_GovStatus": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailable": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailable" } }, "pagination": { @@ -2422,13 +2327,13 @@ } } }, - "response.Response-array_governor_GovernorLimit": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailableDetail": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.GovernorLimit" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailableDetail" } }, "pagination": { @@ -2436,13 +2341,13 @@ } } }, - "response.Response-array_governor_NotionalAvailable": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.NotionalAvailable" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalLimitDetail" } }, "pagination": { @@ -2450,13 +2355,13 @@ } } }, - "response.Response-array_governor_NotionalAvailableDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.NotionalAvailableDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc" } }, "pagination": { @@ -2464,13 +2369,13 @@ } } }, - "response.Response-array_governor_NotionalLimitDetail": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaStats": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/governor.NotionalLimitDetail" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaStats" } }, "pagination": { @@ -2478,64 +2383,97 @@ } } }, - "response.Response-array_vaa_VaaDoc": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_address_AddressOverview": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/vaa.VaaDoc" - } + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_address.AddressOverview" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-array_vaa_VaaStats": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/vaa.VaaStats" - } + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfig" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-governor_GovConfig": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/governor.GovConfig" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-governor_GovStatus": { + "github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_MaxNotionalAvailableRecord": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/governor.GovStatus" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.MaxNotionalAvailableRecord" }, "pagination": { "$ref": "#/definitions/response.ResponsePagination" } } }, - "response.Response-governor_MaxNotionalAvailableRecord": { + "parser.ParseVaaWithStandarizedPropertiesdResponse": { "type": "object", "properties": { - "data": { - "$ref": "#/definitions/governor.MaxNotionalAvailableRecord" + "parsedPayload": {}, + "standardizedProperties": { + "$ref": "#/definitions/parser.StandardizedProperties" + } + } + }, + "parser.StandardizedProperties": { + "type": "object", + "properties": { + "amount": { + "type": "string" }, - "pagination": { - "$ref": "#/definitions/response.ResponsePagination" + "appIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "fee": { + "type": "string" + }, + "feeAddress": { + "type": "string" + }, + "feeChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "fromAddress": { + "type": "string" + }, + "fromChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "toAddress": { + "type": "string" + }, + "toChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "tokenAddress": { + "type": "string" + }, + "tokenChain": { + "$ref": "#/definitions/vaa.ChainID" } } }, @@ -2547,137 +2485,258 @@ } } }, - "transactions.AssetWithVolume": { + "routes_guardian_governor.AvailableNotionalItemResponse": { "type": "object", "properties": { - "emitterChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "symbol": { - "type": "string" - }, - "tokenAddress": { + "bigTransactionSize": { "type": "string" }, - "tokenChain": { + "chainId": { "$ref": "#/definitions/vaa.ChainID" }, - "volume": { + "notionalLimit": { + "type": "string" + }, + "remainingAvailableNotional": { "type": "string" } } }, - "transactions.ChainActivity": { + "routes_guardian_governor.AvailableNotionalResponse": { "type": "object", "properties": { - "txs": { + "entries": { "type": "array", "items": { - "$ref": "#/definitions/transactions.Tx" + "$ref": "#/definitions/routes_guardian_governor.AvailableNotionalItemResponse" } } } }, - "transactions.ChainPair": { + "routes_guardian_governor.EnqueuedVaaItemResponse": { "type": "object", "properties": { - "destinationChain": { - "$ref": "#/definitions/vaa.ChainID" + "emitterAddress": { + "type": "string" }, "emitterChain": { "$ref": "#/definitions/vaa.ChainID" }, - "numberOfTransfers": { + "notionalValue": { + "type": "string" + }, + "releaseTime": { + "type": "integer" + }, + "sequence": { + "type": "integer" + }, + "txHash": { "type": "string" } } }, - "transactions.Destination": { + "routes_guardian_governor.EnqueuedVaaResponse": { "type": "object", "properties": { - "chain": { + "entries": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_guardian_governor.EnqueuedVaaItemResponse" + } + } + } + }, + "routes_guardian_guardian.GuardianSet": { + "type": "object", + "properties": { + "addresses": { + "type": "array", + "items": { + "type": "string" + } + }, + "index": { "type": "integer" + } + } + }, + "routes_guardian_guardian.GuardianSetResponse": { + "type": "object", + "properties": { + "guardianSet": { + "$ref": "#/definitions/routes_guardian_guardian.GuardianSet" + } + } + }, + "routes_guardian_heartbeats.HeartbeatNetworkResponse": { + "type": "object", + "properties": { + "contractAddress": { + "type": "string" }, - "percentage": { - "type": "number" + "errorCount": { + "type": "string" }, - "volume": { - "type": "number" + "height": { + "type": "string" + }, + "id": { + "type": "integer" } } }, - "transactions.DestinationTx": { + "routes_guardian_heartbeats.HeartbeatResponse": { "type": "object", "properties": { - "blockNumber": { + "p2pNodeAddr": { "type": "string" }, - "chainId": { - "$ref": "#/definitions/vaa.ChainID" + "rawHeartbeat": { + "$ref": "#/definitions/routes_guardian_heartbeats.RawHeartbeat" }, - "from": { + "verifiedGuardianAddr": { + "type": "string" + } + } + }, + "routes_guardian_heartbeats.HeartbeatsResponse": { + "type": "object", + "properties": { + "entries": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_guardian_heartbeats.HeartbeatResponse" + } + } + } + }, + "routes_guardian_heartbeats.RawHeartbeat": { + "type": "object", + "properties": { + "bootTimestamp": { "type": "string" }, - "method": { + "counter": { "type": "string" }, - "status": { + "features": { + "type": "array", + "items": { + "type": "string" + } + }, + "guardianAddr": { + "type": "string" + }, + "networks": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_guardian_heartbeats.HeartbeatNetworkResponse" + } + }, + "nodeName": { "type": "string" }, "timestamp": { "type": "string" }, - "to": { + "version": { + "type": "string" + } + } + }, + "routes_wormscan_infrastructure.VersionResponse": { + "type": "object", + "properties": { + "branch": { "type": "string" }, - "txHash": { + "build": { "type": "string" }, - "updatedAt": { + "build_date": { + "type": "string" + }, + "machine": { + "type": "string" + }, + "user": { "type": "string" } } }, - "transactions.GlobalTransactionDoc": { + "routes_wormscan_transactions.AssetWithVolume": { "type": "object", "properties": { - "destinationTx": { - "$ref": "#/definitions/transactions.DestinationTx" + "emitterChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "id": { + "symbol": { "type": "string" }, - "originTx": { - "$ref": "#/definitions/transactions.OriginTx" + "tokenAddress": { + "type": "string" + }, + "tokenChain": { + "$ref": "#/definitions/vaa.ChainID" + }, + "volume": { + "type": "string" } } }, - "transactions.ListTransactionsResponse": { + "routes_wormscan_transactions.ChainActivity": { "type": "object", "properties": { - "transactions": { + "txs": { "type": "array", "items": { - "$ref": "#/definitions/transactions.TransactionDetail" + "$ref": "#/definitions/routes_wormscan_transactions.Tx" } } } }, - "transactions.OriginTx": { + "routes_wormscan_transactions.ChainPair": { "type": "object", "properties": { - "from": { - "type": "string" + "destinationChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "status": { - "type": "string" + "emitterChain": { + "$ref": "#/definitions/vaa.ChainID" }, - "txHash": { + "numberOfTransfers": { "type": "string" } } }, - "transactions.ScorecardsResponse": { + "routes_wormscan_transactions.Destination": { + "type": "object", + "properties": { + "chain": { + "type": "integer" + }, + "percentage": { + "type": "number" + }, + "volume": { + "type": "number" + } + } + }, + "routes_wormscan_transactions.ListTransactionsResponse": { + "type": "object", + "properties": { + "transactions": { + "type": "array", + "items": { + "$ref": "#/definitions/routes_wormscan_transactions.TransactionDetail" + } + } + } + }, + "routes_wormscan_transactions.ScorecardsResponse": { "type": "object", "properties": { "24h_messages": { @@ -2705,54 +2764,29 @@ } } }, - "transactions.Token": { - "type": "object", - "properties": { - "coingeckoId": { - "type": "string" - }, - "decimals": { - "type": "integer" - }, - "symbol": { - "type": "string" - } - } - }, - "transactions.TopAssetsResponse": { + "routes_wormscan_transactions.TopAssetsResponse": { "type": "object", "properties": { "assets": { "type": "array", "items": { - "$ref": "#/definitions/transactions.AssetWithVolume" + "$ref": "#/definitions/routes_wormscan_transactions.AssetWithVolume" } } } }, - "transactions.TopChainPairsResponse": { + "routes_wormscan_transactions.TopChainPairsResponse": { "type": "object", "properties": { "chainPairs": { "type": "array", "items": { - "$ref": "#/definitions/transactions.ChainPair" + "$ref": "#/definitions/routes_wormscan_transactions.ChainPair" } } } }, - "transactions.TransactionCountResult": { - "type": "object", - "properties": { - "count": { - "type": "integer" - }, - "time": { - "type": "string" - } - } - }, - "transactions.TransactionDetail": { + "routes_wormscan_transactions.TransactionDetail": { "type": "object", "properties": { "emitterAddress": { @@ -2767,7 +2801,7 @@ "type": "string" }, "globalTx": { - "$ref": "#/definitions/transactions.GlobalTransactionDoc" + "$ref": "#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.GlobalTransactionDoc" }, "id": { "type": "string" @@ -2797,7 +2831,7 @@ } } }, - "transactions.Tx": { + "routes_wormscan_transactions.Tx": { "type": "object", "properties": { "chain": { @@ -2806,7 +2840,7 @@ "destinations": { "type": "array", "items": { - "$ref": "#/definitions/transactions.Destination" + "$ref": "#/definitions/routes_wormscan_transactions.Destination" } }, "percentage": { @@ -2885,68 +2919,6 @@ "ChainIDWormchain", "ChainIDSepolia" ] - }, - "vaa.VaaDoc": { - "type": "object", - "properties": { - "appId": { - "description": "AppId is an extension field - it is not present in the guardian API.", - "type": "string" - }, - "emitterAddr": { - "type": "string" - }, - "emitterChain": { - "$ref": "#/definitions/vaa.ChainID" - }, - "emitterNativeAddr": { - "type": "string" - }, - "guardianSetIndex": { - "type": "integer" - }, - "id": { - "type": "string" - }, - "indexedAt": { - "type": "string" - }, - "payload": { - "description": "Payload is an extension field - it is not present in the guardian API.", - "type": "object", - "additionalProperties": true - }, - "timestamp": { - "type": "string" - }, - "txHash": { - "description": "TxHash is an extension field - it is not present in the guardian API.", - "type": "string" - }, - "updatedAt": { - "type": "string" - }, - "vaa": { - "type": "array", - "items": { - "type": "integer" - } - }, - "version": { - "type": "integer" - } - } - }, - "vaa.VaaStats": { - "type": "object", - "properties": { - "chainId": { - "$ref": "#/definitions/vaa.ChainID" - }, - "count": { - "type": "integer" - } - } } } } \ No newline at end of file diff --git a/api/docs/swagger.yaml b/api/docs/swagger.yaml index a7a948c14..0bb443199 100644 --- a/api/docs/swagger.yaml +++ b/api/docs/swagger.yaml @@ -1,40 +1,13 @@ basePath: / definitions: - address.AddressOverview: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_address.AddressOverview: properties: vaas: items: - $ref: '#/definitions/vaa.VaaDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc' type: array type: object - github_com_wormhole-foundation_wormhole-explorer_api_routes_guardian_guardian.GuardianSet: - properties: - addresses: - items: - type: string - type: array - index: - type: integer - type: object - governor.AvailableNotionalItemResponse: - properties: - bigTransactionSize: - type: string - chainId: - $ref: '#/definitions/vaa.ChainID' - notionalLimit: - type: string - remainingAvailableNotional: - type: string - type: object - governor.AvailableNotionalResponse: - properties: - entries: - items: - $ref: '#/definitions/governor.AvailableNotionalItemResponse' - type: array - type: object - governor.Emitter: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.Emitter: properties: emitterAddress: type: string @@ -43,7 +16,7 @@ definitions: totalEnqueuedVaas: type: integer type: object - governor.EnqueuedVaa: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaa: properties: chainId: $ref: '#/definitions/vaa.ChainID' @@ -56,7 +29,7 @@ definitions: txHash: type: string type: object - governor.EnqueuedVaaDetail: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaaDetail: properties: chainId: $ref: '#/definitions/vaa.ChainID' @@ -71,42 +44,20 @@ definitions: txHash: type: string type: object - governor.EnqueuedVaaItemResponse: - properties: - emitterAddress: - type: string - emitterChain: - $ref: '#/definitions/vaa.ChainID' - notionalValue: - type: string - releaseTime: - type: integer - sequence: - type: integer - txHash: - type: string - type: object - governor.EnqueuedVaaResponse: - properties: - entries: - items: - $ref: '#/definitions/governor.EnqueuedVaaItemResponse' - type: array - type: object - governor.EnqueuedVaas: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaas: properties: chainId: $ref: '#/definitions/vaa.ChainID' enqueuedVaas: items: - $ref: '#/definitions/governor.EnqueuedVaa' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaa' type: array type: object - governor.GovConfig: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfig: properties: chains: items: - $ref: '#/definitions/governor.GovConfigChains' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigChains' type: array counter: type: integer @@ -118,12 +69,12 @@ definitions: type: string tokens: items: - $ref: '#/definitions/governor.GovConfigfTokens' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigfTokens' type: array updatedAt: type: string type: object - governor.GovConfigChains: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigChains: properties: bigTransactionSize: type: integer @@ -132,7 +83,7 @@ definitions: notionalLimit: type: integer type: object - governor.GovConfigfTokens: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfigfTokens: properties: originAddress: type: string @@ -141,11 +92,11 @@ definitions: price: type: number type: object - governor.GovStatus: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus: properties: chains: items: - $ref: '#/definitions/governor.GovStatusChains' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChains' type: array createdAt: type: string @@ -156,7 +107,7 @@ definitions: updatedAt: type: string type: object - governor.GovStatusChainEmitter: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChainEmitter: properties: emitterAddress: type: string @@ -164,18 +115,18 @@ definitions: totalEnqueuedVaas: type: integer type: object - governor.GovStatusChains: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChains: properties: chainId: $ref: '#/definitions/vaa.ChainID' emitters: items: - $ref: '#/definitions/governor.GovStatusChainEmitter' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatusChainEmitter' type: array remainingAvailableNotional: type: integer type: object - governor.GovernorLimit: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovernorLimit: properties: availableNotional: type: integer @@ -186,7 +137,7 @@ definitions: notionalLimit: type: integer type: object - governor.MaxNotionalAvailableRecord: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.MaxNotionalAvailableRecord: properties: availableNotional: type: integer @@ -196,7 +147,7 @@ definitions: type: string emitters: items: - $ref: '#/definitions/governor.Emitter' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.Emitter' type: array id: type: string @@ -205,14 +156,14 @@ definitions: updatedAt: type: string type: object - governor.NotionalAvailable: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailable: properties: availableNotional: type: integer chainId: $ref: '#/definitions/vaa.ChainID' type: object - governor.NotionalAvailableDetail: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailableDetail: properties: availableNotional: type: integer @@ -227,7 +178,7 @@ definitions: updatedAt: type: string type: object - governor.NotionalLimitDetail: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalLimitDetail: properties: chainId: $ref: '#/definitions/vaa.ChainID' @@ -244,7 +195,7 @@ definitions: updatedAt: type: string type: object - governor.TokenList: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.TokenList: properties: originAddress: type: string @@ -253,335 +204,445 @@ definitions: price: type: number type: object - guardian.GuardianSetResponse: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc: properties: - guardianSet: - $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_routes_guardian_guardian.GuardianSet' - type: object - heartbeats.HeartbeatNetworkResponse: - properties: - contractAddress: - type: string - errorCount: + emitterAddr: type: string - height: + emitterChain: + $ref: '#/definitions/vaa.ChainID' + guardianAddr: type: string + hash: + items: + type: integer + type: array id: - type: integer - type: object - heartbeats.HeartbeatResponse: - properties: - p2pNodeAddr: type: string - rawHeartbeat: - $ref: '#/definitions/heartbeats.RawHeartbeat' - verifiedGuardianAddr: + indexedAt: type: string - type: object - heartbeats.HeartbeatsResponse: - properties: - entries: + sequence: + type: string + signature: items: - $ref: '#/definitions/heartbeats.HeartbeatResponse' + type: integer type: array + txHash: + items: + type: integer + type: array + updatedAt: + type: string type: object - heartbeats.RawHeartbeat: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.DestinationTx: properties: - bootTimestamp: + blockNumber: type: string - counter: + chainId: + $ref: '#/definitions/vaa.ChainID' + from: type: string - features: - items: - type: string - type: array - guardianAddr: + method: type: string - networks: - items: - $ref: '#/definitions/heartbeats.HeartbeatNetworkResponse' - type: array - nodeName: + status: type: string timestamp: type: string - version: + to: + type: string + txHash: + type: string + updatedAt: type: string type: object - infrastructure.VersionResponse: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.GlobalTransactionDoc: properties: - branch: + destinationTx: + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.DestinationTx' + id: type: string - build: + originTx: + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.OriginTx' + type: object + github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.OriginTx: + properties: + from: type: string - build_date: + status: type: string - machine: + txHash: type: string - user: + type: object + github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.Token: + properties: + coingeckoId: + type: string + decimals: + type: integer + symbol: + type: string + type: object + github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.TransactionCountResult: + properties: + count: + type: integer + time: type: string type: object - observations.ObservationDoc: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc: properties: + appId: + description: AppId is an extension field - it is not present in the guardian + API. + type: string emitterAddr: type: string emitterChain: $ref: '#/definitions/vaa.ChainID' - guardianAddr: + emitterNativeAddr: type: string - hash: - items: - type: integer - type: array + guardianSetIndex: + type: integer id: type: string indexedAt: type: string - sequence: + payload: + additionalProperties: true + description: Payload is an extension field - it is not present in the guardian + API. + type: object + timestamp: type: string - signature: - items: - type: integer - type: array txHash: + description: TxHash is an extension field - it is not present in the guardian + API. + type: string + updatedAt: + type: string + vaa: items: type: integer type: array - updatedAt: - type: string - type: object - parser.ParseVaaWithStandarizedPropertiesdResponse: - properties: - parsedPayload: {} - standardizedProperties: - $ref: '#/definitions/parser.StandardizedProperties' + version: + type: integer type: object - parser.StandardizedProperties: + github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaStats: properties: - amount: - type: string - appIds: - items: - type: string - type: array - fee: - type: string - feeAddress: - type: string - feeChain: - $ref: '#/definitions/vaa.ChainID' - fromAddress: - type: string - fromChain: - $ref: '#/definitions/vaa.ChainID' - toAddress: - type: string - toChain: - $ref: '#/definitions/vaa.ChainID' - tokenAddress: - type: string - tokenChain: + chainId: $ref: '#/definitions/vaa.ChainID' + count: + type: integer type: object - response.Response-address_AddressOverview: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaaDetail + : properties: data: - $ref: '#/definitions/address.AddressOverview' + items: + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaaDetail' + type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_EnqueuedVaaDetail: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaas + : properties: data: items: - $ref: '#/definitions/governor.EnqueuedVaaDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.EnqueuedVaas' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_EnqueuedVaas: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus + : properties: data: items: - $ref: '#/definitions/governor.EnqueuedVaas' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_GovStatus: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovernorLimit + : properties: data: items: - $ref: '#/definitions/governor.GovStatus' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovernorLimit' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_GovernorLimit: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailable + : properties: data: items: - $ref: '#/definitions/governor.GovernorLimit' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailable' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_NotionalAvailable: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailableDetail + : properties: data: items: - $ref: '#/definitions/governor.NotionalAvailable' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalAvailableDetail' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_NotionalAvailableDetail: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail + : properties: data: items: - $ref: '#/definitions/governor.NotionalAvailableDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.NotionalLimitDetail' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_governor_NotionalLimitDetail: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc + : properties: data: items: - $ref: '#/definitions/governor.NotionalLimitDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaDoc' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_vaa_VaaDoc: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaStats + : properties: data: items: - $ref: '#/definitions/vaa.VaaDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa.VaaStats' type: array pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-array_vaa_VaaStats: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_address_AddressOverview + : properties: data: - items: - $ref: '#/definitions/vaa.VaaStats' - type: array + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_address.AddressOverview' pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-governor_GovConfig: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig + : properties: data: - $ref: '#/definitions/governor.GovConfig' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovConfig' pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-governor_GovStatus: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus + : properties: data: - $ref: '#/definitions/governor.GovStatus' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.GovStatus' pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.Response-governor_MaxNotionalAvailableRecord: - properties: + ? github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_MaxNotionalAvailableRecord + : properties: data: - $ref: '#/definitions/governor.MaxNotionalAvailableRecord' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.MaxNotionalAvailableRecord' pagination: $ref: '#/definitions/response.ResponsePagination' type: object - response.ResponsePagination: + parser.ParseVaaWithStandarizedPropertiesdResponse: properties: - next: - type: string + parsedPayload: {} + standardizedProperties: + $ref: '#/definitions/parser.StandardizedProperties' type: object - transactions.AssetWithVolume: + parser.StandardizedProperties: properties: - emitterChain: + amount: + type: string + appIds: + items: + type: string + type: array + fee: + type: string + feeAddress: + type: string + feeChain: $ref: '#/definitions/vaa.ChainID' - symbol: + fromAddress: + type: string + fromChain: + $ref: '#/definitions/vaa.ChainID' + toAddress: type: string + toChain: + $ref: '#/definitions/vaa.ChainID' tokenAddress: type: string tokenChain: $ref: '#/definitions/vaa.ChainID' - volume: + type: object + response.ResponsePagination: + properties: + next: type: string type: object - transactions.ChainActivity: + routes_guardian_governor.AvailableNotionalItemResponse: properties: - txs: + bigTransactionSize: + type: string + chainId: + $ref: '#/definitions/vaa.ChainID' + notionalLimit: + type: string + remainingAvailableNotional: + type: string + type: object + routes_guardian_governor.AvailableNotionalResponse: + properties: + entries: items: - $ref: '#/definitions/transactions.Tx' + $ref: '#/definitions/routes_guardian_governor.AvailableNotionalItemResponse' type: array type: object - transactions.ChainPair: + routes_guardian_governor.EnqueuedVaaItemResponse: properties: - destinationChain: - $ref: '#/definitions/vaa.ChainID' + emitterAddress: + type: string emitterChain: $ref: '#/definitions/vaa.ChainID' - numberOfTransfers: + notionalValue: + type: string + releaseTime: + type: integer + sequence: + type: integer + txHash: type: string type: object - transactions.Destination: + routes_guardian_governor.EnqueuedVaaResponse: properties: - chain: + entries: + items: + $ref: '#/definitions/routes_guardian_governor.EnqueuedVaaItemResponse' + type: array + type: object + routes_guardian_guardian.GuardianSet: + properties: + addresses: + items: + type: string + type: array + index: type: integer - percentage: - type: number - volume: - type: number type: object - transactions.DestinationTx: + routes_guardian_guardian.GuardianSetResponse: properties: - blockNumber: + guardianSet: + $ref: '#/definitions/routes_guardian_guardian.GuardianSet' + type: object + routes_guardian_heartbeats.HeartbeatNetworkResponse: + properties: + contractAddress: type: string - chainId: - $ref: '#/definitions/vaa.ChainID' - from: + errorCount: type: string - method: + height: type: string - status: + id: + type: integer + type: object + routes_guardian_heartbeats.HeartbeatResponse: + properties: + p2pNodeAddr: + type: string + rawHeartbeat: + $ref: '#/definitions/routes_guardian_heartbeats.RawHeartbeat' + verifiedGuardianAddr: + type: string + type: object + routes_guardian_heartbeats.HeartbeatsResponse: + properties: + entries: + items: + $ref: '#/definitions/routes_guardian_heartbeats.HeartbeatResponse' + type: array + type: object + routes_guardian_heartbeats.RawHeartbeat: + properties: + bootTimestamp: + type: string + counter: + type: string + features: + items: + type: string + type: array + guardianAddr: + type: string + networks: + items: + $ref: '#/definitions/routes_guardian_heartbeats.HeartbeatNetworkResponse' + type: array + nodeName: type: string timestamp: type: string - to: + version: type: string - txHash: + type: object + routes_wormscan_infrastructure.VersionResponse: + properties: + branch: type: string - updatedAt: + build: + type: string + build_date: + type: string + machine: + type: string + user: type: string type: object - transactions.GlobalTransactionDoc: + routes_wormscan_transactions.AssetWithVolume: properties: - destinationTx: - $ref: '#/definitions/transactions.DestinationTx' - id: + emitterChain: + $ref: '#/definitions/vaa.ChainID' + symbol: + type: string + tokenAddress: + type: string + tokenChain: + $ref: '#/definitions/vaa.ChainID' + volume: type: string - originTx: - $ref: '#/definitions/transactions.OriginTx' type: object - transactions.ListTransactionsResponse: + routes_wormscan_transactions.ChainActivity: properties: - transactions: + txs: items: - $ref: '#/definitions/transactions.TransactionDetail' + $ref: '#/definitions/routes_wormscan_transactions.Tx' type: array type: object - transactions.OriginTx: + routes_wormscan_transactions.ChainPair: properties: - from: - type: string - status: - type: string - txHash: + destinationChain: + $ref: '#/definitions/vaa.ChainID' + emitterChain: + $ref: '#/definitions/vaa.ChainID' + numberOfTransfers: type: string type: object - transactions.ScorecardsResponse: + routes_wormscan_transactions.Destination: + properties: + chain: + type: integer + percentage: + type: number + volume: + type: number + type: object + routes_wormscan_transactions.ListTransactionsResponse: + properties: + transactions: + items: + $ref: '#/definitions/routes_wormscan_transactions.TransactionDetail' + type: array + type: object + routes_wormscan_transactions.ScorecardsResponse: properties: 24h_messages: description: Number of VAAs emitted in the last 24 hours (includes Pyth messages). @@ -604,37 +665,21 @@ definitions: description: Total value locked in USD. type: string type: object - transactions.Token: - properties: - coingeckoId: - type: string - decimals: - type: integer - symbol: - type: string - type: object - transactions.TopAssetsResponse: + routes_wormscan_transactions.TopAssetsResponse: properties: assets: items: - $ref: '#/definitions/transactions.AssetWithVolume' + $ref: '#/definitions/routes_wormscan_transactions.AssetWithVolume' type: array type: object - transactions.TopChainPairsResponse: + routes_wormscan_transactions.TopChainPairsResponse: properties: chainPairs: items: - $ref: '#/definitions/transactions.ChainPair' + $ref: '#/definitions/routes_wormscan_transactions.ChainPair' type: array type: object - transactions.TransactionCountResult: - properties: - count: - type: integer - time: - type: string - type: object - transactions.TransactionDetail: + routes_wormscan_transactions.TransactionDetail: properties: emitterAddress: description: EmitterAddress contains the VAA's emitter address, encoded in @@ -647,7 +692,7 @@ definitions: in the emitter chain's native format. type: string globalTx: - $ref: '#/definitions/transactions.GlobalTransactionDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.GlobalTransactionDoc' id: type: string payload: @@ -667,13 +712,13 @@ definitions: usdAmount: type: string type: object - transactions.Tx: + routes_wormscan_transactions.Tx: properties: chain: type: integer destinations: items: - $ref: '#/definitions/transactions.Destination' + $ref: '#/definitions/routes_wormscan_transactions.Destination' type: array percentage: type: number @@ -746,61 +791,16 @@ definitions: - ChainIDSei - ChainIDWormchain - ChainIDSepolia - vaa.VaaDoc: - properties: - appId: - description: AppId is an extension field - it is not present in the guardian - API. - type: string - emitterAddr: - type: string - emitterChain: - $ref: '#/definitions/vaa.ChainID' - emitterNativeAddr: - type: string - guardianSetIndex: - type: integer - id: - type: string - indexedAt: - type: string - payload: - additionalProperties: true - description: Payload is an extension field - it is not present in the guardian - API. - type: object - timestamp: - type: string - txHash: - description: TxHash is an extension field - it is not present in the guardian - API. - type: string - updatedAt: - type: string - vaa: - items: - type: integer - type: array - version: - type: integer - type: object - vaa.VaaStats: - properties: - chainId: - $ref: '#/definitions/vaa.ChainID' - count: - type: integer - type: object info: contact: email: info@wormhole.com name: API Support - url: http://wormhole.com/support + url: https://discord.com/invite/wormholecrypto description: |- Wormhole Guardian API This is the API for the Wormhole Guardian and Explorer. - The API has two namespaces: wormscan and guardian. - wormscan is the namespace for the explorer and the new endpoints. The prefix is /api/v1. + The API has two namespaces: wormholescan and guardian. + wormholescan is the namespace for the explorer and the new endpoints. The prefix is /api/v1. guardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1. This API is public and does not require authentication although some endpoints are rate limited. Check each endpoint documentation for more information. @@ -808,7 +808,7 @@ info: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: https://wormhole.com/ - title: Wormhole Guardian API + title: Wormholescan API version: "1.0" paths: /api/v1/address/{address}: @@ -833,7 +833,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-address_AddressOverview' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_address_AddressOverview' "400": description: Bad Request "404": @@ -841,7 +841,7 @@ paths: "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/global-tx/{chain_id}/{emitter}/{seq}: get: description: |- @@ -871,13 +871,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.Tx' + $ref: '#/definitions/routes_wormscan_transactions.Tx' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/config: get: description: Returns governor configuration for all guardians. @@ -895,13 +895,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-governor_GovConfig' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/config/:guardian_address: get: description: Returns governor configuration for a given guardian. @@ -910,13 +910,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-governor_GovConfig' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovConfig' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/enqueued_vaas/: get: description: Returns enqueued VAAs for each blockchain. @@ -941,13 +941,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_EnqueuedVaas' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaas' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/enqueued_vaas/:chain: get: description: Returns all enqueued VAAs for a given blockchain. @@ -972,13 +972,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_EnqueuedVaaDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_EnqueuedVaaDetail' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/limit: get: description: Returns the governor limit for all blockchains. @@ -996,13 +996,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_GovernorLimit' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovernorLimit' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/notional/available: get: description: Returns the amount of notional value available for each blockchain. @@ -1027,13 +1027,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_NotionalAvailable' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailable' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/notional/available/:chain: get: description: Returns the amount of notional value available for a given blockchain. @@ -1051,13 +1051,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_NotionalAvailableDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalAvailableDetail' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/notional/limit: get: description: Returns the detailed notional limit for all blockchains. @@ -1075,13 +1075,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_NotionalLimitDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/notional/limit/:chain: get: description: Returns the detailed notional limit available for a given blockchain. @@ -1099,13 +1099,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_NotionalLimitDetail' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_NotionalLimitDetail' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/notional/max_available/:chain: get: description: Returns the maximum amount of notional value available for a given @@ -1115,13 +1115,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-governor_MaxNotionalAvailableRecord' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_MaxNotionalAvailableRecord' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/status: get: description: Returns the governor status for all guardians. @@ -1139,13 +1139,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_governor_GovStatus' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/governor/status/:guardian_address: get: description: Returns the governor status for a given guardian. @@ -1163,13 +1163,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-governor_GovStatus' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor_GovStatus' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/health: get: description: Health check @@ -1178,18 +1178,16 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - status: - type: string - type: object + properties: + status: + type: string + type: object "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/last-txs: get: description: Returns the number of transactions by a defined time span and sample @@ -1211,14 +1209,14 @@ paths: description: OK schema: items: - $ref: '#/definitions/transactions.TransactionCountResult' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.TransactionCountResult' type: array "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/observations: get: description: Returns all observations, sorted in descending timestamp order. @@ -1244,14 +1242,14 @@ paths: description: OK schema: items: - $ref: '#/definitions/observations.ObservationDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc' type: array "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/observations/:chain: get: description: Returns all observations for a given blockchain, sorted in descending @@ -1278,14 +1276,14 @@ paths: description: OK schema: items: - $ref: '#/definitions/observations.ObservationDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc' type: array "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/observations/:chain/:emitter: get: description: Returns all observations for a specific emitter address, sorted @@ -1312,14 +1310,14 @@ paths: description: OK schema: items: - $ref: '#/definitions/observations.ObservationDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc' type: array "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/observations/:chain/:emitter/:sequence: get: description: Find observations identified by emitter chain, emitter address @@ -1346,14 +1344,14 @@ paths: description: OK schema: items: - $ref: '#/definitions/observations.ObservationDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc' type: array "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/observations/:chain/:emitter/:sequence/:signer/:hash: get: description: Find a specific observation. @@ -1379,14 +1377,14 @@ paths: description: OK schema: items: - $ref: '#/definitions/observations.ObservationDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_observations.ObservationDoc' type: array "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/ready: get: description: Ready check @@ -1395,18 +1393,16 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - ready: - type: string - type: object + properties: + ready: + type: string + type: object "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/scorecards: get: description: |- @@ -1422,11 +1418,11 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.ScorecardsResponse' + $ref: '#/definitions/routes_wormscan_transactions.ScorecardsResponse' "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/token/{chain_id}/{token_address}: get: description: Returns a token symbol, coingecko id and address by chain and token @@ -1447,13 +1443,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.Token' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_transactions.Token' "400": description: Bad Request "404": description: Not Found tags: - - Wormscan + - wormholescan /api/v1/top-assets-by-volume: get: description: |- @@ -1470,11 +1466,11 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.TopAssetsResponse' + $ref: '#/definitions/routes_wormscan_transactions.TopAssetsResponse' "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/top-chain-pairs-by-num-transfers: get: description: Returns a list of the emitter_chain and destination_chain pair @@ -1490,11 +1486,11 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.TopChainPairsResponse' + $ref: '#/definitions/routes_wormscan_transactions.TopChainPairsResponse' "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/transactions/: get: description: Returns transactions. Output is paginated. @@ -1512,13 +1508,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.ListTransactionsResponse' + $ref: '#/definitions/routes_wormscan_transactions.ListTransactionsResponse' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/transactions/{chain_id}/{emitter}/{seq}: get: description: Find VAA metadata by ID. @@ -1543,13 +1539,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.TransactionDetail' + $ref: '#/definitions/routes_wormscan_transactions.TransactionDetail' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/vaas/: get: description: Returns all VAAs. Output is paginated and can also be be sorted. @@ -1586,13 +1582,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_vaa_VaaDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/vaas/{chain_id}: get: description: Returns all the VAAs generated in specific blockchain. @@ -1622,13 +1618,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_vaa_VaaDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/vaas/{chain_id}/{emitter}: get: description: Returns all all the VAAs generated by a specific emitter address. @@ -1667,13 +1663,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_vaa_VaaDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/vaas/{chain_id}/{emitter}/{seq}: get: description: Find a VAA by ID. @@ -1702,13 +1698,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_vaa_VaaDoc' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaDoc' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/vaas/parse: post: description: Parse a VAA. @@ -1725,7 +1721,7 @@ paths: "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/vaas/vaa-counts: get: description: Returns the total number of VAAs emitted for each blockchain. @@ -1734,13 +1730,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.Response-array_vaa_VaaStats' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_response.Response-array_github_com_wormhole-foundation_wormhole-explorer_api_handlers_vaa_VaaStats' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/version: get: description: Get version/release information. @@ -1749,13 +1745,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/infrastructure.VersionResponse' + $ref: '#/definitions/routes_wormscan_infrastructure.VersionResponse' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /api/v1/x-chain-activity: get: description: |- @@ -1781,13 +1777,13 @@ paths: "200": description: OK schema: - $ref: '#/definitions/transactions.ChainActivity' + $ref: '#/definitions/routes_wormscan_transactions.ChainActivity' "400": description: Bad Request "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /swagger.json: get: description: Returns the swagger specification for this API. @@ -1802,7 +1798,7 @@ paths: "500": description: Internal Server Error tags: - - Wormscan + - wormholescan /v1/governor/available_notional_by_chain: get: description: |- @@ -1816,7 +1812,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/governor.AvailableNotionalResponse' + $ref: '#/definitions/routes_guardian_governor.AvailableNotionalResponse' "400": description: Bad Request "500": @@ -1831,7 +1827,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/governor.EnqueuedVaaResponse' + $ref: '#/definitions/routes_guardian_governor.EnqueuedVaaResponse' "400": description: Bad Request "500": @@ -1862,7 +1858,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/governor.EnqueuedVaaResponse' + $ref: '#/definitions/routes_guardian_governor.EnqueuedVaaResponse' "400": description: Bad Request "500": @@ -1883,7 +1879,7 @@ paths: description: OK schema: items: - $ref: '#/definitions/governor.TokenList' + $ref: '#/definitions/github_com_wormhole-foundation_wormhole-explorer_api_handlers_governor.TokenList' type: array "400": description: Bad Request @@ -1899,7 +1895,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/guardian.GuardianSetResponse' + $ref: '#/definitions/routes_guardian_guardian.GuardianSetResponse' "400": description: Bad Request "500": @@ -1914,7 +1910,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/heartbeats.HeartbeatsResponse' + $ref: '#/definitions/routes_guardian_heartbeats.HeartbeatsResponse' "400": description: Bad Request "500": @@ -1945,14 +1941,12 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - vaaBytes: - items: - type: integer - type: array - type: object + properties: + vaaBytes: + items: + type: integer + type: array + type: object "400": description: Bad Request "500": @@ -1983,14 +1977,12 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - vaaBytes: - items: - type: integer - type: array - type: object + properties: + vaaBytes: + items: + type: integer + type: array + type: object "400": description: Bad Request "500": diff --git a/api/main.go b/api/main.go index 1bef65430..9397d90ef 100644 --- a/api/main.go +++ b/api/main.go @@ -52,7 +52,7 @@ var swagger []byte // GetSwagger godoc // @Description Returns the swagger specification for this API. -// @Tags Wormscan +// @Tags wormholescan // @ID swagger // @Success 200 {object} object // @Failure 400 @@ -72,18 +72,18 @@ func GetSwagger(ctx *fiber.Ctx) error { return err } -// @title Wormhole Guardian API +// @title Wormholescan API // @version 1.0 // @description Wormhole Guardian API // @description This is the API for the Wormhole Guardian and Explorer. -// @description The API has two namespaces: wormscan and guardian. -// @description wormscan is the namespace for the explorer and the new endpoints. The prefix is /api/v1. +// @description The API has two namespaces: wormholescan and guardian. +// @description wormholescan is the namespace for the explorer and the new endpoints. The prefix is /api/v1. // @description guardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1. // @description This API is public and does not require authentication although some endpoints are rate limited. // @description Check each endpoint documentation for more information. // @termsOfService https://wormhole.com/ // @contact.name API Support -// @contact.url http://wormhole.com/support +// @contact.url https://discord.com/invite/wormholecrypto // @contact.email info@wormhole.com // @license.name Apache 2.0 // @license.url http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/api/routes/guardian/governor/controller.go b/api/routes/guardian/governor/controller.go index 6803d5d91..7fdc51f32 100644 --- a/api/routes/guardian/governor/controller.go +++ b/api/routes/guardian/governor/controller.go @@ -161,7 +161,7 @@ func (c *Controller) IsVaaEnqueued(ctx *fiber.Ctx) error { // @Description the price that has most occurrences in all the nodes for an originChainId and originAddress is returned. // @Tags Guardian // @ID guardians-token-list -// @Success 200 {object} []TokenList +// @Success 200 {object} []governor.TokenList // @Failure 400 // @Failure 500 // @Router /v1/governor/token_list [get] diff --git a/api/routes/wormscan/address/controller.go b/api/routes/wormscan/address/controller.go index 72932f0e8..97eadbb77 100644 --- a/api/routes/wormscan/address/controller.go +++ b/api/routes/wormscan/address/controller.go @@ -26,7 +26,7 @@ func NewController(srv *address.Service, logger *zap.Logger) *Controller { // FindById godoc // @Description Lookup an address -// @Tags Wormscan +// @Tags wormholescan // @ID find-address-by-id // @Param address path string true "address" // @Param page query integer false "Page number. Starts at 0." diff --git a/api/routes/wormscan/governor/controller.go b/api/routes/wormscan/governor/controller.go index b64fa3261..edea4e797 100644 --- a/api/routes/wormscan/governor/controller.go +++ b/api/routes/wormscan/governor/controller.go @@ -25,11 +25,11 @@ func NewController(serv *governor.Service, logger *zap.Logger) *Controller { // FindGovernorConfigurations godoc // @Description Returns governor configuration for all guardians. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-config // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[GovConfig] +// @Success 200 {object} response.Response[governor.GovConfig] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/config [get] @@ -50,9 +50,9 @@ func (c *Controller) FindGovernorConfigurations(ctx *fiber.Ctx) error { // FindGovernorConfigurationByGuardianAddress godoc // @Description Returns governor configuration for a given guardian. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-config-by-guardian-address -// @Success 200 {object} response.Response[GovConfig] +// @Success 200 {object} response.Response[governor.GovConfig] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/config/:guardian_address [get] @@ -82,11 +82,11 @@ func (c *Controller) FindGovernorConfigurationByGuardianAddress(ctx *fiber.Ctx) // FindGovernorStatus godoc // @Description Returns the governor status for all guardians. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-status // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[[]GovStatus] +// @Success 200 {object} response.Response[[]governor.GovStatus] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/status [get] @@ -107,11 +107,11 @@ func (c *Controller) FindGovernorStatus(ctx *fiber.Ctx) error { // FindGovernorStatusByGuardianAddress godoc // @Description Returns the governor status for a given guardian. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-status-by-guardian-address // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[GovStatus] +// @Success 200 {object} response.Response[governor.GovStatus] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/status/:guardian_address [get] @@ -137,11 +137,11 @@ func (c *Controller) FindGovernorStatusByGuardianAddress(ctx *fiber.Ctx) error { // GetGovernorLimit godoc // @Description Returns the governor limit for all blockchains. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-notional-limit // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[[]GovernorLimit] +// @Success 200 {object} response.Response[[]governor.GovernorLimit] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/limit [get] @@ -162,11 +162,11 @@ func (c *Controller) GetGovernorLimit(ctx *fiber.Ctx) error { // FindNotionalLimit godoc // @Description Returns the detailed notional limit for all blockchains. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-notional-limit-detail // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[[]NotionalLimitDetail] +// @Success 200 {object} response.Response[[]governor.NotionalLimitDetail] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/notional/limit [get] @@ -187,11 +187,11 @@ func (c *Controller) FindNotionalLimit(ctx *fiber.Ctx) error { // GetNotionalLimitByChainID godoc // @Description Returns the detailed notional limit available for a given blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-notional-limit-detail-by-chain // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[[]NotionalLimitDetail] +// @Success 200 {object} response.Response[[]governor.NotionalLimitDetail] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/notional/limit/:chain [get] @@ -217,12 +217,12 @@ func (c *Controller) GetNotionalLimitByChainID(ctx *fiber.Ctx) error { // GetAvailableNotional godoc // @Description Returns the amount of notional value available for each blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-notional-available // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} response.Response[[]NotionalAvailable] +// @Success 200 {object} response.Response[[]governor.NotionalAvailable] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/notional/available [get] @@ -243,11 +243,11 @@ func (c *Controller) GetAvailableNotional(ctx *fiber.Ctx) error { // GetAvailableNotionalByChainID godoc // @Description Returns the amount of notional value available for a given blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-notional-available-by-chain // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." -// @Success 200 {object} response.Response[[]NotionalAvailableDetail] +// @Success 200 {object} response.Response[[]governor.NotionalAvailableDetail] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/notional/available/:chain [get] @@ -273,9 +273,9 @@ func (c *Controller) GetAvailableNotionalByChainID(ctx *fiber.Ctx) error { // GetMaxNotionalAvailableByChainID godoc // @Description Returns the maximum amount of notional value available for a given blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-max-notional-available-by-chain -// @Success 200 {object} response.Response[MaxNotionalAvailableRecord] +// @Success 200 {object} response.Response[governor.MaxNotionalAvailableRecord] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/notional/max_available/:chain [get] @@ -296,12 +296,12 @@ func (c *Controller) GetMaxNotionalAvailableByChainID(ctx *fiber.Ctx) error { // GetEnqueuedVaas godoc // @Description Returns enqueued VAAs for each blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID governor-enqueued-vaas // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} response.Response[[]EnqueuedVaas] +// @Success 200 {object} response.Response[[]governor.EnqueuedVaas] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/enqueued_vaas/ [get] @@ -322,12 +322,12 @@ func (c *Controller) GetEnqueuedVaas(ctx *fiber.Ctx) error { // GetEnqueuedVaasByChainID godoc // @Description Returns all enqueued VAAs for a given blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID guardians-enqueued-vaas-by-chain // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} response.Response[[]EnqueuedVaaDetail] +// @Success 200 {object} response.Response[[]governor.EnqueuedVaaDetail] // @Failure 400 // @Failure 500 // @Router /api/v1/governor/enqueued_vaas/:chain [get] diff --git a/api/routes/wormscan/infrastructure/controller.go b/api/routes/wormscan/infrastructure/controller.go index 4b50b7082..128df2f2b 100644 --- a/api/routes/wormscan/infrastructure/controller.go +++ b/api/routes/wormscan/infrastructure/controller.go @@ -19,7 +19,7 @@ func NewController(serv *infrastructure.Service) *Controller { // HealthCheck is the HTTP route handler for the endpoint `GET /api/v1/health`. // HealthCheck godoc // @Description Health check -// @Tags Wormscan +// @Tags wormholescan // @ID health-check // @Success 200 {object} object{status=string} // @Failure 400 @@ -34,7 +34,7 @@ func (c *Controller) HealthCheck(ctx *fiber.Ctx) error { // ReadyCheck is the HTTP handler for the endpoint `GET /api/v1/ready`. // ReadyCheck godoc // @Description Ready check -// @Tags Wormscan +// @Tags wormholescan // @ID ready-check // @Success 200 {object} object{ready=string} // @Failure 400 @@ -64,7 +64,7 @@ type VersionResponse struct { // Version is the HTTP route handler for the endpoint `GET /api/v1/version`. // Version godoc // @Description Get version/release information. -// @Tags Wormscan +// @Tags wormholescan // @ID get-version // @Success 200 {object} VersionResponse // @Failure 400 diff --git a/api/routes/wormscan/observations/controller.go b/api/routes/wormscan/observations/controller.go index d4b11bfb1..56c728572 100644 --- a/api/routes/wormscan/observations/controller.go +++ b/api/routes/wormscan/observations/controller.go @@ -26,12 +26,12 @@ func NewController(srv *observations.Service, logger *zap.Logger) *Controller { // FindAll godoc // @Description Returns all observations, sorted in descending timestamp order. -// @Tags Wormscan +// @Tags wormholescan // @ID find-observations // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} []ObservationDoc +// @Success 200 {object} []observations.ObservationDoc // @Failure 400 // @Failure 500 // @Router /api/v1/observations [get] @@ -52,12 +52,12 @@ func (c *Controller) FindAll(ctx *fiber.Ctx) error { // FindAllByChain godoc // @Description Returns all observations for a given blockchain, sorted in descending timestamp order. -// @Tags Wormscan +// @Tags wormholescan // @ID find-observations-by-chain // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} []ObservationDoc +// @Success 200 {object} []observations.ObservationDoc // @Failure 400 // @Failure 500 // @Router /api/v1/observations/:chain [get] @@ -83,12 +83,12 @@ func (c *Controller) FindAllByChain(ctx *fiber.Ctx) error { // FindAllByEmitter godoc // @Description Returns all observations for a specific emitter address, sorted in descending timestamp order. -// @Tags Wormscan +// @Tags wormholescan // @ID find-observations-by-emitter // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} []ObservationDoc +// @Success 200 {object} []observations.ObservationDoc // @Failure 400 // @Failure 500 // @Router /api/v1/observations/:chain/:emitter [get] @@ -114,12 +114,12 @@ func (c *Controller) FindAllByEmitter(ctx *fiber.Ctx) error { // FindAllByVAA godoc // @Description Find observations identified by emitter chain, emitter address and sequence. -// @Tags Wormscan +// @Tags wormholescan // @ID find-observations-by-sequence // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} []ObservationDoc +// @Success 200 {object} []observations.ObservationDoc // @Failure 400 // @Failure 500 // @Router /api/v1/observations/:chain/:emitter/:sequence [get] @@ -145,12 +145,12 @@ func (c *Controller) FindAllByVAA(ctx *fiber.Ctx) error { // FindOne godoc // @Description Find a specific observation. -// @Tags Wormscan +// @Tags wormholescan // @ID find-observations-by-id // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." // @Param sortOrder query string false "Sort results in ascending or descending order." Enums(ASC, DESC) -// @Success 200 {object} []ObservationDoc +// @Success 200 {object} []observations.ObservationDoc // @Failure 400 // @Failure 500 // @Router /api/v1/observations/:chain/:emitter/:sequence/:signer/:hash [get] diff --git a/api/routes/wormscan/transactions/controller.go b/api/routes/wormscan/transactions/controller.go index 66e523620..334a99753 100644 --- a/api/routes/wormscan/transactions/controller.go +++ b/api/routes/wormscan/transactions/controller.go @@ -29,7 +29,7 @@ func NewController(transactionsService *transactions.Service, logger *zap.Logger // GetLastTransactions godoc // @Description Returns the number of transactions by a defined time span and sample rate. -// @Tags Wormscan +// @Tags wormholescan // @ID get-last-transactions // @Param timeSpan query string false "Time Span, default: 1d, supported values: [1d, 1w, 1mo]. 1mo ​​is 30 days." // @Param sampleRate query string false "Sample Rate, default: 1h, supported values: [1h, 1d]. Valid configurations with timeSpan: 1d/1h, 1w/1d, 1mo/1d" @@ -65,7 +65,7 @@ func (c *Controller) GetLastTransactions(ctx *fiber.Ctx) error { // @Description Total Tx count is the number of transaction bridging assets since the creation of the network (does not include Pyth or other messages). // @Description 24h tx count is the number of transaction bridging assets in the last 24 hours (does not include Pyth or other messages). // @Description Total messages is the number of VAAs emitted since the creation of the network (includes Pyth messages). -// @Tags Wormscan +// @Tags wormholescan // @ID get-scorecards // @Success 200 {object} ScorecardsResponse // @Failure 500 @@ -94,7 +94,7 @@ func (c *Controller) GetScorecards(ctx *fiber.Ctx) error { // GetTopChainPairs godoc // @Description Returns a list of the emitter_chain and destination_chain pair ordered by transfer count. -// @Tags Wormscan +// @Tags wormholescan // @ID get-top-chain-pairs-by-num-transfers // @Param timeSpan query string true "Time span, supported values: 7d, 15d, 30d." // @Success 200 {object} TopChainPairsResponse @@ -134,7 +134,7 @@ func (c *Controller) GetTopChainPairs(ctx *fiber.Ctx) error { // GetTopAssets godoc // @Description Returns a list of emitter_chain and asset pairs with ordered by volume. // @Description The volume is calculated using the notional price of the symbol at the day the VAA was emitted. -// @Tags Wormscan +// @Tags wormholescan // @ID get-top-assets-by-volume // @Param timeSpan query string true "Time span, supported values: 7d, 15d, 30d." // @Success 200 {object} TopAssetsResponse @@ -184,7 +184,7 @@ func (c *Controller) GetTopAssets(ctx *fiber.Ctx) error { // @Description Returns a list of chain pairs by origin chain and destination chain. // @Description The list could be rendered by notional or transaction count. // @Description The volume is calculated using the notional price of the symbol at the day the VAA was emitted. -// @Tags Wormscan +// @Tags wormholescan // @ID x-chain-activity // @Param timeSpan query string false "Time span, supported values: 7d, 30d, 90d, 1y and all-time (default is 7d)." // @Param by query string false "Renders the results using notional or tx count (default is notional)." @@ -291,7 +291,7 @@ func (c *Controller) createChainActivityResponse(activity []transactions.ChainAc // @Description The first transaction is created on the origin chain when the VAA is emitted. // @Description The second transaction is created on the destination chain when the VAA is redeemed. // @Description If the response only contains an origin tx the VAA was not redeemed. -// @Tags Wormscan +// @Tags wormholescan // @ID find-global-transaction-by-id // @Param chain_id path integer true "id of the blockchain" // @Param emitter path string true "address of the emitter" @@ -321,11 +321,11 @@ func convertToDecimal(amount decimal.Decimal) decimal.Decimal { // GetTokenByChainAndAddress godoc // @Description Returns a token symbol, coingecko id and address by chain and token address. -// @Tags Wormscan +// @Tags wormholescan // @ID get-token-by-chain-and-address // @Param chain_id path integer true "id of the blockchain" // @Param token_address path string true "token address" -// @Success 200 {object} Token +// @Success 200 {object} transactions.Token // @Failure 400 // @Failure 404 // @Router /api/v1/token/{chain_id}/{token_address} [get] @@ -350,7 +350,7 @@ func (c *Controller) GetTokenByChainAndAddress(ctx *fiber.Ctx) error { // ListTransactions godoc // @Description Returns transactions. Output is paginated. -// @Tags Wormscan +// @Tags wormholescan // @ID list-transactions // @Param page query integer false "Page number. Starts at 0." // @Param pageSize query integer false "Number of elements per page." @@ -444,7 +444,7 @@ func (c *Controller) makeTransactionDetail(input *transactions.TransactionDto) * // GetTransactionByID godoc // @Description Find VAA metadata by ID. -// @Tags Wormscan +// @Tags wormholescan // @ID get-transaction-by-id // @Param chain_id path integer true "id of the blockchain" // @Param emitter path string true "address of the emitter" diff --git a/api/routes/wormscan/vaa/controller.go b/api/routes/wormscan/vaa/controller.go index c72dad0ea..79e6174c3 100644 --- a/api/routes/wormscan/vaa/controller.go +++ b/api/routes/wormscan/vaa/controller.go @@ -27,7 +27,7 @@ func NewController(serv *vaa.Service, logger *zap.Logger) *Controller { // FindAll godoc // @Description Returns all VAAs. Output is paginated and can also be be sorted. -// @Tags Wormscan +// @Tags wormholescan // @ID find-all-vaas // @Param page query integer false "Page number." // @Param pageSize query integer false "Number of elements per page." @@ -76,7 +76,7 @@ func (c *Controller) FindAll(ctx *fiber.Ctx) error { // FindByChain godoc // @Description Returns all the VAAs generated in specific blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID find-vaas-by-chain // @Param chain_id path integer true "id of the blockchain" // @Param page query integer false "Page number." @@ -108,7 +108,7 @@ func (c *Controller) FindByChain(ctx *fiber.Ctx) error { // FindByEmitter godoc // @Description Returns all all the VAAs generated by a specific emitter address. -// @Tags Wormscan +// @Tags wormholescan // @ID find-vaas-by-emitter // @Param chain_id path integer true "id of the blockchain" // @Param emitter path string true "address of the emitter" @@ -158,7 +158,7 @@ func (c *Controller) FindByEmitter(ctx *fiber.Ctx) error { // FindById godoc // @Description Find a VAA by ID. -// @Tags Wormscan +// @Tags wormholescan // @ID find-vaa-by-id // @Param chain_id path integer true "id of the blockchain" // @Param emitter path string true "address of the emitter" @@ -195,7 +195,7 @@ func (c *Controller) FindById(ctx *fiber.Ctx) error { // GetVaaCount godoc // @Description Returns the total number of VAAs emitted for each blockchain. -// @Tags Wormscan +// @Tags wormholescan // @ID get-vaa-counts // @Success 200 {object} response.Response[[]vaa.VaaStats] // @Failure 400 @@ -213,7 +213,7 @@ func (c *Controller) GetVaaCount(ctx *fiber.Ctx) error { // ParseVaa godoc // @Description Parse a VAA. -// @Tags Wormscan +// @Tags wormholescan // @ID parse-vaa // @Success 200 {object} parser.ParseVaaWithStandarizedPropertiesdResponse // @Failure 400