Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "CSCA" proposals types #11

Merged
merged 2 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning].

## [1.4.0] - 2024-05-01
### Added
- `CSCA` Proposals types

## [1.3.1] - 2024-04-29
### Fixed
- Vote form
Expand Down Expand Up @@ -100,7 +104,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

- Initiated project

[Unreleased]: https://gitlab.com/rarimo/scan/compare/1.3.1...HEAD
[Unreleased]: https://gitlab.com/rarimo/scan/compare/1.4.0...HEAD
[1.4.0]: https://gitlab.com/rarimo/scan/compare/1.3.1...1.4.0
[1.3.1]: https://gitlab.com/rarimo/scan/compare/1.3.0...1.3.1
[1.3.0]: https://gitlab.com/rarimo/scan/compare/1.2.1...1.3.0
[1.2.1]: https://gitlab.com/rarimo/scan/compare/1.2.0...1.2.1
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scan",
"version": "1.3.1",
"version": "1.4.0",
"private": true,
"gitHooks": {
"pre-commit": "yarn lint",
Expand All @@ -27,7 +27,7 @@
"@hookform/resolvers": "^3.3.1",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.3",
"@rarimo/client": "^2.4.0",
"@rarimo/client": "^2.5.0",
"graphql": "^16.7.1",
"graphql-tag": "^2.12.6",
"lodash-es": "^4.17.21",
Expand Down
3 changes: 3 additions & 0 deletions src/const/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const PROPOSAL_TYPES_MAP = {
'oraclemanager/OracleUnfreezeProposal': ProposalType.OracleUnfreeze,
'oraclemanager/ChangeParamsProposal': ProposalType.OracleChangeParams,
'/cosmos.gov.v1beta1.TextProposal': ProposalType.Text,
'/rarimo.rarimocore.cscalist.ReplaceCSCAListProposal': ProposalType.ReplaceCSCAListProposal,
'/rarimo.rarimocore.cscalist.EditCSCAListProposal': ProposalType.EditCSCAListProposal,

ParameterChange: ProposalType.ParameterChange,
SoftwareUpgrade: ProposalType.SoftwareUpgrade,
CancelSoftwareUpgrade: ProposalType.CancelSoftwareUpgrade,
Expand Down
2 changes: 2 additions & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ export default {
"community-pool-spend-lbl": "Community Pool Spend",
"mint-tokens-lbl": "Mint Tokens",
"text-lbl": "Text",
"edit-csca-list-lbl": "Edit CSCA List",
"replace-csca-list-lbl": "Replace CSCA List",
"unknown-lbl": "Unknown",
},
"proposal-vote": {
Expand Down
2 changes: 2 additions & 0 deletions src/locales/localizers/proposal-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ export const localizeProposalType = (t: TFunction, type: ProposalType) =>
[ProposalType.CommunityPoolSpend]: t('proposal-type.community-pool-spend-lbl'),
[ProposalType.MintTokens]: t('proposal-type.mint-tokens-lbl'),
[ProposalType.Text]: t('proposal-type.text-lbl'),
[ProposalType.EditCSCAListProposal]: t('proposal-type.edit-csca-list-lbl'),
[ProposalType.ReplaceCSCAListProposal]: t('proposal-type.replace-csca-list-lbl'),
}[type])
Loading
Loading