Skip to content

Commit 3b256f3

Browse files
remove useless method
1 parent 5508653 commit 3b256f3

12 files changed

+35
-632
lines changed

api/openapi.json

-32
Original file line numberDiff line numberDiff line change
@@ -8545,38 +8545,6 @@
85458545
]
85468546
}
85478547
},
8548-
"/v2/extra-currencies": {
8549-
"get": {
8550-
"description": "Get a list of all extra currencies in the blockchain.",
8551-
"operationId": "getExtraCurrencies",
8552-
"parameters": [
8553-
{
8554-
"$ref": "#/components/parameters/limitQuery"
8555-
},
8556-
{
8557-
"$ref": "#/components/parameters/offsetQuery"
8558-
}
8559-
],
8560-
"responses": {
8561-
"200": {
8562-
"content": {
8563-
"application/json": {
8564-
"schema": {
8565-
"$ref": "#/components/schemas/ExtraCurrencies"
8566-
}
8567-
}
8568-
},
8569-
"description": "a list of extra currencies"
8570-
},
8571-
"default": {
8572-
"$ref": "#/components/responses/Error"
8573-
}
8574-
},
8575-
"tags": [
8576-
"ExtraCurrency"
8577-
]
8578-
}
8579-
},
85808548
"/v2/extra-currency/{id}": {
85818549
"get": {
85828550
"description": "Get extra currency info by id",

api/openapi.yml

-18
Original file line numberDiff line numberDiff line change
@@ -1742,24 +1742,6 @@ paths:
17421742
$ref: '#/components/schemas/EcPreview'
17431743
'default':
17441744
$ref: '#/components/responses/Error'
1745-
/v2/extra-currencies:
1746-
get:
1747-
description: Get a list of all extra currencies in the blockchain.
1748-
operationId: getExtraCurrencies
1749-
tags:
1750-
- ExtraCurrency
1751-
parameters:
1752-
- $ref: '#/components/parameters/limitQuery'
1753-
- $ref: '#/components/parameters/offsetQuery'
1754-
responses:
1755-
'200':
1756-
description: a list of extra currencies
1757-
content:
1758-
application/json:
1759-
schema:
1760-
$ref: '#/components/schemas/ExtraCurrencies'
1761-
'default':
1762-
$ref: '#/components/responses/Error'
17631745

17641746
/v2/staking/nominator/{account_id}/pools:
17651747
get:

pkg/api/extra_currency_handlers.go

-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ import (
99
func (h *Handler) GetExtraCurrencyInfo(ctx context.Context, params oas.GetExtraCurrencyInfoParams) (*oas.EcPreview, error) {
1010
return &oas.EcPreview{}, nil
1111
}
12-
13-
func (h *Handler) GetExtraCurrencies(ctx context.Context, params oas.GetExtraCurrenciesParams) (*oas.ExtraCurrencies, error) {
14-
return &oas.ExtraCurrencies{ExtraCurrencies: []oas.EcPreview{}}, nil
15-
}

pkg/oas/oas_handlers_gen.go

-121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/oas/oas_json_gen.go

-106
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)