Skip to content

Commit

Permalink
remove useless method
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhar-petukhov committed Jan 20, 2025
1 parent 5508653 commit 3b256f3
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 632 deletions.
32 changes: 0 additions & 32 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8545,38 +8545,6 @@
]
}
},
"/v2/extra-currencies": {
"get": {
"description": "Get a list of all extra currencies in the blockchain.",
"operationId": "getExtraCurrencies",
"parameters": [
{
"$ref": "#/components/parameters/limitQuery"
},
{
"$ref": "#/components/parameters/offsetQuery"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExtraCurrencies"
}
}
},
"description": "a list of extra currencies"
},
"default": {
"$ref": "#/components/responses/Error"
}
},
"tags": [
"ExtraCurrency"
]
}
},
"/v2/extra-currency/{id}": {
"get": {
"description": "Get extra currency info by id",
Expand Down
18 changes: 0 additions & 18 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1742,24 +1742,6 @@ paths:
$ref: '#/components/schemas/EcPreview'
'default':
$ref: '#/components/responses/Error'
/v2/extra-currencies:
get:
description: Get a list of all extra currencies in the blockchain.
operationId: getExtraCurrencies
tags:
- ExtraCurrency
parameters:
- $ref: '#/components/parameters/limitQuery'
- $ref: '#/components/parameters/offsetQuery'
responses:
'200':
description: a list of extra currencies
content:
application/json:
schema:
$ref: '#/components/schemas/ExtraCurrencies'
'default':
$ref: '#/components/responses/Error'

/v2/staking/nominator/{account_id}/pools:
get:
Expand Down
4 changes: 0 additions & 4 deletions pkg/api/extra_currency_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ import (
func (h *Handler) GetExtraCurrencyInfo(ctx context.Context, params oas.GetExtraCurrencyInfoParams) (*oas.EcPreview, error) {
return &oas.EcPreview{}, nil
}

func (h *Handler) GetExtraCurrencies(ctx context.Context, params oas.GetExtraCurrenciesParams) (*oas.ExtraCurrencies, error) {
return &oas.ExtraCurrencies{ExtraCurrencies: []oas.EcPreview{}}, nil
}
121 changes: 0 additions & 121 deletions pkg/oas/oas_handlers_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 0 additions & 106 deletions pkg/oas/oas_json_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3b256f3

Please sign in to comment.