Skip to content

Commit

Permalink
add social links
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Aug 31, 2023
1 parent 633fa63 commit bc0e6b9
Show file tree
Hide file tree
Showing 10 changed files with 236 additions and 13 deletions.
10 changes: 9 additions & 1 deletion api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2506,6 +2506,13 @@
"example": "TON Whales",
"type": "string"
},
"socials": {
"items": {
"example": "https://t.me/tonwhales",
"type": "string"
},
"type": "array"
},
"url": {
"example": "https://tonvalidators.org/",
"type": "string"
Expand All @@ -2514,7 +2521,8 @@
"required": [
"name",
"description",
"url"
"url",
"socials"
],
"type": "object"
},
Expand Down
6 changes: 6 additions & 0 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4357,6 +4357,7 @@ components:
- name
- description
- url
- socials
properties:
name:
type: string
Expand All @@ -4367,6 +4368,11 @@ components:
url:
type: string
example: "https://tonvalidators.org/"
socials:
type: array
items:
type: string
example: "https://t.me/tonwhales"
StorageProvider:
type: object
required:
Expand Down
33 changes: 31 additions & 2 deletions client/oas_json_gen.go

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

17 changes: 14 additions & 3 deletions client/oas_schemas_gen.go

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

63 changes: 63 additions & 0 deletions client/oas_validators_gen.go

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

2 changes: 2 additions & 0 deletions pkg/api/staking_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (h Handler) GetStakingPoolInfo(ctx context.Context, params oas.GetStakingPo
Name: references.TonstakersImplementationsName,
Description: i18n.T(params.AcceptLanguage.Value, i18n.C{MessageID: "poolImplementationDescription", TemplateData: map[string]interface{}{"Deposit": 100}}),
URL: references.LiquidImplementationsUrl,
Socials: references.TonstakersSocialLinks,
},
Pool: convertLiquidStaking(lPool, cycleStart, cycleEnd),
}, nil
Expand Down Expand Up @@ -184,6 +185,7 @@ func (h Handler) GetStakingPools(ctx context.Context, params oas.GetStakingPools
Name: references.TonstakersImplementationsName,
Description: i18n.T(params.AcceptLanguage.Value, i18n.C{MessageID: "poolImplementationDescription", TemplateData: map[string]interface{}{"Deposit": 10}}),
URL: references.LiquidImplementationsUrl,
Socials: references.TonstakersSocialLinks,
},
})

Expand Down
33 changes: 31 additions & 2 deletions pkg/oas/oas_json_gen.go

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

17 changes: 14 additions & 3 deletions pkg/oas/oas_schemas_gen.go

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

Loading

0 comments on commit bc0e6b9

Please sign in to comment.